/* ================================
   RESPONSIVE DESIGN
   ================================ */

/* Large Desktop (1400px+) */
@media (min-width: 1400px) {
    .container {
        max-width: 1400px;
    }
    
    .hero-title {
        font-size: 4.5rem;
    }
    
    .section-title {
        font-size: 3.5rem;
    }
    
    .services-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .portfolio-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* Desktop (1200px - 1399px) */
@media (max-width: 1399px) {
    .container {
        max-width: 1200px;
    }
}

/* Tablet Landscape (992px - 1199px) */
@media (max-width: 1199px) {
    .container {
        max-width: 960px;
        padding: 0 30px;
    }
    
    .nav-menu {
        gap: 2rem;
    }
    
    .nav-menu a {
        font-size: 0.9rem;
    }
    
    .hero-buttons {
        flex-direction: column;
        align-items: center;
        gap: 1.5rem;
    }
    
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 2.5rem;
    }
    
    .portfolio-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .testimonials-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 2.5rem;
    }
    
    .process-step {
        gap: 1.5rem;
    }
    
    .step-number {
        width: 70px;
        height: 70px;
        font-size: 1.3rem;
    }
    
    .process-step:not(:last-child)::after {
        left: 35px;
        top: 70px;
    }
}

/* Tablet Portrait (768px - 991px) */
@media (max-width: 991px) {
    :root {
        --section-padding: 80px 0;
    }
    
    .container {
        max-width: 720px;
        padding: 0 25px;
    }
    
    /* Navigation */
    .nav-menu {
        position: fixed;
        top: 100%;
        left: 0;
        width: 100%;
        background-color: var(--soft-white);
        flex-direction: column;
        padding: 2rem 0;
        box-shadow: var(--shadow-medium);
        transform: translateY(-100%);
        opacity: 0;
        visibility: hidden;
        transition: var(--transition-smooth);
        z-index: 999;
    }
    
    .nav-menu.active {
        transform: translateY(0);
        opacity: 1;
        visibility: visible;
    }
    
    .nav-menu li {
        margin: 0.5rem 0;
    }
    
    .hamburger {
        display: flex;
    }
    
    .hamburger.active span:nth-child(1) {
        transform: rotate(45deg) translate(5px, 5px);
    }
    
    .hamburger.active span:nth-child(2) {
        opacity: 0;
    }
    
    .hamburger.active span:nth-child(3) {
        transform: rotate(-45deg) translate(7px, -6px);
    }
    
    /* Hero */
    .hero-content {
        padding: 0 1.5rem;
    }
    
    .hero-title {
        font-size: 2.8rem;
        margin-bottom: 1.5rem;
    }
    
    .hero-subtitle {
        font-size: 1.1rem;
        margin-bottom: 2.5rem;
    }
    
    .hero-buttons {
        flex-direction: column;
        gap: 1.2rem;
    }
    
    .btn {
        padding: 16px 32px;
        font-size: 0.95rem;
    }
    
    /* Sections */
    .section-header {
        margin-bottom: 3rem;
    }
    
    .section-title {
        font-size: 2.5rem;
    }
    
    .section-subtitle {
        font-size: 1rem;
    }
    
    /* Services */
    .services-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .service-card {
        padding: 2.5rem 1.5rem;
    }
    
    .service-icon {
        width: 70px;
        height: 70px;
        font-size: 1.8rem;
    }
    
    /* Portfolio */
    .portfolio-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .portfolio-item {
        height: 350px;
    }
    
    /* Process */
    .process-step {
        flex-direction: column;
        text-align: center;
        gap: 1rem;
    }
    
    .process-step:not(:last-child)::after {
        left: 50%;
        top: 80px;
        transform: translateX(-50%);
        height: 40px;
    }
    
    .step-number {
        margin: 0 auto;
    }
    
    /* Testimonials */
    .testimonials-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .testimonial-card {
        padding: 2.5rem 1.5rem;
    }
    
    /* Footer */
    .footer-content {
        grid-template-columns: repeat(2, 1fr);
        gap: 2.5rem;
    }
}

