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

/* Tablet Devices (768px - 1024px) */
@media (max-width: 1024px) {
    .hero h1 {
        font-size: 2rem;
    }

    .pillar-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .category-grid {
        grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    }

    .features-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Mobile Devices (480px - 768px) */
@media (max-width: 768px) {
    .container {
        padding: 0 1rem;
    }

    /* Header & Navigation */
    .nav-toggle {
        display: block;
    }

    .nav-menu {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        flex-direction: column;
        background: #ffffff;
        border-bottom: 1px solid var(--border-light);
        gap: 0;
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.3s ease;
    }

    .nav-menu.active {
        max-height: 400px;
        box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    }

    .nav-menu li {
        border-bottom: 1px solid var(--border-light);
    }

    .nav-menu a {
        display: block;
        padding: 1rem 1.5rem;
    }

    .nav-menu a::after {
        display: none;
    }

    /* Hero Section */
    .hero {
        padding: 2.5rem 1rem;
    }

    .hero h1 {
        font-size: 1.75rem;
    }

    .hero p {
        font-size: 1rem;
    }

    .hero-cta {
        flex-direction: column;
    }

    .btn {
        width: 100%;
    }

    /* Daily Fact */
    .daily-fact {
        padding: 2rem 1rem;
    }

    .daily-fact h2 {
        font-size: 1.5rem;
    }

    .fact-card {
        padding: 1.5rem;
        margin: 0;
    }

    /* Pillars */
    .pillars {
        padding: 2rem 1rem;
    }

    .pillars h2 {
        font-size: 1.5rem;
    }

    .pillar-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .pillar {
        padding: 1.5rem;
    }

    .pillar h3 {
        font-size: 1.25rem;
    }

    /* Categories */
    .categories {
        padding: 2rem 1rem;
    }

    .categories h2 {
        font-size: 1.5rem;
    }

    .category-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 1rem;
    }

    .category-card {
        padding: 1rem;
    }

    .category-icon {
        font-size: 2rem;
    }

    .category-card h4 {
        font-size: 0.9rem;
    }

    .category-card p {
        font-size: 0.75rem;
    }

    /* Why Choose */
    .why-choose {
        padding: 2rem 1rem;
    }

    .why-choose h2 {
        font-size: 1.5rem;
    }

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

    /* CTA Section */
    .cta-section {
        padding: 2.5rem 1rem;
    }

    .cta-section h2 {
        font-size: 1.5rem;
    }

    /* Footer */
    .footer-content {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
    }
}

/* Small Mobile Devices (below 480px) */
@media (max-width: 480px) {
    :root {
        font-size: 14px;
    }

    .header-container {
        padding: 0.75rem 1rem;
    }

    .logo-text {
        font-size: 1.1rem;
    }

    .hero {
        padding: 2rem 1rem;
    }

    .hero h1 {
        font-size: 1.4rem;
        line-height: 1.3;
    }

    .hero p {
        font-size: 0.9rem;
        margin-bottom: 1.5rem;
    }

    .btn {
        padding: 0.6rem 1rem;
        font-size: 0.9rem;
    }

    .btn-large {
        padding: 0.8rem 1.5rem;
        font-size: 1rem;
    }

    .daily-fact {
        padding: 1.5rem 1rem;
    }

    .daily-fact h2 {
        font-size: 1.25rem;
        margin-bottom: 1.5rem;
    }

    .fact-card {
        padding: 1rem;
        border-left-width: 3px;
    }

    .pillars {
        padding: 1.5rem 1rem;
    }

    .pillar-grid {
        gap: 1rem;
    }

    .pillar {
        padding: 1rem;
    }

    .pillar h3 {
        font-size: 1.1rem;
    }

    .pillar p {
        font-size: 0.9rem;
        min-height: 50px;
    }

    .pillar-stats {
        margin: 1rem 0;
        padding: 1rem 0;
    }

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

    .stat-label {
        font-size: 0.75rem;
    }

    .category-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.75rem;
    }

    .category-card {
        padding: 0.75rem;
    }

    .category-icon {
        font-size: 1.5rem;
        margin-bottom: 0.25rem;
    }

    .category-card h4 {
        font-size: 0.85rem;
        margin-bottom: 0.25rem;
    }

    .category-card p {
        font-size: 0.65rem;
    }

    .why-choose {
        padding: 1.5rem 1rem;
    }

    .why-choose h2 {
        font-size: 1.25rem;
        margin-bottom: 2rem;
    }

    .feature {
        padding: 1rem;
    }

    .feature-icon {
        font-size: 1.5rem;
    }

    .feature h4 {
        font-size: 1rem;
    }

    .cta-section {
        padding: 2rem 1rem;
    }

    .cta-section h2 {
        font-size: 1.25rem;
        margin-bottom: 0.75rem;
    }

    .cta-section p {
        font-size: 0.9rem;
        margin-bottom: 1.5rem;
    }

    .footer-content {
        gap: 1rem;
    }

    .footer-section h4 {
        font-size: 1rem;
    }
}

/* Landscape Mobile (max-height: 500px) */
@media (max-height: 500px) and (orientation: landscape) {
    .hero {
        padding: 1.5rem;
    }

    .hero h1 {
        font-size: 1.5rem;
        margin-bottom: 0.5rem;
    }

    .hero p {
        display: none;
    }

    .hero-cta {
        gap: 0.5rem;
    }
}

/* Print Styles */
@media print {
    .header,
    .nav,
    .hero-cta,
    .btn,
    .footer {
        display: none;
    }

    body {
        background: #ffffff;
    }

    .container {
        max-width: 100%;
    }
}

/* Accessibility: Reduced Motion */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}

/* Dark Mode Support (optional) */
@media (prefers-color-scheme: dark) {
    :root {
        --light-bg: #1a1a1a;
        --border-light: #333333;
        --text-dark: #f0f0f0;
        --text-muted: #b0b0b0;
    }

    body {
        background: #0a0a0a;
        color: var(--text-dark);
    }

    .header {
        background: #0a0a0a;
    }

    .pillar,
    .category-card,
    .feature,
    .fact-card {
        background: #1a1a1a;
    }

    .footer {
        background: #000000;
    }
}
