/* Index Page Specific Styles */
body {
  font-family: var(--font-family);
  margin: 0;
  overflow-x: hidden;
  overflow-y: auto;
  scroll-behavior: smooth;
}

:root {
  --brand-1: #60a5fa; /* blue */
  --brand-2: #8b5cf6; /* purple */
  --brand-accent: #22c55e; /* green */
  --surface-1: rgba(10,10,10,0.7);
  --surface-2: rgba(10,10,10,0.85);
  --card-bg: rgba(0,0,0,0.5);
  --card-border: rgba(255,255,255,0.1);
}

.heading {
  font-size: clamp(36px, 8vw, 80px);
  font-weight: 432;
  letter-spacing: -0.07em;
  line-height: 1.1;
}

.subheading {
  font-size: clamp(18px, 5vw, 32px);
  font-weight: 424;
  letter-spacing: -0.04em;
  line-height: 1.2;
}

.body-text {
  font-size: clamp(14px, 2vw, 16px);
  font-weight: 460;
  line-height: 1.5;
}

.btn-text {
  font-size: 14px;
  font-weight: 560;
}

.border-gradient {
  position: relative;
  border-radius: 0.5rem;
  background: linear-gradient(rgba(10,10,10,0.7), rgba(10,10,10,0.7)) padding-box,
              linear-gradient(90deg, rgba(255,255,255,0.1), rgba(255,255,255,0.05)) border-box;
  border: 1px solid transparent;
}

.divider {
  height: 1px;
  background: linear-gradient(to right, rgba(255,255,255,0.01), rgba(255,255,255,0.1), rgba(255,255,255,0.01));
}

.spline-container {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  background: #000000;
}

.spline-container::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" width="100" height="100" viewBox="0 0 100 100"><defs><filter id="noise"><feTurbulence baseFrequency="0.9" numOctaves="1" stitchTiles="stitch"/><feColorMatrix values="0 0 0 0 0.05 0 0 0 0 0.05 0 0 0 0 0.05 0 0 0 0.05 0"/></filter></defs><rect width="100%" height="100%" filter="url(%23noise)" opacity="0.05"/></svg>');
  pointer-events: none;
  z-index: 1;
}

.content {
  position: relative;
  z-index: 10;
  background: linear-gradient(to bottom, rgba(10,10,10,0.4), rgba(10,10,10,0.6));
  backdrop-filter: blur(2px);
}

.url-input {
  background: rgba(10,10,10,0.8);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 0.5rem;
  color: white;
  font-family: var(--font-family);
  font-weight: 460;
  font-size: 14px;
  padding: 12px 16px;
  transition: all 0.3s ease;
  backdrop-filter: blur(10px);
  min-height: 44px;
}

.url-input:focus {
  outline: none;
  border-color: rgba(255,255,255,0.2);
  background: rgba(10,10,10,0.9);
}

.url-input::placeholder {
  color: rgba(255,255,255,0.5);
}

.offer-button {
  background: linear-gradient(135deg, #4ade80, #22c55e);
  color: #0a0a0a;
  font-weight: 560;
  transition: all 0.3s ease;
  min-height: 44px;
}

.offer-button:hover {
  background: linear-gradient(135deg, #22c55e, #16a34a);
  transform: translateY(-1px);
}

.brand-gradient-text {
  background: linear-gradient(135deg, var(--brand-1), var(--brand-2));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.section-card {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: 0.75rem;
  transition: box-shadow 0.35s ease, border-color 0.35s ease, transform 0.35s ease;
}

.section-card:hover {
  border-color: rgba(99,102,241,0.35);
  box-shadow: 0 0 0 1px rgba(99,102,241,0.25), 0 20px 60px -20px rgba(56,189,248,0.25), 0 10px 30px -20px rgba(139,92,246,0.35);
  transform: translateY(-2px);
}

/* Utilities for horizontal carousels */
.hide-scrollbar::-webkit-scrollbar { display: none; }
.hide-scrollbar { -ms-overflow-style: none; scrollbar-width: none; }

/* Sticky header */
.sticky-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: linear-gradient(to bottom, rgba(10,10,10,0.6), rgba(10,10,10,0.3));
  backdrop-filter: blur(8px);
  border-bottom: 1px solid rgba(255,255,255,0.08);
}

/* Section halo accents */
.section-halo {
  position: relative;
  isolation: isolate;
}

.section-halo::before {
  content: "";
  position: absolute;
  inset: -10% -5%;
  background: radial-gradient(60% 60% at 20% 20%, rgba(99,102,241,0.08), transparent 60%),
              radial-gradient(50% 50% at 80% 30%, rgba(59,130,246,0.06), transparent 60%),
              radial-gradient(40% 40% at 50% 90%, rgba(34,197,94,0.05), transparent 60%);
  filter: blur(30px);
  z-index: -1;
  pointer-events: none;
}

/* Enhanced Micro-Interactions */
.glass-card {
  background: rgba(255, 255, 255, 0.03);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 1rem;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
  /* Ensure visibility with subtle shadow */
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1), 
              inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.glass-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.03), transparent);
  transition: left 0.6s ease;
}

