:root {
    --color-primary: #002e5d;
    /* Navy Blue */
    --color-accent: #8a1538;
    /* Deep Red */
    --color-text-light: #ffffff;
    --color-text-gray: #b0b0b0;
    --color-bg-dark: #1a1e23;
    /* Slate Gray */
    --color-bg-darker: #0f1216;
    --color-border: #333d4a;

    --font-main: 'Inter', sans-serif;
    --font-heading: 'Montserrat', sans-serif;
}

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

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

.bg-pattern {
    position: fixed;
    top: -20px;
    left: -20px;
    width: calc(100% + 40px);
    height: calc(100% + 40px);
    background-image: url('../images/tech-pattern.png');
    background-repeat: repeat;
    opacity: 0.05;
    z-index: -1;
    pointer-events: none;
    transition: transform 0.1s linear;
}

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

/* Animations */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

@keyframes shimmer {
    0% {
        background-position: -200% 0;
    }

    100% {
        background-position: 200% 0;
    }
}

/* Header */
.header {
    padding: 20px 0;
    background: rgba(15, 18, 22, 0.7);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    position: sticky;
    top: 0;
    z-index: 100;
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
}

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

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

.logo img {
    height: 50px;
    width: auto;
}

.logo-text h1 {
    font-family: var(--font-heading);
    font-size: 1.2rem;
    font-weight: 700;
    letter-spacing: 0.1rem;
    color: var(--color-text-light);
    line-height: 1.2;
    text-shadow: 0 0 10px rgba(0, 46, 93, 0.5);
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 12px 28px;
    clip-path: polygon(10px 0, 100% 0, 100% calc(100% - 10px), calc(100% - 10px) 100%, 0 100%, 0 10px);
    text-decoration: none;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    font-size: 0.85rem;
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
}

.btn-outline {
    background: transparent;
    border: 1px solid var(--color-text-light);
    color: var(--color-text-light);
}

.btn-outline:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: #fff;
    box-shadow: 0 0 15px rgba(255, 255, 255, 0.1);
}

.btn-primary {
    background: linear-gradient(135deg, var(--color-primary) 0%, #004080 100%);
    color: var(--color-text-light);
    border: none;
}

.btn-primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 200%;
    height: 100%;
    background: linear-gradient(to right, transparent 0%, rgba(255, 255, 255, 0.2) 50%, transparent 100%);
    background-size: 200% 100%;
    transition: opacity 0.3s;
    opacity: 0;
    pointer-events: none;
}

.btn-primary:hover::before {
    opacity: 1;
    animation: shimmer 1.5s infinite linear;
}

.btn-primary:hover {
    box-shadow: 0 0 20px rgba(0, 46, 93, 0.6);
    transform: translateY(-2px);
}

/* Hero Section */
.hero {
    position: relative;
    height: 85vh;
    min-height: 650px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: left;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
}

.hero-bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0;
    /* Fade in handled by js or css animation if needed, but for now simple */
    animation: fadeIn 1.5s ease-out forwards, turbulence 20s infinite linear var(--random-delay, 0s);
    transform-origin: center center;
}

@keyframes fadeIn {
    to {
        opacity: 1;
    }
}

@keyframes turbulence {
    0% {
        transform: scale(1.1) translate(0, 0) rotate(0deg);
    }

    10% {
        transform: scale(1.1) translate(-2px, 1px) rotate(0.1deg);
    }

    20% {
        transform: scale(1.1) translate(1px, -2px) rotate(-0.1deg);
    }

    30% {
        transform: scale(1.1) translate(-1px, 2px) rotate(0deg);
    }

    40% {
        transform: scale(1.1) translate(2px, 1px) rotate(0.1deg);
    }

    50% {
        transform: scale(1.1) translate(-1px, -1px) rotate(-0.1deg);
    }

    60% {
        transform: scale(1.1) translate(1px, 2px) rotate(0deg);
    }

    70% {
        transform: scale(1.1) translate(-2px, 1px) rotate(0.1deg);
    }

    80% {
        transform: scale(1.1) translate(2px, -1px) rotate(-0.1deg);
    }

    90% {
        transform: scale(1.1) translate(-1px, 2px) rotate(0deg);
    }

    100% {
        transform: scale(1.1) translate(0, 0) rotate(0deg);
    }
}

.hero-bg .overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(15, 18, 22, 0.85) 0%, rgba(0, 46, 93, 0.5) 100%);
    /* Optional: Overlay also moves slightly for depth or stays static */
}

