/* Global Design System */
:root {
    /* Color Palette */
    --primary-blue: #0056b3;
    --secondary-blue: #003d80;
    --accent-blue: #e6f0fa;
    --white: #ffffff;
    --text-dark: #333333;
    --text-light: #666666;
    --border-color: #e0e0e0;
    --success-green: #28a745;

    /* Typography */
    --font-heading: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    --font-body: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;

    /* Spacing */
    --container-width: 1200px;
    --section-padding: 80px 0;
}

/* Reset & Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html,
body {
    overflow-x: hidden;
    /* Prevent horizontal scrolling */
    width: 100%;
}

body {
    font-family: var(--font-body);
    color: var(--text-dark);
    line-height: 1.6;
    background-color: var(--white);
    -webkit-font-smoothing: antialiased;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-heading);
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1rem;
    color: var(--secondary-blue);
}

a {
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* Utility Classes */
.container {
    max-width: var(--container-width);
    width: 100%;
    margin: 0 auto;
    padding: 0 20px;
}

.section {
    padding: var(--section-padding);
    width: 100%;
    overflow: hidden;
    /* Ensure sections don't overflow */
}

.text-center {
    text-align: center;
}

.text-primary {
    color: var(--primary-blue);
}

/* New Responsive Classes (replacing inline styles) */
.flex-split {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
}

@media (max-width: 900px) {
    .flex-split {
        grid-template-columns: 1fr;
        gap: 40px;
    }
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 12px 32px;
    font-weight: 600;
    border-radius: 4px;
    /* Slightly rounded for corporate look */
    cursor: pointer;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.btn-primary {
    background-color: var(--primary-blue);
    color: var(--white);
    border: 2px solid var(--primary-blue);
}

.btn-primary:hover {
    background-color: var(--secondary-blue);
    border-color: var(--secondary-blue);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 86, 179, 0.2);
}

.btn-secondary {
    background-color: transparent;
    color: var(--primary-blue);
    border: 2px solid var(--primary-blue);
}

.btn-secondary:hover {
    background-color: var(--primary-blue);
    color: var(--white);
}

/* Navbar */
.navbar {
    position: sticky;
    top: 0;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border-color);
    z-index: 1000;
    padding: 0.5rem 0;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
}

.logo img {
    height: 150px;
    width: auto;
    margin-left: 0;
    mix-blend-mode: multiply;
}

.nav-links {
    display: flex;
    gap: 2rem;
    align-items: center;
}

.nav-links a {
    font-weight: 500;
    color: var(--text-dark);
    font-size: 0.95rem;
}

.nav-links a:hover {
    color: var(--primary-blue);
}

.navbar .btn {
    padding: 6px 16px;
    font-size: 0.85rem;
    border-width: 1px;
    color: var(--white);
}

/* Hero Section */
.hero {
    position: relative;
    background-image: url('../assets/images/hero-bg.png');
    background-size: cover;
    background-position: center;
    color: var(--white);
    padding: 160px 0 120px;
    text-align: center;
}

.hero .overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(0, 61, 128, 0.9), rgba(0, 86, 179, 0.7));
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
    margin: 0 auto;
    width: 100%;
}

.hero h1 {
    font-size: 3.5rem;
    font-weight: 800;
    color: var(--white);
    margin-bottom: 2rem;
    line-height: 1.1;
    word-wrap: break-word;
    /* Prevent long word overflow */
}

.hero-sub {
    font-size: 1.25rem;
    margin-bottom: 3rem;
    color: rgba(255, 255, 255, 0.9);
}

.hero-cta {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
    /* Allow wrapping on small screens */
}

.btn-light {
    background-color: transparent;
    border: 2px solid rgba(255, 255, 255, 0.5);
    color: var(--white);
}

.btn-light:hover {
    background-color: var(--white);
    color: var(--primary-blue);
    border-color: var(--white);
}

/* Features Grid */
.section-title {
    font-size: 2.2rem;
    color: var(--secondary-blue);
    margin-bottom: 1rem;
}

.section-subtitle {
    font-size: 1.1rem;
    color: var(--text-light);
    max-width: 600px;
    margin: 0 auto 4rem;
}

.features-grid {
    display: grid;
    /* Adjusted minmax to 280px to accommodate 320px screens with padding */
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}

.feature-card {
    padding: 40px 30px;
    background: var(--white);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    border-color: var(--primary-blue);
}

