/* ========================================
   Responsive Styles
   ======================================== */

/* Tablet Landscape & Below (1024px) */
@media (max-width: 1024px) {
    :root {
        --section-padding: 80px;
    }
    
    h1 { font-size: 2.75rem; }
    h2 { font-size: 2.25rem; }
    
    .hero-content {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
    
    .hero-visual {
        height: 400px;
    }
    
    .services-grid {
        grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    }
    
    .footer-content {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Tablet Portrait & Below (768px) */
@media (max-width: 768px) {
    :root {
        --section-padding: 60px;
    }
    
    h1 { font-size: 2.25rem; }
    h2 { font-size: 1.875rem; }
    
    .container {
        padding: 0 1.5rem;
    }
    
    /* Navigation */
    .nav-toggle {
        display: flex;
        z-index: 1001;
    }
    
    .nav-toggle.active span:nth-child(1) {
        transform: rotate(45deg) translateY(8px);
    }
    
    .nav-toggle.active span:nth-child(2) {
        opacity: 0;
    }
    
    .nav-toggle.active span:nth-child(3) {
        transform: rotate(-45deg) translateY(-8px);
    }
    
    .nav-menu {
        position: fixed;
        top: 0;
        right: -100%;
        width: 280px;
        height: 100vh;
        background: white;
        flex-direction: column;
        align-items: flex-start;
        padding: 6rem 2rem 2rem;
        box-shadow: -5px 0 20px rgba(0, 0, 0, 0.1);
        transition: right 0.3s ease;
        overflow-y: auto;
    }
    
    .nav-menu.active {
        right: 0;
    }
    
    .nav-links {
        flex-direction: column;
        align-items: flex-start;
        gap: 1.5rem;
        width: 100%;
    }
    
    .nav-links a {
        font-size: 1.125rem;
        width: 100%;
        padding: 0.5rem 0;
    }
    
    .nav-menu .btn {
        margin-top: 1rem;
        width: 100%;
        justify-content: center;
    }
    
    .language-selector {
        width: 100%;
        justify-content: center;
        padding: 1rem 0;
        border-top: 1px solid rgba(0,0,0,0.1);
        margin-top: 1rem;
    }
    
    /* Hero */
    .hero-text h1 {
        font-size: 2.25rem;
    }
    
    .hero-text p {
        font-size: 1.125rem;
    }
    
    .hero-cta {
        flex-direction: column;
    }
    
    .hero-cta .btn {
        width: 100%;
        justify-content: center;
    }
    
    .hero-stats {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .hero-visual {
        display: none;
    }
    
    /* Services */
    .services-grid {
        grid-template-columns: 1fr;
    }
    
    /* Process Timeline */
    .process-step {
        grid-template-columns: 60px 1fr;
        gap: 1.5rem;
    }
    
    .step-number {
        width: 60px;
        height: 60px;
        font-size: 1.25rem;
    }
    
    .process-step:not(:last-child)::before {
        left: 30px;
        top: 60px;
    }
    
    .step-content ul {
        grid-template-columns: 1fr;
    }
    
    /* CTA Buttons */
    .cta-buttons {
        flex-direction: column;
    }
    
    .cta-buttons .btn {
        width: 100%;
        justify-content: center;
    }
    
    /* Blog Grid */
    .blog-grid {
        grid-template-columns: 1fr;
    }
    
    /* Footer */
    .footer-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .footer-bottom {
        flex-direction: column;
        text-align: center;
    }
    
    .footer-badges {
        justify-content: center;
    }
}

/* Mobile (480px) */
@media (max-width: 480px) {
    h1 { font-size: 1.875rem; }
    h2 { font-size: 1.625rem; }
    h3 { font-size: 1.375rem; }
    
    .container {
        padding: 0 1rem;
    }
    
    .hero {
        min-height: auto;
        padding: 100px 0 60px;
    }
    
    .hero-text h1 {
        font-size: 1.875rem;
    }
    
    .hero-text p {
        font-size: 1rem;
    }
    
    .btn {
        padding: 0.75rem 1.5rem;
        font-size: 0.95rem;
    }
    
    .btn-lg {
        padding: 0.875rem 1.75rem;
        font-size: 1rem;
    }
    
    .service-card {
        padding: 1.5rem;
    }
    
    .step-content {
        padding: 1.5rem;
    }
    
    .blog-content {
        padding: 1.5rem;
    }
    
    .section-header p {
        font-size: 1rem;
    }
    
    .stat h3 {
        font-size: 2rem;
    }
    
    .back-to-top {
        width: 45px;
        height: 45px;
        bottom: 1.5rem;
        right: 1.5rem;
    }
}

/* Mobile Small (375px) */
@media (max-width: 375px) {
    h1 { font-size: 1.625rem; }
    h2 { font-size: 1.5rem; }
    
    .logo {
        font-size: 1.25rem;
    }
    
    .logo img {
        width: 32px;
        height: 32px;
    }
    
    .hero-text h1 {
        font-size: 1.625rem;
    }
}

/* Print Styles */
@media print {
    .navbar,
    .nav-toggle,
    .back-to-top,
    .cta-section {
        display: none !important;
    }
    
    body {
        font-size: 12pt;
        line-height: 1.5;
        color: #000;
    }
    
    a {
        text-decoration: underline;
    }
    
    .container {
        max-width: 100%;
    }
}

/* Landscape Orientation */
@media (max-width: 768px) and (orientation: landscape) {
    .hero {
        min-height: auto;
        padding: 100px 0 60px;
    }
    
    .hero-stats {
        grid-template-columns: repeat(3, 1fr);
    }
}

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

/* Reduced Motion */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* Dark Mode Support (Optional) */
@media (prefers-color-scheme: dark) {
    /* Add dark mode styles if needed */
}
