/* ==========================================================================
   Responsive Design Styles
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. Large Devices (Desktops, less than 1200px)
   -------------------------------------------------------------------------- */
@media (max-width: 1200px) {
    .container {
        padding: 0 15px;
    }

    .hero-title {
        font-size: 50px;
    }

    .hero-stats {
        gap: 10px;
    }

    .stat-item h3 {
        font-size: 24px;
    }

    .projects-grid,
    .help-grid,
    .services-grid,
    .features-grid {
        gap: 20px;
    }
}

/* --------------------------------------------------------------------------
   2. Medium Devices (Tablets, less than 992px)
   -------------------------------------------------------------------------- */
@media (max-width: 992px) {

    /* Header */
    .mobile-menu-toggle {
        display: block;
        z-index: 1001;
    }

    .main-nav {
        position: fixed;
        top: 0;
        right: -100%;
        width: 80%;
        height: 100vh;
        background-color: #fff;
        box-shadow: -5px 0 15px rgba(0, 0, 0, 0.1);
        z-index: 1000;
        transition: right 0.3s ease;
        padding-top: 80px;
    }

    .main-nav.active {
        right: 0;
    }

    .main-nav ul {
        flex-direction: column;
        align-items: flex-start;
        padding: 0 30px;
    }

    .main-nav li {
        margin: 0 0 20px 0;
        width: 100%;
    }

    .nav-link {
        font-size: 18px;
        display: block;
        padding: 10px 0;
    }

    .btn-donate {
        display: inline-block;
        margin-top: 10px;
        width: 100%;
        text-align: center;
    }

    /* Hero */
    .hero-content {
        text-align: center;
    }

    .hero-text {
        margin: 0 auto 40px;
    }

    .hero-stats {
        margin-top: 20px;
        background: rgba(0, 0, 0, 0.5);
    }

    /* Grids to 2 columns */
    .projects-grid,
    .help-grid,
    .services-grid,
    .features-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    /* About */
    .about-content {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .about-text {
        text-align: center;
    }

    .about-text p {
        text-align: center;
    }

    .about-founder {
        justify-content: center;
    }

    /* Contact */
    .contact-content {
        grid-template-columns: 1fr;
    }

    /* Footer */
    .footer-content {
        grid-template-columns: 1fr 1fr;
    }
}

/* --------------------------------------------------------------------------
   3. Small Devices (Landscape Phones, less than 768px)
   -------------------------------------------------------------------------- */
@media (max-width: 768px) {
    .section-title {
        font-size: 28px;
    }

    .hero-title {
        font-size: 36px;
    }

    .hero-subtitle {
        font-size: 16px;
    }

    .hero-buttons {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 15px;
    }

    .hero-buttons .btn {
        margin-right: 0;
        width: 80%;
        text-align: center;
    }

    .hero-stats {
        grid-template-columns: repeat(2, 1fr);
    }

    .stat-item {
        border-right: none;
        border-bottom: 1px solid rgba(255, 255, 255, 0.2);
        padding-bottom: 10px;
        margin-bottom: 10px;
    }

    .stat-item:nth-last-child(-n+2) {
        border-bottom: none;
        margin-bottom: 0;
        padding-bottom: 0;
    }

    /* Grids to 1 column */
    .projects-grid,
    .help-grid,
    .services-grid,
    .features-grid {
        grid-template-columns: 1fr;
    }

    .newsletter-content {
        flex-direction: column;
        text-align: center;
    }

    .newsletter-text {
        padding-right: 0;
        margin-bottom: 30px;
    }

    .form-row {
        grid-template-columns: 1fr;
    }

    .contact-item {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .contact-item .contact-icon {
        margin-right: 0;
        margin-bottom: 15px;
    }

    .contact-social {
        text-align: center;
    }

    .contact-social .social-icons {
        justify-content: center;
    }

    .stats-grid {
        grid-template-columns: 1fr;
    }

    .stat-box {
        border-left: none;
        border-top: 3px solid var(--primary-color);
    }

    /* Help Card Featured */
    .help-card.featured {
        transform: scale(1);
        order: -1;
        /* Show featured first on mobile */
    }

    .donation-amounts {
        grid-template-columns: repeat(4, 1fr);
    }
}

/* --------------------------------------------------------------------------
   4. Extra Small Devices (Portrait Phones, less than 576px)
   -------------------------------------------------------------------------- */
@media (max-width: 576px) {
    .top-bar {
        display: none;
        /* Hide top bar on very small screens */
    }

    .logo-img {
        height: 50px;
        margin-right: 10px;
    }

    .logo-main {
        font-size: 16px;
    }

    .logo-sub {
        font-size: 10px;
    }

    .section-padding {
        padding: 50px 0;
    }

    .hero-title {
        font-size: 28px;
    }

    .hero-stats {
        grid-template-columns: 1fr;
    }

    .stat-item {
        border-bottom: 1px solid rgba(255, 255, 255, 0.2);
        padding-bottom: 15px;
        margin-bottom: 15px;
    }

    .stat-item:last-child {
        border-bottom: none;
        margin-bottom: 0;
        padding-bottom: 0;
    }

    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .footer-column h4::after {
        left: 50%;
        transform: translateX(-50%);
    }

    .footer-links a {
        justify-content: center;
    }

    .footer-contact p {
        justify-content: center;
    }

    .footer-newsletter-form {
        justify-content: center;
    }

    .footer-bottom {
        flex-direction: column;
        text-align: center;
    }

    .footer-links-bottom {
        margin-top: 15px;
        display: flex;
        flex-direction: column;
        gap: 10px;
    }

    .footer-links-bottom a {
        margin-left: 0;
    }

    .donation-amounts {
        grid-template-columns: repeat(2, 1fr);
    }

    .modal-content {
        width: 95%;
        padding: 20px;
    }
}

/* --------------------------------------------------------------------------
   5. Dark Mode Support (Disabled - Forced Light Mode)
   -------------------------------------------------------------------------- */
/* @media (prefers-color-scheme: dark) {
    :root {
        --light-bg: #121212;
        --white: #1e1e1e;
        --text-color: #ecf0f1;
    }

    body {
        background-color: #000;
    }

    .feature-card,
    .service-card,
    .help-card,
    .project-card,
    .contact-form,
    .modal-content,
    .toast {
        background-color: #1e1e1e;
        border-color: #333;
    }

    .feature-card p,
    .service-card p,
    .help-card p,
    .project-content p,
    .contact-item p {
        color: #bbb;
    }

    header {
        background-color: #1a1a1a;
    }

    .nav-link {
        color: #ecf0f1;
    }

    .header-container {
        border-bottom: 1px solid #333;
    }

    .form-group input,
    .form-group select,
    .form-group textarea {
        background-color: #2c2c2c;
        border-color: #444;
        color: #ecf0f1;
    }

    .amount-btn {
        background: #2c2c2c;
        border-color: #444;
        color: #ecf0f1;
    }

    .payment-method {
        background: #2c2c2c;
        border-color: #444;
    }

    .newsletter-content {
        background-color: #1e1e1e;
    }

    .newsletter-section {
        background-color: #121212;
    }
} */


/* --------------------------------------------------------------------------
   6. 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;
    }

    .particles {
        display: none;
    }
}

/* --------------------------------------------------------------------------
   7. Print Styles
   -------------------------------------------------------------------------- */
@media print {

    .top-bar,
    .mobile-menu-toggle,
    .slideshow-controls,
    .newsletter-section,
    .footer-newsletter,
    .footer-bottom,
    .back-to-top,
    .modal,
    .toast {
        display: none !important;
    }

    body {
        color: #000;
        background: #fff;
    }

    .container {
        width: 100%;
        max-width: 100%;
        padding: 0;
        margin: 0;
    }

    a {
        text-decoration: none;
        color: #000;
    }

    .btn {
        border: 1px solid #000;
        color: #000;
        background: transparent;
    }
}