/* ====== RESPONSIVE MEDIA QUERIES FOR CUSTOM STYLES ====== */

/* Mobile First - Extra Small Devices */
@media (max-width: 480px) {
    #navbar {
        padding: 0.3rem 0.75rem;
    }
    
    #navbar .navbar-brand {
        font-size: 1.3rem !important;
    }
    
    #navbar .nav-btn {
        font-size: 0.7rem;
        padding: 0.35rem 1rem;
    }
    
    #landing {
        min-height: 60vh;
    }
    
    #why-choose {
        padding: clamp(1.5rem, 5vw, 3rem) 0;
    }
    
    #why-choose .box {
        margin-bottom: 1.5rem;
    }
    
    #purchase-faq .box {
        padding-bottom: 200px;
    }
}

/* Small Devices */
@media (max-width: 576px) {
    #landing {
        min-height: 80vh;
    }
    
    #landing .content h1 {
        margin-bottom: 1rem;
    }
    
    #why-choose .box .top .feature span:nth-child(2) {
        font-size: clamp(1rem, 3vw, 1.5rem);
    }
    
    #stats {
        padding: clamp(2rem, 5vw, 3rem) 0;
    }
    
    #stats h3 {
        font-size: clamp(1.4rem, 4vw, 2rem);
    }
    
    #purchase-faq .box {
        padding: clamp(1rem, 3vw, 1.7rem);
        padding-bottom: clamp(140px, 30vw, 170px);
    }
    
    #contact {
        padding: clamp(2rem, 5vw, 4rem) 0;
    }
    
    #contact h2 {
        font-size: clamp(1.5rem, 4vw, 2rem);
    }
    
    #contact p {
        font-size: clamp(0.95rem, 2vw, 1.2rem);
    }
}

/* Medium Devices (tablets) */
@media (min-width: 577px) and (max-width: 767px) {
    #navbar {
        padding: 0.4rem 1rem;
    }
    
    #navbar .navbar-brand {
        font-size: 1.5rem !important;
    }
    
    #navbar .nav-btn {
        font-size: 0.75rem;
        padding: 0.45rem 1.3rem;
    }
    
    #landing {
        min-height: 90vh;
    }
    
    #why-choose .top-text h2 {
        font-size: clamp(1.5rem, 4vw, 2.2rem);
    }
    
    #purchase-faq .box {
        padding-bottom: 200px;
    }
}

/* Large Devices (desktops) */
@media (min-width: 768px) {
    #navbar {
        padding: 0.5rem 1.5rem;
    }
    
    #navbar .navbar-brand {
        font-size: 1.7rem !important;
    }
    
    #navbar .nav-btn {
        font-size: 0.8rem;
        padding: 0.5rem 1.7rem;
    }
    
    #landing {
        min-height: 100vh;
    }
    
    #why-choose.top-text h2 {
        font-size: 2.4rem;
    }
    
    #stats {
        padding: 5rem 0;
    }
    
    #purchase-faq .box {
        padding: 1.7rem;
        padding-bottom: 170px;
    }
}

/* Large Devices XL */
@media (min-width: 992px) {
    #why-choose {
        padding: 5rem 0;
    }
    
    #stats h3 {
        font-size: 2rem;
    }
    
    #features .text-top h1 {
        font-size: clamp(2.2rem, 4vw, 3rem);
    }
}

/* Extra Large Devices */
@media (min-width: 1200px) {
    #why-choose .box:hover {
        transform: scale(1.05) translateY(-4px);
    }
    
    #purchase-faq .box {
        padding: 2rem;
    }
}

/* Very Large Screens */
@media (min-width: 1400px) {
    section {
        padding: 6rem 0;
    }
}

/* Landscape Orientation */
@media (max-height: 600px) and (orientation: landscape) {
    #landing {
        min-height: auto;
        padding: 2rem 0;
    }
    
    #landing .content {
        padding: 1rem 0;
    }
    
    section {
        padding: clamp(1rem, 3vw, 2rem) 0;
    }
}

/* Tablet Portrait */
@media (min-width: 577px) and (max-width: 900px) {
    .container {
        padding-left: 1.5rem;
        padding-right: 1.5rem;
    }
    
    #landing .content {
        padding: 2rem 1rem;
    }
    
    #why-choose .top-text {
        padding: 0 1rem;
    }
}

/* Mobile Landscape */
@media (max-width: 900px) and (max-height: 600px) {
    #navbar {
        position: relative;
    }
    
    section {
        padding: 1.5rem 0;
    }
    
    #landing {
        min-height: auto;
    }
}

/* Print Styles */
@media print {
    #navbar,
    .theme-toggle,
    .button,
    footer {
        display: none !important;
    }
    
    body {
        background: white !important;
        color: black !important;
    }
    
    section {
        page-break-inside: avoid;
        break-inside: avoid;
    }
}

/* High DPI Devices (Retina) */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
    .button {
        border-width: 2px;
    }
}

/* Touch Devices */
@media (hover: none) and (pointer: coarse) {
    .button:active {
        transform: scale(0.98);
    }
    
    .box:active {
        box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
    }
}

/* Prefers Reduced Motion */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}
