/* Responsive Design - Professional Corporate Style */

/* Tablet and Desktop (768px and up) - Unified */
@media (min-width: 768px) {

    .tech-grid,
    .products-grid,
    .services-content {
        grid-template-columns: repeat(2, 1fr);
    }
}


/* Tablet and Mobile (991px and below) */
@media (max-width: 991px) {
    .container {
        padding: 0 var(--spacing-lg);
    }

    /* Sections */
    .section {
        padding: var(--spacing-4xl) 0;
    }

    .section-header {
        margin-bottom: var(--spacing-3xl);
    }

    /* Header */
    .nav-list {
        display: none;
    }

    /* Use Bottom Nav instead of mobile menu toggle */
    .mobile-menu-toggle {
        display: none;
    }

    .bottom-nav {
        display: flex;
    }

    /* Hero */
    .hero {
        min-height: 100vh;
        padding: var(--spacing-2xl) 0;
    }

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

    .hero-subtitle {
        font-size: var(--font-size-xl);
        margin-bottom: var(--spacing-2xl);
    }



    /* About */
    .about-content {
        grid-template-columns: 1fr;
        gap: var(--spacing-3xl);
        text-align: center;
    }

    .about-stats {
        grid-template-columns: repeat(2, 1fr);
        gap: var(--spacing-lg);
    }

    .about-mission {
        font-size: var(--font-size-xl);
        padding: var(--spacing-lg);
    }

    .tech-card {
        padding: 0;
    }

    .tech-icon {
        width: 75px;
        height: 75px;
        font-size: var(--font-size-2xl);
    }

    /* Products */
    .products-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: var(--spacing-xl);
    }

    /* Services */
    .service-item {
        padding: 0;
    }

    .service-icon {
        width: 60px;
        height: 60px;
        font-size: var(--font-size-xl);
    }

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

    /* Membership */
    .membership-content {
        grid-template-columns: repeat(2, 1fr);
        gap: var(--spacing-xl);
    }

    .membership-item {
        padding: var(--spacing-2xl);
    }

    /* Footer */
    .footer {
        padding: var(--spacing-4xl) 0 var(--spacing-xl);
    }

    .footer-content {
        grid-template-columns: repeat(2, 1fr);
        gap: var(--spacing-2xl);
    }
}

/* Mobile (767px and below) */
@media (max-width: 767px) {
    .container {
        padding: 0 var(--spacing-md);
    }

    /* App-Like Mobile Styles */

    /* Show Bottom Nav */
    .bottom-nav {
        display: flex;
    }

    /* Hide standard mobile menu */
    .mobile-menu-toggle {
        display: none;
    }

    /* Adjust grid for mobile stack */
    .bento-grid {
        display: flex;
        flex-direction: column;
        gap: var(--spacing-lg);
    }

    .bento-item,
    .bento-item-wide,
    .bento-item-tall,
    .bento-item-large {
        width: 100%;
        grid-column: auto;
        grid-row: auto;
    }

    /* Touch Optimization */
    .btn,
    .nav-link,
    .bottom-nav-item,
    .product-card,
    .tech-card,
    .service-item,
    .membership-item {
        cursor: pointer;
        -webkit-tap-highlight-color: transparent;
    }

    .tech-card:active,
    .product-card:active,
    .service-item:active,
    .membership-item:active {
        transform: scale(0.98);
        box-shadow: var(--shadow-sm);
    }

    /* Typography */
    h1 {
        font-size: var(--font-size-4xl);
    }

    h2 {
        font-size: var(--font-size-3xl);
    }

    h3 {
        font-size: var(--font-size-2xl);
    }

    /* Sections */
    .section {
        padding: var(--spacing-3xl) 0;
    }

    .section-header {
        margin-bottom: var(--spacing-3xl);
    }

    .section-title {
        font-size: var(--font-size-4xl);
        margin-bottom: var(--spacing-md);
        color: var(--primary-color);
        font-weight: var(--font-weight-bold);
        text-shadow: 0 2px 4px rgba(15, 44, 89, 0.1);
    }

    .section-title::after {
        width: 180px;
        height: 5px;
        bottom: -14px;
        background: linear-gradient(135deg, #FF6B35 0%, #FF8C42 100%);
        box-shadow: 0 2px 8px rgba(255, 107, 53, 0.3);
    }

    .section-subtitle {
        font-size: var(--font-size-base);
        margin-top: var(--spacing-md);
    }

    /* Hero */
    .hero {
        min-height: 100vh;
        padding: var(--spacing-3xl) 0;
    }

    .hero-content {
        padding: 0 var(--spacing-md);
    }

    .hero-title {
        font-size: var(--font-size-4xl);
        margin-bottom: var(--spacing-lg);
    }

    .hero-subtitle {
        font-size: var(--font-size-lg);
        margin-bottom: var(--spacing-2xl);
    }



    .btn {
        padding: var(--spacing-md) var(--spacing-xl);
        font-size: var(--font-size-base);
        width: 100%;
        max-width: 300px;
    }

    /* About */
    .about-description {
        font-size: var(--font-size-base);
        margin-bottom: var(--spacing-lg);
    }

    .about-mission {
        font-size: var(--font-size-lg);
        padding: var(--spacing-md);
    }

    .about-stats {
        grid-template-columns: 1fr;
        gap: var(--spacing-lg);
    }

    .stat-item {
        padding: var(--spacing-xl);
    }

    .stat-number {
        font-size: var(--font-size-4xl);
    }

    /* Technology */
    .tech-grid,
    .products-grid,
    .services-content {
        grid-template-columns: 1fr;
        gap: var(--spacing-xl);
    }

    .tech-card {
        padding: 0;
    }

    .tech-icon {
        width: 70px;
        height: 70px;
        font-size: var(--font-size-2xl);
        margin-bottom: var(--spacing-lg);
    }

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

    .product-card {
        margin-bottom: 0;
    }


    .product-content {
        padding: var(--spacing-xl);
    }

    .product-title {
        font-size: var(--font-size-xl);
        margin-bottom: var(--spacing-lg);
    }

    .product-features li {
        padding: var(--spacing-sm) 0;
        padding-left: var(--spacing-2xl);
        font-size: var(--font-size-sm);
    }

    .product-features li::before {
        width: 20px;
        height: 20px;
        font-size: 0.7rem;
    }

    /* Services */
    .services-content {
        gap: var(--spacing-xl);
    }

    .service-item {
        padding: 0;
    }

    /* Membership */
    .membership-content {
        grid-template-columns: 1fr;
        gap: var(--spacing-xl);
    }

    .membership-item {
        padding: var(--spacing-2xl);
    }

    .membership-logo {
        width: 120px;
        height: 75px;
        margin-bottom: var(--spacing-lg);
    }

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

    /* Footer with Bottom Nav Spacing */
    .footer {
        padding: var(--spacing-4xl) 0 calc(var(--spacing-xl) + 60px);
        /* Add space for bottom nav */
    }

    .footer-content {
        grid-template-columns: 1fr;
        gap: var(--spacing-2xl);
        text-align: center;
    }

    .footer-logo {
        justify-content: center;
    }

    .footer-logo span {
        font-size: var(--font-size-xl);
    }

    .footer-section h3 {
        font-size: var(--font-size-lg);
    }

    .footer-contact p {
        justify-content: center;
        text-align: left;
    }
}



/* Landscape Mobile */
@media (max-width: 767px) and (orientation: landscape) {
    .hero {
        min-height: 100vh;
    }

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

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

    .section {
        padding: var(--spacing-lg) 0;
    }
}

/* High DPI Displays */
@media (-webkit-min-device-pixel-ratio: 2),
(min-resolution: 192dpi) {
    .logo-img {
        image-rendering: -webkit-optimize-contrast;
        image-rendering: crisp-edges;
    }
}

/* Print Styles */
@media print {

    .header,
    .mobile-menu-toggle {
        display: none !important;
    }

    .hero {
        min-height: auto;
        padding: var(--spacing-xl) 0;
    }

    .section {
        padding: var(--spacing-lg) 0;
        page-break-inside: avoid;
    }

    .tech-grid,
    .products-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .footer {
        background-color: var(--white) !important;
        color: var(--gray-900) !important;
    }

    a {
        color: var(--gray-900) !important;
        text-decoration: underline;
    }
}

/* Reduced Motion */
@media (prefers-reduced-motion: reduce) {

    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }

    .hero-title,
    .hero-subtitle {
        animation: none;
    }
}

