@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@400;500;600;700;800&display=swap');

/* --- Reset & Base Styles --- */
:root {
    /* Premium Corporate Palette */
    --primary-navy: #0B1F3A;
    /* Deep Navy (Hero, Footer) */
    --secondary-navy: #163A6B;
    /* Lighter Navy (Accents, Gradients) */
    --accent-gold: #C6A55C;
    /* Elegant Gold (Buttons, Highlights) */
    --accent-gold-hover: #D4B673;
    /* Lighter Gold for Hover */

    --bg-light: #F8FAFC;
    /* Light Grey-Blue (Body Background) */
    --bg-white: #FFFFFF;
    /* Cards */

    --text-main: #1E293B;
    /* Slate 900 */
    --text-body: #475569;
    /* Slate 600 */
    --text-light: #F1F5F9;
    /* Off-white for dark backgrounds */

    --border-light: rgba(148, 163, 184, 0.2);
    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
    --shadow-lg: 0 10px 40px -10px rgba(0, 0, 0, 0.08);
    /* Premium soft shadow */

    --container-width: 1280px;
    --header-height: 80px;
    --radius-md: 8px;
    --radius-lg: 16px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Plus Jakarta Sans', sans-serif;
    background-color: var(--bg-light);
    color: var(--text-body);
    line-height: 1.6;
    overflow-x: hidden;
    width: 100%;
    opacity: 0;
    transform: translateY(15px);
    transition: opacity 0.4s ease-out, transform 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

body.fade-in {
    opacity: 1;
    transform: none;
    /* Fix: 'none' ensures position:fixed children work correctly */
}

h1,
h2,
h3,
h4,
h5,
h6 {
    color: var(--text-main);
    line-height: 1.2;
    font-weight: 700;
}

a {
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

table {
    width: 100%;
    border-collapse: collapse;
    display: block;
    overflow-x: auto;
    white-space: nowrap;
}

/* --- Utility Classes --- */
.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 24px;
}

.section-padding {
    padding: 100px 0;
}

.text-center {
    text-align: center;
}

.text-gradient {
    background: linear-gradient(135deg, var(--accent-gold) 0%, #EAB308 100%);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* --- Buttons --- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 32px;
    border-radius: 4px;
    /* More corporate square-ish */
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 1px solid transparent;
    letter-spacing: 0.5px;
}

.btn-primary {
    background: var(--accent-gold);
    color: #0F172A;
    /* Dark text on gold for readability */
    box-shadow: 0 4px 15px rgba(198, 165, 92, 0.3);
}

.btn-primary:hover {
    background: var(--accent-gold-hover);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(198, 165, 92, 0.4);
}

.btn-outline {
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: var(--text-light);
}

.btn-outline:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: var(--text-light);
    transform: translateY(-2px);
}

.btn-outline-dark {
    /* For light backgrounds */
    background: transparent;
    border: 1px solid var(--primary-navy);
    color: var(--primary-navy);
}

.btn-outline-dark:hover {
    background: var(--primary-navy);
    color: var(--text-light);
}


/* --- Header & Navigation --- */
header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 90px;
    /* Slight increase for bigger logo */
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    z-index: 1000;
    display: flex;
    align-items: center;
    box-shadow: var(--shadow-sm);
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    max-width: 95%;
    /* Push content more to the edges */
    margin: 0 auto;
    padding: 0 20px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 15px;
}

.logo img {
    height: 65px;
    /* Larger Size */
    width: auto;
}

.logo-text h1 {
    font-size: 1.8rem;
    font-weight: 800;
    color: var(--primary-navy);
    letter-spacing: -0.5px;
    margin: 0;
    line-height: 1;
}

.logo-text span {
    font-size: 0.75rem;
    color: var(--accent-gold);
    letter-spacing: 2px;
    text-transform: uppercase;
    display: block;
    font-weight: 700;
    margin-top: 2px;
}

.nav-links {
    display: flex;
    gap: 10px;
    /* Tighter gap for buttons */
    align-items: center;
}

