/* Mobile-First Responsive Design */

/* Small devices (landscape phones, 576px and up) */
@media (max-width: 575.98px) {
    .container {
        padding: 0 15px;
    }
    
    /* Typography */
    h1 {
        font-size: 2.2rem;
    }
    
    h2 {
        font-size: 2rem;
    }
    
    h3 {
        font-size: 1.6rem;
    }
    
    h4 {
        font-size: 1.3rem;
    }
    
    /* Header */
    .nav-menu {
        position: fixed;
        top: 80px;
        left: -100%;
        width: 100%;
        height: calc(100vh - 80px);
        background-color: rgba(0, 0, 0, 0.95);
        flex-direction: column;
        justify-content: flex-start;
        align-items: center;
        padding-top: 2rem;
        transition: left 0.3s ease;
        box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    }
    
    .nav-menu.active {
        left: 0;
    }
    
    .nav-menu li {
        margin: 1rem 0;
    }
    
    .nav-menu a {
        font-size: 1.2rem;
        padding: 1rem;
    }
    
    .hamburger {
        display: flex;
    }
    
    .hamburger.active span:nth-child(1) {
        transform: rotate(-45deg) translate(-5px, 6px);
    }
    
    .hamburger.active span:nth-child(2) {
        opacity: 0;
    }
    
    .hamburger.active span:nth-child(3) {
        transform: rotate(45deg) translate(-5px, -6px);
    }
    
    /* Hero Section */
    .hero {
        min-height: 80vh;
        padding: 2rem 0;
    }
    
    .hero-content h1 {
        font-size: 2.5rem;
        line-height: 1.2;
    }
    
    .hero-content p {
        font-size: 1.1rem;
    }
    
    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .hero-buttons .btn {
        width: 100%;
        max-width: 300px;
        text-align: center;
    }
    
    /* Page Header */
    .page-header {
        padding: 100px 0 40px;
    }
    
    .page-header h1 {
        font-size: 2.2rem;
    }
    
    .page-header p {
        font-size: 1.1rem;
    }
    
    /* Sections */
    section {
        padding: 50px 0;
    }
    
    .section-header {
        margin-bottom: 3rem;
    }
    
    /* Grid adjustments */
    .features-grid,
    .services-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .service-card {
        margin: 0 auto;
        max-width: 400px;
    }
    
    /* Service Detail */
    .service-content {
        flex-direction: column;
        gap: 2rem;
        text-align: center;
    }
    
    .service-detail.reverse .service-content {
        flex-direction: column;
    }
    
    .service-text {
        order: 2;
    }
    
    .service-image {
        order: 1;
        max-width: 100%;
    }
    
    .service-detail.reverse .service-text {
        order: 2;
    }
    
    .service-detail.reverse .service-image {
        order: 1;
    }
    
    /* Process steps */
    .process-steps {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    /* About section */
    .about-content {
        flex-direction: column;
        gap: 2rem;
        text-align: center;
    }
    
    .about-stats {
        justify-content: center;
        gap: 1.5rem;
    }
    
    /* Mission & Vision */
    .mv-grid {
        grid-template-columns: 1fr;
    }
    
    /* Expertise */
    .expertise-grid {
        grid-template-columns: 1fr;
    }
    
    .expertise-item {
        flex-direction: column;
        text-align: center;
        gap: 1rem;
    }
    
    /* Company Info */
    .info-grid {
        grid-template-columns: 1fr;
    }
    
    /* Contact */
    .contact-wrapper {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .form-row {
        grid-template-columns: 1fr;
    }
    
    .contact-image {
        margin-top: 1rem;
    }
    
    /* FAQ */
    .faq-grid {
        grid-template-columns: 1fr;
    }
    
    /* Footer */
    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 2rem;
    }
    
    .social-links {
        justify-content: center;
    }
    
    /* Cookie Consent */
    .cookie-content {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }
    
    .cookie-buttons {
        flex-direction: column;
        width: 100%;
    }
    
    .cookie-buttons .btn {
        width: 100%;
    }
    
    /* Legal navigation */
    .legal-navigation {
        flex-direction: column;
        gap: 1rem;
    }
    
    .legal-navigation a {
        text-align: center;
    }
}

/* Medium devices (tablets, 768px and up) */
@media (min-width: 576px) and (max-width: 767.98px) {
    .container {
        padding: 0 20px;
    }
    
    /* Header */
    .nav-menu {
        position: fixed;
        top: 80px;
        left: -100%;
        width: 100%;
        height: calc(100vh - 80px);
        background-color: rgba(0, 0, 0, 0.95);
        flex-direction: column;
        justify-content: flex-start;
        align-items: center;
        padding-top: 2rem;
        transition: left 0.3s ease;
        box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    }
    
    .nav-menu.active {
        left: 0;
    }
    
    .hamburger {
        display: flex;
    }
    
    /* Hero */
    .hero-content h1 {
        font-size: 3rem;
    }
    
    /* Grid adjustments */
    .features-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .services-grid {
        grid-template-columns: 1fr;
        max-width: 500px;
        margin: 0 auto;
    }
    
    /* Service Detail */
    .service-content {
        flex-direction: column;
        gap: 3rem;
        text-align: center;
    }
    
    .service-detail.reverse .service-content {
        flex-direction: column;
    }
    
    /* About */
    .about-content {
        flex-direction: column;
        gap: 3rem;
        text-align: center;
    }
    
    /* Process */
    .process-steps {
        grid-template-columns: repeat(2, 1fr);
    }
    
    /* Mission & Vision */
    .mv-grid {
        grid-template-columns: 1fr;
        max-width: 500px;
        margin: 0 auto;
    }
    
    /* Expertise */
    .expertise-grid {
        grid-template-columns: 1fr;
        max-width: 600px;
        margin: 0 auto;
    }
    
    /* Company Info */
    .info-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    /* Contact */
    .contact-wrapper {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
    
    /* Footer */
    .footer-content {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Large devices (desktops, 992px and up) */
@media (min-width: 768px) and (max-width: 991.98px) {
    /* Service Detail */
    .service-content {
        gap: 3rem;
    }
    
    .service-image {
        max-width: 400px;
    }
    
    /* About */
    .about-content {
        gap: 3rem;
    }
    
    .about-image {
        max-width: 400px;
    }
    
    /* Contact */
    .contact-wrapper {
        gap: 3rem;
    }
    
    /* Process */
    .process-steps {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* Extra large devices (large desktops, 1200px and up) */
@media (min-width: 1200px) {
    .container {
        max-width: 1400px;
    }
    
    /* Hero */
    .hero-content h1 {
        font-size: 4rem;
    }
    
    .hero-content p {
        font-size: 1.3rem;
    }
    
    /* Page Header */
    .page-header h1 {
        font-size: 3.5rem;
    }
    
    .page-header p {
        font-size: 1.3rem;
    }
    
    /* Sections */
    section {
        padding: 100px 0;
    }
    
    .section-header {
        margin-bottom: 5rem;
    }
    
    /* Service content */
    .service-content {
        gap: 5rem;
    }
    
    /* About content */
    .about-content {
        gap: 5rem;
    }
    
    /* Contact */
    .contact-wrapper {
        gap: 5rem;
    }
}

/* Print styles */
@media print {
    .header,
    .footer,
    .cookie-consent,
    .hero-buttons,
    .btn,
    .social-links {
        display: none !important;
    }
    
    body {
        font-size: 12pt;
        line-height: 1.4;
        color: #000;
        background: #fff;
    }
    
    .container {
        max-width: none;
        padding: 0;
    }
    
    section {
        padding: 20px 0;
        page-break-inside: avoid;
    }
    
    h1, h2, h3, h4 {
        page-break-after: avoid;
        color: #000;
    }
    
    .legal-content {
        max-width: none;
    }
    
    .contact-info a {
        text-decoration: none;
        color: #000;
    }
    
    .contact-info a:after {
        content: " (" attr(href) ")";
        font-size: 10pt;
        color: #666;
    }
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    .btn-primary {
        background-color: #000;
        border: 2px solid #000;
        color: #fff;
    }
    
    .btn-outline {
        border-color: #000;
        color: #000;
    }
    
    .feature-icon,
    .service-icon,
    .mv-icon,
    .expertise-icon,
    .contact-icon,
    .step-number {
        background-color: #000;
        color: #fff;
    }
    
    .hero-background::after {
        background: rgba(0,0,0,0.8);
    }
    
    .cta {
        background: #000;
    }
}

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
    
    .hero-background,
    .feature-card,
    .service-card,
    .btn {
        transform: none !important;
    }
}

/* Focus styles for accessibility */
@media (prefers-reduced-motion: no-preference) {
    .btn:focus,
    .nav-menu a:focus,
    .form-group input:focus,
    .form-group select:focus,
    .form-group textarea:focus {
        outline: 3px solid #007bff;
        outline-offset: 2px;
    }
}

/* Dark mode support */
@media (prefers-color-scheme: dark) {
    :root {
        --bg-color: #1a1a1a;
        --text-color: #ffffff;
        --card-bg: #2d2d2d;
        --border-color: #404040;
    }
    
    body {
        background-color: var(--bg-color);
        color: var(--text-color);
    }
    
    .header {
        background-color: var(--card-bg);
        border-bottom: 1px solid var(--border-color);
    }
    
    .feature-card,
    .service-card,
    .mv-card,
    .info-item,
    .faq-item,
    .contact-form,
    .expertise-item {
        background-color: var(--card-bg);
        border: 1px solid var(--border-color);
    }
    
    .form-group input,
    .form-group select,
    .form-group textarea {
        background-color: var(--card-bg);
        border-color: var(--border-color);
        color: var(--text-color);
    }
    
    .features,
    .additional-services,
    .mission-vision,
    .company-info,
    .faq {
        background-color: #0f0f0f;
    }
}
