/* ============================================================
   NeuralVerse — Premium AI Theme
   style.css
   ============================================================ */

/* ---------- TOKENS ---------- */
:root {
  --white: #ffffff;
  --off-white: #f7f8fc;
  --surface: #f0f2f8;
  --surface-hover: #e8eaf4;
  --border: rgba(0, 0, 0, 0.07);
  --border-dark: rgba(0, 0, 0, 0.14);

  --ink: #0d0d1a;
  --ink-2: #3a3a5c;
  --ink-3: #7b7b9a;

  --accent: #6366f1;
  --accent-2: #8b5cf6;
  --accent-amber: #f59e0b;
  --accent-green: #10b981;

  --gradient: linear-gradient(135deg, var(--accent) 0%, var(--accent-2) 100%);

  --radius-sm: 10px;
  --radius-md: 18px;
  --radius-lg: 28px;
  --radius-xl: 40px;

  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.06);
  --shadow-md: 0 8px 32px rgba(0, 0, 0, 0.10);
  --shadow-lg: 0 24px 64px rgba(0, 0, 0, 0.13);
  --shadow-xl: 0 40px 100px rgba(99, 102, 241, 0.15);

  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-bounce: cubic-bezier(0.34, 1.56, 0.64, 1);

  --nav-h: 70px;
  --font: 'Inter', system-ui, sans-serif;
  --font-display: 'Syne', sans-serif;
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font);
  background: var(--white);
  color: var(--ink);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  cursor: none; /* Hide default for custom cursor */
}

/* Noise overlay for tactile feel */
.noise-overlay {
  position: fixed;
  top: 0; left: 0;
  width: 100vw; height: 100vh;
  z-index: 9999;
  pointer-events: none;
  opacity: 0.035;
  background: url('https://grainy-gradients.vercel.app/noise.svg');
}

/* Custom Cursor */
.cursor-outer {
  position: fixed;
  width: 34px; height: 34px;
  border: 1px solid var(--accent);
  border-radius: 50%;
  pointer-events: none;
  z-index: 10000;
  transition: transform 0.15s var(--ease-out), width 0.3s, height 0.3s, border-color 0.3s;
  transform: translate(-50%, -50%);
}

.cursor-inner {
  position: fixed;
  width: 6px; height: 6px;
  background: var(--accent);
  border-radius: 50%;
  pointer-events: none;
  z-index: 10001;
  transform: translate(-50%, -50%);
  transition: width 0.3s, height 0.3s, opacity 0.3s;
}

.cursor-outer.hover {
  width: 60px; height: 60px;
  background: rgba(99, 102, 241, 0.05);
  border-color: transparent;
  backdrop-filter: blur(2px);
}

a {
  text-decoration: none;
  color: inherit;
}

img,
canvas {
  display: block;
}

ul {
  list-style: none;
}

::-webkit-scrollbar {
  width: 5px;
}

::-webkit-scrollbar-track {
  background: var(--off-white);
}

::-webkit-scrollbar-thumb {
  background: var(--gradient);
  border-radius: 99px;
}

/* ---------- UTILITIES ---------- */
.container {
  width: 100%;
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 28px;
}

/* ---------- TYPOGRAPHY ---------- */
.sec-title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 3.2rem);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.035em;
  color: var(--ink);
}

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

.body-text {
  font-size: 1.05rem;
  line-height: 1.8;
  color: var(--ink-2);
}

.tag {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  padding: 5px 14px;
  background: rgba(99, 102, 241, 0.08);
  border: 1px solid rgba(99, 102, 241, 0.18);
  border-radius: 99px;
  margin-bottom: 18px;
}

