﻿/* =========================================================
   GLOBAL COLOR VARIABLES (for easy maintenance)
   ========================================================= */
:root {
    --primary-navy: #001f3f;
    --primary-navy-dark: #0a2540;
    --accent-cyan: #00d4ff;
    --accent-cyan-light: #40e0ff;
    --neutral-dark: #0f172a;
    --neutral-gray: #64748b;
    --neutral-light: #f8fafc;
    --neutral-white: #ffffff;
    --text-light: #e2e8f0;
    --shadow-soft: 0 8px 30px rgba(0, 0, 0, 0.25);
    --brand-large: 2.4rem;
    --brand-small: 1.8rem;
    --nav-link-large: 1.1rem;
    --nav-link-small: 1rem;
    --icon-large: 140px;
    --icon-small: 60px;
}

/* =========================================================
   BODY RESET (NO PADDING HACKS)
   ========================================================= */
body {
    margin: 0;
}

/* =========================================================
   HOMEPAGE HERO
   ========================================================= */
.homepage-hero {
    position: relative;
    min-height: 80vh;
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 5rem 1.5rem;
    background-color: var(--primary-navy);
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient( to bottom, rgba(0, 31, 63, 0.35), /* lighter top */
    rgba(10, 37, 64, 0.45) /* lighter bottom */
    );
}

.hero-content {
    position: relative;
    max-width: 900px;
    text-align: center;
    color: var(--neutral-white);
}

    .hero-content h1 {
        font-size: clamp(2.8rem, 6vw, 5rem);
        margin-bottom: 1.25rem;
        text-shadow: 0 2px 10px rgba(0,0,0,0.4);
    }

.hero-description {
    font-size: clamp(1.1rem, 2.5vw, 1.3rem);
    margin-bottom: 2.5rem;
    line-height: 1.6;
    color: var(--text-light);
}

.hero-cta {
    display: inline-block;
    padding: 1rem 2.5rem;
    background: var(--accent-cyan);
    color: var(--neutral-dark);
    font-weight: 700;
    text-decoration: none;
    border-radius: 50px;
    transition: all 0.3s ease;
    box-shadow: 0 6px 20px rgba(0, 212, 255, 0.35);
}

    .hero-cta:hover {
        transform: translateY(-4px);
        box-shadow: 0 12px 30px rgba(0, 212, 255, 0.5);
        background: var(--accent-cyan-light);
    }



/* =========================================================
   FEATURE GRID (Full-width with main background)
   ========================================================= */
.feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2.5rem;
    padding: 5rem 2rem; /* inner padding, keeps content from touching edges */
    width: 100%; /* full width */
    max-width: 100%; /* remove max-width restriction */
    margin: 0; /* remove auto-centering */
    background: linear-gradient(to right, var(--primary-navy), var(--primary-navy-dark));
    box-sizing: border-box;
}

