/* CSS Reset & Basics */
:root {
    /* Operator Aesthetic Palette */
    --bg-primary: #0f172a;
    /* Midnight/Slate */
    --bg-secondary: #1e293b;
    /* Slightly lighter for cards */
    --text-primary: #f8fafc;
    /* Off-white */
    --text-secondary: rgba(255, 255, 255, 0.7);
    /* Subtle text */

    /* Accents */
    --accent-orange: #FF8200;
    /* UTK Orange - Preserved */
    --accent-red: #ef4444;
    /* Chaos Red */
    --accent-green: #10b981;
    /* Peace Green */

    /* Legacy variables mapping/overrides */
    --primary-navy: #0f172a;
    --tech-grey: #94a3b8;
    --light-slate: #cbd5e1;
    --white: #ffffff;
}

html,
body {
    scroll-behavior: smooth;
    overflow-x: hidden;
    width: 100%;
}

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

body {
    font-family: 'Inter', sans-serif;
    color: var(--text-primary);
    line-height: 1.6;
    background-color: var(--bg-primary);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

a {
    text-decoration: none;
    color: inherit;
    transition: opacity 0.2s;
}

a:hover {
    opacity: 0.8;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 12px 24px;
    border-radius: 4px;
    font-weight: 800;
    /* Extra bold for operator aesthetic */
    cursor: pointer;
    text-align: center;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    transition: all 0.2s ease;
}

.btn-primary {
    background-color: var(--accent-orange);
    color: var(--white);
    border: 2px solid var(--accent-orange);
}

.btn-primary:hover {
    background-color: transparent;
    color: var(--accent-orange);
}

.btn-secondary {
    background-color: transparent;
    color: var(--text-primary);
    border: 2px solid var(--text-primary);
}

.btn-secondary:hover {
    background-color: var(--text-primary);
    color: var(--bg-primary);
}

.btn-sm {
    padding: 8px 16px;
    font-size: 0.9rem;
}

.btn-lg {
    padding: 16px 32px;
    font-size: 1.2rem;
}

/* Navbar */
.navbar {
    padding: 20px 0;
    background-color: rgba(15, 23, 42, 0.95);
    /* Dark background with slight transparency */
    backdrop-filter: blur(10px);
    position: sticky;
    top: 0;
    z-index: 100;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--text-primary);
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 30px;
}

.nav-links a:not(.btn) {
    font-weight: 500;
    color: var(--text-primary);
}

.nav-links a:not(.btn):hover {
    color: var(--accent-orange);
}

/* Hero Section */
.hero {
    padding: 100px 0;
    background-color: var(--bg-primary);
}

.hero-content {
    display: flex;
    align-items: center;
    gap: 50px;
}

.hero-text {
    flex: 1;
}

