/* ═══════════════════════════════════════════════════════════════
   AURA AGENCY — LUXURY DARK CINEMATIC CSS
   ═══════════════════════════════════════════════════════════════ */

/* ─── RESET & BASE ───────────────────────────────────────────── */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --bg: #050505;
  --bg2: #080808;
  --surface: #0e0e0e;
  --surface2: #141414;
  --border: rgba(255,255,255,0.06);
  --text: #f0f0f0;
  --text-muted: rgba(240,240,240,0.45);
  --text-dim: rgba(240,240,240,0.25);
  --cyan: #00e5ff;
  --violet: #bf00ff;
  --blue: #0062ff;
  --pink: #ff006e;
  --grad1: linear-gradient(135deg, #00e5ff, #bf00ff);
  --grad2: linear-gradient(135deg, #bf00ff, #0062ff);
  --grad3: linear-gradient(90deg, #00e5ff 0%, #bf00ff 50%, #0062ff 100%);
  --glow-cyan: 0 0 30px rgba(0,229,255,0.3);
  --glow-violet: 0 0 30px rgba(191,0,255,0.3);
  --transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  --font-display: 'Syne', sans-serif;
  --font-body: 'Space Grotesk', sans-serif;
  --font-mono: 'Inter', monospace;
}

html {
  scroll-behavior: auto; /* Lenis handles smooth scroll */
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  overflow-x: hidden;
  cursor: none;
}

a { text-decoration: none; color: inherit; }
img { max-width: 100%; display: block; }
button { cursor: none; border: none; background: none; font-family: inherit; }

.container {
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 40px;
}

/* ─── GRAIN CANVAS ───────────────────────────────────────────── */
#grain-canvas {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 9999;
  pointer-events: none;
  opacity: 0.032;
  mix-blend-mode: overlay;
}

/* ─── CUSTOM CURSOR ──────────────────────────────────────────── */
#cursor-wrapper {
  position: fixed;
  top: 0; left: 0;
  z-index: 10000;
  pointer-events: none;
  mix-blend-mode: difference;
}

#cursor-dot {
  position: absolute;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: white;
  transform: translate(-50%, -50%);
  transition: width 0.2s, height 0.2s;
}

#cursor-ring {
  position: absolute;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1.5px solid rgba(255,255,255,0.7);
  transform: translate(-50%, -50%);
  transition: width 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94),
              height 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94),
              opacity 0.3s;
}

#cursor-glow {
  position: absolute;
  width: 200px;
  height: 200px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(0,229,255,0.08) 0%, transparent 70%);
  transform: translate(-50%, -50%);
  transition: none;
  pointer-events: none;
}

body.cursor-hover #cursor-dot {
  width: 10px;
  height: 10px;
}

body.cursor-hover #cursor-ring {
  width: 60px;
  height: 60px;
  opacity: 0.5;
}

/* ─── PAGE TRANSITION ────────────────────────────────────────── */
#page-transition {
  position: fixed;
  inset: 0;
  z-index: 9998;
  display: flex;
  flex-direction: column;
  pointer-events: none;
}

.transition-strip {
  flex: 1;
  background: var(--bg);
  transform: scaleY(0);
  transform-origin: bottom;
}

/* ─── NAVBAR ──────────────────────────────────────────────────── */
#navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  transition: background 0.4s ease, backdrop-filter 0.4s ease;
}

#navbar.scrolled {
  background: rgba(5,5,5,0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 24px 40px;
  transition: padding 0.4s ease;
}

#navbar.scrolled .nav-inner {
  padding: 16px 40px;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 800;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

.logo-text {
  background: var(--grad1);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.logo-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--cyan);
  box-shadow: 0 0 8px var(--cyan);
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.6; transform: scale(0.8); }
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 8px;
}

.nav-link {
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
  padding: 8px 16px;
  border-radius: 100px;
  transition: color 0.3s ease;
  position: relative;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 4px; left: 50%; right: 50%;
  height: 1px;
  background: var(--cyan);
  transition: left 0.3s ease, right 0.3s ease;
}

.nav-link:hover {
  color: var(--text);
}

.nav-link:hover::after {
  left: 16px; right: 16px;
}

.nav-cta {
  background: rgba(0,229,255,0.08);
  border: 1px solid rgba(0,229,255,0.3);
  color: var(--cyan) !important;
  padding: 10px 24px !important;
}

.nav-cta:hover {
  background: rgba(0,229,255,0.15);
  box-shadow: var(--glow-cyan);
}

.nav-cta::after { display: none; }

.nav-burger {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 8px;
}

.nav-burger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--text);
  transition: var(--transition);
}

