/* --- Variables & Reset --- */
:root {
    --primary: #FF9933; /* Solar Saffron */
    --primary-dark: #e68a00;
    --secondary: #1a1a1a;
    --green: #2ecc71;
    --light: #f9f9f9;
    --white: #ffffff;
    --shadow: 0 5px 20px rgba(0,0,0,0.1);
}

* { margin: 0; padding: 0; box-sizing: border-box; font-family: 'Poppins', sans-serif; }
html { scroll-behavior: smooth; }
body { color: #444; line-height: 1.6; }
a { text-decoration: none; }
ul { list-style: none; }

/* --- Layout Utilities --- */
.container { max-width: 1200px; margin: 0 auto; padding: 0 20px; }
.section-padding { padding: 80px 0; }
.text-center { text-align: center; }
.bg-light { background-color: var(--light); }
.hidden { display: none; }

/* --- Buttons --- */
.btn { display: inline-block; padding: 12px 30px; border-radius: 50px; font-weight: 600; transition: 0.3s; cursor: pointer; border: none; }
.btn-primary { background: var(--primary); color: var(--white); }
.btn-primary:hover { background: var(--primary-dark); transform: translateY(-2px); }
.btn-outline { border: 2px solid var(--white); color: var(--white); margin-left: 10px; }
.btn-outline:hover { background: var(--white); color: var(--secondary); }
.btn-full { width: 100%; background: var(--secondary); color: var(--white); margin-top: 15px; }
.btn-whatsapp-small { display: block; background: #25D366; color: white; text-align: center; padding: 10px; margin-top: 15px; border-radius: 5px; font-weight: 600; }

/* --- Header --- */
header { background: var(--white); box-shadow: 0 2px 10px rgba(0,0,0,0.05); position: fixed; top: 0; width: 100%; z-index: 1000; }
.nav-container { display: flex; justify-content: space-between; align-items: center; height: 70px; }
.logo { font-size: 1.5rem; font-weight: 700; color: var(--secondary); }
.logo span { color: var(--primary); }
.nav-links { display: flex; align-items: center; }
.nav-links li { margin-left: 30px; }
.nav-links a { color: var(--secondary); font-weight: 500; transition: 0.3s; }
.nav-links a:hover { color: var(--primary); }
.nav-btn { background: var(--primary); color: white !important; padding: 8px 20px; border-radius: 20px; }
.mobile-toggle { display: none; font-size: 1.5rem; cursor: pointer; }

/* --- Hero Section & Slider --- */
.hero { 
    height: 90vh; 
    position: relative; 
    display: flex; 
    align-items: center; 
    color: var(--white); 
    margin-top: 70px;
    overflow: hidden;
}

.hero-slider {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
}

.slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-position: center;
    background-size: cover;
    opacity: 0;
    transition: opacity 1s ease-in-out;
}

.slide.active {
    opacity: 1;
}

/* Slider Navigation */
.slider-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.3);
    color: var(--white);
    border: none;
    padding: 15px;
    cursor: pointer;
    z-index: 10;
    font-size: 1.5rem;
    border-radius: 50%;
    transition: 0.3s;
}

.slider-btn:hover {
    background: var(--primary);
}

.prev-btn { left: 20px; }
.next-btn { right: 20px; }

.hero .overlay { position: absolute; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0,0,0,0.5); z-index: 0; }
.hero-content { position: relative; z-index: 1; max-width: 800px; }
.badge { background: var(--green); padding: 5px 15px; border-radius: 20px; font-size: 0.9rem; text-transform: uppercase; letter-spacing: 1px; }
.hero h1 { font-size: 3.5rem; margin: 20px 0; line-height: 1.2; }
.hero p { font-size: 1.2rem; margin-bottom: 30px; opacity: 0.9; }

