/* Aggressive Hero Styles */
.hero-container-aggressive {
  position: relative;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  align-items: center;
  padding-top: 0;
  gap: 40px;
}

.hero-title-aggressive {
  font-size: clamp(3rem, 7vw, 6rem);
  font-weight: 700;
  letter-spacing: -0.04em;
  line-height: 1.05;
  color: #ffffff;
  margin-bottom: 40px;
  z-index: 10;
  position: relative;
}

.hero-cta-aggressive {
  display: flex;
  gap: 16px;
  align-items: center;
  z-index: 10;
  position: relative;
}

.btn-pill-white {
  display: flex;
  align-items: center;
  gap: 12px;
  background: #ffffff;
  color: #000000;
  padding: 16px 24px 16px 32px;
  border-radius: 100px;
  font-weight: 600;
  font-size: 16px;
  transition: all 0.3s ease;
}

.btn-pill-white:hover {
  transform: scale(1.05);
}

.btn-icon-circle {
  display: flex;
  align-items: center;
  justify-content: center;
  background: #000000;
  color: #ffffff;
  width: 28px;
  height: 28px;
  border-radius: 50%;
}

.btn-pill-translucent {
  display: inline-flex;
  align-items: center;
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  color: #ffffff;
  padding: 16px 32px;
  border-radius: 100px;
  font-weight: 500;
  font-size: 16px;
  transition: all 0.3s ease;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.case-tag {
  background: rgba(0, 240, 255, 0.1);
  color: #00f0ff;
  padding: 4px 12px;
  border-radius: 100px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  border: 1px solid rgba(0, 240, 255, 0.2);
}

/* Specific Ocean Floor Footer for Home Page */
.footer-ocean-floor {
  background: linear-gradient(to bottom, transparent 0%, rgba(1, 3, 10, 0.8) 40%, rgba(1, 3, 10, 1) 100%) !important;
  border-top: 1px solid rgba(0, 240, 255, 0.3) !important;
  z-index: 10;
}

.footer-ocean-floor::before {
  height: 2px !important;
  background: linear-gradient(90deg, transparent, #00f0ff, transparent) !important;
  opacity: 0.8 !important;
}

.btn-pill-translucent:hover {
  background: rgba(255, 255, 255, 0.2);
}

.hero-footer-aggressive {
  text-align: left;
  color: rgba(255, 255, 255, 0.85);
  font-size: 13px;
  line-height: 1.8;
  max-width: 500px;
  z-index: 10;
  padding: 24px 32px;
  background: rgba(10, 10, 10, 0.6);
  backdrop-filter: blur(12px);
  border-left: 2px solid #00f0ff;
  border-radius: 4px;
  margin-top: 48px;
}

.footer-label {
  display: block;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.2em;
  color: #00f0ff;
  margin-bottom: 12px;
  text-transform: uppercase;
}
   HOME PAGE (WebGL Parallax Layout)
   ========================================================================== */

body {
  background-color: #01030a !important;
}

#webgl-canvas {
  position: fixed;
  inset: 0; /* top: 0, right: 0, bottom: 0, left: 0 */
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
}

.scroll-container {
  position: relative;
  z-index: var(--z-index-content);
  width: 100%;
}

.story-section {
  position: relative;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  align-items: center;
  padding: 100px 0;
  z-index: 10;
}

/* Background Variations */
.section-transparent {
  background: transparent;
  z-index: 1 !important; /* Behind the WebGL canvas */
}

.section-white {
  background: #ffffff;
  color: var(--color-neutral-900);
}

.section-white h2, .section-white h3, .section-white p {
  pointer-events: auto; /* ensure text is clickable/selectable on solid bg */
}
.section-white .container {
  pointer-events: auto;
}

.section-black {
  background: #050814; /* Deep dark blue/black to blend slightly */
  color: var(--color-neutral-100);
}
.section-black .container {
  pointer-events: auto;
}

.story-section .container {
  width: 100%;
}

.story-section.align-left .container {
  display: flex;
  justify-content: flex-start;
}

.story-section.align-right .container {
  display: flex;
  justify-content: flex-end;
}

.story-card, .bento-grid, .hero-content, .section-cta {
  pointer-events: auto; /* Enable clicks on the actual content */
  opacity: 0;
  transform: translateY(30px) scale(0.95);
  transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: opacity, transform;
}

.story-card.visible, .bento-grid.visible, .hero-content.visible, .section-cta.visible {
  opacity: 1;
  transform: translateY(0) scale(1);
}

.story-card {
  max-width: 500px;
  /* Extra subtle shadow to stand out from WebGL background */
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
}

.hero-content {
  max-width: 800px;
}

.max-w-2xl {
  max-width: 42rem; /* 672px */
}

/* Scroll Indicator */
.scroll-indicator {
  position: absolute;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--spacing-2);
  color: var(--color-neutral-500);
  font-size: var(--font-size-sm);
  animation: float 2s infinite ease-in-out;
}