.nav-mobile {
  display: none;
  flex-direction: column;
  padding: 20px 40px 30px;
  background: rgba(5,5,5,0.97);
  border-top: 1px solid var(--border);
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.nav-mobile.open {
  max-height: 400px;
}

.mobile-link {
  font-size: 28px;
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: 0.05em;
  padding: 12px 0;
  border-bottom: 1px solid var(--border);
  color: var(--text-muted);
  transition: color 0.3s;
}

.mobile-link:hover { color: var(--cyan); }

/* ─── SECTION COMMONS ────────────────────────────────────────── */
section {
  position: relative;
  overflow: hidden;
}

.section-label {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--text-dim);
  display: block;
  margin-bottom: 20px;
}

.section-header {
  margin-bottom: 72px;
}

.section-title {
  font-family: var(--font-display);
  font-size: clamp(40px, 5vw, 72px);
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -0.02em;
}

.section-title em {
  font-style: normal;
  background: var(--grad1);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.gradient-text {
  background: var(--grad1);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ─── BUTTONS ────────────────────────────────────────────────── */
.btn-primary, .btn-ghost {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 16px 36px;
  border-radius: 100px;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  position: relative;
  overflow: hidden;
  transition: var(--transition);
}

.btn-primary {
  background: var(--grad1);
  color: #000;
}

.btn-primary .btn-fill {
  position: absolute;
  inset: 0;
  background: white;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  z-index: -1;
}

.btn-primary:hover .btn-fill { transform: scaleX(1); }
.btn-primary:hover { box-shadow: 0 0 40px rgba(0,229,255,0.4); }

.btn-ghost {
  border: 1px solid var(--border);
  color: var(--text-muted);
  background: transparent;
}

.btn-ghost:hover {
  border-color: var(--cyan);
  color: var(--cyan);
  box-shadow: var(--glow-cyan);
}

.btn-arrow {
  display: inline-block;
  transition: transform 0.3s ease;
}
.btn-primary:hover .btn-arrow { transform: translateX(4px); }

/* ─── HERO ───────────────────────────────────────────────────── */
#hero {
  height: 100vh;
  min-height: 700px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

#hero-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: radial-gradient(ellipse at center bottom, rgba(5,5,5,0.2) 0%, rgba(5,5,5,0.7) 70%),
              radial-gradient(ellipse at center top, transparent 0%, rgba(5,5,5,0.5) 100%);
}

.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  max-width: 900px;
  padding: 0 20px;
}

.hero-eyebrow {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.35em;
  text-transform: uppercase;
  color: var(--cyan);
  margin-bottom: 32px;
  opacity: 0;
  transform: translateY(20px);
}

.hero-headline {
  font-family: var(--font-display);
  font-size: clamp(56px, 9vw, 130px);
  font-weight: 900;
  line-height: 0.95;
  letter-spacing: -0.03em;
  margin-bottom: 32px;
  overflow: hidden;
}

.hero-line {
  display: block;
  overflow: hidden;
}

.hero-word {
  display: inline-block;
  margin-right: 0.2em;
  opacity: 0;
  transform: translateY(100%) rotateX(-20deg);
  filter: blur(8px);
}

.hero-sub {
  font-size: clamp(15px, 1.6vw, 18px);
  color: var(--text-muted);
  line-height: 1.6;
  max-width: 500px;
  margin: 0 auto 48px;
  opacity: 0;
}

.hero-actions {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 64px;
  opacity: 0;
}

.hero-stats {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 40px;
  opacity: 0;
}

.stat-item {
  text-align: center;
}

.stat-num {
  font-family: var(--font-display);
  font-size: clamp(28px, 3vw, 42px);
  font-weight: 800;
  display: inline;
}

.stat-plus {
  font-family: var(--font-display);
  font-size: clamp(18px, 2vw, 26px);
  font-weight: 700;
  color: var(--cyan);
}

.stat-label {
  display: block;
  font-size: 11px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-top: 4px;
}

.stat-divider {
  width: 1px;
  height: 40px;
  background: var(--border);
}

/* Scroll hint */
.scroll-hint {
  position: absolute;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  opacity: 0;
  animation: scrollHintFade 2s ease 2.5s forwards;
}

@keyframes scrollHintFade {
  to { opacity: 1; }
}

.scroll-line {
  width: 1px;
  height: 50px;
  background: linear-gradient(to bottom, transparent, var(--cyan));
  animation: scrollLineAnim 1.5s ease-in-out infinite;
}

@keyframes scrollLineAnim {
  0% { transform: scaleY(0); transform-origin: top; }
  50% { transform: scaleY(1); transform-origin: top; }
  51% { transform: scaleY(1); transform-origin: bottom; }
  100% { transform: scaleY(0); transform-origin: bottom; }
}

