/* ============================================================
   THEME — Ireland Web Development  ·  Clean / Light edition
   ============================================================ */

:root {
  --brand:        #0D1B3E;
  --brand-dark:   #08112B;
  --accent:       #9B1C2E;
  --accent-dark:  #7D1524;
  --purple:       #2D1B4E;
  --ink:          #1a1a1a;
  --muted:        #5a5f6b;
  --line:         #b5b9c8;
  --bg:           #d4d7e2;
  --bg-alt:       #c8cbd6;
  --font-display: "Inter", system-ui, -apple-system, sans-serif;
  --font-body:    "Inter", system-ui, -apple-system, sans-serif;
  --maxw:         1120px;
  --radius:       8px;
  --shadow:       0 6px 24px rgba(0,0,0,.08);
  --gap:          clamp(1rem, 2.5vw, 2rem);
}

/* ============================================================ Reset */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.6;
  color: var(--ink);
  background: var(--bg);
  background-image: radial-gradient(circle, rgba(13,27,62,0.22) 1.5px, transparent 1.5px);
  background-size: 28px 28px;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 800;
  line-height: 1.15;
  color: var(--ink);
  margin: 0 0 .5em;
}
h1 { font-size: clamp(2.4rem, 6vw, 3.8rem); letter-spacing: -.02em; }
h2 { font-size: clamp(1.7rem, 4vw, 2.6rem); letter-spacing: -.015em; }
h3 { font-size: clamp(1.1rem, 2vw, 1.3rem); font-weight: 700; }
p  { margin: 0 0 1rem; color: var(--muted); }

/* ============================================================ Layout */
.container {
  width: 100%;
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: var(--gap);
}
.section {
  padding-block: clamp(4rem, 9vw, 7rem);
  background-color: var(--bg);
  background-image: radial-gradient(circle, rgba(13,27,62,0.22) 1.5px, transparent 1.5px);
  background-size: 28px 28px;
}
.section--alt {
  background-color: var(--bg-alt);
  background-image: radial-gradient(circle, rgba(13,27,62,0.22) 1.5px, transparent 1.5px);
  background-size: 28px 28px;
}
.center { text-align: center; }

/* ============================================================ Grid */
.grid    { display: grid; gap: var(--gap); }
.grid--3 { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.grid--2 { grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }
.grid--4 { grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); }

/* ============================================================ Card — glass */
.card {
  background: rgba(255, 255, 255, 0.65);
  border: 1px solid rgba(255, 255, 255, 0.85);
  border-radius: var(--radius);
  padding: 1.6rem;
  box-shadow: 0 4px 24px rgba(13, 27, 62, 0.08), 0 1px 0 rgba(255,255,255,0.6) inset;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.card:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 32px rgba(13, 27, 62, 0.14);
}
.card h3 { color: var(--brand-dark); }

/* ============================================================ Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  gap: .45rem;
  padding: .8rem 1.75rem;
  border-radius: 6px;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: .95rem;
  letter-spacing: .01em;
  border: none;
  cursor: pointer;
  transition: background .15s, transform .15s, box-shadow .15s;
  text-decoration: none;
}
.btn:hover { transform: translateY(-1px); text-decoration: none; }

.btn--red {
  background: var(--accent);
  color: #fff;
}
.btn--red:hover { background: var(--accent-dark); color: #fff; }

/* Ghost button — designed for use on the dark hero gradient */
.btn--ghost {
  background: transparent;
  color: #fff;
  border: 1.5px solid rgba(255,255,255,.45);
}
.btn--ghost:hover { background: rgba(255,255,255,.1); border-color: rgba(255,255,255,.7); color: #fff; }

/* ============================================================ Header / Nav */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--bg);
  border-bottom: 1px solid var(--line);
  box-shadow: 0 2px 12px rgba(0,0,0,.05);
}
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-block: 1rem;
}
.brand-mark {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.1rem;
  letter-spacing: -.02em;
  color: var(--brand-dark);
  text-decoration: none;
}
.brand-mark:hover { text-decoration: none; color: var(--brand-dark); }

.nav-links {
  display: flex;
  gap: 1.6rem;
  list-style: none;
  margin: 0;
  padding: 0;
  align-items: center;
}
.nav-links a {
  color: var(--muted);
  font-weight: 500;
  font-size: .95rem;
  transition: color .15s;
}
.nav-links a:hover,
.nav-links a[aria-current="page"] { color: var(--ink); text-decoration: none; }
.nav-links .btn       { color: #fff; }
.nav-links .btn:hover { color: #fff; }

.nav-toggle {
  display: none;
  background: none;
  border: 1.5px solid var(--line);
  border-radius: 6px;
  cursor: pointer;
  padding: .45rem .5rem;
}
.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--ink);
  margin: 4px 0;
  transition: .25s;
}

@media (max-width: 760px) {
  .nav-toggle { display: block; }
  .nav-links {
    position: absolute;
    top: 100%;
    left: 0; right: 0;
    flex-direction: column;
    gap: 0;
    background: var(--bg);
    border-bottom: 1px solid var(--line);
    max-height: 0;
    overflow: hidden;
    transition: max-height .3s ease;
  }
  .nav-links.open { max-height: 400px; }
  .nav-links li { width: 100%; }
  .nav-links a {
    display: block;
    padding: .85rem var(--gap);
    border-top: 1px solid var(--line);
  }
  .nav-links .btn {
    margin: .75rem var(--gap);
    width: calc(100% - 2 * var(--gap));
    justify-content: center;
  }
}

