/* ============================================
   MOBILE OPTIMIZATION - FULL PROJECT
   Optimizes containers, hero, sections, images, videos, and text for mobile
   ============================================ */

/* ============================================
   BASE MOBILE STYLES (480px and below)
   ============================================ */
@media (max-width: 480px) {
    /* Container Optimization */
    .container,
    .container-narrow {
        padding: 0 15px !important;
        max-width: 100% !important;
    }
    
    /* Typography - Mobile Optimized */
    body {
        font-size: 14px !important;
        line-height: 1.6 !important;
    }
    
    h1 {
        font-size: 2rem !important;
        line-height: 1.2 !important;
    }
    
    h2 {
        font-size: 1.75rem !important;
        line-height: 1.3 !important;
    }
    
    h3 {
        font-size: 1.5rem !important;
        line-height: 1.3 !important;
    }
    
    h4 {
        font-size: 1.25rem !important;
    }
    
    .section-title {
        font-size: 1.75rem !important;
        margin-bottom: 1.5rem !important;
        line-height: 1.2 !important;
    }
    
    .section-description {
        font-size: 0.95rem !important;
        line-height: 1.6 !important;
        margin-bottom: 1.25rem !important;
    }
    
    /* Hero Section - Mobile Optimization */
    .hero-section {
        min-height: 500px !important;
        height: auto !important;
        padding: 2rem 0 !important;
    }
    
    .hero-carousel-slide {
        flex-direction: column !important;
        min-height: 500px !important;
    }
    
    .hero-slide-content {
        width: 100% !important;
        padding: 2rem 1.5rem !important;
        text-align: center !important;
        order: 2 !important;
    }
    
    .hero-slide-image {
        width: 100% !important;
        height: auto !important;
        min-height: 280px !important;
        max-height: 400px !important;
        padding: 0 !important;
        order: 1 !important;
        overflow: hidden !important;
    }
    
    .hero-slide-image img,
    .hero-slide-img {
        width: 100% !important;
        height: 100% !important;
        min-height: 280px !important;
        object-fit: cover !important;
        object-position: center !important;
        max-width: 100% !important;
        display: block !important;
    }
    
    .hero-slide-title {
        font-size: 2rem !important;
        line-height: 1.2 !important;
        margin-bottom: 1rem !important;
    }
    
    .hero-slide-subtitle {
        font-size: 1rem !important;
        line-height: 1.5 !important;
        margin-bottom: 1.5rem !important;
    }
    
    .hero-tagline {
        font-size: 2rem !important;
        line-height: 1.2 !important;
    }
    
    .hero-subtext {
        font-size: 0.95rem !important;
        line-height: 1.6 !important;
    }
    
    /* Page Hero - Mobile */
    .page-hero {
        padding: 120px 0 60px !important;
        min-height: auto !important;
    }
    
    .page-hero-title {
        font-size: 2rem !important;
        line-height: 1.2 !important;
        margin-bottom: 0.75rem !important;
    }
    
    .page-hero-subtitle {
        font-size: 1rem !important;
        line-height: 1.5 !important;
    }
    
    /* Sections - Mobile Spacing */
    section {
        padding: 40px 0 !important;
    }
    
    .about-section,
    .services-section,
    .gallery-section,
    .showreel-section,
    .testimonials-section,
    .values-section,
    .team-section,
    .stats-section {
        padding: 50px 0 !important;
    }
    
    /* Images - Mobile Optimization */
    img {
        max-width: 100% !important;
        height: auto !important;
    }
    
    .service-image,
    .gallery-item img,
    .gallery-item video,
    .service-detail-image img,
    .service-detail-video {
        width: 100% !important;
        height: auto !important;
        max-height: 300px !important;
        object-fit: cover !important;
    }
    
    .service-image {
        height: 200px !important;
        min-height: 200px !important;
        max-height: 200px !important;
    }
    
    .service-detail-image {
        height: auto !important;
        min-height: 250px !important;
        max-height: 300px !important;
    }
    
    .service-detail-image img,
    .service-detail-video {
        width: 100% !important;
        height: auto !important;
        max-height: 300px !important;
        object-fit: cover !important;
    }
    
    .service-placeholder-large {
        height: 250px !important;
        font-size: 4rem !important;
    }
    
    /* Videos - Mobile Optimization */
    video {
        max-width: 100% !important;
        height: auto !important;
    }
    
    .service-video,
    .video-gallery-preview,
    .service-detail-video {
        width: 100% !important;
        height: auto !important;
        max-height: 300px !important;
        object-fit: cover !important;
    }
    
    .video-gallery-item {
        aspect-ratio: 16/9 !important;
        height: auto !important;
    }
    
    /* Grids - Mobile Single Column */
    .services-grid,
    .gallery-grid,
    .testimonials-grid,
    .values-grid,
    .team-grid,
    .stats-grid,
    .pricing-grid,
    .service-types-grid,
    .planning-services-grid,
    .studio-features-grid,
    .process-steps,
    .service-portfolio-grid {
        grid-template-columns: 1fr !important;
        gap: 1.5rem !important;
    }
    
    /* Cards - Mobile Optimization */
    .service-card,
    .gallery-item,
    .testimonial-card,
    .pricing-card,
    .service-type-card,
    .value-card,
    .team-member {
        width: 100% !important;
        max-width: 100% !important;
    }
    
    .service-content,
    .pricing-card,
    .service-type-card {
        padding: 1.5rem !important;
    }
    
    /* Buttons - Mobile Optimization */
    .btn {
        padding: 0.75rem 1.5rem !important;
        font-size: 0.9rem !important;
        width: 100% !important;
        max-width: 100% !important;
    }
    
    .btn-large {
        padding: 1rem 2rem !important;
        font-size: 1rem !important;
    }
    
    .cta-buttons {
        flex-direction: column !important;
        gap: 1rem !important;
    }
    
    .cta-buttons .btn {
        width: 100% !important;
    }
    
    /* Forms - Mobile Optimization */
    .form-row {
        grid-template-columns: 1fr !important;
        gap: 1rem !important;
    }
    
    .form-group input,
    .form-group textarea,
    .form-group select {
        font-size: 16px !important; /* Prevents zoom on iOS */
        padding: 0.875rem !important;
    }
    
    /* About Page - Mobile */
    .about-page-content {
        grid-template-columns: 1fr !important;
        gap: 2rem !important;
    }
    
    .about-page-image img {
        width: 100% !important;
        height: auto !important;
    }
    
    /* Contact Page - Mobile */
    .contact-page-content {
        grid-template-columns: 1fr !important;
        gap: 2rem !important;
    }
    
    .contact-info-cards {
        grid-template-columns: 1fr !important;
    }
    
    /* Booking Page - Mobile */
    .booking-page-content {
        grid-template-columns: 1fr !important;
        gap: 2rem !important;
    }
    
    .service-selection-grid,
    .package-selection-grid {
        grid-template-columns: 1fr !important;
    }
    
    /* Gallery Page - Mobile */
    .gallery-filters {
        flex-wrap: wrap !important;
        gap: 0.75rem !important;
    }
    
    .filter-btn {
        padding: 0.6rem 1.2rem !important;
        font-size: 0.85rem !important;
    }
    
    /* Service Detail Pages - Mobile */
    .service-detail-content {
        grid-template-columns: 1fr !important;
        gap: 2rem !important;
    }
    
    .service-detail-text {
        padding: 1rem 0 !important;
    }
    
    .service-detail-text .section-title {
        font-size: 1.75rem !important;
    }
    
    .service-detail-text .section-description {
        font-size: 0.95rem !important;
    }
    
    /* Equalizer Visualizer - Mobile */
    .equalizer-visualizer-large {
        height: 250px !important;
        padding: 1.5rem !important;
    }
    
    .equalizer-visualizer .eq-bar {
        width: 6px !important;
    }
    
    /* Process Steps - Mobile */
    .process-steps {
        grid-template-columns: 1fr !important;
        gap: 2rem !important;
    }
    
    .process-number {
        width: 50px !important;
        height: 50px !important;
        font-size: 1.25rem !important;
    }
    
    /* FAQ - Mobile */
    .faq-question h3 {
        font-size: 1rem !important;
        padding-right: 2rem !important;
    }
    
    /* CTA Section - Mobile */
    .cta-content h2 {
        font-size: 1.75rem !important;
        line-height: 1.2 !important;
    }
    
    .cta-content p {
        font-size: 1rem !important;
        line-height: 1.6 !important;
    }
    
    /* Footer - Mobile */
    .footer-content {
        grid-template-columns: 1fr !important;
        gap: 2rem !important;
        text-align: center !important;
    }
    
    .footer-nav {
        flex-direction: column !important;
        gap: 0.75rem !important;
    }
    
    .social-icons {
        justify-content: center !important;
    }
}