.scroll-text {
  font-size: 10px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--text-dim);
}

/* ─── IDENTITY ───────────────────────────────────────────────── */
#identity {
  padding: 140px 0 0;
  background: var(--bg);
}

.identity-bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
}

.identity-shape {
  position: absolute;
  border-radius: 50%;
  filter: blur(100px);
  opacity: 0.06;
}

.identity-shape.shape-1 {
  width: 600px; height: 600px;
  background: var(--cyan);
  top: -100px; left: -200px;
}
.identity-shape.shape-2 {
  width: 500px; height: 500px;
  background: var(--violet);
  top: 100px; right: -150px;
}
.identity-shape.shape-3 {
  width: 400px; height: 400px;
  background: var(--blue);
  bottom: 0; left: 30%;
}

.identity-inner {
  position: relative;
  z-index: 1;
}

.identity-label {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 64px;
}

.label-line {
  width: 40px;
  height: 1px;
  background: var(--cyan);
}

.label-text {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--text-dim);
}

.identity-statement {
  margin-bottom: 80px;
}

.identity-line {
  font-family: var(--font-display);
  font-size: clamp(36px, 5.5vw, 80px);
  font-weight: 800;
  line-height: 1.08;
  letter-spacing: -0.02em;
  overflow: hidden;
  transform: translateY(60px);
  opacity: 0;
}

.identity-body {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  padding-bottom: 100px;
}

.identity-text p {
  font-size: clamp(15px, 1.4vw, 17px);
  line-height: 1.75;
  color: var(--text-muted);
  margin-bottom: 20px;
}

.identity-facts {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.fact-card {
  display: flex;
  align-items: center;
  gap: 24px;
  padding: 24px 32px;
  border: 1px solid var(--border);
  border-radius: 16px;
  background: var(--surface);
  transition: var(--transition);
}

.fact-card:hover {
  border-color: rgba(0,229,255,0.2);
  background: rgba(0,229,255,0.03);
  transform: translateX(8px);
}

.fact-num {
  font-family: var(--font-display);
  font-size: 36px;
  font-weight: 800;
  background: var(--grad1);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.fact-label {
  font-size: 14px;
  color: var(--text-muted);
  font-weight: 500;
}

/* Ticker */
.ticker-wrap {
  overflow: hidden;
  padding: 32px 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.ticker-track {
  display: flex;
  gap: 40px;
  white-space: nowrap;
  animation: tickerScroll 25s linear infinite;
  width: max-content;
}

@keyframes tickerScroll {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

.ticker-track span {
  font-family: var(--font-display);
  font-size: clamp(14px, 1.5vw, 18px);
  font-weight: 600;
  letter-spacing: 0.05em;
  color: var(--text-muted);
  text-transform: uppercase;
}

.ticker-dot {
  color: var(--cyan) !important;
}

/* ─── SERVICES ───────────────────────────────────────────────── */
#services {
  padding: 140px 0;
  background: var(--bg);
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.service-card {
  position: relative;
  padding: 40px;
  border: 1px solid var(--border);
  border-radius: 20px;
  background: var(--surface);
  overflow: hidden;
  transition: border-color 0.4s ease, background 0.4s ease;
  transform-style: preserve-3d;
  cursor: none;
}

.service-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--grad1);
  opacity: 0;
  transition: opacity 0.4s ease;
  border-radius: inherit;
}

.service-card:hover {
  border-color: rgba(0,229,255,0.3);
}

.service-card:hover .card-glow {
  opacity: 1;
}

.card-glow {
  position: absolute;
  inset: -1px;
  border-radius: inherit;
  background: var(--grad1);
  opacity: 0;
  z-index: -1;
  filter: blur(20px);
  transition: opacity 0.4s ease;
}

.card-number {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.2em;
  color: var(--text-dim);
  margin-bottom: 32px;
  font-family: var(--font-mono);
}

.card-icon {
  width: 52px;
  height: 52px;
  margin-bottom: 24px;
  color: var(--cyan);
  opacity: 0.8;
  transition: opacity 0.3s ease, transform 0.4s ease;
}

.service-card:hover .card-icon {
  opacity: 1;
  transform: scale(1.1) rotate(5deg);
}

.card-title {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 700;
  margin-bottom: 16px;
  letter-spacing: -0.01em;
}

.card-desc {
  font-size: 14px;
  line-height: 1.7;
  color: var(--text-muted);
  margin-bottom: 24px;
}

.card-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 32px;
}

.card-tags span {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 6px 12px;
  border-radius: 100px;
  border: 1px solid var(--border);
  color: var(--text-dim);
  transition: var(--transition);
}

.service-card:hover .card-tags span {
  border-color: rgba(0,229,255,0.2);
  color: var(--text-muted);
}

.card-arrow {
  font-size: 20px;
  color: var(--text-dim);
  transition: transform 0.3s ease, color 0.3s ease;
}

.service-card:hover .card-arrow {
  transform: translateX(6px);
  color: var(--cyan);
}

/* ─── PORTFOLIO ──────────────────────────────────────────────── */
#portfolio {
  padding: 140px 0;
  background: var(--bg2);
}

