/* ==========================================================================
   1. ARCHITECTURAL TOKENS & SYSTEM VARIABLE SETUPS
   ========================================================================== */
:root {
    --space-void: #03060c;
    --space-surface: #070c16;
    --space-card: rgba(10, 17, 30, 0.45);
    --border-matrix: rgba(255, 255, 255, 0.04);
    --gold-stellar: #e5c158;
    --gold-stellar-muted: rgba(229, 193, 88, 0.2);
    --text-pure: #ffffff;
    --text-ambient: #8fa0bc;
    --font-primary: 'Montserrat', sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; background: var(--space-void); }
body {
    font-family: var(--font-primary);
    background-color: var(--space-void);
    color: var(--text-pure);
    overflow-x: hidden;
    line-height: 1.65;
}

#constellation-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: 1;
    pointer-events: none;
}

/* ==========================================================================
   2. MODERN MINI-HUD NAVIGATION BAR
   ========================================================================== */
.hud-navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 20px 0;
    z-index: 5000;
    background: linear-gradient(to bottom, rgba(3, 6, 12, 0.9) 0%, rgba(3, 6, 12, 0) 100%);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border-bottom: 1px solid var(--border-matrix);
}

.hud-container {
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 40px;
}

.hud-logo-frame {
    display: flex;
    align-items: center;
}

/* Star logo styling for top left */
.hud-logo-img {
    width: auto;
    height: 38px; 
    object-fit: contain;
}

/* Specific glowing animation for the nav star */
.star-glow {
    animation: navStarPulse 3s infinite ease-in-out;
}

@keyframes navStarPulse {
    0%, 100% { filter: drop-shadow(0 0 8px rgba(229, 193, 88, 0.3)); transform: scale(1); }
    50% { filter: drop-shadow(0 0 18px rgba(229, 193, 88, 0.7)); transform: scale(1.03); }
}

.hud-links {
    display: flex;
    align-items: center;
    gap: 40px;
}

.hud-link {
    color: var(--text-ambient);
    text-decoration: none;
    font-size: 0.75rem;
    font-weight: 400;
    letter-spacing: 2px;
    text-transform: uppercase;
    transition: color 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}
.hud-link:hover, .hud-link.active-link { color: var(--gold-stellar); }

.active-cta {
    border: 1px solid var(--gold-stellar);
    padding: 8px 18px;
    border-radius: 1px;
    color: var(--text-pure);
    background: rgba(229, 193, 88, 0.03);
}
.active-cta:hover {
    background: var(--gold-stellar);
    color: var(--space-void);
    box-shadow: 0 0 15px var(--gold-stellar-muted);
}

/* ==========================================================================
   3. CINEMATIC HERO SPACE & CSS TEXT LOGO
   ========================================================================== */
.cinema-hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    z-index: 5;
    padding: 0 30px;
}

.hero-focus-matrix {
    max-width: 900px;
    text-align: center;
    margin-top: -50px;
}

/* Pure CSS Replacement for logo-text.png */
.hero-text-logo {
    margin-bottom: 40px;
    user-select: none;
}

.logo-title {
    /* Uses clamp to auto-scale perfectly on phones vs desktops */
    font-size: clamp(1.8rem, 5vw, 4rem); 
    font-weight: 600;
    letter-spacing: 3px;
    color: #ffffff;
    line-height: 1;
}

.logo-subtitle {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    margin-top: 10px;
}

.logo-subtitle .logo-text {
    font-size: clamp(1rem, 2vw, 1.8rem);
    font-weight: 600;
    letter-spacing: 8px;
    color: #ffffff;
}

.logo-subtitle .logo-line {
    height: 2px;
    flex-grow: 1;
    max-width: 250px;
    background: #ffffff;
    border-radius: 2px;
}