.feature-item {
    position: relative; /* needed for overlay */
    text-align: center;
    padding: 2rem;
    border-radius: 12px;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    color: white; /* text visible over overlay */
    box-shadow: var(--shadow-soft);
    overflow: hidden; /* ensures overlay doesn't spill */
    opacity: 0;
    transform: translateY(60px);
    transition: all 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

    /* Active / visible state */
    .feature-item.is-visible {
        opacity: 1;
        transform: translateY(0);
    }

        /* Optional: tiny bounce effect */
        .feature-item.is-visible.bounce {
            transition: all 1.1s cubic-bezier(0.175, 0.885, 0.32, 1.275); /* overshoot */
        }

    /* Dark overlay for readability */
    .feature-item::before {
        content: "";
        position: absolute;
        inset: 0;
        background: linear-gradient(to bottom, rgba(0, 31, 63, 0.4), rgba(10, 37, 64, 0.6));
        border-radius: 12px;
        pointer-events: none; /* ensures text is clickable */
    }

    /* Ensure text sits above overlay */
    .feature-item * {
        position: relative;
        z-index: 1;
    }

    .feature-item:hover {
        transform: translateY(-8px);
    }

    .feature-item img {
        width: 64px;
        height: auto;
        margin-bottom: 1.25rem;
    }

    .feature-item h3 {
        font-size: 1.4rem;
        margin-bottom: 0.75rem;
        color: var(--primary-navy);
    }

    .feature-item p {
        line-height: 1.6;
        color: white;
    }


/* =========================================================
   CALLOUT BANNER
   ========================================================= */
.callout-banner {
    position: relative;
    background-size: cover;
    background-position: center;
    padding: 6rem 1.5rem;
    color: var(--neutral-white);
    background-color: var(--primary-navy);
}

    .callout-banner .overlay {
        position: absolute;
        inset: 0;
        background: linear-gradient( to bottom, rgba(0, 31, 63, 0.35), /* lighter top */
        rgba(10, 37, 64, 0.45) /* lighter bottom */
        );
    }

    .callout-banner .content {
        position: relative;
        max-width: 800px;
        margin: 0 auto;
        text-align: center;
    }

    .callout-banner h2 {
        font-size: clamp(2.2rem, 5vw, 3.5rem);
        margin-bottom: 1.25rem;
    }

    .callout-banner p {
        font-size: 1.2rem;
        line-height: 1.6;
        margin-bottom: 2rem;
    }


/* =========================================================
   SPLIT CONTENT - Full-width background, centered content
   ========================================================= */
.split-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    padding: 5rem 1.5rem;
    /* Remove max-width & auto margin → full bleed */
    /* width: 100%;               ← not needed, block elements are 100% by default */
    margin: 0; /* reset centering */

    align-items: center;
    /* Keep your beautiful gradient full-width */
    background: linear-gradient(to right, var(--primary-navy), var(--primary-navy-dark));
}

    /* Center the inner content + respect readability */
    .split-content > * {
        max-width: 1400px;
        margin-left: auto;
        margin-right: auto;
        width: 100%; /* ensures it respects padding on small screens */
    }

/* Optional: Add horizontal padding only to content on very wide screens */
@media (min-width: 1400px) {
    .split-content {
        padding-left: calc((100% - 1400px) / 2 + 1.5rem);
        padding-right: calc((100% - 1400px) / 2 + 1.5rem);
    }
}

/* Your existing child styles remain mostly the same */
.split-content .text h2 {
    font-size: 2.5rem;
    margin-bottom: 1.25rem;
    color: white;
}

.split-content .text p {
    line-height: 1.7;
    margin-bottom: 1.75rem;
    color: white;
}

.split-content .image img {
    width: 100%;
    max-width: 720px;
    max-height: 600px;
    height: auto;
    object-fit: cover; /* ← was 'cover' in your latest snippet */
    border-radius: 12px;
    box-shadow: var(--shadow-soft);
    display: block;
    margin: 1.5rem auto;
}

/* =========================================================
   RESPONSIVE
   ========================================================= */
@media (max-width: 992px) {
    .split-content {
        grid-template-columns: 1fr;
    }
}

.page-breadcrumbs-overlay {
    position: absolute; /* Sit on top of parent */
    bottom: 1.5rem; /* distance from bottom of hero */
    left: 1.5rem; /* distance from left of hero */
    z-index: 10; /* make sure it sits above hero content */
    color: var(--neutral-white);
    font-size: 0.9rem;
    text-shadow: 0 1px 4px rgba(0,0,0,0.4); /* improves contrast */
    margin: 0; /* remove any default margins */
    padding: 0; /* remove padding */
}


    .page-breadcrumbs-overlay ol {
        list-style: none;
        display: flex;
        flex-wrap: wrap;
        gap: 0.5rem;
        padding: 0;
        margin: 0;
    }

    .page-breadcrumbs-overlay li {
        color: var(--neutral-white);
    }

        .page-breadcrumbs-overlay li::after {
            content: "/";
            margin-left: 0.5rem;
            color: rgba(255,255,255,0.7);
        }

        .page-breadcrumbs-overlay li:last-child::after {
            display: none;
        }

    .page-breadcrumbs-overlay a {
        color: var(--accent-cyan);
        text-decoration: none;
        transition: color 0.2s ease;
    }

        .page-breadcrumbs-overlay a:hover {
            color: var(--accent-cyan-light);
        }

    .page-breadcrumbs-overlay li[aria-current="page"] {
        color: var(--neutral-white);
        font-weight: 600;
    }


