/* ========== Responsive Styles ========== */

/* Extra Large Devices (large desktops, 1200px and up) */
@media (min-width: 1200px) {
    .container {
        max-width: 1140px;
    }
}

/* Large Devices (desktops, 992px and up) */
@media (max-width: 1199.98px) {
    .container {
        max-width: 960px;
    }
    
    .hero-title {
        font-size: var(--font-size-4xl);
    }
    
    .section-title {
        font-size: var(--font-size-3xl);
    }
    
    .hero-image {
        height: 450px;
    }
    
    .floating-coin.bitcoin {
        width: 100px;
        height: 100px;
    }
    
    .floating-coin.bitcoin::before {
        font-size: 50px;
    }
    
    .floating-coin.ethereum {
        width: 80px;
        height: 80px;
    }
    
    .floating-coin.ethereum::before {
        font-size: 40px;
    }
    
    .floating-coin.binance {
        width: 120px;
        height: 120px;
    }
    
    .floating-coin.binance::before {
        font-size: 60px;
    }
}

/* Medium Devices (tablets, 768px and up) */
@media (max-width: 991.98px) {
    .container {
        max-width: 720px;
    }
    
    .hero-container {
        flex-direction: column;
        gap: var(--spacing-xl);
    }
    
    .hero-content {
        max-width: 100%;
        text-align: center;
    }
    
    .hero-stats {
        justify-content: center;
    }
    
    .hero-image {
        height: 350px;
    }
    
    .products-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .benefits-grid {
        grid-template-columns: 1fr;
    }
    
    .testimonial-card {
        min-width: calc(50% - var(--spacing-xl));
    }
    
    /* Mobile Menu */
    .nav {
        position: fixed;
        top: 80px;
        left: 0;
        width: 100%;
        background-color: var(--background);
        box-shadow: var(--box-shadow);
        padding: var(--spacing-lg);
        flex-direction: column;
        gap: var(--spacing-lg);
        transform: translateY(-100%);
        opacity: 0;
        visibility: hidden;
        transition: all 0.3s ease;
        z-index: 99;
    }
    
    .nav.active {
        transform: translateY(0);
        opacity: 1;
        visibility: visible;
    }
    
    .mobile-menu-toggle {
        display: block;
    }
    
    .header-right {
        gap: var(--spacing-sm);
    }
}

/* Small Devices (landscape phones, 576px and up) */
@media (max-width: 767.98px) {
    .container {
        max-width: 540px;
    }
    
    .hero-title {
        font-size: var(--font-size-3xl);
    }
    
    .hero-subtitle {
        font-size: var(--font-size-lg);
    }
    
    .section-title {
        font-size: var(--font-size-2xl);
    }
    
    .section-subtitle {
        font-size: var(--font-size-md);
    }
    
    .products-grid {
        grid-template-columns: 1fr;
    }
    
    .hero-stats {
        flex-direction: column;
        gap: var(--spacing-md);
        align-items: center;
    }
    
    .testimonial-card {
        min-width: calc(100% - var(--spacing-xl));
    }
    
    .cta-title {
        font-size: var(--font-size-3xl);
    }
    
    .cta-subtitle {
        font-size: var(--font-size-lg);
    }
    
    .footer-top {
        flex-direction: column;
        gap: var(--spacing-xl);
    }
    
    .footer-nav {
        flex-direction: column;
        gap: var(--spacing-xl);
    }
    
    .footer-bottom {
        flex-direction: column;
        text-align: center;
        gap: var(--spacing-lg);
    }
    
    .footer-links {
        justify-content: center;
    }
}

/* Extra Small Devices (portrait phones, less than 576px) */
@media (max-width: 575.98px) {
    .hero-title {
        font-size: var(--font-size-2xl);
    }
    
    .hero-subtitle {
        font-size: var(--font-size-md);
    }
    
    .hero-cta {
        font-size: var(--font-size-md);
        padding: var(--spacing-sm) var(--spacing-lg);
    }
    
    .hero-image {
        height: 250px;
    }
    
    .floating-coin.bitcoin {
        width: 80px;
        height: 80px;
    }
    
    .floating-coin.bitcoin::before {
        font-size: 40px;
    }
    
    .floating-coin.ethereum {
        width: 60px;
        height: 60px;
    }
    
    .floating-coin.ethereum::before {
        font-size: 30px;
    }
    
    .floating-coin.binance {
        width: 100px;
        height: 100px;
    }
    
    .floating-coin.binance::before {
        font-size: 50px;
    }
    
    .section-title {
        font-size: var(--font-size-xl);
    }
    
    .section-subtitle {
        font-size: var(--font-size-sm);
    }
    
    .logo-text {
        display: none;
    }
    
    .header-container {
        height: 70px;
    }
    
    .nav {
        top: 70px;
    }
    
    .cta-title {
        font-size: var(--font-size-2xl);
    }
    
    .cta-subtitle {
        font-size: var(--font-size-md);
    }
    
    .cta-btn {
        font-size: var(--font-size-md);
        padding: var(--spacing-sm) var(--spacing-lg);
    }
    
    .language-popup-content {
        width: 95%;
    }
}

/* RTL Specific Overrides */
[dir="rtl"] .hero-stat,
[dir="rtl"] .product-link,
[dir="rtl"] .testimonial-author {
    flex-direction: row-reverse;
}

[dir="rtl"] .product-link:hover {
    gap: var(--spacing-sm);
}

[dir="rtl"] .testimonial-content::before {
    left: auto;
    right: -10px;
}

/* Dark Mode Support (Enabled by User Preference) */
@media (prefers-color-scheme: dark) {
    :root {
        --primary-text: #eaecef;
        --secondary-text: #b7bdc6;
        --light-text: #848e9c;
        --background: #181a20;
        --card-background: #1e2026;
        --card-hover: #2b2f36;
        --border-color: #2d3034;
        --box-shadow: 0 4px 24px rgba(0, 0, 0, 0.2);
    }
    
    .preloader,
    .header {
        background-color: rgba(24, 26, 32, 0.9);
    }
    
    .hero {
        background: linear-gradient(135deg, #282412, #1e1c10);
    }
    
    .hero-stat-icon {
        background-color: rgba(240, 185, 11, 0.2);
    }
    
    .testimonial-content::before {
        color: rgba(240, 185, 11, 0.1);
    }
}