.hero-text h1 {
    font-size: 4rem;
    /* Larger, bolder */
    line-height: 1.1;
    margin-bottom: 24px;
    color: var(--text-primary);
    font-weight: 800;
    letter-spacing: -0.02em;
    text-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.subhead {
    font-size: 1.25rem;
    color: var(--text-secondary);
    margin-bottom: 40px;
    max-width: 600px;
}

/* Hero accent for second line emphasis */
.hero-accent {
    color: var(--accent-orange);
}

.cta-group {
    display: flex;
    gap: 20px;
}

.hero-image {
    flex: 1;
    display: flex;
    justify-content: center;
}

.profile-img {
    border-radius: 10px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    aspect-ratio: 1;
    width: 100%;
    object-fit: cover;
    object-position: center 70%;
}

/* Trust Bar */
.trust-bar {
    padding: 40px 0;
    background-color: var(--bg-primary);
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    color: var(--text-secondary);
    text-align: center;
}

.trust-caption {
    font-size: 1.1rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 30px;
    color: var(--tech-grey);
    font-weight: 600;
}

.logos {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 30px;
    flex-wrap: wrap;
    max-width: 800px;
    margin: 0 auto;
    font-size: 1.5rem;
    font-weight: 700;
    opacity: 0.8;
}

.logo-item {
    /* Using text for logos as placeholders */
    font-weight: 700;
    /* Ensure bold if not inherited */
}

.trust-subcaption {
    margin-top: 30px;
    font-size: 1.1rem;
    font-family: 'Playfair Display', serif;
    /* Italic accent */
    font-style: italic;
    color: var(--text-secondary);
}

/* Training & Strategy Section (Elevated for Business Dev) */
.training-section {
    padding: 100px 0;
    background: linear-gradient(180deg, var(--bg-secondary) 0%, var(--bg-primary) 100%);
}

.training-hero {
    text-align: center;
    margin-bottom: 60px;
}

.training-lead {
    font-size: 1.3rem;
    color: var(--text-secondary);
    max-width: 700px;
    margin: 0 auto;
    line-height: 1.8;
}

.training-lead strong {
    color: var(--accent-orange);
}

/* Before/After Transformation */
.training-transformation {
    display: flex;
    justify-content: center;
    align-items: stretch;
    gap: 30px;
    margin-bottom: 60px;
    flex-wrap: wrap;
}

.transform-card {
    flex: 1;
    min-width: 280px;
    max-width: 400px;
    padding: 30px;
    border-radius: 12px;
    background: var(--bg-primary);
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.transform-card h4 {
    font-size: 1.3rem;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.transform-card.before {
    border-top: 4px solid var(--accent-red);
}

.transform-card.before h4 {
    color: var(--accent-red);
}

.transform-card.after {
    border-top: 4px solid var(--accent-green);
}

.transform-card.after h4 {
    color: var(--accent-green);
}

.transform-card ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.transform-card li {
    padding: 10px 0;
    color: var(--text-secondary);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    line-height: 1.5;
}

.transform-card li:last-child {
    border-bottom: none;
}

.transform-arrow {
    display: flex;
    align-items: center;
    justify-content: center;
    align-self: center;
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--accent-orange), #ff9d33);
    border-radius: 50%;
    color: var(--white);
    font-size: 1.5rem;
    font-weight: 700;
    box-shadow: 0 4px 15px rgba(255, 130, 0, 0.3);
}

.transform-arrow svg {
    width: 24px;
    height: 24px;
    stroke: currentColor;
    stroke-width: 3;
    fill: none;
}

.transform-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.transform-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.25);
}

/* Training Offerings */
.training-offerings {
    text-align: center;
}

.training-offerings h3 {
    font-size: 2rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 40px;
}

.offering-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-bottom: 50px;
}

.offering-card {
    background: var(--bg-primary);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 30px;
    text-align: left;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.offering-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.3);
}

.offering-card h4 {
    font-size: 1.3rem;
    color: var(--text-primary);
    margin-bottom: 15px;
}

.offering-card p {
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 15px;
}

.offering-duration {
    display: inline-block;
    background: rgba(255, 130, 0, 0.15);
    color: var(--accent-orange);
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
}

.training-cta {
    margin-top: 40px;
}

.cta-subtext {
    margin-top: 15px;
    font-size: 0.95rem;
    color: var(--text-secondary);
    font-style: italic;
}

/* Products Grid (simplified for 2-column) */
.products-grid {
    max-width: 800px;
    margin: 0 auto;
}

/* Solutions Section */
.solutions {
    padding: 100px 0;
    background-color: var(--bg-secondary);
}

.section-title {
    text-align: center;
    font-size: 3rem;
    font-weight: 800;
    margin-bottom: 20px;
    color: var(--text-primary);
    letter-spacing: -0.02em;
}

.section-subtitle {
    text-align: center;
    font-size: 1.1rem;
    color: var(--text-secondary);
    max-width: 700px;
    margin: 0 auto 60px auto;
}

.solutions-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 40px;
}

.solution-card {
    background: var(--bg-primary);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    padding: 40px;
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
    display: flex;
    flex-direction: column;
    justify-content: center;
    border-top: 4px solid var(--tech-grey);
    text-decoration: none !important;
    color: inherit;
}

.solution-card:hover {
    transform: translateY(-5px);
    border-color: rgba(255, 255, 255, 0.1);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
}

/* Custom Card Borders */
.dynamo-card {
    border-top-color: var(--accent-orange);
}

.protocol-card {
    border-top-color: #3b82f6;
    /* Blue for protocol */
}

.training-card {
    border-top-color: var(--accent-green);
    /* Green for "go" / training */
}

.training-card .solution-tagline {
    color: var(--accent-green);
}

.training-card .btn-link {
    color: var(--accent-green);
}

.solution-content h3 {
    font-size: 1.8rem;
    margin-bottom: 12px;
    color: var(--text-primary);
    font-weight: 700;
}

