/* ============================================================
   Salah Eddine Ghannouch — Drupal Developer Portfolio
   Vanilla CSS · Drupal-inspired palette · dark/light themes
   ============================================================ */

/* ---------- Tokens ---------- */
:root {
  /* Brand palette */
  --drupal-blue: #0678BE;
  --aqua: #00B4D8;
  --amber: #FFB400;
  --navy-900: #001833;
  --navy-800: #0A1F3D;

  /* Dark theme (default) */
  --bg: #0A1F3D;
  --bg-2: #081a34;
  --bg-grad-a: #0A1F3D;
  --bg-grad-b: #001833;
  --surface: rgba(255, 255, 255, 0.04);
  --surface-2: rgba(255, 255, 255, 0.06);
  --surface-solid: #0e264a;
  --border: rgba(255, 255, 255, 0.10);
  --border-strong: rgba(255, 255, 255, 0.18);
  --text: #F5F7FA;
  --text-dim: #9fb2cc;
  --text-faint: #6f84a3;
  --heading: #ffffff;
  --nav-bg: rgba(10, 31, 61, 0.55);
  --shadow: 0 20px 50px -20px rgba(0, 0, 0, 0.6);
  --code-bg: #061428;

  /* Shared */
  --primary: var(--drupal-blue);
  --accent: var(--aqua);
  --cta: var(--amber);
  --radius: 16px;
  --radius-sm: 10px;
  --maxw: 1120px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --font-head: "Space Grotesk", "Sora", system-ui, sans-serif;
  --font-body: "Inter", "IBM Plex Sans", system-ui, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, monospace;
}

/* Light theme */
[data-theme="light"] {
  --bg: #F5F7FA;
  --bg-2: #eef2f7;
  --bg-grad-a: #ffffff;
  --bg-grad-b: #e8eef6;
  --surface: rgba(6, 120, 190, 0.04);
  --surface-2: rgba(6, 120, 190, 0.07);
  --surface-solid: #ffffff;
  --border: rgba(10, 31, 61, 0.10);
  --border-strong: rgba(10, 31, 61, 0.18);
  --text: #1A1A1A;
  --text-dim: #4a5a70;
  --text-faint: #808ea3;
  --heading: #0A1F3D;
  --nav-bg: rgba(255, 255, 255, 0.65);
  --shadow: 0 20px 50px -24px rgba(10, 31, 61, 0.25);
  --code-bg: #0e264a;
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

body {
  font-family: var(--font-body);
  color: var(--text);
  background: var(--bg);
  line-height: 1.65;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  transition: background-color .3s var(--ease), color .3s var(--ease);
}

h1, h2, h3, h4 { font-family: var(--font-head); color: var(--heading); line-height: 1.1; font-weight: 700; }
a { color: var(--accent); text-decoration: none; }
img { max-width: 100%; display: block; }
button { font-family: inherit; cursor: pointer; }
ul { list-style: none; padding: 0; }

.container { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: 24px; }

/* ---------- A11y helpers ---------- */
.skip-link {
  position: absolute; left: 16px; top: -60px; z-index: 200;
  background: var(--cta); color: #1a1a1a; padding: 10px 16px; border-radius: 8px;
  font-weight: 600; transition: top .2s var(--ease);
}
.skip-link:focus { top: 16px; }

:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 4px; }

/* ============================================================
   NAVBAR
   ============================================================ */
.navbar {
  position: fixed; inset: 0 0 auto 0; z-index: 100;
  transition: background-color .3s var(--ease), backdrop-filter .3s var(--ease),
              border-color .3s var(--ease), box-shadow .3s var(--ease);
  border-bottom: 1px solid transparent;
}
.navbar.scrolled {
  background: var(--nav-bg);
  backdrop-filter: blur(14px) saturate(140%);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  border-bottom-color: var(--border);
  box-shadow: 0 10px 30px -20px rgba(0,0,0,.5);
}
.nav-inner { display: flex; align-items: center; justify-content: space-between; height: 68px; gap: 20px; }