/* ---------- BUTTONS ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 30px;
  border-radius: 99px;
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  transition: transform 0.25s var(--ease-bounce), box-shadow 0.25s ease, background 0.2s;
  border: none;
}

.btn-dark, .btn-primary {
  background: var(--ink);
  color: var(--white);
  box-shadow: 0 10px 30px -10px rgba(13, 13, 26, 0.4);
}

.btn-dark:hover, .btn-primary:hover {
  background: var(--accent);
  transform: translateY(-2px) scale(1.02);
  box-shadow: 0 15px 35px -10px rgba(99, 102, 241, 0.5);
}

.btn-outline {
  border: 1px solid var(--border-dark);
  background: transparent;
  backdrop-filter: blur(5px);
}

.btn-outline:hover {
  background: var(--off-white);
  border-color: var(--ink);
}

/* Magnetic Button Wrappers */
.magnetic-wrap {
  display: inline-block;
  position: relative;
  transition: transform 0.3s var(--ease-out);
}

.magnetic-target {
  position: relative;
  z-index: 1;
}

section {
  position: relative;
  overflow: hidden;
}

section::after {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--border), transparent);
}

/* ═══════════════════════════════════════════════
   NAV
═══════════════════════════════════════════════ */
#nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 200;
  height: var(--nav-h);
  display: flex;
  align-items: center;
  transition: background 0.4s ease, box-shadow 0.4s ease;
}

#nav.solid {
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  box-shadow: 0 1px 0 var(--border);
}

.nav-inner {
  display: flex;
  align-items: center;
  width: 100%;
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 28px;
  gap: 40px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.2rem;
  letter-spacing: -0.04em;
  color: var(--ink);
}

.logo-mark {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  background: var(--gradient);
  transform: rotate(12deg);
  transition: transform 0.4s var(--ease-bounce);
}

.logo:hover .logo-mark {
  transform: rotate(0deg) scale(1.1);
}

.nav-links {
  display: flex;
  gap: 32px;
  margin-left: auto;
}

.nav-links a {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--ink-2);
  transition: color 0.2s;
  position: relative;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  right: 0;
  height: 1.5px;
  background: var(--gradient);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s var(--ease-out);
}

.nav-links a:hover {
  color: var(--ink);
}

.nav-links a:hover::after {
  transform: scaleX(1);
}

.nav-cta {
  margin-left: 16px;
  padding: 9px 22px;
  background: var(--gradient);
  color: #fff;
  border-radius: 99px;
  font-size: 0.875rem;
  font-weight: 600;
  box-shadow: 0 4px 18px rgba(99, 102, 241, 0.3);
  transition: transform 0.25s var(--ease-bounce), box-shadow 0.25s;
  white-space: nowrap;
}

.nav-cta:hover {
  transform: translateY(-2px) scale(1.02);
  box-shadow: 0 8px 28px rgba(99, 102, 241, 0.45);
}

/* Mobile menu button */
#mob-btn {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  margin-left: auto;
}

.mob-bar {
  width: 24px;
  height: 2px;
  background: var(--ink);
  border-radius: 99px;
  transition: transform 0.3s ease, opacity 0.3s ease;
}

#mob-btn.open .mob-bar:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

#mob-btn.open .mob-bar:nth-child(2) {
  opacity: 0;
}

#mob-btn.open .mob-bar:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

#mob-drawer {
  display: none;
  position: fixed;
  inset: 0;
  top: var(--nav-h);
  z-index: 190;
  background: rgba(255, 255, 255, 0.97);
  backdrop-filter: blur(20px);
  padding: 20px 0 32px;
  transform: translateX(100%);
  transition: transform 0.4s var(--ease-out);
}

#mob-drawer.open {
  transform: translateX(0);
}

#mob-drawer a {
  display: block;
  padding: 16px 28px;
  font-size: 1.3rem;
  font-weight: 700;
  font-family: var(--font-display);
  color: var(--ink);
  border-bottom: 1px solid var(--border);
  transition: color 0.2s, padding-left 0.2s;
}

#mob-drawer a:hover {
  color: var(--accent);
  padding-left: 36px;
}

/* ═══════════════════════════════════════════════
   HERO
═══════════════════════════════════════════════ */
#hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  background: linear-gradient(160deg, #f0f2ff 0%, #ffffff 50%, #fef9f0 100%);
}

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

