/* CSS Variables based on Design System */
:root {
    --primary-color: #010291;
    --accent-light: #51D8FD;
    --dark-primary: #2175D2;
    --gradient-primary: linear-gradient(90deg, #51D8FD, #2175D2);
    --white: #FFFFFF;
    --off-white: #F8F9FB;
    --light-gray: #D9E3EE;
    --mid-gray: #888888;
    --dark-gray: #444444;
    --near-black: #1A1A1A;
    --overlay-dark: rgba(0, 0, 0, 0.55);

    --font-primary: 'Figtree', sans-serif;
    --font-heading: 'Oddval Text', 'Oddval', sans-serif;
    --font-fallback: 'Helvetica Neue', Arial, sans-serif;

    --section-padding-y: 90px;
    --section-padding-x: 80px;
    --container-max-width: 1200px;
    --card-padding: 28px;
    --grid-gap: 24px;

    --radius-button: 4px;
    --radius-card: 4px;
    --radius-image: 4px;
    --radius-badge: 4px;

    --shadow-card: 0 4px 20px rgba(0, 0, 0, 0.08);
    --shadow-button: 0 2px 10px rgba(232, 25, 44, 0.3);
    --shadow-hover: 0 8px 30px rgba(0, 0, 0, 0.12);
}

/* Reset & Global Rules */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-primary);
    color: var(--near-black);
    background-color: var(--white);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

img {
    max-width: 100%;
    height: auto;
    object-fit: cover;
    border-radius: var(--radius-image);
}

a {
    text-decoration: none;
    transition: color 0.2s ease;
}

ul {
    list-style: none;
}

/* Typography */
h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-heading);
    margin-bottom: 20px;
}

h1 {
    font-size: 52px;
    font-weight: 800;
    line-height: 1.1;
}

h2 {
    font-size: 36px;
    font-weight: 700;
    line-height: 1.2;
}

.eyebrow-label {
    display: inline-block;
    color: var(--primary-color);
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 2px;
    text-transform: uppercase;
    margin-bottom: 16px;
}

.paragraph-large {
    font-size: 16px;
    font-weight: 400;
    line-height: 1.7;
}

.paragraph-small {
    font-size: 14px;
    font-weight: 400;
    line-height: 1.6;
}

.accent-word {
    color: var(--primary-color);
}

/* Buttons Component */
.btn {
    display: inline-block;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
    padding: 14px 28px;
    border-radius: var(--radius-button);
    transition: all 0.2s ease;
    cursor: pointer;
    text-align: center;
    border: none;
}

.btn-filled {
    background: var(--gradient-primary);
    color: var(--white);
    box-shadow: 0 4px 15px rgba(81, 216, 253, 0.3);
}

.btn-filled:hover {
    box-shadow: 0 6px 20px rgba(81, 216, 253, 0.4);
    transform: translateY(-2px);
    color: var(--white);
}

.btn-outline {
    background-color: transparent;
    border: 2px solid var(--white);
    color: var(--white);
}

.btn-outline:hover {
    background-color: var(--white);
    color: var(--near-black);
    transform: translateY(-2px);
}

.btn-link {
    font-size: 13px;
    font-weight: 600;
    color: var(--primary-color);
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.btn-link:hover {
    color: var(--dark-primary);
    transform: translateX(4px);
}

/* Layout & Container Utility */
.container {
    max-width: var(--container-max-width);
    margin: 0 auto;
    width: 100%;
}

.section {
    padding: var(--section-padding-y) var(--section-padding-x);
}

.grid-2-col {
    display: flex;
    gap: 60px;
}

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 85px;
    background: transparent;
    z-index: 1000;
    display: flex;
    align-items: center;
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.navbar.scrolled {
    height: 70px;
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.08);
    border-bottom: 1px solid rgba(255, 255, 255, 0.3);
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    padding: 0 var(--section-padding-x);
    max-width: 1400px;
    margin: 0 auto;
}

.logo {
    display: flex;
    align-items: center;
    height: 100%;
}

.logo img {
    height: 30px;
    width: auto;
    object-fit: contain;
    transition: height 0.3s ease;
}