.portfolio-filters {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 56px;
}

.filter-btn {
  padding: 10px 24px;
  border-radius: 100px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  border: 1px solid var(--border);
  color: var(--text-muted);
  background: transparent;
  transition: var(--transition);
}

.filter-btn.active,
.filter-btn:hover {
  background: rgba(0,229,255,0.08);
  border-color: rgba(0,229,255,0.4);
  color: var(--cyan);
}

.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.portfolio-item {
  position: relative;
  border-radius: 20px;
  overflow: hidden;
  transition: transform 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.portfolio-item.hidden {
  display: none;
}

.portfolio-item:hover {
  transform: translateY(-8px);
}

.portfolio-img-wrap {
  position: relative;
  aspect-ratio: 3/4;
  overflow: hidden;
  border-radius: 20px;
  cursor: none;
}

.portfolio-img {
  width: 100%;
  height: 100%;
  transition: transform 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  display: flex;
  align-items: center;
  justify-content: center;
}

.portfolio-item:hover .portfolio-img {
  transform: scale(1.05);
}

/* Portfolio Visual Designs */
.portfolio-visual {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
}

.visual-label {
  position: absolute;
  font-family: var(--font-display);
  font-size: 48px;
  font-weight: 900;
  letter-spacing: 0.2em;
  color: rgba(255,255,255,0.06);
  z-index: 1;
}

/* Fashion Visual */
.fashion-visual .visual-ring {
  position: absolute;
  border-radius: 50%;
  border: 1px solid;
  animation: spinRing 8s linear infinite;
}
.visual-ring.r1 { width: 120px; height: 120px; border-color: rgba(0,229,255,0.3); }
.visual-ring.r2 { width: 200px; height: 200px; border-color: rgba(191,0,255,0.2); animation-direction: reverse; animation-duration: 12s; }
.visual-ring.r3 { width: 280px; height: 280px; border-color: rgba(0,98,255,0.15); animation-duration: 16s; }

@keyframes spinRing {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

/* Tech Visual */
.tech-visual .tech-grid-lines {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(0,229,255,0.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0,229,255,0.08) 1px, transparent 1px);
  background-size: 30px 30px;
}

/* Food Visual */
.food-circle {
  position: absolute;
  border-radius: 50%;
  animation: floatBubble 4s ease-in-out infinite;
}
.food-circle.fc1 { width: 160px; height: 160px; background: radial-gradient(circle, rgba(255,150,0,0.15), transparent); }
.food-circle.fc2 { width: 100px; height: 100px; background: radial-gradient(circle, rgba(255,50,0,0.1), transparent); top: 30%; left: 30%; animation-delay: -2s; }

@keyframes floatBubble {
  0%, 100% { transform: translateY(0) scale(1); }
  50% { transform: translateY(-20px) scale(1.05); }
}

/* Lifestyle Visual */
.life-hex {
  position: absolute;
  width: 120px;
  height: 120px;
  background: rgba(191,0,255,0.1);
  clip-path: polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%);
  animation: hexRotate 6s ease-in-out infinite;
}
.life-hex.lh1 { animation-delay: -3s; }
.life-hex.lh2 { width: 200px; height: 200px; background: rgba(0,229,255,0.05); animation-direction: reverse; }

@keyframes hexRotate {
  0%, 100% { transform: rotate(0deg) scale(1); }
  50% { transform: rotate(30deg) scale(1.1); }
}

/* Fashion 2 Visual */
.f2-shape {
  position: absolute;
  background: rgba(255,0,110,0.12);
  animation: morphShape 5s ease-in-out infinite;
}
.f2-shape.s1 { width: 150px; height: 150px; border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%; }
.f2-shape.s2 { width: 100px; height: 100px; border-radius: 70% 30% 30% 70% / 70% 70% 30% 30%; animation-delay: -2.5s; }

@keyframes morphShape {
  0%, 100% { border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%; }
  50% { border-radius: 70% 30% 30% 70% / 70% 70% 30% 30%; }
}

