/* ============================================= */
/* GLOBAL & NAVIGATION STYLES */
/* ============================================= */
.top-nav-bar {
    background-color: #ffffff;
    padding: 0px 0;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
    width: 100%;
    z-index: 500;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 0px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.logo-image {
    max-height: 80px;
    width: auto;
}

body {
    font-family: 'Poppins', sans-serif;
    margin: 0;
    padding: 0;
    background-color: #ffffff;
    color: #333;
    padding-bottom: 50px; /* Space for sticky footer */
}

h1 {
    font-weight: 600;
}

h2 {
    font-weight: 700;
}

h3 {
    font-weight: 200;
}

p {
    line-height: 1.6;
}

/* ============================================= */
/* 1. HERO SECTION */
/* ============================================= */
.hero-section {
    text-align: center;
    padding-bottom: 40px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
}

img[src=""] {
    display: none;
}

.hero-image-container {
    height: 55vh;
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: #ffffff;
    overflow: hidden;
}

.hero-video {
    height: 100%;
    width: auto;
}

.hero-text-box {
    max-width: 800px;
    margin: 40px auto 0 auto;
    padding: 0 20px;
}

.hero-text-box p {
    font-size: 1rem;
    margin-bottom: 15px;
    color: #111;
}

/* ============================================= */
/* 2. FEATURES SECTION (CORRECTED) */
/* ============================================= */
.features-section {
    padding: 20px 20px 60px 20px;
    max-width: 1200px;
    margin: 0 auto;
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 3rem;
    margin-bottom: 60px;
}

/* This is the default desktop style for the container */
.feature-item .feature-image {
    flex: 1;
    /* NO fixed height here, so it's flexible */
}

.feature-item .feature-text {
    flex: 1;
}

/* This is the default style for the image. It will now shrink/grow proportionally. */
.feature-item img {
    width: 100%;
    height: auto; /* This is the key: maintains the aspect ratio */
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.feature-item.reverse {
    flex-direction: row-reverse;
}

/* ============================================= */
/* 3. REVIEWS SECTION (CAROUSEL) */
/* ============================================= */
.reviews-section {
    background-color: #f4f4f4;
    padding: 60px 20px;
    text-align: center;
}

.reviews-section h2 {
    font-size: 2rem;
    margin-bottom: 40px;
}

.carousel-container {
    max-width: 800px;
    margin: 0 auto;
    position: relative;
    overflow: hidden;
}

.carousel-track {
    display: flex;
    transition: transform 0.5s ease-in-out;
}

.review-card {
    min-width: 100%;
    box-sizing: border-box;
    background: #fff;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    text-align: left;
}

.star-rating {
    color: #fdd835;
    font-size: 1.2rem;
    margin-bottom: 15px;
}

.review-card h3 {
    margin: 0 0 10px 0;
}

.review-content {
    font-style: italic;
    color: #555;
}

.review-author {
    font-weight: bold;
    margin-top: 20px;
}

.review-link {
    display: inline-block;
    margin-top: 15px;
    color: #007bff;
    text-decoration: none;
    font-weight: 500;
}

.review-link:hover {
    text-decoration: underline;
}

.carousel-button {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-color: rgba(255, 255, 255, 0.7);
    border: none;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    font-size: 20px;
    cursor: pointer;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
    z-index: 10;
}

.carousel-button.prev {
    left: 10px;
}

.carousel-button.next {
    right: 10px;
}

/* ============================================= */
/* 4. STICKY "BUY NOW" FOOTER */
/* ============================================= */
.sticky-buy-footer {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background-color: #fff;
    padding: 20px 0;
    text-align: center;
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.1);
    z-index: 1000;
}

.buy-button {
    background-color: #FF9900;
    color: #111;
    text-decoration: none;
    padding: 15px 40px;
    border-radius: 5px;
    font-size: 1.2rem;
    font-weight: bold;
    transition: background-color 0.3s ease;
    display: inline-flex;
    align-items: center;
}

.buy-button .button-logo {
    height: 24px;
    width: auto;
    margin-right: 20px;
    background-color: #ffffff;
    padding: 4px 8px;
    border-radius: 3px;
}

.buy-button:hover {
    background-color: #E68A00;
}

/* ============================================= */
/* RESPONSIVE DESIGN FOR MOBILE (CORRECTED) */
/* ============================================= */
@media (max-width: 768px) {
    .hero-text-box h1 {
        font-size: 1.5rem;
    }

    /* This rule stacks the feature items vertically on mobile */
    .feature-item,
    .feature-item.reverse {
        flex-direction: column;
        text-align: center;
        gap: 1.5rem;
    }

    /* This rule ensures the image container is centered and doesn't take up the full screen width */
    .feature-item .feature-image {
        max-width: 85%;
        margin-left: auto;
        margin-right: auto;
        /* We DO NOT set a height here, allowing the image to define the height */
    }

    /* NOTE: We no longer need a separate `.feature-item img` rule for mobile.
       It will inherit the `height: auto` from the desktop style, which is exactly
       what we want to make it shrink instead of crop. */

    .carousel-button {
        width: 35px;
        height: 35px;
        font-size: 18px;
    }
}