/* --- BPG7 GLOBAL STYLESHEET: OBSIDIAN & CHROME --- */
:root {
    --obsidian: #050505; 
    --void: #0b0c10;
    --dark-metal: #1f2833;
    --chrome: #c5c6c7;
    --cyan: #66fcf1; 
    --cyan-dim: rgba(102, 252, 241, 0.3);
    --glass: rgba(20, 20, 25, 0.95);
    --font-main: 'Montserrat', sans-serif;
    --font-tech: 'Orbitron', sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

body {
    background-color: var(--obsidian);
    color: var(--chrome);
    font-family: var(--font-main);
    overflow-x: hidden;
    line-height: 1.8; /* Increased line-height for readability */
    font-size: 1.2rem; /* STANDARD: 1.2rem for all body text */
}

/* --- PRELOADER (Security Scan) --- */
#preloader {
    position: fixed; top: 0; left: 0; width: 100%; height: 100%;
    background: #000; z-index: 10000;
    display: flex; flex-direction: column; justify-content: center; align-items: center;
    transition: opacity 0.8s ease;
}
.scanner-container { position: relative; width: 120px; height: 120px; margin-bottom: 20px;}
.scan-shield { width: 100%; height: 100%; object-fit: contain; filter: grayscale(100%) contrast(1.2); }
.scan-line {
    position: absolute; top: 0; left: 0; width: 100%; height: 2px;
    background: var(--cyan); box-shadow: 0 0 15px var(--cyan);
    animation: scan-loop 2s infinite linear; z-index: 10;
}
@keyframes scan-loop {
    0% { top: 0%; opacity: 0; }
    10% { opacity: 1; }
    90% { opacity: 1; }
    100% { top: 100%; opacity: 0; }
}
.loading-text {
    font-family: var(--font-tech); color: var(--chrome);
    font-size: 0.8rem; letter-spacing: 3px; animation: pulse-text 1.5s infinite; text-align: center; padding: 0 20px;
}
.access-text {
    margin-top: 10px; color: var(--cyan); font-family: var(--font-tech);
    font-size: 1rem; letter-spacing: 2px; opacity: 0; transform: scale(0.9);
    transition: all 0.5s ease;
}
.access-granted .access-text { opacity: 1; transform: scale(1); }

/* --- BACKGROUNDS --- */
.bg-security { background: url('assets/hero-security.png') center/cover no-repeat fixed; }
.bg-risk     { background: url('assets/hero-risk.png') center/cover no-repeat fixed; }
.bg-safety   { background: url('assets/hero-safety.png') center/cover no-repeat fixed; }
.bg-intel    { background: url('assets/hero-intel.png') center/cover no-repeat fixed; }
.bg-crisis   { background: url('assets/hero-crisis.png') center/cover no-repeat fixed; }
.bg-bcm      { background: url('assets/hero-bcm.png') center/cover no-repeat fixed; }
.bg-about    { background: url('assets/Ops1.jpg') center/cover no-repeat fixed; }

#constellation {
    position: fixed; top: 0; left: 0; width: 100%; height: 100%;
    z-index: 0; opacity: 0.3; pointer-events: none;
}

/* --- TABBED HEADER NAVIGATION --- */
.glass-nav {
    position: fixed; 
    top: 0; 
    width: 100%; 
    height: auto;
    min-height: 120px; 
    display: flex; 
    flex-direction: column; 
    justify-content: center;
    align-items: center;
    background: var(--glass);
    backdrop-filter: blur(15px); 
    border-bottom: 1px solid rgba(102, 252, 241, 0.2); 
    z-index: 9999;
    gap: 15px;
    padding: 15px 5%;
}

.nav-brand { display: flex; align-items: center; text-decoration: none; }
.nav-logo-img { 
    height: 65px; 
    width: auto; 
    transition: transform 0.3s; 
}
.nav-brand:hover .nav-logo-img { transform: scale(1.05); }

.nav-tabs {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    width: 100%;
}

.nav-tab {
    color: var(--chrome);
    text-decoration: none;
    font-family: var(--font-tech);
    font-size: 0.8rem;
    padding: 8px 12px;
    border: 1px solid transparent;
    border-radius: 4px;
    transition: all 0.3s;
    letter-spacing: 1px;
    white-space: nowrap;
    text-transform: uppercase;
}

.nav-tab:hover, .nav-tab.active {
    color: var(--cyan);
    background: rgba(102, 252, 241, 0.1);
    border: 1px solid rgba(102, 252, 241, 0.3);
}