/* ============================================
   TABLET OPTIMIZATION (481px - 768px)
   ============================================ */
@media (min-width: 481px) and (max-width: 768px) {
    /* Container Optimization */
    .container,
    .container-narrow {
        padding: 0 20px !important;
    }
    
    /* Typography */
    body {
        font-size: 15px !important;
    }
    
    .section-title {
        font-size: 2.25rem !important;
        margin-bottom: 1.75rem !important;
    }
    
    .section-description {
        font-size: 1rem !important;
    }
    
    /* Hero Section */
    .hero-section {
        min-height: 600px !important;
    }
    
    .hero-carousel-slide {
        flex-direction: column !important;
    }
    
    .hero-slide-content {
        width: 100% !important;
        padding: 2.5rem 2rem !important;
    }
    
    .hero-slide-image {
        width: 100% !important;
        height: 300px !important;
        min-height: 300px !important;
    }
    
    .hero-slide-title {
        font-size: 2.5rem !important;
    }
    
    .hero-slide-subtitle {
        font-size: 1.1rem !important;
    }
    
    .page-hero-title {
        font-size: 2.5rem !important;
    }
    
    .page-hero-subtitle {
        font-size: 1.15rem !important;
    }
    
    /* Sections */
    section {
        padding: 50px 0 !important;
    }
    
    .about-section,
    .services-section,
    .gallery-section,
    .showreel-section {
        padding: 60px 0 !important;
    }
    
    /* Images & Videos */
    .service-image {
        height: 220px !important;
    }
    
    .service-detail-image {
        min-height: 300px !important;
        max-height: 400px !important;
    }
    
    /* Grids - 2 Columns */
    .services-grid,
    .gallery-grid,
    .pricing-grid,
    .service-types-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 1.5rem !important;
    }
    
    .values-grid,
    .stats-grid {
        grid-template-columns: repeat(2, 1fr) !important;
    }
    
    .process-steps {
        grid-template-columns: repeat(2, 1fr) !important;
    }
    
    /* Service Detail Content */
    .service-detail-content {
        grid-template-columns: 1fr !important;
    }
    
    /* Buttons */
    .btn {
        padding: 0.875rem 1.75rem !important;
    }
    
    .cta-buttons {
        flex-wrap: wrap !important;
    }
    
    .cta-buttons .btn {
        flex: 1 1 auto !important;
        min-width: 200px !important;
    }
}

