/* ==========================================
   GLOBAL STYLES
========================================== */

* {
  scroll-behavior: smooth;
}

body {
  font-family: "Inter", sans-serif;
  background: #fdfcf8;
  color: #1c1917;
}

iconify-icon {
  display: inline-block;
  vertical-align: middle;
}

/* ==========================================
   SCROLLBAR
========================================== */

::-webkit-scrollbar {
  width: 6px;
}

::-webkit-scrollbar-track {
  background: #fdfcf8;
}

::-webkit-scrollbar-thumb {
  background: #9fa5e8;
  border-radius: 99px;
}

/* ==========================================
   ANIMATIONS
========================================== */

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes scaleIn {
  from {
    opacity: 0;
    transform: scale(0.9);
  }

  to {
    opacity: 1;
    transform: scale(1);
  }
}

@keyframes float {
  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-12px);
  }
}

@keyframes scroll-logos {
  from {
    transform: translateX(0);
  }

  to {
    transform: translateX(-50%);
  }
}

@keyframes dot-pulse {
  from {
    transform: scale(1);
    opacity: 0.6;
  }

  to {
    transform: scale(1.8);
    opacity: 0;
  }
}

/* ==========================================
   ANIMATION CLASSES
========================================== */

.animate-fade-up {
  animation: fadeInUp 0.8s ease-out forwards;
}

.animate-scale-in {
  animation: scaleIn 0.7s ease-out forwards;
}

.animate-float {
  animation: float 6s ease-in-out infinite;
}

.toast {
  animation: fadeInUp .4s ease-out forwards;
}

.toast-exit {
  animation: fadeInUp .3s ease-out reverse forwards;
}

/* ==========================================
   DELAYS
========================================== */

.delay-100 {
  animation-delay: 0.1s;
}

.delay-200 {
  animation-delay: 0.2s;
}

.delay-300 {
  animation-delay: 0.3s;
}

.delay-400 {
  animation-delay: 0.4s;
}

.delay-500 {
  animation-delay: 0.5s;
}

/* ==========================================
   SECTION ANIMATION
========================================== */

.section-hidden {
  opacity: 0;
  transform: translateY(30px);
  transition: all .8s cubic-bezier(.16, 1, .3, 1);
}

.section-visible {
  opacity: 1;
  transform: translateY(0);
}

/* ==========================================
   HERO
========================================== */

.hero-blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.25;
}

/* ==========================================
   SERVICE CARD
========================================== */

.service-card {
  transition: all .4s cubic-bezier(0.16, 1, 0.3, 1);
}

.service-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 25px 50px -12px rgba(8, 0, 163, 0.15);
}

.service-icon {
  transition: all .4s cubic-bezier(0.16, 1, 0.3, 1);
}

/* .service-card:hover .service-icon {
  transform: scale(1.1);
  background: #0800a3;
  color: #fff;
} */

/* ==========================================
   NAVIGATION
========================================== */

.nav-link {
  position: relative;
  transition: color .3s;
}

.nav-link::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -4px;
  width: 0;
  height: 2px;
  background: #0800a3;
  transition: width .3s;
}

.nav-link:hover::after,
.nav-link.active::after {
  width: 100%;
}

/* ==========================================
   HAMBURGER ICON (animated)
========================================== */

.hamburger-icon {
    width: 22px;
    height: 16px;
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.hamburger-icon span {
    display: block;
    width: 100%;
    height: 2px;
    background: #1c1917;
    border-radius: 99px;
    transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
    transform-origin: center;
}

.hamburger-icon.active span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}

.hamburger-icon.active span:nth-child(2) {
    opacity: 0;
    transform: scaleX(0);
}

.hamburger-icon.active span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

/* ==========================================
   MOBILE MENU - NEW
========================================== */

#mobileMenu {
    transform: translateX(100%);
    -webkit-transform: translateX(100%);
}

#mobileMenu.menu-open {
    transform: translateX(0) !important;
    -webkit-transform: translateX(0) !important;
}

#mobileOverlay.overlay-active {
    opacity: 1 !important;
    pointer-events: auto !important;
}

/* ==========================================
   MOBILE NAV LINKS
========================================== */

.mobile-nav-link {
    -webkit-tap-highlight-color: transparent;
}

.mobile-nav-link:active {
    transform: scale(0.98);
}

.mobile-nav-link.mobile-active {
    background: #eaebff;
    color: #0800a3;
    font-weight: 600;
}

.mobile-nav-link:not(.mobile-active):hover,
.mobile-nav-link:not(.mobile-active):active {
    background: #f5f5f4;
}

/* Remove old mobile-menu styles */
.mobile-menu {
    transform: none !important;
    transition: none !important;
}

/* ==========================================
   BUTTONS
========================================== */

.btn-primary,
.btn-accent {
  color: #fff;
  position: relative;
  overflow: hidden;
  transition: all 0.3s;
}

.btn-primary {
  background: #0800a3;
}

.btn-primary::before {
  content: "";
  position: absolute;
  inset: 0;
  background: #0d0fd4;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.4s;
}

.btn-primary:hover::before {
  transform: scaleX(1);
}

.btn-primary span {
  position: relative;
  z-index: 1;
}

/* Accent Button */

.btn-accent {
  background: #ff0000;
}

.btn-accent::before {
  content: "";
  position: absolute;
  inset: 0;
  background: #ff3333;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.4s;
}

.btn-accent:hover::before {
  transform: scaleX(1);
}

.btn-accent span {
  position: relative;
  z-index: 1;
}

/* Outline Button */