.nav-tab.bio-link { color: #fff; border: 1px solid #444; }
.nav-tab.bio-link:hover { background: #222; border-color: var(--cyan); }
.contact-tab { color: var(--cyan) !important; border: 1px solid var(--cyan) !important; }
.contact-tab:hover { background: var(--cyan-dim) !important; box-shadow: 0 0 10px var(--cyan-dim); }

/* --- 3D KINETIC INTERFACE (INDEX) --- */
.kinetic-container {
    position: relative; width: 100vw; height: 100vh;
    z-index: 10; overflow: hidden;
    perspective: 1200px; 
}

.core-hub {
    position: absolute; 
    top: 50%; left: 50%; 
    transform: translate(-50%, -50%);
    width: 280px; height: 280px;
    border-radius: 50%; cursor: pointer; z-index: 10;
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    padding: 6px;
    background: linear-gradient(135deg, #333, #e8e8e8, #333);
    box-shadow: 0 0 30px rgba(0,0,0,0.8), 0 0 10px rgba(255, 255, 255, 0.2);
}
.core-hub:hover { 
    transform: translate(-50%, -50%) scale(1.05);
    box-shadow: 0 0 50px rgba(102, 252, 241, 0.3), 0 0 20px rgba(255, 255, 255, 0.5);
}
.core-image {
    width: 100%; height: 100%; border-radius: 50%; object-fit: cover;
    box-shadow: inset 0 0 40px 15px #000;
    border: 2px solid #000;
    filter: brightness(0.9) contrast(1.1);
    background-color: #000;
}
.core-bezel {
    position: absolute; top: -15px; left: -15px; right: -15px; bottom: -15px;
    border-radius: 50%; border: 1px dashed var(--cyan-dim); border-top: 1px solid var(--cyan);
    animation: spin-slow 30s linear infinite; pointer-events: none;
}
.core-ripple {
    position: absolute; top: 0; left: 0; width: 100%; height: 100%;
    border-radius: 50%; border: 1px solid var(--cyan);
    animation: ripple 3s infinite; opacity: 0;
}
.core-label {
    position: absolute; bottom: -70px; width: 100%; text-align: center;
    font-family: var(--font-tech); color: var(--chrome); letter-spacing: 2px;
    font-size: 1rem; text-shadow: 0 0 10px rgba(0,0,0,0.8);
    pointer-events: none;
}
.core-label .role { font-size: 0.7rem; color: var(--cyan); display: block; margin-top: 5px; }

.carousel-ring {
    position: absolute; width: 100%; height: 100%;
    transform-style: preserve-3d;
    pointer-events: none; 
}

.satellite {
    position: absolute;
    top: 50%; left: 50%;
    width: 160px; height: 160px;
    margin-top: -80px; margin-left: -80px; 
    display: flex; flex-direction: column; justify-content: center; align-items: center;
    cursor: pointer; pointer-events: auto;
    transition: filter 0.3s;
}

.sat-visual {
    position: relative;
    width: 110px; height: 110px;
    transition: all 0.5s ease;
}

.sat-img {
    width: 100%; height: 100%;
    border-radius: 50%;
    border: 2px solid var(--dark-metal);
    box-shadow: 0 0 20px rgba(0,0,0,0.8);
    -webkit-box-reflect: below 10px linear-gradient(transparent, rgba(0,0,0,0.4));
}

.sat-info {
    position: absolute; top: 130px;
    width: 300px; text-align: center;
    opacity: 0; transform: translateY(10px);
    transition: all 0.5s ease;
    pointer-events: none;
    z-index: 100;
}

.sat-title {
    display: block; font-family: var(--font-tech); color: var(--cyan);
    font-size: 1.2rem; letter-spacing: 2px; text-shadow: 0 0 10px var(--cyan); background: rgba(0,0,0,0.8); border-radius: 4px; padding: 2px;
}
.sat-desc {
    display: block; font-family: var(--font-main); color: #fff;
    font-size: 0.8rem; margin-top: 5px; background: rgba(0,0,0,0.8);
    padding: 5px 10px; border-radius: 4px; border: 1px solid var(--dark-metal);
}

.satellite.active .sat-visual { transform: scale(1.15); } 
.satellite.active .sat-img { border-color: var(--cyan); box-shadow: 0 0 40px rgba(102, 252, 241, 0.5); }
.satellite.active .sat-info { opacity: 1; transform: translateY(0); }
.satellite:not(.active) { filter: brightness(0.5) blur(1px); } 

.drag-instruction {
    position: absolute; bottom: 80px; width: 100%; text-align: center;
    color: var(--chrome); opacity: 0.5; font-family: var(--font-tech); font-size: 0.7rem; letter-spacing: 3px;
    pointer-events: none;
}

.home-footer {
    position: fixed; bottom: 20px; width: 100%; text-align: center;
    font-size: 0.7rem; color: #444; font-family: var(--font-tech); pointer-events: none;
}

/* --- INNER PAGE LAYOUTS --- */
.page-hero {
    min-height: auto; display: flex; align-items: center; justify-content: center;
    padding: 30px 10% 0px; /* Tightened per instructions */
    position: relative; margin-top: 130px; 
}
.hero-overlay { position: absolute; top: 0; left: 0; width: 100%; height: 100%; background: linear-gradient(90deg, #050505 20%, rgba(5,5,5,0.7) 100%); z-index: 1; }
.hero-layout { position: relative; z-index: 2; display: flex; align-items: center; justify-content: flex-start; width: 100%; max-width: 1400px; gap: 40px; }
.hero-visual { flex-shrink: 0; }
.hero-emblem {
    width: 280px; height: 280px; border-radius: 50%; border: 4px solid var(--chrome);
    box-shadow: 0 0 50px rgba(0,0,0,0.8); object-fit: cover;
    animation: float 6s ease-in-out infinite;
}
.hero-text-content { max-width: 700px; }
.hero-text-content h1 { 
    font-family: var(--font-tech); 
    font-size: clamp(2rem, 5vw, 4rem); 
    line-height: 1; margin-bottom: 5px; color: #fff; text-transform: uppercase; 
}
.hero-divider { width: 100px; height: 4px; background: var(--cyan); margin-top: 15px; }
.subtitle { color: var(--cyan); letter-spacing: 3px; font-weight: 500; font-size: 1.1rem; }

/* --- CONTENT SECTIONS --- */
.bio-section { padding: 40px 10% 80px; } /* Reduced top padding */
.bio-text-body {
    max-width: 900px; margin: 0 auto; color: #ccc; 
    text-align: center; line-height: 1.8; font-size: 1.2rem;
}
.bio-text-body p { margin-bottom: 25px; }

.section-header { text-align: center; margin-bottom: 30px; }
.section-header h2 { color: #fff; font-family: var(--font-tech); font-size: 2rem; margin-bottom: 10px; }

/* --- IMAGES & CARDS --- */
.ops-gallery { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 30px; margin-top: 40px; }
.ops-card { height: auto !important; border: none; background: transparent; padding-bottom: 20px; }
.ops-img-frame { height: 260px; width: 100%; border: 1px solid #333; overflow: hidden; margin-bottom: 12px; }
.ops-img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s ease; filter: grayscale(40%); }
.ops-img:hover { transform: scale(1.05); filter: grayscale(0%); }
.ops-label-box { text-align: left; padding-left: 2px; }
.ops-label-box span { 
    color: var(--cyan); font-family: var(--font-tech); 
    font-size: 0.9rem; letter-spacing: 1px; text-transform: uppercase;
}

/* --- FOOTER (Obsidian 3-Column) --- */
footer {
    position: relative;
    border-top: 3px solid var(--dark-metal);
    background: #000;
}
.footer-glass {
    background: rgba(5, 5, 5, 0.98);
    padding: 60px 5%;
}
.footer-content {
    display: flex;
    justify-content: center; 
    align-items: center;
    gap: 40px; 
    max-width: 1200px;
    margin: 0 auto;
}
.footer-col { flex: 1; color: #777; font-size: 0.85rem; line-height: 1.8; }
.footer-col h4 { color: #fff; font-family: var(--font-tech); margin-bottom: 10px; letter-spacing: 1px; }
.footer-col a { color: var(--cyan); text-decoration: none; }

.left-wing { text-align: right; } 
.center-pillar { flex: 0 0 auto; display: flex; justify-content: center; }
.right-wing { text-align: left; } 

.footer-logo { height: 80px; width: auto; opacity: 0.8; transition: opacity 0.3s; }
.footer-logo:hover { opacity: 1; }
.footer-bar { text-align: center; margin-top: 40px; color: #444; font-size: 0.7rem; font-family: var(--font-tech); letter-spacing: 2px; }

/* --- ANIMATIONS --- */
@keyframes spin-slow { 100% { transform: rotate(360deg); } }
@keyframes pulse-text { 0%, 100% { opacity: 0.6; } 50% { opacity: 1; } }
@keyframes float { 0% { transform: translateY(0px); } 50% { transform: translateY(-15px); } 100% { transform: translateY(0px); } }
.fade-in { opacity: 0; transform: translateY(20px); animation: fadeInUp 0.8s forwards; }
.delay-1 { animation-delay: 0.2s; }
.delay-2 { animation-delay: 0.4s; }
@keyframes fadeInUp { to { opacity: 1; transform: translateY(0); } }

/* --- RESPONSIVE --- */
@media (max-width: 1024px) {
    .hero-layout { flex-direction: column; text-align: center; }
    .footer-content { flex-direction: column; text-align: center; gap: 30px; }
    .left-wing, .right-wing { text-align: center; }
}
@media (max-width: 768px) {
    .glass-nav { padding: 10px 0; }
    .nav-tabs { justify-content: center; padding: 0 10px 10px; }
    .nav-tab { font-size: 0.7rem; padding: 6px 8px; }
    
    .kinetic-container { overflow-y: scroll; perspective: none; }
    .core-hub { top: 150px; left: 50%; transform: translateX(-50%); margin-bottom: 40px; position: relative;}
    .satellite { position: relative; top: auto; left: auto; transform: none; margin: 20px auto; width: 90%; height: auto; flex-direction: row; background: rgba(20,20,20,0.8); padding: 15px; border: 1px solid #333; }
    .sat-visual { width: 60px; height: 60px; margin-right: 20px; }
    .sat-info { position: static; opacity: 1; transform: none; text-align: left; width: auto; }
}