/* Tech 2 Visual */
.tech2-orb {
  width: 160px; height: 160px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(0,98,255,0.3) 0%, transparent 70%);
  animation: orbPulse 3s ease-in-out infinite;
  box-shadow: 0 0 60px rgba(0,98,255,0.2);
}

@keyframes orbPulse {
  0%, 100% { transform: scale(1); opacity: 0.8; }
  50% { transform: scale(1.2); opacity: 1; }
}

.portfolio-hover-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.6);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.3s ease;
  backdrop-filter: blur(4px);
}

.portfolio-item:hover .portfolio-hover-overlay {
  opacity: 1;
}

.portfolio-cta {
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--cyan);
  border: 1px solid var(--cyan);
  padding: 12px 28px;
  border-radius: 100px;
  transform: translateY(20px);
  transition: transform 0.3s ease 0.05s;
}

.portfolio-item:hover .portfolio-cta {
  transform: translateY(0);
}

.portfolio-info {
  padding: 20px 4px 0;
}

.portfolio-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
}

.portfolio-cat {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--cyan);
}

.portfolio-year {
  font-size: 11px;
  color: var(--text-dim);
}

.portfolio-title {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 6px;
  letter-spacing: -0.01em;
}

.portfolio-result {
  font-size: 13px;
  color: var(--text-muted);
}

/* ─── CASE STUDY MODAL ────────────────────────────────────────── */
.case-modal {
  position: fixed;
  inset: 0;
  z-index: 5000;
  background: var(--bg);
  overflow-y: auto;
  opacity: 0;
  pointer-events: none;
  transform: scale(1.02);
  transition: opacity 0.5s ease, transform 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.case-modal.open {
  opacity: 1;
  pointer-events: all;
  transform: scale(1);
}

.modal-close {
  position: fixed;
  top: 32px;
  right: 40px;
  z-index: 5001;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: rgba(14,14,14,0.8);
  backdrop-filter: blur(10px);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  color: var(--text-muted);
  transition: var(--transition);
}

.modal-close:hover {
  border-color: var(--cyan);
  color: var(--cyan);
  box-shadow: var(--glow-cyan);
}

.modal-inner {
  max-width: 900px;
  margin: 0 auto;
  padding: 100px 40px 80px;
}

.modal-hero-bg {
  height: 400px;
  border-radius: 24px;
  margin-bottom: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  position: relative;
}

.modal-meta {
  display: flex;
  gap: 16px;
  margin-bottom: 20px;
  flex-wrap: wrap;
}

.modal-tag {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  padding: 6px 16px;
  border-radius: 100px;
  background: rgba(0,229,255,0.08);
  border: 1px solid rgba(0,229,255,0.2);
  color: var(--cyan);
}

.modal-title {
  font-family: var(--font-display);
  font-size: clamp(36px, 5vw, 72px);
  font-weight: 900;
  letter-spacing: -0.02em;
  margin-bottom: 16px;
}

.modal-result-headline {
  font-size: clamp(18px, 2vw, 24px);
  color: var(--cyan);
  font-weight: 600;
  margin-bottom: 60px;
}

.modal-sections {
  display: flex;
  flex-direction: column;
  gap: 60px;
}

.modal-section {
  padding: 40px;
  border: 1px solid var(--border);
  border-radius: 20px;
  background: var(--surface);
}

.modal-section-label {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--text-dim);
  margin-bottom: 16px;
}

.modal-section h3 {
  font-family: var(--font-display);
  font-size: 28px;
  font-weight: 700;
  margin-bottom: 16px;
}

.modal-section p {
  font-size: 16px;
  line-height: 1.75;
  color: var(--text-muted);
}

.modal-results-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 24px;
}

.modal-result-card {
  text-align: center;
  padding: 24px;
  border: 1px solid rgba(0,229,255,0.1);
  border-radius: 12px;
  background: rgba(0,229,255,0.03);
}

.modal-result-card .result-num {
  font-family: var(--font-display);
  font-size: 36px;
  font-weight: 800;
  background: var(--grad1);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  display: block;
  margin-bottom: 8px;
}

.modal-result-card .result-label {
  font-size: 12px;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

/* ─── ABOUT STORY / TIMELINE ─────────────────────────────────── */
#about-story {
  padding: 140px 0;
  background: var(--bg);
}

.timeline {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 0;
}

.timeline-item {
  display: grid;
  grid-template-columns: 100px 40px 1fr;
  gap: 0 32px;
  min-height: 120px;
  opacity: 0;
  transform: translateX(-40px);
}

.timeline-year {
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 700;
  color: var(--text-dim);
  letter-spacing: 0.1em;
  text-align: right;
  padding-top: 4px;
}

