/* ================================================= */
/* 0. ROOT & GENERAL STYLES (MATCHING YOUR SITE)
/* ================================================= */
:root {
    --primary-color: #0a4d8c; --secondary-color: #f97316; --dark-color: #264653;
    --dark-color-alt: #1e3a4c; --light-color: #ffffff; --text-color: #333;
    --text-color-light: #f1f5f9; --dark-color-products: #1a303d;
    --font-heading: 'Poppins', sans-serif; --font-body: 'Inter', sans-serif;
}
body { background-color: #f9f9f9; color: var(--text-color); font-family: var(--font-body); }
h1, h2, h3, h4 { font-family: var(--font-heading); }

/* ================================================= */
/* 1. REFINED: PROFESSIONAL HERO WITH IMAGE BANNER
/* ================================================= */
#product-hero {
    height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    position: relative;
    overflow: hidden; /* Crucial for the zoom effect */
    padding: 2rem;
    color: var(--light-color); /* Default text color is now light */

    /* === FIX APPLIED HERE === */
    padding-top: 100px; /* Adjust this value to match your navbar's height */
    box-sizing: border-box; /* Ensures padding is included in the 100vh height */
}

/* --- NEW: The Background Image Container --- */
#product-hero::after {
    content: '';
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    /* This is the correct way to link your image */
    background-image: url('/assets/images/product-hero-banner.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    /* NEW: Ken Burns Effect for a subtle, cinematic feel */
    animation: ken-burns 25s ease-out infinite;
    z-index: 1;
}

/* --- NEW: Dark Overlay for Readability --- */
#product-hero::before {
    content: '';
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    /* A semi-transparent dark gradient looks more professional */
    background: linear-gradient(180deg, rgba(10, 25, 40, 0.4) 0%, rgba(10, 25, 40, 0.7) 100%);
    z-index: 2;
}

/* Keyframes for the background animation */
@keyframes ken-burns {
    0% { transform: scale(1.1); }
    100% { transform: scale(1); }
}

.hero-content {
    position: relative;
    z-index: 3; /* Ensure content is above the overlay and image */
    max-width: 800px;
    animation: fade-in-up 1s ease-out 0.5s forwards;
    opacity: 0; /* Start hidden for animation */
}

@keyframes fade-in-up {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Text styles updated for light-on-dark readability */
.hero-title {
    /* --- NEW, SMALLER FONT SIZE --- */
    font-size: clamp(2.5rem, 6vw, 4.5rem); 
    font-weight: 700;
    margin-bottom: 1rem;
    letter-spacing: -1px; /* Adjusted for smaller size */
    color: var(--light-color);
    text-shadow: 0 4px 15px rgba(0,0,0,0.5); /* Adds depth */
}

.hero-subtitle {
    font-size: clamp(1.1rem, 2.5vw, 1.6rem);
    color: var(--text-color-light);
    max-width: 650px;
    margin: 0 auto 0; /* --- REMOVED BOTTOM MARGIN --- */
    opacity: 0.95;
    line-height: 1.6;
}

/* --- NEW: Call-to-Action Button --- */
.btn-hero {
    display: inline-block;
    padding: 1rem 2.5rem;
    background: var(--secondary-color);
    color: var(--light-color);
    text-decoration: none;
    font-weight: 700;
    font-size: 1.1rem;
    border-radius: 50px;
    border: 2px solid transparent;
    transition: all 0.3s ease;
    box-shadow: 0 5px 20px rgba(249, 115, 22, 0.3);
    opacity: 0; /* Animate this in as well */
    animation: fade-in-up 1s ease-out 0.8s forwards;
}
.btn-hero:hover {
    background-color: #ea580c;
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(249, 115, 22, 0.4);
    text-decoration: none;
    color: var(--light-color);
}

/* Scroll indicator updated for light-on-dark theme */
.scroll-down-indicator {
    position: absolute; bottom: 30px; z-index: 3;
    animation: fade-in 2s ease 1.5s forwards; opacity: 0;
}
.mouse {
    width: 25px; height: 45px;
    border: 2px solid var(--light-color);
    border-radius: 20px; position: relative;
}
.mouse::before {
    content: ''; position: absolute; width: 6px; height: 6px;
    background: var(--light-color);
    border-radius: 50%; top: 8px; left: 50%;
    transform: translateX(-50%);
    animation: scroll-anim-light 2s infinite ease-out;
}
@keyframes scroll-anim-light {
    0% { transform: translate(-50%, 0); opacity: 1; }
    100% { transform: translate(-50%, 20px); opacity: 0; }
}

/* ================================================= */
/* 2. REFINED: ARTISTIC & ANIMATED SLIDESHOW
/* ================================================= */
#product-slideshow {
    height: 100vh; min-height: 700px; position: relative; overflow: hidden;
    background-color: var(--dark-color-products);
}
.slideshow-track-container { width: 100%; height: 100%; }
.slideshow-track { display: flex; height: 100%; }
.slide {
    width: 100vw; height: 100%; flex-shrink: 0;
    position: absolute; top: 0; left: 0;
    display: grid; grid-template-columns: 45fr 55fr; align-items: center;
    padding: 0 5vw; gap: 4rem;
    background-color: var(--light-color);
    clip-path: polygon(0 0, 100% 0, 100% 100%, 0% 100%); /* Default state */
    opacity: 0;
    transition: opacity 0.8s ease, clip-path 0.8s cubic-bezier(0.83, 0, 0.17, 1);
}
.slide.is-active { opacity: 1; z-index: 2; }
/* Animate out previous slide */
.slide:not(.is-active) { z-index: 1; }

