/* --- VARIABLES --- */
:root {
    --primary: #003366;
    --secondary: #00a8cc;
    --accent: #25D366;
    --white: #ffffff;
    --text: #333;
    --light-bg: #f4f7f6;
}

/* --- RESET --- */
* { margin: 0; padding: 0; box-sizing: border-box; font-family: 'Segoe UI', sans-serif; }
body { color: var(--text); overflow-x: hidden; line-height: 1.6; }

/* --- NAVIGATION --- */
nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 8%;
    background: white;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none !important; /* No underline */
    color: inherit;
}

.logo-text {
    color: var(--primary);
    font-weight: bold;
    font-size: 0.95rem;
    line-height: 1.2;
    text-decoration: none !important;
}

.nav-links a {
    text-decoration: none;
    color: var(--text);
    margin-left: 25px;
    font-weight: 600;
    transition: 0.3s;
}

.nav-links a:hover { color: var(--secondary); }

.menu-toggle { display: none; cursor: pointer; font-size: 1.5rem; color: var(--primary); }

/* --- TICKER --- */
.ticker-wrap { background: var(--primary); color: white; padding: 10px 0; overflow: hidden; }
.ticker-move { display: flex; animation: ticker 30s linear infinite; }
.ticker-item { padding: 0 40px; white-space: nowrap; font-size: 0.85rem; }
@keyframes ticker { 0% { transform: translateX(100%); } 100% { transform: translateX(-100%); } }

/* --- HERO SLIDER --- */
.slider-container { position: relative; width: 100%; height: 480px; overflow: hidden; background: #000; }
.slide { position: absolute; width: 100%; height: 100%; opacity: 0; transition: 1s; background-size: cover; background-position: center; display: flex; align-items: center; justify-content: center; text-align: center; color: white; }
.slide.active { opacity: 1; }
.slide-overlay { padding: 0 10%; }
.slide-overlay h1 { font-size: 2.5rem; margin-bottom: 15px; }

/* --- BUTTONS --- */
.btn { display: inline-block; padding: 12px 28px; background: var(--secondary); color: white; text-decoration: none; border-radius: 5px; font-weight: bold; margin-top: 20px; transition: 0.3s; }
.btn-wa { background: var(--accent); }
.btn:hover { transform: scale(1.05); }

/* --- STATS BAR --- */
.stats-bar { display: flex; justify-content: space-around; padding: 40px 10%; background: var(--primary); color: white; text-align: center; }
.stat-item h2 { color: var(--secondary); font-size: 2rem; margin-bottom: 5px; }

/* --- TITLES (THE CENTER FIX) --- */
section { padding: 70px 10%; }

.section-title {
    text-align: center; /* Centers text */
    margin-bottom: 50px;
    width: 100%;
}

.underline {
    width: 60px;
    height: 4px;
    background: var(--secondary);
    margin: 10px auto 0; /* Centers the bar */
}

/* --- GRID & CARDS --- */
.grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 30px; }
.card { background: white; padding: 40px 30px; text-align: center; border-radius: 12px; box-shadow: 0 5px 20px rgba(0,0,0,0.05); transition: 0.3s; }
.card:hover { transform: translateY(-10px); }
.card i { font-size: 2.5rem; color: var(--secondary); margin-bottom: 20px; }

/* --- STEP NUMBERS --- */
.step-number {
    background: var(--secondary);
    color: white;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    margin: 0 auto 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 1.2rem;
}

