/* ===== RESPONSIVE DESIGN ===== */

/* Tablet Styles (768px and below) */
@media screen and (max-width: 768px) {
    
    /* Navigation */
    .nav-menu {
        position: fixed;
        left: -100%;
        top: 70px;
        flex-direction: column;
        background-color: white;
        width: 100%;
        text-align: center;
        transition: 0.3s;
        box-shadow: 0 10px 27px rgba(0, 0, 0, 0.05);
        padding: 2rem 0;
    }

    .nav-menu.active {
        left: 0;
    }

    .nav-menu li {
        margin: 1rem 0;
    }

    .nav-toggle {
        display: flex;
    }

    .nav-toggle.active .bar:nth-child(2) {
        opacity: 0;
    }

    .nav-toggle.active .bar:nth-child(1) {
        transform: translateY(8px) rotate(45deg);
    }

    .nav-toggle.active .bar:nth-child(3) {
        transform: translateY(-8px) rotate(-45deg);
    }

    /* Hero Section */
    .hero-title {
        font-size: 2.5rem;
    }

    .hero-subtitle {
        font-size: 1.1rem;
    }

    .hero-content {
        padding: 0 1rem;
    }

    /* Welcome Section */
    .welcome {
        padding: 4rem 0;
    }

    .welcome-content {
        grid-template-columns: 1fr;
        gap: 2rem;
        text-align: center;
    }

    .welcome-text h2 {
        text-align: center;
    }

    .welcome-features {
        justify-content: center;
        flex-wrap: wrap;
        gap: 1rem;
    }

    /* Featured Products */
    .featured-products {
        padding: 4rem 0;
    }

    .products-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    /* Services */
    .services {
        padding: 4rem 0;
    }

    .services-grid {
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
        gap: 1.5rem;
    }

    .service-item {
        padding: 1.5rem;
    }

    /* Gallery */
    .gallery {
        padding: 4rem 0;
    }

    .gallery-grid {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    }

    /* Owner Section */
    .owner {
        padding: 4rem 0;
    }

    .owner-content {
        grid-template-columns: 1fr;
        gap: 2rem;
        text-align: center;
    }

    .owner-text h2 {
        text-align: center;
    }

    .owner-image {
        text-align: center;
    }

    .owner-image img {
        max-width: 250px;
        height: 250px;
    }

    /* Contact Info */
    .contact-info {
        padding: 4rem 0;
    }

    .contact-grid {
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
        gap: 1.5rem;
    }

    .contact-item {
        padding: 1.5rem;
    }

    /* Footer */
    .footer-content {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        text-align: center;
    }

    .social-links {
        justify-content: center;
    }

    /* Section Titles */
    .section-title {
        font-size: 2rem;
        margin-bottom: 2rem;
    }

    /* About Page Responsive */
    .about-hero {
        height: 50vh;
    }

    .story-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .timeline-item {
        flex-direction: column;
        text-align: center;
    }

    .timeline-year {
        min-width: auto;
        width: 100px;
        margin: 0 auto;
    }

    .mv-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .mv-item {
        padding: 2rem;
    }

    .values-grid {
        grid-template-columns: 1fr;
    }

    .team-grid {
        grid-template-columns: 1fr;
    }

    .awards-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Mobile Styles (480px and below) */
@media screen and (max-width: 480px) {
    
    /* Container */
    .container {
        padding: 0 15px;
    }

    /* Navigation */
    .nav-container {
        padding: 0 15px;
    }

    .nav-logo h2 {
        font-size: 1.5rem;
    }

    /* Hero Section */
    .hero-title {
        font-size: 2rem;
    }

    .hero-subtitle {
        font-size: 1rem;
        margin-bottom: 1.5rem;
    }

    .hero-btn {
        padding: 12px 25px;
        font-size: 1rem;
    }

    .hero-content {
        padding: 0 15px;
    }

    /* Welcome Section */
    .welcome {
        padding: 3rem 0;
    }

    .welcome-features {
        flex-direction: column;
        align-items: center;
        gap: 1rem;
    }

    /* Featured Products */
    .featured-products {
        padding: 3rem 0;
    }

    .product-info {
        padding: 1rem;
    }

    .product-name {
        font-size: 1.1rem;
    }

    .product-price {
        font-size: 1.3rem;
    }

    /* Services */
    .services {
        padding: 3rem 0;
    }

    .services-grid {
        grid-template-columns: 1fr;
    }

    .service-icon {
        width: 60px;
        height: 60px;
        font-size: 1.5rem;
    }

    .service-title {
        font-size: 1.1rem;
    }

    /* Gallery */
    .gallery {
        padding: 3rem 0;
    }

    .gallery-grid {
        grid-template-columns: 1fr;
        gap: 0.5rem;
    }

    .gallery-item img {
        height: 250px;
    }

    /* Owner Section */
    .owner {
        padding: 3rem 0;
    }

    .owner-image img {
        max-width: 200px;
        height: 200px;
    }

    .owner-quote {
        font-size: 1rem;
        padding-left: 1.5rem;
    }

    /* Contact Info */
    .contact-info {
        padding: 3rem 0;
    }

    .contact-grid {
        grid-template-columns: 1fr;
    }

    .contact-icon {
        width: 50px;
        height: 50px;
        font-size: 1.2rem;
    }

    /* Footer */
    .footer {
        padding: 2rem 0 1rem;
    }

    .footer-section h3 {
        font-size: 1.3rem;
    }

    .social-link {
        width: 35px;
        height: 35px;
    }

    /* Section Titles */
    .section-title {
        font-size: 1.8rem;
        margin-bottom: 1.5rem;
    }

    .section-title::after {
        width: 60px;
        height: 2px;
    }

    .awards-grid {
        grid-template-columns: 1fr;
    }

    .timeline-year {
        font-size: 1.5rem;
        padding: 0.8rem;
    }

    .mv-item {
        padding: 1.5rem;
    }

    .mv-item h3 {
        font-size: 1.5rem;
    }

    .team-member .member-info {
        padding: 1.5rem;
    }

    /* Menu Section */
    .menu-section {
        padding: 80px 0 60px;
    }

    .menu-search {
        margin-bottom: 40px;
        padding: 0 20px;
    }

    .search-container {
        max-width: 100%;
    }

    .category-title {
        font-size: 1.5rem;
        margin-bottom: 20px;
    }

    .menu-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
        max-width: 100%;
        padding: 0 10px;
    }

    .menu-item-image {
        height: 120px;
    }

    .menu-item-content {
        padding: 15px;
    }

    .menu-item-title {
        font-size: 1rem;
    }

    .menu-item-price {
        font-size: 1.1rem;
    }

    /* WhatsApp Button */
    .whatsapp-btn {
        width: 50px;
        height: 50px;
        font-size: 1.5rem;
        bottom: 20px;
        right: 20px;
    }
}