.timeline-connector {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.timeline-circle {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--bg);
  border: 2px solid var(--border);
  flex-shrink: 0;
  transition: border-color 0.3s, background 0.3s;
  margin-top: 2px;
}

.timeline-item:hover .timeline-circle,
.timeline-item.timeline-current .timeline-circle {
  border-color: var(--cyan);
  background: var(--cyan);
  box-shadow: 0 0 12px var(--cyan);
}

.timeline-line {
  flex: 1;
  width: 1px;
  background: var(--border);
  margin-top: 8px;
}

.timeline-content {
  padding: 0 0 60px 0;
}

.timeline-content h3 {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 700;
  margin-bottom: 12px;
  letter-spacing: -0.01em;
}

.timeline-content p {
  font-size: 15px;
  line-height: 1.7;
  color: var(--text-muted);
  max-width: 500px;
}

/* ─── SOCIAL PROOF ───────────────────────────────────────────── */
#social-proof {
  padding: 100px 0;
  background: var(--bg2);
  overflow: hidden;
}

.proof-header {
  margin-bottom: 60px;
}

.proof-title {
  font-family: var(--font-display);
  font-size: clamp(32px, 4vw, 56px);
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-top: 12px;
}

.proof-title em {
  font-style: normal;
  background: var(--grad1);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.brand-ticker-wrap {
  overflow: hidden;
  padding: 32px 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  margin-bottom: 80px;
}

.brand-ticker-track {
  display: flex;
  gap: 60px;
  white-space: nowrap;
  animation: brandTicker 30s linear infinite;
  width: max-content;
}

@keyframes brandTicker {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

.brand-name {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-muted);
  transition: color 0.3s;
}

.brand-name:hover { color: var(--text); }

.brand-sep {
  color: rgba(0,229,255,0.3);
  font-size: 14px;
}

.testimonials-container {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.testimonial-card {
  padding: 40px;
  border: 1px solid var(--border);
  border-radius: 20px;
  background: var(--surface);
  position: relative;
  transition: var(--transition);
}

.testimonial-card:hover {
  border-color: rgba(0,229,255,0.2);
  transform: translateY(-4px);
  box-shadow: 0 20px 60px rgba(0,0,0,0.3);
}

.testi-quote {
  font-family: Georgia, serif;
  font-size: 80px;
  line-height: 0.5;
  color: rgba(0,229,255,0.15);
  margin-bottom: 20px;
}

.testi-text {
  font-size: 15px;
  line-height: 1.7;
  color: var(--text-muted);
  margin-bottom: 32px;
  font-style: italic;
}

.testi-author {
  display: flex;
  align-items: center;
  gap: 16px;
}

.testi-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--grad1);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: 700;
  color: #000;
  flex-shrink: 0;
}

.testi-author strong {
  display: block;
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 3px;
}

.testi-author span {
  font-size: 12px;
  color: var(--text-dim);
}

/* ─── CONTACT ────────────────────────────────────────────────── */
#contact {
  padding: 140px 0;
  background: var(--bg);
  position: relative;
}

.contact-bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
}

.contact-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(120px);
  opacity: 0.06;
}

.orb1 {
  width: 700px; height: 700px;
  background: var(--violet);
  top: -200px; right: -200px;
}

.orb2 {
  width: 500px; height: 500px;
  background: var(--cyan);
  bottom: -100px; left: -100px;
}

.contact-inner {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 100px;
  align-items: start;
  position: relative;
  z-index: 1;
}

.contact-title {
  font-family: var(--font-display);
  font-size: clamp(36px, 4.5vw, 64px);
  font-weight: 900;
  line-height: 1.05;
  letter-spacing: -0.02em;
  margin: 16px 0 24px;
}

