/* ===== CSS VARIABLES ===== */
:root {
  --color-primary: #0f172a;
  --color-secondary: #1e3a5f;
  --color-accent: #14b8a6;
  --color-accent-hot: #f97316;
  --color-surface: #f8fafc;
  --color-text: #1e293b;
  --color-muted: #64748b;
}

/* ===== GRADIENT BACKGROUNDS ===== */
.gradient-bg {
  background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-secondary) 50%, var(--color-primary) 100%);
  position: relative;
}

.gradient-bg::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 30% 20%, rgba(20, 184, 166, 0.15) 0%, transparent 50%),
              radial-gradient(ellipse at 70% 80%, rgba(249, 115, 22, 0.1) 0%, transparent 50%);
  pointer-events: none;
}

/* ===== CUSTOM TYPOGRAPHY ===== */
.text-massive {
  font-size: clamp(3rem, 8vw, 6rem);
  line-height: 0.95;
}

.text-huge {
  font-size: clamp(2rem, 5vw, 4rem);
  line-height: 1.1;
}

/* ===== ANIMATIONS ===== */
.floating {
  animation: floating 3s ease-in-out infinite;
}

@keyframes floating {
  0%, 100% { transform: translateY(0px); }
  50% { transform: translateY(-15px); }
}

.pulse-ring {
  animation: pulse-ring 1.5s cubic-bezier(0.215, 0.61, 0.355, 1) infinite;
}

@keyframes pulse-ring {
  0% { transform: scale(0.33); opacity: 1; }
  50% { opacity: 0.5; }
  100% { opacity: 0; transform: scale(1.5); }
}

.scroll-indicator {
  animation: bounce 2s infinite;
}

@keyframes bounce {
  0%, 20%, 50%, 80%, 100% { transform: translateY(0); }
  40% { transform: translateY(-15px); }
  60% { transform: translateY(-8px); }
}

@keyframes slideInUp {
  from { opacity: 0; transform: translateY(30px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes fadeOut {
  from { opacity: 1; }
  to { opacity: 0; }
}

@keyframes ripple {
  0% {
    transform: scale(0);
    opacity: 1;
  }
  100% {
    transform: scale(4);
    opacity: 0;
  }
}

.ripple-effect {
  position: relative;
  overflow: hidden;
}

.ripple-effect::after {
  content: '';
  position: absolute;
  width: 100%;
  height: 100%;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) scale(0);
  background: rgba(255, 255, 255, 0.5);
  border-radius: 50%;
  pointer-events: none;
}

.ripple-effect:active::after {
  animation: ripple 0.6s ease-out;
}

/* ===== CARD EFFECTS ===== */
.premium-card {
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  position: relative;
  overflow: hidden;
}

.premium-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
  transition: left 0.6s ease;
}

.premium-card:hover::before {
  left: 100%;
}

.premium-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

/* ===== MOBILE MENU ===== */
.hamburger .line1,
.hamburger .line2,
.hamburger .line3 {
  transition: all 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55);
  transform-origin: center;
}

.hamburger.active .line1 {
  transform: rotate(45deg) translate(5px, 5px);
}

.hamburger.active .line2 {
  opacity: 0;
  transform: translateX(-20px);
}

.hamburger.active .line3 {
  transform: rotate(-45deg) translate(7px, -6px);
}

/* ===== PROGRESS BAR ===== */
.progress-bar {
  position: fixed;
  top: 0;
  left: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--color-accent), var(--color-accent-hot));
  z-index: 9999;
  transition: width 0.1s ease-out;
}

/* ===== NAVBAR ===== */
#navbar {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

/* ===== HERO STAGGER ===== */
.hero-stagger > *:nth-child(1) { animation: slideInUp 0.8s ease-out 0.1s both; }
.hero-stagger > *:nth-child(2) { animation: slideInUp 0.8s ease-out 0.2s both; }
.hero-stagger > *:nth-child(3) { animation: slideInUp 0.8s ease-out 0.3s both; }
.hero-stagger > *:nth-child(4) { animation: slideInUp 0.8s ease-out 0.4s both; }
.hero-stagger > *:nth-child(5) { animation: slideInUp 0.8s ease-out 0.5s both; }
.hero-stagger > *:nth-child(6) { animation: slideInUp 0.8s ease-out 0.6s both; }

/* ===== TESTIMONIAL CARD ===== */
.testimonial-card {
  background: white;
  border-radius: 16px;
  padding: 2rem;
  position: relative;
  border: 1px solid rgba(0,0,0,0.05);
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.testimonial-card::before {
  content: '"';
  position: absolute;
  top: 1rem;
  left: 1.5rem;
  font-size: 4rem;
  font-family: 'Instrument Serif', serif;
  color: var(--color-accent);
  opacity: 0.2;
  line-height: 1;
}

.testimonial-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.15);
  border-color: var(--color-accent);
}

/* ===== FEATURE CARD ===== */
.feature-card {
  background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
  border-radius: 16px;
  padding: 2rem;
  border: 1px solid rgba(0,0,0,0.05);
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.feature-card::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 4px;
  height: 0;
  background: linear-gradient(180deg, var(--color-accent), var(--color-accent-hot));
  transition: height 0.3s ease;
}

.feature-card:hover::after {
  height: 100%;
}

.feature-card:hover {
  transform: translateX(8px);
  box-shadow: -8px 8px 30px rgba(0,0,0,0.1);
}

/* ===== STATS CARD ===== */
.stat-card {
  text-align: center;
  padding: 2rem;
  position: relative;
}

.stat-card::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 40px;
  height: 3px;
  background: var(--color-accent);
  border-radius: 2px;
  opacity: 0;
  transition: opacity 0.3s ease, width 0.3s ease;
}

.stat-card:hover::after {
  opacity: 1;
  width: 60px;
}

.stat-number {
  font-family: 'Outfit', sans-serif;
  font-weight: 900;
  font-size: 3rem;
  background: linear-gradient(135deg, var(--color-accent), var(--color-accent-hot));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ===== ICON BOX ===== */
.icon-box {
  width: 64px;
  height: 64px;
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  transition: all 0.3s ease;
}

.icon-box-teal {
  background: linear-gradient(135deg, rgba(20, 184, 166, 0.1), rgba(20, 184, 166, 0.2));
  color: var(--color-accent);
}

.icon-box-orange {
  background: linear-gradient(135deg, rgba(249, 115, 22, 0.1), rgba(249, 115, 22, 0.2));
  color: var(--color-accent-hot);
}

.icon-box:hover {
  transform: rotate(-5deg) scale(1.1);
}

/* ===== BACKGROUND PATTERNS ===== */
.grid-bg {
  background-image:
    linear-gradient(rgba(20, 184, 166, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(20, 184, 166, 0.03) 1px, transparent 1px);
  background-size: 50px 50px;
}

.dot-bg {
  background-image: radial-gradient(circle, rgba(20, 184, 166, 0.1) 1px, transparent 1px);
  background-size: 24px 24px;
}

/* ===== SMOOTH SCROLL ===== */
* {
  scroll-behavior: smooth;
}

/* ===== MOBILE OPTIMIZATIONS ===== */
@media (max-width: 768px) {
  .text-massive {
    font-size: clamp(2.5rem, 10vw, 4rem);
  }

  .text-huge {
    font-size: clamp(1.75rem, 6vw, 2.5rem);
  }

  .hero-stagger > * {
    animation: none !important;
    opacity: 1;
  }
}

/* ===== ACCESSIBILITY ===== */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
