:root {
    /* Modern Colors */
    --primary: #1e3a8a;
    /* Deep Royal Blue */
    --primary-dark: #0f172a;
    /* Slate 900 */
    --accent: #0ea5e9;
    /* Sky Blue */
    --accent-hover: #0284c7;
    --accent-gradient: linear-gradient(135deg, #0ea5e9, #2563eb);
    /* Dynamic Gradient */

    --white: #ffffff;
    --surface: #f8fafc;
    /* Light bg for sections */
    --surface-hover: #f1f5f9;

    --text-dark: #1e293b;
    /* Slate 800 */
    --text-muted: #64748b;
    /* Slate 500 */
    --border: #e2e8f0;

    /* Spacing & Layout */
    --container-padding: 2rem;
    --section-spacing: 2.5rem;
    /* More breathing room */

    /* Modern Effects */
    --shadow-sm: 0 1px 3px 0 rgb(0 0 0 / 0.1), 0 1px 2px -1px rgb(0 0 0 / 0.1);
    --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
    --shadow-lg: 0 10px 15px -3px rgb(30 58 138 / 0.1), 0 4px 6px -4px rgb(30 58 138 / 0.1);
    /* Blue-tinted shadow */
    --shadow-hover: 0 20px 25px -5px rgb(30 58 138 / 0.15), 0 8px 10px -6px rgb(30 58 138 / 0.15);

    --transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    /* Smooth spring-like transition */
    --radius-md: 0.75rem;
    /* Softer corners */
    --radius-lg: 1.5rem;
}

/* Reset & Base */
html {
    scroll-behavior: smooth;
}

*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--white);
    color: var(--text-dark);
    line-height: 1.7;
    /* Better readability */
    overflow-x: hidden;
    letter-spacing: -0.01em;
}

p {
    margin-bottom: 1rem;
    max-width: 100%;
    word-wrap: break-word;
    /* Prevents overflow */
    overflow-wrap: break-word;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: 'Outfit', sans-serif;
    color: var(--primary-dark);
    line-height: 1.2;
    letter-spacing: -0.02em;
}

/* Typography Utilities */
.text-center {
    text-align: center;
}

.text-primary {
    color: var(--primary);
}

.text-accent {
    color: var(--accent);
}

/* Utilities */
.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 var(--container-padding);
}

.section {
    padding: var(--section-spacing) 0;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 1rem 2rem;
    border-radius: 50px;
    /* Pill shape */
    font-weight: 600;
    cursor: pointer;
    border: none;
    transition: var(--transition);
    text-decoration: none;
    letter-spacing: 0.02em;
}

.btn-primary {
    background: var(--accent-gradient);
    color: var(--white);
    box-shadow: 0 4px 6px -1px rgba(14, 165, 233, 0.3);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 15px -3px rgba(14, 165, 233, 0.4);
}

.btn-outline {
    border: 2px solid var(--primary);
    color: var(--primary);
    background: transparent;
}

.btn-outline:hover {
    background-color: var(--primary);
    color: var(--white);
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
}

/* Page Banner Typography */
.page-banner-title {
    font-size: 3.5rem;
    font-weight: 800;
    margin-bottom: 0.5rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.6);
    letter-spacing: -1px;
    color: var(--white);
}

/* Modern Hero Section */
.hero-modern {
    position: relative;
    height: 90vh;
    min-height: 600px;
    /* Prevent it from being too short on small screens */
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: white;
    background-attachment: fixed;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    overflow: hidden;
    padding-top: 80px;
    /* Offset for fixed navbar */
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(15, 23, 42, 0.9) 0%, rgba(30, 58, 138, 0.7) 100%);
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    padding: 0 var(--container-padding);
    max-width: 1000px;
}

.hero-title {
    font-size: 4rem;
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    letter-spacing: -0.03em;
    background: linear-gradient(to right, #ffffff, #e2e8f0);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-subtitle {
    font-size: 1.5rem;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 2.5rem;
    font-weight: 300;
}

/* Stats Section */
.stats-section {
    background: var(--surface);
    margin-top: -5rem;
    /* Overlap hero */
    position: relative;
    z-index: 10;
    border-radius: var(--radius-lg);
    padding: 3rem;
    box-shadow: var(--shadow-xl);
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    text-align: center;
}

.stat-item h3 {
    font-size: 3rem;
    color: var(--primary);
    margin-bottom: 0.5rem;
    font-weight: 800;
}

.stat-item p {
    color: var(--text-muted);
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.85rem;
    letter-spacing: 0.05em;
}

/* Features Section */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.feature-card {
    padding: 2.5rem;
    background: white;
    border-radius: var(--radius-lg);
    transition: var(--transition);
    border: 1px solid var(--border);
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
    border-color: var(--accent);
}

.feature-icon {
    width: 60px;
    height: 60px;
    background: var(--surface);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: var(--primary);
    margin-bottom: 1.5rem;
    transition: var(--transition);
}

.feature-card:hover .feature-icon {
    background: var(--primary);
    color: white;
}

/* Slider Controls */
.slider-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.9);
    color: var(--primary);
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    z-index: 10;
    transition: var(--transition);
}

