/* --- GLOBAL RESPONSIVE FIXES (NEW) --- */
html,
body {
  max-width: 100%;
  overflow-x: hidden !important;
  /* Forces cut-off of side overflow */
  position: relative;
  font-family: "Plus Jakarta Sans", sans-serif;
  background-color: var(--brand-dark);
  color: #e5e5e5;
}

/* Fix for the background elements causing width issues */
.aurora-bg,
.grain-overlay {
  width: 100%;
  max-width: 100%;
}

/* Ensure all sections clip their 3D children */
section,
header,
footer {
  overflow: hidden !important;
  width: 100%;
  max-width: 100%;
}

/* Fix Navigation overflow */
nav {
  max-width: 100vw;
  overflow-x: hidden;
}

/* --- CORE AESTHETICS --- */
:root {
  --brand-dark: #030303;
  --brand-accent: #7c3aed;
  --brand-accent2: #2dd4bf;
  --glass-border: rgba(255, 255, 255, 0.08);
  --glass-bg: rgba(10, 10, 10, 0.6);
}

h1,
h2,
h3,
h4,
.font-display {
  font-family: "Space Grotesk", sans-serif;
  letter-spacing: -0.02em;
}

/* --- CINEMATIC GRAIN & ATMOSPHERE --- */
.grain-overlay {
  position: fixed;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.8' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)' opacity='0.03'/%3E%3C/svg%3E");
  pointer-events: none;
  z-index: 9999;
  mix-blend-mode: overlay;
}

@media (max-width: 767px) {
  .grain-overlay {
    display: none;
  }
}

.aurora-bg {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  background:
    radial-gradient(
      circle at 15% 50%,
      rgba(59, 130, 246, 0.2),
      transparent 30%
    ),
    radial-gradient(circle at 85% 30%, rgba(220, 38, 38, 0.15), transparent 30%);
  z-index: -1;
  filter: blur(80px);
}

@media (min-width: 768px) {
  .aurora-bg {
    animation: aurora-shift 15s ease-in-out infinite alternate;
  }
}

@keyframes aurora-shift {
  0% {
    transform: scale(1);
    opacity: 0.8;
  }

  100% {
    transform: scale(1.1);
    opacity: 1;
  }
}

/* --- ANIMATIONS --- */
.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: all 1s cubic-bezier(0.16, 1, 0.3, 1);
}

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

/* Ticker */
@keyframes ticker-nav {
  0% {
    transform: translateX(0);
  }

  100% {
    transform: translateX(-260%);
  }
}

.animate-ticker-nav {
  animation: ticker-nav 60s linear infinite;
}

@media (min-width: 1000px) {
  .animate-ticker-nav {
    animation: ticker-nav 90s linear infinite;
  }
}

@media (min-width: 1500px) {
  @keyframes ticker-nav {
    0% {
      transform: translateX(0);
    }

    100% {
      transform: translateX(-30%);
    }
  }

  .animate-ticker-nav {
    animation: ticker-nav 50s linear infinite;
  }
}

/* Floating Elements */
@keyframes float {
  0%,
  100% {
    transform: translateY(0px);
  }

  50% {
    transform: translateY(-15px);
  }
}

.animate-float {
  animation: float 6s ease-in-out infinite;
}

/* Wave Text */
.wave-text {
  background-image: url("data:image/svg+xml;utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1000 300' preserveAspectRatio='none'%3E%3Cpath d='M0,100 C150,200 350,0 500,100 C650,200 850,0 1000,100 V300 H0 Z' fill='%23facc15'/%3E%3C/svg%3E");
  background-size: 200% 120%;
  background-repeat: repeat-x;
  background-position: 0 130%;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
  -webkit-text-stroke: 1px rgba(255, 255, 255, 0.3);
  position: relative;
  z-index: 20;
  display: inline-block;
  transition:
    transform 1s cubic-bezier(0.16, 1, 0.3, 1),
    opacity 1s ease,
    filter 1s ease;
}

