/* ======================================
   GLOBAL RESET + FONTS
====================================== */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;600;700;900&display=swap');

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

body {
    background: #000;
    color: #fff;
    font-family: 'Inter', sans-serif;
    overflow-x: hidden;
    line-height: 1.4;
}

section {
    padding-top: 80px;
    padding-bottom: 80px;
}



/* ======================================
   NAVIGATION BAR (Anduril-style)
====================================== */

.nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 40px;
    background: rgba(20,20,20,0.5);
    backdrop-filter: blur(6px);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 9999;
}

.nav-left {
    font-size: 16px;
    font-weight: 700;
    letter-spacing: 1px;
}

.nav a {
    color: #fff;
    text-decoration: none;
    margin: 0 12px;
    font-size: 14px;
    letter-spacing: 0.5px;
    transition: opacity 0.2s ease;
}

.nav a:hover {
    opacity: 0.7;
}

/* Sticky Nav */
.nav {
    position: sticky;
    top: 0;
    width: 100%;
    z-index: 9999;
    background: rgba(0, 0, 0, 0.75);
    backdrop-filter: blur(10px);
}


/* ======================================
   HERO SECTION
====================================== */

.hero {
    height: 100vh;
    position: relative;
    overflow: hidden;

    display: flex;
    justify-content: center;
    align-items: center;

    /* Remove the old background image */
    padding: 0;
}

.hero video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 0;
    opacity: 1;
}

.hero-overlay {
    position: relative;
    z-index: 2;
    text-align: center;
    padding: 0 40px;
    max-width: 1200px;
}

.hero::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, rgba(0,0,0,0.35), rgba(0,0,0,0.85));
    z-index: 1;
}

.hero h1 {
    font-size: 3.8vw;
    font-weight: 700;
    line-height: 1.1;
    text-transform: uppercase;
    letter-spacing: -1px;
}

.hero-substrip {
    margin-top: 35px;
    display: flex;
    justify-content: center;
    gap: 40px;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.hero-icon {
    font-size: 18px;
}



/* ======================================
   TILE GRID (3x2 like Anduril)
====================================== */

.grid-section {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    padding: 40px;
    margin-top: 40px;
    background: #000;
}

.tile {
    height: 320px;
    background-size: cover;
    background-position: center;
    position: relative;
    overflow: hidden;
    border-radius: 4px;
    cursor: pointer;
    transition: transform 0.35s ease;
}

.tile::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, rgba(0,0,0,0.25), rgba(0,0,0,0.95));
    opacity: 1;
    transition: opacity 0.35s ease;
    z-index: 1;
}

.tile:hover {
    transform: scale(1.02);
}

.tile:hover::after {
    opacity: 0.6;
}

.tile-text {
    position: absolute;
    bottom: 22px;
    left: 22px;
    z-index: 2;
    font-size: 22px;
    font-weight: 600;
    letter-spacing: 0.5px;
}

.tile-arrow {
    position: absolute;
    bottom: 22px;
    right: 22px;
    z-index: 2;
    font-size: 22px;
    opacity: 0.85;
    transition: transform 0.3s ease;
}

.tile:hover .tile-arrow {
    transform: translateX(5px);
}



/* ======================================
   MISSION SECTION (off-white)
====================================== */

.mission {
    background: #f3f3eb;
    color: #000;
    padding: 150px 40px;
}

.mission-label {
    font-size: 12px;
    letter-spacing: 1px;
    margin-bottom: 20px;
    text-transform: uppercase;
    opacity: 0.6;
}

.mission h2 {
    font-size: 3vw;
    line-height: 1.2;
    font-weight: 700;
}



/* ======================================
   WHO WE ARE SECTION
====================================== */

.who {
    background: #f3f3eb;
    color: #000;
    padding: 120px 40px 40px 40px;
    display: flex;
    justify-content: space-between;
    gap: 40px;
}

.who-label {
    width: 25%;
    font-size: 12px;
    text-transform: uppercase;
    opacity: 0.7;
}

.who-text {
    width: 65%;
    font-size: 1.5vw;
    line-height: 1.3;
    font-weight: 400;
}

.who-image {
    height: 450px;
    background-size: cover;
    background-position: center;
}



/* ======================================
   BIG SLOGAN
====================================== */

.big-slogan {
    background: #f3f3eb;
    color: #000;
    text-align: center;
    padding: 160px 40px;
    margin-top: -40px;
}

