/* GLOBAL */
body {
    margin: 0;
    background: radial-gradient(circle at top, #020617, #000);
    color: #e2e8f0;
    font-family: 'Inter', sans-serif;
}

html {
    scroll-behavior: smooth;
}

.container {
    max-width: 1000px;
    margin: auto;
    padding: 1.5rem;
}

/* LOADER SCREEN */
#loader {
    position: fixed;
    width: 100%;
    height: 100%;
    background: #020617;
    color: #38bdf8;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* TERMINAL BOX */
.terminal {
    width: 80%;
    max-width: 700px;
    height: 300px;
    background: rgba(2, 6, 23, 0.95);
    border: 1px solid #38bdf8;
    padding: 1rem;
    overflow-y: auto;
    font-family: 'Share Tech Mono', monospace;
    font-size: 0.85rem;
}

/* SCROLLBAR (optional clean look) */
.terminal::-webkit-scrollbar {
    display: none;
}

/* CURSOR */
.cursor {
    display: inline-block;
    width: 8px;
    background: #38bdf8;
    margin-left: 3px;
    animation: blink 1s infinite;
}

@keyframes blink {
    50% {
        opacity: 0;
    }
}

/* SKIP BUTTON */
#skip-btn {
    position: absolute;
    bottom: 100px;
    background: transparent;
    border: 1px solid #38bdf8;
    color: #38bdf8;
    padding: 6px 12px;
    font-family: 'Share Tech Mono', monospace;
    font-size: 0.75rem;
    cursor: pointer;
    transition: 0.3s;
    opacity: 0;
    animation: fadeIn 1s ease forwards;
    animation-delay: 1s;
}

#skip-btn:hover {
    opacity: 1;
    box-shadow: 0 0 8px #38bdf8;
}


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

/* ANIMATION */
@keyframes load {
    from {
        width: 0%;
    }

    to {
        width: 100%;
    }
}

/* NAVBAR FIX */
nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.8rem 2rem;
    background: rgba(2, 6, 23, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid #0ea5e9;
    position: sticky;
    top: 0;
    z-index: 1000;
}

/* Name/logo */
nav h1 {
    font-size: 1.2rem;
    color: #38bdf8;
    text-shadow: 0 0 8px #38bdf8;
    white-space: nowrap;
}

/* Nav links container */
nav ul {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    list-style: none;
}

/* Individual links */
nav a {
    text-decoration: none;
    color: #e2e8f0;
    font-size: 0.95rem;
    position: relative;
    transition: 0.3s;
}

/* Hover glow */
nav a:hover {
    color: #38bdf8;
    text-shadow: 0 0 8px #38bdf8;
}

/* Underline animation */
nav a::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -3px;
    width: 0%;
    height: 2px;
    background: #38bdf8;
    transition: width 0.3s ease;
}

nav a:hover::after {
    width: 100%;
}

/* HERO DOSSIER */
.dossier {
    border: 1px solid #38bdf8;
    padding: 2rem;
    margin: 2rem 0;
    position: relative;
}

.dossier::before {
    content: "CLASSIFIED";
    position: absolute;
    top: -10px;
    right: 10px;
    font-size: 0.7rem;
    color: #38bdf8;
    font-family: 'Share Tech Mono', monospace;
}

.hero h2 {
    color: #38bdf8;
    font-family: 'Share Tech Mono', monospace;
}

.certifications {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.badge {
    border: 1px solid #38bdf8;
    padding: 2px 8px;
    border-radius: 6px;
    font-size: 0.8rem;
    color: #38bdf8;
}

/* PARALLAX HERO */
.image-hero {
    position: relative;
    height: 80vh;
    min-height: 500px;
    overflow: hidden;
}

/* PARALLAX IMAGE */
.image-hero img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 120%;
    /* slightly bigger for smooth movement */
    object-fit: cover;
    transform: translateY(0);
    will-change: transform;
}

/* DARK OVERLAY FOR READABILITY */
.image-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to right,
            rgba(2, 6, 23, 0.9) 20%,
            rgba(2, 6, 23, 0.6) 50%,
            rgba(2, 6, 23, 0.2) 100%);
}

/* TEXT POSITIONING */
.image-text {
    position: absolute;
    top: 50%;
    left: 2%;
    transform: translateY(-50%);
    max-width: 500px;
}

/* SUBJECT TEXT */
.image-text h2 {
    color: #38bdf8;
    font-family: 'Share Tech Mono', monospace;
    margin-bottom: 1rem;
}

/* INFO GRID */
.subject-info {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2px;
}

.image-hero::after {
    content: "";
    position: absolute;
    width: 100%;
    height: 2px;
    background: #38bdf8;
    top: 0;
    left: 0;
    animation: scan 4s;
    opacity: 0.5;
}

@keyframes scan {
    0% {
        top: 0;
    }

    100% {
        top: 100%;
    }
}

/* BUTTONS */
.hero-buttons {
    margin-top: 1.2rem;
    display: flex;
    gap: 1rem;
}

/* BUTTONS */
.hero-buttons {
    margin-top: 1.5rem;
    display: flex;
    gap: 1rem;
}

.btn {
    padding: 0.6rem 1.2rem;
    background: #38bdf8;
    color: black;
    text-decoration: none;
    border-radius: 6px;
}

.btn-outline {
    padding: 0.6rem 1.2rem;
    border: 1px solid #38bdf8;
    color: #38bdf8;
    text-decoration: none;
    border-radius: 6px;
}

/* SECTIONS */
section {
    margin: 3rem 0;
    scroll-margin-top: 110px;
    position: relative;
}

section::before {
    content: "";
    position: absolute;
    left: -20px;
    top: 0;
    height: 100%;
    width: 2px;
    background: #38bdf8;
    opacity: 0.2;
}

h2 {
    color: #38bdf8;
    border-bottom: 1px solid #38bdf8;
    padding-bottom: 0.5rem;
    font-family: 'Share Tech Mono', monospace;
}

/* CARDS */
.card {
    background: rgba(30, 41, 59, 0.6);
    border: 1px solid #1e293b;
    padding: 1rem;
    margin-top: 1rem;
    border-radius: 8px;
    transition: 0.3s;
}

.card:hover {
    border-color: #38bdf8;
    box-shadow: 0 0 10px #38bdf8;
}

/* CARD HEADER */
.card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
}

/* PREVIEW TEXT */
.card-preview {
    font-size: 0.9rem;
    opacity: 0.7;
    margin: 0 0 0.5rem 0;
}

/* EXPANDABLE CONTENT */
.card-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease;
}

/* ACTIVE STATE */
.card.active .card-content {
    max-height: 1000px;
}

/* ARROW */
.arrow {
    color: #38bdf8;
    transition: transform 0.3s ease;
}

.card.active .arrow {
    transform: rotate(180deg);
}

/* EMBEDDED VIDEOS */
.video-container {
    position: relative;
    padding-bottom: 56.25%;
    /* 16:9 ratio */
    height: 0;
    overflow: hidden;
    width: 100%;
    max-width: 100%;
    margin: 1rem 0;
}

.video-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 0;
    border-radius: 6px;
    box-shadow: 0 0 15px #38bdf8;
}

/* CONTACT */
.contact-links {
    display: flex;
    gap: 1.5rem;
    margin-top: 1rem;
}

.contact-links a {
    color: #38bdf8;
    text-decoration: none;
}

.contact-links a:hover {
    text-shadow: 0 0 8px #38bdf8;
}

/* FOOTER */
footer {
    text-align: center;
    border-top: 1px solid #38bdf8;
    padding: 1rem;
    margin-top: 2rem;
}