.wave-animate {
  animation:
    wave-flow 3s linear infinite,
    water-rise 2s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

@keyframes wave-flow {
  0% {
    background-position-x: 0%;
  }

  100% {
    background-position-x: 200%;
  }
}

@keyframes water-rise {
  0% {
    background-position-y: 130%;
  }

  100% {
    background-position-y: 10%;
  }
}

/* --- HERO TEXT REVEAL ANIMATIONS --- */
.hero-text-mask {
  display: block;
}

.hero-text-entry {
  display: block;
  opacity: 0;
  filter: blur(12px);
  transform: translateY(20px) scale(0.95);
  animation: cinematic-fade-up 1.8s cubic-bezier(0.2, 1, 0.3, 1) forwards;
  will-change: transform, opacity, filter;
}

.delay-100 {
  animation-delay: 0.3s;
}

.delay-200 {
  animation-delay: 1s;
}

.delay-300 {
  animation-delay: 1.8s;
}

@keyframes cinematic-fade-up {
  0% {
    opacity: 0;
    transform: translateY(20px) scale(0.95);
    filter: blur(12px);
  }

  100% {
    opacity: 1;
    transform: translateY(0) scale(1);
    filter: blur(0);
  }
}

/* --- LIQUID GLASS FORM STYLES --- */
.liquid-glass {
  background: rgba(18, 18, 24, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow:
    0 25px 60px -12px rgba(0, 0, 0, 0.8),
    inset 0 1px 0 rgba(255, 255, 255, 0.15),
    inset 0 0 80px rgba(124, 58, 237, 0.05);
  position: relative;
  overflow: hidden;
}

@media (min-width: 768px) {
  .liquid-glass {
    backdrop-filter: blur(40px);
    -webkit-backdrop-filter: blur(40px);
  }
}

.liquid-blob {
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background:
    radial-gradient(
      circle at 50% 50%,
      rgba(124, 58, 237, 0.12),
      transparent 60%
    ),
    radial-gradient(
      circle at 80% 20%,
      rgba(45, 212, 191, 0.08),
      transparent 50%
    );
  animation: rotate-blob 25s linear infinite;
  pointer-events: none;
  z-index: -1;
}

@keyframes rotate-blob {
  0% {
    transform: rotate(0deg);
  }

  100% {
    transform: rotate(360deg);
  }
}

@keyframes modal-3d-in {
  0% {
    opacity: 0;
    transform: scale(0.95) translateY(20px);
    filter: blur(10px);
  }

  100% {
    opacity: 1;
    transform: scale(1) translateY(0);
    filter: blur(0);
  }
}

.modal-animate-in {
  animation: modal-3d-in 0.5s cubic-bezier(0.2, 0.8, 0.2, 1) forwards;
}

@keyframes slide-in-right {
  0% {
    opacity: 0;
    transform: translateX(20px);
  }

  100% {
    opacity: 1;
    transform: translateX(0);
  }
}

.step-animate {
  animation: slide-in-right 0.3s ease-out forwards;
}

.input-3d {
  background: rgba(0, 0, 0, 0.3);
  border: 1px solid rgba(255, 255, 255, 0.5);
  border-radius: 12px;
  box-shadow:
    inset 0 2px 4px rgba(0, 0, 0, 0.4),
    0 1px 0 rgba(255, 255, 255, 0.05);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.input-3d:focus {
  background: rgba(0, 0, 0, 0.5);
  border-color: var(--brand-accent);
  box-shadow:
    inset 0 2px 4px rgba(0, 0, 0, 0.6),
    0 0 0 1px var(--brand-accent),
    0 0 20px rgba(124, 58, 237, 0.15);
  outline: none;
  transform: translateY(1px);
}

.form-radio-card {
  cursor: pointer;
  transition: all 0.2s ease;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(10px);
}

.form-radio-card:hover {
  background-color: rgba(255, 255, 255, 0.08);
  border-color: rgba(124, 58, 237, 0.5);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.form-radio-input:checked + .form-radio-card {
  background: linear-gradient(
    135deg,
    rgba(124, 58, 237, 0.2),
    rgba(124, 58, 237, 0.05)
  );
  border-color: #7c3aed;
  box-shadow: 0 0 25px rgba(124, 58, 237, 0.25);
}

/* --- COMPONENT STYLES --- */
.glass-panel {
  background: var(--glass-bg);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border: 1px solid var(--glass-border);
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
  overflow: hidden;
}

.nav-grid {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
}

.text-gradient {
  background: linear-gradient(135deg, #fff 0%, #a78bfa 50%, #2dd4bf 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-size: 200% auto;
  animation: gradient-move 5s linear infinite;
}

@keyframes gradient-move {
  0% {
    background-position: 0% 50%;
  }

  100% {
    background-position: 200% 50%;
  }
}

.perspective-container {
  perspective: 2000px;
  transform-style: preserve-3d;
}

.hero-bg-container {
  position: absolute;
  inset: -25%;
  transform: rotateX(20deg) rotateY(-10deg) rotateZ(-5deg) scale(1.2);
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
}

/* --- UPDATED VIDEO WALL (ZOOMED ON MOBILE) --- */
.video-wall-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  /* 3 Columns on mobile */
  gap: 0.25rem;
  width: 100%;
  /* height: 100%; */
  opacity: 0.2;
  filter: grayscale(100%) contrast(1.2) blur(2px);
  transition: filter 0.5s ease;
}

@media (min-width: 768px) {
  .video-wall-grid {
    grid-template-columns: repeat(7, 1fr);
    /* grid-template-columns: repeat(10, 1fr); */
    gap: 1rem;
  }
}

@media (min-width: 950px) {
  .video-wall-grid {
    grid-template-columns: repeat(8, 1fr);
    /* grid-template-columns: repeat(10, 1fr); */
  }
}

@media (min-width: 1200px) {
  .video-wall-grid {
    grid-template-columns: repeat(9, 1fr);
    gap: 1.5rem;
  }
}

.video-wall-item {
  width: 100%;
  aspect-ratio: 5/16;
  background: #0a0a0a;
  border-radius: 8px;
  overflow: hidden;
}

@media (min-width: 768px) {
  .video-wall-item {
    aspect-ratio: 6/22;
  }
}

@media (min-width: 1300px) {
  .video-wall-item {
    aspect-ratio: 9/16;
  }
}

.video-wall-item video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.5);
}

.bluered-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    135deg,
    rgba(29, 78, 216, 0.5),
    rgba(185, 28, 28, 0.4)
  );
  mix-blend-mode: soft-light;
  z-index: 1;
}

