/* =============================================================================
   MOBILE RESPONSIVE DESIGN - Critical for Mobile-First Experience
   ============================================================================= */

/* Tablets and Below (768px) */
@media (max-width: 768px) {

    /* Container Adjustments */
    .container {
        padding: 0 1.5rem !important;
    }

    /* Hero Section */
    .hero {
        min-height: 70vh;
        padding: 6rem 0 4rem;
    }

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

    .hero h1 {
        font-size: 2.5rem !important;
    }

    .hero-badge {
        font-size: 0.9rem;
    }

    /* Navbar */
    .nav-container {
        padding: 1rem 1.5rem !important;
    }

    .nav-links {
        flex-direction: column;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: var(--color-primary-dark);
        display: none;
        padding: 1rem;
        box-shadow: var(--shadow-lg);
    }

    .nav-links.active {
        display: flex;
    }

    .nav-links li {
        margin: 0.5rem 0;
        width: 100%;
        text-align: center;
    }

    /* Grids */
    .grid-2,
    .grid-3 {
        grid-template-columns: 1fr !important;
        gap: 2rem !important;
    }

    /* Sections */
    .section {
        padding: 3rem 0 !important;
    }

    /* Cards */
    .card {
        padding: 1.5rem !important;
    }

    .card-icon {
        width: 50px !important;
        height: 50px !important;
    }

    /* Impact Stats */
    .stat-number {
        font-size: 2rem !important;
    }

    /* Buttons */
    .btn {
        width: 100%;
        justify-content: center;
    }

    /* Footer */
    .footer {
        padding: 3rem 0 2rem !important;
    }

    .footer .grid-3 {
        text-align: center;
    }

    .social-links {
        justify-content: center !important;
    }
}

/* Mobile Phones (480px and below) */
@media (max-width: 480px) {

    /* Typography */
    :root {
        --text-5xl: 2rem;
        --text-4xl: 1.75rem;
        --text-3xl: 1.5rem;
        --text-2xl: 1.25rem;
        --space-lg: 2rem;
        --space-xl: 3rem;
    }

    /* Logo */
    .logo img {
        height: 50px !important;
    }

    /* Hero */
    .hero {
        min-height: 60vh;
        padding: 5rem 0 3rem;
    }

    .hero h1 {
        font-size: 1.75rem !important;
        line-height: 1.3;
    }

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

    /* Buttons Container */
    .hero-content>div {
        flex-direction: column;
        margin-top: 1.5rem !important;
    }

    .btn {
        padding: 0.875rem 1.5rem !important;
        font-size: 1rem !important;
    }

    /* Cards */
    .card {
        padding: 1.25rem !important;
    }

    .card h3 {
        font-size: 1.125rem !important;
    }

    .card p {
        font-size: 0.9rem !important;
    }

    /* Spacing */
    .section {
        padding: 2rem 0 !important;
    }

    /* Impact Numbers */
    .stat-number {
        font-size: 1.75rem !important;
    }

    /* Form Inputs */
    input,
    textarea {
        font-size: 16px !important;
        /* Prevents zoom on iOS */
    }
}

/* Landscape Mobile Phones */
@media (max-width: 768px) and (orientation: landscape) {
    .hero {
        min-height: 100vh;
    }
}

/* High DPI Displays */
@media (-webkit-min-device-pixel-ratio: 2),
(min-resolution: 192dpi) {

    /* Optimize images for retina displays */
    img {
        image-rendering: -webkit-optimize-contrast;
    }
}

/* Dark Mode Support (Optional for future) */
@media (prefers-color-scheme: dark) {
    /* Can be implemented later if needed */
}

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