/* Responsive Design */

/* Tablet Styles */
@media (max-width: 768px) {
    .container {
        padding: 0 15px;
    }

    h1 { font-size: 2rem; }
    h2 { font-size: 1.75rem; }
    .section-title { font-size: 2rem; }

    /* Navigation */
    .menu-toggle {
        display: flex;
    }

    .nav-menu {
        position: fixed;
        top: 100%;
        left: 0;
        width: 100%;
        height: 0;
        background: white;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        overflow: hidden;
        transition: height 0.3s ease;
        box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    }

    .nav-menu.active {
        height: 300px;
    }

    .nav-menu li {
        margin: 1rem 0;
    }

    /* Hero Section */
    .hero {
        height: auto;
        padding: 100px 0 60px;
        text-align: center;
    }

    .hero-content {
        max-width: 100%;
        margin-bottom: 2rem;
    }

    .hero-title {
        font-size: 2.5rem;
    }

    .hero-image {
        position: static;
        width: 300px;
        height: 300px;
        margin: 0 auto;
    }

    .hero-buttons {
        justify-content: center;
    }

    /* Grid Layouts */
    .features-grid,
    .products-grid,
    .news-grid,
    .mission-vision-grid,
    .team-grid,
    .contact-grid,
    .certifications-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    /* Story Section */
    .story-content {
        grid-template-columns: 1fr;
        gap: 2rem;
        text-align: center;
    }

    /* Contact Section */
    .contact-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    /* Filters */
    .filters-container {
        flex-direction: column;
        align-items: stretch;
    }

    .search-box {
        min-width: auto;
        margin-bottom: 1rem;
    }

    .filter-buttons {
        justify-content: center;
    }

    /* Timeline */
    .timeline::before {
        left: 30px;
    }

    .timeline-item {
        margin-left: 60px;
        margin-bottom: 2rem;
    }

    .timeline-item:nth-child(even) .timeline-content,
    .timeline-item:nth-child(odd) .timeline-content {
        margin-left: 0;
        margin-right: 0;
        padding-left: 0;
        padding-right: 0;
        text-align: left;
    }

    .timeline-marker {
        left: 30px;
    }

    /* Footer */
    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .footer-logo {
        justify-content: center;
    }

    .social-links {
        justify-content: center;
    }
}

/* Mobile Styles */
@media (max-width: 480px) {
    .container {
        padding: 0 10px;
    }

    h1 { font-size: 1.75rem; }
    h2 { font-size: 1.5rem; }
    .section-title { font-size: 1.75rem; }

    .page-title {
        font-size: 2.25rem;
    }

    /* Hero */
    .hero-title {
        font-size: 2rem;
    }

    .hero-subtitle {
        font-size: 1rem;
    }

    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }

    .btn {
        width: 100%;
        max-width: 250px;
    }

    .hero-image {
        width: 250px;
        height: 250px;
    }

    /* Cards */
    .feature-card,
    .product-card,
    .news-card,
    .mission-card,
    .contact-card,
    .certification-item,
    .team-member {
        padding: 1.5rem;
    }

    /* Forms */
    .form-row {
        grid-template-columns: 1fr;
        gap: 0;
    }

    .contact-form {
        padding: 1.5rem;
    }

    /* Product Cards */
    .product-price {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }

    .product-rating {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.25rem;
    }

    /* Footer */
    .footer-section {
        margin-bottom: 2rem;
    }

    /* FAQ */
    .faq-question {
        padding: 1rem;
        font-size: 0.9rem;
    }

    .faq-answer {
        padding: 0 1rem 1rem;
    }

    /* Menu Toggle Animation */
    .menu-toggle.active span:nth-child(1) {
        transform: rotate(-45deg) translate(-5px, 6px);
    }

    .menu-toggle.active span:nth-child(2) {
        opacity: 0;
    }

    .menu-toggle.active span:nth-child(3) {
        transform: rotate(45deg) translate(-5px, -6px);
    }
}

/* Extra Small Screens */
@media (max-width: 360px) {
    .hero-title {
        font-size: 1.75rem;
    }

    .page-title {
        font-size: 2rem;
    }

    .section-title {
        font-size: 1.5rem;
    }

    .btn {
        padding: 10px 20px;
        font-size: 0.9rem;
    }

    .feature-card,
    .product-card,
    .news-card {
        padding: 1rem;
    }

    .product-img,
    .news-img {
        height: 150px;
    }
}

/* Large Screens */
@media (min-width: 1200px) {
    .container {
        max-width: 1400px;
    }

    .hero-title {
        font-size: 4rem;
    }

    .hero-subtitle {
        font-size: 1.5rem;
    }

    .section-title {
        font-size: 3rem;
    }
}

/* Print Styles */
@media print {
    .header,
    .footer,
    .btn,
    .menu-toggle,
    .social-links,
    .hero-image {
        display: none !important;
    }

    .hero {
        background: white !important;
        color: black !important;
        height: auto !important;
        padding: 20px !important;
    }

    body {
        font-size: 12pt;
        line-height: 1.4;
    }

    .container {
        max-width: none;
        padding: 0;
    }

    .section-title {
        page-break-after: avoid;
    }

    .feature-card,
    .product-card,
    .news-card {
        break-inside: avoid;
        box-shadow: none !important;
        border: 1px solid #ccc;
    }
}
