/* Reset some deeault styles */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Segoe UI', Arial, sans-serif;
    background: #faf6f2;
    color: #333;
    line-height: 1.6;
}

/* Optimized Navbar */
.navbar {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid #eee;
    position: sticky;
    top: 0;
    z-index: 100;
    transition: background 0.15s ease;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    will-change: background;
}

.navbar.scrolled {
    background: rgba(255, 255, 255, 0.98);
    box-shadow: 0 2px 15px rgba(0,0,0,0.1);
}

.nav-container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0.75rem 1rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo {
    font-size: 1.8rem;
    color: #e14e36;
    text-decoration: none;
    font-weight: bold;
    letter-spacing: 2px;
}

.nav-links {
    list-style: none;
    display: flex;
    gap: 1.5rem;
}

.nav-links li {
    position: relative;
}

.nav-links li a {
    color: #333;
    text-decoration: none;
    padding: 0.5rem;
    position: relative;
    transition: all 0.2s ease;
    display: inline-block;
}

.nav-links li a:hover {
    color: #e14e36;
}

.nav-toggle {
    display: none;
    font-size: 2rem;
    background: none;
    border: none;
    cursor: pointer;
}

/* Hero section with full background coverage */
.hero {
    background-image: url('ChatGPT\ Image\ Aug\ 5\,\ 2025\,\ 10_14_07\ PM.png');
    background-size: cover; /* Changed from 100% to cover to ensure full coverage */
    background-position: center;
    background-repeat: no-repeat;
    min-height: 60vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden; /* Prevent any potential overflow */
    background-color: #e14e36; /* Fallback color that matches overlay */
}

.hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(225, 78, 54, 0.4);
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    color: #fff;
    text-align: center;
}

.hero-content h1 {
    font-size: 3rem;
    margin-bottom: 0.5rem;
    letter-spacing: 2px;
    text-shadow: 1px 1px 3px rgba(0,0,0,0.2);
}

.hero-content p {
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
}

.btn-primary {
    background: #e14e36;
    color: #fff;
    padding: 0.8rem 2rem;
    border: none;
    border-radius: 25px;
    font-size: 1.1rem;
    cursor: pointer;
    text-decoration: none;
    transition: all 0.2s ease;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    display: inline-block;
}

.btn-primary:hover {
    background: #b93923;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(225, 78, 54, 0.3);
}

/* Optimized Sections */
.section {
    padding: 4rem 1rem 3rem 1rem;
    max-width: 1100px;
    margin: 0 auto;
}

.section-title {
    font-size: 2.3rem;
    color: #e14e36;
    margin-bottom: 3rem;
    text-align: center;
    font-weight: 600;
    letter-spacing: 1px;
    position: relative
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    width: 80px;
    height: 4px;
    background: linear-gradient(45deg, #ff6b35, #f7931e);
    transform: translateX(-50%);
    border-radius: 2px;
}

/* Optimized Menu Grid */
.menu-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 2rem;
    justify-items: center;
}

.menu-card {
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 2px 16px rgba(225,78,54,0.07);
    overflow: hidden;
    transition: transform 0.15s ease;
    text-align: center;
    padding-bottom: 1.2rem;
    position: relative;
    will-change: transform;
}

.menu-card:hover {
    transform: translateY(-5px) scale(1.01);
}

.menu-card img {
    width: 100%;
    height: 180px;
    object-fit: cover;
    display: block;
    border-top-left-radius: 16px;
    border-top-right-radius: 16px;
}

.menu-card h3 {
    color: #e14e36;
    margin: 1.1rem 0 0.3rem 0;
    font-size: 1.3rem;
}

.menu-card p {
    color: #444;
    font-size: 1rem;
    padding: 0 1rem;
}

/* Optimized Features Grid */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}

/* About */
.about-section {
    margin-top: 0em;
    margin-bottom: 2em;
    
}
.about-content {
    max-width: 600px;
    margin: 0 auto;
    text-align: center;
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2, 100%);
    padding: 3rem;
    border-radius: 20px;
    box-shadow: 0 15px 35px rgba(0,0,0,0.1);
    transition: transform 0.2s ease;
}

.about-content:hover {
    transform: translateY(-5px);
}

.contact-list {
    list-style: none;
    margin-top: 1.5rem;
    color: #555;
}

.contact-list li {
    margin-bottom: 0.7rem;
    font-size: 1.08rem;
    transition: all 0.2s ease;
    padding: 0.5rem 0;
    border-left: 3px solid transparent;
    padding-left: 1rem;
}

.contact-list li:hover {
    border-left-color: #ff6b35;
    transform: translateX(10px);
    background: rgba(255,107,53,0.1);
}