.brand { display: inline-flex; align-items: center; gap: 8px; font-family: var(--font-head); font-weight: 700; font-size: 1.25rem; color: var(--heading); letter-spacing: .5px; }
.brand-logo { flex: 0 0 auto; transition: transform .3s var(--ease); }
.brand:hover .brand-logo { transform: translateY(-2px) rotate(-6deg); }
.brand-dot { color: var(--accent); }

.nav-links { display: flex; align-items: center; gap: 28px; }
.nav-links a { color: var(--text-dim); font-size: .93rem; font-weight: 500; position: relative; transition: color .2s var(--ease); }
.nav-links a::after {
  content: ""; position: absolute; left: 0; bottom: -6px; height: 2px; width: 0;
  background: var(--accent); transition: width .25s var(--ease);
}
.nav-links a:hover { color: var(--text); }
.nav-links a:hover::after { width: 100%; }
.nav-links a.nav-cta {
  border: 1px solid var(--border-strong); padding: 8px 16px; border-radius: 999px; color: var(--text);
}
.nav-links a.nav-cta::after { display: none; }
.nav-links a.nav-cta:hover { border-color: var(--accent); color: var(--accent); }

.nav-tools { display: flex; align-items: center; gap: 10px; }
.lang-toggle {
  display: inline-flex; align-items: center; gap: 6px; height: 40px; padding: 0 12px;
  border-radius: 999px; border: 1px solid var(--border); background: var(--surface);
  color: var(--text); font-family: var(--font-mono); font-size: .82rem; font-weight: 600;
  transition: border-color .2s var(--ease), color .2s var(--ease), transform .2s var(--ease);
}
.lang-toggle:hover { border-color: var(--accent); color: var(--accent); transform: translateY(-1px); }
.lang-toggle svg { opacity: .8; }
.theme-toggle {
  width: 40px; height: 40px; border-radius: 999px; border: 1px solid var(--border);
  background: var(--surface); color: var(--text); display: grid; place-items: center;
  transition: transform .3s var(--ease), border-color .2s var(--ease), background .2s var(--ease);
}
.theme-toggle:hover { border-color: var(--accent); transform: rotate(20deg); }
.theme-toggle .icon-moon { display: none; }
[data-theme="light"] .theme-toggle .icon-sun { display: none; }
[data-theme="light"] .theme-toggle .icon-moon { display: block; }

/* Hamburger */
.hamburger { display: none; width: 40px; height: 40px; border: 1px solid var(--border); background: var(--surface); border-radius: 10px; flex-direction: column; gap: 4px; align-items: center; justify-content: center; }
.hamburger span { width: 18px; height: 2px; background: var(--text); border-radius: 2px; transition: transform .3s var(--ease), opacity .2s var(--ease); }
.hamburger.open span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

.mobile-menu {
  display: none; flex-direction: column; gap: 4px;
  background: var(--nav-bg); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border); padding: 8px 24px 18px;
}
.mobile-menu a { color: var(--text-dim); padding: 10px 4px; border-bottom: 1px solid var(--border); font-weight: 500; }
.mobile-menu.open { display: flex; }

/* ============================================================
   HERO
   ============================================================ */
.hero { position: relative; min-height: 100vh; display: flex; align-items: center; overflow: hidden;
  background:
    radial-gradient(1200px 600px at 80% -10%, rgba(6,120,190,.18), transparent 60%),
    linear-gradient(160deg, var(--bg-grad-a), var(--bg-grad-b));
  padding: 120px 0 80px;
}
.hero-inner { display: grid; grid-template-columns: 1.05fr .95fr; gap: 56px; align-items: center; position: relative; z-index: 2; }

.hero-eyebrow { font-family: var(--font-mono); color: var(--accent); font-size: .9rem; letter-spacing: .5px; margin-bottom: 18px; }
.hero-title { font-size: clamp(2.6rem, 6vw, 4.6rem); letter-spacing: -1.5px; margin-bottom: 18px; }

