/* TechOPC Responsive Styles */
/* Mobile-First Responsive Design */

/* Small devices (phones, 576px and down) */
@media (max-width: 575.98px) {
    :root {
        --container-padding: 0.75rem;
        --spacing-xs: 0.125rem;
        --spacing-sm: 0.25rem;
        --spacing-md: 0.5rem;
        --spacing-lg: 0.75rem;
        --spacing-xl: 1rem;
        --spacing-2xl: 1.5rem;
        --spacing-3xl: 2rem;
    }
    
    /* Header Mobile */
    .header-content {
        padding: var(--spacing-md) 0;
    }
    
    .logo img {
        width: 80px; /* 60px'den 80px'e çıkardık */
        height: 80px;
    }
    
    /* Mobile Menu */
    .mobile-menu-toggle {
        display: flex;
        z-index: var(--z-fixed);
    }
    
    .main-nav {
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: rgba(10, 10, 10, 0.95);
        backdrop-filter: blur(30px);
        -webkit-backdrop-filter: blur(30px);
        transform: translateX(-100%);
        transition: transform var(--transition-medium);
        z-index: var(--z-dropdown);
        display: flex;
        align-items: center;
        justify-content: center;
    }
    
    .main-nav.active {
        transform: translateX(0);
    }
    
    .main-nav ul {
        flex-direction: column;
        gap: var(--spacing-xl);
        text-align: center;
    }
    
    .main-nav a {
        display: block;
        padding: var(--spacing-lg) var(--spacing-2xl);
        font-size: 1.5rem;
        font-weight: 600;
        background: rgba(0, 212, 255, 0.1);
        border: 1px solid rgba(0, 212, 255, 0.3);
        border-radius: var(--radius-lg);
        backdrop-filter: blur(20px);
        text-shadow: 0 0 20px rgba(0, 212, 255, 0.5);
    }
    
    .main-nav a.active::after {
        display: none;
    }
    
    /* Hero Mobile - Büyütülmüş Banner */
    .hero,
    .page-hero {
        min-height: 70vh; /* 50vh'den 70vh'e çıkardık */
        padding: var(--spacing-3xl) 0; /* Daha fazla padding */
        background-attachment: scroll; /* Fixed attachment mobilde sorunlu olabilir */
    }
    
    .hero-content,
    .page-hero-content {
        padding: var(--spacing-3xl) 0; /* İçerik için daha fazla padding */
        margin-top: var(--spacing-2xl); /* Üstten boşluk ekledik */
    }
    
    .hero-buttons {
        flex-direction: column;
        align-items: center;
        gap: var(--spacing-md);
    }
    
    .btn {
        width: 100%;
        max-width: 280px;
    }
    
    /* Services Grid Mobile */
    .services-grid {
        grid-template-columns: 1fr;
        gap: var(--spacing-lg);
    }
    
    .service-card {
        padding: var(--spacing-lg);
    }
    
    .service-icon {
        width: 70px;
        height: 70px;
        margin-bottom: var(--spacing-md);
    }
    
    .service-icon img {
        width: 70px;
        height: 70px;
    }
    
    /* Contact Section Mobile */
    .contact-layout,
    .contact-content {
        grid-template-columns: 1fr;
        gap: var(--spacing-2xl);
    }
    
    .contact-cards {
        grid-template-columns: 1fr;
        gap: var(--spacing-lg);
    }
    
    .contact-map-section iframe {
        height: 300px;
    }
    
    /* Products Grid Mobile */
    .products-grid {
        grid-template-columns: 1fr;
        gap: var(--spacing-lg);
    }
    
    .category-image {
        height: 160px;
    }
    
    .category-content {
        padding: var(--spacing-lg);
    }
    
    /* About Mobile */
    .about-content {
        grid-template-columns: 1fr;
        gap: var(--spacing-xl);
        text-align: center;
    }
    
    .about-image,
    .about-map {
        order: -1;
        height: 350px;
        min-height: 350px;
    }
    
    /* Footer Mobile */
    .footer-content {
        grid-template-columns: 1fr;
        gap: var(--spacing-xl);
        text-align: center;
    }
    
    .footer-bottom {
        flex-direction: column;
        text-align: center;
        gap: var(--spacing-md);
    }
    
    .footer-links {
        flex-direction: column;
        gap: var(--spacing-sm);
    }
    
    /* WhatsApp Float Mobile */
    .whatsapp-float {
        bottom: 20px;
        right: 20px;
    }
    
    .whatsapp-float a {
        width: 50px;
        height: 50px;
    }
    
    .whatsapp-float img {
        width: 25px;
        height: 25px;
    }
}

