/* ============================================
   Zafrk Website - Responsive Styles
   ============================================ */

/* Mobile First Approach */

/* Mobile Devices (< 768px) */
@media (max-width: 767px) {
    .nav-menu {
        position: fixed;
        left: -100%;
        top: 70px;
        flex-direction: column;
        background: rgba(45, 0, 85, 0.98);
        width: 100%;
        text-align: center;
        transition: left var(--transition-normal);
        box-shadow: var(--shadow-lg);
        padding: var(--spacing-lg) 0;
        gap: var(--spacing-md);
    }
    
    .nav-menu.active {
        left: 0;
    }
    
    .nav-toggle {
        display: flex;
    }
    
    .nav-toggle.active span:nth-child(1) {
        transform: rotate(45deg) translate(8px, 8px);
    }
    
    .nav-toggle.active span:nth-child(2) {
        opacity: 0;
    }
    
    .nav-toggle.active span:nth-child(3) {
        transform: rotate(-45deg) translate(7px, -7px);
    }
    
    .hero {
        min-height: 80vh;
        padding: var(--spacing-xl) var(--spacing-md);
    }
    
    .hero-cta {
        flex-direction: column;
        align-items: stretch;
    }
    
    .btn {
        width: 100%;
        min-width: auto;
    }
    
    .features-grid {
        grid-template-columns: 1fr;
        gap: var(--spacing-md);
    }
    
    .value-prop {
        grid-template-columns: 1fr;
        gap: var(--spacing-md);
    }
    
    .section {
        padding: var(--spacing-xl) var(--spacing-md);
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        gap: var(--spacing-lg);
        text-align: center;
    }
    
    .social-links {
        justify-content: center;
    }
    
    .card {
        padding: var(--spacing-md);
    }
    
    .contact-form {
        padding: var(--spacing-md);
    }
}

/* Tablet Devices (768px - 1024px) */
@media (min-width: 768px) and (max-width: 1024px) {
    .features-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .value-prop {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .hero {
        min-height: 85vh;
    }
    
    .section {
        padding: var(--spacing-xl) var(--spacing-lg);
    }
    
    .footer-content {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Desktop Devices (> 1024px) */
@media (min-width: 1025px) {
    .nav-menu {
        display: flex;
    }
    
    .nav-toggle {
        display: none;
    }
    
    .features-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .value-prop {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* Large Desktop (> 1440px) */
@media (min-width: 1440px) {
    .nav-container,
    .section,
    .footer-container {
        max-width: 1400px;
    }
    
    .features-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

/* Touch Device Optimizations */
@media (hover: none) and (pointer: coarse) {
    .btn,
    .nav-link,
    .card {
        min-height: 44px;
        min-width: 44px;
    }
    
    .btn {
        padding: var(--spacing-md) var(--spacing-lg);
    }
}

/* High DPI Displays */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
    .hero-title,
    .section-title {
        -webkit-font-smoothing: antialiased;
        -moz-osx-font-smoothing: grayscale;
    }
}

/* Landscape Mobile */
@media (max-width: 767px) and (orientation: landscape) {
    .hero {
        min-height: 100vh;
    }
    
    .nav-menu {
        max-height: calc(100vh - 70px);
        overflow-y: auto;
    }
}

/* Print Styles */
@media print {
    .navbar,
    .footer,
    .btn,
    .nav-toggle {
        display: none;
    }
    
    .main-content {
        margin-top: 0;
    }
    
    body {
        background: white;
        color: black;
    }
}
