/* RESET AND BASE STYLES */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Montserrat', sans-serif;
    background-color: #f5f5f5;
    overflow-x: hidden;
}

/* ============================================
   HERO SECTION
   ============================================ */
.hero-section {
    background: #ffffff;
    padding: 0; 
    min-height: calc(100vh - 60px); /*Full viewport height */
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative; /* For scroll indicator positioning */
}

.hero-container {
    max-width: 100%; /* Full width */
    width: 100%; 
    margin: 0; /* No auto margins */
    display: grid;
    grid-template-columns: 1fr 1fr;
    padding: 0 2vw;
    gap: 0; /* No gap between columns */
    align-items: center;
    height: calc(100vh - 60px); /* Full height */
}

.hero-content {
    display: flex;
    flex-direction: column;
    gap: 25px; /* Slightly more space */
    padding: 5vh 6vw;
    justify-content: center; /* Vertical centering */
    height: 100%;
    /* border: 2px solid red; */
}

.hero-title {
    font-family: 'Galindo', cursive;
    font-size: 64px; 
    font-weight: 600;
    color: #0b3b4b;
    line-height: 1.1;

}

.hero-description {
    font-size: 18px;
    line-height: 1.6;
    color: #555;
    max-width: 500px;
}

.hero-cta {
    background-color: #0b3b4b;
    color: white;
    border: none;
    border-radius: 8px;
    padding: 18px 45px;
    font-size: 17px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    /* Make element as wide as it needs */
    width: fit-content; 
    font-family: 'Montserrat', sans-serif;
    box-shadow: 0 4px 12px rgba(44, 95, 127, 0.2);
}

.hero-cta:hover {
    background-color: #234a61;
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(44, 95, 127, 0.3);
}

/* Right side: Product image */
.hero-image {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 5vh 6vw;
    height: 100%; 
    /* border: 2px solid red; */
}

.hero-image img {
    width: 100%;
    max-width: 480px;
    height: auto;
    max-height: 90vh;
    object-fit: contain;
    /* border-radius: 12px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);  */
}

/* Scroll Indicator */
.scroll-indicator {
    position: absolute;
    bottom: 10px; 
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    cursor: pointer;
    animation: bounce 2s infinite;
    opacity: 0.9; 
    transition: opacity 0.3s;
    z-index: 10; 
}

.scroll-indicator:hover {
    opacity: 1;
}

.scroll-text {
    font-size: 15px; 
    color: #333; 
    font-weight: 600; 
    text-transform: uppercase; 
    letter-spacing: 1px; 
}

.scroll-arrow {
    font-size: 36px; 
    color: #0b3b4b;
    font-weight: bold; 
}

/* Bounce animation for scroll indicator */
@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateX(-50%) translateY(0);
    }
    40% {
        transform: translateX(-50%) translateY(-10px);
    }
    60% {
        transform: translateX(-50%) translateY(-5px);
    }
}



/* ============================================
   HOW IT WORKS SECTION
   (Reused from product page)
   ============================================ */
.how-it-works-container {
    max-width: 1300px;
    margin: 70px auto;
    background: white;
    border-radius: 8px;
    padding: 65px 50px;
}

.section-title {
    font-family: 'Galindo', cursive;
    font-size: 40px;
    font-weight: 600;
    color: #0b3b4b;
    text-align: center;
    margin-bottom: 50px;
}

.steps-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 45px;
}

.step-card {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.step-image {
    width: 100%;
    height: 375px;
    background-color: #ffffff;
    border-radius: 8px;
    overflow: hidden;
    margin-bottom: 25px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.step-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.step-description {
    text-align: center;
    width: 100%;
    max-width: 300px; /* Constrains the width */
    margin: 0 auto; /* Centers the whole block */
}

.step-number {
    font-size: 19px;
    font-weight: 600;
    color: #0b3b4b;
    flex-shrink: 0;
}

.step-text {
    font-size: 16px;
    line-height: 1.6;
    color: #555;
    display: inline;
}

/* ============================================
   BENEFITS SECTION (Why You'll Love It)
   (Reused from product page)
   ============================================ */
.benefits-container {
    max-width: 1300px;
    margin: 70px auto;
    background: white;
    border-radius: 8px;
    padding: 65px 50px;
}

.benefits-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 45px;
}

.benefit-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.benefit-icon {
    width: 90px;
    height: 90px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 22px;
    font-size: 54px;
}

.benefit-title {
    font-family: 'Montserrat', sans-serif;
    font-size: 19px;
    font-weight: 600;
    color: #0b3b4b;
    margin-bottom: 13px;
}

.benefit-description {
    font-size: 14px;
    line-height: 1.6;
    color: #555;
    max-width: 265px;
}

/* ============================================
   REVIEWS PREVIEW SECTION
   ============================================ */
.reviews-preview-container {
    max-width: 1300px;
    margin: 70px auto;
    background: white;
    border-radius: 8px;
    padding: 65px 50px;
}

.reviews-preview-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
    margin-bottom: 40px;
}