.mouse {
  width: 24px;
  height: 36px;
  border: 2px solid var(--color-neutral-500);
  border-radius: 12px;
  position: relative;
}

.mouse::before {
  content: '';
  position: absolute;
  top: 6px;
  left: 50%;
  transform: translateX(-50%);
  width: 4px;
  height: 4px;
  background: var(--color-accent-400);
  border-radius: 50%;
  animation: scrollWheel 2s infinite;
}

/* Logo Marquee Section */
.marquee-section {
  padding: 40px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  background: rgba(0, 0, 0, 0.4);
  backdrop-filter: blur(8px);
  overflow: hidden;
  position: relative;
  z-index: 2; /* above canvas */
}

.marquee-content {
  display: flex;
  white-space: nowrap;
  animation: scroll-left 30s linear infinite;
  gap: 80px;
  align-items: center;
}

@keyframes scroll-left {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

.logo-item {
  color: rgba(255, 255, 255, 0.4);
  font-size: 1.2rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.client-logo {
  height: 48px;
  width: auto;
  filter: grayscale(100%) invert(0.8) opacity(0.5); /* Make them unified, grayish-white and transparent */
  transition: filter 0.3s ease, transform 0.3s ease;
  object-fit: contain;
}

.client-logo:hover {
  filter: grayscale(0%) invert(0) opacity(1); /* Reveal original colors on hover */
  transform: scale(1.05);
}

/* Metrics Section */
.metrics-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 80px;
}

.metric-card {
  padding: 40px 32px;
  text-align: left;
  background: rgba(10, 10, 10, 0.6);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-left: 2px solid #00f0ff;
  border-radius: 4px;
  position: relative;
  overflow: hidden;
  transition: transform 0.3s ease, border-color 0.3s ease;
}

.metric-card:hover {
  transform: translateY(-4px);
  border-color: rgba(0, 240, 255, 0.3);
  border-left: 2px solid #00f0ff;
}

.metric-value {
  display: block;
  font-size: clamp(2.5rem, 4vw, 3.5rem);
  font-weight: 800;
  color: #ffffff;
  margin-bottom: 12px;
  letter-spacing: -0.02em;
  text-shadow: 0 0 20px rgba(0, 240, 255, 0.3);
  line-height: 1;
}

.metric-title {
  display: block;
  color: #00f0ff;
  font-size: 0.9rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 12px;
}

.metric-desc {
  color: #a3a3a3;
  font-size: 0.85rem;
  line-height: 1.6;
}

@media (max-width: 768px) {
  .metrics-grid {
    grid-template-columns: 1fr;
    gap: 16px;
    margin-top: 48px;
  }
  .metric-card {
    padding: 24px;
    border: 1px solid rgba(0, 240, 255, 0.15);
    background: linear-gradient(135deg, rgba(10,10,10,0.8), rgba(0,20,30,0.8));
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.4), inset 0 0 10px rgba(0, 240, 255, 0.05);
  }
}

/* Ambition Grid (Section 2) */
.section-header-mega {
  margin-bottom: 64px;
}

.ambition-grid-4 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

@media (max-width: 1024px) {
  .ambition-grid-4 {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .ambition-grid-4 {
    grid-template-columns: 1fr;
  }
}

/* Unified Premium Aggressive Card */
.premium-card-aggressive {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 320px;
  padding: 32px 24px;
  background: rgba(10, 10, 10, 0.6);
  backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-left: 2px solid #00f0ff;
  border-radius: 4px; /* Sharp corners for aggressive look */
  color: #ffffff;
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
  overflow: hidden;
}

.premium-card-aggressive::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: radial-gradient(circle at top right, rgba(0, 240, 255, 0.1), transparent 70%);
  opacity: 0;
  transition: opacity 0.4s ease;
  pointer-events: none;
}

