/* ============================================
   ANICCA LIU - Responsive Stylesheet
   Mobile First approach with min-width queries
   ============================================ */

/* ============================================
   Base: Mobile (< 768px)
   ============================================ */

/* Navigation */
.nav-toggle {
    display: flex;
}

.nav-links {
    position: fixed;
    top: 0;
    right: -100%;
    width: 100%;
    height: 100vh;
    background: var(--color-bg);
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 2rem;
    transition: right 0.4s ease;
    z-index: 999;
}

.nav-links.active {
    right: 0;
}

.nav-link {
    font-size: 1.125rem;
}

.nav-lang {
    margin-left: 0;
    padding-left: 0;
    border-left: none;
    margin-top: 1rem;
}

/* Hero */
.hero-title {
    font-size: 2.75rem;
}

body[data-lang="cn"] .hero-title {
    font-size: 2.25rem;
}

.hero-subtitle {
    font-size: 0.875rem;
    letter-spacing: 0.2em;
}

.hero-tagline {
    font-size: 1.125rem;
}

/* Section */
.section {
    padding: 3rem 0;
}

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

body[data-lang="cn"] .section-title {
    font-size: 1.75rem;
}

.container {
    padding: 0 20px;
}

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

.about-portrait {
    position: relative;
    top: 0;
    max-width: 300px;
    margin: 0 auto;
}

.portrait-placeholder {
    max-width: 280px;
}

.timeline-item {
    grid-template-columns: 1fr;
    gap: 0.5rem;
}

.timeline-year {
    padding-top: 0;
}

/* Showreel */
.featured-work {
    grid-template-columns: 1fr;
    gap: 1.5rem;
}

.works-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
}

.multimedia-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
}

.project-section {
    margin-top: 2.5rem;
}

/* Set Design */
.design-gallery {
    grid-template-columns: 1fr;
    gap: 1.5rem;
}

.film393-banner {
    flex-direction: column;
    text-align: center;
    gap: 1rem;
    padding: 1.5rem 1.25rem;
}

.film393-pages-count {
    font-size: 2.5rem;
}

.film393-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 0.75rem;
}

/* Portfolio Lightbox Navigation - Mobile */
.portfolio-nav-btn {
    width: 36px;
    height: 36px;
}

.portfolio-nav-info {
    font-size: 0.75rem;
    min-width: 60px;
}

/* Resume */
.resume-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
}

.resume-item-header {
    flex-direction: column;
    gap: 0.25rem;
}

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

.contact-subtitle {
    font-size: 1.125rem;
}

/* Modal */
.modal-content {
    width: 95%;
}

.modal-close {
    top: -40px;
}

/* Back to top */
.back-to-top {
    bottom: 20px;
    right: 20px;
    width: 40px;
    height: 40px;
}

/* Share buttons */
.share-buttons {
    flex-direction: column;
    align-items: center;
}

.share-btn {
    width: 100%;
    max-width: 280px;
    justify-content: center;
}

#shareLinkInput {
    font-size: 0.75rem;
}

/* ============================================
   Tablet (768px - 1023px)
   ============================================ */
@media (min-width: 768px) {
    /* Navigation - still hamburger on tablet */
    .nav-toggle {
        display: flex;
    }

    .nav-links {
        width: 320px;
    }

    /* Hero */
    .hero-title {
        font-size: 3.5rem;
    }

    body[data-lang="cn"] .hero-title {
        font-size: 2.75rem;
    }

    /* Section */
    .section {
        padding: 4rem 0;
    }

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

    /* About */
    .about-content {
        grid-template-columns: 1fr 2fr;
        gap: 2.5rem;
    }

    .about-portrait {
        position: relative;
        top: 0;
    }

    /* Showreel */
    .featured-work {
        grid-template-columns: 3fr 2fr;
        gap: 2rem;
    }

    .works-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 2rem;
    }

    .multimedia-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
    }

    /* Set Design */
    .design-gallery {
        grid-template-columns: repeat(2, 1fr);
        gap: 2rem;
    }

    /* Resume */
    .resume-grid {
        grid-template-columns: 1fr;
        gap: 2.5rem;
    }

    .resume-item-header {
        flex-direction: row;
    }

    /* Timeline */
    .timeline-item {
        grid-template-columns: 160px 1fr;
    }
}

/* ============================================
   Desktop (1024px - 1439px)
   ============================================ */
@media (min-width: 1024px) {
    /* Navigation - show full nav */
    .nav-toggle {
        display: none;
    }

    .nav-links {
        position: static;
        width: auto;
        height: auto;
        flex-direction: row;
        background: transparent;
    }

    /* Section */
    .section {
        padding: 6rem 0;
    }

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

    /* About */
    .about-content {
        grid-template-columns: 2fr 3fr;
        gap: 4rem;
    }

    .about-portrait {
        position: sticky;
        top: calc(var(--nav-height) + 2.5rem);
    }

    /* Works grid */
    .works-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 2.5rem;
    }

    .multimedia-grid {
        grid-template-columns: repeat(4, 1fr);
        gap: 1.5rem;
    }

    /* Set Design */
    .design-gallery {
        grid-template-columns: repeat(3, 1fr);
        gap: 2.5rem;
    }

    .film393-grid {
        grid-template-columns: repeat(4, 1fr);
        gap: var(--space-md);
    }

    /* Resume */
    .resume-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 4rem;
    }

    /* Timeline */
    .timeline-item {
        grid-template-columns: 180px 1fr;
    }
}

/* ============================================
   Large Desktop (>= 1440px)
   ============================================ */
@media (min-width: 1440px) {
    :root {
        --container-max: 1320px;
    }

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

    body[data-lang="cn"] .hero-title {
        font-size: 4rem;
    }

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

/* ============================================
   Small Mobile (< 375px)
   ============================================ */
@media (max-width: 374px) {
    .hero-title {
        font-size: 2.25rem;
    }

    body[data-lang="cn"] .hero-title {
        font-size: 2rem;
    }

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

    .hero-tagline {
        font-size: 1rem;
    }

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

    body[data-lang="cn"] .section-title {
        font-size: 1.5rem;
    }

    .container {
        padding: 0 16px;
    }
}
