/* ==========================================================================
   ORXAN MƏMMƏDƏLİ — PORTFOLIO
   Design tokens + layout + motion
   ========================================================================== */

:root{
  --c-primary: #2563EB;
  --c-primary-dim: #1d4fc4;
  --c-secondary: #0F172A;
  --c-accent: #38BDF8;
  --c-bg: #FFFFFF;
  --c-bg-soft: #F6F8FC;
  --c-surface: #FFFFFF;
  --c-border: #E4E9F2;
  --c-text: #0F172A;
  --c-text-soft: #4B5567;
  --c-text-faint: #8895AA;

  --shadow-sm: 0 1px 2px rgba(15,23,42,.04), 0 1px 1px rgba(15,23,42,.03);
  --shadow-md: 0 8px 24px -8px rgba(15,23,42,.12);
  --shadow-lg: 0 24px 60px -20px rgba(15,23,42,.22);

  --radius-sm: 10px;
  --radius-md: 16px;
  --radius-lg: 24px;

  --font-display: 'Space Grotesk', sans-serif;
  --font-body: 'Inter', sans-serif;
  --font-mono: 'JetBrains Mono', monospace;

  --space-1: 8px;  --space-2: 16px; --space-3: 24px;
  --space-4: 32px; --space-5: 48px; --space-6: 64px;
  --space-7: 96px; --space-8: 128px;

  --header-h: 76px;
  --ease: cubic-bezier(.22,1,.36,1);
}

html[data-theme="dark"]{
  --c-bg: #0B1120;
  --c-bg-soft: #0F172A;
  --c-surface: #131B2E;
  --c-border: #21293D;
  --c-text: #EAF0FB;
  --c-text-soft: #A7B2C6;
  --c-text-faint: #6B7690;
  --shadow-md: 0 8px 24px -8px rgba(0,0,0,.5);
  --shadow-lg: 0 24px 60px -20px rgba(0,0,0,.6);
}

*, *::before, *::after{ box-sizing: border-box; }

