/* ===================================
   RESPONSIVE.CSS - Media queries for all devices
   =================================== */

/* ===================================
   TABLET (768px and below)
   =================================== */
@media (max-width: 768px) {
    /* Container */
    .container {
        padding: 0 1.5rem;
    }

    /* Header */
    .header-content {
        flex-wrap: wrap;
    }

    .nav {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background-color: var(--bg-color);
        box-shadow: var(--shadow);
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.3s ease;
    }

    .nav.active {
        max-height: 400px;
    }

    .nav-list {
        flex-direction: column;
        padding: 1rem;
        gap: 0;
    }

    .nav-list li {
        width: 100%;
    }

    .nav-link {
        display: block;
        padding: 1rem;
    }

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

    /* Hero Section */
    .hero {
        height: 500px;
    }

    .hero-title {
        font-size: 3rem;
    }

    .hero-subtitle {
        font-size: 1.25rem;
    }

    .hero-btn {
        padding: 0.875rem 2rem;
        font-size: 1rem;
    }

    /* Typography */
    .section-title {
        font-size: 2rem;
    }

    .page-title {
        font-size: 2.25rem;
    }

    /* Cards Grid */
    .cards-grid {
        grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
        gap: 1.5rem;
    }

    /* Modal */
    .modal-content {
        max-width: 100%;
        margin: 1rem;
    }

    .modal-image {
        height: 300px;
    }

    .modal-body {
        padding: 1.5rem;
    }

    .modal-title {
        font-size: 1.75rem;
    }

    .modal-description {
        font-size: 1rem;
    }

    /* Footer */
    .footer-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    /* Contact Page */
    .contact-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    /* About Page */
    .about-stats {
        grid-template-columns: 1fr;
    }
}

/* ===================================
   MOBILE (480px and below)
   =================================== */
@media (max-width: 480px) {
    /* Container */
    .container {
        padding: 0 1rem;
    }

    /* Header */
    .logo h1 {
        font-size: 1.5rem;
    }

    .theme-toggle {
        width: 2.5rem;
        height: 2.5rem;
        font-size: 1.25rem;
    }

    /* Hero Section */
    .hero {
        height: 400px;
    }

    .hero-content {
        padding: 1rem;
    }

    .hero-title {
        font-size: 2.25rem;
    }

    .hero-subtitle {
        font-size: 1.125rem;
        margin-bottom: 1.5rem;
    }

    .hero-btn {
        padding: 0.75rem 1.5rem;
        font-size: 0.875rem;
    }

    /* Main Content */
    .main {
        padding: 2rem 0;
    }

    /* Typography */
    .section-title {
        font-size: 1.75rem;
        margin-bottom: 1.5rem;
    }

    .page-title {
        font-size: 2rem;
        margin-bottom: 2rem;
    }

    /* Filters */
    .filters {
        gap: 0.75rem;
    }

    .filter-btn {
        padding: 0.625rem 1.25rem;
        font-size: 0.875rem;
    }

    /* Cards */
    .cards-grid {
        grid-template-columns: 1fr;
        gap: 1.25rem;
    }

    .card-image-container {
        height: 200px;
    }

    .card-content {
        padding: 1.25rem;
    }

    .card-title {
        font-size: 1.25rem;
    }

    .card-description {
        font-size: 0.875rem;
    }

    /* Modal */
    .modal {
        padding: 0.5rem;
    }

    .modal-image {
        height: 250px;
    }

    .modal-body {
        padding: 1.25rem;
    }

    .modal-title {
        font-size: 1.5rem;
    }

    .modal-description {
        font-size: 0.875rem;
        line-height: 1.6;
    }

    .modal-close {
        width: 2.5rem;
        height: 2.5rem;
        font-size: 1.5rem;
    }

    /* Footer */
    .footer {
        padding: 2rem 0 1rem;
    }

    .footer-section h3 {
        font-size: 1.125rem;
    }

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

    /* Contact Form */
    .form-group input,
    .form-group textarea {
        padding: 0.75rem;
        font-size: 0.875rem;
    }

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

    /* About Stats */
    .stat-number {
        font-size: 2.5rem;
    }

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

    /* About Text */
    .about-text h3 {
        font-size: 1.5rem;
    }

    .about-text p,
    .feature-list li {
        font-size: 1rem;
    }

    /* Contact Items */
    .contact-icon {
        font-size: 1.5rem;
    }

    .contact-item h4 {
        font-size: 1rem;
    }
}

/* ===================================
   LARGE DESKTOP (1400px and above)
   =================================== */
@media (min-width: 1400px) {
    .container {
        max-width: 1320px;
    }

    .hero-title {
        font-size: 4.5rem;
    }

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

    .cards-grid {
        grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
        gap: 2.5rem;
    }

    .section-title {
        font-size: 3rem;
    }
}

/* ===================================
   PRINT STYLES
   =================================== */
@media print {
    .header,
    .footer,
    .theme-toggle,
    .mobile-menu-toggle,
    .filters,
    .modal {
        display: none !important;
    }

    body {
        background: white;
        color: black;
    }

    .card {
        break-inside: avoid;
        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;
    }
}

/* ===================================
   HIGH CONTRAST MODE
   =================================== */
@media (prefers-contrast: high) {
    :root {
        --primary-color: #0000ff;
        --text-color: #000000;
        --bg-color: #ffffff;
        --border-color: #000000;
    }

    [data-theme="dark"] {
        --primary-color: #00ffff;
        --text-color: #ffffff;
        --bg-color: #000000;
        --border-color: #ffffff;
    }

    .card,
    .filter-btn,
    .modal-content {
        border: 2px solid var(--border-color);
    }
}