.review-preview-card {
    background-color: #f9f9f9;
    border-radius: 8px;
    padding: 35px;
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.review-stars {
    color: #ffa500;
    font-size: 22px;
    letter-spacing: 2px;
}

.review-preview-text {
    font-size: 15px;
    line-height: 1.6;
    color: #555;
    flex-grow: 1;
}

.reviewer-name {
    font-size: 15px;
    font-weight: 600;
    color: #0b3b4b;
}

/* Reviews Summary */
.reviews-summary {
    text-align: center;
    padding: 20px 0;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    margin-bottom: 30px;
}

.rating-star {
    font-size: 24px;
    color: #ffa500;
}

.rating-text {
    font-size: 16px;
    color: #666;
    font-weight: 600;
}

/* Reviews CTA */
.reviews-cta {
    text-align: center;
}

.see-reviews {
    background-color: #0b3b4b;
    color: white;
    border: none;
    border-radius: 8px;
    padding: 15px 40px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.3s;
    font-family: 'Montserrat', sans-serif;
}

.see-reviews:hover {
    background-color: #234a61;
}

/* ============================================
   FOOTER
   ============================================ */
.footer {
    background-color: #0b3b4b;
    padding: 30px 20px;
    margin-top: 80px;
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    text-align: center;
}

.footer p {
    color: white;
    font-size: 14px;
}


/* ============================================
   SCROLL ANIMATIONS
   ============================================ */
/* Initially hide sections that will animate in */
.how-it-works-container,
.benefits-container,
.reviews-preview-container {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

/* Show sections when they have the 'visible' class */
.how-it-works-container.visible,
.benefits-container.visible,
.reviews-preview-container.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ============================================
   RESPONSIVE DESIGN - MOBILE OPTIMIZED
   ============================================ */

/* Large Tablets (1024px - 1200px) */
@media (max-width: 1200px) {
    .hero-title {
        font-size: 56px;
    }
    
    .hero-description {
        font-size: 17px;
    }
    
    .benefits-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 40px;
    }
}

/* Tablets (768px - 1024px) */
@media (max-width: 1024px) {
    /* Remove flex layout, use grid like before */
    .hero-section {
        min-height: 100vh;
        padding: 0;
        /* ❌ REMOVE: display: flex, flex-direction, justify-content */
    }
    
    .hero-container {
        grid-template-columns: 1fr; /* Stack vertically */
        height: auto;
        padding: 0;
        gap: 0;
        /* ❌ REMOVE: min-height: 0, flex: 0 0 auto */
    }
    
    .hero-content {
        text-align: center;
        align-items: center;
        padding: 50px 60px 30px;
        height: auto;
    }
    
    .hero-title {
        font-size: 52px;
    }
    
    .hero-description {
        font-size: 17px;
        max-width: 600px;
    }
    
    .hero-cta {
        width: 100%;
        max-width: 450px;
        padding: 18px 40px;
        font-size: 17px;
    }
    
    .hero-image {
        padding: 20px 60px 50px; /* ✅ Add bottom padding like mobile */
    }
    
    .hero-image img {
        max-width: 100%;
        max-height: 65vh;
    }
    
    /* ❌ REMOVE the ::after spacer completely */
    
    .scroll-indicator {
        display: none;
    }
    
    /* OTHER SECTIONS */
    .section-title {
        font-size: 36px;
        margin-bottom: 40px;
    }
    
    .how-it-works-container,
    .benefits-container,
    .reviews-preview-container {
        padding: 50px 40px;
        margin: 50px 20px;
    }
    
    .steps-grid {
        gap: 35px;
    }
    
    .step-image {
        height: 320px;
    }
    
    .benefits-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 35px;
    }
    
    .reviews-preview-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 30px;
    }
}

