/* Responsive Design */

/* Large Desktop (1200px and up) */
@media (min-width: 1200px) {
    .container {
        max-width: 1400px;
    }
    
    .hero-title {
        font-size: 4.5rem;
    }
    
    .tech-grid {
        grid-template-columns: repeat(4, 1fr);
    }
    
    .products-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

/* Desktop (992px to 1199px) */
@media (max-width: 1199px) {
    .hero-title {
        font-size: 3.5rem;
    }
    
    .about-content {
        gap: var(--spacing-2xl);
    }
}

/* Tablet (768px to 991px) */
@media (max-width: 991px) {
    .container {
        padding: 0 var(--spacing-md);
    }
    
    /* Header */
    .nav-list {
        display: none;
    }
    
    .mobile-menu-toggle {
        display: flex;
    }
    
    .nav.active .nav-list {
        display: flex;
        flex-direction: column;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background-color: var(--white);
        box-shadow: var(--shadow-lg);
        padding: var(--spacing-lg);
        border-top: 1px solid var(--gray-200);
    }
    
    /* Hero */
    .hero-title {
        font-size: 3rem;
    }
    
    .hero-subtitle {
        font-size: var(--font-size-lg);
    }
    
    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    /* About */
    .about-content {
        grid-template-columns: 1fr;
        gap: var(--spacing-2xl);
        text-align: center;
    }
    
    .about-stats {
        grid-template-columns: repeat(3, 1fr);
    }
    
    /* Technology */
    .tech-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    /* Products */
    .products-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    /* Services */
    .service-item {
        flex-direction: row;
        text-align: left;
        gap: var(--spacing-sm);
        align-items: flex-start;
        padding: var(--spacing-sm);
    }
    
    .service-icon {
        flex-shrink: 0;
        width: 35px;
        height: 35px;
        font-size: var(--font-size-sm);
    }
    
    .service-text h3 {
        font-size: var(--font-size-base);
        margin-bottom: var(--spacing-xs);
    }
    
    .service-text p {
        font-size: var(--font-size-base);
        line-height: 1.4;
    }
    
    /* Membership */
    .membership-item {
        flex-direction: column;
        text-align: center;
        gap: var(--spacing-lg);
    }
    
    /* Footer */
    .footer-content {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Mobile Large (576px to 767px) */
@media (max-width: 767px) {
    .container {
        padding: 0 var(--spacing-sm);
    }
    
    /* Typography */
    h1 { font-size: var(--font-size-4xl); }
    h2 { font-size: var(--font-size-3xl); }
    h3 { font-size: var(--font-size-2xl); }
    
    /* Hero */
    .hero {
        min-height: 80vh;
        padding: var(--spacing-2xl) 0;
    }
    
    .hero-title {
        font-size: 2.5rem;
        margin-bottom: var(--spacing-md);
    }
    
    .hero-subtitle {
        font-size: var(--font-size-base);
        margin-bottom: var(--spacing-xl);
    }
    
    .hero-buttons {
        gap: var(--spacing-md);
    }
    
    .btn {
        padding: var(--spacing-sm) var(--spacing-lg);
        font-size: var(--font-size-sm);
    }
    
    /* Sections */
    .section {
        padding: var(--spacing-2xl) 0;
    }
    
    .section-header {
        margin-bottom: var(--spacing-2xl);
    }
    
    .section-title {
        font-size: var(--font-size-3xl);
    }
    
    .section-subtitle {
        font-size: var(--font-size-base);
    }
    
    /* About */
    .about-stats {
        grid-template-columns: 1fr;
        gap: var(--spacing-md);
    }
    
    .stat-item {
        padding: var(--spacing-lg);
    }
    
    .stat-number {
        font-size: var(--font-size-3xl);
    }
    
    /* Technology */
    .tech-grid {
        grid-template-columns: 1fr;
        gap: var(--spacing-lg);
    }
    
    .tech-card {
        padding: var(--spacing-xl);
    }
    
    .tech-icon {
        width: 60px;
        height: 60px;
        font-size: var(--font-size-xl);
    }
    
    /* Products */
    .products-grid {
        grid-template-columns: 1fr;
        gap: var(--spacing-lg);
    }
    
    .product-card {
        margin-bottom: var(--spacing-lg);
    }
    
    .product-image {
        height: 150px;
        font-size: var(--font-size-3xl);
    }
    
    .product-content {
        padding: var(--spacing-lg);
    }
    
    /* Services */
    .service-item {
        padding: var(--spacing-lg);
    }
    
    .service-icon {
        width: 50px;
        height: 50px;
        font-size: var(--font-size-lg);
    }
    
    /* Membership */
    .membership-item {
        padding: var(--spacing-lg);
    }
    
    .membership-icon {
        width: 50px;
        height: 50px;
        font-size: var(--font-size-lg);
    }
    
    /* Footer */
    .footer-content {
        grid-template-columns: 1fr;
        gap: var(--spacing-xl);
        text-align: center;
    }
    
    .footer-logo {
        justify-content: center;
    }
    
    /* Back to Top */
    .back-to-top {
        bottom: var(--spacing-lg);
        right: var(--spacing-lg);
        width: 45px;
        height: 45px;
        font-size: var(--font-size-base);
    }
}

/* Mobile Small (up to 575px) */
@media (max-width: 575px) {
    .container {
        padding: 0 var(--spacing-xs);
    }
    
    /* Header */
    .header-content {
        padding: var(--spacing-sm) 0;
    }
    
    .logo-text {
        font-size: var(--font-size-lg);
    }
    
    .logo-img {
        height: 35px;
    }
    
    /* Hero */
    .hero-title {
        font-size: 2rem;
    }
    
    .hero-subtitle {
        font-size: var(--font-size-sm);
    }
    
    .hero-buttons {
        flex-direction: column;
        width: 100%;
    }
    
    .btn {
        width: 100%;
        justify-content: center;
    }
    
    /* Typography */
    h1 { font-size: var(--font-size-3xl); }
    h2 { font-size: var(--font-size-2xl); }
    h3 { font-size: var(--font-size-xl); }
    
    /* Sections */
    .section {
        padding: var(--spacing-xl) 0;
    }
    
    .section-header {
        margin-bottom: var(--spacing-xl);
    }
    
    .section-title {
        font-size: var(--font-size-2xl);
    }
    
    /* About */
    .about-description {
        font-size: var(--font-size-base);
    }
    
    .about-mission {
        font-size: var(--font-size-lg);
    }
    
    /* Technology */
    .tech-card {
        padding: var(--spacing-lg);
    }
    
    .tech-title {
        font-size: var(--font-size-lg);
    }
    
    /* Products */
    .product-title {
        font-size: var(--font-size-lg);
    }
    
    .product-features li {
        font-size: var(--font-size-sm);
    }
    
    /* Services */
    .service-text h3 {
        font-size: var(--font-size-lg);
    }
    
    .service-text p {
        font-size: var(--font-size-sm);
    }
    
    /* Membership */
    .membership-text h3 {
        font-size: var(--font-size-lg);
    }
    
    .membership-text p {
        font-size: var(--font-size-sm);
    }
    
    /* Footer */
    .footer {
        padding: var(--spacing-2xl) 0 var(--spacing-lg);
    }
    
    .footer-logo span {
        font-size: var(--font-size-lg);
    }
    
    .footer-description {
        font-size: var(--font-size-sm);
    }
    
    .footer-section h3 {
        font-size: var(--font-size-base);
    }
    
    .footer-links li {
        font-size: var(--font-size-sm);
    }
    
    .footer-contact p {
        font-size: var(--font-size-sm);
    }
}

/* Landscape Mobile */
@media (max-width: 767px) and (orientation: landscape) {
    .hero {
        min-height: 60vh;
    }
    
    .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,
    .scroll-indicator,
    .back-to-top,
    .hero-buttons {
        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,
    .hero-buttons {
        animation: none;
    }
    
    .scroll-indicator {
        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,
    .back-to-top: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;
    }
} 