/* static/css/style.css */

/* Basic Reset and Global Styles */
* { margin: 0; padding: 0; box-sizing: border-box; }
body { font-family: 'Poppins', sans-serif; background-color: #ffffff; color: #333; line-height: 1.6; }
/* ========================================= */
/*           Preloader Fade-in               */
/* ========================================= */
#preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background-color: #000000; /* Start with a solid black screen */
    z-index: 9999; /* Make sure it's on top of everything */
    opacity: 1;
    pointer-events: none; /* Allows clicks to go through if needed */
    transition: opacity 1.2s ease-in-out; /* The smooth fade-out animation */
}

#preloader.fade-out {
    opacity: 0;
}
/* Promo Bar */
.promo-bar { background-color: #212529; color: #ffffff; padding: 0.5rem 0; position: fixed; top: 0; width: 100%; z-index: 1001; overflow: hidden; white-space: nowrap; }
.promo-text { display: inline-block; animation: scroll-text 20s linear infinite; }
@keyframes scroll-text { 0% { transform: translateX(0%); } 100% { transform: translateX(-50%); } }

/* Header and Navbar Styling */
/* ========================================= */
/*      Header and Navbar Styling (v2)       */
/* ========================================= */
header {
    /* DEFAULT STATE: Solid, for most pages */
    background-color: #ffffff;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);

    padding: 1rem 5%;
    position: fixed;
    top: 35px;
    width: 100%;
    z-index: 1000;
    transition: background-color 0.4s ease-out, box-shadow 0.4s ease-out;
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* DEFAULT STATE: Dark text for the solid header */
.nav-logo {
    font-size: 1.5rem;
    font-weight: 700;
    text-decoration: none;
    color: #333; /* Dark text */
    transition: color 0.4s ease-out;
}
nav ul {
    list-style: none;
    display: flex;
    gap: 2rem;
}
nav ul li a {
    text-decoration: none;
    color: #555; /* Dark text */
    font-weight: 600;
    transition: color 0.4s ease-out;
}
nav ul li a:hover {
    color: #007bff;
}

/* --- SPECIAL STYLES FOR THE HOMEPAGE ONLY --- */
header.home-page {
    /* On the homepage, START transparent */
    background-color: transparent;
    box-shadow: none;
}
header.home-page .nav-logo,
header.home-page nav ul li a {
    /* On the homepage, START with white text */
    color: #ffffff;
}

/* This scrolled class works on the homepage to turn it solid */
header.home-page.scrolled {
    background-color: #ffffff;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}
header.home-page.scrolled .nav-logo,
header.home-page.scrolled nav ul li a {
    color: #333; /* Use the default dark text colors */
}

/* ========================================= */
/*      Hero Section Styling (VIDEO BG)      */
/* ========================================= */
.hero {
    position: relative; /* This is crucial for positioning the video inside */
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    min-height: 100vh;
    color: #ffffff;
    overflow: hidden; /* Hide anything that spills out */
}

/* This is the NEW, improved video style */
#hero-video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;   /* Cover 100% of the hero section's width */
    height: 100%;  /* Cover 100% of the hero section's height */
    z-index: -1;
    filter: brightness(0.7);

    /* This is the magic property */
    object-fit: cover; /* Behaves like 'background-size: cover'. Fills the space, crops as needed. */
}

.hero h1 {
    font-size: 3.5rem;
    margin-bottom: 0.5rem;
}

.hero .subtitle {
    font-size: 1.25rem;
    color: #e0e0e0;
}

/* Simple container for the other pages */
.page-container { padding: 120px 5% 4rem 5%; max-width: 1200px; margin: 0 auto; }


/* ========================================= */
/*             Features Section              */
/* ========================================= */
.features-section {
    background-color: #f8f9fa; /* A very light grey to separate it from other sections */
    padding: 4rem 5%;
    border-bottom: 1px solid #e0e0e0; /* A subtle line to finish the section */
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
    text-align: center;
}

.feature-item {
    padding: 1.5rem;
    transition: transform 0.3s ease, box-shadow 0.3s ease; /* Smooth transition for hover */
    border-radius: 10px;
}

.feature-item:hover {
    transform: translateY(-10px); /* Lifts the item up on hover */
    background-color: #ffffff;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.08); /* Adds a soft shadow */
}

.feature-item i {
    font-size: 2.5rem;
    color: #007bff; /* Our brand's blue accent color */
    margin-bottom: 1rem;
}

.feature-item h3 {
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
    color: #333;
}

.feature-item p {
    color: #666;
    font-size: 1rem;
}

/* ========================================= */
/*         Mobile Navigation & Hamburger     */
/* ========================================= */
.hamburger {
    display: none; /* Hidden by default on desktop */
    cursor: pointer;
}

.hamburger span {
    display: block;
    width: 25px;
    height: 3px;
    margin: 5px 0;
    background-color: #333; /* Dark color for the solid header */
    transition: all 0.3s ease-in-out;
}

/* On the homepage, the hamburger lines should be white */
header.home-page .hamburger span {
    background-color: #ffffff;
}
header.home-page.scrolled .hamburger span {
    background-color: #333; /* But dark when scrolled */
}


/* --- The Media Query: Styles for screens 768px wide or smaller --- */
@media (max-width: 768px) {
    /* Hide the original desktop navigation */
    nav ul {
        position: fixed;
        top: 0;
        right: 0;
        width: 70%; /* Menu takes up 70% of the screen width */
        max-width: 300px;
        height: 100vh;
        background-color: #212529; /* A nice dark background for the menu */
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 2rem;

        /* Hide it off-screen to the right by default */
        transform: translateX(100%);
        transition: transform 0.4s ease-in-out;
    }

    /* Show the hamburger icon on mobile */
    .hamburger {
        display: block;
        z-index: 1001; /* Make sure it's on top of the menu */
    }

    /* Style for when the menu is OPEN */
    header.nav-open nav ul {
        transform: translateX(0); /* Slide the menu into view */
    }

    /* Animate the hamburger into an 'X' when open */
    header.nav-open .hamburger span:nth-child(1) {
        transform: rotate(45deg) translate(5px, 5px);
    }
    header.nav-open .hamburger span:nth-child(2) {
        opacity: 0;
    }
    header.nav-open .hamburger span:nth-child(3) {
        transform: rotate(-45deg) translate(7px, -7px);
    }

    /* Ensure the hamburger lines are white when open, as the bg is dark */
    header.nav-open .hamburger span {
        background-color: #ffffff;
    }
}

/* ========================================= */
/*        Call to Action Button Section      */
/* ========================================= */
.btn-hero-cta {
    display: inline-block;
    margin-top: 2rem; /* Space it away from the subtitle */
    padding: 1rem 2.5rem;

    /* Clean, solid white style for dark backgrounds */
    background-color: #ffffff;
    color: #333;
    border-radius: 50px; /* Pill shape */
    border: none;

    text-decoration: none;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.2); /* A shadow to lift it off the video */

    transition: all 0.3s ease;
}

.btn-hero-cta:hover {
    /* Lift and expand the shadow on hover for a modern feel */
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25);
}