.vignette-overlay {
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at center, transparent 30%, #030303 90%);
  z-index: 2;
}

/* 3D Card Animations */
@keyframes float-card-constant {
  0%,
  100% {
    transform: perspective(1500px) rotateX(2deg) translateY(0);
  }

  50% {
    transform: perspective(1500px) rotateX(5deg) translateY(-10px);
  }
}

.card-3d-hover {
  transform-style: preserve-3d;
  animation: float-card-constant 6s ease-in-out infinite;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
  transition: box-shadow 0.3s ease;
}

.card-3d-hover:hover {
  animation-play-state: paused;
  transform: perspective(1500px) rotateX(5deg) translateY(-15px);
  box-shadow: 0 40px 80px -12px rgba(124, 58, 237, 0.5);
  z-index: 20;
}

.card-content-pop {
  transform: translateZ(30px);
  transition: transform 0.5s ease;
}

.card-3d-hover:hover .card-content-pop {
  transform: translateZ(60px);
}

.video-card-3d {
  transform-style: preserve-3d;
  transition:
    box-shadow 0.4s ease,
    border-color 0.4s ease,
    transform 0.4s ease;
}

.video-card-3d:hover {
  transform: perspective(1200px) rotateX(0deg) translateZ(30px);
  z-index: 50;
  box-shadow: 0 60px 120px -20px rgba(124, 58, 237, 0.8);
  border-color: #fff;
}

