/* Reset and Base Styles */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --color-primary: #ffffff;
  --color-secondary: #e0e0e0;
  --color-accent: #ff4d4d;
  --color-accent-glow: rgba(255, 77, 77, 0.4);
  --color-text: #ffffff;
  --color-text-light: rgba(255, 255, 255, 0.7);
  --color-bg: #0a0a0a;
  --color-bg-alt: #111111;
  --color-bg-card: #1a1a1a;
  --font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --transition: 0.3s ease;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-family);
  font-size: 16px;
  line-height: 1.6;
  color: var(--color-text);
  background: linear-gradient(180deg, #0a0a0a 0%, #1a1a1a 30%, #0a0a0a 60%, #1a1a1a 100%);
  background-attachment: fixed;
  position: relative;
}

body::before {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background:
    radial-gradient(circle at 20% 30%, var(--color-accent-glow) 0%, transparent 40%),
    radial-gradient(circle at 80% 70%, var(--color-accent-glow) 0%, transparent 40%);
  opacity: 0.15;
  pointer-events: none;
  z-index: 0;
}


/* Gradient Text for Section Titles */
.gradient-text {
  background: linear-gradient(135deg, #ffffff 0%, #ff4d4d 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Scroll Animations */
.fade-in {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

.fade-in-left {
  opacity: 0;
  transform: translateX(-50px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.fade-in-left.visible {
  opacity: 1;
  transform: translateX(0);
}

.fade-in-right {
  opacity: 0;
  transform: translateX(50px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.fade-in-right.visible {
  opacity: 1;
  transform: translateX(0);
}

/* Staggered animation delays */
.stagger-1 { transition-delay: 0.1s; }
.stagger-2 { transition-delay: 0.2s; }
.stagger-3 { transition-delay: 0.3s; }
.stagger-4 { transition-delay: 0.4s; }
.stagger-5 { transition-delay: 0.5s; }

/* Logo Grid with Hover Reveal */
.logo-grid-reveal {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 24px;
  max-width: 1200px;
  margin: 0 auto;
}

.logo-grid-reveal .client-logo {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 15px;
  min-height: 110px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 16px;
  position: relative;
  overflow: hidden;
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.logo-grid-reveal .client-logo::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: radial-gradient(circle at center, rgba(255, 77, 77, 0.15) 0%, transparent 70%);
  opacity: 0;
  transition: opacity 0.4s ease;
}

.logo-grid-reveal .client-logo:hover {
  transform: scale(1.08);
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 77, 77, 0.4);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3), 0 0 30px rgba(255, 77, 77, 0.2);
  z-index: 10;
}

.logo-grid-reveal .client-logo:hover::before {
  opacity: 1;
}

.logo-grid-reveal .client-logo img {
  max-height: 100px;
  max-width: 100%;
  object-fit: contain;
  filter: grayscale(100%) brightness(1.5);
  opacity: 0.5;
  transition: all 0.4s ease;
  position: relative;
  z-index: 1;
}

.logo-grid-reveal .client-logo:hover img {
  filter: grayscale(0%) brightness(1);
  opacity: 1;
  transform: scale(1.05);
}

@media (max-width: 1024px) {
  .logo-grid-reveal {
    grid-template-columns: repeat(4, 1fr);
  }
}

@media (max-width: 768px) {
  .logo-grid-reveal {
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
  }

  .logo-grid-reveal .client-logo {
    padding: 20px;
    min-height: 100px;
  }

  .logo-grid-reveal .client-logo img {
    max-height: 70px;
  }
}

@media (max-width: 480px) {
  .logo-grid-reveal {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* 3D Flip Cards */
.flip-cards-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  max-width: 1000px;
  margin: 0 auto;
  perspective: 1000px;
}

.flip-card {
  height: 250px;
  cursor: pointer;
}

.flip-card-inner {
  position: relative;
  width: 100%;
  height: 100%;
  transition: transform 0.8s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  transform-style: preserve-3d;
}

.flip-card:hover .flip-card-inner,
.flip-card.flipped .flip-card-inner {
  transform: rotateY(180deg);
}

.flip-card-front,
.flip-card-back {
  position: absolute;
  width: 100%;
  height: 100%;
  backface-visibility: hidden;
  border-radius: 16px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 30px;
  text-align: center;
}

.flip-card-front {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.flip-card-front .testimonial-quote {
  font-size: 16px;
  line-height: 1.7;
  color: var(--color-text-light);
  margin-bottom: 20px;
}

.flip-hint {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.4);
  text-transform: uppercase;
  letter-spacing: 2px;
}

.flip-card-back {
  background: linear-gradient(135deg, rgba(255, 77, 77, 0.15) 0%, rgba(255, 77, 77, 0.05) 100%);
  border: 1px solid rgba(255, 77, 77, 0.3);
  transform: rotateY(180deg);
}

.flip-card-logo {
  font-size: 32px;
  font-weight: 700;
  color: var(--color-text);
  background: linear-gradient(135deg, #ffffff 0%, #ff4d4d 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.flip-card-logo-img {
  max-width: 80%;
  max-height: 100px;
  object-fit: contain;
  filter: brightness(1.2);
}

@media (max-width: 768px) {
  .flip-cards-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
  }

  .flip-card {
    height: 220px;
  }

  .flip-card-logo {
    font-size: 22px;
  }

  .flip-card-back .testimonial-quote {
    font-size: 14px;
  }
}

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

  .flip-card {
    height: 200px;
  }
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  position: relative;
  z-index: 1;
}

h1, h2, h3, h4, h5, h6 {
  font-weight: 600;
  line-height: 1.2;
}

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

img {
  max-width: 100%;
  height: auto;
}

/* Buttons */
.btn {
  display: inline-block;
  padding: 16px 36px;
  font-size: 13px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 2px;
  border-radius: 0;
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  cursor: pointer;
  border: none;
  position: relative;
  overflow: hidden;
}

.btn-primary {
  background-color: var(--color-accent);
  color: #fff;
  box-shadow: 0 0 30px var(--color-accent-glow);
}

.btn-primary:hover {
  transform: translateY(-3px) scale(1.02);
  box-shadow: 0 10px 40px var(--color-accent-glow);
}

.btn-secondary {
  background-color: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  color: var(--color-primary);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.btn-secondary:hover {
  background-color: rgba(255, 255, 255, 0.2);
  border-color: rgba(255, 255, 255, 0.4);
}

/* Navigation */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background-color: rgba(10, 10, 10, 0.8);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.nav-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 80px;
  position: relative;
}

.logo {
  display: flex;
  align-items: center;
}

.logo img {
  height: 40px;
  width: auto;
}

.nav-links {
  display: flex;
  list-style: none;
  gap: 40px;
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
}

.nav-links a {
  font-size: 16px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 2px;
  transition: var(--transition);
  color: var(--color-text-light);
}

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

.nav-cta {
  background: var(--color-accent);
  color: #fff !important;
  padding: 12px 24px;
  border-radius: 6px;
  font-weight: 600;
}

.nav-cta:hover {
  background: #ff6666;
  color: #fff !important;
  transform: translateY(-2px);
}

.nav-right {
  display: flex;
  align-items: center;
  gap: 24px;
}

.nav-social {
  display: flex;
  gap: 16px;
  align-items: center;
}

.nav-social a {
  color: var(--color-text-light);
  transition: var(--transition);
  display: flex;
  align-items: center;
}

.nav-social a svg {
  width: 28px;
  height: 28px;
}

.nav-social a:hover {
  color: var(--color-accent);
  transform: scale(1.1);
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}

.nav-toggle span {
  width: 24px;
  height: 2px;
  background-color: var(--color-primary);
  transition: var(--transition);
}

/* Hero Section */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 30px 24px 20px;
  background: #0a0a0a;
  position: relative;
  overflow: hidden;
}

.hero-video-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  overflow: hidden;
}

.hero-video-bg iframe {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 177.78vh; /* 16:9 aspect ratio */
  height: 100vh;
  min-width: 100%;
  min-height: 56.25vw; /* 16:9 aspect ratio */
  transform: translate(-50%, -50%);
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.5);
  pointer-events: none;
}

.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background:
    radial-gradient(circle at 20% 80%, var(--color-accent-glow) 0%, transparent 40%),
    radial-gradient(circle at 80% 20%, rgba(100, 100, 255, 0.1) 0%, transparent 40%);
  pointer-events: none;
  z-index: 1;
}

.hero-content {
  max-width: 900px;
  position: relative;
  z-index: 2;
  padding: 60px 80px 50px;
  background: rgba(255, 255, 255, 0.03);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 24px;
  opacity: 1;
  -webkit-transition: opacity 1.5s ease-out, transform 1.5s ease-out, visibility 1.5s ease-out;
  transition: opacity 1.5s ease-out, transform 1.5s ease-out, visibility 1.5s ease-out;
  will-change: opacity, transform;
}

.hero-content.fade-out {
  -webkit-animation: heroFadeOut 1.5s ease-out forwards;
  animation: heroFadeOut 1.5s ease-out forwards;
  pointer-events: none;
}

@-webkit-keyframes heroFadeOut {
  from {
    opacity: 1;
    -webkit-transform: translateY(0);
    transform: translateY(0);
    visibility: visible;
  }
  to {
    opacity: 0;
    -webkit-transform: translateY(-20px);
    transform: translateY(-20px);
    visibility: hidden;
  }
}

@keyframes heroFadeOut {
  from {
    opacity: 1;
    transform: translateY(0);
    visibility: visible;
  }
  to {
    opacity: 0;
    transform: translateY(-20px);
    visibility: hidden;
  }
}

.hero h1 {
  font-size: clamp(48px, 10vw, 90px);
  font-weight: 800;
  margin-bottom: 24px;
  letter-spacing: -3px;
  line-height: 1;
  background: linear-gradient(135deg, #fff 0%, #888 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero p {
  font-size: 22px;
  color: var(--color-text-light);
  margin-bottom: 48px;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.8;
  text-align: center;
}

/* Work/Portfolio Section */
.work {
  padding: 30px 24px;
  position: relative;
}

.work h2 {
  font-size: 40px;
  text-align: center;
  margin-bottom: 60px;
  text-transform: uppercase;
  letter-spacing: 4px;
  color: var(--color-text-light);
}

.video-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
  margin-bottom: 60px;
}

.video-item {
  overflow: hidden;
  position: relative;
  transition: transform 0.4s ease;
}

.video-item:hover {
  transform: scale(1.02);
}

.video-item.video-featured {
  grid-column: span 2;
}

.video-wrapper {
  position: relative;
  padding-bottom: 56.25%; /* 16:9 aspect ratio */
  height: 0;
  background-color: var(--color-bg-card);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  overflow: hidden;
}

.video-wrapper iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

.work-cta {
  text-align: center;
}

/* Clients Section */
.clients {
  padding: 30px 24px;
  position: relative;
}

.clients h2 {
  font-size: 40px;
  text-align: center;
  margin-bottom: 60px;
  color: var(--color-text-light);
  text-transform: uppercase;
  letter-spacing: 4px;
}

.clients-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 24px;
  align-items: center;
}