.glass-card:hover::before {
  left: 100%;
}

.glass-card:hover {
  transform: translateY(-2px);
  border-color: rgba(96, 165, 250, 0.15);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3), 0 0 0 1px rgba(96, 165, 250, 0.05);
}

.fade-in {
  opacity: 0;
  transform: translateY(10px);
  animation: fadeInUp 0.6s ease-out forwards;
}

.fade-in.delay-1 { animation-delay: 0.1s; }
.fade-in.delay-2 { animation-delay: 0.2s; }
.fade-in.delay-3 { animation-delay: 0.3s; }

@keyframes fadeInUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

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

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

#typed-text {
  display: inline-block;
  min-width: 280px;
  text-align: left;
  height: 1.2em;
  vertical-align: text-top;
  line-height: 1.2;
  transition: all 0.1s ease;
}

.typing-cursor::after {
  content: '|';
  animation: blink 1s infinite;
  color: var(--brand-accent);
}

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

.section-card {
  background: rgba(255, 255, 255, 0.02);
  backdrop-filter: blur(15px);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 1rem;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
}

.section-card:hover {
  transform: translateY(-1px);
  border-color: rgba(139, 92, 246, 0.1);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
  /* Fallback: Show content after 2 seconds if JS fails */
  animation: reveal-fallback 0.6s ease-out 2s forwards;
}

.reveal.active {
  opacity: 1;
  transform: translateY(0);
  /* Cancel fallback animation when active */
  animation: none;
}

/* Fallback animation for when JavaScript fails */
@keyframes reveal-fallback {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Immediate visibility for critical sections */
.section-halo.reveal {
  opacity: 1 !important;
  transform: translateY(0) !important;
  /* Override with animation for smooth reveal */
  animation: reveal-immediate 0.8s ease-out;
}

/* Ensure glass cards in section-halo are always visible */
.section-halo .glass-card.reveal {
  opacity: 1 !important;
  transform: translateY(0) !important;
  animation: reveal-immediate 0.8s ease-out;
}

@keyframes reveal-immediate {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Carousel Styles */
.phase-indicator, .country-indicator {
  border-radius: 50%;
  background: rgba(255,255,255,0.3);
  border: none;
  cursor: pointer;
  transition: all 0.3s ease;
}

.phase-indicator { width: 12px; height: 12px; }
.country-indicator { width: 8px; height: 8px; }

.phase-indicator.active, .country-indicator.active {
  background: linear-gradient(135deg, var(--brand-1), var(--brand-2));
  transform: scale(1.2);
  box-shadow: 0 0 10px rgba(96,165,250,0.5);
}

.country-indicator.active {
  transform: scale(1.3);
  box-shadow: 0 0 8px rgba(96,165,250,0.4);
}

/* Mobile optimizations */
@media (max-width: 768px) {
  #typed-text { min-width: 240px; height: 1.2em; }
  .content { padding-left: 1rem !important; padding-right: 1rem !important; }
  .heading { font-size: clamp(32px, 8vw, 48px) !important; }
  .subheading { font-size: clamp(16px, 4vw, 20px) !important; }
  .body-text { font-size: 14px !important; }
  .spline-container { background: #000000; }
  .content { background: linear-gradient(to bottom, rgba(10,10,10,0.7), rgba(10,10,10,0.85)); }
}

@media (max-width: 480px) {
  .heading { font-size: clamp(28px, 7vw, 36px) !important; }
  .subheading { font-size: clamp(14px, 3.5vw, 18px) !important; }
}