.contact-list strong {
    color: #e14e36;
}

/* Lokasi & Kontak section */
.lokasi-section {
    background: linear-gradient(135deg, #ffecd2 0%, #fcb69f 100%);
    border-radius: 18px;
    margin-bottom: 1rem;
    margin-top: 1rem;
}

.lokasi-3 {
    margin-bottom:0;
}

.lokasi-grid {
    display: flex;
    gap: 34px;
    flex-wrap: wrap;
    justify-content: center;
}

.lokasi-info {
    flex: 1 1 390px;
    max-width: 500px;
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.lokasi-map {
    flex: 1 1 390px;
    min-width: 350px;
    max-width: 610px;
    background: #fff;
    border-radius: 18px;
    padding: 18px;
    box-shadow: 0 2px 16px rgba(0,0,0,0.06);
    display: flex;
    align-items: center;
    justify-content: center;
}

.card {
    background: #fff;
    border-radius: 13px;
    padding: 26px 30px 18px 30px;
    box-shadow: 0 1px 8px rgba(0,0,0,0.05);
    transition: all 0.2s ease;
    cursor: pointer;
}

.card:hover {
    transform: translateY(-3px) scale(1.01);
    box-shadow: 0 8px 20px rgba(0,0,0,0.1);
}

.card h3 {
    color: #f05555;
    font-size: 1.25rem;
    margin-bottom: 12px;
    font-weight: 700;
    letter-spacing: 0.5px;
    display: flex;
    align-items: center;
    gap: 7px;
    flex-wrap: wrap;
}

.card .icon {
    font-size: 1.18rem;
    line-height: 1;
}

.card .highlight {
    color: #f05555;
}

.alamat-detail {
    font-size: 1.09rem;
    color: #2d2e2f;
    line-height: 1.6;
    margin-left: 7px;
}

.jam-detail {
    font-size: 1.13rem;
    color: #222;
    margin-left: 7px;
}

.jam-bold {
    font-weight: 700;
    font-size: 1.22rem;
    color: #151515;
}

.jam-ket {
    color: #959595;
    font-size: 1.04rem;
}

.btn-lokasi {
    display: block;
    text-align: center;
    margin-top: 10px;
    background: #f05555;
    color: #fff;
    font-size: 1.17rem;
    padding: 16px 0;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    letter-spacing: 0.5px;
    text-decoration: none;
    box-shadow: 0 1px 6px rgba(240,85,85,0.10);
    transition: all 0.2s ease;
}

.btn-lokasi:hover {
    background: #d14444;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(240,85,85,0.2);
}

/* Footer */
footer {
    background: linear-gradient(135deg, #434343 0%, #000000 100%);
    color: white;
    text-align: center;
    padding: 2rem;
}

/* Mobile Responsiveness */
@media (max-width: 1020px) {
    .lokasi-grid {
        flex-direction: column;
        gap: 26px;
        align-items: center;
    }
    .lokasi-map {
        min-width: 0;
        max-width: 100%;
        width: 100%;
    }
    .lokasi-info {
        max-width: 600px;
        width: 100%;
        padding: 0 1rem;
        align-items: center;
        justify-content: center;
    }
    .card {
        width: 100%;
        padding: 20px;
        overflow: hidden;
    }
    .card h3 {
        font-size: 1.2rem;
        display: flex;
        flex-wrap: wrap;
        align-items: center;
        width: 100%;
    }
    
    /* Perbaikan navbar pada max-width 1020px */
    .nav-links li a {
        white-space: nowrap;
        padding: 0.6rem 0.8rem;
        border-radius: 6px;
        transition: all 0.2s ease;
    }

}

@media (max-width: 800px) {
    .nav-links {
        position: absolute;
        top: 64px;
        right: 0;
        background: #fff;
        flex-direction: column;
        width: 180px;
        box-shadow: 0 2px 8px rgba(0,0,0,0.09);
        display: none;
        z-index: 99;
    }
    .nav-links.open {
        display: flex;
    }
    .nav-toggle {
        display: block;
    }
    .nav-container {
        position: relative;
    }
}

@media (max-width: 768px) {
    .menu-grid {
        grid-template-columns: 1fr;
    }
    
    .features-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .feature-card {
        padding: 1.5rem;
    }
    
    .feature-icon {
        font-size: 3rem;
    }
    
    .hero-content h1 {
        font-size: 2.5rem;
    }
    
    /* Enhanced hero background handling for mobile */
    .hero {
        background-size: cover;
        background-position: center center;
        min-height: 50vh; /* Slightly shorter on mobile */
    }
}

@media (max-width: 600px) {
    .section {
        padding: 2.3rem 0.5rem 1.8rem 0.5rem;
    }
    .hero-content h1 {
        font-size: 2.1rem;
    }
    .section-title {
        font-size: 1.4rem;
    }
    .alamat-detail, .jam-detail {
        font-size: 0.95rem;
    }
    .lokasi-map iframe {
        height: 220px;
    }
    .lokasi-map {
        padding: 6px;
    }
    .btn-lokasi {
        font-size: 1.05rem;
        padding: 12px 0;
    }
    .card {
        padding: 16px;
    }
    .card h3 {
        font-size: 1.15rem;
        word-break: break-word;
        hyphens: auto;
    }
    .card .icon {
        font-size: 1.1rem;
        min-width: 18px;
    }
    
    /* Enhanced hero section for smaller screens */
    .hero {
        min-height: 40vh;
        background-size: cover;
    }
}

/* Add these enhanced interactive styles for the why-choose section */

#why-choose {
    position: relative;
    overflow: hidden;
}
.section2 {
    margin-bottom: 4em;
}

#why-choose::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle 150px at var(--mouse-x, 50%) var(--mouse-y, 50%), rgba(255, 107, 53, 0.05), transparent);
    pointer-events: none;
    transition: opacity 0.3s ease;
    opacity: 0;
}

#why-choose:hover::before {
    opacity: 1;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
    position: relative;
}

