/* Responsive Styles */

/* Tablet (768px - 1023px) */
@media (max-width: 1023px) {
    .container {
        padding: 0 var(--space-4);
    }

    .nav-menu {
        position: fixed;
        top: 0;
        left: -100%;
        width: 100%;
        height: 100vh;
        background: var(--bg-secondary);
        flex-direction: column;
        justify-content: center;
        align-items: flex-start;
        margin: 0;
        padding: var(--space-8) var(--space-12);
        gap: var(--space-6);
        transition: left var(--transition-base);
        z-index: var(--z-80);
    }

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

    .nav-link {
        font-size: var(--text-xl);
        padding: 0;
        width: 100%;
        text-align: left;
        justify-content: flex-start;
        display: flex;
        white-space: nowrap;
    }

    .mobile-menu-btn {
        display: flex;
    }

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

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

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

    .mobile-menu-close {
        display: flex;
        position: absolute;
        top: 20px;
        right: 20px;
        background: rgba(255, 255, 255, 0.05);
        border: 1px solid rgba(255, 255, 255, 0.1);
        color: var(--color-gray-400);
        padding: var(--space-2);
        border-radius: var(--radius-xl);
        transition: all var(--transition-base);
        cursor: pointer;
        z-index: 1001;
        width: 44px;
        height: 44px;
        align-items: center;
        justify-content: center;
    }

    .mobile-menu-close:hover {
        color: var(--color-primary);
        background: rgba(0, 212, 255, 0.15);
        border-color: rgba(0, 212, 255, 0.3);
        transform: scale(1.05);
    }

    .mobile-menu-close:active {
        transform: scale(0.95);
    }

    .hero-title {
        font-size: clamp(var(--text-3xl), 7vw, var(--text-5xl));
    }

    .hero-features {
        grid-template-columns: 1fr;
        max-width: 400px;
        margin: 0 auto;
    }

    .services-grid {
        grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
        gap: var(--space-6);
    }

    .trust-indicators {
        gap: var(--space-4);
    }
}

/* Mobile (640px and below) */
@media (max-width: 639px) {
    .navbar {
        height: 70px;
    }
    .feature-icon{
        margin: 0px;
    }

    .nav-wrapper {
        height: 70px;
    }

    .logo-icon {
        width: 35px;
        height: 35px;
        font-size: var(--text-base);
    }

    .logo-text {
        font-size: var(--text-lg);
    }

    .nav-actions {
        gap: var(--space-2);
        margin-top: 0;
    }

    .search-btn,
    .cart-btn {
        width: 35px;
        height: 35px;
    }

    .btn {
        padding: var(--space-2) var(--space-4);
        font-size: var(--text-sm);
    }

    /* Keep login button visible on mobile but hide it when mobile menu is used */
    /* .btn-primary {
        display: none;
    } */

    .hero {
        padding-top: 100px;
        min-height: auto;
        padding-bottom: var(--space-16);
    }

    .hero-title {
        font-size: clamp(var(--text-2xl), 10vw, var(--text-4xl));
        margin-bottom: var(--space-4);
    }

    .hero-subtitle {
        font-size: var(--text-base);
        margin-bottom: var(--space-6);
    }

    .trust-badge {
        font-size: var(--text-xs);
        padding: var(--space-2) var(--space-4);
        margin-bottom: var(--space-6);
    }

    .search-box {
        margin-bottom: var(--space-6);
    }

    .search-input {
        padding: var(--space-4) var(--space-5);
        font-size: var(--text-sm);
    }

    .search-submit {
        width: 40px;
        height: 40px;
    }

    .hero-actions {
        margin-bottom: var(--space-6);
    }

    .btn-large {
        padding: var(--space-3) var(--space-6);
        font-size: var(--text-base);
    }

    .trust-indicators {
        /* flex-direction: column; */
        gap: var(--space-2);
        margin-bottom: var(--space-10);
    }

    .indicator {
        font-size: var(--text-sm);
    }

    .feature-card {
        padding: var(--space-6);
    }

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

    .feature-card h3 {
        font-size: var(--text-base);
    }

    .services {
        padding: var(--space-16) 0;
    }

    .section-header {
        margin-bottom: var(--space-10);
    }

    .section-title {
        font-size: clamp(var(--text-2xl), 8vw, var(--text-3xl));
    }

    .section-subtitle {
        font-size: var(--text-base);
    }

    .services-grid {
        grid-template-columns: 1fr;
        gap: var(--space-4);
    }

    .gradient-orb {
        width: 300px;
        height: 300px;
    }

    .gradient-orb-1 {
        top: -100px;
        left: -100px;
    }

    .gradient-orb-2 {
        right: -100px;
    }

    .gradient-orb-3 {
        bottom: -100px;
    }
}

/* Small Mobile (480px and below) */
@media (max-width: 479px) {
    .container {
        padding: 0 var(--space-3);
    }

    .hero-title {
        /* font-size: var(--text-2xl); */
        font-size: 3rem;
    }

    .hero-subtitle {
        font-size: var(--text-sm);
        line-height: 1.6;
    }

    .trust-badge {
        gap: var(--space-1);
        padding: var(--space-1) var(--space-3);
    }

    .trust-badge svg {
        width: 16px;
        height: 16px;
    }

    .search-input {
        padding: var(--space-3) var(--space-4);
        padding-right: 50px;
    }

    .btn-large {
        width: 100%;
        justify-content: center;
    }

    .feature-card {
        padding: var(--space-4);
    }

    .feature-card h3 {
        font-size: var(--text-sm);
    }

    .feature-card p {
        font-size: var(--text-xs);
    }
}

/* Large Desktop (1536px and above) */
@media (min-width: 1536px) {
    .container {
        max-width: 1400px;
    }

    .hero-title {
        font-size: var(--text-8xl);
    }

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

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

/* Height-based Media Queries */
@media (max-height: 700px) {
    .hero {
        min-height: auto;
        padding-top: 100px;
        padding-bottom: var(--space-16);
    }
}

/* Hover Media Query (for devices that support hover) */
@media (hover: hover) {
    .hover-lift:hover {
        transform: translateY(-8px);
    }
}

/* Print Styles */
@media print {
    .navbar,
    .hero-bg,
    .btn,
    .search-box {
        display: none;
    }

    body {
        background: white;
        color: black;
    }

    .hero-title,
    .section-title {
        color: black;
        -webkit-print-color-adjust: exact;
        print-color-adjust: exact;
    }
}