.client-logo {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px;
  min-height: 180px;
  transition: var(--transition);
  opacity: 0.7;
}

.client-logo:hover {
  opacity: 1;
}

.client-logo img {
  max-width: 100%;
  max-height: 150px;
  width: auto;
  height: auto;
  object-fit: contain;
  filter: grayscale(100%) brightness(2);
  transition: filter 0.3s ease;
}

.client-logo:hover img {
  filter: grayscale(0%) brightness(1);
}

.client-logo span {
  font-size: 14px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.7);
  text-transform: uppercase;
  letter-spacing: 1px;
}

/* Services / What We Do Section */
.services {
  padding: 30px 24px;
  position: relative;
}

.services h2 {
  font-size: 40px;
  text-align: center;
  margin-bottom: 80px;
  text-transform: uppercase;
  letter-spacing: 4px;
  color: var(--color-text-light);
}

.pillars {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 32px;
  max-width: 1000px;
  margin: 0 auto;
}

.pillar {
  padding: 40px;
  background: rgba(255, 255, 255, 0.03);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 16px;
  transition: all 0.3s ease;
}

.pillar:hover {
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(255, 255, 255, 0.12);
  transform: translateY(-4px);
}

.pillar h3 {
  font-size: 40px;
  font-weight: 700;
  margin-bottom: 20px;
  color: var(--color-primary);
}

