/* Additional responsive design styles */

/* Mobile-first approach */
@media (max-width: 768px) {
    /* Header and navigation */
    .header-container {
        flex-direction: column;
        padding: 1rem;
    }
    
    .logo {
        margin-bottom: 1rem;
        text-align: center;
    }
    
    .nav-menu {
        display: none;
        flex-direction: column;
        width: 100%;
        text-align: center;
    }
    
    .nav-menu.active {
        display: flex;
    }
    
    .nav-menu li {
        margin: 0.5rem 0;
    }
    
    .mobile-menu-btn {
        display: block;
        position: absolute;
        top: 1rem;
        right: 1rem;
    }
    
    /* Hero section */
    .hero {
        min-height: 50vh;
    }
    
    .hero-content h1 {
        font-size: 2rem;
    }
    
    .hero-content p {
        font-size: 1rem;
    }
    
    /* Content sections */
    .section {
        padding: 2rem 1rem;
    }
    
    .section-title h2 {
        font-size: 1.75rem;
    }
    
    /* Gallery */
    .gallery {
        grid-template-columns: 1fr;
    }
    
    /* Cards and grid layouts */
    .grid {
        grid-template-columns: 1fr;
    }
    
    /* Footer */
    .footer-content {
        flex-direction: column;
    }
    
    .footer-column {
        width: 100%;
        margin-bottom: 1.5rem;
    }
    
    /* CTA buttons */
    .cta-buttons {
        flex-direction: column;
    }
    
    .btn {
        width: 100%;
        margin: 0.5rem 0;
    }
    
    /* Evidence items */
    .evidence-item {
        padding: 1rem;
    }
    
    /* Timeline */
    .timeline-item {
        padding-left: 2rem;
    }
    
    .timeline-item::before {
        left: 0;
    }
}

/* Tablet styles */
@media (min-width: 769px) and (max-width: 1024px) {
    .container {
        padding: 0 2rem;
    }
    
    .gallery {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .footer-content {
        flex-wrap: wrap;
    }
    
    .footer-column {
        width: 48%;
        margin-bottom: 1.5rem;
    }
}

/* Larger screens */
@media (min-width: 1025px) {
    .container {
        max-width: 1200px;
    }
    
    .gallery {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

/* Touch-friendly improvements */
@media (hover: none) {
    .btn, .nav-menu a, .social-links a {
        padding: 0.75rem 1.5rem;
    }
    
    .gallery-img {
        cursor: pointer;
    }
    
    input, textarea, select, button {
        font-size: 16px; /* Prevents iOS zoom on focus */
    }
}

/* Print styles */
@media print {
    header, footer, .cta-banner, .hero, form, .btn {
        display: none;
    }
    
    body {
        font-size: 12pt;
        line-height: 1.5;
        color: #000;
        background: #fff;
    }
    
    a {
        text-decoration: none;
        color: #000;
    }
    
    a::after {
        content: " (" attr(href) ")";
        font-size: 0.8em;
    }
    
    .container {
        width: 100%;
        max-width: 100%;
        padding: 0;
        margin: 0;
    }
    
    .section {
        page-break-inside: avoid;
        margin-bottom: 1cm;
    }
    
    h1, h2, h3 {
        page-break-after: avoid;
    }
    
    img {
        max-width: 100% !important;
    }
    
    p, h2, h3 {
        orphans: 3;
        widows: 3;
    }
}

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

/* High contrast mode support */
@media (prefers-contrast: high) {
    :root {
        --primary-color: #000;
        --secondary-color: #000;
        --text-color: #000;
        --bg-color: #fff;
    }
    
    * {
        border-color: #000 !important;
    }
    
    a, button, .btn {
        text-decoration: underline;
    }
}

/* Dark mode support */
@media (prefers-color-scheme: dark) {
    :root {
        --primary-color: #4a90e2;
        --secondary-color: #f39c12;
        --text-color: #f5f5f5;
        --bg-color: #121212;
        --card-bg: #1e1e1e;
        --border-color: #333;
    }
    
    body {
        background-color: var(--bg-color);
        color: var(--text-color);
    }
    
    .card, .evidence-item, .timeline-item, form, input, textarea, select {
        background-color: var(--card-bg);
        border-color: var(--border-color);
    }
    
    .hero-overlay {
        background-color: rgba(0, 0, 0, 0.7);
    }
    
    header, footer {
        background-color: #0a0a0a;
    }
    
    .section:nth-child(even) {
        background-color: #1a1a1a;
    }
}

/* Image modal for gallery */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.9);
}

.modal-content {
    margin: auto;
    display: block;
    max-width: 90%;
    max-height: 90%;
}

.modal-close {
    position: absolute;
    top: 15px;
    right: 35px;
    color: #f1f1f1;
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
}

/* Animation for modal */
.modal-content, .modal-close {
    animation-name: zoom;
    animation-duration: 0.6s;
}

@keyframes zoom {
    from {transform:scale(0)}
    to {transform:scale(1)}
}
