/* ===================================
   AADU 3 - Responsive Design
   Mobile First Approach
   =================================== */

/* ===================================
   MOBILE (< 768px) - Default Styles
   =================================== */

/* Mobile Navigation */
@media (max-width: 767px) {
    .nav-menu {
        position: fixed;
        top: 0;
        right: -100%;
        width: 100%;
        height: 100vh;
        background: rgba(10, 10, 10, 0.98);
        backdrop-filter: blur(10px);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        padding: var(--spacing-lg);
        transition: var(--transition-medium);
        z-index: 999;
    }
    
    .nav-menu.active {
        right: 0;
    }
    
    .nav-link {
        font-size: 1.5rem;
        padding: var(--spacing-sm) 0;
    }
    
    .btn-book-tickets {
        display: none;
    }
    
    .hamburger {
        display: flex;
        z-index: 1001;
    }
    
    .hamburger.active span:nth-child(1) {
        transform: rotate(45deg) translateY(12px);
    }
    
    .hamburger.active span:nth-child(2) {
        opacity: 0;
    }
    
    .hamburger.active span:nth-child(3) {
        transform: rotate(-45deg) translateY(-12px);
    }
    
    /* Hero Section Mobile */
    .hero-video {
        /* Optimize video on mobile */
        object-fit: cover;
        min-height: 100vh;
    }
    
    .hero-logo img {
        max-width: 120px;
    }
    
    .hero-title {
        font-size: 2.5rem;
        letter-spacing: 4px;
    }
    
    .hero-tagline {
        font-size: 1rem;
        padding: 0 var(--spacing-sm);
    }
    
    .hero-release-badge {
        padding: 0.75rem 1.5rem;
        font-size: 0.85rem;
    }
    
    .btn-trailer {
        padding: 0.85rem 2rem;
        font-size: 1rem;
    }
    
    .countdown-container {
        gap: var(--spacing-sm);
    }
    
    .countdown-item {
        padding: 1rem;
        min-width: 70px;
    }
    
    .countdown-value {
        font-size: 1.8rem;
    }
    
    .countdown-label {
        font-size: 0.75rem;
    }
    
    /* About Section Mobile */
    .about-text {
        font-size: 1rem;
    }
    
    .info-cards {
        grid-template-columns: 1fr;
    }
    
    /* Trailers Section Mobile */
    .trailers-grid {
        grid-template-columns: 1fr;
    }
    
    .play-button {
        width: 60px;
        height: 60px;
        font-size: 1.5rem;
    }
    
    /* Cast Section Mobile */
    .cast-image {
        width: 150px;
        height: 150px;
    }
    
    .cast-actor-name {
        font-size: 1rem;
    }
    
    .cast-character-name {
        font-size: 0.85rem;
    }
    
    /* Crew Section Mobile */
    .crew-grid {
        grid-template-columns: 1fr;
    }
    
    .crew-image {
        width: 120px;
        height: 120px;
    }
    
    /* Gallery Section Mobile */
    .gallerySwiper .swiper-slide {
        aspect-ratio: 2/3;
        max-height: 500px;
    }
    
    .gallerySwiper .swiper-slide img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        object-position: center;
    }
    
    /* Timeline Mobile */
    .timeline {
        padding: var(--spacing-sm);
    }
    
    .timeline::before {
        left: 15px;
    }
    
    .timeline-item {
        padding-left: 60px;
    }
    
    .timeline-dot {
        left: 1px;
        width: 25px;
        height: 25px;
    }
    
    .timeline-year {
        font-size: 1.5rem;
    }
    
    .timeline-title {
        font-size: 1.2rem;
    }
    
    .timeline-description {
        font-size: 0.9rem;
    }
    
    /* Footer Mobile */
    .footer-nav {
        flex-direction: column;
        text-align: center;
        gap: var(--spacing-sm);
    }
    
    .social-links a {
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }
    
    /* Modal Mobile */
    .modal-content {
        max-width: 95%;
        max-height: 80%;
    }
    
    .modal-close {
        width: 40px;
        height: 40px;
        font-size: 1.5rem;
        top: 10px;
        right: 10px;
    }
    
    .gallery-nav-btn {
        width: 40px;
        height: 40px;
        font-size: 1.5rem;
    }
    
    .prev-btn {
        left: 10px;
    }
    
    .next-btn {
        right: 10px;
    }
    
    .gallery-modal-content img {
        max-width: 95vw;
        max-height: 80vh;
    }
}

/* ===================================
   TABLET (768px - 1024px)
   =================================== */

