/* ===================================
   Global Styles & Reset
   =================================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #667eea;
    --secondary-color: #764ba2;
    --accent-color: #11998e;
    --text-dark: #2d3748;
    --text-light: #718096;
    --bg-light: #f7fafc;
    --white: #ffffff;
    --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.1);
    --shadow-md: 0 4px 6px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 15px rgba(0, 0, 0, 0.1);
    --shadow-xl: 0 20px 25px rgba(0, 0, 0, 0.15);
    --transition: all 0.3s ease;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    color: var(--text-dark);
    line-height: 1.6;
    overflow-x: hidden;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

@media (max-width: 1200px) {
    .container {
        max-width: 100%;
        padding: 0 16px;
    }
}

@media (max-width: 768px) {
    .container {
        padding: 0 12px;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 8px;
    }
}

/* ===================================
   Navigation Header
   =================================== */
.navbar {
    background: var(--white);
    box-shadow: var(--shadow-sm);
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    transition: var(--transition);
}

.navbar.scrolled {
    box-shadow: var(--shadow-md);
}

.nav-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 0;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--primary-color);
    text-decoration: none;
}

.logo-icon {
    font-size: 4rem;
    display: inline-block;
    vertical-align: middle;
}

/* Logo image specific styles */
img.logo-icon {
    width: 120px;
    height: 120px;
    object-fit: contain;
    font-size: initial;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 2rem;
    margin: 0;
}

.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    cursor: pointer;
    padding: 8px;
    border: none;
    background: none;
    gap: 4px;
}

.mobile-menu-toggle span {
    width: 25px;
    height: 3px;
    background: var(--text-dark);
    transition: var(--transition);
    border-radius: 2px;
}

.mobile-menu-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.mobile-menu-toggle.active span:nth-child(2) {
    opacity: 0;
}

.mobile-menu-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -6px);
}

.mobile-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--white);
    box-shadow: var(--shadow-lg);
    border-top: 1px solid #e2e8f0;
}

.mobile-nav.active {
    display: block;
    animation: slideDown 0.3s ease;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.mobile-nav-links {
    list-style: none;
    padding: 1rem 0;
    margin: 0;
}

.mobile-nav-links li {
    border-bottom: 1px solid #f1f5f9;
}

.mobile-nav-links li:last-child {
    border-bottom: none;
}

.mobile-nav-links a {
    display: block;
    padding: 1rem 1.5rem;
    color: var(--text-dark);
    text-decoration: none;
    font-weight: 500;
    transition: var(--transition);
}

.mobile-nav-links a:hover,
.mobile-nav-links a.active {
    background: var(--bg-light);
    color: var(--primary-color);
}

.mobile-nav-links .btn-style {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: var(--white) !important;
    margin: 0.5rem 1rem;
    border-radius: 8px;
    text-align: center;
    font-weight: 600;
}

.mobile-nav-links .btn-style:hover {
    background: linear-gradient(135deg, var(--secondary-color), var(--primary-color));
    transform: translateY(-1px);
}

.nav-link {
    color: var(--text-dark);
    text-decoration: none;
    font-weight: 500;
    transition: var(--transition);
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    transition: var(--transition);
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
}

.nav-link:hover {
    color: var(--primary-color);
}

.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    gap: 4px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 5px;
}

.mobile-menu-toggle span {
    width: 25px;
    height: 3px;
    background: var(--text-dark);
    border-radius: 3px;
    transition: var(--transition);
}

/* ===================================
   Buttons
   =================================== */
.btn-primary,
.btn-secondary,
.btn-large,
.btn-footer,
.nav-btn-primary {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    font-weight: 600;
    text-decoration: none;
    transition: var(--transition);
    border: none;
    cursor: pointer;
    font-size: 1rem;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: var(--white);
    box-shadow: var(--shadow-md);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}
.nav-btn-primary {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: var(--white);
    box-shadow: var(--shadow-md);
}

.nav-btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}


.btn-secondary {
    background: var(--white);
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
}

.btn-secondary:hover {
    background: var(--primary-color);
    color: var(--white);
}

.btn-large {
    padding: 1rem 2rem;
    font-size: 1.1rem;
}

.btn-icon {
    font-size: 1.2rem;
    transition: var(--transition);
}

.btn-primary:hover .btn-icon .nav-btn-primary {
    transform: translateX(5px);
}