.premium-card-aggressive:hover {
  transform: translateY(-8px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-left: 2px solid #00f0ff;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.6), 0 0 20px rgba(0, 240, 255, 0.2);
}

.premium-card-aggressive:hover::before {
  opacity: 1;
}

.premium-card-aggressive h3 {
  font-size: 20px;
  font-weight: 700;
  letter-spacing: -0.01em;
  margin-bottom: 12px;
  color: #ffffff;
}

.premium-card-aggressive p {
  font-size: 14px;
  line-height: 1.6;
  color: #a3a3a3;
}

.premium-icon-glow {
  align-self: flex-start;
  color: #00f0ff;
  filter: drop-shadow(0 0 8px rgba(0, 240, 255, 0.6));
  margin-bottom: 24px;
}

/* Mobile Adjustments for Aggressive Cards */
@media (max-width: 768px) {
  .premium-card-aggressive {
    min-height: auto;
    padding: 28px 20px;
    border: 1px solid rgba(0, 240, 255, 0.15);
    border-left: 3px solid #00f0ff;
    background: linear-gradient(135deg, rgba(10,10,10,0.8), rgba(0,20,30,0.8));
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5), inset 0 0 15px rgba(0, 240, 255, 0.05);
  }
  .premium-card-aggressive::before {
    opacity: 0.6; /* Always show the glow slightly on mobile */
  }
  .premium-card-aggressive:active {
    transform: scale(0.98);
  }
}

.ambition-content-top { margin-bottom: 32px; }
.ambition-content-bottom { margin-top: auto; }
.bento-content { margin-top: auto; }

/* Strategy Grid (Section 4) */
.strategy-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  background: transparent;
}

/* Case Studies Grid (Section 5) */
/* Case Studies Grid (Section 5) */
.case-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.case-card {
  display: flex;
  flex-direction: column;
  background: rgba(10, 10, 10, 0.6);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 4px; /* Sharp geometry */
  overflow: hidden;
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.case-card:hover {
  transform: translateY(-8px);
  border: 1px solid rgba(0, 240, 255, 0.4);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.6), 0 0 30px rgba(0, 240, 255, 0.15);
}

