/* ===================================
   LUNEXSOVA - Responsive Styles
   Mobile-First Approach
   =================================== */

/* ===== LARGE SCREENS (1441px+) ===== */
@media (min-width: 1441px) {
    .container {
        max-width: 1400px;
    }

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

    .section {
        padding: 8rem 0;
    }
}

/* ===== DESKTOP (1201px - 1440px) ===== */
@media (max-width: 1440px) and (min-width: 1201px) {
    .container {
        max-width: 1100px;
    }

    .nav-link {
        padding: 0.5rem 0.8rem;
        font-size: 0.95rem;
    }
}

/* ===== TABLET & SMALL LAPTOP (Max 1200px) ===== */
@media (max-width: 1200px) {
    :root {
        --font-size-h1: 3.5rem;
        --font-size-h2: 2.5rem;
        --font-size-h3: 1.8rem;
        --spacing-xl: 4rem;
    }

    .nav-menu {
        position: fixed;
        z-index: 999;
        top: 0;
        right: -100%;
        width: 100%;
        max-width: 350px;
        height: 100vh;
        background-color: rgba(11, 11, 11, 0.98);
        backdrop-filter: blur(10px);
        flex-direction: column;
        align-items: stretch;
        padding: 6rem 2rem 2rem;
        gap: 0;
        transition: right 0.4s cubic-bezier(0.4, 0, 0.2, 1);
        box-shadow: -5px 0 30px rgba(0, 0, 0, 0.5);
        border-left: 1px solid rgba(212, 175, 55, 0.2);
        overflow-y: auto;
    }

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

    .nav-item {
        width: 100%;
        border-bottom: 1px solid rgba(212, 175, 55, 0.1);
        list-style: none;
    }

    .nav-link {
        display: block;
        padding: 1.2rem 0;
        width: 100%;
        text-align: left;
        color: var(--color-silver);
    }

    .nav-link::after {
        display: none;
    }

    .menu-toggle {
        display: flex;
        z-index: 1001;
    }

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

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

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

    .language-switcher {
        width: 100%;
        margin-top: 0;
        padding: 1.2rem 0;
    }

    .lang-button {
        width: 100%;
        text-align: left;
        justify-content: flex-start;
    }

    .lang-dropdown {
        position: static;
        opacity: 1;
        visibility: visible;
        transform: none;
        margin-top: var(--spacing-sm);
        width: 100%;
        border: none;
        background: transparent;
        padding: 0;
    }

    .lang-option {
        padding: 0.8rem 1rem;
        margin: 0.2rem 0;
        border-radius: var(--radius-small);
    }

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

    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }

    .btn {
        min-width: 250px;
    }

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

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

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

/* ===== MOBILE (320px - 767px) ===== */
@media (max-width: 767px) {
    :root {
        --font-size-base: 15px;
        --font-size-h1: 2.5rem;
        --font-size-h2: 2rem;
        --font-size-h3: 1.5rem;
        --font-size-h4: 1.2rem;
        --spacing-md: 1.5rem;
        --spacing-lg: 3rem;
        --spacing-xl: 3rem;
    }

    .container {
        padding: 0 1rem;
    }

    .section {
        padding: 3rem 0;
    }

    .nav-container {
        padding: 1rem;
    }

    .logo {
        font-size: 1.4rem;
    }

    .nav-menu {
        max-width: 300px;
        /* Slightly narrower on very small screens if desired, or keep 350px */
    }

    .hero {
        min-height: 90vh;
        padding: 6rem 0 3rem;
    }

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

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

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

    .hero-buttons {
        gap: 1rem;
    }

    .btn {
        padding: 0.9rem 2rem;
        font-size: 0.95rem;
        min-width: 200px;
    }

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

    .section-subtitle {
        font-size: 1rem;
    }

    .about-intro {
        font-size: 1rem;
    }

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

    .expertise-card {
        padding: 1.5rem;
    }

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

    .service-card {
        padding: 2rem 1.5rem;
    }

    .service-card h3 {
        font-size: 1.3rem;
    }

    .portfolio-filter {
        gap: 0.5rem;
    }

    .filter-btn {
        padding: 0.6rem 1rem;
        font-size: 0.85rem;
    }

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

    .portfolio-item {
        aspect-ratio: 16/11;
    }

    .portfolio-overlay {
        opacity: 1;
        background: linear-gradient(to top, rgba(11, 11, 11, 0.9) 0%, transparent 60%);
    }

    .portfolio-overlay h3 {
        font-size: 1.2rem;
    }

    .portfolio-overlay p {
        font-size: 0.85rem;
    }

    .clients-slider {
        gap: 2rem;
    }

    .client-logo {
        height: 40px;
    }

    .store-description,
    .contact-description {
        font-size: 1rem;
    }

    .contact-buttons {
        flex-direction: column;
        gap: 1rem;
    }

    .contact-btn {
        width: 100%;
        max-width: 300px;
        padding: 1rem 2rem;
        font-size: 1rem;
    }

    .contact-divider {
        display: none;
    }

    .footer {
        padding: 3rem 0;
    }

    .footer-brand {
        font-size: 1.5rem;
    }

    .social-links {
        gap: 1rem;
    }

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

    .book-title {
        font-size: 1rem;
    }

    .book-description {
        font-size: 0.8rem;
    }
}

/* ===== SMALL MOBILE (320px - 480px) ===== */
@media (max-width: 480px) {
    .hero-title {
        font-size: 2rem;
    }

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

    .btn {
        min-width: 100%;
    }

    .portfolio-item {
        aspect-ratio: 4/3;
    }

    .service-card {
        padding: 1.5rem 1rem;
    }

    .books-grid {
        grid-template-columns: 1fr;
    }
}

/* ===== LANDSCAPE ORIENTATION (Mobile) ===== */
@media (max-height: 600px) and (orientation: landscape) {
    .hero {
        min-height: auto;
        padding: 8rem 0 4rem;
    }

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

    .section {
        padding: 2rem 0;
    }
}

/* ===== ACCESSIBILITY & PERFORMANCE ===== */
@media (prefers-reduced-motion: reduce) {

    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }

    .clients-slider {
        animation: none;
    }
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    :root {
        --color-gold: #ffcc00;
        --color-silver: #ffffff;
    }

    .btn,
    .service-card,
    .portfolio-item {
        border-width: 3px;
    }
}

/* Dark mode preference (already dark, but ensure consistency) */
@media (prefers-color-scheme: dark) {
    body {
        background-color: var(--color-black);
    }
}