.hero-rotator { font-size: clamp(1.15rem, 2.4vw, 1.6rem); font-weight: 600; font-family: var(--font-head); display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; margin-bottom: 18px; }
.rotator-prefix { color: var(--text-dim); font-weight: 500; }
.rotator { position: relative; display: inline-block; min-height: 1.4em; }
.rotator-word {
  background: linear-gradient(90deg, var(--accent), var(--drupal-blue));
  -webkit-background-clip: text; background-clip: text; color: transparent;
  display: inline-block;
}
.rotator-word.rot-in { animation: rotIn .5s var(--ease) both; }
.rotator-word.rot-out { animation: rotOut .4s var(--ease) both; }
@keyframes rotIn { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
@keyframes rotOut { from { opacity: 1; transform: none; } to { opacity: 0; transform: translateY(-14px); } }

.hero-intro { color: var(--text-dim); font-size: 1.05rem; max-width: 46ch; margin-bottom: 30px; }

.hero-cta { display: flex; gap: 14px; flex-wrap: wrap; margin-bottom: 34px; }

.hero-meta { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; color: var(--text-dim); font-size: .92rem; }
.hero-meta strong { color: var(--text); }
.dot-sep { width: 5px; height: 5px; border-radius: 50%; background: var(--text-faint); }

/* Buttons */
.btn {
  position: relative; overflow: hidden; display: inline-flex; align-items: center; gap: 8px;
  padding: 13px 24px; border-radius: 999px; font-weight: 600; font-size: .95rem;
  border: 1px solid transparent; transition: transform .18s var(--ease), box-shadow .25s var(--ease), background .2s var(--ease), color .2s var(--ease);
  will-change: transform;
}
.btn:active { transform: scale(.96); }
.btn-primary { background: var(--cta); color: #201700; box-shadow: 0 10px 24px -10px rgba(255,180,0,.6); }
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 16px 30px -12px rgba(255,180,0,.7); }
.btn-ghost { background: var(--surface); color: var(--text); border-color: var(--border-strong); }
.btn-ghost:hover { border-color: var(--accent); color: var(--accent); transform: translateY(-2px); }

/* Ripple */
.ripple .ripple-ink {
  position: absolute; border-radius: 50%; transform: scale(0); pointer-events: none;
  background: rgba(255,255,255,.45); animation: ripple .6s var(--ease);
}
@keyframes ripple { to { transform: scale(3.2); opacity: 0; } }

/* Terminal */
.terminal {
  background: var(--code-bg); border: 1px solid var(--border); border-radius: var(--radius);
  box-shadow: var(--shadow); overflow: hidden; font-family: var(--font-mono);
}
.terminal-bar { display: flex; align-items: center; gap: 8px; padding: 12px 16px; border-bottom: 1px solid rgba(255,255,255,.08); background: rgba(255,255,255,.03); }
.tdot { width: 11px; height: 11px; border-radius: 50%; }
.tdot.red { background: #ff5f56; } .tdot.yellow { background: #ffbd2e; } .tdot.green { background: #27c93f; }
.terminal-path { margin-left: 10px; color: #7f9bbd; font-size: .82rem; }
.terminal-body { padding: 18px 20px; font-size: .86rem; line-height: 1.8; color: #cfe0f2; overflow-x: auto; white-space: pre; }
.c-prompt { color: var(--amber); } .c-cmd { color: var(--aqua); } .c-ok { color: #6ee7a8; } .c-key { color: #8ab4ff; }
.cursor-blink { animation: blink 1.1s steps(1) infinite; color: var(--aqua); }
@keyframes blink { 50% { opacity: 0; } }

/* Hero background effects */
.hero-bg { position: absolute; inset: 0; z-index: 1; pointer-events: none; }
.drop {
  position: absolute; border-radius: 65% 35% 55% 45% / 55% 45% 55% 45%;
  filter: blur(30px); opacity: .30; mix-blend-mode: screen;
}
.drop-1 { width: 360px; height: 360px; left: 6%; top: 18%; background: radial-gradient(circle at 30% 30%, var(--aqua), transparent 70%); animation: drift1 18s ease-in-out infinite; }
.drop-2 { width: 300px; height: 300px; right: 10%; top: 12%; background: radial-gradient(circle at 40% 40%, var(--drupal-blue), transparent 70%); animation: drift2 22s ease-in-out infinite; }
.drop-3 { width: 260px; height: 260px; left: 40%; bottom: 8%; background: radial-gradient(circle at 50% 50%, #2a6cf0, transparent 70%); animation: drift3 26s ease-in-out infinite; }
@keyframes drift1 { 0%,100% { transform: translate(0,0) rotate(0); } 50% { transform: translate(30px,-24px) rotate(20deg); } }
@keyframes drift2 { 0%,100% { transform: translate(0,0) rotate(0); } 50% { transform: translate(-26px,28px) rotate(-16deg); } }
@keyframes drift3 { 0%,100% { transform: translate(0,0) rotate(0); } 50% { transform: translate(20px,-30px) rotate(12deg); } }

.mesh { position: absolute; inset: 0; background:
  radial-gradient(600px 300px at 15% 20%, rgba(0,180,216,.10), transparent 60%),
  radial-gradient(500px 260px at 85% 30%, rgba(6,120,190,.12), transparent 60%);
}
.dot-grid { position: absolute; inset: 0;
  background-image: radial-gradient(rgba(255,255,255,.10) 1px, transparent 1px);
  background-size: 26px 26px; mask-image: radial-gradient(circle at 50% 40%, black, transparent 75%);
  -webkit-mask-image: radial-gradient(circle at 50% 40%, black, transparent 75%);
  opacity: .5;
}
[data-theme="light"] .dot-grid { background-image: radial-gradient(rgba(10,31,61,.12) 1px, transparent 1px); }

/* Scroll hint */
.scroll-hint { position: absolute; left: 50%; bottom: 26px; transform: translateX(-50%); width: 26px; height: 42px; border: 2px solid var(--border-strong); border-radius: 14px; z-index: 3; }
.scroll-hint span { position: absolute; left: 50%; top: 8px; width: 4px; height: 8px; border-radius: 3px; background: var(--accent); transform: translateX(-50%); animation: scrolldot 1.6s var(--ease) infinite; }
@keyframes scrolldot { 0% { opacity: 0; top: 8px; } 40% { opacity: 1; } 100% { opacity: 0; top: 24px; } }

/* ============================================================
   SECTIONS (shared)
   ============================================================ */
.section { position: relative; padding: 100px 0; overflow: hidden; }
.section-alt { background: var(--bg-2); }
.section-head { margin-bottom: 48px; max-width: 640px; }
.section-index { font-family: var(--font-mono); color: var(--accent); font-size: .9rem; }
.section-title { font-size: clamp(1.9rem, 4vw, 2.8rem); letter-spacing: -1px; margin: 6px 0 10px; }
.section-sub { color: var(--text-dim); font-size: 1.02rem; }

/* Background blobs / patterns */
.blob { position: absolute; border-radius: 50%; filter: blur(90px); opacity: .18; z-index: 0; pointer-events: none; }
.blob-a { width: 420px; height: 420px; background: var(--aqua); top: -120px; right: -80px; }
.blob-b { width: 460px; height: 460px; background: var(--drupal-blue); bottom: -160px; left: -120px; }
.blob-c { width: 380px; height: 380px; background: #2a6cf0; top: 40%; right: -100px; }
.blob-d { width: 420px; height: 420px; background: var(--aqua); bottom: -140px; left: -100px; }
.section-pattern { position: absolute; inset: 0; opacity: .35; z-index: 0; }
.section > .container { position: relative; z-index: 1; }

/* ============================================================
   ABOUT
   ============================================================ */
.about-grid { display: grid; grid-template-columns: 1.6fr 1fr; gap: 40px; align-items: start; }
.about-copy p { color: var(--text-dim); margin-bottom: 18px; }
.about-copy strong { color: var(--text); }
.about-focus { display: grid; grid-template-columns: 1fr 1fr; gap: 10px 20px; margin-top: 8px; }
.about-focus li { position: relative; padding-left: 22px; color: var(--text-dim); font-size: .95rem; }
.about-focus li::before { content: "◆"; position: absolute; left: 0; color: var(--accent); font-size: .8rem; top: 2px; }

.about-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 26px; }
.about-card h3 { font-size: 1.05rem; margin-bottom: 16px; }
.about-card dl > div { display: flex; justify-content: space-between; gap: 16px; padding: 10px 0; border-bottom: 1px dashed var(--border); font-size: .93rem; }
.about-card dl > div:last-child { border-bottom: none; }
.about-card dt { color: var(--text-faint); }
.about-card dd { color: var(--text); font-weight: 500; text-align: right; }
.badge-avail { color: #6ee7a8 !important; }

/* ============================================================
   EXPERTISE / SKILLS
   ============================================================ */
.skills-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 20px; }
.skill-card {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 24px; transition: transform .25s var(--ease), border-color .25s var(--ease), box-shadow .25s var(--ease);
}
.skill-card:hover { transform: translateY(-4px); border-color: var(--border-strong); box-shadow: var(--shadow); }

/* Drupal specialty card highlight */
.skill-specialty { position: relative; border-color: rgba(6,120,190,.45);
  background: linear-gradient(160deg, rgba(6,120,190,.12), var(--surface)); }
.skill-specialty:hover { border-color: var(--drupal-blue); }
.specialty-badge {
  position: absolute; top: 14px; right: 14px; font-family: var(--font-mono); font-size: .66rem;
  text-transform: uppercase; letter-spacing: .8px; font-weight: 700; color: #201700;
  background: var(--cta); padding: 4px 9px; border-radius: 999px;
}
.skill-group { font-family: var(--font-mono); font-size: .78rem; color: var(--text-faint); }
.skill-group b { color: var(--accent); font-weight: 500; }
.skill-head h3 { font-size: 1.2rem; margin: 6px 0 12px; }
.skill-desc { color: var(--text-dim); font-size: .92rem; margin-bottom: 4px; }
.skill-tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.skill-tags li { font-size: .78rem; padding: 5px 11px; border-radius: 999px; background: var(--surface-2); border: 1px solid var(--border); color: var(--text-dim); }

/* ============================================================
   PROJECTS
   ============================================================ */
.projects { display: flex; flex-direction: column; gap: 32px; }
.project {
  display: grid; grid-template-columns: 1fr 1fr; gap: 36px; align-items: center;
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 24px; transition: transform .3s var(--ease), box-shadow .3s var(--ease), border-color .3s var(--ease);
}
.project:hover { transform: translateY(-6px); box-shadow: var(--shadow); border-color: var(--border-strong); }
.project-reverse .project-media { order: 2; }

.project-media { display: block; border-radius: var(--radius-sm); overflow: hidden; }
.project-thumb {
  position: relative; aspect-ratio: 16/10; border-radius: var(--radius-sm);
  display: flex; align-items: flex-end; padding: 16px; overflow: hidden;
  transition: transform .5s var(--ease);
}
.project-media:hover .project-thumb { transform: scale(1.05); }
.thumb-1 { background: linear-gradient(135deg, #0a2a52, #0678BE 60%, #00B4D8); }
.thumb-2 { background: linear-gradient(135deg, #06243f, #2a6cf0 55%, #00B4D8); }
.thumb-3 { background: linear-gradient(135deg, #0a2a52, #7b3ff2 55%, #00B4D8); }
.thumb-chip { font-family: var(--font-mono); font-size: .72rem; background: rgba(0,0,0,.35); color: #eaf4ff; padding: 5px 10px; border-radius: 6px; backdrop-filter: blur(4px); }

.project-body h3 { font-size: 1.35rem; margin-bottom: 12px; }
.project-line { color: var(--text-dim); font-size: .95rem; margin-bottom: 8px; }
.tag-label { display: inline-block; font-family: var(--font-mono); font-size: .7rem; text-transform: uppercase; letter-spacing: .5px; color: var(--accent); margin-right: 6px; }
.project-tags { display: flex; flex-wrap: wrap; gap: 8px; margin: 14px 0 16px; }
.project-tags li { font-size: .75rem; padding: 4px 10px; border-radius: 6px; background: var(--surface-2); border: 1px solid var(--border); color: var(--text-dim); font-family: var(--font-mono); }
.project-link { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; font-size: .92rem; color: var(--accent); }
.project-link svg { transition: transform .2s var(--ease); }
.project-link:hover svg { transform: translateX(4px); }

/* ============================================================
   TIMELINE
   ============================================================ */
.timeline { list-style: none; padding: 0; position: relative; padding-left: 8px; max-width: 760px; }
.timeline::before { content: ""; position: absolute; left: 7px; top: 0; bottom: 36px; width: 2px; background: linear-gradient(to bottom, transparent 0%, var(--drupal-blue) 8%, var(--aqua) 55%, transparent 100%); }
.tl-item { position: relative; padding-left: 36px; padding-bottom: 36px; }
.tl-item:last-child { padding-bottom: 0; }
.tl-dot { position: absolute; left: 0; top: 4px; width: 16px; height: 16px; border-radius: 50%; background: var(--bg); border: 3px solid var(--accent); box-shadow: 0 0 0 4px rgba(0,180,216,.15); }
.tl-years { font-family: var(--font-mono); font-size: .82rem; color: var(--accent); }
.tl-content h3 { font-size: 1.15rem; margin: 4px 0 8px; }
.tl-content p { color: var(--text-dim); font-size: .95rem; }

/* ============================================================
   CERTS
   ============================================================ */
/* ============================================================
   CERTS & OPEN SOURCE
   ============================================================ */
.sub-head { margin-bottom: 20px; }
.sub-head h3 { font-size: 1.25rem; color: var(--heading); font-family: var(--font-head); position: relative; display: inline-block; }
.sub-head h3::after { content: ""; position: absolute; left: 0; bottom: -4px; width: 32px; height: 2px; background: var(--accent); border-radius: 2px; }

.contrib-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 20px; margin-bottom: 40px; }
.contrib-card {
  display: flex; flex-direction: column; justify-content: space-between;
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 24px; transition: transform .25s var(--ease), border-color .25s var(--ease), box-shadow .25s var(--ease);
}
.contrib-card:hover { transform: translateY(-4px); border-color: var(--accent); box-shadow: var(--shadow); }
.contrib-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 12px; }
.contrib-badge { font-family: var(--font-mono); font-size: .72rem; color: var(--accent); background: var(--surface-2); border: 1px solid var(--border); padding: 3px 10px; border-radius: 6px; }
.contrib-card h3 { font-size: 1.18rem; margin-bottom: 8px; color: var(--heading); }
.contrib-card p { color: var(--text-dim); font-size: .92rem; line-height: 1.6; margin-bottom: 18px; }
.contrib-link { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; font-size: .9rem; color: var(--accent); }
.contrib-link svg { transition: transform .2s var(--ease); }
.contrib-link:hover svg { transform: translateX(4px); }

.certs-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 18px; }
.cert-card { display: flex; gap: 14px; align-items: flex-start; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 22px; transition: transform .25s var(--ease), border-color .25s var(--ease); }
.cert-card:hover { transform: translateY(-4px); border-color: var(--accent); }
.cert-icon { flex: 0 0 auto; width: 36px; height: 36px; display: grid; place-items: center; border-radius: 10px; background: linear-gradient(135deg, var(--drupal-blue), var(--aqua)); color: #fff; font-weight: 700; font-size: 1.1rem; }
.cert-card h3 { font-size: 1.02rem; margin-bottom: 2px; }
.cert-date { display: block; font-family: var(--font-mono); font-size: .76rem; color: var(--accent); margin-bottom: 6px; }
.cert-card p { color: var(--text-dim); font-size: .88rem; line-height: 1.5; }

/* ============================================================
   TESTIMONIALS
   ============================================================ */
.quotes { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 20px; }
.quote { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 26px; position: relative; }
.quote::before { content: "\201C"; position: absolute; top: 6px; left: 18px; font-family: var(--font-head); font-size: 3.4rem; color: var(--accent); opacity: .25; }
.quote blockquote { color: var(--text); font-size: .98rem; margin-bottom: 16px; position: relative; z-index: 1; }
.q-name { display: block; font-weight: 600; color: var(--heading); }
.q-role { display: block; color: var(--text-faint); font-size: .85rem; }

/* ============================================================
   CONTACT
   ============================================================ */
.contact-links-wrap { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 16px; }
.clink { display: flex; align-items: center; gap: 14px; padding: 18px 20px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--border); color: var(--text); font-weight: 500; transition: color .2s var(--ease), transform .2s var(--ease), border-color .2s var(--ease), box-shadow .2s var(--ease); }
.clink:hover { color: var(--accent); transform: translateY(-4px); border-color: var(--accent); box-shadow: var(--shadow); }
.clink-ico { flex: 0 0 auto; width: 42px; height: 42px; display: grid; place-items: center; border-radius: 10px; background: var(--surface-2); border: 1px solid var(--border); font-size: .9rem; font-weight: 700; font-family: var(--font-mono); color: var(--accent); }
.clink-body { display: flex; flex-direction: column; line-height: 1.35; }
.clink-title { font-weight: 600; color: var(--heading); }
.clink-sub { font-size: .82rem; color: var(--text-faint); }
.contact-note { margin-top: 20px; color: var(--text-faint); font-size: .88rem; }

/* ============================================================
   FOOTER
   ============================================================ */
.footer { border-top: 1px solid var(--border); padding: 40px 0; background: var(--bg-2); }
.footer-inner { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 12px; }
.footer-tag { color: var(--text-dim); font-size: .92rem; }
.footer-nav { display: flex; gap: 22px; }
.footer-nav a { color: var(--text-dim); font-size: .9rem; }
.footer-nav a:hover { color: var(--accent); }
.footer-copy { color: var(--text-faint); font-size: .82rem; }

/* ============================================================
   SCROLL TO TOP
   ============================================================ */
.to-top {
  position: fixed; right: 22px; bottom: 22px; z-index: 90;
  width: 46px; height: 46px; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--cta); color: #201700; border: none;
  box-shadow: 0 10px 24px -10px rgba(255,180,0,.6);
  opacity: 0; visibility: hidden; transform: translateY(16px) scale(.9);
  transition: opacity .3s var(--ease), transform .3s var(--ease), visibility .3s var(--ease), box-shadow .25s var(--ease);
}
.to-top.show { opacity: 1; visibility: visible; transform: none; }
.to-top:hover { transform: translateY(-3px); box-shadow: 0 16px 30px -12px rgba(255,180,0,.75); }
.to-top:active { transform: scale(.94); }

/* ============================================================
   ACTIVE NAV STATE (desktop + mobile)
   ============================================================ */
.nav-links a.active { color: var(--text); }
.nav-links a.active::after { width: 100%; }
.mobile-menu a.active {
  color: var(--accent); font-weight: 600;
  border-left: 3px solid var(--accent); padding-left: 12px; background: var(--surface);
  border-radius: 6px;
}

/* ============================================================
   SCROLL REVEAL
   ============================================================ */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity .7s var(--ease), transform .7s var(--ease); will-change: opacity, transform; }
.reveal.in { opacity: 1; transform: none; }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 940px) {
  .nav-links { display: none; }
  .hamburger { display: flex; }
  .hero-inner { grid-template-columns: 1fr; gap: 40px; }
  .terminal { order: -1; }
  .about-grid { grid-template-columns: 1fr; }
  .project, .project-reverse { grid-template-columns: 1fr; }
  .project-reverse .project-media { order: 0; }
}
@media (max-width: 560px) {
  .section { padding: 72px 0; }
  .hero { padding: 110px 0 70px; }
  .about-focus { grid-template-columns: 1fr; }
  .hero-cta .btn { flex: 1 1 auto; justify-content: center; }
}

/* ============================================================
   REDUCED MOTION
   ============================================================ */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
  }
  .reveal { opacity: 1 !important; transform: none !important; }
  .drop, .cursor-blink, .scroll-hint span { animation: none !important; }
}
