/* --- 1. Global Styles, Reset, & Variables --- */
:root {
    --primary-color: #007bff; /* Trust/Data Blue */
    --accent-color: #28a745; /* Growth/Success Green */
    --dark-text: #333;
    --light-bg: #f8f9fa;
    --font-family: 'Roboto', sans-serif;
    --shadow-light: 0 4px 12px rgba(0, 0, 0, 0.08);
    --shadow-hover: 0 8px 16px rgba(0, 0, 0, 0.15);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Franklin Gothic Medium', 'Arial Narrow', Arial, sans-serif;
    color: var(--dark-text);
    line-height: 1.6;
    background-color: white;
}

a {
    text-decoration: none;
    color: var(--primary-color);
    transition: color 0.3s;
}

section {
    padding: 90px 5%;
    text-align: center;
    overflow-x: hidden;
    position: relative; /* Essential for containing the video background */
}

h1, h2 {
    font-weight: 700;
    margin-bottom: 20px;
}

h2 {
    font-size: 2.5em;
    color: var(--primary-color);
}

/* --- Keyframe Animation Definition (Remains the same) --- */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* --- Base Animation Application --- */
.animate-in {
    opacity: 0;
    animation: fadeInUp 0.8s ease-out forwards;
}

/* --- 2. Button & CTA Styling --- (Same as before) */
.main-cta-button, .header-cta-button {
    font-weight: 700;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
}

.main-cta-button {
    display: inline-block;
    padding: 18px 40px;
    background-color: var(--accent-color);
    color: white;
    border-radius: 50px;
    font-size: 1.1em;
    box-shadow: var(--shadow-light);
}

.main-cta-button:hover {
    background-color: #1e7e34;
    transform: translateY(-3px) scale(1.02);
    box-shadow: var(--shadow-hover);
}

.header-cta-button {
    background-color: var(--primary-color);
    color: white;
    padding: 10px 20px;
    border-radius: 5px;
    font-weight: 500;
}
.header-cta-button:hover {
    background-color: #0056b3;
}


/* --- 3. Header/Nav --- (Same as before) */
header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 5%;
    background-color: white;
    box-shadow: var(--shadow-light);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.logo img {
    height: 100px;
    width: auto;
    vertical-align: middle;
}

nav ul {
    list-style: none;
    display: flex;
    gap: 30px;
}

nav a {
    color: var(--dark-text);
    padding: 5px 0;
    position: relative;
}

nav a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    display: block;
    margin-top: 5px;
    right: 0;
    background: var(--primary-color);
    transition: width 0.3s ease;
}

nav a:hover::after {
    width: 100%;
    left: 0;
    background: var(--primary-color);
}


/* --- 4. Hero Section (Video Background Styling) --- */
#hero {
    /* Base styling for the container */
    padding: 150px 5%;
    min-height: 70vh;
    overflow: hidden; 
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    color: white; /* Text color changed to white for video contrast */
}

/* Video Wrapper */
.video-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    
    z-index: -2; /* Pushes the video behind the overlay */
}

/* Video Element */
#bgVideo {
    min-width: 100%;
    min-height: 100%;
    width: auto;
    height: auto;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    object-fit: cover;
}

/* Dark Overlay for Text Readability */
.overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(32, 31, 31, 0.6); /* Semi-transparent black */
    z-index: -1; /* Sits between the video and content */
}

/* Hero Content */
.hero-content {
    position: relative;
    z-index: 10;
    max-width: 800px;
    /* Hero text style adjustments for dark background */
}
#hero h1 {
    color: white;
    font-size: 3.8em;
}
#hero .subtitle, #hero .trust-message {
    color: #eee;
}

/* --- 5. Problem Section (Staggered Animation) --- */
#problem {
    background-color: white;
}
.problem-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-top: 50px;
}
.problem-card {
    padding: 30px;
    border-radius: 8px;
    background-color: #fff3cd; 
    border: 1px solid #ffeeba;
    text-align: left;
    transition: transform 0.3s, box-shadow 0.3s;
    opacity: 0;
}
/* Staggered Delay */
.problem-card:nth-child(1) { animation-delay: 0.1s; }
.problem-card:nth-child(2) { animation-delay: 0.3s; }
.problem-card:nth-child(3) { animation-delay: 0.5s; }

.problem-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-light);
}

/* --- 6. City Coverage Section (New) --- */
#city-coverage {
    background-color: white;
    padding-bottom: 50px; /* Slightly less padding at the bottom */
}

#city-coverage p {
    max-width: 700px;
    margin: 0 auto 40px;
    font-size: 1.1em;
    color: #555;
}

.city-grid {
   display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-top: 50px;
}

.city-block {
     padding: 30px;
    border-radius: 8px;
    background-color: #fff3cd; 
    border: 1px solid #ffeeba;
    text-align: left;
    transition: transform 0.3s, box-shadow 0.3s;
    opacity: 0;
    
    /* Animation setup */
    opacity: 0;
}

/* Staggered Animation Delay for City Blocks */
.city-block:nth-child(1) { animation-delay: 0.1s; }
.city-block:nth-child(2) { animation-delay: 0.2s; }
.city-block:nth-child(3) { animation-delay: 0.3s; }
.city-block:nth-child(4) { animation-delay: 0.4s; }
.city-block:nth-child(5) { animation-delay: 0.5s; }
.city-block:nth-child(6) { animation-delay: 0.6s; }
/* Add more children rules if you add more cities */