/* Professional Button Style for Nav Links */
.nav-links li a {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--primary-navy);
    padding: 10px 24px;
    border-radius: 50px;
    transition: all 0.3s ease;
    background: transparent;
    border: 1px solid transparent;
    /* Prepare for hover borders if needed */
}

/* Remove the old underline pseudo-element */
.nav-links li a::after {
    display: none;
}

.nav-links li a:hover {
    background: rgba(11, 31, 58, 0.05);
    /* Subtle hover bg */
    color: var(--accent-gold);
    transform: translateY(-2px);
}

.nav-links li a.active {
    background: var(--primary-navy);
    color: #ffffff;
    box-shadow: 0 4px 12px rgba(11, 31, 58, 0.2);
    border-color: var(--primary-navy);
}

.mobile-menu-btn {
    display: none;
    color: var(--primary-navy);
    font-size: 1.5rem;
    background: none;
    border: none;
    cursor: pointer;
    z-index: 1001;
    padding: 8px;
}

/* --- Hero Section --- */
.hero {
    position: relative;
    padding-top: calc(var(--header-height) + 80px);
    /* More spacing */
    padding-bottom: 120px;
    min-height: 90vh;
    /* Taller hero */
    display: flex;
    align-items: center;
    /* Premium Navy Gradient Background */
    background: linear-gradient(135deg, #0B1F3A 0%, #163A6B 100%);
    color: var(--text-light);
    overflow: hidden;
}

/* Subtle background pattern overlay */
.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image:
        radial-gradient(circle at 20% 30%, rgba(255, 255, 255, 0.03) 0%, transparent 20%),
        radial-gradient(circle at 80% 70%, rgba(198, 165, 92, 0.05) 0%, transparent 20%);
    pointer-events: none;
}

.hero-content {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    /* Text left, Image/Stats right (if added later) - defaulting to center for now based on previous requests */
    gap: 60px;
    align-items: center;
    position: relative;
    z-index: 2;
}

/* For now, keeping centered layout per user's last preference but upgrading style */
.hero-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    max-width: 900px;
    margin: 0 auto;
}

.hero-text h1 {
    font-size: 4rem;
    /* Larger, more impactful */
    margin-bottom: 24px;
    line-height: 1.1;
    color: var(--text-light);
    letter-spacing: -1px;
}

.hero-text p {
    font-size: 1.25rem;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 48px;
    max-width: 700px;
    font-weight: 400;
}

.hero-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    margin-bottom: 80px;
}

/* Stats Row - Glassmorphism */
.hero-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    width: 100%;
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-lg);
    padding: 40px;
}

.stat-card {
    background: transparent;
    padding: 0;
    border: none;
    text-align: center;
    box-shadow: none;
    position: relative;
}

/* Divider lines between stats */
.stat-card:not(:last-child)::after {
    content: '';
    position: absolute;
    right: -15px;
    top: 20%;
    height: 60%;
    width: 1px;
    background: rgba(255, 255, 255, 0.1);
}

.stat-number {
    display: block;
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--accent-gold);
    margin-bottom: 8px;
    font-family: 'Plus Jakarta Sans', sans-serif;
}

.stat-label {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.7);
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
}

/* --- Services Section --- */
.card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 60px;
}

.service-card {
    background: var(--bg-white);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-lg);
    padding: 48px 32px;
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
    height: 100%;
    display: flex;
    flex-direction: column;
    box-shadow: var(--shadow-md);
}

.service-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
    border-color: rgba(198, 165, 92, 0.3);
    /* Gold hint on border */
}

/* Icon Container */
.service-icon {
    width: 70px;
    height: 70px;
    background: rgba(11, 31, 58, 0.03);
    /* Subtle navy tint */
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 30px;
    color: var(--primary-navy);
    font-size: 1.75rem;
    transition: all 0.3s ease;
}

.service-card:hover .service-icon {
    background: var(--primary-navy);
    color: var(--accent-gold);
}

.service-card h3 {
    font-size: 1.35rem;
    margin-bottom: 16px;
    color: var(--primary-navy);
}