.hero-content {
    width: 100%;
    position: relative;
    z-index: 1;
    padding-left: 40px;
    border-left: 1px solid rgba(255, 255, 255, 0.1);
}

.status-tag {
    display: inline-block;
    background: rgba(138, 21, 56, 0.15);
    /* Deep Red tint */
    border: 1px solid var(--color-accent);
    padding: 8px 16px;
    border-radius: 2px;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: #ffcccc;
    margin-bottom: 25px;
    backdrop-filter: blur(5px);
    box-shadow: 0 0 10px rgba(138, 21, 56, 0.2);
}

.hero h2 {
    font-family: var(--font-heading);
    font-size: 4rem;
    font-weight: 700;
    margin-bottom: 25px;
    letter-spacing: -1px;
    line-height: 1.1;
    background: linear-gradient(90deg, #ffffff, #a0c4ff);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    max-width: 900px;
}

.subheadline {
    font-size: 1.3rem;
    color: var(--color-text-gray);
    max-width: 650px;
    border-left: 4px solid var(--color-accent);
    padding-left: 25px;
    background: linear-gradient(90deg, rgba(138, 21, 56, 0.1), transparent);
}

/* Capabilities */
.capabilities {
    padding: 100px 0;
    background: var(--color-bg-darker);
    border-top: 1px solid var(--color-border);
    border-bottom: 1px solid var(--color-border);
    position: relative;
}

.capabilities::before {
    content: '';
    position: absolute;
    top: -1px;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 3px;
    background: var(--color-accent);
    box-shadow: 0 0 15px var(--color-accent);
}

.capabilities .container {
    display: flex;
    justify-content: space-between;
    align-items: stretch;
    flex-wrap: wrap;
    gap: 40px;
}

.tech-readout {
    display: flex;
    flex-direction: column;
    padding: 30px 50px;
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid #333d4a;
    border-left: 5px solid var(--color-primary);
    position: relative;
    clip-path: polygon(0 0, 100% 0, 100% calc(100% - 20px), calc(100% - 20px) 100%, 0 100%);
}

.tech-readout::after {
    content: '';
    position: absolute;
    top: 5px;
    right: 5px;
    width: 10px;
    height: 10px;
    border-top: 2px solid var(--color-text-gray);
    border-right: 2px solid var(--color-text-gray);
}

.tech-readout .label {
    font-family: var(--font-heading);
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 3px;
    color: var(--color-text-gray);
    margin-bottom: 5px;
    opacity: 0.8;
}

.tech-readout .code {
    font-family: 'Courier New', monospace;
    font-size: 3.5rem;
    font-weight: 700;
    color: var(--color-text-light);
    letter-spacing: -2px;
    text-shadow: 0 0 20px rgba(0, 46, 93, 0.8);
}

.badges {
    display: flex;
    gap: 60px;
    align-items: center;
}

.badge-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
    color: var(--color-text-gray);
    transition: transform 0.3s;
}

.badge-item:hover {
    transform: translateY(-5px);
    color: var(--color-text-light);
}

.badge-item i {
    font-size: 3rem;
    color: var(--color-text-light);
    /* Base color */
    background: -webkit-linear-gradient(45deg, var(--color-text-light), var(--color-text-gray));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    filter: drop-shadow(0 0 5px rgba(255, 255, 255, 0.2));
}

.badge-item span {
    font-family: var(--font-heading);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    font-size: 0.85rem;
    border-top: 1px solid var(--color-accent);
    padding-top: 10px;
}

/* Leadership */
.leadership {
    padding: 120px 0;
}

.leadership-card {
    display: grid;
    grid-template-columns: 350px 1fr;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--color-border);
    clip-path: polygon(0 0, 100% 0, 100% calc(100% - 40px), calc(100% - 40px) 100%, 0 100%);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.3);
}

.executive-image {
    width: 100%;
    height: 100%;
    position: relative;
    overflow: hidden;
    background: var(--color-bg-darker);
    display: flex;
    align-items: center;
    justify-content: center;
    background-image: radial-gradient(circle at center, rgba(138, 21, 56, 0.1) 0%, transparent 70%);
}

.executive-image img {
    width: 150px;
    height: 150px;
    object-fit: cover;
    border-radius: 4px;
    border: 2px solid var(--color-accent);
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.5);
    filter: grayscale(20%) contrast(1.1);
    transition: all 0.5s;
}

.executive-image:hover img {
    filter: grayscale(0%) contrast(1.1);
    transform: scale(1.05);
    box-shadow: 0 0 25px rgba(138, 21, 56, 0.3);
}

.executive-info {
    padding: 60px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    border-left: 1px solid var(--color-border);
    background: rgba(15, 18, 22, 0.6);
}

