/* ========================================
   GAQ CARDS - Mobile Responsive Styles
   Mobile-first responsive design
   ======================================== */

/* ========================================
   Mobile Navigation
   ======================================== */

.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    color: var(--text-primary);
    font-size: 1.5rem;
    cursor: pointer;
    padding: 0.5rem;
    transition: color 0.3s ease;
}

.mobile-menu-toggle:hover {
    color: var(--primary-purple);
}

/* ========================================
   Tablet Breakpoint (max-width: 1024px)
   ======================================== */

@media (max-width: 1024px) {
    :root {
        --spacing-lg: 3rem;
        --spacing-xl: 4rem;
    }

    .nav-links {
        gap: 1.5rem;
    }

    .hero {
        padding: var(--spacing-lg) var(--spacing-md);
    }

    .hero-stats {
        gap: 1.5rem;
        max-width: 100%;
    }

    .stat-value {
        font-size: 1.75rem;
    }

    .tiers-grid {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    }

    .about-grid {
        grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    }

    /* FAQ Grid Tablet/Mobile */
    .faq-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .faq-image-wrapper {
        min-height: 300px;
        order: -1; /* Image on top */
    }
}

/* ========================================
   Mobile Breakpoint (max-width: 768px)
   ======================================== */

@media (max-width: 768px) {
    html {
        font-size: 14px;
    }

    /* Mobile Navigation */
    .mobile-menu-toggle {
        display: block;
    }

    .nav-links {
        position: fixed;
        top: 80px;
        left: -100%;
        width: 100%;
        height: calc(100vh - 80px);
        background: rgba(15, 10, 31, 0.98);
        backdrop-filter: blur(20px);
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 2rem;
        transition: left 0.3s ease;
        z-index: 999;
        padding: 2rem;
    }

    .nav-links.active {
        left: 0;
    }

    .nav-links a {
        font-size: 1.5rem;
    }

    .btn-wallet {
        width: 100%;
        justify-content: center;
    }

    /* Hero Section */
    .hero {
        min-height: auto;
        padding: 2rem 0 4rem 0;
        margin-top: 80px;
    }

    .hero-content {
        padding-top: 10px !important;
        padding-left: 1.5rem !important;
        padding-right: 1.5rem !important;
    }

    .hero-subtitle {
        font-size: 1rem;
        letter-spacing: 2px;
    }

    h1 {
        font-size: 2.5rem;
    }

    .hero-title {
        font-size: 2.5rem !important;
        line-height: 1.2;
    }

    .hero-description {
        font-size: 1.05rem;
        padding: 0;
        line-height: 1.7;
        max-width: 90% !important;
        margin-left: auto !important;
        margin-right: auto !important;
    }

    .hero-description-desktop {
        display: none !important;
    }

    .hero-cta {
        flex-direction: column;
        width: 100%;
        gap: 1rem;
        padding: 0;
        max-width: 100% !important;
        margin-left: auto;
        margin-right: auto;
        align-items: center;
    }

    .hero-cta .btn,
    .hero-cta .btn-hero {
        width: auto !important;
        min-width: 250px;
        max-width: 90%;
        padding: 0.85rem 1.5rem !important;
        font-size: 1rem !important;
        justify-content: center;
        text-align: center;
        box-sizing: border-box;
        display: inline-flex;
        align-items: center;
        gap: 0.5rem;
    }

    .hero-stats {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
        padding: 0;
        margin-top: 2rem;
        width: 100%;
        max-width: 100%;
    }

    .hero-stats .stat-item {
        padding: 0.75rem 0.25rem;
    }

    .stat-value {
        font-size: 1.5rem;
    }

    .stat-label {
        font-size: 0.8rem;
    }

    /* NFT Carousel Mobile - Adjust spacing */
    .nft-carousel-container {
        margin-top: 0 !important;
        margin-bottom: 1rem !important;
        padding: 0.5rem 0 !important;
    }

    /* Sections */
    .section {
        padding: 3rem 1.5rem;
    }

    h2 {
        font-size: 2rem;
    }

    /* About Grid */
    .about-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    /* Card Tiers */
    .tiers-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .tier-card {
        padding: 1.5rem;
    }

    /* Steps (How It Works) */
    .steps-container::before {
        left: 20px;
        top: 35px;
        height: calc(100% - 70px);
    }

    .step {
        gap: 1rem;
        padding-left: 0;
    }

    .step-number {
        width: 60px;
        height: 60px;
        min-width: 60px;
        font-size: 1.5rem;
    }

    .step-content h3 {
        font-size: 1.2rem;
    }

    .step-content p {
        font-size: 1rem;
    }

    /* FAQ */
    .faq-question {
        padding: 1.2rem 1.5rem;
        font-size: 1rem;
    }

    .faq-answer {
        padding: 0 1.5rem 1.2rem 3.5rem;
        font-size: 0.95rem;
    }

    /* Footer */
    .footer-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .footer {
        padding: 2rem 1.5rem 1rem;
    }

    /* Buttons */
    .btn {
        padding: 0.9rem 1.5rem;
        font-size: 0.95rem;
    }

    /* Ecosystem Buttons - Stack on Mobile */
    .ecosystem-buttons {
        flex-direction: column;
        width: 100%;
    }

    .ecosystem-buttons .btn {
        width: 100%;
    }

    /* CTA Section */
    .section[style*="background: var(--gradient-primary)"] {
        padding: 3rem 1.5rem !important;
    }

    .section[style*="background: var(--gradient-primary)"] h2 {
        font-size: 1.8rem !important;
    }

    .section[style*="background: var(--gradient-primary)"] p {
        font-size: 1.05rem !important;
    }

    .section[style*="background: var(--gradient-primary)"] .btn-gold {
        font-size: 1.1rem !important;
        padding: 1rem 2rem !important;
        width: 100%;
    }

    /* NFT Carousel Mobile */
    .nft-carousel-section {
        padding: 3rem 0;
    }

    .nft-carousel-item {
        width: 220px;
        height: 280px;
    }

    .nft-carousel-track {
        gap: 1rem;
    }
}