.service-card p {
    color: var(--text-body);
    font-size: 1rem;
    margin-bottom: 32px;
    flex-grow: 1;
}

.service-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-weight: 700;
    color: var(--secondary-navy);
    font-size: 0.9rem;
    position: relative;
    z-index: 2;
    /* Clickable */
}

.service-link i {
    transition: transform 0.3s ease;
}

.service-link:hover i {
    transform: translateX(5px);
}

/* Full card clickable area */
.service-link::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

/* --- About & Content Sections --- */
.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
}

.about-features {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    margin-top: 50px;
}

.feature-item {
    display: flex;
    align-items: flex-start;
    gap: 20px;
}

.feature-icon {
    color: var(--accent-gold);
    font-size: 1.25rem;
    margin-top: 4px;
}

/* --- Footer --- */
footer {
    background: var(--primary-navy);
    padding: 100px 0 30px;
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.95rem;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1.5fr;
    gap: 60px;
    margin-bottom: 80px;
}

.footer-brand p {
    margin-top: 24px;
    line-height: 1.6;
    max-width: 300px;
}

.footer-col h4 {
    margin-bottom: 30px;
    font-size: 1.1rem;
    color: var(--white);
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.footer-links li {
    margin-bottom: 16px;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.6);
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: var(--accent-gold);
    padding-left: 4px;
}

.footer-bottom {
    padding-top: 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    text-align: center;
    color: rgba(255, 255, 255, 0.4);
    font-size: 0.85rem;
}

/* --- Responsive Design --- */
@media (max-width: 1024px) {
    .container {
        padding: 0 30px;
    }

    .hero-text h1 {
        font-size: 3rem;
    }
}

@media (max-width: 768px) {
    .nav-links {
        display: none;
        flex-direction: column;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: var(--bg-white);
        padding: 40px 20px;
        box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
        border-top: 1px solid var(--border-light);
        gap: 20px;
    }

    .nav-links.active {
        display: flex;
        animation: mobileMenuSlide 0.3s ease forwards;
    }

    @keyframes mobileMenuSlide {
        from {
            opacity: 0;
            transform: translateY(-10px);
        }

        to {
            opacity: 1;
            transform: translateY(0);
        }
    }

    .nav-links li {
        width: 100%;
        text-align: center;
    }

    .nav-links li a {
        display: block;
        font-size: 1.1rem;
        padding: 10px;
        color: var(--primary-navy);
    }

    .nav-links li a::after {
        display: none;
    }

    /* Remove underline effect on mobile */

    .mobile-menu-btn {
        display: block;
    }

    .hero {
        padding-top: 120px;
        padding-bottom: 80px;
    }

    .hero-content {
        text-align: center;
    }

    .hero-stats {
        grid-template-columns: repeat(2, 1fr);
        gap: 0;
        padding: 0;
        /* Remove padding to fit borders better */
        background: transparent;
        /* Remove container bg on mobile for cleaner look */
        border: none;
    }

    .stat-card {
        padding: 30px 10px;
        border: 1px solid rgba(255, 255, 255, 0.1);
        background: rgba(255, 255, 255, 0.05);
        border-radius: 12px;
        margin: 5px;
    }

    .stat-card:not(:last-child)::after {
        display: none;
    }

    /* Remove dividers */

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 50px;
    }
}

/* --- Global Back Button --- */
.global-back-btn {
    position: fixed;
    top: 110px;
    left: 20px;
    z-index: 2000;
    /* High z-index to ensure visibility */
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 24px;
    background: var(--bg-white);
    border: 1px solid var(--border-light);
    border-radius: 50px;
    color: var(--primary-navy);
    font-size: 0.9rem;
    font-weight: 700;
    cursor: pointer;
    box-shadow: var(--shadow-md);
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.global-back-btn:hover {
    background: var(--primary-navy);
    color: var(--white);
    transform: translateX(-5px);
    box-shadow: var(--shadow-lg);
}

.global-back-btn i {
    font-size: 1rem;
}