.navbar.scrolled .logo img {
    height: 24px;
}

.nav-links {
    display: flex;
    gap: 32px;
    align-items: center;
}

.nav-links a {
    color: var(--white);
    font-size: 13px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: color 0.3s;
}

.nav-links a:hover {
    color: var(--accent-light);
}

.navbar.scrolled .nav-links a {
    color: var(--near-black);
}

.navbar.scrolled .nav-links a:hover {
    color: var(--primary-color);
}

.nav-cta {
    padding: 10px 22px;
    font-size: 13px;
}

/* Mobile Menu Toggle (Hidden by default) */
.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    font-size: 24px;
    color: var(--white);
    cursor: pointer;
    transition: color 0.3s;
}

.navbar.scrolled .mobile-menu-btn {
    color: var(--near-black);
}

/* 1. Hero Section */
.page-hero {
    margin-top: 0px !important;
}

.hero {
    position: relative;
    padding: 160px var(--section-padding-x);
    min-height: 80vh;
    display: flex;
    align-items: center;
    margin-top: 0px;
    background-color: var(--near-black);
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    /* Black fade from right to left pointing to the local image */
    background-image: linear-gradient(to left, rgba(26, 26, 26, 0.95) 0%, rgba(26, 26, 26, 0.85) 45%, rgba(26, 26, 26, 0.1) 100%), url('Images/Firefly%2020251205151634.png');
    background-size: cover;
    background-position: center;
    border-radius: 0;
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 560px;
    margin-left: auto;
    text-align: right;
}

.hero .btn-group {
    justify-content: flex-end;
}

.hero h1 {
    color: var(--white);
    margin-bottom: 24px;
}

.hero p {
    color: rgba(255, 255, 255, 0.85);
    font-size: 15px;
    line-height: 1.7;
    margin-bottom: 36px;
}

.btn-group {
    display: flex;
    gap: 16px;
}

/* 2. Services Section */
.services {
    background-color: var(--white);
}

.services .grid-2-col {
    gap: 40px;
}

.services-left {
    width: 30%;
}

.services-right {
    width: 65%;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    grid-template-rows: 260px 260px;
    gap: 16px;
}

.service-card {
    position: relative;
    overflow: hidden;
    border-radius: 12px;
    cursor: pointer;
    background-color: #222;
}

.service-card:first-child {
    grid-row: 1 / 3;
}

.service-card img {
    display: block;
    width: 100%;
    height: 100% !important;
    max-width: none;
    object-fit: cover;
    border-radius: 0;
    transition: transform 0.6s ease;
}

.service-card:hover img {
    transform: scale(1.05);
}

.service-card-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(180deg, transparent 0%, rgba(0, 0, 0, 0.15) 30%, rgba(0, 0, 0, 0.7) 100%);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 28px;
    z-index: 2;
    transition: background 0.4s ease;
}

.service-card:hover .service-card-overlay {
    background: linear-gradient(180deg, rgba(0, 0, 0, 0.2) 0%, rgba(0, 0, 0, 0.8) 100%);
}

.service-card h3 {
    color: #fff;
    font-size: 18px;
    font-weight: 700;
    margin: 0;
    line-height: 1.3;
}

.service-description {
    color: rgba(255, 255, 255, 0.9);
    font-size: 13px;
    line-height: 1.5;
    margin: 0;
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    transition: max-height 0.4s ease, opacity 0.4s ease, margin 0.4s ease;
}

.service-card:hover .service-description {
    max-height: 80px;
    opacity: 1;
    margin-top: 10px;
}

.service-arrow {
    position: absolute;
    bottom: 28px;
    right: 28px;
    width: 34px;
    height: 34px;
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(4px);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 12px;
    z-index: 3;
    transition: background 0.3s ease, transform 0.3s ease;
}

.service-card:hover .service-arrow {
    background: var(--accent-light);
}

.services-below-text {
    font-size: 14px;
    color: #666666;
    line-height: 1.6;
}

/* 3. Core Values */
.core-values {
    background-color: var(--off-white);
}

.values-left {
    width: 45%;
    position: relative;
}

.values-img {
    height: 420px;
    width: 100%;
}