/* Mobile Large (576px - 767px) */
@media (max-width: 767px) {
    :root {
        --section-padding: 60px 0;
    }
    
    .container {
        max-width: 540px;
        padding: 0 20px;
    }
    
    /* Navigation */
    .nav-container {
        padding: 0 20px;
    }
    
    .nav-logo h1 {
        font-size: 1.5rem;
    }
    
    .nav-logo .tagline {
        font-size: 0.7rem;
    }
    
    .nav-actions {
        gap: 1rem;
    }
    
    .language-switcher {
        order: -1;
    }
    
    /* Hero */
    .hero {
        height: 100vh;
        min-height: 600px;
    }
    
    .hero-content {
        padding: 0 1rem;
    }
    
    .hero-title {
        font-size: 2.2rem;
        line-height: 1.2;
    }
    
    .hero-subtitle {
        font-size: 1rem;
    }
    
    .btn {
        padding: 14px 28px;
        font-size: 0.9rem;
        width: 100%;
        max-width: 280px;
    }
    
    /* Sections */
    .section-title {
        font-size: 2rem;
    }
    
    .section-subtitle {
        font-size: 0.95rem;
    }
    
    /* Service Cards */
    .service-card {
        padding: 2rem 1rem;
    }
    
    .service-icon {
        width: 60px;
        height: 60px;
        font-size: 1.5rem;
        margin-bottom: 1.5rem;
    }
    
    /* Portfolio */
    .portfolio-item {
        height: 300px;
    }
    
    .portfolio-overlay {
        padding: 1.5rem;
    }
    
    .portfolio-overlay h4 {
        font-size: 1.2rem;
    }
    
    /* Process */
    .process-timeline {
        padding: 0 1rem;
    }
    
    .step-number {
        width: 60px;
        height: 60px;
        font-size: 1.2rem;
    }
    
    .process-step:not(:last-child)::after {
        height: 30px;
        top: 70px;
    }
    
    /* Testimonials */
    .testimonial-card {
        padding: 2rem 1rem;
    }
    
    .testimonial-content p {
        font-size: 1rem;
    }
    
    /* CTA */
    .cta h2 {
        font-size: 2rem;
    }
    
    .cta p {
        font-size: 1rem;
    }
    
    /* Footer */
    .footer {
        padding: 3rem 0 1.5rem;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        gap: 2rem;
        text-align: center;
    }
    
    .social-links {
        justify-content: center;
    }
}

/* Mobile Small (480px - 575px) */
@media (max-width: 575px) {
    .container {
        max-width: 100%;
        padding: 0 15px;
    }
    
    .nav-container {
        padding: 0 15px;
    }
    
    .hero-title {
        font-size: 1.9rem;
    }
    
    .hero-subtitle {
        font-size: 0.95rem;
    }
    
    .section-title {
        font-size: 1.8rem;
    }
    
    .btn {
        padding: 12px 24px;
        font-size: 0.85rem;
    }
    
    .service-card {
        padding: 1.5rem 0.8rem;
    }
    
    .testimonial-card {
        padding: 1.5rem 1rem;
    }
    
    .portfolio-item {
        height: 250px;
    }
    
    .process-step {
        margin-bottom: 2.5rem;
    }
    
    .step-number {
        width: 50px;
        height: 50px;
        font-size: 1rem;
    }
    
    .process-step:not(:last-child)::after {
        height: 20px;
        top: 60px;
    }
}

/* Mobile Extra Small (320px - 479px) */
@media (max-width: 479px) {
    .container {
        padding: 0 10px;
    }
    
    .nav-container {
        padding: 0 10px;
    }
    
    .hero-content {
        padding: 0 0.5rem;
    }
    
    .hero-title {
        font-size: 1.7rem;
    }
    
    .hero-subtitle {
        font-size: 0.9rem;
    }
    
    .section-title {
        font-size: 1.6rem;
    }
    
    .section-subtitle {
        font-size: 0.9rem;
    }
    
    .service-card {
        padding: 1.5rem 0.5rem;
    }
    
    .service-icon {
        width: 50px;
        height: 50px;
        font-size: 1.2rem;
    }
    
    .btn {
        padding: 10px 20px;
        font-size: 0.8rem;
        letter-spacing: 0.5px;
    }
    
    .testimonial-card {
        padding: 1.2rem 0.8rem;
    }
    
    .testimonial-content p {
        font-size: 0.95rem;
    }
    
    .cta h2 {
        font-size: 1.6rem;
    }
    
    .cta p {
        font-size: 0.9rem;
    }
}

/* High DPI / Retina Displays */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
    .hero-background,
    .portfolio-image {
        background-attachment: scroll;
    }
}

/* Reduced Motion */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    
    .scroll-indicator {
        animation: none;
    }
    
    .hero-background {
        animation: none;
    }
}

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

/* High Contrast Mode */
@media (prefers-contrast: high) {
    :root {
        --shadow-soft: 0 2px 8px rgba(0, 0, 0, 0.3);
        --shadow-medium: 0 4px 16px rgba(0, 0, 0, 0.4);
        --shadow-strong: 0 6px 24px rgba(0, 0, 0, 0.5);
    }
    
    .btn {
        border-width: 3px;
    }
    
    .nav-menu a::after {
        height: 3px;
    }
}

/* Print Styles */
@media print {
    .header,
    .scroll-indicator,
    .btn,
    .social-links,
    .hamburger,
    .language-switcher {
        display: none !important;
    }
    
    body {
        color: #000;
        background: #fff;
    }
    
    .hero {
        height: auto;
        page-break-after: always;
    }
    
    section {
        padding: 2rem 0;
        page-break-inside: avoid;
    }
    
    .section-title {
        color: #000;
    }
    
    .footer {
        background: #fff;
        color: #000;
    }
}