/* ============================================
   SMALL TABLET (769px - 1024px)
   ============================================ */
@media (min-width: 769px) and (max-width: 1024px) {
    .container {
        padding: 0 30px !important;
    }
    
    .services-grid,
    .gallery-grid {
        grid-template-columns: repeat(2, 1fr) !important;
    }
    
    .pricing-grid {
        grid-template-columns: repeat(2, 1fr) !important;
    }
    
    .service-types-grid {
        grid-template-columns: repeat(2, 1fr) !important;
    }
    
    .hero-slide-content {
        padding: 3rem 2.5rem !important;
    }
    
    .hero-slide-image {
        height: 350px !important;
    }
}

/* ============================================
   MOBILE-SPECIFIC OPTIMIZATIONS
   ============================================ */

/* Touch-friendly targets */
@media (max-width: 768px) {
    a,
    button,
    .btn,
    .filter-btn,
    .nav-menu a {
        min-height: 44px !important;
        min-width: 44px !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
    }
    
    /* Prevent text size adjustment on iOS */
    input,
    select,
    textarea {
        font-size: 16px !important;
    }
    
    /* Optimize images for mobile */
    img {
        image-rendering: -webkit-optimize-contrast !important;
        image-rendering: crisp-edges !important;
    }
    
    /* Reduce animation complexity on mobile */
    * {
        animation-duration: 0.3s !important;
        transition-duration: 0.3s !important;
    }
    
    /* Optimize video playback on mobile */
    video {
        playsinline: true !important;
        -webkit-playsinline: true !important;
    }
    
    /* Improve scrolling on mobile */
    body {
        -webkit-overflow-scrolling: touch !important;
    }
    
    /* Optimize section spacing */
    section + section {
        margin-top: 0 !important;
    }
    
    /* Hero carousel navigation - mobile - REMOVED */
    .hero-carousel-controls,
    .hero-carousel-nav,
    .hero-carousel-prev,
    .hero-carousel-next,
    .hero-carousel-dots,
    .hero-carousel-dot {
        display: none !important;
    }
    
    .hero-slide-image {
        height: auto !important;
        min-height: 300px !important;
        max-height: 450px !important;
    }
    
    .hero-slide-image img,
    .hero-slide-img {
        width: 100% !important;
        height: 100% !important;
        min-height: 300px !important;
        object-fit: cover !important;
        object-position: center !important;
    }
    
    /* Legacy styles - keeping for compatibility */
    .hero-carousel-dot {
        width: 8px !important;
        height: 8px !important;
        margin: 0 4px !important;
    }
    
    /* Gallery overlay - mobile */
    .gallery-overlay {
        padding: 1rem !important;
    }
    
    .gallery-item-title {
        font-size: 1rem !important;
    }
    
    .gallery-item-category {
        font-size: 0.85rem !important;
    }
    
    /* Service features list - mobile */
    .service-features {
        margin: 1rem 0 !important;
    }
    
    .service-features li {
        font-size: 0.9rem !important;
        padding: 0.4rem 0 !important;
        padding-left: 1.25rem !important;
    }
    
    /* Pricing cards - mobile */
    .pricing-header {
        padding-bottom: 1.5rem !important;
        margin-bottom: 1.5rem !important;
    }
    
    .pricing-amount {
        font-size: 2.5rem !important;
    }
    
    .pricing-features {
        margin: 1.5rem 0 !important;
    }
    
    .pricing-features li {
        font-size: 0.9rem !important;
        padding: 0.5rem 0 !important;
    }
    
    /* Testimonials - mobile */
    .testimonial-card {
        padding: 1.5rem !important;
    }
    
    .testimonial-text {
        font-size: 0.95rem !important;
        line-height: 1.6 !important;
    }
    
    /* Stats - mobile */
    .stat-number {
        font-size: 3rem !important;
    }
    
    .stat-label {
        font-size: 1rem !important;
    }
    
    /* Team - mobile */
    .team-member-image {
        width: 150px !important;
        height: 150px !important;
    }
    
    /* Values - mobile */
    .value-icon {
        font-size: 2.5rem !important;
    }
    
    .value-card h3 {
        font-size: 1.25rem !important;
    }
    
    /* Showreel section - mobile */
    .showreel-section {
        padding: 50px 0 !important;
    }
    
    .showreel-title {
        font-size: 2rem !important;
    }
    
    /* Video gallery - mobile */
    .video-gallery-overlay {
        padding: 1.5rem !important;
    }
    
    .video-gallery-overlay h3 {
        font-size: 1.25rem !important;
    }
}

