@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700;800;900&family=Inter:wght@300;400;500;600;700;800;900&display=swap');

/* ========================
   1. CSS VARIABLES
======================== */
:root {
  --primary: #0a192f;
  --primary-light: #112240;
  --primary-mid: #1d3461;
  --secondary: #2563eb;
  --secondary-light: #60a5fa;
  --accent: #f59e0b;
  --accent-light: #fbbf24;
  --accent-glow: rgba(245, 158, 11, 0.4);
  --gold-1: #BF953F;
  --gold-2: #FCF6BA;
  --gold-3: #B38728;
  --gold-4: #FBF5B7;
  --gold-bg: linear-gradient(135deg, var(--gold-1), var(--gold-2), var(--gold-3), var(--gold-4));
  --text-dark: #0f172a;
  --text-muted: #64748b;
  --bg-light: #f8fafc;
  --surface: #ffffff;
  --radius-sm: 0.75rem;
  --radius-md: 1.25rem;
  --radius-lg: 2rem;
  --radius-xl: 2.5rem;
  --shadow-sm: 0 2px 8px rgba(0,0,0,0.04);
  --shadow-md: 0 8px 30px rgba(0,0,0,0.06);
  --shadow-lg: 0 20px 50px rgba(0,0,0,0.08);
  --shadow-xl: 0 30px 60px rgba(0,0,0,0.12);
  --shadow-glow-blue: 0 0 40px rgba(37, 99, 235, 0.15);
  --shadow-glow-gold: 0 0 40px rgba(245, 158, 11, 0.2);
}

/* ========================
   2. BASE & RESET
======================== */
*, *::before, *::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: 100px;
}

body {
  font-family: 'Inter', sans-serif;
  color: var(--text-dark);
  background: var(--bg-light);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4, h5, h6, .outfit {
  font-family: 'Outfit', sans-serif;
}

::selection {
  background: var(--accent);
  color: white;
}

img { max-width: 100%; height: auto; }

/* ========================
   3. PRELOADER
======================== */
.preloader {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 1.5rem;
  transition: opacity 0.6s ease, visibility 0.6s ease;
}

.preloader.hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.preloader-logo {
  font-family: 'Outfit', sans-serif;
  font-size: 2.5rem;
  font-weight: 900;
  color: white;
  letter-spacing: -0.03em;
}

.preloader-logo span { color: var(--accent); }

.preloader-bar {
  width: 200px;
  height: 3px;
  background: rgba(255,255,255,0.1);
  border-radius: 99px;
  overflow: hidden;
}

.preloader-bar::after {
  content: '';
  display: block;
  width: 40%;
  height: 100%;
  background: var(--accent);
  border-radius: 99px;
  animation: preloader-slide 1s ease-in-out infinite;
}

@keyframes preloader-slide {
  0% { transform: translateX(-100%); }
  100% { transform: translateX(350%); }
}

/* ========================
   4. SCROLL PROGRESS BAR
======================== */
.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--secondary), var(--accent));
  z-index: 9998;
  width: 0%;
  transition: width 0.1s linear;
}

/* ========================
   5. CUSTOM SCROLLBAR
======================== */
::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: var(--bg-light); }
::-webkit-scrollbar-thumb {
  background: linear-gradient(to bottom, var(--secondary), var(--accent));
  border-radius: 99px;
}

/* ========================
   6. STICKY HEADER
======================== */
.header-sticky {
  position: fixed;
  top: 0;
  width: 100%;
  z-index: 1000;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.header-scrolled {
  background: rgba(255, 255, 255, 0.97) !important;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.05);
}

/* Active nav link */
.nav-link { position: relative; }
.nav-link::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 50%;
  width: 0;
  height: 2px;
  background: var(--secondary);
  border-radius: 99px;
  transition: all 0.3s ease;
  transform: translateX(-50%);
}
.nav-link:hover::after,
.nav-link.active::after {
  width: 100%;
}

/* ========================
   7. BUTTONS
======================== */
.btn-primary {
  background: linear-gradient(135deg, var(--secondary) 0%, #1d4ed8 100%);
  color: white;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 4px 15px rgba(37, 99, 235, 0.3);
  position: relative;
  overflow: hidden;
}
.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 30px rgba(37, 99, 235, 0.4);
}
.btn-primary::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;
}
.btn-primary:hover::before { left: 100%; }

.btn-outline {
  background: transparent;
  border: 2px solid rgba(255,255,255,0.3);
  color: white;
  backdrop-filter: blur(10px);
  transition: all 0.3s ease;
}
.btn-outline:hover {
  background: rgba(255,255,255,0.1);
  border-color: rgba(255,255,255,0.5);
  transform: translateY(-2px);
}

.btn-gold {
  background: var(--gold-bg);
  background-size: 200% auto;
  color: #1a1a1a;
  font-weight: 800;
  border: 1px solid rgba(255,255,255,0.4);
  transition: all 0.4s ease;
  box-shadow: 0 4px 20px var(--accent-glow);
  animation: gold-shimmer 4s linear infinite;
}
.btn-gold:hover {
  transform: translateY(-3px) scale(1.02);
  box-shadow: 0 15px 40px var(--accent-glow);
}

