/* --- style.css (fixed version) --- */

html {
    /* FIX: Hides the horizontal scrollbar reliably */
    overflow-x: hidden;
    scrollbar-width: none; /* for Firefox */
    /* Smooth scrolling for anchor links */
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', sans-serif;
    background-color: #f8fafc;
    color: #1f2937;
    scroll-behavior: smooth;
    background-image: url('https://i.postimg.cc/4y4jtnN6/truck.jpg');
    background-size: cover;
    background-repeat: no-repeat;
    background-position: center;
    background-attachment: fixed;
    -ms-overflow-style: none; /* for Internet Explorer, Edge */
}

/* Hide scrollbar while keeping scrolling functionality */
/* For WebKit browsers (Chrome, Safari, newer Edge) */
body::-webkit-scrollbar {
    display: none;
}

@media (min-width: 769px) {
    /* FIX: Removed cursor: none from body */
}

/* Mobile Menu Styling */
#mobile-menu {
    position: absolute;
    width: 100%;
    top: 100%;
    z-index: 40;
    transition: max-height 0.3s ease-out, padding 0.3s ease-out;
    max-height: 0;
    overflow: hidden;
}

#mobile-menu.active {
    max-height: 500px; /* A value large enough to contain all menu items */
}

#mobile-menu a {
    transition: background-color 0.2s ease;
}

/* Header button spacing */
header .container {
    padding-top: 0.75rem;
    padding-bottom: 0.75rem;
}

/* Ensure menu stays above other content */
#header {
    z-index: 1000;
}

/* Improve mobile menu button visibility */
#menu-btn {
    padding: 0.5rem;
    border-radius: 50%;
    transition: background-color 0.2s ease;
}

#menu-btn:hover {
    background-color: rgba(109, 40, 217, 0.1);
}

/* Hero Section */
.hero {
    position: relative;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: white;
}

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('https://images.unsplash.com/photo-1565299585323-15d11e2893e8?q=80&w=1981&auto=format&fit=crop');
    background-size: cover;
    background-position: center;
    filter: blur(8px);
    transform: scale(1.1);
}

.hero-content {
    position: relative;
    z-index: 1;
    animation: fadeIn 2s ease-in-out;
}

.hero h1 {
    font-family: 'Playfair Display', serif;
}

/* Section Styling */
section {
    padding: 6rem 1rem;
}

@media (max-width: 768px) {
    section {
        padding: 4rem 1rem;
    }
}

/* New class to remove animations on mobile */
.no-animation {
    animation: none !important;
    opacity: 1 !important;
    transform: none !important;
}

/* Testimonial Video */
.testimonial-video-container {
    position: relative;
    padding-bottom: 177.77%; /* 9:16 aspect ratio for portrait */
    height: 0;
    overflow: hidden;
    border-radius: 1rem;
    box-shadow: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
}

.testimonial-video-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

/* Animations */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Custom Popup Styling */
#statusPopup.show {
    display: flex;
}

#statusPopup > div.show-content {
    animation: popUp 0.3s ease-out forwards;
}

@keyframes popUp {
    to {
        transform: scale(1);
        opacity: 1;
    }
}

/* Shine effect for founder images */
.shine-effect {
    position: absolute;
    top: 0;
    left: -100%;
    width: 50%;
    height: 100%;
    background: linear-gradient(
        to right,
        rgba(255, 255, 255, 0) 0%,
        rgba(255, 255, 255, 0.3) 50%,
        rgba(255, 255, 255, 0) 100%
    );
    transform: skewX(-20deg);
    animation: shine 2s infinite linear;
}

@keyframes shine {
    0% {
        left: 100%;
    }
    100% {
        left: -150%;
    }
}

.fade-in-section {
    margin-top: 3%;
}

@media screen and (max-width: 768px) {
    .fade-in-section {
        margin-top: 9%;
    }
}
/* Fix for menu section gap in index.html */
#menu {
    padding: 3rem 0 !important;
    margin: -1rem 0 !important;
}

/* Ensure menu images display properly without gaps */
#menu img {
    display: block;
    width: 100%;
    height: auto;
}

/* Center the menu items properly */
#menu .flex {
    align-items: center;
    justify-content: center;
    gap: 2rem !important;
}

/* Adjust spacing for tablets specifically */
@media screen and (min-width: 769px) and (max-width: 1024px) {
    #menu {
        padding: 2.5rem 0 !important;
        margin: -0.5rem 0 !important;
    }
}

/* For mobile devices */
@media screen and (max-width: 768px) {
    #menu {
        padding: 2rem 0 !important;
        margin: 0 !important;
    }
    
    #menu .flex {
        flex-direction: column;
        gap: 1.5rem !important;
    }
    
    #menu .w-2\/3 {
        width: 85% !important;
    }
}
/* Mobile-specific fix for menu section gap */
@media screen and (max-width: 768px) {
    #menu {
        padding: 1.5rem 0 !important;
        margin: -0.5rem 0 !important;
    }
    
    #menu .container {
        padding-top: 0 !important;
        padding-bottom: 0 !important;
    }
    
    #menu .flex {
        margin-top: 0 !important;
        margin-bottom: 0 !important;
        gap: 1rem !important;
    }
    
    #menu .w-2\/3 {
        width: 90% !important;
        margin: 0 auto !important;
    }
    
    #menu .mt-8 {
        margin-top: 0 !important;
    }
    
    /* Fix potential spacing from surrounding elements */
    #about + #menu {
        margin-top: -2rem !important;
    }
    
    #menu + #contact-promo {
        margin-top: -1rem !important;
    }
}

/* Additional fix for very small mobile devices */
@media screen and (max-width: 480px) {
    #menu {
        padding: 1rem 0 !important;
    }
    
    #menu .w-2\/3 {
        width: 95% !important;
    }
}
/* Fix for menu page title position */
#menu {
    padding-top: 9rem !important;
}

/* Adjust for mobile screens */
@media (max-width: 768px) {
    #menu {
        padding-top: 6rem !important;
    }
}
/* Locations Page Styles */
.location-card {
    transition: all 0.3s ease;
    border: 1px solid #e5e7eb;
}

.location-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px -5px rgba(109, 40, 217, 0.1);
}

/* Fix for header spacing on locations page */
body.locations-page main {
    padding-top: 7rem;
}

@media (max-width: 768px) {
    body.locations-page main {
        padding-top: 6rem;
    }
}