.pillar h3 em {
  font-style: normal;
  color: var(--color-accent);
}

.pillar p {
  font-size: 20px;
  line-height: 1.8;
  color: var(--color-text-light);
}

/* Testimonials Section */
.testimonials {
  padding: 30px 24px;
  position: relative;
}

.testimonials h2 {
  font-size: 40px;
  text-align: center;
  margin-bottom: 60px;
  text-transform: uppercase;
  letter-spacing: 4px;
  color: var(--color-text-light);
}

.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  max-width: 1000px;
  margin: 0 auto;
}

.testimonial-card {
  padding: 40px 32px;
  background: rgba(255, 255, 255, 0.03);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 16px;
  position: relative;
  transition: all 0.3s ease;
}

.testimonial-card:hover {
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(255, 255, 255, 0.12);
  transform: translateY(-4px);
}

.testimonial-card::before {
  content: '"';
  position: absolute;
  top: 20px;
  left: 24px;
  font-size: 60px;
  font-weight: 700;
  color: var(--color-accent);
  opacity: 0.3;
  line-height: 1;
}

.testimonial-quote {
  font-size: 20px;
  line-height: 1.7;
  color: var(--color-text-light);
  margin-bottom: 24px;
  font-style: italic;
}

.testimonial-author {
  font-size: 18px;
  font-weight: 600;
  color: var(--color-primary);
  font-style: normal;
}