html{ scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce){
  html{ scroll-behavior: auto; }
  *, *::before, *::after{
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
}

body{
  margin: 0;
  background: var(--c-bg);
  color: var(--c-text);
  font-family: var(--font-body);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  transition: background .4s var(--ease), color .4s var(--ease);
}

img{ max-width: 100%; display: block; }
a{ color: inherit; text-decoration: none; }
button{ font-family: inherit; cursor: pointer; }
ul{ list-style: none; margin: 0; padding: 0; }

::selection{ background: var(--c-accent); color: #0B1120; }

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

h1,h2,h3,h4{
  font-family: var(--font-display);
  color: var(--c-secondary);
  line-height: 1.12;
  margin: 0;
  letter-spacing: -0.02em;
}
html[data-theme="dark"] h1, html[data-theme="dark"] h2,
html[data-theme="dark"] h3, html[data-theme="dark"] h4{ color: var(--c-text); }

p{ margin: 0; color: var(--c-text-soft); }

.eyebrow{
  font-family: var(--font-mono);
  font-size: 12.5px;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--c-primary);
  margin: 0 0 var(--space-2);
}

section{ padding: var(--space-8) clamp(20px, 6vw, 96px); position: relative; }

.section-head{ max-width: 720px; margin-bottom: var(--space-6); }
.section-head h2{ font-size: clamp(28px, 4vw, 44px); }

/* ---------- Loading indicator ---------- */
.loader{
  position: fixed; inset: 0; z-index: 9999;
  background: var(--c-bg);
  display: flex; align-items: center; justify-content: center;
  transition: opacity .6s var(--ease), visibility .6s var(--ease);
}
.loader.is-hidden{ opacity: 0; visibility: hidden; pointer-events: none; }
.loader-mark{ display: flex; flex-direction: column; align-items: center; gap: 14px; }
.loader-mark span{ font-family: var(--font-display); font-size: 28px; font-weight: 700; color: var(--c-primary); letter-spacing: .1em; }
.loader-line{ width: 120px; height: 2px; background: var(--c-border); overflow: hidden; border-radius: 2px; }
.loader-line i{ display: block; width: 40%; height: 100%; background: var(--c-primary); animation: loaderMove 1.1s ease-in-out infinite; }
@keyframes loaderMove{ 0%{ transform: translateX(-100%);} 50%{ transform: translateX(150%);} 100%{ transform: translateX(-100%);} }

/* ---------- Progress bar & spotlight ---------- */
.progress-bar{
  position: fixed; top: 0; left: 0; height: 3px; width: 0%;
  background: linear-gradient(90deg, var(--c-primary), var(--c-accent));
  z-index: 1100; transition: width .1s linear;
}
.spotlight{
  position: fixed; inset: 0; pointer-events: none; z-index: 2;
  background: radial-gradient(600px circle at var(--x,50%) var(--y,50%), rgba(37,99,235,.06), transparent 60%);
  transition: opacity .3s;
}
html[data-theme="dark"] .spotlight{
  background: radial-gradient(600px circle at var(--x,50%) var(--y,50%), rgba(56,189,248,.08), transparent 60%);
}

/* ---------- Header ---------- */
.site-header{
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  height: var(--header-h);
  display: flex; align-items: center;
  transition: background .35s var(--ease), box-shadow .35s var(--ease), border-color .35s var(--ease);
  border-bottom: 1px solid transparent;
}
.site-header.is-scrolled{
  background: color-mix(in srgb, var(--c-bg) 78%, transparent);
  backdrop-filter: blur(16px) saturate(160%);
  -webkit-backdrop-filter: blur(16px) saturate(160%);
  border-bottom-color: var(--c-border);
  box-shadow: var(--shadow-sm);
}
.header-inner{
  width: 100%;
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 clamp(20px, 5vw, 64px);
}
.logo{
  font-family: var(--font-display); font-weight: 700; font-size: 20px;
  letter-spacing: .02em; color: var(--c-secondary);
}
html[data-theme="dark"] .logo{ color: var(--c-text); }
.logo span{ color: var(--c-primary); }

.main-nav ul{ display: flex; gap: var(--space-4); }
.nav-link{
  position: relative; font-size: 14.5px; font-weight: 500; color: var(--c-text-soft);
  padding: 6px 2px; transition: color .25s;
}
.nav-link::after{
  content: ''; position: absolute; left: 0; bottom: 0; height: 2px; width: 0;
  background: var(--c-primary); transition: width .3s var(--ease);
}
.nav-link:hover, .nav-link.is-active{ color: var(--c-text); }
.nav-link:hover::after, .nav-link.is-active::after{ width: 100%; }

.header-actions{ display: flex; align-items: center; gap: 10px; }
.icon-btn{
  width: 38px; height: 38px; display: grid; place-items: center;
  border: 1px solid var(--c-border); background: var(--c-surface); border-radius: 10px;
  color: var(--c-text-soft); transition: all .25s var(--ease);
}
.icon-btn:hover{ color: var(--c-primary); border-color: var(--c-primary); transform: translateY(-1px); }
.icon-moon{ display: none; }
html[data-theme="dark"] .icon-sun{ display: none; }
html[data-theme="dark"] .icon-moon{ display: block; }

.hamburger{
  display: none; width: 38px; height: 38px; border: 1px solid var(--c-border);
  background: var(--c-surface); border-radius: 10px; flex-direction: column;
  align-items: center; justify-content: center; gap: 4px;
}
.hamburger span{ width: 16px; height: 2px; background: var(--c-text); transition: all .3s var(--ease); }
.hamburger[aria-expanded="true"] span:nth-child(1){ transform: translateY(6px) rotate(45deg); }
.hamburger[aria-expanded="true"] span:nth-child(2){ opacity: 0; }
.hamburger[aria-expanded="true"] span:nth-child(3){ transform: translateY(-6px) rotate(-45deg); }

.mobile-nav{
  position: fixed; top: var(--header-h); left: 0; right: 0;
  background: var(--c-bg); border-bottom: 1px solid var(--c-border);
  max-height: 0; overflow: hidden; transition: max-height .4s var(--ease);
  z-index: 999;
}
.mobile-nav.is-open{ max-height: 480px; }
.mobile-nav ul{ padding: var(--space-2) clamp(20px,5vw,64px) var(--space-4); display: flex; flex-direction: column; gap: 4px; }
.mobile-nav a{ display: block; padding: 12px 0; font-size: 16px; color: var(--c-text-soft); border-bottom: 1px solid var(--c-border); }

/* ---------- Command palette ---------- */
.palette-overlay{
  position: fixed; inset: 0; z-index: 1200; background: rgba(11,17,32,.55);
  backdrop-filter: blur(4px);
  display: flex; align-items: flex-start; justify-content: center;
  padding-top: 12vh;
  opacity: 0; visibility: hidden; transition: opacity .25s var(--ease), visibility .25s;
}
.palette-overlay.is-open{ opacity: 1; visibility: visible; }
.palette{
  width: min(560px, 90vw); background: var(--c-surface); border: 1px solid var(--c-border);
  border-radius: var(--radius-md); box-shadow: var(--shadow-lg); overflow: hidden;
  transform: translateY(-12px); transition: transform .25s var(--ease);
}
.palette-overlay.is-open .palette{ transform: translateY(0); }
.palette-input-row{ display: flex; align-items: center; gap: 10px; padding: 16px 18px; border-bottom: 1px solid var(--c-border); color: var(--c-text-faint); }
.palette-input-row input{
  flex: 1; border: none; outline: none; background: transparent; font-size: 15px; color: var(--c-text); font-family: var(--font-body);
}
.palette-input-row kbd{
  font-family: var(--font-mono); font-size: 11px; padding: 3px 6px; border: 1px solid var(--c-border); border-radius: 5px; color: var(--c-text-faint);
}
.palette-results{ max-height: 320px; overflow-y: auto; padding: 8px; }
.palette-results li{
  padding: 10px 12px; border-radius: 8px; font-size: 14px; color: var(--c-text-soft);
  display: flex; justify-content: space-between; cursor: pointer;
}
.palette-results li:hover, .palette-results li.is-active{ background: var(--c-bg-soft); color: var(--c-text); }

/* ---------- Buttons ---------- */
.btn{
  position: relative; display: inline-flex; align-items: center; gap: 8px;
  padding: 14px 26px; border-radius: 12px; font-weight: 600; font-size: 14.5px;
  border: 1px solid transparent; overflow: hidden; transition: transform .25s var(--ease), box-shadow .25s var(--ease), background .25s;
}
.btn span{ position: relative; z-index: 1; display: inline-flex; align-items: center; gap: 8px; }
.btn-primary{ background: var(--c-primary); color: #fff; box-shadow: 0 10px 24px -10px rgba(37,99,235,.55); }
.btn-primary:hover{ transform: translateY(-2px); box-shadow: 0 16px 32px -12px rgba(37,99,235,.6); }
.btn-ghost{ background: transparent; border-color: var(--c-border); color: var(--c-text); }
.btn-ghost:hover{ border-color: var(--c-primary); color: var(--c-primary); transform: translateY(-2px); }
.ripple::after{
  content: ''; position: absolute; border-radius: 50%; background: rgba(255,255,255,.5);
  width: 8px; height: 8px; transform: scale(0); opacity: 0; pointer-events: none;
  left: var(--rx, 50%); top: var(--ry, 50%); translate: -50% -50%;
}
.ripple.is-rippling::after{ animation: rippleAnim .6s ease-out; }
@keyframes rippleAnim{ to{ transform: scale(22); opacity: 0; } }

.text-link{
  display: inline-flex; align-items: center; gap: 8px; font-weight: 600; color: var(--c-primary);
  margin-top: var(--space-3);
}
.text-link svg{ transition: transform .25s var(--ease); }
.text-link:hover svg{ transform: translateX(4px); }

/* ---------- Reveal animation ---------- */
[data-reveal]{ opacity: 0; transform: translateY(28px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
[data-reveal].is-visible{ opacity: 1; transform: translateY(0); }

/* ==========================================================================
   HERO
   ========================================================================== */
.hero{
  min-height: 100vh; display: flex; align-items: center; position: relative;
  padding: calc(var(--header-h) + 40px) clamp(20px, 6vw, 96px) var(--space-6);
  overflow: hidden;
}
.hero-bg{ position: absolute; inset: 0; z-index: 0; }
.blob{
  position: absolute; border-radius: 50%; filter: blur(80px); opacity: .35;
  animation: blobFloat 14s ease-in-out infinite;
}
.blob-1{ width: 460px; height: 460px; background: var(--c-primary); top: -120px; right: -80px; }
.blob-2{ width: 360px; height: 360px; background: var(--c-accent); bottom: -100px; left: -60px; animation-delay: -6s; }
@keyframes blobFloat{ 0%,100%{ transform: translate(0,0) scale(1); } 50%{ transform: translate(-30px, 30px) scale(1.08); } }

.flow{ position: absolute; inset: 0; opacity: .5; }
.flow-path{ fill: none; stroke: var(--c-primary); stroke-width: 1; opacity: .25; stroke-dasharray: 4 6; }
.flow .node{ fill: var(--c-accent); opacity: .6; }
.flow .packet{ fill: var(--c-primary); }
html[data-theme="dark"] .flow-path{ stroke: var(--c-accent); }

.hero-inner{
  position: relative; z-index: 1; width: 100%; max-width: 1280px; margin: 0 auto;
  display: grid; grid-template-columns: 1.1fr .9fr; gap: var(--space-6); align-items: center;
}
.hero-title{ font-size: clamp(42px, 6.5vw, 84px); font-weight: 700; margin: var(--space-2) 0; }
.hero-role{ font-family: var(--font-mono); font-size: clamp(16px, 2vw, 22px); color: var(--c-primary); min-height: 1.6em; margin-bottom: var(--space-3); }
.type-cursor{ animation: blink 1s step-end infinite; color: var(--c-primary); }
@keyframes blink{ 50%{ opacity: 0; } }
.hero-desc{ max-width: 520px; font-size: 16.5px; margin-bottom: var(--space-4); }
.hero-actions{ display: flex; gap: 14px; flex-wrap: wrap; margin-bottom: var(--space-4); }
.hero-social{ display: flex; gap: 16px; }
.hero-social a{
  width: 40px; height: 40px; display: grid; place-items: center; border: 1px solid var(--c-border);
  border-radius: 10px; color: var(--c-text-soft); transition: all .25s var(--ease);
}
.hero-social a:hover{ color: #fff; background: var(--c-primary); border-color: var(--c-primary); transform: translateY(-3px); }

.hero-visual{ position: relative; display: flex; justify-content: center; }
.photo-frame{ position: relative; width: min(360px, 80vw); animation: floatY 6s ease-in-out infinite; }
@keyframes floatY{ 0%,100%{ transform: translateY(0);} 50%{ transform: translateY(-14px);} }
.photo-frame img{ border-radius: var(--radius-lg); box-shadow: var(--shadow-lg); object-fit: cover; aspect-ratio: 1/1; }
.frame-ring{
  position: absolute; inset: -14px; border: 1px dashed var(--c-border); border-radius: calc(var(--radius-lg) + 14px);
  pointer-events: none;
}
.floating-card{
  position: absolute; background: var(--c-surface); border: 1px solid var(--c-border); border-radius: var(--radius-sm);
  box-shadow: var(--shadow-md); padding: 12px 16px; display: flex; flex-direction: column; gap: 2px;
  animation: floatY 7s ease-in-out infinite;
}
.card-top{ top: 6%; left: -6%; animation-delay: -1s; }
.card-bottom{ bottom: 8%; right: -8%; animation-delay: -3s; }
.fc-label{ font-size: 11px; color: var(--c-text-faint); }
.fc-value{ font-family: var(--font-display); font-weight: 700; font-size: 20px; color: var(--c-secondary); }
html[data-theme="dark"] .fc-value{ color: var(--c-text); }

.floating-code{
  position: absolute; bottom: -8%; left: 50%; transform: translateX(-50%);
  background: var(--c-secondary); color: #cfe0ff; font-family: var(--font-mono); font-size: 11.5px;
  padding: 14px 18px; border-radius: var(--radius-sm); box-shadow: var(--shadow-md); line-height: 1.7;
  white-space: nowrap; display: none;
}
.c-kw{ color: #7dd3fc; } .c-tp{ color: #fbbf24; } .c-brace{ color: #94a3b8; }

.scroll-cue{
  position: absolute; bottom: 32px; left: 50%; transform: translateX(-50%);
  width: 26px; height: 42px; border: 2px solid var(--c-border); border-radius: 20px;
}
.scroll-cue span{
  position: absolute; top: 6px; left: 50%; width: 4px; height: 8px; background: var(--c-primary);
  border-radius: 2px; transform: translateX(-50%); animation: cueMove 1.8s ease-in-out infinite;
}
@keyframes cueMove{ 0%{ top: 6px; opacity: 1;} 70%{ top: 24px; opacity: 0;} 100%{ top: 24px; opacity: 0;} }

/* ==========================================================================
   ABOUT
   ========================================================================== */
.about-grid{ display: grid; grid-template-columns: .8fr 1.2fr; gap: var(--space-6); align-items: start; }
.about-photo img{ border-radius: var(--radius-lg); box-shadow: var(--shadow-md); }
.about-copy p{ margin-bottom: var(--space-3); font-size: 15.5px; }
.about-copy strong{ color: var(--c-secondary); }
html[data-theme="dark"] .about-copy strong{ color: var(--c-text); }

.stat-row{ display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--space-2); margin: var(--space-4) 0 var(--space-2); }
.stat-card{
  background: var(--c-bg-soft); border: 1px solid var(--c-border); border-radius: var(--radius-md);
  padding: var(--space-3) var(--space-2); display: flex; flex-direction: column; gap: 4px;
  transition: transform .3s var(--ease), box-shadow .3s var(--ease);
}
.stat-card:hover{ transform: translateY(-4px); box-shadow: var(--shadow-md); }
.stat-num{ font-family: var(--font-display); font-size: 28px; font-weight: 700; color: var(--c-primary); }
.stat-label{ font-size: 12.5px; color: var(--c-text-faint); }

/* ==========================================================================
   PROJECTS
   ========================================================================== */
.filter-row{ display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: var(--space-5); }
.filter-btn{
  padding: 9px 18px; border-radius: 100px; border: 1px solid var(--c-border); background: var(--c-surface);
  color: var(--c-text-soft); font-size: 13.5px; font-weight: 600; transition: all .25s var(--ease);
}
.filter-btn:hover{ border-color: var(--c-primary); color: var(--c-primary); }
.filter-btn.is-active{ background: var(--c-secondary); border-color: var(--c-secondary); color: #fff; }
html[data-theme="dark"] .filter-btn.is-active{ background: var(--c-primary); border-color: var(--c-primary); }

.project-grid{ display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: var(--space-4); }
.project-card{
  background: var(--c-surface); border: 1px solid var(--c-border); border-radius: var(--radius-md); overflow: hidden;
  transition: transform .4s var(--ease), box-shadow .4s var(--ease);
  display: flex; flex-direction: column;
}
.project-card.is-hidden{ display: none; }
.project-card:hover{ transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.project-media{ position: relative; aspect-ratio: 16/10.5; overflow: hidden; background: var(--c-bg-soft); }
.project-media img{ width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.project-card:hover .project-media img{ transform: scale(1.06); }
.project-overlay{ position: absolute; top: 12px; right: 12px; }
.tag{ background: rgba(15,23,42,.75); color: #fff; font-size: 11px; font-weight: 600; padding: 5px 10px; border-radius: 100px; backdrop-filter: blur(4px); }
.project-body{ padding: var(--space-3); display: flex; flex-direction: column; gap: 8px; flex: 1; }
.project-body h3{ font-size: 19px; }
.project-body p{ font-size: 13.5px; }
.project-meta{ font-size: 12px; color: var(--c-text-faint); }
.stack-badges{ display: flex; flex-wrap: wrap; gap: 6px; margin-top: 6px; }
.stack-badges span{
  font-size: 11.5px; font-weight: 600; padding: 4px 10px; border-radius: 100px;
  background: var(--c-bg-soft); color: var(--c-primary); border: 1px solid var(--c-border);
}
.project-links{ display: flex; gap: 14px; margin-top: 8px; }
.project-links a{ font-size: 13px; font-weight: 700; color: var(--c-primary); }
.project-links a:hover{ text-decoration: underline; }

/* ==========================================================================
   EXPERIENCE — TIMELINE
   ========================================================================== */
.timeline{ position: relative; max-width: 860px; margin: 0 auto; padding-left: 32px; }
.timeline::before{
  content: ''; position: absolute; left: 6px; top: 6px; bottom: 6px; width: 2px;
  background: linear-gradient(var(--c-border), var(--c-border));
}
.timeline-item{ position: relative; padding-bottom: var(--space-5); }
.timeline-item:last-child{ padding-bottom: 0; }
.timeline-dot{
  position: absolute; left: -32px; top: 4px; width: 14px; height: 14px; border-radius: 50%;
  background: var(--c-bg); border: 3px solid var(--c-primary);
}
.timeline-date{ font-family: var(--font-mono); font-size: 12.5px; color: var(--c-primary); }
.timeline-content h3{ font-size: 20px; margin: 6px 0 2px; }
.timeline-company{ font-weight: 600; color: var(--c-text-soft); margin-bottom: 8px; }
.timeline-content p{ font-size: 14.5px; margin-bottom: 8px; }

.sub-projects{ display: flex; flex-direction: column; gap: var(--space-2); margin-top: var(--space-2); }
.sub-project{
  background: var(--c-bg-soft); border: 1px solid var(--c-border); border-radius: var(--radius-sm);
  padding: var(--space-2) var(--space-3); transition: transform .3s var(--ease), box-shadow .3s var(--ease);
}
.sub-project:hover{ transform: translateY(-2px); box-shadow: var(--shadow-sm); }
.sub-project-head{ display: flex; justify-content: space-between; align-items: baseline; gap: 8px; flex-wrap: wrap; }
.sub-project-head h4{ font-size: 15px; color: var(--c-secondary); }
html[data-theme="dark"] .sub-project-head h4{ color: var(--c-text); }
.sub-project-date{ font-family: var(--font-mono); font-size: 11.5px; color: var(--c-text-faint); white-space: nowrap; }
.sub-project p{ font-size: 13.5px; margin: 4px 0 0; }
.sub-project .stack-badges{ margin-top: 8px; }

/* ==========================================================================
   SKILLS
   ========================================================================== */
.skills-tabs{ display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: var(--space-5); }
.skill-tab{
  padding: 9px 18px; border-radius: 100px; border: 1px solid var(--c-border); background: var(--c-surface);
  color: var(--c-text-soft); font-size: 13.5px; font-weight: 600; transition: all .25s var(--ease);
}
.skill-tab:hover{ border-color: var(--c-primary); color: var(--c-primary); }
.skill-tab.is-active{ background: var(--c-primary); border-color: var(--c-primary); color: #fff; }

.skill-grid{ display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: var(--space-2); }
.skill-card{
  display: none;
  background: var(--c-surface); border: 1px solid var(--c-border); border-radius: var(--radius-md);
  padding: var(--space-3); transition: transform .3s var(--ease), box-shadow .3s var(--ease), border-color .3s;
}
.skill-card.is-shown{ display: block; }
.skill-card:hover{ transform: translateY(-4px); border-color: var(--c-primary); box-shadow: var(--shadow-md); }
.skill-icon{
  display: inline-grid; place-items: center; width: 40px; height: 40px; border-radius: 10px;
  background: var(--c-bg-soft); color: var(--c-primary); font-family: var(--font-mono); font-weight: 700;
  margin-bottom: 12px; font-size: 14px;
}
.skill-card h4{ font-size: 16px; margin-bottom: 4px; }
.skill-card p{ font-size: 13px; }

/* ==========================================================================
   CLIENTS
   ========================================================================== */
.logo-marquee{ overflow: hidden; -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
.marquee-track{ display: flex; gap: var(--space-5); width: max-content; animation: marquee 26s linear infinite; }
.logo-marquee:hover .marquee-track{ animation-play-state: paused; }
@keyframes marquee{ from{ transform: translateX(0); } to{ transform: translateX(-50%); } }
.client-logo{
  display: flex; align-items: center; gap: 14px; padding: 18px 28px; border: 1px solid var(--c-border);
  border-radius: var(--radius-md); min-width: 260px; background: var(--c-surface);
}
.client-mark{
  flex: 0 0 auto; width: 56px; height: 56px; border-radius: 50%; object-fit: contain;
  background: #fff; padding: 4px; border: 1px solid var(--c-border);
}
.client-mark-text{
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-display); font-weight: 700; font-size: 14px;
  color: var(--c-primary); background: var(--c-bg);
}
.client-text{ display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.client-logo strong{ font-family: var(--font-display); color: var(--c-secondary); font-size: 16px; white-space: nowrap; }
html[data-theme="dark"] .client-logo strong{ color: var(--c-text); }
.client-text span{ font-size: 12.5px; color: var(--c-text-faint); white-space: nowrap; }

/* ==========================================================================
   EDUCATION
   ========================================================================== */
.edu-grid{ display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: var(--space-3); }
.edu-card{
  background: var(--c-surface); border: 1px solid var(--c-border); border-radius: var(--radius-md);
  padding: var(--space-3); transition: transform .3s var(--ease), box-shadow .3s var(--ease);
}
.edu-card:hover{ transform: translateY(-4px); box-shadow: var(--shadow-md); }
.edu-date{ font-family: var(--font-mono); font-size: 12px; color: var(--c-primary); }
.edu-card h3{ font-size: 16.5px; margin: 8px 0 4px; }
.edu-card p{ font-size: 13.5px; }

/* ==========================================================================
   CONTACT
   ========================================================================== */
.contact{ background: var(--c-secondary); border-radius: var(--radius-lg); margin: 0 clamp(20px,6vw,96px) var(--space-8); padding: var(--space-7) clamp(24px, 5vw, 72px); }
.contact h2, .contact .eyebrow{ color: #fff; }
.contact .eyebrow{ opacity: .7; }
.contact-desc{ color: #B7C2DA; max-width: 440px; margin-top: var(--space-2); }
.contact-grid{ display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-6); align-items: start; }
.contact-list{ margin-top: var(--space-4); display: flex; flex-direction: column; gap: var(--space-2); }
.contact-list li{ display: flex; flex-direction: column; gap: 4px; border-bottom: 1px solid rgba(255,255,255,.1); padding-bottom: var(--space-2); }
.contact-label{ font-size: 12px; color: #7C8AAE; text-transform: uppercase; letter-spacing: .08em; }
.contact-value{ color: #fff; font-weight: 600; font-size: 15px; display: inline-flex; align-items: center; gap: 8px; background: none; border: none; padding: 0; text-align: left; width: fit-content; }
.copy-btn{ transition: color .2s; }
.copy-btn:hover{ color: var(--c-accent); }

.contact-form{ background: rgba(255,255,255,.04); border: 1px solid rgba(255,255,255,.12); border-radius: var(--radius-md); padding: var(--space-4); display: flex; flex-direction: column; gap: var(--space-2); }

.contact-form-embed{
  background: #fff; border: 1px solid rgba(255,255,255,.12); border-radius: var(--radius-md);
  overflow: hidden; min-height: 640px;
}
.contact-form-embed iframe{ display: block; width: 100%; height: 900px; border: 0; }
@media (max-width: 1024px){ .contact-form-embed iframe{ height: 780px; } }

.form-row{ display: flex; flex-direction: column; gap: 6px; }
.form-row label{ font-size: 12.5px; color: #9AA8C7; }
.form-row input, .form-row textarea{
  background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.14); border-radius: 10px;
  padding: 12px 14px; color: #fff; font-family: var(--font-body); font-size: 14.5px; resize: vertical;
}
.form-row input:focus, .form-row textarea:focus{ border-color: var(--c-accent); outline: none; }
.form-row input::placeholder, .form-row textarea::placeholder{ color: #6B7690; }

/* ==========================================================================
   FOOTER
   ========================================================================== */
.site-footer{
  display: flex; align-items: center; justify-content: space-between;
  padding: var(--space-3) clamp(20px, 6vw, 96px) var(--space-5);
  border-top: 1px solid var(--c-border);
}
.site-footer p{ font-size: 13px; color: var(--c-text-faint); }
.back-to-top{
  width: 40px; height: 40px; border-radius: 10px; border: 1px solid var(--c-border);
  background: var(--c-surface); color: var(--c-text-soft); display: grid; place-items: center;
  transition: all .25s var(--ease);
}
.back-to-top:hover{ color: #fff; background: var(--c-primary); border-color: var(--c-primary); transform: translateY(-3px); }

/* ==========================================================================
   TOAST
   ========================================================================== */
.toast{
  position: fixed; bottom: 28px; left: 50%; transform: translate(-50%, 20px);
  background: var(--c-secondary); color: #fff; padding: 12px 22px; border-radius: 10px;
  font-size: 14px; font-weight: 600; box-shadow: var(--shadow-lg); z-index: 1300;
  opacity: 0; pointer-events: none; transition: all .35s var(--ease);
}
.toast.is-shown{ opacity: 1; transform: translate(-50%, 0); }

/* ==========================================================================
   RESPONSIVE
   ========================================================================== */
@media (max-width: 1024px){
  .hero-inner{ grid-template-columns: 1fr; }
  .hero-visual{ order: -1; margin-bottom: var(--space-3); }
  .about-grid{ grid-template-columns: 1fr; }
  .about-photo{ max-width: 340px; }
  .contact-grid{ grid-template-columns: 1fr; }
}
@media (max-width: 860px){
  .main-nav{ display: none; }
  .hamburger{ display: flex; }
}
@media (max-width: 600px){
  section{ padding-left: 20px; padding-right: 20px; }
  .stat-row{ grid-template-columns: 1fr 1fr; }
  .stat-row .stat-card:last-child{ grid-column: span 2; }
  .contact{ margin-left: 12px; margin-right: 12px; padding: var(--space-5) 20px; }
  .floating-card{ display: none; }
}