/* =========================================================
   STANDARD PAGE HERO
   ========================================================= */

.page-hero {
    position: relative;
    min-height: 30vh; /* half height vs homepage */
    display: flex;
    align-items: center;
    background-size: cover;
    background-position: center;
    background-color: var(--primary-navy);
}

/* Overlay */
.page-hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient( to bottom, rgba(0, 31, 63, 0.55), rgba(10, 37, 64, 0.65) );
}

/* Content */
.page-hero-content {
    position: relative;
    z-index: 2;
    padding-top: 4rem;
    padding-bottom: 4rem;
}

.page-hero-title {
    color: var(--neutral-white);
    font-size: clamp(2.2rem, 5vw, 1.2rem);
    font-weight: 800;
    text-shadow: 0 2px 10px rgba(0,0,0,0.35);
    margin: 0;
}

/* Responsive */
@media (max-width: 768px) {
    .page-hero {
        min-height: 32vh;
    }
}


/* Lighter form container */
.bg-contact-light {
    background-color: #1b263b; /* Slightly lighter blue-gray */
    border: 1px solid #415a77; /* Subtle border */
}

/* Title styling */
.contact-title {
    color: white;
    font-weight: 600;
    letter-spacing: -0.5px;
}

.contact-section {
    background: linear-gradient(to right, var(--primary-navy), var(--primary-navy-dark));
}

/* Form input styling */
.form-control {
    background-color: #293b5f;
    border: 1px solid #415a77;
    color: white;
}

    .form-control:focus {
        background-color: #293b5f;
        border-color: #778da9;
        box-shadow: 0 0 0 0.25rem rgba(120, 180, 255, 0.25);
        color: white;
    }

    .form-control::placeholder {
        color: #9ca3af;
    }

.form-floating > label {
    color: #c7d2fe;
}

/* Button */
.btn-primary {
    background-color: #60a5fa;
    border-color: #60a5fa;
}

    .btn-primary:hover {
        background-color: #3b82f6;
        border-color: #3b82f6;
    }

/* Make sure form looks good on mobile */
@media (max-width: 576px) {
    .contact-form-box {
        padding: 1.5rem !important;
    }
}


/* =========================
   Portfolio Section
========================= */

.portfolio-grid {
    padding: 100px 20px;
    background: linear-gradient(to right, var(--primary-navy), var(--primary-navy-dark));
}

    .portfolio-grid .container {
        max-width: 1200px;
        margin: 0 auto;
    }

    .portfolio-grid h2 {
        text-align: center;
        font-size: 2.5rem;
        margin-bottom: 15px;
        color: white;
    }

    .portfolio-grid .section-intro {
        text-align: center;
        max-width: 700px;
        margin: 0 auto 60px auto;
        font-size: 1.1rem;
        color: #666;
    }

    /* =========================
   Grid Layout
========================= */

    .portfolio-grid .grid {
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        gap: 40px;
    }

/* =========================
   Portfolio Card
========================= */

.portfolio-item {
    background: #ffffff;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.06);
    transition: all 0.35s ease;
    display: flex;
    flex-direction: column;
}

    .portfolio-item:hover {
        transform: translateY(-10px);
        box-shadow: 0 20px 50px rgba(0,0,0,0.1);
    }

    /* =========================
   Image Styling
========================= */

    .portfolio-item img {
        width: 100%;
        height: 260px;
        object-fit: cover;
        transition: transform 0.5s ease;
    }

    .portfolio-item:hover img {
        transform: scale(1.05);
    }

/* =========================
   Content Area
========================= */