.hero-overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    radial-gradient(ellipse 60% 80% at 65% 50%, transparent 30%, rgba(240, 242, 255, 0.5) 80%),
    radial-gradient(ellipse 100% 30% at 50% 100%, rgba(255, 255, 255, 0.9), transparent 60%);
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 680px;
  padding: 0 28px;
  margin-left: max(28px, calc((100vw - 1180px) / 2 + 28px));
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.hero-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
  padding: 7px 16px;
  background: rgba(99, 102, 241, 0.08);
  border: 1px solid rgba(99, 102, 241, 0.2);
  border-radius: 99px;
  width: fit-content;
}

.hero-h1 {
  font-family: var(--font-display);
  font-size: clamp(3rem, 7vw, 6rem);
  font-weight: 800;
  line-height: 1.0;
  letter-spacing: -0.045em;
  color: var(--ink);
}

.hero-h1 em {
  font-style: normal;
  background: var(--gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-sub {
  font-size: clamp(1rem, 2vw, 1.18rem);
  line-height: 1.75;
  color: var(--ink-2);
  max-width: 500px;
}

.hero-btns {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}

.hero-scroll-hint {
  position: absolute;
  bottom: 36px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  color: var(--ink-3);
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.scroll-wheel {
  width: 22px;
  height: 36px;
  border: 2px solid var(--border-dark);
  border-radius: 99px;
  position: relative;
}

.scroll-wheel::after {
  content: '';
  position: absolute;
  top: 6px;
  left: 50%;
  transform: translateX(-50%);
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--accent);
  animation: wheel-scroll 1.8s ease-in-out infinite;
}

@keyframes wheel-scroll {
  0% {
    top: 6px;
    opacity: 1;
  }

  80% {
    top: 18px;
    opacity: 0;
  }

  100% {
    top: 6px;
    opacity: 0;
  }
}

/* ═══════════════════════════════════════════════
   MARQUEE
═══════════════════════════════════════════════ */
.marquee-strip {
  overflow: hidden;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  background: var(--surface);
  padding: 18px 0;
}

.marquee-inner {
  display: flex;
  gap: 40px;
  width: max-content;
  animation: marquee 28s linear infinite;
}

.marquee-inner span {
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink-2);
  white-space: nowrap;
}

.marquee-inner .dot {
  color: var(--accent);
}

@keyframes marquee {
  from {
    transform: translateX(0);
  }

  to {
    transform: translateX(-50%);
  }
}

/* ═══════════════════════════════════════════════
   ABOUT
═══════════════════════════════════════════════ */
#about {
  padding: 120px 0;
  background: var(--white);
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}

.about-canvas-wrap {
  position: relative;
  border-radius: var(--radius-xl);
  overflow: hidden;
  background: linear-gradient(135deg, #f0f2ff, #fef9f0);
  aspect-ratio: 1;
  box-shadow: var(--shadow-xl);
  display: flex;
  align-items: center;
  justify-content: center;
}

#about-canvas {
  width: 100% !important;
  height: 100% !important;
  display: block;
}

.about-text {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.about-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 12px;
  padding-top: 28px;
  border-top: 1px solid var(--border);
}

.stat-item {}