.case-visual {
  height: 220px;
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #050505;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.case-visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.4;
  transition: opacity 0.5s ease, transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.case-card:hover .case-visual img {
  opacity: 0.8;
  transform: scale(1.05);
}

/* Monochromatic Tech gradients */
.bg-gradient-1 { background: linear-gradient(135deg, #111 0%, #050505 100%); }
.bg-gradient-2 { background: linear-gradient(135deg, #151515 0%, #0a0a0a 100%); }
.bg-gradient-3 { background: linear-gradient(135deg, #1a1a1a 0%, #000000 100%); }
.bg-gradient-4 { background: linear-gradient(135deg, #0f172a 0%, #020617 100%); }

/* Minimalist floating elements inside visual */
.case-visual-element {
  width: 100%;
  height: 2px;
  background: rgba(0, 240, 255, 0.5);
  position: absolute;
  top: 50%;
  box-shadow: 0 0 10px rgba(0, 240, 255, 0.8);
  animation: scanline 4s linear infinite;
}

@keyframes scanline {
  0% { transform: translateY(-110px); }
  100% { transform: translateY(110px); }
}

.case-content {
  padding: 32px 24px;
}

.case-label {
  display: inline-block;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.2em;
  color: #00f0ff;
  margin-bottom: 16px;
  padding: 4px 8px;
  border: 1px solid rgba(0, 240, 255, 0.3);
  border-radius: 2px;
}

.case-content p {
  color: #d1d5db;
  font-size: 14px;
  line-height: 1.6;
}

/* Minimalist Header Layout */
.section-header-minimal {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: 64px;
}

.section-title-mega {
  color: #ffffff;
  font-size: 3.5rem;
  font-weight: 700;
  letter-spacing: -0.04em;
  line-height: 1.1;
  max-width: 800px;
}

.section-subtitle-minimal {
  color: #a3a3a3;
  font-size: 1.25rem;
  margin-top: 24px;
  max-width: 600px;
}

.btn-dark {
  background: #000000;
  color: #ffffff;
  padding: 16px 32px;
  border-radius: 12px;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  transition: all 0.2s;
}

.btn-dark:hover {
  background: #1f2937;
  transform: translateX(4px);
}

/* Section Text Colors */
.section-title-dark {
  color: var(--color-primary-900);
  font-size: var(--font-size-3xl);
}

.section-subtitle-dark {
  color: var(--color-neutral-600);
  max-width: 42rem;
  margin: 16px auto 0;
}

/* Text Glow (For dark backgrounds) */
.text-glow {
  text-shadow: 0 0 20px rgba(255, 255, 255, 0.2);
}

/* CTA Section */
.section-cta {
  min-height: 80vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.btn-lg {
  padding: var(--spacing-4) var(--spacing-8);
  font-size: var(--font-size-lg);
  transition: all 0.3s ease;
}

.btn-lg:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 40px rgba(46, 184, 230, 0.6) !important;
}

/* Animations */
@keyframes float {
  0%, 100% { transform: translate(-50%, 0); }
  50% { transform: translate(-50%, -10px); }
}

@keyframes scrollWheel {
  0% { transform: translate(-50%, 0); opacity: 1; }
  100% { transform: translate(-50%, 15px); opacity: 0; }
}

/* Responsive */
@media (max-width: 1024px) {
  .bento-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .display-text {
    font-size: var(--font-size-4xl);
  }
  
  /* Fix specificity so content takes full width on mobile */
  .story-section.align-left .container,
  .story-section.align-right .container {
    justify-content: center;
    flex-direction: column;
    align-items: center;
  }
  
  .story-card {
    max-width: 100%;
    margin-top: 10vh; /* Adjust for mobile visibility */
    margin-bottom: 32px;
  }
  
  .ambition-grid-4 {
    grid-template-columns: 1fr; /* 1 column on mobile */
    gap: var(--spacing-6);
  }

  .case-grid {
    grid-template-columns: 1fr;
    gap: var(--spacing-6);
  }

  /* Horizontal Carousel for Metrics on Mobile */
  .metrics-grid {
    display: flex !important;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    gap: var(--spacing-4);
    padding-bottom: var(--spacing-4);
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
  }

  .metric-card {
    min-width: 280px;
    scroll-snap-align: center;
    flex-shrink: 0;
  }

  /* Testimonials Grid Carousel */
  .testimonials-grid {
    display: flex !important;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    gap: var(--spacing-4);
    padding-bottom: var(--spacing-4);
    -webkit-overflow-scrolling: touch;
  }

  .testimonials-grid .premium-card-aggressive {
    min-width: 300px;
    scroll-snap-align: center;
    flex-shrink: 0;
  }

  .metrics-grid::-webkit-scrollbar {
    display: none;
  }
  
  .metric-card {
    flex: 0 0 85%;
    scroll-snap-align: center;
    padding: 24px;
    border: 1px solid rgba(0, 240, 255, 0.15);
    background: linear-gradient(135deg, rgba(10,10,10,0.8), rgba(0,20,30,0.8));
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.4), inset 0 0 10px rgba(0, 240, 255, 0.05);
  }
  
  .bento-grid {
    grid-template-columns: 1fr;
  }
  
  .bento-card {
    grid-column: span 1 !important;
    grid-row: span 1 !important;
  }
  
  .case-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }
  
  .strategy-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }
}

@media (max-width: 768px) {
  .testimonials-grid {
    display: flex !important;
    flex-wrap: nowrap;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
    width: 100%;
    padding-bottom: 24px;
    scrollbar-width: none;
  }
  .testimonials-grid::-webkit-scrollbar {
    display: none;
  }
  .testimonials-grid .premium-card-aggressive {
    flex: 0 0 85%;
    scroll-snap-align: center;
  }
}

/* ----------------------------------------------------
   MOBILE OPTIMIZATION FOR HERO AGGRESSIVE
   ---------------------------------------------------- */
@media (max-width: 768px) {
  .hero-container-aggressive {
    flex-direction: column !important;
    justify-content: center !important;
    align-items: flex-start !important;
    padding-top: 80px !important;
    gap: 30px !important;
  }

  .hero-content-aggressive {
    width: 100%;
    margin-top: 20px;
  }

  .hero-title-aggressive {
    font-size: clamp(2rem, 9vw, 2.6rem) !important;
    line-height: 1.15 !important;
    letter-spacing: -0.02em !important;
    margin-bottom: 20px !important;
  }

  .hero-cta-aggressive {
    flex-direction: column !important;
    width: 100%;
    gap: 16px !important;
  }

  .btn-pill-white, .btn-pill-translucent {
    width: 100% !important;
    justify-content: space-between !important;
    padding: 18px 24px !important;
    font-size: 15px !important;
  }

  .hero-footer-aggressive {
    display: none !important;
  }
}
