/* Responsive Design */

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

/* Desktop */
@media (max-width: 1200px) {
    .container {
        max-width: 960px;
    }
    
    .hero-title {
        font-size: 3.5rem;
    }
    
    .hero-stats {
        gap: 3rem;
    }
}

/* Tablet */
@media (max-width: 992px) {
    .container {
        max-width: 720px;
    }
    
    /* Navigation */
    .nav-menu {
        position: fixed;
        top: 0;
        right: -100%;
        width: 300px;
        height: 100vh;
        background-color: var(--white);
        flex-direction: column;
        justify-content: flex-start;
        align-items: flex-start;
        padding: 5rem 2rem 2rem;
        box-shadow: -5px 0 15px rgba(0, 0, 0, 0.1);
        transition: right 0.3s ease;
        z-index: 999;
    }
    
    .nav-menu.active {
        right: 0;
    }
    
    .nav-item {
        width: 100%;
        margin-bottom: 1rem;
    }
    
    .nav-link {
        display: block;
        padding: 0.5rem 0;
        border-bottom: 1px solid var(--light-gray);
    }
    
    .nav-toggle {
        display: flex;
        z-index: 1001;
    }
    
    .nav-toggle.active .bar:nth-child(1) {
        transform: rotate(45deg) translate(5px, 5px);
    }
    
    .nav-toggle.active .bar:nth-child(2) {
        opacity: 0;
    }
    
    .nav-toggle.active .bar:nth-child(3) {
        transform: rotate(-45deg) translate(7px, -6px);
    }
    
    /* Dropdown for mobile */
    .dropdown-menu {
        position: static;
        opacity: 1;
        visibility: visible;
        transform: none;
        box-shadow: none;
        background-color: var(--light-gray);
        margin-top: 0.5rem;
        border-radius: 5px;
    }
    
    /* Hero Section */
    .hero-title {
        font-size: 3rem;
    }
    
    .hero-subtitle {
        font-size: 1.3rem;
    }
    
    .hero-buttons {
        flex-direction: column;
        align-items: center;
        gap: 1rem;
    }
    
    .hero-stats {
        grid-template-columns: repeat(2, 1fr);
        gap: 2rem;
        justify-items: center;
    }
    
    /* About Section */
    .about-content {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
    
    /* Products Section */
    .product-categories {
        grid-template-columns: repeat(2, 1fr);
    }
    
    /* Craftsmanship Section */
    .craftsmanship-content {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
    
    /* Quality Section */
    .quality-content {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
    
    /* Contact Section */
    .contact-content {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
    
    .form-row {
        grid-template-columns: 1fr;
    }
    
    /* Footer */
    .footer-content {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .footer-bottom {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }
}

/* Mobile Large */
@media (max-width: 768px) {
    .container {
        max-width: 540px;
        padding: 0 15px;
    }
    
    /* Typography */
    h1 { font-size: 2.5rem; }
    h2 { font-size: 2rem; }
    h3 { font-size: 1.5rem; }
    
    /* Sections */
    section {
        padding: 3rem 0;
    }
    
    .section-header {
        margin-bottom: 3rem;
    }
    
    /* Hero Section */
    .hero-title {
        font-size: 2.5rem;
        line-height: 1.2;
    }
    
    .hero-subtitle {
        font-size: 1.1rem;
    }
    
    .hero-stats {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
    }
    
    .stat-number {
        font-size: 2.5rem;
    }
    
    /* Products Section */
    .product-categories {
        grid-template-columns: 1fr;
    }
    
    .product-card {
        margin-bottom: 1rem;
    }
    
    /* Features */
    .about-features {
        margin-top: 1.5rem;
    }
    
    .feature-item {
        flex-direction: column;
        text-align: center;
        margin-bottom: 2rem;
    }
    
    .feature-icon {
        margin-bottom: 0.5rem;
    }
    
    /* Timeline */
    .timeline::before {
        left: 15px;
    }
    
    .timeline-item {
        padding-left: 3rem;
    }
    
    .timeline-marker {
        width: 30px;
        height: 30px;
        font-size: 0.9rem;
    }
    
    /* Certifications */
    .cert-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    /* Equipment */
    .equipment-item {
        flex-direction: column;
        text-align: center;
    }
    
    /* Promise Grid */
    .promise-grid {
        grid-template-columns: 1fr;
    }
    
    .promise-item {
        flex-direction: column;
        text-align: center;
    }
    
    /* Footer */
    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .social-links {
        justify-content: center;
    }
    
    .footer-links-bottom {
        flex-direction: column;
        gap: 0.5rem;
    }
}

/* Mobile Medium */
@media (max-width: 576px) {
    .container {
        padding: 0 10px;
    }
    
    /* Navigation */
    .nav-menu {
        width: 100%;
        right: -100%;
    }
    
    .navbar {
        padding: 0.75rem 0;
    }
    
    .brand-text {
        font-size: 1.3rem;
    }
    
    /* Hero Section */
    .hero {
        height: 80vh;
        min-height: 600px;
    }
    
    .hero-title {
        font-size: 2rem;
        margin-bottom: 1rem;
    }
    
    .hero-subtitle {
        font-size: 1rem;
        margin-bottom: 2rem;
    }
    
    .hero-buttons .btn {
        padding: 10px 25px;
        font-size: 0.9rem;
    }
    
    .hero-stats {
        grid-template-columns: 1fr 1fr;
        gap: 1rem;
        margin-top: 2rem;
    }
    
    .stat-number {
        font-size: 2rem;
    }
    
    .stat-label {
        font-size: 0.9rem;
    }
    
    /* Sections */
    section {
        padding: 2.5rem 0;
    }
    
    .section-header {
        margin-bottom: 2rem;
    }
    
    .section-title {
        font-size: 1.8rem;
    }
    
    .section-subtitle {
        font-size: 1rem;
    }
    
    /* About Section */
    .about-description {
        font-size: 1rem;
    }
    
    /* Product Cards */
    .product-content {
        padding: 1.5rem;
    }
    
    .product-features {
        gap: 0.3rem;
    }
    
    .feature-tag {
        font-size: 0.8rem;
        padding: 0.2rem 0.6rem;
    }
    
    /* Craftsmanship */
    .craftsman-story {
        padding: 1.5rem;
    }
    
    .story-image img {
        height: 150px;
    }
    
    /* Contact */
    .contact-item {
        flex-direction: column;
        text-align: center;
        margin-bottom: 1.5rem;
    }
    
    .contact-icon {
        margin-bottom: 0.5rem;
    }
    
    /* Form */
    .form {
        padding: 1.5rem;
    }
    
    .form-group input,
    .form-group select,
    .form-group textarea {
        padding: 10px;
        font-size: 0.9rem;
    }
    
    /* Footer */
    .footer {
        padding: 2rem 0 1rem;
    }
    
    .footer-content {
        gap: 1.5rem;
        margin-bottom: 1.5rem;
    }
    
    /* Back to Top */
    .back-to-top {
        width: 45px;
        height: 45px;
        bottom: 1.5rem;
        right: 1.5rem;
    }
}

/* Mobile Small */
@media (max-width: 480px) {
    /* Hero Section */
    .hero-title {
        font-size: 1.8rem;
    }
    
    .hero-subtitle {
        font-size: 0.95rem;
    }
    
    .hero-stats {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    /* Buttons */
    .btn {
        padding: 8px 20px;
        font-size: 0.9rem;
    }
    
    /* Certifications */
    .cert-grid {
        grid-template-columns: 1fr;
    }
    
    .cert-item {
        padding: 1rem;
    }
    
    .cert-item img {
        width: 60px;
        height: 60px;
    }
    
    /* Timeline */
    .timeline-item {
        padding-left: 2.5rem;
    }
    
    .timeline-marker {
        width: 25px;
        height: 25px;
        font-size: 0.8rem;
    }
    
    .timeline::before {
        left: 12px;
    }
}

/* Print Styles */
@media print {
    .header,
    .nav-toggle,
    .back-to-top,
    .hero-video,
    .scroll-indicator {
        display: none;
    }
    
    .hero {
        height: auto;
        padding: 2rem 0;
        background-color: var(--primary-color);
    }
    
    .hero-overlay {
        display: none;
    }
    
    body {
        font-size: 12pt;
        line-height: 1.4;
    }
    
    .container {
        max-width: 100%;
        padding: 0;
    }
    
    section {
        padding: 1rem 0;
        page-break-inside: avoid;
    }
    
    .section-title {
        font-size: 18pt;
        margin-bottom: 0.5rem;
    }
    
    .product-card,
    .cert-item,
    .equipment-item {
        page-break-inside: avoid;
        margin-bottom: 1rem;
    }
}

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

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

/* Dark Mode Support */
@media (prefers-color-scheme: dark) {
    /* This can be implemented if needed */
}

/* Landscape Orientation for Mobile */
@media (max-width: 768px) and (orientation: landscape) {
    .hero {
        height: 100vh;
    }
    
    .hero-title {
        font-size: 2rem;
    }
    
    .hero-subtitle {
        font-size: 1rem;
    }
    
    .hero-stats {
        grid-template-columns: repeat(4, 1fr);
        gap: 1rem;
    }
}