/* ========================================
   Small Mobile (max-width: 480px)
   ======================================== */

@media (max-width: 480px) {
    html {
        font-size: 13px;
    }

    .navbar {
        padding: 1rem 1.5rem;
    }

    .nav-logo {
        font-size: 1.2rem;
    }

    .nav-logo .logo-img {
        width: 35px;
        height: 35px;
    }

    h1 {
        font-size: 2rem;
        letter-spacing: 1px;
    }

    h2 {
        font-size: 1.7rem;
    }

    h3 {
        font-size: 1.3rem;
    }

    .hero {
        padding: 2rem 0 3rem 0;
    }

    .hero-content {
        padding-top: 5px !important;
        padding-left: 1rem !important;
        padding-right: 1rem !important;
    }

    .hero-title {
        font-size: 2rem !important;
    }

    .hero-subtitle {
        font-size: 0.9rem !important;
    }

    .hero-description {
        font-size: 1rem;
        padding: 0;
        max-width: 88% !important;
        line-height: 1.7;
        margin-left: auto !important;
        margin-right: auto !important;
    }

    .hero-cta {
        padding: 0;
        max-width: 100% !important;
        margin-left: auto;
        margin-right: auto;
        align-items: center;
    }

    .hero-cta .btn,
    .hero-cta .btn-hero {
        width: auto !important;
        min-width: 240px;
        max-width: 88%;
        padding: 0.8rem 1.4rem !important;
        font-size: 0.95rem !important;
        box-sizing: border-box;
        display: inline-flex;
        align-items: center;
        gap: 0.5rem;
    }

    .section {
        padding: 2.5rem 1rem;
    }

    .hero-stats {
        grid-template-columns: 1fr;
        gap: 1rem;
        padding: 0;
        width: 100%;
        max-width: 100%;
    }

    .hero-stats .stat-item {
        padding: 1rem 0.75rem;
        background: rgba(124, 58, 237, 0.1);
        border-radius: var(--radius-md);
    }

    /* Carousel extra small screens */
    .nft-carousel-item {
        width: 180px !important;
        height: 230px !important;
    }

    .about-icon,
    .tier-icon {
        width: 60px;
        height: 60px;
        font-size: 1.8rem;
    }

    .tier-card {
        padding: 1.2rem;
    }

    .tier-value {
        font-size: 1.7rem;
    }

    .step {
        flex-direction: column;
        text-align: center;
        margin-bottom: 2rem;
    }

    .steps-container::before {
        display: none;
    }

    .step-number {
        margin: 0 auto;
    }

    .faq-question {
        flex-wrap: wrap;
        padding: 1rem;
        font-size: 0.95rem;
    }

    .faq-question i {
        font-size: 1.1rem;
    }

    .faq-answer {
        padding: 0 1rem 1rem 1rem;
    }

    .social-links {
        justify-content: center;
    }

    .social-icon {
        width: 45px;
        height: 45px;
    }
}

/* ========================================
   Landscape Mobile Optimization
   ======================================== */

@media (max-width: 896px) and (max-height: 414px) and (orientation: landscape) {
    .hero {
        min-height: auto;
        padding: 2rem 1.5rem;
    }

    .hero-stats {
        margin-top: 1.5rem;
    }

    .nav-links {
        height: 100vh;
        overflow-y: auto;
    }
}

/* ========================================
   Touch Device Optimizations
   ======================================== */

@media (hover: none) and (pointer: coarse) {
    /* Remove hover effects on touch devices */
    .btn:hover {
        transform: none;
    }

    .tier-card:hover,
    .about-card:hover {
        transform: none;
    }

    /* Increase touch targets */
    .btn,
    .nav-links a,
    .faq-question {
        min-height: 44px;
        display: flex;
        align-items: center;
    }

    /* Disable animations that might cause performance issues */
    .hero::before,
    .hero::after {
        animation: none;
    }
}

/* ========================================
   Container Width Adjustments
   ======================================== */

@media (max-width: 1400px) {
    .container,
    .nav-container {
        padding: 0 2rem;
    }
}

@media (max-width: 768px) {
    .container,
    .nav-container {
        padding: 0 1.5rem;
    }
}

@media (max-width: 480px) {
    .container,
    .nav-container {
        padding: 0 1rem;
    }
}

/* ========================================
   Print Styles (Bonus)
   ======================================== */

@media print {
    .navbar,
    .footer,
    .btn,
    .hero::before,
    .hero::after {
        display: none !important;
    }

    body {
        background: white;
        color: black;
    }

    .section {
        page-break-inside: avoid;
    }
}

/* ========================================
   Accessibility - Reduced Motion
   ======================================== */

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }

    .hero::before,
    .hero::after {
        animation: none;
    }

    .spinner {
        animation: none;
        border-color: var(--primary-purple);
    }
}