/* --- Scheme Cards --- */
.section-header { text-align: center; margin-bottom: 50px; }
.section-header h2 { font-size: 2.5rem; color: var(--secondary); margin-bottom: 10px; }
.scheme-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 30px; }
.scheme-card { background: var(--white); padding: 30px; border-radius: 15px; box-shadow: var(--shadow); text-align: center; border: 1px solid #eee; transition: 0.3s; position: relative; }
.scheme-card:hover { transform: translateY(-10px); border-color: var(--primary); }
.scheme-card.popular { border: 2px solid var(--primary); transform: scale(1.05); }
.scheme-card .tag { position: absolute; top: 0; left: 50%; transform: translate(-50%, -50%); background: var(--primary); color: white; padding: 5px 15px; border-radius: 20px; font-size: 0.8rem; }
.icon-box { font-size: 2.5rem; color: var(--primary); margin-bottom: 15px; }
.price { font-size: 2rem; font-weight: 700; color: var(--secondary); margin: 10px 0; }

/* --- Calculator --- */
.calc-wrapper { display: grid; grid-template-columns: 1fr 1fr; gap: 50px; align-items: center; }
.calc-content h2 { font-size: 2.5rem; margin-bottom: 20px; }
.check-list li { margin: 15px 0; font-size: 1.1rem; display: flex; align-items: center; }
.check-list i { color: var(--green); margin-right: 15px; }
.calc-box { background: var(--white); padding: 40px; border-radius: 20px; box-shadow: var(--shadow); }
.form-group label { display: block; margin-bottom: 10px; font-weight: 600; }
.form-group input { width: 100%; padding: 15px; border: 2px solid #eee; border-radius: 8px; font-size: 1rem; outline: none; }
.form-group input:focus { border-color: var(--primary); }
.result-box { background: #e8f5e9; padding: 20px; border-radius: 10px; margin-top: 20px; animation: fadeIn 0.5s; }
.result-row { display: flex; justify-content: space-between; padding: 8px 0; border-bottom: 1px solid #ccc; }
.result-row:last-of-type { border-bottom: none; }
.highlight { color: var(--green); font-weight: 800; }

/* --- Services --- */
.services-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 30px; }
.service-item { border-radius: 15px; overflow: hidden; box-shadow: var(--shadow); background: var(--white); transition: 0.3s; }
.service-item:hover { transform: translateY(-5px); }
.service-item img { width: 100%; height: 220px; object-fit: cover; }
.s-info { padding: 25px; }
.s-info h3 { margin-bottom: 10px; color: var(--secondary); }

/* --- Footer --- */
footer { background: var(--secondary); color: var(--white); padding: 60px 0 20px; }
.footer-content { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 40px; margin-bottom: 40px; }
.footer-col h3 { color: var(--primary); margin-bottom: 20px; font-size: 1.4rem; }
.footer-col p { margin-bottom: 10px; opacity: 0.8; }
.footer-col i { width: 25px; color: var(--primary); }
.socials a { color: var(--white); font-size: 1.2rem; margin-right: 15px; transition: 0.3s; }
.socials a:hover { color: var(--primary); }
.copyright { text-align: center; border-top: 1px solid #333; padding-top: 20px; font-size: 0.9rem; opacity: 0.6; }

/* --- WhatsApp Float --- */
.whatsapp-float { position: fixed; bottom: 30px; right: 30px; background: #25D366; color: white; width: 60px; height: 60px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 32px; box-shadow: 0 4px 15px rgba(0,0,0,0.3); z-index: 999; animation: pulse 2s infinite; }
@keyframes pulse {
    0% { transform: scale(1); box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.7); }
    70% { transform: scale(1.1); box-shadow: 0 0 0 10px rgba(37, 211, 102, 0); }
    100% { transform: scale(1); box-shadow: 0 0 0 0 rgba(37, 211, 102, 0); }
}
@keyframes fadeIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } }

/* --- Responsive --- */
@media (max-width: 768px) {
    .nav-links { position: fixed; right: -100%; top: 70px; flex-direction: column; background: var(--white); width: 100%; height: calc(100vh - 70px); align-items: center; justify-content: center; transition: 0.4s; box-shadow: -2px 5px 10px rgba(0,0,0,0.1); z-index: 100; }
    .nav-links.active { right: 0; }
    .nav-links li { margin: 20px 0; }
    .mobile-toggle { display: block; }
    .hero h1 { font-size: 2.2rem; }
    .calc-wrapper { grid-template-columns: 1fr; }
    .scheme-card.popular { transform: none; }
    .slider-btn { padding: 10px; font-size: 1.2rem; }
}



/* =========================================
   NEW SECTION: Marquee Gallery CSS
========================================= */
.marquee-wrapper {
    width: 100%;
    overflow: hidden; /* Hides the parts that go off-screen */
    padding: 20px 0 40px;
    background: var(--light);
    position: relative;
}

/* The track that holds all images and moves */
.marquee-track {
    display: flex;
    width: max-content; /* Ensures the track is as wide as all images combined */
    /* Animation: name duration timing-function iteration-count */
    animation: smoothScroll 35s linear infinite;
}

/* The individual image containers */
.marquee-item {
    position: relative;
    flex: 0 0 auto; /* Don't grow, don't shrink, auto width */
    width: 350px;   /* Fixed width for consistency */
    height: 250px;
    margin: 0 15px; /* Gap between images */
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 8px 20px rgba(0,0,0,0.1);
    border: 3px solid transparent;
    transition: 0.3s ease-in-out;
}

.marquee-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: 0.5s;
}

/* Eye-Catchy Hover Effects */
.marquee-track:hover {
    animation-play-state: paused; /* Pauses the slider when user hovers over it */
}

.marquee-item:hover {
    transform: scale(1.05); /* Slight zoom on the container */
    border-color: var(--primary); /* Highlight border */
    box-shadow: 0 15px 30px rgba(255, 153, 51, 0.3); /* Orange glow shadow */
}

.marquee-item:hover img {
    transform: scale(1.1); /* Zoom image inside */
}

/* Overlay Text on Hover */
.m-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 15px;
    background: linear-gradient(to top, rgba(0,0,0,0.8), transparent);
    color: white;
    font-weight: 600;
    transform: translateY(100%); /* Hidden by default */
    transition: 0.3s;
}

