/* CBO Media - Clean Build */
:root {
    --primary: #00ff47;
    --bg-dark: #0a0a0a;
    --bg-card: #141414;
    --text-light: #ffffff;
    --text-dim: #888888;
    --font-main: 'Inter', sans-serif;
    --header-height: 80px;
}

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

html {
    scroll-behavior: smooth;
    scroll-padding-top: 100px;
    /* Handles scroll offset globally */
}

body {
    font-family: var(--font-main);
    background-color: var(--bg-dark);
    color: var(--text-light);
    line-height: 1.6;
    overflow-x: hidden;
}

a {
    text-decoration: none;
    color: inherit;
    transition: color 0.3s ease;
}

ul {
    list-style: none;
}

button {
    cursor: pointer;
    border: none;
    background: none;
    font-family: inherit;
}

/* --- Header --- */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: var(--header-height);
    background: rgba(10, 10, 10, 0.95);
    backdrop-filter: blur(10px);
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 40px;
    z-index: 1100;
    /* Ensure header stays above nav overlay */
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.logo a {
    font-size: 1.8rem;
    font-weight: 700;
    letter-spacing: -0.05em;
}

.header-controls {
    display: flex;
    align-items: center;
    gap: 15px;
}

.nav-label {
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--primary);
}

.menu-toggle {
    width: 40px;
    height: 30px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    z-index: 1100;
    /* Above overlay */
}

.hamburger-line {
    width: 100%;
    height: 2px;
    background-color: var(--text-light);
    transition: all 0.3s ease;
}

/* Menu Toggle Active State */
body.nav-open .hamburger-line {
    background-color: var(--primary);
}

body.nav-open .hamburger-line:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

body.nav-open .hamburger-line:nth-child(2) {
    opacity: 0;
}

body.nav-open .hamburger-line:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}

/* --- Navigation Overlay --- */
.nav-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background-color: var(--bg-dark);
    z-index: 1000;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.4s ease;
}

body.nav-open .nav-overlay {
    opacity: 1;
    visibility: visible;
}

.nav-content {
    width: 100%;
    max-width: 600px;
    text-align: center;
    position: relative;
    height: 60vh;
    /* Container for sliding levels */
    overflow: hidden;
}

.nav-level {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
    transition: transform 0.4s ease, opacity 0.4s ease;
    opacity: 0;
    pointer-events: none;
    transform: translateX(50px);
}

.nav-level.active {
    opacity: 1;
    pointer-events: auto;
    transform: translateX(0);
}

.nav-level.slide-left {
    transform: translateX(-50px);
    opacity: 0;
}

.nav-item {
    font-size: 2.5rem;
    font-weight: 300;
    color: var(--text-light);
    cursor: pointer;
}

.nav-item:hover {
    color: var(--primary);
}

.back-btn {
    color: var(--text-dim);
    font-size: 1rem;
    text-transform: uppercase;
    margin-bottom: 20px;
    transition: color 0.3s;
}

.back-btn:hover {
    color: var(--primary);
}

/* --- Sections --- */
.section {
    padding: 100px 20px;
    min-height: 80vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    position: relative;
    z-index: 1;
}

.home-section {
    background: linear-gradient(rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.7)), url('../images/hero_background.png');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    border-bottom: 1px solid var(--primary);
    height: 100vh;
    /* Full viewport height */
    min-height: 100vh;
    padding: 0;
    /* Reset padding to ensure full height control */
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    position: relative;
}

.scroll-down-arrow {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    color: var(--primary);
    animation: bounce 2s infinite;
    cursor: pointer;
    z-index: 10;
}

.scroll-down-arrow svg {
    width: 40px;
    height: 40px;
    filter: drop-shadow(0 0 10px rgba(0, 255, 71, 0.5));
}

@keyframes bounce {

    0%,
    20%,
    50%,
    80%,
    100% {
        transform: translateX(-50%) translateY(0);
    }

    40% {
        transform: translateX(-50%) translateY(-10px);
    }

    60% {
        transform: translateX(-50%) translateY(-5px);
    }
}

.about-section {
    background: var(--bg-dark);
}