.stat-num {
  display: inline;
  font-family: var(--font-display);
  font-size: 2.4rem;
  font-weight: 800;
  background: var(--gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.stat-sfx {
  font-family: var(--font-display);
  font-size: 1.6rem;
  font-weight: 700;
  background: var(--gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.stat-lbl {
  display: block;
  font-size: 0.78rem;
  color: var(--ink-3);
  margin-top: 4px;
  letter-spacing: 0.04em;
}

/* ═══════════════════════════════════════════════
   SERVICES
═══════════════════════════════════════════════ */
#services {
  padding: 120px 0;
  background: var(--off-white);
}

.sec-header {
  margin-bottom: 56px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 4px;
}

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

.service-card {
  background: rgba(255, 255, 255, 0.4);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 40px;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  transition: all 0.6s var(--ease-out);
  transform-style: preserve-3d;
  perspective: 1200px;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.service-card:hover {
  border-color: var(--accent);
  background: rgba(255, 255, 255, 0.7);
  box-shadow: var(--shadow-xl);
  transform: translateY(-10px) rotateX(4deg) rotateY(-2deg);
}

.service-card::after {
  content: '';
  position: absolute;
  top: -50%; left: -50%;
  width: 200%; height: 200%;
  background: radial-gradient(circle at center, rgba(99, 102, 241, 0.05) 0%, transparent 60%);
  opacity: 0;
  transition: opacity 0.6s ease;
  pointer-events: none;
}

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

.svc-icon-wrap {
  margin-bottom: 20px;
  width: 60px; height: 60px;
  perspective: 400px;
}
.svc-icon-3d {
  width: 100%; height: 100%;
  border-radius: 12px;
  background: var(--gradient);
  transform: rotateX(20deg) rotateY(15deg);
  transition: transform 0.5s var(--ease-bounce), box-shadow 0.5s;
  box-shadow: var(--shadow-md);
  position: relative;
  transform-style: preserve-3d;
}
.service-card:hover .svc-icon-3d {
  transform: rotateX(0deg) rotateY(0deg) scale(1.05);
  box-shadow: var(--shadow-lg);
}

.si-1 { border-radius: 50%; }
.si-2 { transform: rotateZ(45deg) rotateX(20deg) rotateY(15deg); }
.service-card:hover .si-2 { transform: rotateZ(45deg) scale(1.05); }
.si-3 { border-radius: 8px 30px; }
.si-4 { clip-path: polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%); background: #8b5cf6; }
.si-5 { border-radius: 0; background: #f59e0b; }
.si-6 { border-radius: 20px 5px 20px 5px; clip-path: circle(50% at 50% 50%); background: #10b981; }

.service-card h3 {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 10px;
  letter-spacing: -0.02em;
}

.service-card p {
  font-size: 0.9rem;
  line-height: 1.7;
  color: var(--ink-2);
  margin-bottom: 20px;
}

.svc-link {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--accent);
  transition: gap 0.2s, color 0.2s;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.svc-link:hover {
  color: var(--accent-2);
  gap: 10px;
}

/* ═══════════════════════════════════════════════
   PRODUCTS
═══════════════════════════════════════════════ */
#products {
  padding: 120px 0;
  background: var(--white);
}

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

.product-card {
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border);
  background: var(--white);
  box-shadow: var(--shadow-sm);
  transition: transform 0.35s var(--ease-out), box-shadow 0.35s;
}

.product-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-lg);
}

.product-canvas-wrap {
  background: linear-gradient(135deg, #f5f5ff 0%, #fffbf0 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  height: 200px;
  overflow: hidden;
}

.product-canvas {
  width: 100% !important;
  height: 100% !important;
}

.product-info {
  padding: 24px;
}

.product-tag {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
}

.product-info h3 {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--ink);
  margin: 6px 0 8px;
  letter-spacing: -0.025em;
}

.product-info p {
  font-size: 0.875rem;
  line-height: 1.65;
  color: var(--ink-2);
}

/* ═══════════════════════════════════════════════
   GALLERY
═══════════════════════════════════════════════ */
#gallery {
  padding: 120px 0 0;
  background: var(--off-white);
  overflow: hidden;
}

.gallery-scene {
  position: relative;
  margin-top: 48px;
  height: 500px;
}

#gallery-canvas {
  width: 100% !important;
  height: 500px !important;
  display: block;
  cursor: crosshair;
}

.gallery-hint {
  position: absolute;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-3);
  pointer-events: none;
}
.bounceCardsContainer {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  width: 400px;
  height: 400px;
}

.card {
  position: absolute;
  width: 200px;
  aspect-ratio: 1;
  border: 5px solid #fff;
  border-radius: 25px;
  overflow: hidden;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.card .image {
  width: 100%;
  height: 100%;
  object-fit: cover;
}


/* ═══════════════════════════════════════════════
   CONTACT
═══════════════════════════════════════════════ */
#contact {
  padding: 120px 0 140px;
  background: var(--white);
  position: relative;
  overflow: hidden;
}