.btn-footer {
    background: linear-gradient(135deg, var(--accent-color), #38ef7d);
    color: var(--white);
    width: 100%;
    justify-content: center;
}

/* ===================================
   Hero Section
   =================================== */
.hero {
    padding: 120px 0 80px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: var(--white);
    position: relative;
    overflow: hidden;
}

.hero::before {
    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" viewBox="0 0 1440 320"><path fill="rgba(255,255,255,0.1)" d="M0,96L48,112C96,128,192,160,288,160C384,160,480,128,576,122.7C672,117,768,139,864,138.7C960,139,1056,117,1152,106.7C1248,96,1344,96,1392,96L1440,96L1440,320L1392,320C1344,320,1248,320,1152,320C1056,320,960,320,864,320C768,320,672,320,576,320C480,320,384,320,288,320C192,320,96,320,48,320L0,320Z"></path></svg>') no-repeat bottom;
    background-size: cover;
    opacity: 0.3;
}

.hero-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    position: relative;
    z-index: 1;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 1.5rem;
}

.gradient-text {
    background: linear-gradient(135deg, #fff 0%, #f0f0f0 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-description {
    font-size: 1.25rem;
    line-height: 1.8;
    margin-bottom: 2rem;
    opacity: 0.95;
}

.hero-stats {
    display: flex;
    gap: 3rem;
    margin-bottom: 2.5rem;
}

.stat-item {
    text-align: center;
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 0.5rem;
}

.stat-label {
    font-size: 0.9rem;
    opacity: 0.9;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

/* Hero Image Animation */
.hero-image {
    position: relative;
    height: 500px;
}

.floating-card {
    position: absolute;
    background: var(--white);
    color: var(--text-dark);
    padding: 1.5rem;
    border-radius: 15px;
    box-shadow: var(--shadow-xl);
    display: flex;
    align-items: center;
    gap: 1rem;
    animation: float 3s ease-in-out infinite;
}

.card-icon {
    font-size: 2.5rem;
}

.card-text {
    font-weight: 600;
    font-size: 1.1rem;
}

.card-1 {
    top: 50px;
    left: 50px;
    animation-delay: 0s;
}

.card-2 {
    top: 200px;
    right: 50px;
    animation-delay: 1s;
}

.card-3 {
    bottom: 100px;
    left: 100px;
    animation-delay: 2s;
}

.hero-circle {
    position: absolute;
    width: 400px;
    height: 400px;
    border-radius: 50%;
    background: linear-gradient(135deg, rgba(255,255,255,0.1), rgba(255,255,255,0.05));
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    animation: pulse 4s ease-in-out infinite;
}

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

@keyframes pulse {
    0%, 100% {
        transform: translate(-50%, -50%) scale(1);
        opacity: 0.5;
    }
    50% {
        transform: translate(-50%, -50%) scale(1.1);
        opacity: 0.3;
    }
}

/* ===================================
   Features Section
   =================================== */
.features {
    padding: 80px 0;
    background: var(--bg-light);
}

.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--text-dark);
    margin-bottom: 1rem;
}

.section-description {
    font-size: 1.2rem;
    color: var(--text-light);
    max-width: 600px;
    margin: 0 auto;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.feature-card {
    background: var(--white);
    padding: 2rem;
    border-radius: 15px;
    box-shadow: var(--shadow-md);
    transition: var(--transition);
    text-align: center;
}

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

.feature-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.feature-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 1rem;
}

.feature-description {
    color: var(--text-light);
    line-height: 1.8;
}

/* ===================================
   Categories Section
   =================================== */
.categories {
    padding: 80px 0;
    background: var(--white);
}

/* Main Categories Grid */
.main-categories-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

/* Main Category Cards */
.main-category-card {
    background: linear-gradient(135deg, #ffffff 0%, #f8f9ff 100%);
    border-radius: 24px;
    padding: 2.5rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    border: 2px solid transparent;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

/* Animated gradient background */
.main-category-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 5px;
    background: var(--card-gradient);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Subtle glow effect */
.main-category-card::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, var(--card-color) 0%, transparent 70%);
    opacity: 0;
    transition: opacity 0.4s ease;
    pointer-events: none;
}

.main-category-card:hover::before {
    transform: scaleX(1);
}

.main-category-card:hover::after {
    opacity: 0.05;
}

.main-category-card:hover {
    transform: translateY(-12px) scale(1.02);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15), 0 0 0 1px var(--card-color);
    border-color: var(--card-color);
    background: linear-gradient(135deg, #ffffff 0%, var(--card-light) 100%);
}

/* Category-specific colors with enhanced palettes */
.arabic-countries-card {
    --card-color: #667eea;
    --card-gradient: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    --card-light: #f0f2ff;
}