.btn-cta:hover {
    color: #1a202c; /* Slightly darker text on hover */
    /* Inset shadow gives it that satisfying "pressed" effect */
    box-shadow: inset 5px 5px 10px #b8c0c9, inset -5px -5px 10px #ffffff;
}

/* ============================================================= */
/*      Featured Products Section (Neumorphic) - Final Version   */
/* ============================================================= */

/* ADD THIS NEW BLOCK to fix the title */
.products-preview-section .section-title {
    text-align: center; /* This is the key fix */
    font-size: 2.5rem;
    color: #4a5568; /* Match the cool grey text of the cards */
    margin-bottom: 3rem; /* Add space between the title and the products */
}

.products-preview-section {
    background-color: #e2e8f0;
    padding: 4rem 5%;
}

.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2.5rem;
    max-width: 1200px;
    margin: 0 auto;
}

.product-card {
    background-color: #e2e8f0;
    border-radius: 20px;
    padding: 1.5rem;
    text-align: center;
    box-shadow: 8px 8px 16px #c5ccd3, -8px -8px 16px #ffffff;
    transition: all 0.3s ease-in-out;
}

.product-card:hover {
    box-shadow: 4px 4px 12px #c5ccd3, -4px -4px 12px #ffffff;
}

.product-image-container {
    border-radius: 15px;
    overflow: hidden;
    margin-bottom: 1.5rem;
    box-shadow: inset 5px 5px 10px #c5ccd3, inset -5px -5px 10px #ffffff;
}