#contact-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 0;
  opacity: 0.6;
}

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

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

.ci-item {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 0.95rem;
  color: var(--ink-2);
}

.ci-icon {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--accent);
  flex-shrink: 0;
}

.contact-form {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 40px;
  box-shadow: var(--shadow-xl);
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.form-group label {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--ink-2);
  letter-spacing: 0.03em;
}

.form-group input,
.form-group textarea {
  background: var(--off-white);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 13px 16px;
  font-size: 0.95rem;
  font-family: var(--font);
  color: var(--ink);
  resize: vertical;
  transition: border-color 0.2s, background 0.2s, box-shadow 0.2s;
  outline: none;
}

.form-group input:focus,
.form-group textarea:focus {
  border-color: var(--accent);
  background: var(--white);
  box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
  color: var(--ink-3);
}

/* ═══════════════════════════════════════════════
   FOOTER
═══════════════════════════════════════════════ */
#footer {
  background: var(--ink);
  color: var(--white);
  padding: 80px 0 0;
}

.footer-inner {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 80px;
  padding-bottom: 64px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.footer-brand .logo {
  color: var(--white);
}

.footer-brand .logo-mark {
  background: var(--gradient);
}

.footer-brand p {
  margin-top: 14px;
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.45);
  max-width: 260px;
  line-height: 1.6;
}

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

.footer-col h4 {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.4);
  margin-bottom: 16px;
}

.footer-col a {
  display: block;
  font-size: 0.875rem;
  color: rgba(255, 255, 255, 0.65);
  margin-bottom: 10px;
  transition: color 0.2s;
}

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

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 28px;
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.35);
  max-width: 1180px;
  margin: 0 auto;
}

.footer-legal {
  display: flex;
  gap: 20px;
}

.footer-legal a {
  color: rgba(255, 255, 255, 0.35);
  transition: color 0.2s;
}

.footer-legal a:hover {
  color: var(--white);
}

/* ═══════════════════════════════════════════════
   REVEAL ANIMATIONS
═══════════════════════════════════════════════ */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 1.2s cubic-bezier(0.16, 1, 0.3, 1), transform 1.2s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: opacity, transform;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* More dramatic 3D reveal */
.reveal-3d {
  opacity: 0;
  transform: translateY(40px) rotateX(-15deg);
  transition: opacity 1.4s var(--ease-out), transform 1.4s var(--ease-out);
  transform-origin: top center;
}

.reveal-3d.visible {
  opacity: 1;
  transform: translateY(0) rotateX(0);
}

.reveal[data-d="80"] {
  transition-delay: 80ms;
}

.reveal[data-d="100"] {
  transition-delay: 100ms;
}

.reveal[data-d="120"] {
  transition-delay: 120ms;
}

.reveal[data-d="160"] {
  transition-delay: 160ms;
}

.reveal[data-d="200"] {
  transition-delay: 200ms;
}

.reveal[data-d="240"] {
  transition-delay: 240ms;
}

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

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

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

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

  .footer-inner {
    grid-template-columns: 1fr;
    gap: 40px;
  }
}

@media (max-width: 768px) {

  .nav-links,
  .nav-cta {
    display: none;
  }

  #mob-btn {
    display: flex;
  }

  #mob-drawer {
    display: block;
  }

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

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

  .about-stats {
    grid-template-columns: repeat(3, 1fr);
  }

  .form-row {
    grid-template-columns: 1fr;
  }

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

  .gallery-scene {
    height: 320px;
  }

  #gallery-canvas {
    height: 320px !important;
  }

  .hero-content {
    margin-left: 28px;
  }

  .contact-form {
    padding: 28px;
  }
}

@media (max-width: 480px) {
  .products-grid {
    grid-template-columns: 1fr;
  }

  .about-stats {
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
  }

  .stat-num {
    font-size: 1.8rem;
  }

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

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

@media (prefers-reduced-motion: reduce) {

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }

  .reveal {
    opacity: 1;
    transform: none;
  }

  .marquee-inner {
    animation: none;
  }
}