/* Desktop Styles (1024px and above) */
@media screen and (min-width: 1024px) {
    .container {
        max-width: 1200px;
    }

    .hero-title {
        font-size: 4rem;
    }

    .hero-subtitle {
        font-size: 1.4rem;
    }

    .products-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .services-grid {
        grid-template-columns: repeat(3, 1fr);
        justify-content: center;
        margin: 0 auto;
    }

    .gallery-grid {
        grid-template-columns: repeat(4, 1fr);
    }

    .contact-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .footer-content {
        grid-template-columns: repeat(4, 1fr);
    }

    .mv-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .values-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .team-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .awards-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .contact-form-container {
        grid-template-columns: 1fr 1fr;
    }

    /* Menu Desktop Layout */
    .menu-grid {
        grid-template-columns: repeat(4, 1fr);
        gap: 25px;
        max-width: 1200px;
    }

    .menu-item-image {
        height: 180px;
    }

    .category-title {
        font-size: 2.2rem;
    }
}

/* Large Desktop Styles (1400px and above) */
@media screen and (min-width: 1400px) {
    .container {
        max-width: 1400px;
    }

    .hero-title {
        font-size: 4rem;
    }

    .hero-subtitle {
        font-size: 1.5rem;
    }

    .section-title {
        font-size: 3rem;
    }

    .products-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .services-grid {
        grid-template-columns: repeat(3, 1fr);
        justify-content: center;
        margin: 0 auto;
    }

    .gallery-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

/* Touch Device Optimizations */
@media (hover: none) and (pointer: coarse) {
    .product-overlay,
    .gallery-overlay {
        opacity: 0.8;
    }

    .product-card:hover,
    .service-item:hover,
    .contact-item:hover {
        transform: none;
    }

    .hero-btn:hover,
    .product-btn:hover,
    .social-link:hover {
        transform: none;
    }
}

/* High DPI Displays */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
    .hero-title,
    .section-title {
        -webkit-font-smoothing: antialiased;
        -moz-osx-font-smoothing: grayscale;
    }
}

/* Landscape Mobile Orientation */
@media screen and (max-height: 500px) and (orientation: landscape) {
    .hero {
        height: 100vh;
    }

    .hero-title {
        font-size: 2rem;
    }

    .hero-subtitle {
        font-size: 1rem;
        margin-bottom: 1rem;
    }

    .hero-btn {
        padding: 10px 20px;
        font-size: 0.9rem;
    }
}

/* Print Styles */
@media print {
    .header,
    .nav-toggle {
        display: none;
    }

    .hero {
        height: auto;
        page-break-inside: avoid;
    }

    .section-title {
        color: #000 !important;
    }

    .footer {
        background: none !important;
        color: #000 !important;
    }
}