

/* ══════════════════════════════════════════
   HERO SECTION
   ══════════════════════════════════════════ */

/* Image slides */
.hero-slide {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0;
  transition: opacity 1.8s ease;
  will-change: opacity, transform;
}

.hero-slide.hero-slide-active {
  opacity: 1;
}

/* Ken Burns subtle zoom on active slide */
@keyframes heroKenBurns {
  from { transform: scale(1.06); }
  to   { transform: scale(1); }
}

.hero-slide.hero-slide-active {
  animation: heroKenBurns 8s ease-out forwards;
}

/* Headline */
.hero-headline {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.hero-headline-bold {
  display: block;
  font-size: clamp(3.2rem, 10.5vw, 9.5rem);
  font-weight: 900;
  letter-spacing: -0.03em;
  line-height: 0.87;
  color: #fff;
  text-transform: uppercase;
}

.hero-headline-italic {
  display: block;
  font-size: clamp(1.6rem, 4.5vw, 4rem);
  font-weight: 400;
  font-style: italic;
  font-family: 'DM Serif Display', serif;
  color: rgba(255, 255, 255, 0.65);
  letter-spacing: 0.02em;
  margin-top: 0.45em;
}

/* Fade-up entrance animations */
@keyframes heroFadeUp {
  from { opacity: 0; transform: translateY(30px); }
  to   { opacity: 1; transform: translateY(0); }
}

.hero-fade-in {
  opacity: 0;
  animation: heroFadeUp 1.1s cubic-bezier(0.16, 1, 0.3, 1) 0.15s forwards;
}

.hero-fade-in-delay {
  opacity: 0;
  animation: heroFadeUp 1.1s cubic-bezier(0.16, 1, 0.3, 1) 0.55s forwards;
}

/* Bottom bar */
.hero-bottom-cell {
  border-color: rgba(255, 255, 255, 0.1);
}

.hero-bottom-label {
  font-size: 0.6rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.35);
  margin-bottom: 0.65rem;
  font-weight: 600;
}

.hero-bottom-text {
  font-size: clamp(0.85rem, 1.4vw, 1rem);
  color: rgba(255, 255, 255, 0.8);
  font-weight: 500;
  line-height: 1.65;
}

/* CTA Button */
.hero-cta-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  background: #fff;
  color: #0a0a0a;
  padding: 0.85rem 2rem;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  text-decoration: none;
  transition: background 0.22s ease, color 0.22s ease, gap 0.22s ease;
}

.hero-cta-btn:hover {
  background: #e03a00;
  color: #fff;
  gap: 0.9rem;
}

/* Slide indicators */
.hero-indicator {
  width: 2px;
  height: 22px;
  background: rgba(255, 255, 255, 0.22);
  border: none;
  cursor: pointer;
  padding: 0;
  transition: background 0.3s ease, height 0.3s ease;
  display: block;
}

.hero-indicator.hero-indicator-active {
  background: #fff;
  height: 44px;
}

/* ════════════════════════════════════════ */

@keyframes float {
  0% {
    transform: translateY(0px);
  }
  50% {
    transform: translateY(-18px);
  }
  100% {
    transform: translateY(0px);
  }
}

.float-image {
  animation: float 4s ease-in-out infinite;
}

.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: all 0.8s ease;
}

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

.typing-cursor {
  display: inline-block;
  margin-left: 2px;
  animation: blink 0.8s infinite;
}

@keyframes blink {
  0%, 100% {
    opacity: 1;
  }
  50% {
    opacity: 0;
  }
}

.typing-text-fade {
  animation: textFade 0.2s ease;
}

@keyframes textFade {
  from {
    opacity: 0.6;
  }
  to {
    opacity: 1;
  }
}

#projectsContainer::-webkit-scrollbar {
  display: none;
}

#projectsContainer {
  -ms-overflow-style: none;
  scrollbar-width: none;
}

/* ── Tech Marquee ── */
@keyframes marquee {
  0%   { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

.marquee-track {
  display: flex;
  width: max-content;
  animation: marquee 22s linear infinite;
}

.marquee-track:hover {
  animation-play-state: paused;
}

/* ── Liquid Glass Button ── */
.liquid-btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  text-decoration: none;
  transition: transform 0.3s ease;
  -webkit-backdrop-filter: url("#container-glass");
  backdrop-filter: url("#container-glass");
  box-shadow:
    0 0 6px rgba(0, 0, 0, 0.03),
    0 2px 6px rgba(0, 0, 0, 0.08),
    inset 3px 3px 0.5px -3px rgba(0, 0, 0, 0.9),
    inset -3px -3px 0.5px -3px rgba(0, 0, 0, 0.85),
    inset 1px 1px 1px -0.5px rgba(0, 0, 0, 0.6),
    inset -1px -1px 1px -0.5px rgba(0, 0, 0, 0.6),
    inset 0 0 6px 6px rgba(0, 0, 0, 0.12),
    inset 0 0 2px 2px rgba(0, 0, 0, 0.06),
    0 0 12px rgba(255, 255, 255, 0.15);
}

.liquid-btn:hover {
  transform: scale(1.05);
}

/* ── Testimonial transitions ── */
#testimonialQuote,
#testimonialAuthor {
  transition: opacity 0.3s ease, transform 0.3s ease;
}

/* ── Premium Utility Classes ── */