.contact-title em {
  font-style: normal;
  background: var(--grad1);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.contact-sub {
  font-size: 15px;
  line-height: 1.7;
  color: var(--text-muted);
  margin-bottom: 48px;
  max-width: 380px;
}

.contact-info {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.contact-info-item {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 14px;
  color: var(--text-muted);
  transition: color 0.3s ease;
}

.contact-info-item:hover { color: var(--cyan); }

.info-icon {
  font-size: 16px;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--border);
  border-radius: 50%;
  transition: border-color 0.3s, box-shadow 0.3s;
}

.contact-info-item:hover .info-icon {
  border-color: var(--cyan);
  box-shadow: var(--glow-cyan);
}

/* Contact Form */
.contact-form {
  display: flex;
  flex-direction: column;
  gap: 8px;
  position: relative;
}

.form-group {
  position: relative;
  margin-bottom: 16px;
}

.form-group.floating input,
.form-group.floating textarea,
.form-group.floating select {
  width: 100%;
  background: var(--surface);
  border: none;
  border-bottom: 1px solid var(--border);
  border-radius: 0;
  padding: 20px 0 12px;
  font-size: 15px;
  font-family: var(--font-body);
  color: var(--text);
  outline: none;
  transition: border-color 0.3s ease;
  -webkit-appearance: none;
  appearance: none;
}

.form-group.floating textarea {
  resize: none;
  min-height: 80px;
}

.form-group.floating select option {
  background: var(--surface);
  color: var(--text);
}

.form-group.floating input:focus,
.form-group.floating textarea:focus,
.form-group.floating select:focus {
  outline: none;
}

.form-group.floating label {
  position: absolute;
  left: 0;
  top: 20px;
  font-size: 14px;
  color: var(--text-dim);
  transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  pointer-events: none;
}

.form-group.floating input:focus ~ label,
.form-group.floating input:not(:placeholder-shown) ~ label,
.form-group.floating textarea:focus ~ label,
.form-group.floating textarea:not(:placeholder-shown) ~ label,
.form-group.floating select:focus ~ label,
.form-group.floating select:not(:placeholder-shown) ~ label {
  top: 2px;
  font-size: 10px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--cyan);
}

.input-line {
  position: absolute;
  bottom: 0; left: 0;
  width: 0;
  height: 1px;
  background: var(--grad1);
  transition: width 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.form-group.floating input:focus ~ .input-line,
.form-group.floating textarea:focus ~ .input-line,
.form-group.floating select:focus ~ .input-line {
  width: 100%;
}

.btn-submit {
  position: relative;
  margin-top: 24px;
  padding: 18px 48px;
  border-radius: 100px;
  background: var(--grad1);
  color: #000;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  overflow: hidden;
  align-self: flex-start;
  transition: box-shadow 0.4s ease, transform 0.3s ease;
}

.btn-submit:hover {
  box-shadow: 0 0 40px rgba(0,229,255,0.4);
  transform: translateY(-2px);
}

.submit-text, .submit-loading, .submit-success {
  position: relative;
  z-index: 1;
  display: block;
  transition: opacity 0.3s, transform 0.3s;
}

.submit-loading, .submit-success {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  white-space: nowrap;
  opacity: 0;
}

.btn-submit.loading .submit-text { opacity: 0; }
.btn-submit.loading .submit-loading { opacity: 1; }
.btn-submit.success .submit-text { opacity: 0; }
.btn-submit.success .submit-success { opacity: 1; }
.btn-submit.success { background: linear-gradient(135deg, #00c853, #00e676); }

.btn-submit .btn-fill {
  position: absolute;
  inset: 0;
  background: white;
  transform: scaleX(0);
  transform-origin: left;
  z-index: 0;
  transition: transform 0.4s ease;
}

#contact-particles {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
}

/* ─── FOOTER ─────────────────────────────────────────────────── */
#footer {
  background: var(--bg);
  border-top: 1px solid var(--border);
  padding: 80px 0 40px;
}

.footer-top {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 80px;
  margin-bottom: 60px;
}

.footer-brand .logo-text {
  font-family: var(--font-display);
  font-size: 28px;
  font-weight: 900;
  letter-spacing: 0.15em;
  margin-bottom: 16px;
  display: block;
}

.footer-brand p {
  font-size: 14px;
  line-height: 1.7;
  color: var(--text-dim);
}

.footer-nav {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
}

.footer-col {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer-col h4 {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--text-dim);
  margin-bottom: 4px;
}

.footer-col a {
  font-size: 14px;
  color: var(--text-muted);
  transition: color 0.3s;
}

.footer-col a:hover { color: var(--cyan); }

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 32px;
  border-top: 1px solid var(--border);
  font-size: 12px;
  color: var(--text-dim);
}

.footer-built {
  color: var(--text-dim);
  font-style: italic;
}

/* ─── MAGNETIC ELEMENTS ──────────────────────────────────────── */
.magnetic {
  transition: transform 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  will-change: transform;
}

/* ─── REVEAL ANIMATIONS ──────────────────────────────────────── */
.reveal-title {
  opacity: 0;
  transform: translateY(40px);
}

.reveal-line {
  opacity: 0;
  transform: translateY(60px);
}

/* ─── LOADING STATE ──────────────────────────────────────────── */
.page-loading {
  overflow: hidden;
}

/* ─── MOBILE RESPONSIVE ──────────────────────────────────────── */
@media (max-width: 1024px) {
  .services-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .portfolio-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .identity-body {
    grid-template-columns: 1fr;
    gap: 48px;
  }

  .testimonials-container {
    grid-template-columns: 1fr;
    max-width: 600px;
  }

  .contact-inner {
    grid-template-columns: 1fr;
    gap: 60px;
  }

  .footer-top {
    grid-template-columns: 1fr;
    gap: 48px;
  }
}