.city-block:hover {
    background-color: var(--primary-color);
    color: white;
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

@media (max-width: 600px) {
    .city-grid {
        gap: 10px;
    }
    .city-block {
        font-size: 1em;
        padding: 10px 20px;
    }
}/* --- 6. City Coverage Section (New) --- */
#city-coverage {
    background-color: rgb(175, 218, 226);
    padding-bottom: 50px; /* Slightly less padding at the bottom */
}

#city-coverage p {
    max-width: 700px;
    margin: 0 auto 40px;
    font-family: serif ;
    font-size: 1.1em;
    color: #0f0101;
}

.city-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 50px;
    margin-top: 30px;
}

.city-block {
    padding: 15px 30px;
    background-color: rgb(53, 23, 124); /* Use the light background color */
    color:white;
    border: 2px solid var(--primary-color);
    border-radius: 5px;
    font-weight: 600;
    font-size: 1.1em;
    transition: all 0.3s;
    cursor: default;
    
    /* Animation setup */
    
}

/* Staggered Animation Delay for City Blocks */
.city-block:nth-child(1) { animation-delay: 0.1s; }
.city-block:nth-child(2) { animation-delay: 0.2s; }
.city-block:nth-child(3) { animation-delay: 0.3s; }
.city-block:nth-child(4) { animation-delay: 0.4s; }
.city-block:nth-child(5) { animation-delay: 0.5s; }
.city-block:nth-child(6) { animation-delay: 0.6s; }
/* Add more children rules if you add more cities */

.city-block:hover {
    background-color: rgb(148, 245, 240);
    color: black;
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

@media (max-width: 600px) {
    .city-grid {
        gap: 10px;
    }
    .city-block {
        font-size: 1em;
        padding: 10px 20px;
    }
}
/* --- 6. Features/Solution Section (Staggered Animation) --- */
#features {
    background-color: var(--light-bg);
}
.feature-grid {
    display: flex;
    justify-content: center;
    gap: 40px;
    margin-top: 40px;
}
.feature-item {
    max-width: 300px;
    text-align: center;
    padding: 20px;
    border-radius: 8px;
    background: white;
    box-shadow: var(--shadow-light);
    transition: box-shadow 0.3s, transform 0.3s;
    opacity: 0;
}
/* Staggered Delay */
.feature-item:nth-child(1) { animation-delay: 0.1s; }
.feature-item:nth-child(2) { animation-delay: 0.3s; }
.feature-item:nth-child(3) { animation-delay: 0.5s; }

.feature-item:hover {
    box-shadow: var(--shadow-hover);
    transform: translateY(-3px);
}
.feature-item .icon {
    font-size: 2.5em;
    color: var(--accent-color);
    margin-bottom: 15px;
}


/* --- 7. Testimonials Section (Unified Fade-In) --- */
#reviews {
    background-color: white;
}
.testimonial-container {
    max-width: 800px;
    margin: 30px auto 0;
    font-size: 1.2em;
    font-style: italic;
    padding: 40px;
    border-left: 5px solid var(--primary-color);
    background-color: #f0f8ff; /* Light blue background */
    border-radius: 5px;
    box-shadow: var(--shadow-light);
    opacity: 0; /* Animated */
}


/* --- 8. Final CTA / Form Section --- (Unified Fade-In) */
#cta-form {
    background-color: var(--primary-color);
    color: white;
    padding: 70px 5%;
}

#cta-form h2 {
    color: white;
    font-size: 2.8em;
}

.lead-form {
    max-width: 500px;
    margin: 30px auto 0;
    display: flex;
    flex-direction: column;
    gap: 15px;
    opacity: 0; /* Animated */
}

.lead-form input {
    padding: 15px;
    border: none;
    border-radius: 5px;
    font-size: 1em;
    transition: box-shadow 0.3s;
}

.lead-form input:focus {
    box-shadow: 0 0 0 3px rgba(40, 167, 69, 0.5);
    outline: none;
}


/* --- 9. Footer --- (Same as before) */
footer {
    background-color: #1a1a1a;
    color: #bbb;
    padding: 30px 5%;
    font-size: 0.9em;
}
/* ... rest of footer styles ... */
.footer-links {
    display: flex;
    flex-wrap: wrap; 
    justify-content: space-around;
    align-items: center;
    margin-bottom: 15px;
    border-bottom: 1px solid #333;
    padding-bottom: 15px;
}
.footer-links .logo {
    color: white;
    max-width: 150px;
}
.footer-links p {
    max-width: 300px;
    font-style: italic;
    color: #999;
}
.social-links {
    display: flex;
    gap: 20px;
    margin: 15px 0; 
}
.social-links a {
    color: #bbb;
}
.social-icon {
    font-size: 1.6em;
    transition: color 0.3s, transform 0.2s;
}
.social-icon:hover {
    color: var(--primary-color);
    transform: scale(1.1);
}
.legal-links a {
    color: #bbb;
    margin-left: 20px;
}
.legal-links a:hover {
    color: white;
}
.copyright {
    text-align: center;
    margin-top: 10px;
    color: #777;
}


/* --- 10. Media Queries (Responsiveness) --- */
@media (max-width: 900px) {
    /* Fallback for mobile: hide video, use background color */
    #hero {
        background: var(--primary-color); 
        min-height: 50vh;
    }
    .video-background, .overlay {
        display: flex; 
    }

    #hero h1 {
        font-size: 2.5em;
    }

    /* ... rest of mobile styles ... */
    header {
        flex-direction: column;
        gap: 10px;
    }
    nav ul {
        gap: 15px;
    }
    .header-cta-button {
        display: none; 
    }
    .footer-links {
        justify-content: center;
        text-align: center;
        gap: 20px;
    }
}