/* ===== VARIABLES - LIGHT THEME ===== */
:root {
  --primary: #2563EB;
  --primary-dark: #1D4ED8;
  --primary-light: #60A5FA;
  --primary-soft: rgba(37, 99, 235, 0.1);
  --dark: #1E293B;
  --dark-800: #334155;
  --dark-900: #0F172A;
  --light: #F8FAFC;
  --light-muted: #64748B;
  --accent: #10B981;
  --gray: #E2E8F0;
  --border-radius: 1rem;
  --transition: all 0.3s ease;
  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
  --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
  --shadow-primary: 0 10px 40px -10px rgba(37, 99, 235, 0.3);
  --glass-bg: rgba(255, 255, 255, 0.9);
  --glass-border: rgba(37, 99, 235, 0.1);
}

/* ===== BASE STYLES ===== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  overflow-x: hidden;
}

body {
  font-family: 'Inter', sans-serif;
  background-color: var(--light);
  color: var(--dark);
  line-height: 1.6;
  overflow-x: hidden;
  padding-top: 70px; /* Fixed header offset */
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Poppins', sans-serif;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--dark-900);
}

/* ===== UTILITY CLASSES ===== */
.bg-light {
  background-color: var(--light) !important;
}

.bg-white {
  background-color: #FFFFFF !important;
}

.bg-primary-soft {
  background-color: var(--primary-soft);
  color: var(--primary);
}

.text-primary {
  color: var(--primary) !important;
}

.text-secondary {
  color: var(--light-muted) !important;
}

.btn-primary {
  background: var(--primary);
  border: none;
  color: white;
  font-weight: 600;
  transition: var(--transition);
  box-shadow: var(--shadow-primary);
}

.btn-primary:hover {
  background: var(--primary-dark);
  transform: translateY(-2px);
  box-shadow: 0 20px 40px -10px rgba(37, 99, 235, 0.4);
}

.btn-outline-primary {
  border: 1px solid var(--primary);
  background: transparent;
  color: var(--primary);
}

.btn-outline-primary:hover {
  background: var(--primary);
  color: white;
  transform: translateY(-2px);
}

.btn-glow {
  position: relative;
  overflow: hidden;
}

.glass-card {
  background: white;
  border: 1px solid var(--glass-border);
  transition: var(--transition);
  box-shadow: var(--shadow-sm);
}

.glass-card:hover {
  transform: translateY(-5px);
  border-color: var(--primary-light);
  box-shadow: var(--shadow-lg);
}

.section-padding {
  padding: 80px 0;
}

@media (max-width: 768px) {
  .section-padding {
    padding: 50px 0;
  }
  body {
    padding-top: 62px;
  }
}

/* ===== PRELOADER ===== */
#preloader {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: white;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  transition: opacity 0.6s ease, visibility 0.6s ease;
}

#preloader.fade-out {
  opacity: 0;
  visibility: hidden;
}

.preloader-content {
  text-align: center;
}

.preloader-logo {
  max-width: 180px;
  margin-bottom: 30px;
  animation: pulse 2s infinite;
}

.spinner {
  width: 50px;
  height: 50px;
  border: 3px solid var(--primary-soft);
  border-top-color: var(--primary);
  border-radius: 50%;
  animation: spin 1s linear infinite;
  margin: 0 auto;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.8; transform: scale(0.98); }
}

/* ===== NAVBAR - FIXED HEADER ===== */
.navbar {
  background: white !important;
  border-bottom: 1px solid var(--gray);
  padding: 0.75rem 0;
  transition: var(--transition);
  box-shadow: var(--shadow-sm);
}

.navbar-brand img {
  transition: var(--transition);
}

.nav-link {
  color: var(--light-muted) !important;
  font-weight: 500;
  padding: 0.5rem 1rem !important;
  transition: var(--transition);
  position: relative;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 2px;
  background: var(--primary);
  transition: width 0.3s;
}

.nav-link:hover::after,
.nav-link.active::after {
  width: 30px;
}

.nav-link:hover,
.nav-link.active {
  color: var(--primary) !important;
}

.navbar-toggler {
  border: 1px solid var(--gray);
  padding: 0.5rem;
}

.navbar-toggler-icon {
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba%2837, 99, 235, 0.7%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

/* ===== HERO SECTION ===== */
.hero-section {
  min-height: 85vh;
  display: flex;
  align-items: center;
  position: relative;
  background: linear-gradient(135deg, #FFFFFF 0%, var(--light) 100%);
}

.hero-shapes {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  z-index: 1;
}

.hero-shapes::before {
  content: '';
  position: absolute;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(37, 99, 235, 0.05) 0%, transparent 70%);
  border-radius: 50%;
  top: -250px;
  right: -100px;
  animation: float 20s infinite;
}

.hero-shapes::after {
  content: '';
  position: absolute;
  width: 300px;
  height: 300px;
  background: radial-gradient(circle, rgba(16, 185, 129, 0.05) 0%, transparent 70%);
  border-radius: 50%;
  bottom: -100px;
  left: 10%;
  animation: float 15s infinite reverse;
}

@keyframes float {
  0%, 100% { transform: translate(0, 0) rotate(0deg); }
  33% { transform: translate(30px, -30px) rotate(120deg); }
  66% { transform: translate(-20px, 20px) rotate(240deg); }
}

.min-vh-80 {
  min-height: 80vh;
}

/* ===== FEATURE CARDS ===== */
.feature-card {
  transition: var(--transition);
  border: 1px solid var(--gray);
  position: relative;
  overflow: hidden;
  background: white;
}

.feature-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, transparent, rgba(37, 99, 235, 0.02));
  opacity: 0;
  transition: opacity 0.3s;
}

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