/* CTA Section */
.cta {
  padding: 38px 24px;
  color: #fff;
  text-align: center;
  position: relative;
  background: transparent;
}

.cta-content {
  display: inline-block;
  padding: 60px 80px;
  background: rgba(255, 255, 255, 0.03);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 24px;
  position: relative;
  z-index: 1;
}

.cta h2 {
  font-size: clamp(36px, 6vw, 64px);
  margin-bottom: 16px;
  font-weight: 700;
}

.cta p {
  font-size: 22px;
  color: var(--color-text-light);
  margin-bottom: 48px;
}

/* Footer */
.footer {
  padding: 60px 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  position: relative;
}

.footer-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
  text-align: center;
}

.footer-contact {
  display: flex;
  align-items: center;
  gap: 8px;
}

.footer-contact a {
  font-size: 14px;
  color: var(--color-text-light);
  transition: var(--transition);
}

.footer-contact a:hover {
  color: var(--color-accent);
}

.footer-divider {
  color: rgba(255, 255, 255, 0.3);
}

.footer-social {
  display: flex;
  gap: 32px;
}

.footer-social a {
  color: var(--color-text-light);
  transition: var(--transition);
}

.footer-social a:hover {
  color: var(--color-accent);
  transform: scale(1.1);
}

.footer-copyright {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.4);
}

/* Services Grid Section */
.services-grid-section {
  padding: 30px 24px;
  background: transparent;
}

.services-grid-section h2 {
  font-size: 40px;
  text-align: center;
  margin-bottom: 60px;
  text-transform: uppercase;
  letter-spacing: 4px;
}

.how-we-work {
  padding: 30px 24px;
}

.how-we-work h2 {
  font-size: 40px;
  text-align: center;
  margin-bottom: 60px;
  text-transform: uppercase;
  letter-spacing: 4px;
}

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

/* Service Flip Cards */
.service-flip-card {
  perspective: 1000px;
  height: 280px;
}

.service-flip-inner {
  position: relative;
  width: 100%;
  height: 100%;
  transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
  transform-style: preserve-3d;
}

.service-flip-card:hover .service-flip-inner,
.service-flip-card.flipped .service-flip-inner {
  transform: rotateY(180deg);
}

.service-flip-front,
.service-flip-back {
  position: absolute;
  width: 100%;
  height: 100%;
  backface-visibility: hidden;
  border-radius: 16px;
  padding: 32px;
}

