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

/* Large Tablets and Small Desktops */
@media (max-width: 1024px) {
    :root {
        --container-padding: 1.5rem;
    }
    
    .hero-content h1 {
        font-size: 3rem;
    }
    
    .hero-slide {
        gap: 2rem;
    }
    
    .section-content {
        gap: 2rem;
    }
    
    .footer-content {
        grid-template-columns: 1fr 1fr;
        gap: 2rem;
    }
}

/* Tablets */
@media (max-width: 768px) {
    .top-bar {
        display: none;
    }
    
    .header-content {
        padding: 0.75rem 0;
    }
    
    .logo img {
        height: 45px;
    }
    
    .main-nav {
        display: none;
        position: fixed;
        top: 0;
        left: -100%;
        width: 80%;
        height: 100vh;
        background-color: var(--bg-white);
        box-shadow: var(--shadow-lg);
        z-index: 2000;
        transition: var(--transition-normal);
        overflow-y: auto;
    }
    
    .main-nav.active {
        left: 0;
    }
    
    .nav-menu {
        flex-direction: column;
        padding: 2rem;
        gap: 0;
    }
    
    .menu-item {
        width: 100%;
        border-bottom: 1px solid var(--border-color);
    }
    
    .menu-item:last-child {
        border-bottom: none;
    }
    
    .menu-item a {
        display: block;
        padding: 1rem 0;
    }
    
    .sub-menu {
        position: static;
        opacity: 1;
        visibility: visible;
        transform: none;
        box-shadow: none;
        background-color: var(--bg-light);
        margin-top: 0.5rem;
        border-radius: 0.375rem;
    }
    
    .menu-item-has-children > a::after {
        float: right;
    }
    
    .donate-btn {
        display: none;
    }
    
    .mobile-menu-toggle {
        display: flex;
    }
    
    .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);
    }
    
    .hero-section {
        min-height: 60vh;
    }
    
    .hero-slide {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 2rem;
    }
    
    .hero-content h1 {
        font-size: 2.5rem;
    }
    
    .hero-content h2 {
        font-size: 1.25rem;
    }
    
    .hero-buttons {
        justify-content: center;
        flex-wrap: wrap;
    }
    
    .section-content {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .support-stats {
        grid-template-columns: repeat(3, 1fr);
        gap: 1rem;
    }
    
    .stat-item {
        padding: 1rem;
    }
    
    .stat-number {
        font-size: 2rem;
    }
    
    .services-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .impact-stats {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        gap: 2rem;
        text-align: center;
    }
    
    .footer-social {
        justify-content: center;
    }
    
    .contact-info {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 0.5rem;
    }
}

/* Mobile Phones */
@media (max-width: 480px) {
    :root {
        --container-padding: 1rem;
        --spacing-lg: 1.5rem;
        --spacing-xl: 2rem;
        --spacing-xxl: 2.5rem;
    }
    
    .hero-content h1 {
        font-size: 2rem;
    }
    
    .hero-content h2 {
        font-size: 1.125rem;
    }
    
    .hero-content p {
        font-size: 1rem;
    }
    
    .hero-buttons {
        flex-direction: column;
        gap: 0.75rem;
    }
    
    .btn-large {
        padding: 0.875rem 1.5rem;
        font-size: 1rem;
    }
    
    .support-text h2 {
        font-size: 2rem;
    }
    
    .support-text p {
        font-size: 1rem;
    }
    
    .support-stats {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .section-header h2 {
        font-size: 2rem;
    }
    
    .section-header p {
        font-size: 1rem;
    }
    
    .service-card {
        padding: 1.5rem;
    }
    
    .service-icon {
        width: 60px;
        height: 60px;
        font-size: 1.5rem;
    }
    
    .impact-stats {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .impact-number {
        font-size: 2.5rem;
    }
    
    .footer-content {
        gap: 1.5rem;
    }
}

/* Extra Small Mobile Phones */
@media (max-width: 360px) {
    .hero-content h1 {
        font-size: 1.75rem;
    }
    
    .support-text h2 {
        font-size: 1.75rem;
    }
    
    .section-header h2 {
        font-size: 1.75rem;
    }
    
    .service-card {
        padding: 1rem;
    }
    
    .btn {
        padding: 0.625rem 1.25rem;
        font-size: 0.875rem;
    }
}

/* Landscape Orientation for Mobile */
@media (max-width: 768px) and (orientation: landscape) {
    .hero-section {
        min-height: 50vh;
    }
    
    .hero-content h1 {
        font-size: 2rem;
    }
    
    .hero-content h2 {
        font-size: 1.125rem;
    }
}

/* High DPI Displays */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
    .logo img,
    .footer-logo img {
        image-rendering: -webkit-optimize-contrast;
        image-rendering: crisp-edges;
    }
}

/* Print Styles */
@media print {
    .top-bar,
    .main-header,
    .hero-section,
    .footer-bottom,
    .btn,
    .social-icons,
    .footer-social {
        display: none !important;
    }
    
    body {
        font-size: 12pt;
        line-height: 1.4;
        color: #000;
        background: #fff;
    }
    
    .container {
        max-width: none;
        padding: 0;
    }
    
    .section-content,
    .services-grid,
    .impact-stats {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .service-card,
    .stat-item,
    .impact-stat {
        box-shadow: none;
        border: 1px solid #ddd;
    }
}

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

/* Dark Mode Support */
@media (prefers-color-scheme: dark) {
    :root {
        --bg-white: #1a202c;
        --bg-light: #2d3748;
        --text-dark: #f7fafc;
        --text-light: #cbd5e0;
        --text-lighter: #a0aec0;
        --border-color: #4a5568;
    }
    
    .main-header {
        background-color: var(--bg-light);
        border-bottom: 1px solid var(--border-color);
    }
    
    .service-card,
    .stat-item {
        background-color: var(--bg-light);
        border: 1px solid var(--border-color);
    }
    
    .sub-menu {
        background-color: var(--bg-light);
    }
}

/* Accessibility Focus Styles */
@media (hover: hover) {
    .btn:focus,
    .menu-item a:focus,
    .social-icons a:focus {
        outline: 2px solid var(--primary-color);
        outline-offset: 2px;
    }
}

/* Touch Devices */
@media (hover: none) {
    .menu-item:hover .sub-menu {
        opacity: 0;
        visibility: hidden;
        transform: translateY(-10px);
    }
    
    .menu-item:active .sub-menu {
        opacity: 1;
        visibility: visible;
        transform: translateY(0);
    }
}

@media (max-width: 900px) {
  .container_one {
    flex-direction: column;
    text-align: center;
  }

  .content-box {
    max-width: 100%;
  }

  .content-box h2 {
    font-size: 30px;
  }
}