.badge-overlay {
    position: absolute;
    bottom: -20px;
    left: -20px;
    background-color: var(--primary-color);
    color: var(--white);
    padding: 24px;
    border-radius: var(--radius-badge);
    box-shadow: var(--shadow-card);
    max-width: 200px;
}

.badge-overlay-title {
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 8px;
}

.badge-overlay-value {
    font-size: 32px;
    font-weight: 800;
}

.values-right {
    width: 50%;
    padding-left: 60px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.values-right p {
    font-size: 15px;
    color: #555555;
    margin-bottom: 28px;
}

.icon-list li {
    position: relative;
    padding-left: 28px;
    margin-bottom: 14px;
    font-size: 15px;
    font-weight: 500;
    color: var(--near-black);
}

.icon-list li::before {
    content: "\f0c8";
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
    position: absolute;
    left: 0;
    top: 4px;
    color: var(--primary-color);
    font-size: 10px;
}

/* 4. Milestone Banner */
.milestone {
    position: relative;
    height: 280px;
    display: flex;
    align-items: center;
    background-color: var(--near-black);
}

.milestone-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)), url('https://images.unsplash.com/photo-1600880292203-757bb62b4baf?w=1400');
    background-size: cover;
    background-position: center;
    border-radius: 0;
    z-index: 1;
}

.milestone-content {
    position: relative;
    z-index: 2;
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.milestone h2 {
    color: var(--white);
    font-size: 40px;
    margin: 0;
}

.milestone a {
    color: var(--white);
    font-size: 13px;
    font-weight: 600;
}

.milestone a:hover {
    color: var(--accent-light);
}

/* 5. Value Proposition */
.value-prop {
    background-color: var(--white);
    text-align: center;
}

.value-prop-header {
    max-width: 600px;
    margin: 0 auto 60px auto;
}

.value-prop-header p {
    color: #555555;
    font-size: 15px;
}

.value-cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--grid-gap);
    text-align: left;
}

.value-card {
    padding: 32px 24px;
    background-color: var(--white);
}

.value-card i {
    color: var(--primary-color);
    font-size: 40px;
    margin-bottom: 16px;
}

.value-card h3 {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 12px;
}

.value-card p {
    font-size: 14px;
    color: #666666;
    margin-bottom: 20px;
}

/* 6. Our Process */
.process {
    background-color: var(--primary-color);
    color: var(--white);
}

.process-left {
    width: 35%;
}

.process-left h2 {
    color: var(--white);
}

.process-left p {
    color: rgba(255, 255, 255, 0.85);
    font-size: 14px;
}

.process-right {
    width: 60%;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
}

.process-step h3 {
    font-size: 18px;
    margin-bottom: 10px;
    display: flex;
    align-items: baseline;
    gap: 10px;
}

.process-step .step-num {
    color: var(--white);
    font-weight: 800;
    font-size: 20px;
}

.process-step p {
    color: rgba(255, 255, 255, 0.8);
    font-size: 14px;
    margin: 0;
}

/* 7. Commitment */
.commitment {
    background: var(--white);
}

.commitment-left {
    width: 40%;
}

.stats-card {
    background-color: var(--near-black);
    padding: 40px 36px;
    border-radius: var(--radius-card);
    display: flex;
    flex-direction: column;
    gap: 40px;
    box-shadow: var(--shadow-card);
}

.stat-item h3 {
    color: rgba(255, 255, 255, 0.6);
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 5px;
    text-transform: uppercase;
}

.stat-item .stat-val {
    color: var(--white);
    font-size: 40px;
    font-weight: 800;
    display: flex;
    align-items: center;
    gap: 10px;
}

.stat-item:first-child .stat-val {
    font-size: 48px;
}

.stat-item i {
    color: var(--accent-light);
}

.commitment-right {
    width: 55%;
    padding-left: 60px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.commitment-right p {
    font-size: 15px;
    color: #666666;
    margin-bottom: 28px;
}

/* 8. Insights (Blog) */
.insights {
    background-color: var(--off-white);
    text-align: center;
}

.insights-header {
    margin-bottom: 60px;
}

.insights-header p {
    color: #555555;
}

.blog-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--grid-gap);
    text-align: left;
}