/* Medium devices (tablets, 576px and up) */
@media (min-width: 576px) and (max-width: 767.98px) {
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .products-grid {
        grid-template-columns: 1fr;
        max-width: 500px;
        margin: 0 auto;
    }
    
    .hero-buttons {
        flex-direction: row;
        justify-content: center;
    }
    
    .btn {
        min-width: 160px;
    }
}

/* Large devices (desktops, 768px and up) */
@media (min-width: 768px) {
    /* Hide mobile menu toggle */
    .mobile-menu-toggle {
        display: none;
    }
    
    /* Services Grid */
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    /* Products Grid */
    .products-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    /* About Section */
    .about-content {
        grid-template-columns: 1fr 1fr;
    }
    
    /* Footer */
    .footer-content {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Extra large devices (large desktops, 992px and up) */
@media (min-width: 992px) {
    .services-grid {
        grid-template-columns: repeat(4, 1fr);
    }
    
    .products-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .footer-content {
        grid-template-columns: repeat(4, 1fr);
    }
}

/* Extra extra large devices (1200px and up) */
@media (min-width: 1200px) {
    :root {
        --container-max: 1400px;
    }
    
    .hero,
    .page-hero {
        min-height: 700px;
    }
    
    .hero-content,
    .page-hero-content {
        max-width: 900px;
    }
}

/* High DPI / Retina Displays */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
    /* Optimize for retina displays */
    body {
        -webkit-font-smoothing: antialiased;
        -moz-osx-font-smoothing: grayscale;
    }
}

/* Reduce motion for users who prefer it */
@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;
    }
    
    .whatsapp-float a {
        animation: none;
    }
    
    .hero {
        animation: none !important;
        filter: brightness(1) contrast(1) !important;
    }
    
    .hero h1 {
        animation: none !important;
        text-shadow: 0 0 30px rgba(0, 212, 255, 0.3) !important;
    }
}

/* Dark mode preference (already our default) */
@media (prefers-color-scheme: dark) {
    /* Our styles are already dark by default */
}

/* Light mode for users who prefer it */
@media (prefers-color-scheme: light) {
    /* We could add light mode variants here if needed */
}

/* Print styles */
@media print {
    .header,
    .whatsapp-float,
    .mobile-menu-toggle {
        display: none !important;
    }
    
    body {
        background: white !important;
        color: black !important;
    }
    
    .hero {
        background: white !important;
    }
    
    a {
        text-decoration: underline !important;
    }
    
    .container {
        max-width: none !important;
        padding: 0 !important;
    }
}

/* Focus improvements for keyboard navigation */
@media (any-hover: none) {
    /* Touch devices */
    .service-card:hover,
    .product-category:hover {
        transform: none;
    }
}

/* Landscape phone orientation */
@media screen and (max-height: 500px) and (orientation: landscape) {
    .hero {
        min-height: 400px;
        background-attachment: scroll;
    }
    
    .hero-content {
        padding: var(--spacing-lg) 0;
    }
}

/* Very small screens */
@media (max-width: 320px) {
    :root {
        --container-padding: 0.5rem;
        --spacing-md: 0.25rem;
        --spacing-lg: 0.5rem;
        --spacing-xl: 0.75rem;
    }
    
    .hero h1 {
        font-size: 1.75rem;
    }
    
    .hero-subtitle {
        font-size: 1rem;
    }
    
    .service-card {
        padding: var(--spacing-md);
    }
}