.hide-scrollbar::-webkit-scrollbar {
  display: none;
}

.hide-scrollbar {
  -ms-overflow-style: none;
  scrollbar-width: none;
}

.ticker-mask {
  mask-image: linear-gradient(
    to right,
    transparent 0%,
    black 15%,
    black 85%,
    transparent 100%
  );
}

.watermark-3d {
  transform: translateZ(-50px);
  opacity: 0.5;
}

/* --- NEW STYLES FOR CASE STUDIES --- */
.glass-card {
  background: rgba(15, 15, 20, 0.4);
  backdrop-filter: blur(40px);
  -webkit-backdrop-filter: blur(40px);
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow:
    0 20px 40px -10px rgba(0, 0, 0, 0.5),
    inset 0 1px 0 rgba(255, 255, 255, 0.1),
    inset 0 -1px 0 rgba(0, 0, 0, 0.5);
  position: relative;
  overflow: hidden;
}

.glass-card::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  border-radius: inherit;
  padding: 1px;
  background: linear-gradient(
    135deg,
    rgba(255, 255, 255, 0.2),
    rgba(255, 255, 255, 0.05)
  );
  -webkit-mask:
    linear-gradient(#fff 0 0) content-box,
    linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
}

.card-3d {
  transform-style: preserve-3d;
  transition: transform 0.1s ease-out;
}

.card-pop {
  transform: translateZ(40px);
  transition: transform 0.3s ease;
}

.ticker-item {
  opacity: 1;
  filter: grayscale(0%);
  /* transform: scale(1.1); */
  height: 20px;
  width: auto;
}

@media (min-width: 768px) {
  .ticker-item {
    height: 25px;
  }
}

@media (min-width: 1000px) {
  .ticker-item {
    height: 35px;
  }
}

.dropdown-menu {
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: all 0.2s ease-out;
}

.group:hover .dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.btn-3d-action {
  background: #ffffff;
  color: #000;
  border-radius: 9999px;
  position: relative;
  transform-style: preserve-3d;
  transition: all 0.15s ease-out;
  box-shadow:
    0 8px 0 #9ca3af,
    0 15px 20px rgba(0, 0, 0, 0.4);
}

.btn-3d-action:active {
  transform: translateY(8px);
  box-shadow:
    0 0 0 #9ca3af,
    0 0 0 rgba(0, 0, 0, 0.4);
}

@keyframes ripple {
  0% {
    box-shadow: 0 0 0 0 rgba(124, 58, 237, 0.7);
  }

  70% {
    box-shadow: 0 0 0 15px rgba(124, 58, 237, 0);
  }

  100% {
    box-shadow: 0 0 0 0 rgba(124, 58, 237, 0);
  }
}

.animate-ripple {
  animation: ripple 1.5s infinite;
}

/* --- SPOTLIGHT EFFECT CSS --- */
.spotlight-card {
  position: relative;
  overflow: hidden;
  --mouse-x: 50%;
  --mouse-y: 50%;
}

.spotlight-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  border-radius: inherit;
  background: radial-gradient(
    800px circle at var(--mouse-x) var(--mouse-y),
    rgba(255, 255, 255, 0.1),
    transparent 40%
  );
  opacity: 0;
  transition: opacity 0.5s ease;
  pointer-events: none;
  z-index: 2;
}

.spotlight-card:hover::before {
  opacity: 1;
}

.heart-bubble {
  position: absolute;
  color: #ef4444;
  font-size: 24px;
  pointer-events: none;
  z-index: 50;
  animation: floatUp 2s ease-out forwards;
}

@keyframes floatUp {
  0% {
    transform: translate(0, 0) scale(0.5);
    opacity: 1;
  }

  100% {
    transform: translate(var(--tw-translate-x), -150px) scale(1.5);
    opacity: 0;
  }
}

