/* Critical CSS for mobile optimization */
:root {
  --primary-color: #007bff;
  --secondary-color: #6c757d;
  --background-color: #ffffff;
  --text-color: #333333;
}

body {
  margin: 0;
  padding: 0;
  font-family: 'Montserrat', sans-serif;
  line-height: 1.6;
  color: var(--text-color);
  background-color: var(--background-color);
  overflow-x: hidden;
}

.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background-color: var(--background-color);
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
  transition: transform 0.3s ease;
}

.nav-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 1rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--primary-color);
  text-decoration: none;
}

.nav-menu {
  display: none;
  list-style: none;
  margin: 0;
  padding: 0;
}

@media (min-width: 768px) {
  .nav-menu {
    display: flex;
    gap: 2rem;
  }
  
  .nav-toggle {
    display: none;
  }
}

.nav-menu.active {
  display: flex;
  flex-direction: column;
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background-color: var(--background-color);
  padding: 1rem;
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.nav-menu a {
  color: var(--text-color);
  text-decoration: none;
  padding: 0.5rem 1rem;
  transition: color 0.3s ease;
}

.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 2rem 1rem;
  background-size: cover;
  background-position: center;
  position: relative;
}

.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.5);
}

.hero-content {
  position: relative;
  z-index: 1;
  color: white;
  max-width: 800px;
  margin: 0 auto;
}

.hero-title {
  font-size: 2.5rem;
  margin-bottom: 1rem;
}

.hero-subtitle {
  font-size: 1.2rem;
  margin-bottom: 2rem;
}

.hero-cta {
  display: inline-block;
  padding: 1rem 2rem;
  background-color: var(--primary-color);
  color: white;
  text-decoration: none;
  border-radius: 4px;
  transition: background-color 0.3s ease;
}

/* Mobile-specific optimizations */
@media (max-width: 767px) {
  .hero-title {
    font-size: 2rem;
  }
  
  .hero-subtitle {
    font-size: 1rem;
  }
  
  .nav-container {
    padding: 0.5rem;
  }
  
  .logo {
    font-size: 1.2rem;
  }
} 

/* Animations needed by counter.js */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes countUp {
    from {
        transform: translateY(20px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.animate-fadeInUp {
    animation: fadeInUp 0.6s ease-out forwards;
}

.animate-countUp {
    animation: countUp 1s ease-out forwards;
}

/* Basic Layout for Animated Sections */
.overview-stats {
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
    align-items: center;
    justify-content: center;
}

.stat-item {
    text-align: center;
    padding: 1.5rem;
    background: var(--white);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
    min-width: 150px;
}

.stat-number {
    display: block;
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.stat-label {
    color: var(--text-light); /* Use text-light from style.css */
    font-weight: 500;
}

/* Category Cards Critical Styles */
.category-grid {
    display: grid !important;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)) !important;
    gap: 30px !important;
    margin-top: 40px !important;
    margin-bottom: 60px !important;
}

.category-card {
    border-radius: 12px !important;
    background: white !important;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.06) !important;
    transition: all 0.3s ease !important;
    overflow: hidden !important;
    position: relative !important;
    height: 200px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    text-decoration: none !important;
    border: 1px solid #f0f0f0 !important;
}

.category-content {
    text-align: center !important;
    padding: 30px !important;
    width: 100% !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
}

.category-title {
    font-size: 1.5rem !important;
    font-weight: 600 !important;
    margin: 15px 0 12px !important;
    color: #2c3e50 !important;
    line-height: 1.3 !important;
}

.category-count {
    display: inline-block !important;
    padding: 6px 14px !important;
    background: rgba(52, 152, 219, 0.1) !important;
    color: #3498db !important;
    border-radius: 20px !important;
    font-size: 0.9rem !important;
    font-weight: 500 !important;
    margin-top: 5px !important;
}

.category-icon {
    color: #3498db !important;
    stroke: #3498db !important;
    width: 60px !important;
    height: 60px !important;
}

/* Section title styling */
.section-title {
    text-align: center;
    margin-bottom: 40px;
    font-size: 2.2rem;
    position: relative;
    color: #2c3e50;
    padding-top: 20px;
}

.section-title::after {
    content: '';
    display: block;
    width: 50px;
    height: 4px;
    background: #3498db;
    margin: 15px auto 0;
    border-radius: 2px;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .category-grid {
        grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)) !important;
    }
    
    .category-card {
        height: 180px !important;
    }
    
    .category-icon {
        width: 50px !important;
        height: 50px !important;
    }
    
    .category-title {
        font-size: 1.3rem !important;
    }
}

@media (max-width: 480px) {
    .category-grid {
        grid-template-columns: 1fr;
    }
    
    .category-card {
        height: 150px !important;
    }
}

/* Ensure visibility for JS interaction */
.stat-item,
.category-card,
.feature-card { /* Added feature-card as it's also animated by counter.js */
    opacity: 1 !important; /* Override JS setting opacity to 0 initially */
    visibility: visible !important;
}

/* Layout for parent container of stats */
.overview-content {
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
    margin-top: 2rem;
}

.overview-text { /* Add basic flex sizing */
    flex: 1;
    min-width: 300px;
} 