.history-card {
    --card-color: #6366f1;
    --card-gradient: linear-gradient(135deg, #6366f1 0%, #a5b4fc 100%);
    --card-light: #eef2ff;
}

.sports-card {
    --card-color: #10b981;
    --card-gradient: linear-gradient(135deg, #10b981 0%, #6ee7b7 100%);
    --card-light: #ecfdf5;
}

.science-card {
    --card-color: #06b6d4;
    --card-gradient: linear-gradient(135deg, #06b6d4 0%, #67e8f9 100%);
    --card-light: #ecfeff;
}

.entertainment-card {
    --card-color: #f59e0b;
    --card-gradient: linear-gradient(135deg, #f59e0b 0%, #fbbf24 100%);
    --card-light: #fffbeb;
}

.category-header {
    text-align: center;
    margin-bottom: 1.5rem;
    position: relative;
    z-index: 1;
}

.category-main-icon {
    font-size: 4.5rem;
    margin-bottom: 1rem;
    display: block;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.1));
}

.main-category-card:hover .category-main-icon {
    transform: scale(1.15) rotate(5deg);
    filter: drop-shadow(0 8px 16px rgba(0, 0, 0, 0.15));
}

.category-main-title {
    font-size: 1.75rem;
    font-weight: 800;
    color: var(--text-dark);
    margin-bottom: 0.75rem;
    transition: color 0.3s ease;
    background: linear-gradient(135deg, var(--text-dark) 0%, var(--card-color) 100%);
    -webkit-background-clip: text;
    background-clip: text;
}

.main-category-card:hover .category-main-title {
    -webkit-text-fill-color: transparent;
}

.category-main-description {
    font-size: 1.05rem;
    color: var(--text-light);
    margin-bottom: 1.5rem;
    line-height: 1.6;
    transition: color 0.3s ease;
}

.main-category-card:hover .category-main-description {
    color: var(--text-dark);
}

.category-stats {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 1rem;
    flex-wrap: wrap;
}

.stat-item {
    background: var(--card-gradient);
    color: var(--white);
    padding: 0.5rem 1rem;
    border-radius: 25px;
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

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

.main-category-card:hover .stat-item::before {
    left: 100%;
}

.main-category-card:hover .stat-item {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.2);
}

.category-preview {
    background: linear-gradient(135deg, var(--bg-light) 0%, rgba(255, 255, 255, 0.5) 100%);
    border-radius: 16px;
    padding: 1.5rem;
    margin-top: 1rem;
    border: 1px solid rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
}

.main-category-card:hover .category-preview {
    background: linear-gradient(135deg, var(--card-light) 0%, rgba(255, 255, 255, 0.8) 100%);
    border-color: var(--card-color);
    box-shadow: inset 0 2px 8px rgba(0, 0, 0, 0.05);
}

.preview-items {
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
}

.preview-item {
    display: flex;
    align-items: center;
    font-size: 0.95rem;
    color: var(--text-dark);
    font-weight: 600;
    padding: 0.5rem;
    border-radius: 8px;
    transition: all 0.3s ease;
    background: rgba(255, 255, 255, 0.6);
}

.preview-item:hover {
    background: rgba(255, 255, 255, 1);
    transform: translateX(-5px);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.preview-more {
    color: var(--card-color);
    font-weight: 700;
    font-size: 0.9rem;
    text-align: center;
    margin-top: 0.5rem;
    padding-top: 0.75rem;
    border-top: 2px solid var(--card-color);
    opacity: 0.8;
    transition: all 0.3s ease;
}

.main-category-card:hover .preview-more {
    opacity: 1;
    transform: scale(1.05);
}

/* Clickable Category Enhancement */
.clickable-category {
    user-select: none;
    -webkit-tap-highlight-color: transparent;
}

.clickable-category:active {
    transform: translateY(-8px) scale(0.98);
}

.clickable-category .category-main-title {
    transition: all 0.3s ease;
}

.clickable-category:hover .category-main-title {
    transform: scale(1.05);
    letter-spacing: 0.5px;
}

.clickable-category .category-main-icon {
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.clickable-category:hover .category-main-icon {
    transform: scale(1.2) rotate(5deg);
    filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.2));
}

/* Add a subtle "Click to Start" indicator */
.clickable-category::after {
    content: '👆 اضغط للبدء';
    position: absolute;
    bottom: 1rem;
    right: 1.5rem;
    font-size: 0.85rem;
    color: var(--card-color);
    opacity: 0;
    transform: translateY(10px);
    transition: all 0.3s ease;
    font-weight: 600;
    pointer-events: none;
}

.clickable-category:hover::after {
    opacity: 0.7;
    transform: translateY(0);
}

.cta-section {
    text-align: center;
    margin-top: 3rem;
}

.cta-note {
    margin-top: 1rem;
    color: var(--text-light);
    font-size: 0.9rem;
}

/* ===================================
   About Section
   =================================== */
.about {
    padding: 80px 0;
    background: var(--bg-light);
}

.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.about-description {
    font-size: 1.1rem;
    color: var(--text-light);
    line-height: 1.8;
    margin-bottom: 2rem;
}

.about-features {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.about-feature {
    display: flex;
    align-items: center;
    gap: 1rem;
    font-size: 1.1rem;
}

.check-icon {
    width: 30px;
    height: 30px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    flex-shrink: 0;
}

.about-stats {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
}

.stat-box {
    background: var(--white);
    padding: 2rem;
    border-radius: 15px;
    box-shadow: var(--shadow-md);
    text-align: center;
    transition: var(--transition);
}

.stat-box:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.stat-box-number {
    font-size: 3rem;
    font-weight: 800;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 0.5rem;
}

.stat-box-label {
    color: var(--text-light);
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* ===================================
   Footer
   =================================== */
.footer {
    background: linear-gradient(135deg, #2d3748 0%, #1a202c 100%);
    color: var(--white);
    padding: 60px 0 20px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 3rem;
    margin-bottom: 3rem;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1.5rem;
    font-weight: bold;
    margin-bottom: 1rem;
}

.footer-description,
.footer-text {
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.8;
    margin-bottom: 1rem;
}

.footer-title {
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.footer-links {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    transition: var(--transition);
}

.footer-links a:hover {
    color: var(--white);
    padding-left: 5px;
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.6);
}

/* ===================================
   Responsive Design
   =================================== */

/* Large tablets and small desktops */
@media (max-width: 1024px) {
    .hero-title {
        font-size: 3rem;
    }
    
    .section-title {
        font-size: 2.25rem;
    }
    
    .features-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 2rem;
    }
    
    .categories-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* Tablets */
@media (max-width: 968px) {
    .nav-links {
        display: none;
    }
    .nav-btn-primary {
        display: none;
    }

    .mobile-menu-toggle {
        display: flex;
    }

    .hero-content {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 3rem;
    }

    .hero-title {
        font-size: 2.75rem;
        line-height: 1.2;
    }

    .hero-description {
        font-size: 1.125rem;
        max-width: 600px;
        margin: 0 auto;
    }

    .hero-stats {
        justify-content: center;
        gap: 2rem;
    }

    .hero-buttons {
        justify-content: center;
        gap: 1rem;
    }

    .hero-image {
        display: none;
    }

    .about-content {
        grid-template-columns: 1fr;
        gap: 3rem;
        text-align: center;
    }

    .features-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .main-categories-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
    }
    
    .main-category-card {
        padding: 1.5rem;
    }
    
    .category-main-icon {
        font-size: 3rem;
    }
    
    .category-main-title {
        font-size: 1.25rem;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        gap: 2rem;
        text-align: center;
    }
}

/* Large mobile devices */
@media (max-width: 768px) {
    .navbar {
        padding: 0.75rem 0;
    }
    
    .nav-content {
        padding: 0.5rem 0;
    }
    
    .logo {
        font-size: 1.25rem;
    }
    
    .logo-icon {
        font-size: 1.75rem;
    }
    
    .hero {
        padding: 6rem 0 4rem;
    }
    
    .hero-title {
        font-size: 2.25rem;
        margin-bottom: 1rem;
    }
    
    .hero-description {
        font-size: 1rem;
        margin-bottom: 2rem;
    }
    
    .hero-stats {
        flex-wrap: wrap;
        gap: 1.5rem;
    }
    
    .stat-item {
        flex: 1 1 calc(50% - 0.75rem);
        min-width: 120px;
    }
    
    .stat-number {
        font-size: 2.25rem;
    }
    
    .stat-label {
        font-size: 0.875rem;
    }
    
    .section {
        padding: 4rem 0;
    }
    
    .section-title {
        font-size: 2rem;
        margin-bottom: 1rem;
    }
    
    .section-description {
        font-size: 1rem;
    }
    
    .feature-card {
        padding: 2rem 1.5rem;
    }
    
    .feature-icon {
        font-size: 2.5rem;
        margin-bottom: 1rem;
    }
    
    .categories-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .category-card {
        padding: 1.5rem;
    }
}

/* Mobile devices */
@media (max-width: 640px) {
    .hero {
        padding: 8rem 0 3rem;
    }
    
    .hero-title {
        font-size: 1.875rem;
        line-height: 1.1;
    }
    
    .hero-description {
        font-size: 0.9375rem;
        line-height: 1.6;
    }

    .hero-stats {
        flex-direction: column;
        gap: 1.5rem;
    }
    
    .stat-item {
        flex: 1 1 100%;
    }

    .stat-number {
        font-size: 2rem;
    }

    .section-title {
        font-size: 1.75rem;
        line-height: 1.2;
    }
    
    .section-description {
        font-size: 0.9375rem;
    }

    .hero-buttons {
        flex-direction: column;
        gap: 0.75rem;
    }

    .btn-large {
        width: 100%;
        justify-content: center;
        padding: 1rem 1.5rem;
        font-size: 1rem;
    }
    
    .feature-card {
        padding: 1.5rem 1rem;
        text-align: center;
    }
    
    .feature-title {
        font-size: 1.125rem;
    }
    
    .feature-description {
        font-size: 0.875rem;
    }
    
    .main-categories-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .main-category-card {
        padding: 1.25rem;
    }
    
    .category-main-icon {
        font-size: 2.5rem;
    }
    
    .category-main-title {
        font-size: 1.125rem;
    }
    
    .category-main-description {
        font-size: 0.9rem;
    }
    
    .category-stats {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .stat-item {
        font-size: 0.75rem;
        padding: 0.25rem 0.5rem;
    }
    
    .category-preview {
        padding: 1rem;
    }
    
    .preview-item {
        font-size: 0.85rem;
    }
    
    .category-title {
        font-size: 1rem;
    }
    
    .category-description {
        font-size: 0.8125rem;
    }
}

/* Small mobile devices */
@media (max-width: 480px) {
    .container {
        padding: 0 6px;
    }
    
    .navbar {
        padding: 0.5rem 0;
    }
    
    .logo {
        font-size: 1.125rem;
        gap: 0.375rem;
    }
    
    .logo-icon {
        font-size: 1.5rem;
    }
    
    .mobile-menu-toggle {
        padding: 6px;
    }
    
    .mobile-menu-toggle span {
        width: 22px;
        height: 2.5px;
    }
    
    .hero {
        padding: 6rem 0 2.5rem;
    }
    
    .hero-title {
        font-size: 1.625rem;
        margin-bottom: 0.75rem;
    }
    
    .hero-description {
        font-size: 0.875rem;
        margin-bottom: 1.5rem;
    }
    
    .stat-number {
        font-size: 1.75rem;
    }
    
    .stat-label {
        font-size: 0.8125rem;
    }
    
    .section {
        padding: 3rem 0;
    }
    
    .section-title {
        font-size: 1.5rem;
        margin-bottom: 0.75rem;
    }
    
    .section-description {
        font-size: 0.875rem;
    }
    
    .btn-large {
        padding: 0.875rem 1.25rem;
        font-size: 0.9375rem;
    }
    
    .feature-card {
        padding: 1.25rem 0.75rem;
    }
    
    .feature-icon {
        font-size: 2.25rem;
    }
    
    .feature-title {
        font-size: 1rem;
    }
    
    .feature-description {
        font-size: 0.8125rem;
        line-height: 1.5;
    }
    
    .category-card {
        padding: 1rem 0.75rem;
    }
    
    .category-icon {
        font-size: 2.25rem;
    }
    
    .category-title {
        font-size: 0.9375rem;
    }
    
    .category-description {
        font-size: 0.75rem;
        line-height: 1.4;
    }
    
    .footer {
        padding: 2rem 0 1rem;
    }
    
    .footer-content {
        gap: 1.5rem;
    }
    
    .footer-section h3 {
        font-size: 1rem;
        margin-bottom: 0.75rem;
    }
    
    .footer-links {
        gap: 0.5rem;
    }
    
    .footer-links a {
        font-size: 0.875rem;
    }
    
    .footer-bottom {
        padding-top: 1.5rem;
        font-size: 0.8125rem;
    }
}

/* Extra small devices */
@media (max-width: 360px) {
    .hero-title {
        font-size: 1.5rem;
    }
    
    .section-title {
        font-size: 1.375rem;
    }
    
    .btn-large {
        padding: 0.75rem 1rem;
        font-size: 0.875rem;
    }
    
    .feature-card,
    .category-card {
        padding: 1rem 0.5rem;
    }
    
    .feature-icon,
    .category-icon {
        font-size: 2rem;
    }
}