.service-flip-front {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.service-flip-back {
  background: linear-gradient(135deg, rgba(255, 77, 77, 0.15) 0%, rgba(255, 77, 77, 0.05) 100%);
  border: 1px solid rgba(255, 77, 77, 0.3);
  transform: rotateY(180deg);
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.service-flip-back h4 {
  font-size: 18px;
  font-weight: 600;
  color: var(--color-accent);
  margin-bottom: 16px;
  text-transform: uppercase;
  letter-spacing: 2px;
}

.service-flip-back ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.service-flip-back li {
  font-size: 14px;
  color: var(--color-text-light);
  padding: 8px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  align-items: center;
  gap: 8px;
}

.service-flip-back li:last-child {
  border-bottom: none;
}

.service-flip-back li::before {
  content: '✓';
  color: var(--color-accent);
  font-weight: bold;
}

.service-icon {
  color: var(--color-accent);
  margin-bottom: 20px;
}

.service-flip-front h3 {
  font-size: 22px;
  font-weight: 600;
  margin-bottom: 12px;
  color: var(--color-primary);
}

.service-flip-front p {
  font-size: 15px;
  line-height: 1.6;
  color: var(--color-text-light);
}

/* Sticky CTA */
.sticky-cta {
  position: fixed;
  top: 100px;
  right: 24px;
  background: var(--color-accent);
  color: #fff;
  padding: 14px 24px;
  border-radius: 50px;
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
  font-size: 15px;
  box-shadow: 0 4px 20px rgba(255, 77, 77, 0.4);
  transition: all 0.3s ease;
  z-index: 999;
}

.sticky-cta:hover {
  background: #ff6666;
  transform: translateY(-2px);
  box-shadow: 0 6px 24px rgba(255, 77, 77, 0.5);
}

.sticky-cta svg {
  transition: transform 0.3s ease;
}

.sticky-cta:hover svg {
  transform: translateX(4px);
}

/* Responsive Design */
@media (max-width: 1024px) {
  .clients-grid {
    grid-template-columns: repeat(4, 1fr);
  }

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

@media (max-width: 900px) {
  .clients-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .pillars {
    grid-template-columns: 1fr;
    gap: 24px;
    max-width: 500px;
  }

  .pillar {
    padding: 32px;
  }

  .pillar h3 {
    font-size: 32px;
  }

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

@media (max-width: 768px) {
  .nav-links {
    display: none;
    position: static;
    transform: none;
  }

  .nav-right {
    display: none;
  }

  .nav-toggle {
    display: flex;
  }

  .nav.mobile-open .nav-links {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 80px;
    left: 0;
    right: 0;
    transform: none;
    background-color: rgba(10, 10, 10, 0.98);
    padding: 24px;
    gap: 24px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(20px);
  }

  .nav.mobile-open .nav-right {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: calc(80px + 150px);
    left: 0;
    right: 0;
    background-color: rgba(10, 10, 10, 0.98);
    padding: 24px;
    gap: 16px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(20px);
  }

  .nav.mobile-open .nav-social {
    justify-content: center;
  }

  .nav.mobile-open .nav-cta {
    text-align: center;
    width: 100%;
    display: block;
  }

  .hero-content {
    padding: 32px 24px;
    border-radius: 16px;
    max-width: calc(100vw - 32px);
    box-sizing: border-box;
  }

  .hero h1 {
    font-size: clamp(28px, 8vw, 36px);
    letter-spacing: -1px;
  }

  .hero p {
    font-size: 16px;
  }

  .cta-content {
    padding: 40px 32px;
    border-radius: 16px;
  }

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

  .video-item.video-featured {
    grid-column: span 1;
  }

  .hero-video-bg iframe {
    width: 300%;
    height: 100%;
  }

  .clients-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
  }

  .client-logo {
    padding: 20px;
    min-height: 100px;
  }

  .client-logo img {
    max-height: 90px;
  }

  .cta h2 {
    font-size: 32px;
  }

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

  .footer-divider {
    display: none;
  }

  .services-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
  }

  .service-flip-card {
    height: 260px;
  }

  .service-flip-front,
  .service-flip-back {
    padding: 24px;
  }

  .sticky-cta {
    top: 90px;
    right: 16px;
    padding: 12px 20px;
    font-size: 14px;
  }
}

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

/* Animations */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(40px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes glow {
  0%, 100% {
    opacity: 0.3;
  }
  50% {
    opacity: 0.5;
  }
}

.hero::before {
  animation: glow 4s ease-in-out infinite;
}

/* Hero Blur to Focus Animation */
.hero-animate {
  animation: heroFadeIn 0.8s ease-out forwards;
}

.blur-focus {
  opacity: 0;
  filter: blur(20px);
  transform: scale(1.1);
  animation: blurToFocus 1.2s cubic-bezier(0.25, 0.46, 0.45, 0.94) forwards;
}

.hero-title.blur-focus {
  animation-delay: 0.2s;
}

.hero-subtitle.blur-focus {
  animation-delay: 0.5s;
}

@keyframes heroFadeIn {
  from {
    opacity: 0;
    transform: scale(0.95);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

@keyframes blurToFocus {
  0% {
    opacity: 0;
    filter: blur(20px);
    transform: scale(1.1);
  }
  100% {
    opacity: 1;
    filter: blur(0);
    transform: scale(1);
  }
}

.video-item,
/* Video Hover Preview */
.video-item {
  cursor: pointer;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.video-item:hover,
.video-item.video-playing {
  transform: scale(1.02);
  box-shadow: 0 0 30px rgba(255, 77, 77, 0.3);
}

.video-item::after {
  content: 'Hover to preview';
  position: absolute;
  bottom: 10px;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(0, 0, 0, 0.7);
  color: white;
  padding: 6px 12px;
  border-radius: 4px;
  font-size: 12px;
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
  z-index: 10;
}

.video-item:hover::after {
  opacity: 0;
}

.video-wrapper {
  position: relative;
}

/* Marquee logos don't need individual animations */
.marquee-track .client-logo {
  opacity: 0.7;
  animation: none;
}

.video-item:nth-child(1) { animation-delay: 0.1s; }
.video-item:nth-child(2) { animation-delay: 0.2s; }
.video-item:nth-child(3) { animation-delay: 0.3s; }
.video-item:nth-child(4) { animation-delay: 0.4s; }

/* Smooth scroll indicator */
@keyframes bounce {
  0%, 20%, 50%, 80%, 100% {
    transform: translateY(0);
  }
  40% {
    transform: translateY(-10px);
  }
  60% {
    transform: translateY(-5px);
  }
}