.product-card img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    display: block;
    transition: transform 0.4s ease;
}

.product-card:hover img {
    transform: scale(1.05);
}

/* NEW: Style for the standalone product title */
.product-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: #4a5568;
    margin-bottom: 0.75rem; /* Space between title and price */
}

.product-price {
    font-size: 1.1rem;
    font-weight: 600;
    color: #4a5568;
    margin-bottom: 1.5rem;
}

.btn-call {
    display: inline-block;
    width: 100%;
    padding: 1rem; /* Padding looks good with the new shorter text */
    border: none;
    border-radius: 15px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1rem;
    background: #e2e8f0;
    color: #4a5568;
    box-shadow: 5px 5px 10px #c5ccd3, -5px -5px 10px #ffffff;
    transition: all 0.3s ease-in-out;
}

.btn-call:hover {
    color: #1a202c;
    box-shadow: inset 3px 3px 7px #c5ccd3, inset -3px -3px 7px #ffffff;
}

/* ========================================= */
/*      About Us & Stats (Neumorphic)        */
/* ========================================= */
.about-section {
    background-color: #e2e8f0;
    padding: 4rem 5%;
    border-top: 1px solid #cbd5e0;
}
.about-section .section-title,
.testimonials-section .section-title {
    text-align: center;
    font-size: 2.5rem;
    color: #4a5568;
    margin-bottom: 1.5rem;
}
.about-section .section-subtitle {
    text-align: center;
    max-width: 600px;
    margin: 0 auto 3rem auto;
    color: #4a5568;
    font-size: 1.1rem;
}
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    max-width: 1000px;
    margin: 0 auto;
}
.stat-item {
    background-color: #e2e8f0;
    border-radius: 20px;
    padding: 2rem;
    text-align: center;
    box-shadow: 8px 8px 16px #c5ccd3, -8px -8px 16px #ffffff;
}
.stat-item i { font-size: 2.5rem; color: #007bff; margin-bottom: 1rem; }
.stat-item h3 { font-size: 2rem; color: #4a5568; margin-bottom: 0.5rem; }
.stat-item p { font-weight: 600; color: #4a5568; }

/* ========================================= */
/*      Testimonials Slider (Neumorphic)     */
/* ========================================= */
.testimonials-section {
    background-color: #e2e8f0;
    padding: 4rem 5%;
    padding-top: 0;
}

.testimonial-slider {
    max-width: 800px; /* A good width for a single testimonial */
    margin: 0 auto;
    padding: 2rem 0;
}

.swiper-slide {
    /* This makes the card inside the slide perfectly centered */
    display: flex;
    justify-content: center;
    align-items: center;
    background: transparent; /* The slide itself is invisible */
}

.testimonial-card {
    background: #e2e8f0;
    padding: 2rem;
    border-radius: 20px;
    box-shadow: 8px 8px 16px #c5ccd3, -8px -8px 16px #ffffff;
    text-align: center;
    width: 90%; /* Ensure card doesn't touch slider edges */
}

.testimonial-card .stars { color: #ffc107; font-size: 1.5rem; margin-bottom: 1rem; }
.testimonial-card .quote { font-style: italic; color: #4a5568; margin-bottom: 1rem; }
.testimonial-card footer { font-weight: 700; color: #4a5568; }

/* Style the pagination dots */
.testimonial-slider .swiper-pagination-bullet {
    background: #4a5568;
}
.testimonial-slider .swiper-pagination-bullet-active {
    background: #007bff;
}

/* ========================================= */
/*        Newsletter (Dark Neumorphic)       */
/* ========================================= */
.newsletter-section {
    background-color: #2d3748; /* Cool dark grey */
    padding: 4rem 5%;
    text-align: center;
    color: #e2e8f0;
}
.newsletter-title { font-size: 2.5rem; margin-bottom: 0.5rem; }
.newsletter-form { margin-top: 2rem; display: flex; justify-content: center; align-items: center; gap: 1rem; flex-wrap: wrap; }
.newsletter-form input {
    background: #2d3748;
    border: none;
    border-radius: 10px;
    padding: 1rem;
    font-size: 1rem;
    color: #e2e8f0;
    width: 300px;
    max-width: 100%;
    box-shadow: inset 5px 5px 10px #252e3a, inset -5px -5px 10px #354056;
}
.btn-subscribe {
    padding: 1rem 2rem;
    border: none;
    border-radius: 10px;
    font-weight: 600;
    background: #2d3748;
    color: #e2e8f0;
    box-shadow: 5px 5px 10px #252e3a, -5px -5px 10px #354056;
    transition: all 0.2s ease-in-out;
}
.btn-subscribe:hover {
    box-shadow: inset 3px 3px 7px #252e3a, inset -3px -3px 7px #354056;
}

/* ========================================= */
/*           Footer Section                  */
/* ========================================= */
.footer-section {
    background-color: #1a202c; /* Even darker for the end */
    color: #a0aec0; /* Lighter grey text */
    padding: 4rem 5%;
}
.footer-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 2rem; max-width: 1200px; margin: 0 auto; }
.footer-column h4 { color: #ffffff; margin-bottom: 1rem; font-size: 1.2rem; }
.footer-column p { margin-bottom: 0.5rem; }
.footer-column i { margin-right: 0.5rem; color: #007bff; }

/* ========================================= */
/*       Product Page Galeata & Filter Styling       */
/* ========================================= */
.page-container { background-color: #e2e8f0; } /* Match our metallic grey theme */
.page-title { text-align: center; font-size: 2.5rem; color: #4a5568; margin-bottom: 2rem; }
.product-description { font-size: 0.9rem; color: #666; margin-bottom: 1.5rem; min-height: 50px; } /* Description for product cards */

/* Filter Section */
.filter-section {
    background-color: #e2e8f0;
    padding: 2rem;
    margin-bottom: 2rem;
    border-radius: 20px;
    box-shadow: 8px 8px 16px #c5ccd3, -8px -8px 16px #ffffff;
}
#price-slider { margin: 1rem 0; }
#slider-values { text-align: center; font-weight: 600; color: #4a5568; }

/* Customizing noUiSlider to match our theme */
.noUi-target { background: #d1d9e6; box-shadow: inset 3px 3px 7px #c5ccd3, inset -3px -3px 7px #ffffff; border: none; }
.noUi-connect { background: #007bff; }
.noUi-handle { border: none; border-radius: 50%; background: #e2e8f0; box-shadow: 5px 5px 10px #c5ccd3, -5px -5px 10px #ffffff; cursor: pointer; }
.noUi-handle:focus { outline: none; }

/* Brand Filter */
.brand-filter {
    margin-top: 2rem; /* Space between price and brand filters */
    text-align: center;
}
.brand-filter h3 {
    margin-bottom: 1rem;
    color: #4a5568;
}
.brand-buttons {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 1rem;
}
.brand-btn {
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 10px;
    font-weight: 600;
    cursor: pointer;
    background: #e2e8f0;
    color: #4a5568;
    box-shadow: 5px 5px 10px #c5ccd3, -5px -5px 10px #ffffff;
    transition: all 0.2s ease-in-out;
}
.brand-btn:hover {
    color: #1a202c;
}
/* Style for the ACTIVE button */
.brand-btn.active {
    box-shadow: inset 3px 3px 7px #c5ccd3, inset -3px -3px 7px #ffffff;
    color: #007bff;
}