.feature-card {
    background: linear-gradient(135deg, #fff 0%, #f8f9fa 100%);
    border-radius: 20px;
    padding: 2rem;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    cursor: pointer;
    border: 2px solid transparent;
    will-change: transform;
}

/* Magnetic effect */
.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle 100px at var(--mouse-x, 50%) var(--mouse-y, 50%), rgba(255, 107, 53, 0.1), transparent);
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
}

.feature-card:hover::before {
    opacity: 1;
}

/* Glowing border effect */
.feature-card::after {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: linear-gradient(45deg, #ff6b35, #f7931e, #ff6b35);
    border-radius: 22px;
    opacity: 0;
    z-index: -1;
    transition: opacity 0.3s ease;
    background-size: 300% 300%;
    animation: gradientShift 3s ease infinite;
}

@keyframes gradientShift {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

.feature-card:hover::after {
    opacity: 1;
}

.feature-card:hover {
    transform: translateY(-15px) scale(1.03);
    box-shadow: 0 25px 50px rgba(255, 107, 53, 0.2);
    border-color: transparent;
}

/* Enhanced icon animations */
.feature-icon {
    font-size: 4rem;
    margin-bottom: 1rem;
    display: inline-block;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
}

.feature-card:hover .feature-icon {
    transform: scale(1.2) rotate(5deg);
    filter: drop-shadow(0 0 20px rgba(255, 107, 53, 0.5));
}

/* Floating particles effect */
.feature-card .floating-particle {
    position: absolute;
    width: 4px;
    height: 4px;
    background: rgba(255, 107, 53, 0.6);
    border-radius: 50%;
    pointer-events: none;
    opacity: 0;
    transition: all 0.3s ease;
}

.feature-card:hover .floating-particle {
    opacity: 1;
    animation: float 2s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    50% { transform: translateY(-20px) rotate(180deg); }
}

/* Text glow effect */
.feature-card h3 {
    color: #333;
    font-size: 1.5rem;
    margin-bottom: 1rem;
    font-weight: 700;
    transition: all 0.3s ease;
}

.feature-card:hover h3 {
    color: #ff6b35;
    text-shadow: 0 0 10px rgba(255, 107, 53, 0.3);
}

.feature-card p {
    color: #666;
    line-height: 1.6;
    margin-bottom: 1.5rem;
    transition: color 0.3s ease;
}

.feature-card:hover p {
    color: #444;
}

/* Enhanced highlight badge */
.feature-highlight {
    background: linear-gradient(45deg, #ff6b35, #f7931e);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 25px;
    font-size: 0.9rem;
    font-weight: 600;
    display: inline-block;
    margin-top: 0.5rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 15px rgba(255, 107, 53, 0.3);
}

.feature-card:hover .feature-highlight {
    transform: scale(1.1);
    box-shadow: 0 8px 25px rgba(255, 107, 53, 0.5);
}

/* Ripple effect on click */
.feature-card .ripple {
    position: absolute;
    border-radius: 50%;
    background: rgba(255, 107, 53, 0.3);
    transform: scale(0);
    animation: ripple 0.6s linear;
    pointer-events: none;
}

@keyframes ripple {
    to {
        transform: scale(4);
        opacity: 0;
    }
}

/* Specific enhanced colors for each feature */
.feature-card[data-feature="fresh"]:hover {
    box-shadow: 0 25px 50px rgba(40, 167, 69, 0.2);
}

.feature-card[data-feature="fresh"]:hover::after {
    background: linear-gradient(45deg, #28a745, #20c997, #28a745);
    animation: gradientShift 3s ease infinite;
}

.feature-card[data-feature="experience"]:hover {
    box-shadow: 0 25px 50px rgba(111, 66, 193, 0.2);
}

.feature-card[data-feature="experience"]:hover::after {
    background: linear-gradient(45deg, #6f42c1, #e83e8c, #6f42c1);
    animation: gradientShift 3s ease infinite;
}

.feature-card[data-feature="authentic"]:hover {
    box-shadow: 0 25px 50px rgba(220, 53, 69, 0.2);
}

.feature-card[data-feature="authentic"]:hover::after {
    background: linear-gradient(45deg, #dc3545, #fd7e14, #dc3545);
    animation: gradientShift 3s ease infinite;
}

.feature-card[data-feature="affordable"]:hover {
    box-shadow: 0 25px 50px rgba(255, 193, 7, 0.2);
}

.feature-card[data-feature="affordable"]:hover::after {
    background: linear-gradient(45deg, #ffc107, #fd7e14, #ffc107);
    animation: gradientShift 3s ease infinite;
}

.feature-card[data-feature="fast"]:hover {
    box-shadow: 0 25px 50px rgba(23, 162, 184, 0.2);
}

.feature-card[data-feature="fast"]:hover::after {
    background: linear-gradient(45deg, #17a2b8, #20c997, #17a2b8);
    animation: gradientShift 3s ease infinite;
}

.feature-card[data-feature="location"]:hover {
    box-shadow: 0 25px 50px rgba(253, 126, 20, 0.2);
}

.feature-card[data-feature="location"]:hover::after {
    background: linear-gradient(45deg, #fd7e14, #ffc107, #fd7e14);
    animation: gradientShift 3s ease infinite;
}

/* Add these mobile navbar fixes to your styles.css */

/* Mobile Responsiveness - Enhanced */
@media (max-width: 800px) {
    .nav-container {
        padding: 0.8rem 1rem;
        position: relative;
    }
    
    .nav-links {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: rgba(255, 255, 255, 0.98);
        backdrop-filter: blur(20px);
        flex-direction: column;
        gap: 0;
        display: none;
        box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
        border-radius: 0 0 20px 20px;
        padding: 0;
        margin: 0;
        z-index: 1000;
    }
    
    .nav-links.open {
        display: flex;
        animation: slideDown 0.3s ease-out;
    }
    
    .nav-links li {
        margin: 0;
        border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    }
    
    .nav-links li:last-child {
        border-bottom: none;
    }
    
    .nav-links li a {
        padding: 1rem 2rem;
        border-radius: 0;
        width: 100%;
        text-align: left;
        display: block;
        font-size: 1.1rem;
        font-weight: 600;
        transition: all 0.3s ease;
    }
    
    .nav-links li a:hover {
        background: linear-gradient(45deg, #ff6b35, #f7931e);
        color: white;
        transform: none;
        box-shadow: none;
    }
    
    .nav-toggle {
        display: block;
        font-size: 1.5rem;
        background: none;
        border: none;
        color: #333;
        cursor: pointer;
        padding: 0.5rem;
        border-radius: 8px;
        transition: all 0.3s ease;
    }
    
    .nav-toggle:hover {
        background: rgba(255, 107, 53, 0.1);
        color: #ff6b35;
    }
    
    /* Fix logo spacing */
    .logo {
        font-size: 1.6rem;
        letter-spacing: 1px;
    }
    
    /* Ensure navbar doesn't overlap content */
    .navbar {
        position: sticky;
        top: 0;
        z-index: 1001;
    }
    
    @keyframes slideDown {
        from { 
            transform: translateY(-10px); 
            opacity: 0; 
        }
        to { 
            transform: translateY(0); 
            opacity: 1; 
        }
    }
}

@media (max-width: 480px) {
    .nav-container {
        padding: 0.6rem 0.8rem;
    }
    
    .logo {
        font-size: 1.4rem;
        letter-spacing: 0.5px;
    }
    
    .nav-toggle {
        font-size: 1.3rem;
        padding: 0.4rem;
    }
    
    .nav-links li a {
        padding: 0.8rem 1.5rem;
        font-size: 1rem;
    }
}

/* Fix for very small screens */
@media (max-width: 360px) {
    .nav-container {
        padding: 0.5rem 0.6rem;
    }
    
    .logo {
        font-size: 1.2rem;
    }
    
    .nav-toggle {
        font-size: 1.2rem;
    }
    
    /* Full coverage background for smallest screens */
    .hero {
        min-height: 35vh;
        background-size: cover;
        background-position: center center;
    }
}