@media (min-width: 768px) and (max-width: 1024px) {
    .nav-container {
        padding: 0 var(--spacing-md);
    }
    
    .nav-menu {
        gap: var(--spacing-sm);
    }
    
    .nav-link {
        font-size: 0.95rem;
    }
    
    .btn-book-tickets {
        padding: 0.6rem 1.2rem;
        font-size: 0.9rem;
    }
    
    /* Hero Section Tablet */
    .hero-logo img {
        max-width: 150px;
    }
    
    .hero-title {
        font-size: 4rem;
        letter-spacing: 6px;
    }
    
    .hero-tagline {
        font-size: 1.2rem;
    }
    
    .countdown-item {
        padding: 1.2rem;
        min-width: 85px;
    }
    
    .countdown-value {
        font-size: 2rem;
    }
    
    /* Info Cards Tablet */
    .info-cards {
        grid-template-columns: repeat(2, 1fr);
    }
    
    /* Trailers Section Tablet */
    .trailers-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .trailer-card.main-trailer {
        grid-column: 1 / -1;
    }
    
    /* Cast Section Tablet */
    .cast-image {
        width: 170px;
        height: 170px;
    }
    
    /* Crew Section Tablet */
    .crew-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    /* Gallery Section Tablet */
    .gallerySwiper .swiper-slide {
        aspect-ratio: 2/3;
        max-height: 600px;
    }
    
    .gallerySwiper .swiper-slide img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        object-position: center;
    }
}

/* ===================================
   DESKTOP (> 1024px)
   =================================== */

@media (min-width: 1024px) {
    /* Navigation Desktop */
    .nav-container {
        max-width: 1400px;
    }
    
    /* Hero Section Desktop */
    .hero-content {
        max-width: 1200px;
        margin: 0 auto;
    }
    
    /* Info Cards Desktop */
    .info-cards {
        grid-template-columns: repeat(4, 1fr);
    }
    
    /* Trailers Grid Desktop */
    .trailers-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    
    /* Crew Grid Desktop */
    .crew-grid {
        grid-template-columns: repeat(4, 1fr);
    }
    
    /* Gallery Desktop */
    .gallerySwiper .swiper-slide {
        aspect-ratio: 2/3;
        max-height: 700px;
    }
    
    .gallerySwiper .swiper-slide img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        object-position: center;
    }
}

/* ===================================
   LARGE DESKTOP (> 1440px)
   =================================== */

@media (min-width: 1440px) {
    .container {
        max-width: 1400px;
    }
    
    .hero-title {
        font-size: 7rem;
    }
    
    .hero-tagline {
        font-size: 1.8rem;
    }
    
    .section-title {
        font-size: 4rem;
    }
    
    .cast-image {
        width: 220px;
        height: 220px;
    }
    
    .crew-grid {
        grid-template-columns: repeat(5, 1fr);
    }
    
    .gallerySwiper .swiper-slide {
        aspect-ratio: 2/3;
        max-height: 800px;
    }
    
    .gallerySwiper .swiper-slide img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        object-position: center;
    }
    
    .timeline {
        max-width: 1000px;
    }
}

/* ===================================
   TOUCH TARGETS (Accessibility)
   =================================== */

@media (hover: none) {
    /* Ensure all interactive elements are at least 44px */
    .nav-link,
    .btn-book-tickets,
    .btn-trailer,
    .play-button,
    .social-links a,
    .hamburger {
        min-width: 44px;
        min-height: 44px;
    }
    
    /* Remove hover effects on touch devices */
    .cast-card:hover .cast-image img,
    .trailer-card:hover .play-button {
        transform: none;
    }
}

/* ===================================
   LANDSCAPE MOBILE
   =================================== */

@media (max-width: 896px) and (orientation: landscape) {
    .hero {
        height: auto;
        min-height: 100vh;
        padding: var(--spacing-lg) 0;
    }
    
    .hero-title {
        font-size: 2rem;
    }
    
    .countdown-container {
        display: grid;
        grid-template-columns: repeat(4, 1fr);
        gap: var(--spacing-sm);
    }
    
    .countdown-item {
        min-width: auto;
    }
}

/* ===================================
   PRINT STYLES
   =================================== */

@media print {
    .navbar,
    .hamburger,
    .btn-book-tickets,
    .btn-trailer,
    .scroll-indicator,
    .footer-book-tickets,
    .social-links,
    .modal {
        display: none !important;
    }
    
    body {
        background: white;
        color: black;
    }
    
    .section-title {
        color: #000;
        page-break-after: avoid;
    }
    
    .hero {
        height: auto;
        page-break-inside: avoid;
    }
}

/* ===================================
   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;
    }
    
    .hero-image {
        animation: none;
    }
    
    .scroll-chevron {
        animation: none;
    }
}