.solution-tagline {
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--accent-orange);
    margin-bottom: 20px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.solution-desc {
    margin-bottom: 30px;
    color: var(--text-secondary);
}

.btn-link {
    font-weight: 700;
    color: var(--accent-orange);
    align-self: flex-start;
    display: flex;
    align-items: center;
    gap: 5px;
}

.protocol-card .btn-link {
    color: #3b82f6;
}

/* About Section */
/* About Section */
.about {
    padding: 100px 0;
    background-color: var(--bg-primary);
}

.about h2 {
    text-align: center;
    margin-bottom: 60px;
    font-size: 3rem;
    font-weight: 800;
    color: var(--text-primary);
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.timeline {
    border-left: 2px solid rgba(255, 255, 255, 0.1);
    padding-left: 30px;
}

.timeline-item {
    margin-bottom: 40px;
    position: relative;
}

.timeline-item::before {
    content: '';
    position: absolute;
    left: -37px;
    top: 5px;
    width: 12px;
    height: 12px;
    background: var(--accent-orange);
    border-radius: 50%;
    box-shadow: 0 0 10px rgba(255, 130, 0, 0.4);
}



/* Company Logo Styles */
.trust-logo {
    height: 35px;
    max-height: 35px;
    width: auto;
    object-fit: contain;
    display: block;
    transition: transform 0.3s ease, filter 0.3s ease;
    filter: brightness(0.9);
}

.trust-logo:hover {
    filter: brightness(1);
    transform: scale(1.05);
}

/* Specific adjustments for DoD seal */
.trust-logo.dod-logo {
    height: 65px;
    max-height: 65px;
}

/* Specific adjustments for USAA logo */
.trust-logo.usaa-logo {
    height: 55px;
    max-height: 55px;
}

.about-image img {
    border-radius: 8px;
    margin-bottom: 20px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.caption-card {
    background: var(--bg-secondary);
    padding: 30px;
    border-radius: 8px;
    border-left: 4px solid var(--accent-orange);
}

.educator-section {
    margin-top: 80px;
    text-align: center;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    padding: 50px;
    background: linear-gradient(135deg, var(--bg-secondary) 0%, var(--bg-primary) 100%);
    color: var(--text-primary);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    position: relative;
    overflow: hidden;
}

/* When educator is featured (elevated) */
.educator-section.educator-featured {
    margin-top: 0;
    margin-bottom: 60px;
    max-width: 100%;
}

/* Bright accent line on top */
.educator-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: var(--accent-orange);
}

.educator-section h3 {
    color: var(--accent-orange);
    margin-bottom: 20px;
    font-size: 1.8rem;
}

.educator-lead {
    font-size: 1.4rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 20px;
}

.educator-section p {
    color: var(--text-secondary);
    line-height: 1.8;
}

.educator-cta {
    margin-top: 30px;
}

/* About subhead */
.about-subhead {
    color: var(--text-primary);
    font-size: 1.4rem;
    margin-bottom: 20px;
}

/* Contact */
.contact {
    padding: 100px 0;
    text-align: center;
    background-color: var(--bg-secondary);
}

.contact h2 {
    font-size: 3rem;
    font-weight: 800;
    margin-bottom: 20px;
    color: var(--text-primary);
}

.contact p {
    font-size: 1.25rem;
    margin-bottom: 30px;
    color: var(--text-secondary);
}

.contact-subhead {
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.contact-features {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
    margin-bottom: 40px;
}

.contact-features .feature {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 1.1rem;
    color: var(--text-secondary);
}

.feature-icon {
    color: var(--accent-green);
    font-weight: 700;
    font-size: 1.2rem;
}

/* Footer */
footer {
    padding: 60px 0 40px;
    text-align: center;
    background: linear-gradient(180deg, var(--bg-secondary) 0%, var(--bg-primary) 100%);
    color: var(--text-secondary);
    font-size: 0.9rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

footer .container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
}

.footer-tagline {
    font-family: 'Playfair Display', serif;
    font-style: italic;
    font-size: 1.1rem;
    color: var(--text-secondary);
    margin-bottom: 10px;
}

footer p {
    opacity: 0.7;
}

/* Utilities */
.italic-accent {
    font-family: 'Playfair Display', serif;
    font-style: italic;
    font-weight: 400;
    color: var(--white);
    /* Brighter than accent text */
}

/* Icons */
.icon-svg {
    width: 24px;
    height: 24px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
    vertical-align: text-bottom;
}

.icon-svg.icon-lg {
    width: 32px;
    height: 32px;
}

/* Mobile Navigation Toggle */
.nav-toggle {
    display: none;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 10px;
    z-index: 200;
}

.hamburger {
    display: block;
    position: relative;
    width: 24px;
    height: 2px;
    background: var(--text-primary);
    transition: background 0.3s ease;
}

.hamburger::before,
.hamburger::after {
    content: '';
    position: absolute;
    left: 0;
    width: 24px;
    height: 2px;
    background: var(--text-primary);
    transition: transform 0.3s ease;
}

.hamburger::before {
    top: -8px;
}

.hamburger::after {
    top: 8px;
}

/* Hamburger to X animation when active */
.nav-toggle.active .hamburger {
    background: transparent;
}

.nav-toggle.active .hamburger::before {
    transform: rotate(45deg) translate(6px, 6px);
}

.nav-toggle.active .hamburger::after {
    transform: rotate(-45deg) translate(6px, -6px);
}

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

    /* Mobile Navigation */
    .nav-toggle {
        display: block;
    }

    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        width: 80%;
        max-width: 300px;
        height: 100vh;
        background: var(--bg-secondary);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 30px;
        transition: right 0.3s ease;
        box-shadow: -5px 0 20px rgba(0, 0, 0, 0.3);
    }

    .nav-links.active {
        right: 0;
    }

    .nav-links a {
        font-size: 1.2rem;
    }

    .hero-content {
        flex-direction: column-reverse;
        text-align: center;
    }

    .cta-group {
        justify-content: center;
    }

    .grid-2,
    .about-grid {
        grid-template-columns: 1fr;
    }

    .hero-text h1 {
        font-size: 2.5rem;
    }

    .educator-section {
        padding: 30px 20px;
    }

    .contact-features .feature {
        text-align: left;
    }

    .solutions-grid {
        grid-template-columns: 1fr;
    }

    /* Training section mobile */
    .training-transformation {
        flex-direction: column;
        align-items: center;
    }

    .transform-arrow {
        transform: rotate(90deg);
        font-size: 2rem;
        margin: 10px 0;
    }

    .transform-card {
        max-width: 100%;
    }

    .training-lead {
        font-size: 1.1rem;
    }

    .offering-grid {
        grid-template-columns: 1fr;
    }

    /* Fix company logos: 2x2 grid for better balance */
    .logos {
        justify-content: center;
        gap: 20px;
    }

    .logo-item {
        flex: 0 0 calc(50% - 20px);
        /* 2 items per row */
        display: flex;
        justify-content: center;
    }

    /* Fix bullet alignment on mobile */
    .contact-features .feature {
        align-items: flex-start;
    }

    .feature-icon {
        margin-top: 2px;
        /* Visual alignment with text */
    }
}