.ecosystem-section {
    background: linear-gradient(rgba(0, 0, 0, 0.85), rgba(0, 0, 0, 0.85)), url('../images/hero_background.png');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.services-section {
    background: var(--bg-dark);
}

.clients-section {
    background: linear-gradient(rgba(0, 0, 0, 0.85), rgba(0, 0, 0, 0.85)), url('../images/battlefield_art.png');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.contact-section {
    background: linear-gradient(rgba(0, 0, 0, 0.8), rgba(0, 0, 0, 0.8)), url('../images/tactical_art.png');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    border-top: 1px solid var(--primary);
}

.service-category {
    margin-bottom: 80px;
    padding: 40px;
    border-radius: 20px;
    background: rgba(20, 20, 20, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.05);
    position: relative;
    overflow: hidden;
}

/* Section Backgrounds */
#frontline-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('../images/frontline_art.png');
    background-size: cover;
    background-position: center;
    opacity: 0.1;
    z-index: -1;
    transition: transform 0.5s ease;
}

#coalition-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('../images/coalition_art.png');
    background-size: cover;
    background-position: center;
    opacity: 0.1;
    z-index: -1;
    transition: transform 0.5s ease;
}

#war-room-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('../images/war_room_art.png');
    background-size: cover;
    background-position: center;
    opacity: 0.1;
    z-index: -1;
    transition: transform 0.5s ease;
}

.service-category:hover::before {
    transform: scale(1.05);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    width: 100%;
    position: relative;
    z-index: 2;
}

h1,
h2,
h3,
h4 {
    margin-bottom: 30px;
}

h1 {
    font-size: 3.5rem;
    line-height: 1.1;
}

h2 {
    font-size: 3rem;
    color: var(--primary);
    margin-bottom: 40px;
    text-transform: uppercase;
    letter-spacing: -0.02em;
}

h3 {
    font-size: 1.8rem;
    margin-top: 0;
    border-bottom: 1px solid #333;
    padding-bottom: 15px;
    margin-bottom: 25px;
}

h4 {
    font-size: 1.4rem;
    color: var(--text-light);
    margin-bottom: 20px;
}

p {
    color: var(--text-dim);
    margin-bottom: 20px;
    max-width: 800px;
}

.section-lead {
    font-size: 1.2rem;
    color: var(--text-light);
    margin-bottom: 50px;
    line-height: 1.8;
    max-width: 900px;
}

.feature-list {
    margin-top: 20px;
    text-align: left;
}

.feature-list li {
    margin-bottom: 12px;
    padding-left: 25px;
    position: relative;
    color: var(--text-dim);
}

.feature-list li::before {
    content: '>';
    position: absolute;
    left: 0;
    color: var(--primary);
    font-weight: bold;
}

/* --- Parallax Sections --- */
.parallax-container {
    display: flex;
    flex-direction: column;
    gap: 40px;
    margin-top: 50px;
}

.parallax-item {
    height: 500px;
    background-attachment: fixed;
    background-position: center;
    background-size: cover;
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
    border: 1px solid rgba(0, 255, 71, 0.2);
    transition: all 0.3s ease;
    cursor: pointer;
}

.parallax-item:hover {
    border-color: var(--primary);
    box-shadow: 0 0 40px rgba(0, 255, 71, 0.4);
    transform: scale(1.01);
}

.parallax-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    /* Dark overlay */
    z-index: 1;
}

.parallax-content {
    position: relative;
    z-index: 2;
    text-align: center;
    padding: 20px;
}

.parallax-content h3 {
    font-size: 4rem;
    margin-bottom: 10px;
    text-shadow: 0 0 20px rgba(0, 255, 71, 0.8);
    border-bottom: none;
}

.parallax-content .client-metric {
    border-top: none;
    margin-top: 0;
    padding-top: 0;
}

.parallax-content .metric-value {
    font-size: 3rem;
    color: #fff;
}

.parallax-content p {
    font-size: 1.2rem;
    color: #ccc;
    max-width: 600px;
    margin: 0 auto;
}

/* --- Cards --- */
.cards-grid,
.history-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.service-card,
.info-card {
    background: var(--bg-card);
    padding: 30px;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: transform 0.3s ease, border-color 0.3s ease;
    cursor: pointer;
}

.service-card:hover {
    transform: translateY(-5px);
    border-color: var(--primary);
    box-shadow: 0 10px 30px rgba(0, 255, 71, 0.1);
}

.info-card {
    cursor: default;
}

.client-metric {
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    flex-direction: column;
}

.metric-value {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--primary);
    line-height: 1;
    margin-bottom: 5px;
}

.metric-label {
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--text-dim);
}

/* --- Forms --- */
.contact-form {
    max-width: 600px;
    margin-top: 30px;
}

.form-group {
    margin-bottom: 20px;
}