.portfolio-content {
    padding: 30px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

    .portfolio-content h3 {
        font-size: 1.4rem;
        margin-bottom: 15px;
    }

    .portfolio-content p {
        color: #555;
        line-height: 1.6;
        margin-bottom: 25px;
        flex-grow: 1;
    }

/* =========================
   Portfolio Link Button
========================= */

.portfolio-link {
    align-self: flex-start;
    padding: 12px 22px;
    background: #111;
    color: #fff;
    text-decoration: none;
    border-radius: 50px;
    font-size: 0.9rem;
    font-weight: 500;
    transition: all 0.3s ease;
}

    .portfolio-link:hover {
        background: #444;
        transform: translateY(-2px);
    }

/* =========================
   Responsive
========================= */

@media (max-width: 1024px) {
    .portfolio-grid .grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .portfolio-grid {
        padding: 70px 20px;
    }

        .portfolio-grid .grid {
            grid-template-columns: 1fr;
            gap: 30px;
        }

    .portfolio-item img {
        height: 220px;
    }
}

.contact-section {
    background: linear-gradient(to right, var(--primary-navy), var(--primary-navy-dark));
}


/* =========================================================
   MOBILE HEADER (only visible < lg breakpoint)
   ========================================================= */
.mobile-header {
    background: var(--primary-navy-dark);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
    z-index: 1040;
    transition: all 0.4s ease;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
}

.mobile-top {
    position: relative;
    transition: all 0.4s ease;
    padding: 0.8rem 0.75rem;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.mobile-logo {
    width: var(--icon-large);
    max-width: 140px;
    height: auto;
    filter: drop-shadow(0 0 12px var(--accent-cyan)) drop-shadow(0 0 24px var(--accent-cyan-light));
    transition: all 0.5s ease;
}

.logo-wrapper {
    transition: all 0.5s ease;
    overflow: hidden;
}

.mobile-nav {
    padding: 0;
    background: transparent;
    width: 100%;
}

    .mobile-nav .nav {
        --mobile-nav-gap: 0.25rem;
        justify-content: center;
        margin: 0;
        padding: 0;
    }

.mobile-nav-link {
    color: var(--text-light);
    font-size: var(--nav-link-large);
    font-weight: 500;
    padding: 0.35rem 0.6rem !important;
    white-space: nowrap;
    transition: all 0.3s ease;
    margin: 0;
}

    .mobile-nav-link:hover,
    .mobile-nav-link.active {
        color: var(--accent-cyan-light);
        text-shadow: 0 0 10px rgba(0, 212, 255, 0.5);
    }

/* ────────────────────────────────────────────────
   SCROLLED STATE
   ──────────────────────────────────────────────── */
.mobile-header.scrolled .logo-wrapper {
    height: 0 !important;
    min-height: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.mobile-header.scrolled .mobile-logo {
    opacity: 0;
    transform: translateY(-50px);
    width: 0 !important;
    height: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
}

.mobile-header.scrolled .mobile-top {
    flex-direction: row !important;
    justify-content: center !important;
    align-items: center;
    padding: 0.5rem 1rem;
    gap: 0;
}

.mobile-header.scrolled .mobile-nav {
    width: 100%;
    max-width: 100%;
    padding: 0;
    margin: 0;
}

    .mobile-header.scrolled .mobile-nav .nav {
        justify-content: center !important;
        width: 100%;
        padding: 0 0.75rem;
        margin: 0 auto;
    }

/* ────────────────────────────────────────────────
   SMALL SCREENS
   ──────────────────────────────────────────────── */
@media (max-width: 576px) {
    .mobile-top {
        padding: 0.6rem 0.5rem;
    }

    .mobile-logo {
        width: 100px;
        max-width: 100px;
    }

    .mobile-nav .nav {
        --mobile-nav-gap: 0.2rem;
        padding: 0;
    }

    .mobile-nav-link {
        font-size: 0.9rem;
        padding: 0.3rem 0.55rem !important;
    }

    .mobile-header.scrolled .mobile-top {
        padding: 0.45rem 0.6rem;
    }

    .mobile-header.scrolled .mobile-nav .nav {
        padding: 0 0.4rem;
    }

    /* Fallback - horizontal scroll only if absolutely necessary */
    .mobile-nav .nav {
        flex-wrap: nowrap;
        overflow-x: hidden;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
    }

        .mobile-nav .nav::-webkit-scrollbar {
            display: none;
        }
}

/* Hide original desktop headers on mobile + body padding compensation */
@media (max-width: 991.98px) {
    .site-header,
    .mini-header {
        display: none !important;
    }

    body {
        padding-top: 130px; /* Adjust after measuring: logo height + nav height */
    }

    .mobile-header.scrolled ~ body {
        padding-top: 50px; /* Only nav height when scrolled - measure in dev tools */
    }
}