.slider-btn:hover {
    background: var(--primary);
    color: white;
}

.slider-btn.prev {
    left: 1rem;
}

.slider-btn.next {
    right: 1rem;
}

.slider img {
    cursor: zoom-in;
}

/* Responsive Tweaks */
@media (max-width: 768px) {
    .hero-title {
        font-size: 2.75rem;
    }

    .hero-subtitle {
        font-size: 1.15rem;
    }

    .stats-section {
        margin-top: 0;
        border-radius: 0;
        padding: 3rem 1.5rem;
    }
}

/* Modern Navbar */
.navbar {
    background-color: #ffffff;
    /* Solid White for Logo Contrast */
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    box-shadow: 0 1px 0 rgba(0, 0, 0, 0.05);
    padding: 0;
    height: 100px;
    display: flex;
    align-items: center;
    transition: box-shadow 0.3s ease;
}

.navbar.scrolled {
    /* Height remains 100px */
    box-shadow: var(--shadow-sm);
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 var(--container-padding);
}

.logo img {
    height: 66px;
    width: auto;
    transition: all 0.4s ease-in-out;
}

/* Navigation Right Wrapper (Phone + Links) */
.nav-right-wrapper {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 0.25rem;
}

.nav-contact-info {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-dark);
    display: flex;
    align-items: center;
}

/* Removed .nav-contact-info:none rule to keep it visible on scroll */

/* Navigation Links Container */
.nav-links {
    display: flex;
    gap: 2rem;
    align-items: center;
    list-style: none;
    /* Explicitly remove bullets */
    margin: 0;
    padding: 0;
}

.nav-link {
    text-decoration: none;
    font-weight: 500;
    color: var(--text-dark);
    position: relative;
    padding: 0.5rem 0;
}

.nav-link::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    background: var(--accent-gradient);
    transition: width 0.3s ease;
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
}

/* Mobile Menu Toggle & Responsive Styles */
.menu-toggle {
    display: none;
    font-size: 1.5rem;
    color: var(--primary);
    cursor: pointer;
}

@media (max-width: 900px) {
    .navbar {
        height: auto;
        padding: 0.5rem 0;
    }

    .nav-container {
        flex-wrap: wrap;
        padding: 0 1rem;
    }

    .logo {
        height: 50px;
        /* Smaller logo on mobile */
    }

    .logo img {
        height: 100%;
    }

    .menu-toggle {
        display: block;
        order: 2;
        /* Ensure it stays right of logo */
    }

    .nav-right-wrapper {
        order: 3;
        width: 100%;
        align-items: center;
        margin-top: 0.5rem;
        padding-top: 0.5rem;
        border-top: 1px solid var(--border);
    }

    .nav-contact-info {
        display: flex;
        font-size: 0.85rem;
        justify-content: center;
        width: 100%;
        color: var(--primary);
    }

    .navbar.scrolled .nav-contact-info {
        /* Keep it visible */
    }

    .nav-links {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: var(--white);
        flex-direction: column;
        padding: 2rem;
        box-shadow: var(--shadow-md);
        text-align: center;
        width: 100%;
        z-index: 999;
    }

    .nav-links.active {
        display: flex;
    }
}

/* Cards & Sections */
.card {
    background: var(--white);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    border: 1px solid rgba(226, 232, 240, 0.8);
    overflow: hidden;
}

.card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-lg);
    border-color: transparent;
}

/* Scroll Animations */
.fade-up {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease-out, transform 0.8s cubic-bezier(0.5, 0, 0, 1);
}

.fade-up.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Rest of Footer (Updates) */
.footer {
    background: linear-gradient(to bottom, #1e3a8a, #0f172a);
    /* Rich gradient */
    color: var(--white);
    padding: 6rem 0 2rem;
    position: relative;
    overflow: hidden;
}

.footer-heading {
    position: relative;
    padding-bottom: 1rem;
    margin-bottom: 2rem;
    color: var(--accent);
    /* Bright color */
}

.footer-heading::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 40px;
    height: 3px;
    background: var(--accent);
    border-radius: 2px;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 3rem;
    margin-bottom: 3rem;
}

.footer-links li {
    margin-bottom: 0.75rem;
}

.footer-links a {
    color: #94a3b8;
    text-decoration: none;
    transition: var(--transition);
}

.footer-links a:hover {
    color: var(--accent);
    padding-left: 5px;
}

.footer-contact-item {
    display: flex;
    gap: 1rem;
    margin-bottom: 1rem;
    color: #94a3b8;
}

.copyright {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 2rem;
    text-align: center;
    color: #64748b;
    font-size: 0.875rem;
}