.feature-icon {
  width: 60px;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--primary-soft), transparent);
  border-radius: 12px;
}

/* ===== DASHBOARD CARDS ===== */
.dashboard-card {
  overflow: hidden;
  border-radius: 1rem;
  transition: var(--transition);
  position: relative;
  cursor: pointer;
  background: white;
  padding: 0.5rem;
  border: 1px solid var(--gray);
}

.dashboard-card img {
  transition: transform 0.5s ease;
  border-radius: 0.75rem;
}

.dashboard-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-xl);
}

.dashboard-card:hover img {
  transform: scale(1.02);
}

/* ===== TEAM CARDS ===== */
.team-card {
  transition: var(--transition);
  overflow: hidden;
  background: white;
  border: 1px solid var(--gray);
}

.team-card img {
  width: 160px;
  height: 160px;
  object-fit: cover;
  border: 3px solid var(--primary);
  padding: 3px;
  background: white;
  transition: var(--transition);
}

.team-card:hover img {
  transform: scale(1.05);
  border-color: var(--accent);
}

.team-card .badge {
  background: var(--primary-soft);
  color: var(--primary);
  font-weight: 500;
  padding: 0.5rem 1rem;
}

/* ===== TRUSTED SLIDER ===== */
.swiper {
  padding: 20px 0 !important;
}

.trusted-logo {
  max-width: 160px;
  height: auto;
  filter: grayscale(100%) brightness(1);
  transition: var(--transition);
  margin: 0 auto;
  opacity: 0.7;
}

.trusted-logo:hover {
  filter: grayscale(0%) brightness(1);
  transform: scale(1.05);
  opacity: 1;
}

.swiper-slide {
  display: flex;
  justify-content: center;
  align-items: center;
}

/* ===== REVIEW CARDS ===== */
.review-card {
  position: relative;
  transition: var(--transition);
  background: white;
  border: 1px solid var(--gray);
}

.review-card::before {
  content: '"';
  position: absolute;
  top: -20px;
  left: 20px;
  font-size: 120px;
  color: rgba(37, 99, 235, 0.1);
  font-family: serif;
  line-height: 1;
}

.review-card p {
  position: relative;
  z-index: 1;
  font-size: 1.1rem;
  font-style: italic;
}

/* ===== FOOTER (reduced) ===== */
.footer {
  background: white;
  border-top: 1px solid var(--gray) !important;
}

.footer a {
  text-decoration: none;
  transition: var(--transition);
  font-size: 0.9rem;
}

.footer a:hover {
  color: var(--primary) !important;
}

/* ===== RESPONSIVE TWEAKS ===== */
@media (max-width: 768px) {
  .display-3 {
    font-size: 2.2rem;
  }
  
  .display-5 {
    font-size: 1.8rem;
  }
  
  .btn-lg {
    padding: 0.75rem 1.5rem !important;
    font-size: 1rem;
  }
  
  .team-card img {
    width: 140px;
    height: 140px;
  }
  
  .navbar-collapse {
    background: white;
    padding: 1rem;
    border-radius: 1rem;
    margin-top: 0.5rem;
    border: 1px solid var(--gray);
    box-shadow: var(--shadow-md);
  }
  
  /* Mobile: 2 columns for features */
  .col-6 {
    flex: 0 0 auto;
    width: 50%;
  }
}

@media (max-width: 576px) {
  .display-3 {
    font-size: 1.8rem;
  }
  
  .btn-lg {
    width: 100%;
  }
  
  .d-flex.flex-wrap.gap-3 {
    flex-direction: column;
  }
  
  .btn-lg {
    width: 100%;
  }
  
  .feature-card {
    padding: 1.2rem !important;
  }
  
  .glass-card.p-5 {
    padding: 1.5rem !important;
  }
  
  .team-card img {
    width: 120px;
    height: 120px;
  }
}

/* ===== ANIMATION DELAYS ===== */
[data-aos-delay="50"] { transition-delay: 50ms; }
[data-aos-delay="100"] { transition-delay: 100ms; }
[data-aos-delay="150"] { transition-delay: 150ms; }
[data-aos-delay="200"] { transition-delay: 200ms; }
[data-aos-delay="250"] { transition-delay: 250ms; }
[data-aos-delay="300"] { transition-delay: 300ms; }
[data-aos-delay="350"] { transition-delay: 350ms; }
[data-aos-delay="400"] { transition-delay: 400ms; }
[data-aos-delay="450"] { transition-delay: 450ms; }

/* ===== CUSTOM SCROLLBAR ===== */
::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-track {
  background: var(--light);
}

::-webkit-scrollbar-thumb {
  background: var(--primary);
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--primary-dark);
}

/* ===== HOVER EFFECTS ===== */
.hover-lift {
  transition: transform 0.3s;
}

.hover-lift:hover {
  transform: translateY(-5px);
}

/* ===== BORDER RADIUS UTILITIES ===== */
.rounded-4 {
  border-radius: 1rem !important;
}

/* ===== SHADOW UTILITIES ===== */
.shadow-xxl {
  box-shadow: var(--shadow-xl);
}