/* ============================================
   LANDSCAPE MOBILE OPTIMIZATION
   ============================================ */
@media (max-width: 768px) and (orientation: landscape) {
    .hero-section {
        min-height: 400px !important;
        height: auto !important;
    }
    
    .hero-carousel-slide {
        min-height: 400px !important;
    }
    
    .hero-slide-image {
        height: 200px !important;
    }
    
    .hero-slide-content {
        padding: 1.5rem !important;
    }
    
    .hero-slide-title {
        font-size: 1.75rem !important;
    }
    
    .page-hero {
        padding: 100px 0 40px !important;
    }
    
    section {
        padding: 30px 0 !important;
    }
}

/* ============================================
   PERFORMANCE OPTIMIZATIONS FOR MOBILE
   ============================================ */
@media (max-width: 768px) {
    /* Reduce shadows for better performance */
    .service-card,
    .pricing-card,
    .testimonial-card {
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1) !important;
    }
    
    .service-card:hover,
    .pricing-card:hover {
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15) !important;
        transform: translateY(-4px) !important;
    }
    
    /* Disable hover effects on touch devices */
    @media (hover: none) {
        .service-card:hover,
        .pricing-card:hover,
        .testimonial-card:hover {
            transform: none !important;
        }
    }
    
    /* Optimize background images */
    .hero-section,
    .page-hero {
        background-attachment: scroll !important;
    }
    
    /* Reduce blur effects on mobile */
    .nav-menu {
        backdrop-filter: blur(5px) !important;
    }
}