@media (max-width: 768px) {
  .container { padding: 0 24px; }

  .nav-links { display: none; }
  .nav-burger { display: flex; }
  .nav-mobile { display: flex; }
  .nav-inner { padding: 20px 24px; }

  #navbar.scrolled .nav-inner { padding: 14px 24px; }

  #hero { min-height: 100svh; }

  .hero-content { padding: 0 16px; }

  .hero-stats {
    gap: 20px;
    flex-wrap: wrap;
    justify-content: center;
  }

  .stat-divider { display: none; }

  .services-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .portfolio-grid {
    grid-template-columns: 1fr;
  }

  .portfolio-item:nth-child(n+4) { display: none; }

  .timeline-item {
    grid-template-columns: 60px 32px 1fr;
    gap: 0 16px;
  }

  .footer-top {
    grid-template-columns: 1fr;
  }

  .footer-nav {
    grid-template-columns: repeat(2, 1fr);
  }

  .footer-bottom {
    flex-direction: column;
    gap: 12px;
    text-align: center;
  }

  body { cursor: auto; }
  #cursor-wrapper { display: none; }

  .modal-inner { padding: 80px 24px 60px; }
  .modal-results-grid { grid-template-columns: 1fr; }

  .portfolio-filters { gap: 6px; }

  .filter-btn { padding: 8px 16px; font-size: 11px; }

  .identity-statement {
    margin-bottom: 48px;
  }
}

@media (max-width: 480px) {
  .hero-actions {
    flex-direction: column;
    align-items: center;
  }

  .btn-primary, .btn-ghost {
    width: 100%;
    max-width: 320px;
    justify-content: center;
  }

  section { padding: 80px 0 !important; }

  .section-header { margin-bottom: 40px; }

  .identity-line { font-size: clamp(28px, 8vw, 48px); }

  .timeline-item { grid-template-columns: 50px 24px 1fr; gap: 0 12px; }
  .timeline-year { font-size: 12px; }
  .timeline-content h3 { font-size: 18px; }
  .timeline-content p { font-size: 14px; }

  .testimonials-container { grid-template-columns: 1fr; }

  .modal-results-grid { grid-template-columns: 1fr; }
  .modal-section { padding: 24px; }

  .contact-inner { gap: 40px; }
}

/* ─── SECTION AMBIENT BG ─────────────────────────────────────── */
#services {
  background: linear-gradient(180deg, var(--bg) 0%, rgba(0,229,255,0.012) 50%, var(--bg) 100%);
}

#about-story {
  background: linear-gradient(180deg, var(--bg) 0%, rgba(191,0,255,0.012) 50%, var(--bg) 100%);
}

/* ─── HOVER LIGHT SWEEP ──────────────────────────────────────── */
.service-card::after {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 50%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255,255,255,0.04),
    transparent
  );
  transition: left 0.6s ease;
}

.service-card:hover::after {
  left: 150%;
}

/* ─── PORTFOLIO ITEM HOVER GLOW ──────────────────────────────── */
.portfolio-img-wrap::after {
  content: '';
  position: absolute;
  inset: -2px;
  border-radius: 22px;
  background: var(--grad1);
  opacity: 0;
  z-index: -1;
  filter: blur(12px);
  transition: opacity 0.4s ease;
}

.portfolio-item:hover .portfolio-img-wrap::after {
  opacity: 0.3;
}

/* ─── SCROLL PROGRESS BAR ────────────────────────────────────── */
#scroll-progress {
  position: fixed;
  top: 0; left: 0;
  height: 2px;
  background: var(--grad1);
  z-index: 10001;
  transform-origin: left;
  transform: scaleX(0);
  will-change: transform;
}

/* ─── PRELOADER ──────────────────────────────────────────────── */
#preloader {
  position: fixed;
  inset: 0;
  z-index: 99999;
  background: var(--bg);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 24px;
}

.preloader-logo {
  font-family: var(--font-display);
  font-size: 48px;
  font-weight: 900;
  letter-spacing: 0.2em;
  background: var(--grad1);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.preloader-bar {
  width: 200px;
  height: 1px;
  background: var(--border);
  overflow: hidden;
}

.preloader-fill {
  height: 100%;
  background: var(--grad1);
  animation: preloaderFill 1.8s cubic-bezier(0.25, 0.46, 0.45, 0.94) forwards;
}

@keyframes preloaderFill {
  from { width: 0; }
  to { width: 100%; }
}

.preloader-num {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.2em;
  color: var(--text-dim);
}