input,
textarea,
.form-select {
    width: 100%;
    padding: 15px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    color: var(--text-light);
    font-family: inherit;
    font-size: 1rem;
    appearance: none;
    /* Remove default arrow */
}

.form-select {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='%23888' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 15px center;
    background-size: 16px;
    cursor: pointer;
}

.form-select option {
    background-color: var(--bg-card);
    color: var(--text-light);
}

input:focus,
textarea:focus,
.form-select:focus {
    outline: none;
    border-color: var(--primary);
}

.btn-primary {
    background: var(--primary);
    color: #000;
    padding: 15px 30px;
    border-radius: 30px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.btn-primary:hover {
    transform: scale(1.05);
    box-shadow: 0 0 20px rgba(0, 255, 71, 0.4);
}

/* --- Footer --- */
.footer {
    background: #000;
    padding: 80px 20px 40px;
    border-top: 1px solid #222;
}

.footer .container {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 40px;
}

.footer-col {
    flex: 1;
    min-width: 200px;
}

.footer-links li {
    margin-bottom: 10px;
}

.footer-link {
    color: var(--text-dim);
    cursor: pointer;
    /* Explicit */
    pointer-events: auto;
    /* Explicit */
}

.footer-link:hover {
    color: var(--primary);
}

.social-icons {
    display: flex;
    gap: 15px;
}

.social-icons a {
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    color: var(--text-light);
    transition: all 0.3s ease;
    pointer-events: auto;
    /* Explicit */
}

.social-icons a:hover {
    background: var(--primary);
    color: #000;
    transform: translateY(-3px);
}

.social-icons svg {
    width: 20px;
    height: 20px;
    pointer-events: none;
    /* Click passes to link */
}

.footer-bottom {
    text-align: center;
    margin-top: 60px;
    padding-top: 20px;
    border-top: 1px solid #111;
    font-size: 0.9rem;
    color: #555;
}

.neon-link {
    color: var(--primary);
    text-decoration: none;
    transition: all 0.3s ease;
    position: relative;
}

.neon-link:hover {
    text-shadow: 0 0 10px rgba(0, 255, 71, 0.8);
    text-decoration: underline;
}

/* --- Modal --- */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(5px);
    z-index: 2000;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.modal.active {
    opacity: 1;
    visibility: visible;
}

.modal-content {
    background: var(--bg-card);
    padding: 40px;
    border-radius: 16px;
    width: 90%;
    max-width: 500px;
    position: relative;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.close-modal {
    position: absolute;
    top: 20px;
    right: 20px;
    font-size: 1.5rem;
    color: var(--text-dim);
    transition: color 0.3s;
}

.close-modal:hover {
    color: var(--text-light);
}

/* --- Intro Overlay --- */
#intro-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #000;
    z-index: 9999;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    animation: fadeOutOverlay 0.5s ease-in-out 3.5s forwards;
}

.intro-content {
    text-align: center;
}

.intro-title {
    font-size: 12rem;
    font-weight: 900;
    color: var(--primary);
    line-height: 1;
    opacity: 0;
    transform: scale(0.5);
    animation: scaleInTitle 1s cubic-bezier(0.23, 1, 0.32, 1) 0.5s forwards;
    text-shadow: 0 0 50px rgba(0, 255, 71, 0.5);
}

.intro-tagline {
    font-size: 1.5rem;
    color: #fff;
    letter-spacing: 0.5em;
    margin-top: 20px;
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUpTagline 1s ease 1.5s forwards;
}

@keyframes scaleInTitle {
    to {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes fadeInUpTagline {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeOutOverlay {
    to {
        opacity: 0;
        visibility: hidden;
    }
}

/* --- Cookie Banner --- */
.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background: rgba(10, 10, 10, 0.95);
    backdrop-filter: blur(10px);
    border-top: 1px solid var(--primary);
    padding: 30px 40px;
    z-index: 9999;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 40px;
    box-shadow: 0 -10px 40px rgba(0, 0, 0, 0.8);
    animation: slideUpBanner 0.5s ease-out forwards;
}

.cookie-content h3 {
    font-size: 1.2rem;
    margin-bottom: 10px;
    color: var(--primary);
    border-bottom: none;
    padding-bottom: 0;
}

.cookie-content p {
    font-size: 0.9rem;
    color: #ccc;
    margin-bottom: 0;
    max-width: 800px;
}

.cookie-content a {
    color: var(--primary);
    text-decoration: underline;
}

.cookie-actions {
    display: flex;
    gap: 15px;
    flex-shrink: 0;
}

.btn-primary-small {
    background: var(--primary);
    color: #000;
    padding: 10px 20px;
    border-radius: 20px;
    font-weight: 600;
    font-size: 0.9rem;
    text-transform: uppercase;
    transition: all 0.3s ease;
}

.btn-primary-small:hover {
    transform: scale(1.05);
    box-shadow: 0 0 15px rgba(0, 255, 71, 0.4);
}

.btn-outline {
    background: transparent;
    border: 1px solid #555;
    color: #ccc;
    padding: 10px 20px;
    border-radius: 20px;
    font-weight: 600;
    font-size: 0.9rem;
    text-transform: uppercase;
    transition: all 0.3s ease;
}

.btn-outline:hover {
    border-color: #fff;
    color: #fff;
}

@keyframes slideUpBanner {
    from {
        transform: translateY(100%);
    }

    to {
        transform: translateY(0);
    }
}

@media (max-width: 768px) {
    .cookie-banner {
        flex-direction: column;
        align-items: flex-start;
        padding: 20px;
        gap: 20px;
    }

    .cookie-actions {
        width: 100%;
        justify-content: flex-end;
    }
}



/* --- Mobile Responsive Adjustments --- */
@media (max-width: 768px) {

    /* Layout & Padding */
    .section {
        padding: 60px 20px;
        min-height: auto;
        /* Allow content to dictate height on mobile */
    }

    .container {
        padding: 0 15px;
    }

    .header {
        padding: 0 20px;
        height: 70px;
    }

    /* Typography */
    h1 {
        font-size: 2.5rem;
    }

    h2 {
        font-size: 2rem;
        margin-bottom: 30px;
    }

    h3 {
        font-size: 1.5rem;
    }

    .section-lead {
        font-size: 1rem;
    }

    /* Hero Section */
    .home-section {
        height: 100vh;
        /* Keep full height */
        padding: 0 20px;
        text-align: center;
    }

    /* Parallax Items */
    .parallax-item {
        height: 300px;
        /* Smaller on mobile */
        background-attachment: scroll;
        /* Disable fixed parallax on mobile for performance/support */
    }

    .parallax-content h3 {
        font-size: 2.5rem;
    }

    .parallax-content .metric-value {
        font-size: 2rem;
    }

    /* Modal - Full Screen on Mobile */
    .modal-content {
        width: 100%;
        height: 100%;
        max-height: 100vh;
        margin: 0;
        border-radius: 0;
        padding: 20px;
        padding-top: calc(20px + env(safe-area-inset-top));
        /* Handle Notch */
        padding-bottom: calc(20px + env(safe-area-inset-bottom));
        /* Handle Home Bar */
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
        display: flex;
        flex-direction: column;
        justify-content: flex-start;
    }

    .modal {
        padding: 0;
        align-items: flex-start;
    }

    .contact-form {
        margin-top: 20px;
        padding-bottom: 120px;
        /* HUGE padding to clear keyboard */
    }

    .form-group {
        margin-bottom: 15px;
    }

    input,
    textarea,
    .form-select {
        padding: 15px;
        font-size: 16px;
    }

    .close-modal {
        top: calc(20px + env(safe-area-inset-top));
        /* Respect Notch */
        right: 20px;
        font-size: 2rem;
        z-index: 10;
        background: rgba(0, 0, 0, 0.5);
        width: 40px;
        height: 40px;
        display: flex;
        align-items: center;
        justify-content: center;
        border-radius: 50%;
    }

    /* Intro Overlay */
    .intro-title {
        font-size: 4rem;
    }

    .intro-tagline {
        font-size: 0.8rem;
        letter-spacing: 0.2em;
    }

    /* Footer */
    .footer {
        padding: 60px 20px 30px;
        padding-bottom: calc(30px + env(safe-area-inset-bottom));
        /* Handle Home Bar */
    }

    .footer .container {
        flex-direction: column;
        gap: 30px;
    }

    /* Nav Items */
    .nav-item {
        font-size: 1.8rem;
    }
}

/* --- Card Expansion --- */
.expanded-desc {
    max-height: 0;
    opacity: 0;
    overflow: hidden;
    transition: all 0.5s cubic-bezier(0.23, 1, 0.32, 1);
    color: #ccc;
    font-size: 0.95rem;
    margin-top: 0;
}

.service-card:hover .expanded-desc {
    max-height: 200px;
    /* Enough for text */
    opacity: 1;
    margin-top: 15px;
}