/* ============================================
   ACCESSIBILITY - MOBILE
   ============================================ */
@media (max-width: 768px) {
    /* Ensure sufficient contrast */
    .section-title,
    h1, h2, h3 {
        color: var(--navy) !important;
    }
    
    /* Ensure readable text sizes */
    p,
    .section-description {
        font-size: 0.95rem !important;
        line-height: 1.6 !important;
    }
    
    /* Ensure clickable areas are large enough */
    .gallery-item,
    .service-card {
        min-height: 200px !important;
    }
    
    /* Additional Hero Optimizations */
    .hero-carousel {
        height: 100% !important;
        min-height: 500px !important;
    }
    
    .hero-carousel-track {
        height: 100% !important;
    }
    
    .hero-carousel-slide {
        flex-direction: column !important;
        height: 100% !important;
        min-height: 500px !important;
    }
    
    /* Hero carousel controls - REMOVED */
    .hero-carousel-controls,
    .hero-carousel-prev,
    .hero-carousel-next,
    .hero-carousel-dots,
    .hero-carousel-dot {
        display: none !important;
    }
    
    .hero-slide-image {
        height: auto !important;
        min-height: 250px !important;
        max-height: 350px !important;
    }
    
    .hero-slide-image img,
    .hero-slide-img {
        width: 100% !important;
        height: 100% !important;
        min-height: 250px !important;
        object-fit: cover !important;
        object-position: center !important;
    }
    
    /* Legacy styles - keeping for compatibility */
    .hero-carousel-prev,
    .hero-carousel-next {
        width: 36px !important;
        height: 36px !important;
        font-size: 1.25rem !important;
    }
    
    .hero-dot {
        width: 6px !important;
        height: 6px !important;
    }
    
    .hero-dot.active {
        width: 20px !important;
    }
    
    /* About Section - Mobile */
    .about-content {
        grid-template-columns: 1fr !important;
        gap: 2rem !important;
    }
    
    .about-image {
        width: 100% !important;
        order: 1 !important;
    }
    
    .about-image img {
        width: 100% !important;
        height: auto !important;
        max-height: 300px !important;
        object-fit: cover !important;
    }
    
    .about-text {
        order: 2 !important;
        padding: 0 !important;
    }
    
    /* Stats Widget - Mobile */
    .stats-widget {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 1.5rem !important;
    }
    
    .stat-card {
        padding: 1.5rem !important;
    }
    
    .stat-number {
        font-size: 2.5rem !important;
    }
    
    .stat-label {
        font-size: 0.9rem !important;
    }
    
    /* Showreel Section - Mobile */
    .showreel-section {
        padding: 50px 0 !important;
    }
    
    .showreel-video-container {
        height: 300px !important;
        min-height: 300px !important;
    }
    
    .showreel-video-container video {
        width: 100% !important;
        height: 100% !important;
        object-fit: cover !important;
    }
    
    /* Testimonials - Mobile */
    .testimonials-carousel {
        min-height: 400px !important;
    }
    
    .testimonial-card {
        padding: 2rem 1.5rem !important;
    }
    
    .testimonial-text {
        font-size: 1rem !important;
        line-height: 1.6 !important;
    }
    
    .testimonial-author {
        font-size: 1rem !important;
    }
    
    /* Gallery Modern - Mobile */
    .gallery-grid-modern {
        grid-template-columns: 1fr !important;
        gap: 1.5rem !important;
    }
    
    .gallery-item-modern {
        aspect-ratio: 4/3 !important;
        height: auto !important;
    }
    
    .gallery-item-modern img,
    .gallery-item-modern video {
        width: 100% !important;
        height: 100% !important;
        object-fit: cover !important;
    }
    
    /* Contact Info Cards - Mobile */
    .contact-info-cards {
        grid-template-columns: 1fr !important;
        gap: 1.5rem !important;
    }
    
    .contact-info-card {
        padding: 1.5rem !important;
    }
    
    .contact-icon-large {
        font-size: 2.5rem !important;
    }
    
    /* Social Links - Mobile */
    .social-icons-large {
        flex-direction: column !important;
        gap: 1rem !important;
    }
    
    .social-icon-large {
        width: 100% !important;
        justify-content: center !important;
    }
    
    /* Map Section - Mobile */
    .map-container {
        height: 300px !important;
    }
    
    /* Booking Form - Mobile */
    .booking-form-container {
        padding: 2rem 1.5rem !important;
    }
    
    .booking-info-sidebar {
        margin-top: 2rem !important;
    }
    
    /* Service Portfolio - Mobile */
    .service-portfolio-grid {
        grid-template-columns: 1fr !important;
        gap: 1rem !important;
    }
    
    .service-portfolio-grid .gallery-item {
        aspect-ratio: 4/3 !important;
    }
    
    /* Studio Features - Mobile */
    .studio-features-grid {
        grid-template-columns: 1fr !important;
        gap: 1.5rem !important;
    }
    
    .studio-feature-item {
        padding: 1.5rem !important;
    }
    
    /* Planning Services - Mobile */
    .planning-services-grid {
        grid-template-columns: 1fr !important;
        gap: 1.5rem !important;
    }
    
    .planning-service-item {
        padding: 1.5rem !important;
    }
    
    /* Lightbox - Mobile */
    .lightbox-content {
        width: 95% !important;
        max-width: 95% !important;
        padding: 1rem !important;
    }
    
    .lightbox-image {
        max-height: 70vh !important;
    }
    
    .lightbox-close {
        top: 0.5rem !important;
        right: 0.5rem !important;
        font-size: 2rem !important;
    }
    
    .lightbox-prev,
    .lightbox-next {
        font-size: 2rem !important;
        padding: 0.5rem !important;
    }
    
    /* Navbar - Mobile */
    .navbar {
        padding: 0.75rem 0 !important;
    }
    
    .logo-link {
        gap: 0.75rem !important;
    }
    
    .logo {
        height: 50px !important;
        max-height: 50px !important;
    }
    
    .site-title {
        font-size: 0.9rem !important;
        letter-spacing: 1px !important;
    }
    
    .mobile-menu-toggle {
        display: flex !important;
    }
    
    .btn-nav-cta {
        display: none !important;
    }
    
    /* Footer - Mobile */
    .footer {
        padding: 3rem 0 2rem !important;
    }
    
    .footer-content {
        gap: 2rem !important;
    }
    
    .footer-brand {
        text-align: center !important;
    }
    
    .footer-logo {
        max-width: 150px !important;
        margin: 0 auto 1rem !important;
    }
    
    .footer-description {
        text-align: center !important;
        font-size: 0.9rem !important;
    }
    
    .social-icons {
        justify-content: center !important;
    }
    
    .footer-nav {
        text-align: center !important;
    }
    
    .footer-title {
        text-align: center !important;
        margin-bottom: 1rem !important;
    }
    
    .footer-contact-info {
        text-align: center !important;
    }
}