/* Mobile & Small Tablets (max-width: 768px) */
@media (max-width: 768px) {
    /* HERO SECTION - Stack vertically */
    .hero-section {
        min-height: auto;
        padding: 0;
    }
    
    .hero-container {
        grid-template-columns: 1fr; /* Single column */
        height: auto;
        padding: 0;
        gap: 0;
    }
    
    .hero-content {
        text-align: center;
        align-items: center;
        padding: 40px 30px 30px;
        height: auto;
    }
    
    .hero-title {
        font-size: 42px;
    }
    
    .hero-description {
        font-size: 16px;
        max-width: 100%;
    }
    
    .hero-cta {
        width: 100%;
        max-width: 400px;
        padding: 16px 30px;
    }
    
    .hero-image {
        padding: 20px 30px 40px;
        height: auto;
    }
    
    .hero-image img {
        max-width: 100%;
        max-height: 60vh;
    }
    
    /* Scroll indicator */
    .scroll-indicator {
        bottom: 15px;
    }
    
    .scroll-text {
        font-size: 13px;
    }
    
    .scroll-arrow {
        font-size: 28px;
    }
    
    /* SECTIONS */
    .how-it-works-container,
    .benefits-container,
    .reviews-preview-container {
        padding: 40px 25px;
        margin: 40px 15px;
    }
    
    .section-title {
        font-size: 32px;
        margin-bottom: 35px;
    }
    
    /* HOW IT WORKS - Single column */
    .steps-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .step-image {
        height: 280px;
    }
    
    .step-text {
        max-width: 100%;
        font-size: 15px;
    }
    
    /* BENEFITS - Single column */
    .benefits-grid {
        grid-template-columns: 1fr;
        gap: 35px;
    }
    
    .benefit-description {
        max-width: 100%;
    }
    
    /* REVIEWS - Single column */
    .reviews-preview-grid {
        grid-template-columns: 1fr;
        gap: 25px;
    }
    
    .review-preview-card {
        padding: 25px;
    }
    
    .rating-text {
        font-size: 15px;
    }
    
    .see-reviews {
        width: 100%;
        max-width: 400px;
    }
}

/* Large Phones (480px - 600px) */
@media (max-width: 600px) {
    .hero-title {
        font-size: 38px;
    }
    
    .hero-description {
        font-size: 15px;
    }
    
    .section-title {
        font-size: 28px;
    }
    
    .how-it-works-container,
    .benefits-container,
    .reviews-preview-container {
        padding: 35px 20px;
        margin: 30px 10px;
    }
}

/* Small Phones (max-width: 480px) */
@media (max-width: 480px) {
    .hero-content {
        padding: 30px 20px 20px;
    }
    
    .hero-title {
        font-size: 32px;
        line-height: 1.2;
    }
    
    .hero-description {
        font-size: 14px;
        line-height: 1.5;
    }
    
    .hero-cta {
        width: 100%;
        padding: 14px 25px;
        font-size: 15px;
    }
    
    .hero-image {
        padding: 15px 20px 30px;
    }
    
    .hero-image img {
        max-height: 50vh;
    }
    
    /* Hide scroll indicator on very small screens */
    .scroll-indicator {
        display: none;
    }
    
    .section-title {
        font-size: 26px;
        margin-bottom: 30px;
    }
    
    .how-it-works-container,
    .benefits-container,
    .reviews-preview-container {
        padding: 30px 15px;
        margin: 25px 10px;
        border-radius: 6px;
    }
    
    .step-image {
        height: 240px;
    }
    
    .step-number {
        font-size: 18px;
    }
    
    .step-text {
        font-size: 14px;
    }
    
    .benefit-icon {
        width: 70px;
        height: 70px;
        font-size: 42px;
        margin-bottom: 18px;
    }
    
    .benefit-title {
        font-size: 17px;
        margin-bottom: 10px;
    }
    
    .benefit-description {
        font-size: 13px;
    }
    
    .review-preview-card {
        padding: 20px;
    }
    
    .review-stars {
        font-size: 20px;
    }
    
    .review-preview-text {
        font-size: 14px;
    }
    
    .reviewer-name {
        font-size: 14px;
    }
    
    .rating-star {
        font-size: 22px;
    }
    
    .rating-text {
        font-size: 14px;
    }
    
    .see-reviews {
        padding: 12px 30px;
        font-size: 15px;
    }
}

/* Extra Small Phones (max-width: 375px) */
@media (max-width: 375px) {
    .hero-title {
        font-size: 28px;
    }
    
    .hero-description {
        font-size: 13px;
    }
    
    .section-title {
        font-size: 24px;
    }
    
    .how-it-works-container,
    .benefits-container,
    .reviews-preview-container {
        padding: 25px 12px;
        margin: 20px 8px;
    }
}

/* Touch-friendly improvements for all touchscreen devices */
@media (hover: none) and (pointer: coarse) {
    /* Increase touch target sizes */
    .hero-cta {
        min-height: 48px;
        padding: 16px 30px;
    }
    
    .see-reviews {
        min-height: 48px;
        padding: 16px 30px;
    }
    
    /* Remove hover effects on touch devices */
    .hero-cta:hover {
        transform: none;
        background-color: #2c5f7f;
    }
    
    .see-reviews:hover {
        background-color: #2c5f7f;
    }
    
    /* Larger tap targets for scroll indicator */
    .scroll-indicator {
        padding: 10px;
    }
}

/* Landscape orientation on phones */
@media (max-height: 500px) and (orientation: landscape) {
    .hero-section {
        min-height: auto;
    }
    
    .hero-container {
        height: auto;
        padding: 20px 0;
    }
    
    .hero-content {
        padding: 30px 20px;
    }
    
    .hero-image {
        padding: 20px;
    }
    
    .hero-image img {
        max-height: 40vh;
    }
    
    .scroll-indicator {
        display: none;
    }
}