.marquee-item:hover .m-overlay {
    transform: translateY(0); /* Slide up on hover */
}

/* THE ANIMATION KEYFRAMES */
@keyframes smoothScroll {
    0% {
        transform: translateX(0);
    }
    100% {
        /* Move left by exactly 50% of the track width. 
           This is why we duplicated the images in HTML. 
           When it reaches -50%, the duplicate set is exactly where the original set started, creating a seamless loop. */
        transform: translateX(-50%);
    }
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .marquee-item {
        width: 280px;
        height: 200px;
    }
}


/* =========================================
   VIDEO BACKGROUND STYLES
========================================= */

/* Remove background-image from the container div */
.video-slide {
    background-image: none !important;
    overflow: hidden;
}

/* Style the video element to cover the entire area */
.bg-video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover; /* This makes it behave like background-size: cover */
    z-index: -1; /* Ensures it stays behind any text */
}

/* =========================================
   ANIMATED DISCOUNT BADGE STYLES
========================================= */

.discount-badge {
    position: absolute;
    top: 15px;
    right: 15px;
    /* Use a gradient instead of flat color for a premium look */
    background: linear-gradient(45deg, #d31027, #ea384d);
    color: white;
    padding: 8px 18px; /* Slightly larger padding */
    border-radius: 25px;
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    z-index: 2;
    border: 2px solid white; /* Adds definition */
    /* Apply the combined animation: runs infinitely, smooth ease-in-out */
    animation: glowAndFloat 2.5s ease-in-out infinite;
}

/* --- The Animation Keyframes --- */
@keyframes glowAndFloat {
    0%, 100% {
        /* Start position: Slight tilt, normal shadow */
        transform: translateY(0) rotate(-3deg) scale(1);
        box-shadow: 0 5px 15px rgba(211, 16, 39, 0.4);
    }
    50% {
        /* Middle position: Floats up, tilts a bit more, grows slightly */
        transform: translateY(-6px) rotate(-5deg) scale(1.05);
        /* Intense red outer glow + slight white inner glow for "shiny" effect */
        box-shadow: 0 20px 30px rgba(234, 56, 77, 0.7), inset 0 0 10px rgba(255,255,255,0.3);
    }
}


/* =========================================
   FIX: HERO BUTTONS SPACING ON MOBILE
========================================= */
@media (max-width: 768px) {
    .hero .btn {
        display: block;
        width: 100%; /* Makes buttons stretch nicely across the mobile screen */
        margin-bottom: 15px; /* Adds a clean gap below the top button */
        margin-left: 0 !important; /* Removes the horizontal spacing used on desktop */
        text-align: center;
    }
}


/* =========================================
   SECTION SEPARATOR LINES
========================================= */
section {
    border-bottom: 1px solid #cec9c9; /* Light greyish line */
}

/* Remove the line from the very last section so it doesn't clash with the footer */
section:last-of-type {
    border-bottom: none;
}


/* =========================================
   TOP ANNOUNCEMENT TICKER
========================================= */
.top-ticker {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 35px;
    background: var(--secondary); /* Dark premium background */
    color: var(--white);
    display: flex;
    align-items: center;
    overflow: hidden;
    z-index: 1001; /* Ensures it stays above the header */
    font-size: 0.85rem;
    font-weight: 500;
    letter-spacing: 0.5px;
}

.ticker-content {
    display: flex;
    white-space: nowrap;
    /* Moves the text from right to left smoothly over 25 seconds */
    animation: textTicker 25s linear infinite;
}

.ticker-content span {
    margin: 0 15px; /* Spacing between the phrases and dots */
}

@keyframes textTicker {
    0% { transform: translateX(100vw); }
    100% { transform: translateX(-100%); }
}

/* --- LAYOUT FIXES FOR THE NEW TICKER --- */
/* 1. Push the fixed header down by the height of the ticker (35px) */
header {
    top: 35px !important;
}

/* 2. Push the hero section down further so the top isn't hidden */
.hero {
    padding-top: 105px !important; /* Original 70px + new 35px ticker */
}

/* 3. Push the mobile slide-out menu down to match */
@media (max-width: 768px) {
    .nav-links {
        top: 105px !important; 
        height: calc(100vh - 105px) !important;
    }
}