/* ============================================
   Responsive Design - Mobile & Tablet
   ============================================ */

/* --- Tablet Devices (768px and below) --- */
@media (max-width: 768px) {
    /* Typography */
    h1 { font-size: 2.5rem; }
    h2 { font-size: 1.875rem; }
    h3 { font-size: 1.5rem; }
    h4 { font-size: 1.25rem; }
    h5 { font-size: 1rem; }
    
    p {
        font-size: 1rem;
    }

    /* Header & Navigation */
    .header-inner {
        flex-wrap: wrap;
    }

    .nav {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background-color: var(--bg-white);
        box-shadow: var(--shadow-md);
        width: 100%;
    }

    .nav.active {
        display: block;
    }

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

    .nav-item {
        border-bottom: 1px solid var(--border-color);
    }

    .nav-link {
        display: block;
        padding: 1rem 2rem;
        border-bottom: none;
    }

    .mobile-menu-toggle {
        display: flex;
        order: 3;
    }

    /* Hero Section */
    .hero {
        padding: 4rem 1rem;
    }

    .hero-title {
        font-size: 2.5rem;
        letter-spacing: 1px;
    }

    .hero-subtitle {
        font-size: 1.125rem;
        letter-spacing: 2px;
    }

    /* Sections */
    .section {
        padding: 3rem 1rem;
    }

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

    .section-content p {
        text-align: left;
    }

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

    .footer-section {
        text-align: center;
    }

    .footer-section h3 {
        margin-bottom: 0.75rem;
    }

    .footer-links {
        display: flex;
        justify-content: center;
        gap: 1rem;
        flex-wrap: wrap;
    }

    .footer-links li {
        margin-bottom: 0;
    }

    /* Call to Action */
    .cta-button {
        padding: 0.875rem 2rem;
        font-size: 0.95rem;
    }
}

/* --- Mobile Devices (480px and below) --- */
@media (max-width: 480px) {
    /* Typography */
    h1 { font-size: 2rem; }
    h2 { font-size: 1.5rem; }
    h3 { font-size: 1.25rem; }
    h4 { font-size: 1rem; }
    
    p {
        font-size: 0.95rem;
        line-height: 1.6;
    }

    .container {
        padding: 0 15px;
    }

    /* Header & Navigation */
    .logo-link {
        font-size: 1.25rem;
    }

    .logo-text {
        font-size: 1rem;
    }

    /* Hero Section */
    .hero {
        padding: 3rem 1rem;
    }

    .hero-title {
        font-size: 1.875rem;
        letter-spacing: 0.5px;
        margin-bottom: 0.75rem;
    }

    .hero-subtitle {
        font-size: 1rem;
        letter-spacing: 1px;
    }

    /* Sections */
    .section {
        padding: 2rem 1rem;
    }

    .section-title {
        font-size: 1.5rem;
        margin-bottom: 1.5rem;
    }

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

    /* Call to Action */
    .cta-content p {
        font-size: 1rem;
        margin-bottom: 1.5rem;
    }

    .cta-button {
        padding: 0.75rem 1.75rem;
        font-size: 0.875rem;
    }

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

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

    .footer-section p {
        font-size: 0.875rem;
    }

    .footer-bottom {
        font-size: 0.75rem;
    }

    /* Utility Classes */
    .mt-1 { margin-top: 0.375rem; }
    .mt-2 { margin-top: 0.75rem; }
    .mt-3 { margin-top: 1rem; }
    .mt-4 { margin-top: 1.5rem; }

    .mb-1 { margin-bottom: 0.375rem; }
    .mb-2 { margin-bottom: 0.75rem; }
    .mb-3 { margin-bottom: 1rem; }
    .mb-4 { margin-bottom: 1.5rem; }

    .pt-1 { padding-top: 0.375rem; }
    .pt-2 { padding-top: 0.75rem; }
    .pt-3 { padding-top: 1rem; }
    .pt-4 { padding-top: 1.5rem; }

    .pb-1 { padding-bottom: 0.375rem; }
    .pb-2 { padding-bottom: 0.75rem; }
    .pb-3 { padding-bottom: 1rem; }
    .pb-4 { padding-bottom: 1.5rem; }
}

/* --- Large Screens (1200px and above) --- */
@media (min-width: 1200px) {
    .container {
        max-width: 1280px;
    }

    .section {
        padding: 5rem 0;
    }

    .hero {
        padding: 8rem 2rem;
    }

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

/* --- Print Styles --- */
@media print {
    .header,
    .footer,
    .mobile-menu-toggle,
    .cta-button {
        display: none;
    }

    body {
        background-color: white;
        color: black;
    }

    .section {
        page-break-inside: avoid;
    }

    a {
        color: black;
        text-decoration: underline;
    }
}

/* --- Dark Mode Support (Optional) --- */
@media (prefers-color-scheme: dark) {
    :root {
        --bg-light: #1F2937;
        --bg-white: #111827;
        --text-dark: #F3F4F6;
        --text-light: #D1D5DB;
        --border-color: #374151;
    }

    .header {
        background-color: #111827;
        box-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
    }

    .nav {
        background-color: #111827;
    }

    .legacy-section,
    .films-section {
        background-color: #111827;
    }

    .music-section,
    .publishing-section {
        background-color: #1F2937;
    }
}

/* --- 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 DPI Screens --- */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
    /* Optimize for retina displays */
    body {
        -webkit-font-smoothing: antialiased;
        -moz-osx-font-smoothing: grayscale;
    }
}
