/* Responsive Design */

/* Large Desktop */
@media (min-width: 1400px) {
    .container {
        max-width: 1400px;
    }

    h1 {
        font-size: 3.5rem;
    }

    h2 {
        font-size: 3rem;
    }
}

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

    .hero {
        flex-direction: column;
        text-align: center;
    }

    .hero-content {
        padding-right: 0;
        margin-bottom: 2rem;
    }

    .story-content,
    .excellence-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
}

/* Tablet */
@media (max-width: 768px) {
    .container {
        padding: 0 15px;
    }

    .nav-link {
        color: #000 !important;
    }

    h1 {
        font-size: 2.5rem;
    }

    h2 {
        font-size: 2rem;
    }

    .navbar .container {
        height: 70px;
        padding: 0 20px;
    }

    /* Navigation */
    .nav-menu {
        position: fixed;
        top: 0;
        left: -100%;
        width: 80%;
        max-width: 320px;
        height: 100vh;
        background: rgba(255, 255, 255, 0.98);
        backdrop-filter: blur(25px);
        -webkit-backdrop-filter: blur(25px);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        padding: 4rem 2rem;
        transition: all 0.5s cubic-bezier(0.77, 0, 0.175, 1);
        box-shadow: 20px 0 50px rgba(0, 0, 0, 0.1);
        border-radius: 0 40px 40px 0;
        z-index: 1000;
    }

    .nav-indicator {
        display: none !important;
    }

    .nav-menu.active {
        left: 0;
    }

    .nav-list {
        flex-direction: column;
        width: 100%;
        text-align: center;
        gap: 1rem;
    }

    .nav-link {
        display: block;
        padding: 1rem;
        font-size: 1.25rem;
        font-weight: 700;
        color: var(--color-text-main);
        text-align: center;
        border-radius: 15px;
    }

    .nav-link.active {
        background: var(--color-primary);
        color: white;
    }

    .nav-toggle {
        display: flex;
        z-index: 1001;
        color: #fff;
        background-color: #fff;
    }

    .nav-toggle.active span:nth-child(1) {
        transform: rotate(-45deg) translate(-5px, 6px);
    }

    .nav-toggle.active span:nth-child(2) {
        opacity: 0;
    }

    .nav-toggle.active span:nth-child(3) {
        transform: rotate(45deg) translate(-5px, -6px);
    }

    /* Hero Section */
    .hero {
        padding: 2rem 0;
        min-height: auto;
    }

    .hero-buttons {
        justify-content: center;
    }

    /* Process Section */
    .process-step {
        flex-direction: column;
        text-align: center;
        padding: 1.5rem;
    }

    .step-number {
        margin-right: 0;
        margin-bottom: 1rem;
    }

    /* Products Grid */
    .products-grid {
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
        gap: 1.5rem;
    }

    /* Benefits Grid */
    .benefits-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    /* Contact Grid */
    .contact-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    /* Footer */
    .footer-bottom-content {
        flex-direction: column;
        text-align: center;
        gap: 1rem;
    }

    .footer-bottom-links {
        justify-content: center;
    }

    /* CTA Buttons */
    .cta-buttons {
        flex-direction: column;
        align-items: center;
    }

    .cta-buttons .btn {
        width: 100%;
        max-width: 300px;
    }
}

/* Mobile */
@media (max-width: 480px) {
    .container {
        padding: 0 10px;
    }

    h1 {
        font-size: 2rem;
    }

    h2 {
        font-size: 1.8rem;
    }

    h3 {
        font-size: 1.3rem;
    }

    /* Buttons */
    .btn {
        padding: 10px 20px;
        font-size: 0.9rem;
    }

    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }

    .hero-buttons .btn {
        width: 100%;
        max-width: 250px;
    }

    /* Process Steps */
    .process-step {
        padding: 1rem;
    }

    .step-number {
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }

    /* Product Cards */
    .product-card {
        padding: 1.5rem;
    }

    .product-image img {
        height: 150px;
    }

    /* Team Members */
    .member-image img {
        width: 120px;
        height: 120px;
    }

    /* Contact Form */
    .contact-form {
        padding: 1.5rem;
    }

    /* Footer */
    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .social-links {
        justify-content: center;
    }

    /* Back to Top */
    .back-to-top {
        bottom: 1rem;
        right: 1rem;
        width: 45px;
        height: 45px;
    }

    /* Impact Stats */
    .impact-stats {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }

    .stat-item {
        padding: 1.5rem;
    }

    .stat-number {
        font-size: 2.5rem;
    }

    /* Certifications */
    .cert-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }

    .cert-item {
        padding: 1.5rem;
    }

    /* FAQ */
    .faq-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .faq-item {
        padding: 1.5rem;
    }
}

/* Small Mobile */
@media (max-width: 320px) {
    .container {
        padding: 0 5px;
    }

    h1 {
        font-size: 1.8rem;
    }

    h2 {
        font-size: 1.5rem;
    }

    .btn {
        padding: 8px 16px;
        font-size: 0.8rem;
    }

    .process-step,
    .product-card,
    .benefit-item,
    .mvv-item,
    .team-member,
    .cert-item,
    .stat-item,
    .faq-item {
        padding: 1rem;
    }

    .contact-form {
        padding: 1rem;
    }

    .impact-stats,
    .cert-grid {
        grid-template-columns: 1fr;
    }
}

/* Print Styles */
@media print {

    .header,
    .footer,
    .back-to-top,
    .nav-toggle {
        display: none;
    }

    .main-content {
        margin-top: 0;
    }

    body {
        font-size: 12pt;
        line-height: 1.4;
    }

    h1,
    h2,
    h3 {
        page-break-after: avoid;
    }

    .hero,
    .process-section,
    .products-section,
    .benefits-section,
    .cta-section {
        page-break-inside: avoid;
    }
}

/* High Contrast Mode */
@media (prefers-contrast: high) {
    .btn-primary {
        background: #000;
        color: #fff;
        border: 2px solid #000;
    }

    .btn-secondary {
        background: #fff;
        color: #000;
        border: 2px solid #000;
    }

    .nav-link:hover,
    .nav-link.active {
        background: #000;
        color: #fff;
    }
}

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

    html {
        scroll-behavior: auto;
    }
}

/* Dark Mode Support */
@media (prefers-color-scheme: dark) {
    body {
        background-color: #1a1a1a;
        color: #e0e0e0;
    }

    .header {
        background: #2a2a2a;
        box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
    }

    .nav-link {
        color: #fff;
    }

    .hero {
        background: linear-gradient(135deg, #2a2a2a, #1a1a1a);
    }

    .process-section,
    .products-section,
    .benefits-section,
    .manufacturing-excellence,
    .team-section,
    .contact-content {
        background: #2a2a2a;
    }

    .mission-vision,
    .environmental-impact,
    .certifications,
    .faq-section {
        background: #1a1a1a;
    }

    .process-step,
    .product-card,
    .benefit-item,
    .mvv-item,
    .team-member,
    .cert-item,
    .stat-item,
    .faq-item {
        background: #b6a48e;
        color: #e0e0e0;
    }

    .contact-form {
        background: #3a3a3a;
    }

    .form-group input,
    .form-group select,
    .form-group textarea {
        background: #2a2a2a;
        color: #e0e0e0;
        border-color: #555;
    }

    .footer {
        background: #1a1a1a;
    }
}