.blog-card {
    background: var(--white);
    border-radius: var(--radius-card);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.07);
    transition: var(--hover-lift);
}

.blog-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-hover);
}

.blog-image-wrap {
    position: relative;
    height: 200px;
}

.blog-image-wrap img {
    width: 100%;
    height: 100%;
    border-bottom-left-radius: 0;
    border-bottom-right-radius: 0;
}

.blog-badge {
    position: absolute;
    top: 16px;
    left: 16px;
    background: var(--primary-color);
    color: var(--white);
    font-size: 11px;
    font-weight: 600;
    padding: 4px 12px;
    border-radius: var(--radius-badge);
    text-transform: uppercase;
}

.blog-content {
    padding: 24px;
}

.blog-date {
    font-size: 12px;
    color: #888888;
    margin-bottom: 8px;
    display: block;
}

.blog-content h3 {
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 16px;
    line-height: 1.4;
}

/* 9. Footer */
.footer {
    background-color: var(--primary-color);
    color: var(--white);
    padding: 60px var(--section-padding-x) 30px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1.5fr 1.5fr 2fr;
    gap: 40px;
}

.footer-brand .logo {
    display: flex;
    margin-bottom: 15px;
}

.footer-brand .logo img {
    height: 55px;
}

.footer-brand p {
    color: rgba(255, 255, 255, 0.6);
    font-size: 14px;
    margin-bottom: 20px;
}

.social-links {
    display: flex;
    gap: 16px;
}

.social-links a {
    color: var(--white);
    font-size: 18px;
    opacity: 0.8;
    transition: all 0.2s;
}

.social-links a:hover {
    color: var(--accent-light);
    opacity: 1;
}

.footer h4 {
    font-size: 16px;
    margin-bottom: 20px;
    color: var(--white);
}

.footer-links ul li {
    margin-bottom: 12px;
}

.footer-links ul li a {
    color: rgba(255, 255, 255, 0.7);
    font-size: 14px;
}

.footer-links ul li a:hover {
    color: var(--accent-light);
}

.footer-contact .contact-item {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
    color: rgba(255, 255, 255, 0.7);
    font-size: 14px;
}

.footer-contact .contact-item i {
    color: var(--accent-light);
    font-size: 16px;
    width: 20px;
    text-align: center;
}

.footer-bottom {
    margin-top: 40px;
    padding-top: 24px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    text-align: center;
    color: rgba(255, 255, 255, 0.4);
    font-size: 13px;
}

/* Responsive Breakpoints */
@media (max-width: 1024px) {

    .grid-2-col,
    .footer-grid {
        flex-direction: column;
        gap: 40px;
    }

    .services-left,
    .services-right,
    .values-left,
    .values-right,
    .process-left,
    .process-right,
    .commitment-left,
    .commitment-right {
        width: 100%;
        padding-left: 0;
    }

    .services-grid {
        grid-template-columns: 1fr;
        grid-template-rows: auto;
    }

    .service-card:first-child {
        grid-row: auto;
    }

    .blog-grid,
    .value-cards {
        grid-template-columns: repeat(2, 1fr);
    }

    h1 {
        font-size: 40px;
    }

    h2 {
        font-size: 30px;
    }

    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 768px) {
    :root {
        --section-padding-y: 60px;
        --section-padding-x: 24px;
    }

    .nav-links {
        display: none;
        /* simple mobile hide for now */
    }

    .mobile-menu-btn {
        display: block;
    }

    .hero {
        padding-top: 120px;
        padding-bottom: 80px;
    }

    .hero h1 {
        font-size: 36px;
    }

    .btn-group {
        flex-direction: column;
    }

    .services-grid,
    .blog-grid,
    .value-cards,
    .process-right {
        grid-template-columns: 1fr;
    }

    .badge-overlay {
        position: relative;
        bottom: auto;
        left: auto;
        margin-top: -30px;
        margin-left: 20px;
        z-index: 5;
    }

    .milestone-content {
        flex-direction: column;
        text-align: center;
        gap: 20px;
    }

    .footer-grid {
        grid-template-columns: 1fr;
    }
}