.reveal-text {
    font-size: 1.5rem;
    font-weight: 200;
    letter-spacing: 6px;
    line-height: 1.2;
    margin-bottom: 20px;
    background: linear-gradient(180deg, #ffffff 30%, var(--text-ambient));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.reveal-subtext {
    font-size: 1.05rem;
    color: var(--text-ambient);
    font-weight: 400;
    max-width: 700px;
    margin: 0 auto 50px auto;
    letter-spacing: 0.5px;
}

.explore-trigger {
    color: var(--gold-stellar);
    text-decoration: none;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 3px;
}
.arrow-down { display: block; margin-top: 8px; animation: bounce 2s infinite; }
@keyframes bounce { 0%, 20%, 50%, 80%, 100% { transform: translateY(0); } 40% { transform: translateY(-5px); } 60% { transform: translateY(-3px); } }

/* ==========================================================================
   4. INTERACTIVE MATRIX NODE ARCHITECTURE
   ========================================================================== */
.content-stream { position: relative; z-index: 10; background: linear-gradient(to bottom, transparent, var(--space-void) 15%); }

.interactive-matrix-section { padding: 160px 40px; max-width: 1400px; margin: 0 auto; }
.section-intel-header { margin-bottom: 70px; }
.matrix-tag { font-size: 0.65rem; color: var(--gold-stellar); letter-spacing: 4px; text-transform: uppercase; display: block; margin-bottom: 12px; font-weight: 600; }
.matrix-title { font-size: 2.2rem; font-weight: 200; letter-spacing: 2px; }

.matrix-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(360px, 1fr)); gap: 30px; }

.matrix-node {
    position: relative;
    background: var(--space-card);
    border: 1px solid var(--border-matrix);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-radius: 2px;
    overflow: hidden;
    transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.5s ease;
}

.node-glow-conductor { position: absolute; top: 0; left: 0; width: 100%; height: 100%; pointer-events: none; z-index: 1; }
.node-internal { padding: 50px 40px; position: relative; z-index: 2; }
.node-index { font-size: 0.7rem; color: rgba(255,255,255,0.15); margin-bottom: 20px; font-family: monospace; }
.matrix-node h3 { font-size: 1.4rem; font-weight: 400; margin-bottom: 6px; letter-spacing: 0.5px; }
.node-specialization { font-size: 0.75rem; color: var(--gold-stellar); display: block; margin-bottom: 25px; letter-spacing: 1px; font-weight: 600; }
.matrix-node p { color: var(--text-ambient); font-size: 0.92rem; font-weight: 400; text-align: justify; }

.matrix-node:hover {
    transform: translateY(-8px) scale(1.01);
    border-color: rgba(229, 193, 88, 0.3);
    box-shadow: 0 15px 40px rgba(0,0,0,0.5);
}

/* ==========================================================================
   5. ADVANCED QUANTUM COMPONENT FORM FIELDS
   ========================================================================== */
.quantum-form-section { padding: 140px 40px; background: linear-gradient(to bottom, transparent, var(--space-surface)); }
.form-container { max-width: 650px; margin: 0 auto; }
.form-intel-header { text-align: center; margin-bottom: 50px; }
.form-intel-header h2 { font-size: 2rem; font-weight: 200; letter-spacing: 1px; }

.quantum-form { background: rgba(5, 9, 18, 0.8); border: 1px solid var(--border-matrix); padding: 50px 40px; border-radius: 2px; }
.quantum-field { position: relative; margin-bottom: 40px; }

.quantum-field input, .quantum-field textarea {
    width: 100%;
    padding: 14px 0;
    background: transparent;
    border: none;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--text-pure);
    font-family: inherit;
    font-size: 1rem;
    transition: border-color 0.3s ease;
}