.play-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 20;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.play-overlay.hidden {
  opacity: 0;
}

.play-icon {
  width: 60px;
  height: 60px;
  background: rgba(0, 0, 0, 0.5);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  backdrop-filter: blur(4px);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.active-filter-btn {
  background-color: rgba(124, 58, 237, 0.2) !important;
  border-color: #7c3aed !important;
  color: white !important;
  box-shadow: 0 0 15px rgba(124, 58, 237, 0.5) !important;
}

.filter-btn-3d {
  background-color: rgba(124, 58, 237, 0.1);
  border: 1px solid rgba(124, 58, 237, 0.5);
  color: white;
  box-shadow:
    0 5px 15px -5px rgba(124, 58, 237, 0.6),
    inset 0 1px 0 rgba(255, 255, 255, 0.3);
  transition: all 0.3s ease;
}

.filter-btn-3d:hover {
  background-color: rgba(124, 58, 237, 0.2);
  transform: translateY(-1px);
}

/* --- DROPDOWN FIXES (Add this at the end of your style block) --- */
.dropdown-menu {
  display: none;
  /* Default hidden */
  opacity: 0;
  transform: translateY(10px);
  transition: all 0.2s ease-out;
}

/* Desktop: Open on Hover */
@media (min-width: 768px) {
  .group:hover .dropdown-menu {
    display: block;
    opacity: 1;
    transform: translateY(0);
  }
}

/* Mobile: Open when class "open" is added by JS */
.group.open .dropdown-menu {
  display: block;
  opacity: 1;
  transform: translateY(0);
  z-index: 100;
}

.group.open .lucide-chevron-down {
  transform: rotate(180deg);
}

/* Wrapper */
.iti {
  width: 100%;
}

.iti__dropdown-content {
  border-radius: 0.75rem;
}

/* Country selector button */
.iti__selected-flag {
  background: rgba(0, 0, 0, 0.4);
  border-radius: 0.75rem;
  padding: 0 12px;
  color: white;
}

/* Dial code text */
.iti__selected-dial-code {
  color: white;
  font-weight: 600;
}

/* Arrow */
.iti__arrow {
  border-top-color: white;
}

/* Input field */
.iti input {
  background: rgba(0, 0, 0, 0.4);
  color: white;
  border-radius: 0.75rem;
  padding-left: 5.5rem !important;
}

/* Dropdown country list */
.iti__country-list {
  background: #0b0b0b;
  color: white;
  border-radius: 0.75rem;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

/* Hover state */
.iti__country:hover {
  background: rgba(255, 255, 255, 0.08);
}

/* Highlighted */
.iti__country.iti__highlight {
  background: rgba(255, 255, 255, 0.15);
}

/* privacy */
.title-gradient-anim {
  background: linear-gradient(
    to right,
    #ffffff 10%,
    #7c3aed 30%,
    #2dd4bf 50%,
    #7c3aed 70%,
    #ffffff 90%
  );
  background-size: 200% auto;
  color: transparent;
  -webkit-background-clip: text;
  background-clip: text;
  animation: text-shimmer 3s linear infinite;
}
/* Services */

.bar-anim {
  animation: bar-growth 2s ease-in-out infinite alternate;
  transform-origin: bottom;
}

.bar-1 {
  animation-duration: 1.5s;
}

.bar-2 {
  animation-duration: 2.2s;
  animation-delay: 0.2s;
}

.bar-3 {
  animation-duration: 1.8s;
  animation-delay: 0.5s;
}

.bar-4 {
  animation-duration: 2.5s;
  animation-delay: 0.1s;
}

.bar-5 {
  animation-duration: 1.6s;
  animation-delay: 0.7s;
}

.bar-6 {
  animation-duration: 2.1s;
  animation-delay: 0.3s;
}

.bar-7 {
  animation-duration: 1.9s;
  animation-delay: 0.6s;
}

.bar-8 {
  animation-duration: 2.3s;
  animation-delay: 0.4s;
}