.feature-card .icon {
    font-size: 3rem;
    margin-bottom: 1.5rem;
    color: var(--primary-blue);
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.feature-card h3 {
    font-size: 1.3rem;
    margin-bottom: 1rem;
    color: var(--secondary-blue);
}

.feature-card p {
    color: var(--text-light);
}

/* Services Preview */
.bg-light {
    background-color: #f8faff;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-top: 3rem;
}

.service-item {
    background: var(--white);
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.03);
    border-left: 4px solid var(--primary-blue);
}

.service-item h3 {
    font-size: 1.2rem;
    margin-bottom: 0.8rem;
}

.service-item p {
    color: var(--text-light);
    font-size: 0.95rem;
    margin-bottom: 1.5rem;
}

.learn-more {
    font-weight: 600;
    color: var(--primary-blue);
    font-size: 0.9rem;
}

.learn-more:hover {
    text-decoration: underline;
}

.mt-4 {
    margin-top: 2rem;
}

/* CTA Section */
.cta-section {
    background: linear-gradient(135deg, var(--secondary-blue), var(--primary-blue));
    color: var(--white);
    padding-left: 20px;
    padding-right: 20px;
}

.cta-section h2 {
    color: var(--white);
    margin-bottom: 1rem;
}

.cta-section p {
    margin-bottom: 2rem;
    font-size: 1.1rem;
    opacity: 0.9;
}

.btn-white {
    background-color: var(--white);
    color: var(--primary-blue);
    border: 2px solid var(--white);
}

.btn-white:hover {
    background-color: transparent;
    color: var(--white);
}

/* Footer */
footer {
    background-color: #0f1c2e;
    /* Darker navy for footer */
    color: var(--white);
    padding: 80px 0 30px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    /* 4 columns layout */
    gap: 40px;
    margin-bottom: 60px;
}

@media (max-width: 900px) {
    .footer-content {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 600px) {
    .footer-content {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .hero h1 {
        font-size: 2.5rem;
        word-break: break-word;
    }

    .section-title {
        font-size: 1.8rem;
    }
}

.footer h3 {
    color: var(--white);
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    opacity: 0.8;
}

.footer-links a {
    display: block;
    margin-bottom: 0.8rem;
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.95rem;
}

.footer-links a:hover {
    color: var(--white);
    padding-left: 5px;
}

.copyright {
    text-align: center;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 30px;
    color: rgba(255, 255, 255, 0.4);
    font-size: 0.9rem;
}

/* Mobile Navigation */
.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
    gap: 5px;
    z-index: 1001;
}

.hamburger span {
    width: 25px;
    height: 3px;
    background-color: var(--secondary-blue);
    border-radius: 2px;
    transition: all 0.3s ease;
}

@media (max-width: 768px) {
    .hamburger {
        display: flex;
    }

    .nav-links {
        position: fixed;
        top: 70px;
        /* Matched to new navbar padding */
        right: -100%;
        width: 100%;
        height: calc(100vh - 70px);
        /* Full height minus header */
        background-color: var(--white);
        flex-direction: column;
        align-items: center;
        justify-content: flex-start;
        padding: 40px 20px;
        transition: right 0.3s ease;
        box-shadow: 0 10px 15px rgba(0, 0, 0, 0.1);
        gap: 2rem;
        overflow-y: auto;
        /* Allow scrolling within menu if tall */
    }

    .nav-links.active {
        right: 0;
    }

    .nav-links .btn {
        margin-top: 10px;
        width: 100%;
        text-align: center;
    }

    /* Adjust padding for mobile sections */
    .hero {
        padding: 120px 0 80px;
    }

    .section {
        padding: 60px 0;
    }

    .logo img {
        height: 80px;
        /* Resize logo for mobile */
    }
}

/* Page Headers */
.page-header {
    background-color: var(--secondary-blue);
    color: var(--white);
    padding: 100px 0;
    text-align: center;
}

@media (max-width: 768px) {
    .page-header {
        padding: 80px 0 60px;
    }

    .page-header h1 {
        font-size: 2.5rem;
    }
}

/* Contact Form Styles */
.contact-form {
    background: #fff;
    padding: 40px;
    border-radius: 8px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
    border: 1px solid var(--border-color);
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: var(--secondary-blue);
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-family: inherit;
    font-size: 1rem;
}

.form-group textarea {
    resize: vertical;
    height: 120px;
}

@media (max-width: 600px) {
    .contact-form {
        padding: 20px;
    }
}

.service-list {
    margin-left: 20px;
    margin-bottom: 15px;
    color: var(--text-light);
    list-style-type: disc;
}