/* ================================================
   AMO MUSIC - COMPREHENSIVE MOBILE OPTIMIZATIONS
   ================================================ */

/* Mobile Navigation - Hamburger Menu */
.nav-toggle {
    display: none;
    background: none;
    border: none;
    color: #9db89d;
    font-size: 24px;
    cursor: pointer;
    padding: 8px;
    z-index: 1001;
    position: relative;
}

.nav-toggle span {
    display: block;
    width: 25px;
    height: 2px;
    background: #9db89d;
    margin: 5px 0;
    transition: all 0.3s ease;
}

.nav-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(6px, 6px);
}

.nav-toggle.active span:nth-child(2) {
    opacity: 0;
}

.nav-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(6px, -6px);
}

/* Tablet Breakpoint (768px - 1024px) */
@media (max-width: 1024px) {
    .nav-container {
        padding: 0 40px;
    }

    .hero-content {
        padding: 60px 40px;
    }

    .bookings-right,
    .live-right,
    .studio-right,
    .mixing-right,
    .coming-soon-right {
        padding: 60px 80px;
    }

    .out-now-container {
        padding: 0 40px;
        gap: 60px;
    }
}

/* Mobile Breakpoint (max-width: 768px) */
@media (max-width: 768px) {
    /* Enhanced Navigation for Mobile */
    .navbar {
        padding: 16px 0;
    }

    .nav-container {
        padding: 0 20px;
        flex-direction: row;
        gap: 0;
    }

    .nav-toggle {
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
    }

    .nav-menu {
        position: fixed;
        top: 0;
        right: -100%;
        width: 80%;
        max-width: 320px;
        height: 100vh;
        background: rgba(26, 29, 26, 0.98);
        backdrop-filter: blur(20px);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 32px;
        transition: right 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
        padding: 80px 20px;
        border-left: 2px solid rgba(157, 184, 157, 0.3);
        z-index: 999;
        box-shadow: -5px 0 20px rgba(0, 0, 0, 0.5);
    }

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

    .nav-menu li {
        width: 100%;
        text-align: center;
        opacity: 0;
        transform: translateX(20px);
        transition: all 0.3s ease;
    }

    .nav-menu.active li {
        opacity: 1;
        transform: translateX(0);
    }

    .nav-menu.active li:nth-child(1) { transition-delay: 0.1s; }
    .nav-menu.active li:nth-child(2) { transition-delay: 0.2s; }
    .nav-menu.active li:nth-child(3) { transition-delay: 0.3s; }
    .nav-menu.active li:nth-child(4) { transition-delay: 0.4s; }
    .nav-menu.active li:nth-child(5) { transition-delay: 0.5s; }

    .nav-menu a {
        font-size: 14px;
        letter-spacing: 2px;
        padding: 12px 20px;
        display: block;
        width: 100%;
        border-radius: 4px;
        transition: all 0.3s ease;
    }

    .nav-menu a:hover {
        background: rgba(157, 184, 157, 0.1);
        transform: scale(1.05);
    }

    /* Mobile Overlay */
    .nav-overlay {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: rgba(0, 0, 0, 0.7);
        opacity: 0;
        visibility: hidden;
        transition: all 0.3s ease;
        z-index: 998;
    }

    .nav-overlay.active {
        opacity: 1;
        visibility: visible;
    }

    /* Logo adjustments */
    .logo {
        font-size: 14px;
        letter-spacing: 3px;
    }

    /* Hero Section Mobile */
    .hero {
        flex-direction: column;
        min-height: auto;
        padding-top: 0;
    }

    .hero-image {
        flex: 0 0 50vh;
        min-height: 350px;
        max-height: 500px;
    }

    .hero-content {
        flex: 1;
        padding: 48px 24px;
        align-items: center;
        text-align: center;
    }

    .hero-title {
        font-size: clamp(36px, 10vw, 56px);
        letter-spacing: 0.1em;
        margin-bottom: 16px;
    }

    .hero-subtitle {
        font-size: clamp(24px, 6.6vw, 37px); /* 66% of hero-title (36px*0.66=24px, 56px*0.66=37px) */
        letter-spacing: 0.2em;
        margin-bottom: 40px;
        line-height: 1.6;
    }

    .hero-logo {
        font-size: clamp(80px, 20vw, 140px);
        margin: 24px 0;
    }

    .hero-welcome {
        font-size: clamp(14px, 4vw, 20px);
        letter-spacing: 0.25em;
        margin-top: 24px;
    }

    /* Bookings Section Mobile */
    .bookings-section {
        padding: 0;
    }

    .bookings-container {
        flex-direction: column;
        min-height: auto;
    }

    .bookings-left {
        flex: 0 0 50vh;
        min-height: 300px;
        max-height: 400px;
    }

    .bookings-right {
        padding: 48px 24px;
        text-align: center;
    }

    .bookings-badge {
        justify-content: center;
        margin-bottom: 32px;
    }

    .bookings-badge h2 {
        font-size: clamp(32px, 8vw, 42px);
    }

    .bookings-badge .arrow {
        font-size: 20px;
    }

    .bookings-text {
        font-size: 15px;
        margin-bottom: 32px;
        line-height: 1.7;
    }

    .bookings-link {
        font-size: 12px; /* Increased from 10px */
        letter-spacing: 0.15em;
    }

    /* Out Now Section Mobile - Enhanced Universe */
    .out-now-section {
        padding: 80px 0;
    }

    /* Optimize starfield for mobile performance */
    .out-now-section::before {
        /* Reduce number of stars on mobile for performance */
        background-image: 
            /* PLANETS */
            radial-gradient(circle 10px at 8% 40%, rgba(232, 220, 200, 0.5), transparent),
            radial-gradient(circle 8px at 92% 65%, rgba(232, 220, 200, 0.4), transparent),
            /* BRIGHT STARS */
            radial-gradient(circle 6px at 40% 12%, #e8dcc8, transparent),
            radial-gradient(circle 7px at 88% 15%, #e8dcc8, transparent),
            /* Constellation clusters */
            radial-gradient(circle 4px at 15% 20%, #e8dcc8, transparent),
            radial-gradient(circle 3px at 75% 30%, #e8dcc8, transparent),
            radial-gradient(circle 3px at 45% 65%, #e8dcc8, transparent),
            /* Medium stars */
            radial-gradient(circle 3px at 30% 15%, #e8dcc8, transparent),
            radial-gradient(circle 3px at 60% 50%, #e8dcc8, transparent),
            radial-gradient(circle 3px at 85% 60%, #e8dcc8, transparent),
            /* Tiny sparkles */
            radial-gradient(circle 2px at 25% 35%, #e8dcc8, transparent),
            radial-gradient(circle 2px at 70% 75%, #e8dcc8, transparent),
            radial-gradient(circle 1px at 50% 45%, rgba(232, 220, 200, 0.8), transparent),
            radial-gradient(circle 1px at 80% 25%, rgba(232, 220, 200, 0.7), transparent);
        background-size: 100% 100%;
    }

    .out-now-container {
        flex-direction: column;
        padding: 0 24px;
        text-align: center;
        gap: 48px;
    }

    .out-now-left img {
        max-width: 100%;
        width: 90%;
    }

    .release-number {
        font-size: clamp(48px, 12vw, 80px);
        margin-bottom: 32px;
    }

    .out-now-right {
        gap: 24px;
    }

    .out-now-badge h2 {
        font-size: clamp(28px, 8vw, 42px);
    }

    .badge-circle {
        font-size: 16px;
    }

    .order-button {
        padding: 14px 36px;
        font-size: 12px; /* Increased from 10px */
        width: 100%;
        max-width: 280px;
        margin: 0 auto;
    }

    /* Live, Studio, Mixing, Coming Soon Sections Mobile */
    .live-container,
    .studio-container,
    .mixing-container,
    .coming-soon-container {
        flex-direction: column;
        min-height: auto;
    }

    .live-left,
    .studio-left,
    .mixing-left,
    .coming-soon-left {
        flex: 0 0 50vh;
        min-height: 300px;
        max-height: 400px;
    }

    .live-right,
    .studio-right,
    .mixing-right,
    .coming-soon-right {
        padding: 48px 24px;
        text-align: center;
    }

    .live-title,
    .studio-title,
    .mixing-title {
        font-size: clamp(48px, 12vw, 72px);
        margin-bottom: 32px;
        letter-spacing: 0.1em;
    }

    .live-text,
    .studio-text,
    .mixing-text {
        font-size: 16px;
        margin-bottom: 40px;
        line-height: 1.7;
    }

    .live-link,
    .studio-link,
    .mixing-link {
        font-size: 12px; /* Increased from 10px */
        letter-spacing: 0.15em;
    }

    .coming-soon-title {
        font-size: clamp(28px, 7vw, 42px);
        margin-bottom: 24px;
        line-height: 1.4;
    }

    .coming-soon-text {
        font-size: clamp(16px, 4vw, 20px);
    }

    /* Newsletter Section Mobile */
    .newsletter-section {
        padding: 60px 0;
    }

    .newsletter-container {
        padding: 0 24px;
    }

    .newsletter-title {
        font-size: clamp(28px, 7vw, 38px);
        margin-bottom: 12px;
    }

    .newsletter-subtitle {
        font-size: 14px;
        margin-bottom: 32px;
    }

    .newsletter-form {
        flex-direction: column;
        gap: 12px;
    }

    .newsletter-input {
        padding: 16px 20px;
        font-size: 14px;
    }

    .newsletter-button {
        padding: 16px 32px;
        width: 100%;
        font-size: 12px; /* Increased from 11px */
    }

    /* Footer Mobile */
    .footer {
        padding: 60px 0 32px;
    }

    .footer-container {
        padding: 0 24px;
    }

    .footer-top {
        flex-direction: column;
        gap: 40px;
        margin-bottom: 40px;
        padding-bottom: 40px;
    }

    .footer-brand {
        flex: 1;
        text-align: center;
    }

    .footer-logo {
        font-size: 16px;
        letter-spacing: 3px;
    }

    .footer-tagline {
        font-size: 12px;
    }

    .footer-links {
        flex-direction: column;
        gap: 32px;
        text-align: center;
    }

    .footer-column {
        flex: 1;
    }

    .footer-column h4 {
        font-size: 12px; /* Increased from 11px */
        margin-bottom: 16px;
    }

    .footer-column a {
        font-size: 13px;
    }

    .social-links {
        justify-content: center;
        gap: 12px;
    }

    .social-link {
        width: 44px;
        height: 44px;
    }

    .social-link i {
        font-size: 18px;
    }

    .footer-bottom {
        flex-direction: column;
        text-align: center;
        gap: 16px;
    }

    .footer-bottom p {
        font-size: 12px; /* Increased from 11px */
    }

    .footer-legal {
        flex-direction: column;
        gap: 8px;
    }

    .footer-legal span {
        display: none;
    }

    .footer-legal a {
        font-size: 12px; /* Increased from 11px */
    }
}

/* Small Mobile Breakpoint (max-width: 480px) */
@media (max-width: 480px) {
    .hero-title {
        font-size: 32px;
        letter-spacing: 0.08em;
    }

    .hero-subtitle {
        font-size: 21px; /* 66% of 32px */
        letter-spacing: 0.15em;
    }

    .hero-logo {
        font-size: 70px;
    }

    .hero-welcome {
        font-size: 12px;
        letter-spacing: 0.2em;
    }

    .bookings-badge h2 {
        font-size: 28px;
    }

    .bookings-text {
        font-size: 14px;
    }

    .release-number {
        font-size: 42px;
    }

    .out-now-badge h2 {
        font-size: 24px;
    }

    .live-title,
    .studio-title,
    .mixing-title {
        font-size: 42px;
    }

    .live-text,
    .studio-text,
    .mixing-text {
        font-size: 14px;
    }

    .coming-soon-title {
        font-size: 24px;
    }

    .coming-soon-text {
        font-size: 14px;
    }

    .order-button {
        padding: 12px 24px;
        font-size: 11px; /* Increased from 9px */
    }
}

/* Touch-Friendly Enhancements */
@media (max-width: 768px) {
    /* Ensure all clickable elements are at least 44x44px (Apple's recommendation) */
    .nav-menu a,
    .order-button,
    .bookings-link,
    .live-link,
    .studio-link,
    .mixing-link,
    .newsletter-button,
    .social-link {
        min-height: 44px;
        min-width: 44px;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    /* Improve link spacing for easier tapping */
    .nav-menu li {
        padding: 4px 0;
    }

    /* Prevent text selection on double-tap */
    .nav-toggle,
    .logo,
    .hero-title,
    .hero-logo,
    button {
        -webkit-touch-callout: none;
        -webkit-user-select: none;
        -moz-user-select: none;
        -ms-user-select: none;
        user-select: none;
    }

    /* Improve scroll performance */
    body {
        -webkit-overflow-scrolling: touch;
    }

    /* Prevent horizontal scroll */
    html, body {
        max-width: 100%;
        overflow-x: hidden;
    }

    /* Optimize images for mobile */
    img {
        max-width: 100%;
        height: auto;
    }

    /* Improve button touch feedback */
    .order-button:active,
    .bookings-link:active,
    .live-link:active,
    .studio-link:active,
    .mixing-link:active,
    .newsletter-button:active {
        transform: scale(0.95);
    }

    /* Add touch feedback to nav items */
    .nav-menu a:active {
        background: rgba(157, 184, 157, 0.2);
    }
}

/* Landscape Mobile Optimization (for phones in landscape) */
@media (max-width: 768px) and (orientation: landscape) {
    .hero {
        min-height: auto;
    }

    .hero-image {
        flex: 0 0 100%;
        min-height: 80vh;
    }

    .hero-content {
        padding: 40px 24px;
    }

    .hero-logo {
        font-size: 60px;
        margin: 16px 0;
    }

    .nav-menu {
        padding: 40px 20px;
        gap: 24px;
    }
}

/* Very Small Screens (max-width: 320px) */
@media (max-width: 360px) {
    .logo {
        font-size: 12px;
        letter-spacing: 2px;
    }

    .nav-menu a {
        font-size: 12px;
        letter-spacing: 1.5px;
    }

    .hero-title {
        font-size: 28px;
    }

    .hero-subtitle {
        font-size: 18px; /* 66% of 28px */
    }

    .hero-logo {
        font-size: 60px;
    }

    .bookings-right,
    .live-right,
    .studio-right,
    .mixing-right,
    .coming-soon-right {
        padding: 40px 20px;
    }

    .out-now-container {
        padding: 0 20px;
    }
}