/* Dark Mode Support */
@media (prefers-color-scheme: dark) {
    :root {
        --white: #0f172a;
        --gray-50: #1e293b;
        --gray-100: #334155;
        --gray-200: #475569;
        --gray-300: #64748b;
        --gray-400: #94a3b8;
        --gray-500: #cbd5e1;
        --gray-600: #e2e8f0;
        --gray-700: #f1f5f9;
        --gray-800: #f8fafc;
        --gray-900: #ffffff;
    }

    .header {
        background-color: rgba(15, 23, 42, 0.95);
        border-bottom-color: var(--gray-700);
    }

    .header.scrolled {
        background-color: rgba(15, 23, 42, 0.98);
    }

    .logo-text {
        color: var(--gray-100);
    }

    .nav-link {
        color: var(--gray-300);
    }

    .nav-link:hover,
    .nav-link.active {
        color: var(--primary-color);
        background-color: var(--gray-800);
    }

    .mobile-menu-toggle span {
        background-color: var(--gray-300);
    }

    .tech-card,
    .product-card,
    .service-item,
    .membership-item,
    .stat-item {
        background-color: var(--gray-50);
        border-color: var(--gray-700);
    }

    .section-title {
        color: var(--gray-100);
    }

    .section-subtitle {
        color: var(--gray-400);
    }

    .tech-title,
    .product-title,
    .service-text h3,
    .membership-text h3 {
        color: var(--gray-100);
    }

    .tech-description,
    .product-features li,
    .service-text p,
    .membership-text p,
    .about-description {
        color: var(--gray-400);
    }
}

/* Focus Styles for Accessibility */
@media (prefers-reduced-motion: no-preference) {

    .nav-link:focus,
    .btn:focus,
    .mobile-menu-toggle:focus {
        outline: 2px solid var(--primary-color);
        outline-offset: 2px;
    }
}

/* Container Queries (Future Support) */
@supports (container-type: inline-size) {
    .tech-card {
        container-type: inline-size;
    }

    @container (max-width: 300px) {
        .tech-icon {
            width: 50px;
            height: 50px;
            font-size: var(--font-size-lg);
        }

        .tech-title {
            font-size: var(--font-size-base);
        }
    }
}

/* Tablet Styles */
@media (max-width: 768px) {
    .membership-content {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .membership-item {
        padding: 1.5rem;
    }

    .membership-logo {
        width: 100px;
        height: 70px;
        margin-bottom: 1rem;
    }

    .membership-text h3 {
        font-size: 1.1rem;
    }
}

/* Mobile Styles */
@media (max-width: 480px) {
    .membership-content {
        gap: 1rem;
    }

    .membership-item {
        padding: 1rem;
    }

    .membership-logo {
        width: 80px;
        height: 60px;
        margin-bottom: 0.75rem;
    }

    .membership-text h3 {
        font-size: 1rem;
        margin-bottom: 0.75rem;
    }

    .membership-text p {
        font-size: 0.9rem;
    }
}