.section-eyebrow {
  font-size: 0.65rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: rgba(0, 0, 0, 0.3);
  font-weight: 600;
  margin-bottom: 1.25rem;
}

.section-heading {
  font-size: clamp(2.8rem, 7vw, 5.5rem);
  font-weight: 900;
  letter-spacing: -0.03em;
  line-height: 0.92;
  color: #0a0a0a;
  margin-bottom: 1.75rem;
}

.section-body {
  font-size: 1rem;
  line-height: 1.75;
  color: #6b6b6b;
  max-width: 26rem;
}

.service-tag {
  display: inline-block;
  padding: 0.5rem 1.1rem;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #3a3a3a;
  background: transparent;
  border: 1px solid #d4d4d4;
  transition: border-color 0.2s, color 0.2s, background 0.2s;
}

.service-tag:hover {
  border-color: #0a0a0a;
  color: #0a0a0a;
  background: #f0f0f0;
}

/* ── Navbar states ── */
#mainNav {
  background: transparent;
}

#mainNav.nav-scrolled {
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(0, 0, 0, 0.07);
  box-shadow: 0 1px 24px rgba(0, 0, 0, 0.06);
}

.nav-logo {
  color: #fff;
  letter-spacing: 0.15em;
  text-decoration: none;
  transition: color 0.3s;
}

#mainNav.nav-scrolled .nav-logo {
  color: #0a0a0a;
}

.nav-link {
  color: rgba(255, 255, 255, 0.7);
  text-decoration: none;
}

.nav-link:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.1);
}

#mainNav.nav-scrolled .nav-link {
  color: #6b6b6b;
}

#mainNav.nav-scrolled .nav-link:hover {
  color: #0a0a0a;
  background: rgba(0, 0, 0, 0.05);
}

.nav-cta {
  background: #fff;
  color: #0a0a0a;
  font-weight: 700;
  text-decoration: none;
}

.nav-cta:hover {
  background: #e8e8e8;
}

#mainNav.nav-scrolled .nav-cta {
  background: #0a0a0a;
  color: #fff;
}

#mainNav.nav-scrolled .nav-cta:hover {
  background: #222;
}

/* ── Spotlight / Glow Cards (dark context) ── */
.glow-card {
  --base: 0;
  --spread: 60;
  --radius: 16;
  --border: 1;
  --backdrop: hsl(0 0% 10% / 1);
  --backup-border: hsl(0 0% 18% / 1);
  --size: 260;
  --outer: 1;
  --border-size: calc(var(--border, 1) * 1px);
  --spotlight-size: calc(var(--size, 150) * 1px);
  --hue: calc(var(--base) + (var(--xp, 0) * var(--spread, 0)));

  background-image: radial-gradient(
    var(--spotlight-size) var(--spotlight-size) at
    calc(var(--x, 0) * 1px)
    calc(var(--y, 0) * 1px),
    hsl(var(--hue, 0) 0% 100% / 0.04), transparent
  );
  background-color: var(--backdrop);
  background-size: calc(100% + (2 * var(--border-size))) calc(100% + (2 * var(--border-size)));
  background-position: 50% 50%;
  background-attachment: fixed;
  border: var(--border-size) solid var(--backup-border);
  position: relative;
  touch-action: none;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.4);
  transition: box-shadow 0.3s ease, border-color 0.3s ease;
}

.glow-card:hover {
  box-shadow: 0 8px 40px rgba(0, 0, 0, 0.6);
  border-color: hsl(0 0% 28% / 1);
}

.glow-card::before,
.glow-card::after {
  pointer-events: none;
  content: "";
  position: absolute;
  inset: calc(var(--border-size) * -1);
  border: var(--border-size) solid transparent;
  border-radius: calc(var(--radius) * 1px);
  background-attachment: fixed;
  background-size: calc(100% + (2 * var(--border-size))) calc(100% + (2 * var(--border-size)));
  background-repeat: no-repeat;
  background-position: 50% 50%;
  mask: linear-gradient(transparent, transparent), linear-gradient(white, white);
  -webkit-mask: linear-gradient(transparent, transparent), linear-gradient(white, white);
  mask-clip: padding-box, border-box;
  -webkit-mask-clip: padding-box, border-box;
  mask-composite: intersect;
  -webkit-mask-composite: xor;
}

.glow-card::before {
  background-image: radial-gradient(
    calc(var(--spotlight-size) * 0.75) calc(var(--spotlight-size) * 0.75) at
    calc(var(--x, 0) * 1px)
    calc(var(--y, 0) * 1px),
    hsl(var(--hue, 0) 100% 50% / 1), transparent 100%
  );
  filter: brightness(2);
}

.glow-card::after {
  background-image: radial-gradient(
    calc(var(--spotlight-size) * 0.5) calc(var(--spotlight-size) * 0.5) at
    calc(var(--x, 0) * 1px)
    calc(var(--y, 0) * 1px),
    hsl(0 100% 100% / 1), transparent 100%
  );
}

/* Inner outer-glow layer */
.glow-card > [data-glow] {
  position: absolute;
  inset: 0;
  will-change: filter;
  opacity: var(--outer, 1);
  border-radius: calc(var(--radius) * 1px);
  border: calc(var(--border-size) * 20) solid transparent;
  filter: blur(calc(var(--border-size) * 10));
  background: none;
  pointer-events: none;
}