.executive-info h3 {
    font-size: 2.5rem;
    margin-bottom: 5px;
    font-family: var(--font-heading);
    letter-spacing: -1px;
}

.executive-info .title {
    color: var(--color-accent);
    text-transform: uppercase;
    font-weight: 600;
    letter-spacing: 2px;
    font-size: 0.9rem;
    margin-bottom: 25px;
}

.mission-statement {
    font-style: italic;
    color: var(--color-text-gray);
    margin-bottom: 30px;
    font-size: 1.1rem;
    border-left: 2px solid var(--color-border);
    padding-left: 20px;
}

.contact-row {
    display: flex;
    gap: 20px;
    align-items: center;
    margin-top: 20px;
}

.address-block {
    margin-top: 60px;
    padding-top: 30px;
    border-top: 1px solid var(--color-border);
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
}

.address-block h4 {
    color: var(--color-text-light);
    margin-bottom: 10px;
    font-family: var(--font-heading);
    letter-spacing: 1px;
    font-size: 0.9rem;
}

.address-block address {
    font-style: normal;
    color: var(--color-text-gray);
    font-size: 0.9rem;
    line-height: 1.6;
}

/* Footer */
.footer {
    background: #000;
    padding: 50px 0;
    text-align: center;
    border-top: 1px solid var(--color-border);
    font-family: var(--font-heading);
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 0.8rem;
    color: #444;
}

/* Responsive */
@media (max-width: 900px) {
    .leadership-card {
        grid-template-columns: 1fr;
        clip-path: none;
        border-radius: 8px;
    }

    .executive-image {
        height: 300px;
    }

    .hero h2 {
        font-size: 3rem;
    }
}

@media (max-width: 768px) {

    /* Header Stacking */
    .header .container {
        flex-direction: column;
        gap: 15px;
    }

    .logo {
        flex-direction: column;
        text-align: center;
        gap: 10px;
    }

    .logo-text h1 {
        font-size: 1.1rem;
    }

    /* Hero Adjustments */
    .hero-content {
        padding-left: 0;
        border-left: none;
        text-align: center;
        padding: 0 20px;
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    .hero h2 {
        font-size: 2.5rem;
    }

    .subheadline {
        border-left: none;
        padding-left: 0;
        background: none;
        text-align: center;
        font-size: 1.1rem;
    }

    /* Capabilities: Stack Cage Code & Badges */
    .capabilities .container {
        flex-direction: column;
        align-items: center;
        gap: 40px;
    }

    .cage-code-box {
        width: 100%;
        max-width: 350px;
        align-items: center;
        /* Reset shape for cleaner mobile look */
        clip-path: none;
        border-radius: 8px;
        border: 1px solid var(--color-border);
        background: rgba(0, 0, 0, 0.5);
    }

    .tech-readout::after {
        display: none;
    }

    /* Owned/Ready Boxes Refinement */
    .badges {
        flex-direction: column;
        width: 100%;
        gap: 15px;
        align-items: center;
    }

    .badge-item {
        width: 100%;
        /* Full width cards */
        max-width: 350px;
        background: rgba(255, 255, 255, 0.03);
        padding: 20px;
        border-radius: 8px;
        border: 1px solid var(--color-border);

        display: flex;
        flex-direction: row;
        /* Horizontal layout for the box */
        align-items: center;
        justify-content: flex-start;
        padding-left: 30px;
        transition: transform 0.3s, background 0.3s;
    }

    .badge-item:hover {
        background: rgba(255, 255, 255, 0.08);
    }

    .badge-item i {
        font-size: 1.8rem;
        margin-bottom: 0;
        /* Remove bottom margin from default */
        width: 40px;
        /* Fixed width for alignment */
        text-align: center;
    }

    .badge-item span {
        border-top: none;
        /* Remove existing top border */
        padding-top: 0;
        margin-left: 20px;
        font-size: 1rem;
        font-weight: 600;
        letter-spacing: 1px;
    }

    /* Leadership Mobile */
    .leadership-card {
        text-align: center;
    }

    .executive-image {
        height: 250px;
    }

    .executive-info {
        padding: 40px 20px;
        border-left: none;
        /* Remove border */
    }

    .mission-statement {
        border-left: none;
        padding-left: 0;
        font-style: italic;
    }

    .contact-row {
        flex-direction: column;
        width: 100%;
        align-items: center;
    }

    .contact-row .btn {
        width: 100%;
        max-width: 300px;
        text-align: center;
    }

    .address-block {
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 20px;
    }
}