.quantum-field label {
    position: absolute;
    top: 14px;
    left: 0;
    color: var(--text-ambient);
    font-size: 0.9rem;
    font-weight: 400;
    pointer-events: none;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.quantum-field input:focus, .quantum-field textarea:focus { outline: none; }
.field-bar { position: absolute; bottom: 0; left: 0; width: 0; height: 1px; background: var(--gold-stellar); transition: width 0.4s ease; }
.quantum-field input:focus ~ .field-bar, .quantum-field textarea:focus ~ .field-bar { width: 100%; }

.quantum-field input:focus ~ label, .quantum-field input:not(:placeholder-shown) ~ label,
.quantum-field textarea:focus ~ label, .quantum-field textarea:not(:placeholder-shown) ~ label {
    top: -16px;
    font-size: 0.72rem;
    color: var(--gold-stellar);
    letter-spacing: 1.5px;
    text-transform: uppercase;
}

.quantum-submit-btn {
    width: 100%;
    background: transparent;
    border: 1px solid var(--gold-stellar);
    padding: 16px;
    cursor: pointer;
    position: relative;
    overflow: hidden;
}
.quantum-submit-btn span { color: var(--gold-stellar); font-size: 0.8rem; font-weight: 600; text-transform: uppercase; letter-spacing: 2px; position: relative; z-index: 2; transition: color 0.3s ease; }
.quantum-submit-btn::before { content: ''; position: absolute; top: 0; left: -100%; width: 100%; height: 100%; background: var(--gold-stellar); z-index: 1; transition: left 0.4s cubic-bezier(0.16, 1, 0.3, 1); }
.quantum-submit-btn:hover::before { left: 0; }
.quantum-submit-btn:hover span { color: var(--space-void); }

/* ==========================================================================
   6. HIGH-FIDELITY DOCUMENT PROFILE SCREEN VIEW (ABOUT PAGE)
   ========================================================================== */
.profile-document-view { min-height: 100vh; display: flex; align-items: center; padding: 140px 40px 80px 40px; position: relative; z-index: 5; }
.document-frame { max-width: 1000px; margin: 0 auto; background: var(--space-card); border: 1px solid var(--border-matrix); padding: 70px 60px; backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px); }
.profile-header { font-size: 2.8rem; font-weight: 200; letter-spacing: 1px; margin-top: 15px; margin-bottom: 50px; }
.profile-body-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; }
.macro-abstract { font-size: 1.3rem; color: var(--text-pure); font-weight: 200; line-height: 1.6; border-left: 2px solid var(--gold-stellar); padding-left: 30px; }
.profile-extended-col p { color: var(--text-ambient); font-size: 1rem; margin-bottom: 30px; font-weight: 400; text-align: justify; }
.return-vector-btn { color: var(--gold-stellar); text-decoration: none; font-size: 0.75rem; text-transform: uppercase; letter-spacing: 2px; display: inline-block; margin-top: 10px; }
.return-vector-btn:hover { text-decoration: underline; }

/* ==========================================================================
   7. STAGGERED ANIMATIONS & ROBUST MOBILE ENGINEERING
   ========================================================================== */
.matrix-footer { text-align: center; padding: 60px 0; border-top: 1px solid var(--border-matrix); color: #334155; font-size: 0.72rem; letter-spacing: 1px; position: relative; z-index: 10; }

@media (max-width: 968px) {
    .profile-body-grid { grid-template-columns: 1fr; gap: 40px; }
    .document-frame { padding: 40px 25px; }
    .reveal-text { font-size: 1.2rem; letter-spacing: 3px; }
    .hud-container { padding: 0 20px; }
    .hud-links { gap: 20px; }
}

@media (max-width: 768px) {
    /* MOBILE FIX: Keeps Navigation Fully Visible on Phones */
    .hud-container {
        flex-direction: column;
        gap: 15px;
        padding: 15px 10px;
    }
    .hud-links { 
        display: flex; 
        flex-wrap: wrap; 
        justify-content: center; 
        gap: 12px; 
    }
    .hud-link {
        font-size: 0.65rem;
    }

    .matrix-grid { grid-template-columns: 1fr; }
    .interactive-matrix-section { padding: 100px 20px; }
    .quantum-form { padding: 35px 20px; }
    .logo-subtitle .logo-text { letter-spacing: 4px; }
}

