/* ===== Responsive Design ===== */

/* Tablet (768px - 1024px) */
@media (max-width: 1024px) {
    :root {
        --font-size-3xl: 2.5rem;
        --font-size-2xl: 1.75rem;
        --spacing-xl: 4rem;
    }

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

    .gameplay-item {
        grid-template-columns: 1fr;
        gap: var(--spacing-md);
    }

    .gameplay-item.reverse {
        direction: ltr;
    }

    .carousel-btn {
        width: 40px;
        height: 40px;
        font-size: 1.5rem;
    }

    .carousel-btn-prev {
        left: 10px;
    }

    .carousel-btn-next {
        right: 10px;
    }
}

/* Mobile (max-width: 768px) */
@media (max-width: 768px) {
    :root {
        --font-size-3xl: 2rem;
        --font-size-2xl: 1.5rem;
        --font-size-xl: 1.25rem;
        --spacing-lg: 3rem;
        --spacing-xl: 3rem;
    }

    /* Navigation */
    .navbar .container {
        padding: var(--spacing-sm);
    }

    .nav-menu {
        position: fixed;
        top: 70px;
        left: 0;
        right: 0;
        background: white;
        flex-direction: column;
        padding: var(--spacing-md);
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
        transform: translateY(-100%);
        opacity: 0;
        visibility: hidden;
        transition: var(--transition);
    }

    .nav-menu.active {
        transform: translateY(0);
        opacity: 1;
        visibility: visible;
    }

    .hamburger {
        display: flex;
    }

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

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

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

    /* Hero Section */
    .hero-section {
        background-attachment: scroll;
    }

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

    .hero-subtitle {
        font-size: var(--font-size-xl);
    }

    .hero-description {
        font-size: var(--font-size-base);
    }

    .hero-buttons {
        flex-direction: column;
        gap: var(--spacing-sm);
    }

    .btn {
        width: 100%;
        max-width: 300px;
    }

    /* Features */
    .features-grid {
        grid-template-columns: 1fr;
        gap: var(--spacing-md);
    }

    /* Gameplay */
    .gameplay-item {
        margin-bottom: var(--spacing-lg);
    }

    .gameplay-text h3 {
        font-size: var(--font-size-xl);
    }

    /* Carousel */
    .carousel-btn {
        width: 35px;
        height: 35px;
        font-size: 1.25rem;
    }

    .carousel-btn-prev {
        left: 5px;
    }

    .carousel-btn-next {
        right: 5px;
    }

    /* Download */
    .download-section {
        background-attachment: scroll;
    }

    .qrcode-container {
        gap: var(--spacing-lg);
    }

    .qrcode-box {
        width: 180px;
        height: 180px;
    }

    /* Footer */
    .footer-content {
        grid-template-columns: 1fr;
        gap: var(--spacing-md);
        text-align: center;
    }

    .footer-links {
        align-items: center;
    }
}

/* Small Mobile (max-width: 480px) */
@media (max-width: 480px) {
    :root {
        --font-size-3xl: 1.75rem;
        --font-size-2xl: 1.25rem;
        --spacing-md: 1.5rem;
    }

    .container {
        padding: 0 var(--spacing-sm);
    }

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

    .section-title {
        font-size: var(--font-size-2xl);
    }

    .feature-icon {
        width: 100px;
        height: 100px;
    }

    .qrcode-box {
        width: 150px;
        height: 150px;
    }

    .qrcode-container {
        gap: var(--spacing-md);
    }
}

/* Landscape Mobile */
@media (max-height: 600px) and (orientation: landscape) {
    .hero-section {
        height: auto;
        min-height: 100vh;
        padding: var(--spacing-xl) 0;
    }

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

    .scroll-indicator {
        display: none;
    }
}

/* High Resolution Displays */
@media (min-width: 1440px) {
    :root {
        --container-width: 1400px;
    }
}

/* Print Styles */
@media print {
    .navbar,
    .hamburger,
    .scroll-indicator,
    .carousel-btn,
    .carousel-indicators {
        display: none;
    }

    .hero-section,
    .download-section {
        background-attachment: scroll;
    }
}