/* Improved Contact Form Styles */
.contact-form-container {
    max-width: 600px;
    margin: 0 auto;
    background: rgba(15, 23, 42, 0.5);
    /* Semi-transparent dark bg */
    padding: 40px;
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    backdrop-filter: blur(8px);
}

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

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 16px;
    background: rgba(0, 0, 0, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    color: var(--text-primary);
    font-family: 'Inter', sans-serif;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--accent-orange);
    box-shadow: 0 0 0 3px rgba(255, 130, 0, 0.1);
    background: rgba(0, 0, 0, 0.4);
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

/* Success Message Animation */
.form-message {
    min-height: 20px;
    margin-top: 15px;
    font-weight: 600;
    opacity: 0;
    transition: all 0.5s ease;
}

.form-message.visible {
    opacity: 1;
}

.success-animation {
    text-align: center;
    padding: 20px;
    animation: slideUpFade 0.6s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes slideUpFade {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

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

.success-icon {
    width: 64px;
    height: 64px;
    background: var(--accent-green);
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 16px;
    box-shadow: 0 10px 20px rgba(16, 185, 129, 0.3);
}

.success-icon svg {
    color: white;
    width: 32px;
    height: 32px;
}

.success-title {
    font-size: 1.5rem;
    color: var(--text-primary);
    margin-bottom: 8px;
    font-weight: 700;
}

.success-text {
    color: var(--text-secondary);
}