/* --- FOOTER --- */
.main-footer { background: #001a33; color: white; padding: 60px 10% 20px; }
.footer-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 40px; }
.footer-col h4 { color: var(--secondary); margin-bottom: 20px; }
.footer-col ul { list-style: none; }
.footer-col ul li { margin-bottom: 12px; }
.footer-col a { color: #ccc; text-decoration: none; transition: 0.3s; }
.footer-col a:hover { color: white; padding-left: 5px; }
.footer-bottom { text-align: center; border-top: 1px solid rgba(255,255,255,0.1); padding-top: 25px; margin-top: 40px; font-size: 0.85rem; color: #888; }

/* --- WA FLOAT --- */
.wa-float { position: fixed; bottom: 30px; right: 30px; background: var(--accent); color: white; width: 60px; height: 60px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 30px; z-index: 2000; text-decoration: none; box-shadow: 0 5px 15px rgba(0,0,0,0.2); transition: 0.3s; }
.wa-float:hover { transform: scale(1.1); }

/* --- MOBILE RESPONSIVE --- */
@media (max-width: 768px) {
    nav { padding: 15px 5%; }
    .logo-text { font-size: 0.75rem; }
    .menu-toggle { display: block; }
    .nav-links {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: white;
        flex-direction: column;
        padding: 20px 0;
        box-shadow: 0 5px 10px rgba(0,0,0,0.1);
    }
    .nav-links.active { display: flex; }
    .nav-links a { margin: 15px 0; width: 100%; text-align: center; }
    .slider-container { height: 380px; }
    .slide-overlay h1 { font-size: 1.8rem; }
    .stats-bar { flex-direction: column; gap: 25px; }
    section { padding: 50px 5%; }
}
/* General button spacing in the Hero section */
.hero-btns {
    display: flex;
    gap: 15px;
    justify-content: center;
    margin-top: 25px;
    flex-wrap: wrap; /* Keeps it mobile-friendly */
}

/* Make the WhatsApp button stand out with its brand color */
.btn-wa {
    background-color: #25D366 !important;
    color: white !important;
    border: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.btn-wa:hover {
    background-color: #128C7E !important;
    transform: translateY(-3px);
}

/* Make the Services button look slightly different (Outline or Primary) */
.btn-services {
    background-color: transparent;
    border: 2px solid white;
    color: white;
}

.btn-services:hover {
    background-color: white;
    color: var(--primary);
}

/* --- BUTTON STYLES --- */

/* The Transparent 'Ghost' Button */
.btn-outline {
    background: transparent !important;
    border: 2px solid #ffffff !important;
    color: #ffffff !important;
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-outline:hover {
    background: #ffffff !important;
    color: var(--primary) !important; /* Changes text to your dark blue theme color */
    transform: translateY(-3px);
}

/* The Solid WhatsApp Button */
.btn-wa {
    background-color: #25D366 !important;
    border: 2px solid #25D366 !important;
    color: white !important;
    box-shadow: 0 4px 15px rgba(37, 211, 102, 0.3);
}

.btn-wa:hover {
    background-color: #128C7E !important;
    border-color: #128C7E !important;
    transform: translateY(-3px);
}

/* Fix for mobile stacking */
@media (max-width: 600px) {
    .hero-btns {
        flex-direction: column;
        align-items: center;
    }
    .hero-btns .btn {
        width: 80%;
        text-align: center;
    }
}

/* Ensure the ticker container doesn't collapse */
.ticker-wrap {
    overflow: hidden;
    white-space: nowrap;
    width: 100%;
}

.ticker {
    display: inline-block;
    padding-left: 100%; /* Initial offset */
    animation: ticker-move 30s linear infinite;
}

@keyframes ticker-move {
    0% { transform: translateX(0); }
    100% { transform: translateX(-100%); }
}

/* IMPORTANT: Fix the timer width so it doesn't "stutter" the animation */
#opening-countdown {
    display: inline-block;
    min-width: 140px; /* Fixed width keeps the scroll smooth */
    font-family: 'Courier New', monospace; /* Monospaced numbers are more stable */
    text-align: left;
}

/*Adding banner styling */
/* --- THE MAIN TOP BAR --- */
.top-announcement-bar {
    display: flex;
    background: #003366; /* Your Dark Blue */
    color: white;
    align-items: center;
    overflow: hidden;
    width: 100%;
    z-index: 1001;
}

/* --- THE STATIC BOX (Countdown) --- */
.static-countdown {
    background: #f39c12; /* Gold/Orange */
    padding: 10px 20px;
    font-weight: bold;
    white-space: nowrap;
    z-index: 20;
    box-shadow: 5px 0 10px rgba(0,0,0,0.3);
    font-size: 14px;
    display: flex;
    justify-content: center;
    align-items: center;
}

/* --- THE TICKER AREA --- */
.ticker-wrap {
    flex: 1;
    overflow: hidden;
    white-space: nowrap;
    display: flex;
    align-items: center;
}

.ticker {
    display: inline-block;
    padding-left: 100%; /* Start off-screen */
    animation: ticker-move 25s linear infinite;
}

.ticker-item {
    padding-right: 60px;
    display: inline-block;
}

/* --- ANIMATION --- */
@keyframes ticker-move {
    0% { transform: translate3d(0, 0, 0); }
    100% { transform: translate3d(-100%, 0, 0); }
}

/* --- THE FIX FOR LAPTOP vs MOBILE --- */

/* LAPTOP VIEW */
@media (min-width: 769px) {
    .top-announcement-bar {
        height: 45px;
        justify-content: center; /* Centers the whole bar content */
    }
}

/* MOBILE VIEW (The "Stack" Fix) */
@media (max-width: 768px) {
    .top-announcement-bar {
        flex-direction: column; /* Stack Countdown on top of Ticker */
        height: auto; /* Let it grow to fit both lines */
    }

    .static-countdown {
        width: 100%; /* Take full width on mobile */
        padding: 5px 0;
        border-bottom: 1px solid rgba(255,255,255,0.2);
    }

    .ticker-wrap {
        width: 100%;
        height: 30px; /* Give the ticker its own row */
    }

    .ticker {
        animation: ticker-move 15s linear infinite; /* Faster scroll for smaller screen */
    }
}


/* --- SERVICES PAGE MOBILE & ZOOM FIX --- */

/* 1. Prevent Horizontal Scrolling */
html, body {
    max-width: 100%;
    overflow-x: hidden;
}

/* 2. Fix the Navigation for Services Page */
@media (max-width: 768px) {
    .menu-toggle {
        display: block !important; /* Shows the hamburger icon */
        padding: 10px;
        z-index: 1001;
    }

    .nav-links {
        display: none; /* Hide links by default on mobile */
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: white;
        flex-direction: column;
        box-shadow: 0 10px 15px rgba(0,0,0,0.1);
        padding: 20px 0;
    }

    .nav-links.active {
        display: flex !important; /* Show links when menu is clicked */
    }

    .nav-links a {
        margin: 10px 0;
        text-align: center;
        width: 100%;
    }

    /* 3. Stack the Service Cards vertically on Mobile */
    .grid {
        display: flex !important;
        flex-direction: column !important;
        gap: 20px !important;
        padding: 0 5%;
    }

    .card {
        width: 100% !important;
        margin-bottom: 10px;
    }

    /* 4. Fix Hero Header Text on Mobile */
    header h1 {
        font-size: 1.8rem !important;
    }
}

/* 5. Zoom-Out Stability (Keep content centered on huge screens) */
section, .footer-grid, header {
    max-width: 1400px;
    margin-left: auto !important;
    margin-right: auto !important;
}