.big-slogan h1 {
    font-size: 6vw;
    font-weight: 900;
    line-height: 1.05;
    text-transform: uppercase;
}



/* ======================================
   THREE COLUMN TECH SECTION
====================================== */

.three-col {
    background: #fff;
    color: #000;
    display: flex;
    padding: 120px 40px;
    gap: 40px;
}

.col {
    width: 33%;
}

.col h3 {
    font-size: 22px;
    margin-bottom: 15px;
    font-weight: 700;
}

.col p {
    font-size: 16px;
    line-height: 1.6;
}



/* ======================================
   FOOTER
====================================== */

.footer {
    background: #000;
    color: #fff;
    display: flex;
    gap: 60px;
    padding: 60px 40px;
}

.footer-col h4 {
    margin-bottom: 10px;
    font-size: 16px;
    font-weight: 700;
    letter-spacing: 1px;
}

.footer-col p {
    margin: 6px 0;
    font-size: 14px;
    opacity: 0.85;
}

.footer-bottom {
    padding: 20px 40px;
    font-size: 12px;
    color: #777;
    background: #000;
}

/* ======================================
   RESPONSIVE ADAPTATION
====================================== */

/* Tablets */
@media (max-width: 1024px) {

    .hero h1 {
        font-size: 5.5vw;
    }

    .grid-section {
        grid-template-columns: repeat(2, 1fr);
    }

    .who-text {
        font-size: 2.5vw;
    }

    .three-col {
        flex-direction: column;
    }

    .col {
        width: 100%;
    }
}

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

    .nav {
        padding: 12px 20px;
        flex-direction: column;
        gap: 10px;
    }

    .nav-center, .nav-right {
        display: none; /* Simpler mobile nav for now */
    }

    .hero h1 {
        font-size: 7vw;
    }

    .hero-substrip {
        flex-direction: column;
        gap: 10px;
    }

    .grid-section {
        grid-template-columns: 1fr;
        padding: 20px;
    }

    .tile {
        height: 260px;
    }

    .who {
        flex-direction: column;
    }

    .who-label, .who-text {
        width: 100%;
    }

    .big-slogan h1 {
        font-size: 10vw;
    }
}

/* ================================
   HAMBURGER MENU
================================ */

.hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    z-index: 9999;
}

.hamburger span {
    width: 26px;
    height: 3px;
    background: #fff;
    transition: 0.3s ease;
}

/* MOBILE MENU HIDDEN BY DEFAULT */
.mobile-menu {
    position: fixed;
    top: 70px;
    right: -100%;
    background: #000;
    width: 100%;
    height: calc(100vh - 70px);
    display: flex;
    flex-direction: column;
    padding: 40px;
    gap: 25px;
    transition: right 0.4s ease;
}

.mobile-menu a {
    color: white;
    font-size: 22px;
    text-decoration: none;
}

/* WHEN ACTIVE */
.mobile-menu.open {
    right: 0;
}

.hamburger.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.hamburger.active span:nth-child(2) {
    opacity: 0;
}

.hamburger.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}

/* DISPLAY TOGGLE */
@media (max-width: 768px) {
    .nav-center, .nav-right {
        display: none;
    }
    .hamburger {
        display: flex;
    }
}

/* PARALLAX BASE CLASS */
.parallax {
    background-attachment: fixed;
    background-size: cover;
    background-position: center;
}

/* ================================
   DROPDOWN MENU (DESKTOP)
================================ */

.dropdown {
    position: relative;
    display: inline-block;
}

.dropdown-btn {
    background: none;
    border: none;
    color: #fff;
    font-size: 16px;
    cursor: pointer;
    font-family: inherit;
    padding: 0;
}

.dropdown-content {
    position: absolute;
    top: 30px;
    left: 0;
    background: #000;
    padding: 15px 20px;
    border: 1px solid #222;
    display: flex;
    flex-direction: column;
    gap: 10px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: opacity 0.25s ease, transform 0.25s ease, visibility 0.25s;
    min-width: 180px;
    z-index: 999;
}

.dropdown-content a {
    color: #fff;
    text-decoration: none;
    font-size: 14px;
    letter-spacing: 0.5px;
}

.dropdown:hover .dropdown-content {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

/* MOBILE: dropdown disappears and becomes mobile menu item */
@media (max-width: 768px) {
    .dropdown {
        display: none;
    }
}

/* Section reveal animation */
section {
    opacity: 1;
    transform: translateY(30px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.show-section {
    opacity: 1;
    transform: translateY(0);
}