.btn-outline {
  border: 1.5px solid #0800a3;
  color: #0800a3;
  transition: all .3s;
}

.btn-outline:hover {
  background: #0800a3;
  color: #fff;
}

/* ==========================================
   LOGO MARQUEE
========================================== */

.logo-track {
  animation: scroll-logos 30s linear infinite;
}

.logo-track:hover {
  animation-play-state: paused;
}

/* ==========================================
   COUNTERS
========================================== */

.counter {
  font-variant-numeric: tabular-nums;
}

.stat-number {
  background: linear-gradient(135deg, #0800a3, #4147e0);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ==========================================
   RED LIVE DOT
========================================== */

.red-dot {
  width: 8px;
  height: 8px;
  display: inline-block;
  position: relative;
  border-radius: 50%;
  background: #ff0000;
}

.red-dot::after {
  content: "";
  position: absolute;
  inset: -3px;
  border-radius: 50%;
  border: 2px solid #ff0000;
  animation: dot-pulse 1.5s ease-out infinite;
}

/* ==========================================
   FORM ELEMENTS
========================================== */

input:focus,
textarea:focus,
select:focus {
  outline: none;
  border-color: #0800a3;
  box-shadow: 0 0 0 3px rgba(8, 0, 163, .1);
}

/* investor relation */
 .hero-pattern {
    background-image:
      radial-gradient(circle at 15% 80%, rgba(65,71,224,0.12) 0%, transparent 50%),
      radial-gradient(circle at 85% 20%, rgba(13,15,212,0.15) 0%, transparent 40%),
      url("data:image/svg+xml,%3Csvg width='40' height='40' viewBox='0 0 40 40' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='%23ffffff' fill-opacity='0.03' fill-rule='evenodd'%3E%3Cpath d='M0 40L40 0H20L0 20M40 40V20L20 40'/%3E%3C/g%3E%3C/svg%3E");
  }
  .grid-lines {
    background-image:
      linear-gradient(rgba(8,0,163,0.04) 1px, transparent 1px),
      linear-gradient(90deg, rgba(8,0,163,0.04) 1px, transparent 1px);
    background-size: 60px 60px;
  }
  .card-lift { transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1); }
  .card-lift:hover { transform: translateY(-6px); box-shadow: 0 20px 60px rgba(8, 0, 163, 0.1); }
  .btn-shine { position: relative; overflow: hidden; }
  .btn-shine::after {
    content: ''; position: absolute; inset: 0;
    background: linear-gradient(120deg, transparent 30%, rgba(65,71,224,0.2) 50%, transparent 70%);
    transform: translateX(-100%); transition: transform 0.6s ease;
  }
  .btn-shine:hover::after { transform: translateX(100%); }
  .fade-up {
    opacity: 0; transform: translateY(30px);
    animation: fadeUp 0.7s ease-out forwards;
  }
  @keyframes fadeUp { to { opacity: 1; transform: translateY(0); } }
  .delay-1 { animation-delay: 0.1s; }
  .delay-2 { animation-delay: 0.2s; }
  .delay-3 { animation-delay: 0.3s; }
  
  .resource-row { transition: all 0.25s ease; }
  .resource-row:hover { background: #eaebff; }
  .thesis-num {
    background: linear-gradient(135deg, #0800A3, #4147e0);
    -webkit-background-clip: text; -webkit-text-fill-color: transparent;
    background-clip: text;
  }
  .section-line {
    background: linear-gradient(90deg, #0800A3, #4147e0, transparent);
  }
  .gov-card {
    background: linear-gradient(135deg, #040066 0%, #0800A3 50%, #0d0fd4 100%);
  }
  .hero-img-overlay {
    background:
      linear-gradient(180deg, rgba(4,0,102,0.85) 0%, rgba(8,0,163,0.78) 40%, rgba(13,15,212,0.88) 100%);
  }
  .blue-glow {
    box-shadow: 0 0 80px rgba(65,71,224,0.3), 0 0 160px rgba(8,0,163,0.15);
  }
  .blue-glow-sm {
    box-shadow: 0 0 40px rgba(65,71,224,0.2), 0 0 80px rgba(8,0,163,0.1);
  }


   /* Terms Page Specific Styles */
        .toc-link {
            border-left: 2px solid transparent;
            transition: all 0.25s ease;
        }
        .toc-link:hover,
        .toc-link.toc-active {
            color: #0800a3;
            border-left-color: #0800a3;
            background: #eaebff;
        }
        .legal-section h3 {
            color: #1c1917;
            font-weight: 600;
            margin-bottom: 0.75rem;
            display: flex;
            align-items: baseline;
            gap: 0.75rem;
        }
        .legal-section h3 .number {
            color: #0800a3;
            font-weight: 800;
            font-size: 0.875rem;
            background: linear-gradient(135deg, #0800A3, #4147e0);
            -webkit-background-clip: text;
            -webkit-text-fill-color: transparent;
            background-clip: text;
        }
        .legal-card {
            background: #ffffff;
            border: 1px solid rgba(8, 0, 163, 0.06);
            transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
        }
        .legal-card:hover {
            border-color: rgba(8, 0, 163, 0.12);
            box-shadow: 0 10px 40px -12px rgba(8, 0, 163, 0.08);
        }
        .hero-blob-terms {
            position: absolute;
            border-radius: 50%;
            filter: blur(80px);
            opacity: 0.15;
        }
        @keyframes float-slow {
            0%, 100% { transform: translateY(0); }
            50% { transform: translateY(-8px); }
        }
        .animate-float-slow {
            animation: float-slow 8s ease-in-out infinite;
        }