@keyframes gold-shimmer {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

/* ========================
   8. CARD SYSTEM
======================== */
.card {
  background: white;
  border-radius: var(--radius-lg);
  border: 1px solid rgba(0,0,0,0.04);
  transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}
.card:hover {
  transform: translateY(-12px);
  box-shadow: var(--shadow-lg);
  border-color: rgba(37, 99, 235, 0.1);
}

.card-dark {
  background: var(--primary-light);
  border: 1px solid rgba(255,255,255,0.05);
}

.card .icon-wrap {
  transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.card:hover .icon-wrap {
  transform: scale(1.15) rotate(8deg);
  background: linear-gradient(135deg, var(--secondary), var(--secondary-light)) !important;
  color: white !important;
  box-shadow: var(--shadow-glow-blue);
}

/* ========================
   9. GLASS LAYERS
======================== */
.glass {
  background: rgba(255, 255, 255, 0.7);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.3);
}

.glass-dark {
  background: rgba(10, 25, 47, 0.7);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

/* ========================
   10. ANIMATIONS
======================== */
@keyframes float {
  0%, 100% { transform: translateY(0px); }
  50% { transform: translateY(-18px); }
}
@keyframes float-alt {
  0%, 100% { transform: translateY(0px) rotate(0deg); }
  50% { transform: translateY(-22px) rotate(5deg); }
}
@keyframes pulse-ring {
  0% { box-shadow: 0 0 0 0 var(--accent-glow); }
  70% { box-shadow: 0 0 0 20px transparent; }
  100% { box-shadow: 0 0 0 0 transparent; }
}
@keyframes spin-slow {
  to { transform: rotate(360deg); }
}
@keyframes marquee {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}
@keyframes counter-pop {
  0% { transform: scale(1); }
  50% { transform: scale(1.15); }
  100% { transform: scale(1); }
}

.animate-float { animation: float 6s ease-in-out infinite; }
.animate-float-alt { animation: float-alt 7s ease-in-out infinite; }
.animate-pulse-ring { animation: pulse-ring 2s infinite; }
.animate-spin-slow { animation: spin-slow 20s linear infinite; }

/* ========================
   11. TEXT GRADIENTS
======================== */
.text-gradient-blue {
  background: linear-gradient(135deg, var(--secondary), var(--secondary-light));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.text-gradient-gold {
  background: linear-gradient(135deg, #d4af37, #ffdf73, #d4af37);
  background-size: 200% auto;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: gold-shimmer 3s linear infinite;
}

/* ========================
   12. MARQUEE / TICKER
======================== */
.marquee-container {
  overflow: hidden;
  white-space: nowrap;
}
.marquee-content {
  display: inline-flex;
  animation: marquee 30s linear infinite;
}
.marquee-content:hover { animation-play-state: paused; }

/* ========================
   13. COUNTERS
======================== */
.counter-box {
  text-align: center;
  padding: 2rem;
}
.counter-number {
  font-family: 'Outfit', sans-serif;
  font-weight: 900;
  font-size: clamp(2.5rem, 5vw, 4rem);
  line-height: 1;
}

/* ========================
   14. WHATSAPP FLOAT
======================== */
.wa-float {
  position: fixed;
  width: 64px;
  height: 64px;
  bottom: 30px;
  right: 30px;
  background: linear-gradient(135deg, #25D366, #128C7E);
  color: #FFF;
  border-radius: 50%;
  font-size: 34px;
  box-shadow: 0 8px 25px rgba(37, 211, 102, 0.4);
  z-index: 999;
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  animation: float 4s ease-in-out infinite;
  border: 3px solid rgba(255,255,255,0.5);
  transition: all 0.3s ease;
}
.wa-float:hover {
  transform: scale(1.12);
  box-shadow: 0 12px 35px rgba(37, 211, 102, 0.6);
}

/* ========================
   15. SHAPE DIVIDERS
======================== */
.wave-divider {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  overflow: hidden;
  line-height: 0;
}
.wave-divider svg {
  position: relative;
  display: block;
  width: calc(100% + 1.3px);
  height: 80px;
}

/* ========================
   16. IMAGE LAYOUTS
======================== */
.img-mosaic {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: 1fr 1fr;
  gap: 12px;
  height: 480px;
}
.img-mosaic img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-md);
  transition: all 0.5s ease;
}
.img-mosaic img:hover {
  transform: scale(1.03);
  z-index: 5;
  position: relative;
  box-shadow: var(--shadow-xl);
}
.img-mosaic .img-tall { grid-row: 1 / 3; }

/* ========================
   17. PROFILE CARDS
======================== */
.profile-card {
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}
.profile-card:hover {
  transform: translateY(-14px);
  box-shadow: var(--shadow-xl);
}
.profile-card .profile-img {
  transition: transform 0.7s ease;
}
.profile-card:hover .profile-img {
  transform: scale(1.08);
}
.profile-card .profile-socials {
  transform: translateY(100%);
  transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}
.profile-card:hover .profile-socials {
  transform: translateY(0);
}

/* ========================
   18. FAQ ACCORDION
======================== */
.faq-item {
  border: 1px solid rgba(0,0,0,0.06);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: all 0.3s ease;
}
.faq-item.active {
  border-color: rgba(37, 99, 235, 0.15);
  box-shadow: var(--shadow-glow-blue);
}

/* ========================
   19. FORM STYLES
======================== */
.form-input {
  width: 100%;
  padding: 1rem 1.25rem;
  border-radius: var(--radius-sm);
  border: 1.5px solid #e2e8f0;
  background: #f8fafc;
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--text-dark);
  transition: all 0.3s ease;
  outline: none;
}
.form-input:focus {
  border-color: var(--secondary);
  background: white;
  box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.08);
}
.form-input::placeholder {
  color: #94a3b8;
  font-weight: 400;
}

.form-label {
  display: block;
  font-size: 0.7rem;
  font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 0.5rem;
}

/* ========================
   20. RESPONSIVE
======================== */
@media (max-width: 768px) {
  .img-mosaic { height: 300px; gap: 8px; }
  .wave-divider svg { height: 40px; }
}

@media (max-width: 640px) {
  .wa-float { width: 56px; height: 56px; font-size: 28px; bottom: 20px; right: 20px; }
}