/* ============================================================ Hero (home) */
.hero {
  position: relative;
  overflow: hidden;
  padding-block: clamp(5rem, 12vw, 9rem);
  background: linear-gradient(135deg, var(--brand) 0%, var(--purple) 55%, #1a0820 100%);
}
.hero h1 { color: #fff; max-width: 18ch; }
.hero > .container > p {
  font-size: 1.15rem;
  max-width: 52ch;
  color: rgba(255,255,255,.8);
  margin-bottom: 2rem;
}
.hero-actions { display: flex; gap: 1rem; flex-wrap: wrap; }

/* ============================================================ Page hero (inner pages) */
.page-hero {
  position: relative;
  overflow: hidden;
  padding-block: clamp(3.5rem, 8vw, 6rem);
  background: linear-gradient(135deg, var(--brand) 0%, var(--purple) 55%, #1a0820 100%);
}
.page-hero h1 { color: #fff; margin-bottom: .4em; }
.page-hero p  { color: rgba(255,255,255,.78); max-width: 52ch; margin-bottom: 0; }

/* ============================================================ Section label */
.section-label {
  display: inline-block;
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: .75rem;
}

/* ============================================================ Form */
.form-grid { display: grid; gap: 1.1rem; }
label {
  font-size: .85rem;
  font-weight: 600;
  display: block;
  margin-bottom: .4rem;
  color: var(--ink);
}
input, textarea, select {
  width: 100%;
  padding: .8rem 1rem;
  font: inherit;
  font-size: .95rem;
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  color: var(--ink);
  transition: border-color .2s, box-shadow .2s;
}
input::placeholder, textarea::placeholder { color: var(--muted); opacity: .7; }
input:focus, textarea:focus, select:focus {
  outline: none;
  border-color: var(--brand);
  box-shadow: 0 0 0 3px rgba(13,27,62,.1);
}
textarea { resize: vertical; min-height: 120px; }
.form-status { font-weight: 600; font-size: .9rem; color: var(--accent); min-height: 1.4rem; }

/* ============================================================ Divider */
.divider { border: none; border-top: 1px solid var(--line); margin: 0; }

/* ============================================================ Portfolio grid */
.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.25rem;
}
.portfolio-card {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  aspect-ratio: 16/10;
  background: var(--bg-alt);
  border: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform .25s, box-shadow .25s;
}
.portfolio-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 50px rgba(0,0,0,.1);
}
.portfolio-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.portfolio-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(8,17,43,.85) 0%, transparent 55%);
  display: flex;
  align-items: flex-end;
  padding: 1.2rem;
  opacity: 0;
  transition: opacity .25s;
}
.portfolio-card:hover .portfolio-overlay { opacity: 1; }
.portfolio-placeholder-inner {
  text-align: center;
  color: var(--muted);
  font-size: .9rem;
  padding: 1rem;
}
.portfolio-placeholder-inner strong { display: block; color: var(--ink); margin-bottom: .35rem; font-size: 1rem; }

/* ============================================================ Footer */
.site-footer {
  background: var(--brand-dark);
  padding-block: 3rem;
}
.footer-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 2.5rem;
  justify-content: space-between;
  margin-bottom: 2rem;
}
.site-footer h3 { color: #fff; font-size: .95rem; font-weight: 700; margin-bottom: .6rem; }
.site-footer p  { color: rgba(255,255,255,.6); font-size: .9rem; margin: 0; }
.site-footer a  { color: rgba(255,255,255,.6); transition: color .15s; }
.site-footer a:hover { color: #fff; text-decoration: none; }
.fine {
  border-top: 1px solid rgba(255,255,255,.1);
  padding-top: 1.5rem;
  font-size: .82rem;
  color: rgba(255,255,255,.35);
}

/* ============================================================ Scroll reveal */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.55s ease, transform 0.55s ease;
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
}

/* ============================================================ Orb Background */
.orb-scene {
  position: relative;
  overflow: hidden;
}
.orb {
  position: absolute;
  top: 0;
  left: 0;
  border-radius: 50%;
  filter: blur(70px);
  pointer-events: none;
  z-index: 0;
  will-change: transform;
}
/* Orb visual properties only — JS handles all positioning and drift */
.orb--1  { width: 380px; height: 380px; background: var(--brand);  opacity: 0.12; }
.orb--2  { width: 290px; height: 290px; background: var(--accent); opacity: 0.10; }
.orb--3  { width: 270px; height: 270px; background: var(--purple); opacity: 0.10; }
.orb--4  { width: 190px; height: 190px; background: var(--accent); opacity: 0.09; }
.orb--5  { width: 220px; height: 220px; background: var(--brand);  opacity: 0.09; }
.orb--6  { width: 320px; height: 320px; background: var(--purple); opacity: 0.10; }
.orb--7  { width: 200px; height: 200px; background: var(--brand);  opacity: 0.09; }
.orb--8  { width: 160px; height: 160px; background: var(--accent); opacity: 0.08; }
.orb--9  { width: 180px; height: 180px; background: var(--purple); opacity: 0.08; }
.orb--10 { width: 140px; height: 140px; background: var(--accent); opacity: 0.08; }
.orb-scene > .container {
  position: relative;
  z-index: 1;
}

/* ============================================================ Mouse Spotlight */
#dust-canvas {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 999;
}
@media (prefers-reduced-motion: reduce) { #dust-canvas { display: none; } }

/* ============================================================ Scroll Progress */
#scroll-line {
  position: fixed;
  top: 0;
  left: 0;
  height: 3px;
  width: 0%;
  background: linear-gradient(to right, var(--brand), var(--accent));
  z-index: 1000;
  transition: width 0.1s linear;
  pointer-events: none;
}

/* ============================================================ A11y */
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--accent);
  color: #fff;
  padding: .6rem 1rem;
  z-index: 200;
  border-radius: 0 0 8px 0;
}
.skip-link:focus { left: 0; }