.slide-bg-number {
    position: absolute; top: 50%; left: 5vw;
    transform: translateY(-50%);
    font-size: clamp(15rem, 30vw, 25rem);
    font-weight: 800;
    color: var(--primary-color);
    opacity: 0;
    z-index: 1;
    transition: opacity 0.6s ease 0.3s, transform 0.8s ease 0.3s;
}
.slide.is-active .slide-bg-number { opacity: 0.05; transform: translateY(-50%) scale(1.1); }
.slide-content, .slide-image-wrapper { position: relative; z-index: 2; }

/* Staggered content animation */
.slide-content > * { opacity: 0; transform: translateY(20px); transition: opacity 0.6s ease, transform 0.6s ease; }
.slide.is-active .slide-content h2 { opacity: 1; transform: translateY(0); transition-delay: 0.4s; }
.slide.is-active .slide-content p { opacity: 1; transform: translateY(0); transition-delay: 0.5s; }
.slide.is-active .slide-content .btn-slide { opacity: 1; transform: translateY(0); transition-delay: 0.6s; }

.slide-content { max-width: 450px; justify-self: end; }
.slide h2 { font-size: clamp(2.2rem, 4vw, 3.5rem); font-weight: 700; margin-bottom: 1.5rem; line-height: 1.2; color: var(--dark-color); }
.slide p { font-size: 1.1rem; color: #555; line-height: 1.7; margin-bottom: 2rem; }
.btn-slide { display: inline-block; padding: 12px 28px; background: var(--secondary-color); color: var(--light-color); text-decoration: none; font-weight: bold; border-radius: 50px; transition: background-color 0.3s ease, transform 0.3s ease; }
.btn-slide:hover { background-color: #ea580c; transform: translateY(-3px); text-decoration: none; }

/* Image Animation */
.slide-image-wrapper { opacity: 0; transform: scale(0.95); transition: opacity 0.8s ease 0.2s, transform 0.8s ease 0.2s; }
.slide.is-active .slide-image-wrapper { opacity: 1; transform: scale(1); }
.slide-image-wrapper img {
    width: 100%; max-height: 70vh; object-fit: contain;
    filter: drop-shadow(0 25px 50px rgba(0, 0, 0, 0.15));
}

/* Navigation & Indicators (dark theme) */
.nav-btn {
    position: absolute; top: 50%; transform: translateY(-50%); background: rgba(0, 0, 0, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.2); color: var(--light-color); width: 50px; height: 50px;
    border-radius: 50%; cursor: pointer; z-index: 10; transition: background-color 0.3s, transform 0.3s;
    backdrop-filter: blur(8px); display: flex; align-items: center; justify-content: center; font-size: 1.1rem;
}
.nav-btn:hover { background: var(--secondary-color); color: var(--light-color); border-color: var(--secondary-color); transform: translateY(-50%) scale(1.1); }
.nav-btn.prev { left: 3vw; }
.nav-btn.next { right: 3vw; }
.slide-indicators { position: absolute; bottom: 30px; left: 50%; transform: translateX(-50%); display: flex; gap: 12px; z-index: 10; }
.indicator { width: 10px; height: 10px; border-radius: 50%; background: rgba(255, 255, 255, 0.3); border: none; cursor: pointer; padding: 0; transition: background-color 0.3s, transform 0.3s; }
.indicator.is-active { background-color: var(--secondary-color); transform: scale(1.3); }

/* ================================================= */
/* 3. PRODUCT GRID (THEMED - LIGHT BACKGROUND)
/* ================================================= */
#product-grid { padding: 100px 2rem; background-color: #f8f9fa; }
.grid-title { text-align: center; font-size: 2.8rem; font-weight: 700; margin-bottom: 4rem; color: var(--dark-color); }
.grid-container { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 2rem; max-width: 1200px; margin: 0 auto; }
.product-card { background: var(--light-color); border: 1px solid #e0e0e0; padding: 2.5rem 2rem; border-radius: 12px; text-align: center; transition: transform 0.3s ease, box-shadow 0.3s ease; box-shadow: 0 4px 15px rgba(0,0,0,0.05); }
.product-card:hover { transform: translateY(-10px); box-shadow: 0 8px 25px rgba(0,0,0,0.1); }
.card-icon { font-size: 2.5rem; color: var(--primary-color); margin-bottom: 1.5rem; }
.product-card h3 { font-size: 1.5rem; margin-bottom: 0.75rem; color: var(--dark-color); }
.product-card p { color: #555; margin-bottom: 2rem; }
.btn-card { color: var(--primary-color); text-decoration: none; font-weight: 600; }
.btn-card:hover { text-decoration: underline; color: var(--secondary-color); }

/* ================================================= */
/* 4. RESPONSIVENESS
/* ================================================= */
@media (max-width: 991px) {
    .slide { grid-template-columns: 1fr; padding: 6rem 1.5rem; text-align: center; align-content: center; gap: 2rem; }
    .slide-content { grid-row: 2; justify-self: center; }
    .slide-image-wrapper { grid-row: 1; }
    .slide-image-wrapper img { max-height: 35vh; }
    .slide h2 { font-size: 2rem; }
    .slide-bg-number { left: 50%; transform: translate(-50%, -50%); top: 40%; font-size: 15rem; }
    .nav-btn.prev { left: 20px; } .nav-btn.next { right: 20px; }
}

/* ================================================= */
/* 5. CONTACT CTA SECTION
/* ================================================= */

#contact-cta {
    position: relative;
    padding: 80px 2rem;
    background-image: url('/assets/images/contact-us-section-background.png');
    background-size: cover;
    background-position: center;
    background-attachment: fixed; /* Creates a nice parallax effect */
    text-align: center;
    color: var(--light-color);
}

#contact-cta::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    /* Darker overlay to make text more readable */
    background-color: rgba(15, 23, 42, 0.75); 
    z-index: 1;
}

.contact-cta-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
    margin: 0 auto;
}

.contact-cta-content h2 {
    font-size: 2.8rem;
    font-weight: 700;
    margin-bottom: 1rem;
    text-shadow: 0 2px 6px rgba(0,0,0,0.5);
}

.contact-cta-content p {
    font-size: 1.1rem;
    line-height: 1.7;
    margin-bottom: 2.5rem;
    opacity: 0.9;
}

.cta-button {
    display: inline-block;
    padding: 1rem 2.5rem;
    background-color: #25D366; /* Official WhatsApp Green */
    color: #fff;
    font-size: 1.1rem;
    font-weight: 600;
    text-decoration: none;
    border-radius: 50px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
}

.cta-button:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 25px rgba(37, 211, 102, 0.4);
}

.cta-button i {
    margin-right: 0.75rem;
    font-size: 1.4rem;
    vertical-align: middle;
}