:root {
    --neon-cyan: #00f2ff;
    --glass-bg: rgba(255, 255, 255, 0.03);
    --glass-border: rgba(255, 255, 255, 0.1);
    --dark-bg: #050505;
}

body,
html {
    margin: 0;
    padding: 0;
    background-color: var(--dark-bg);
    font-family: 'Inter', sans-serif;
    color: white;
    /* overflow: hidden; */
    /* height: 100%; */
}

/* --- Entry Overlay (Required for Audio) --- */
#entryOverlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #000;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    transition: opacity 1s ease;
}

.boot-btn {
    background: transparent;
    border: 1px solid var(--neon-cyan);
    color: var(--neon-cyan);
    font-family: 'Orbitron', sans-serif;
    padding: 15px 40px;
    letter-spacing: 5px;
    text-transform: uppercase;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    transition: 0.3s;
    box-shadow: 0 0 15px rgba(0, 242, 255, 0.2);
}

.boot-btn:hover {
    background: var(--neon-cyan);
    color: #000;
    box-shadow: 0 0 30px var(--neon-cyan);
}

.loading-text {
    font-size: 0.7rem;
    margin-top: 20px;
    color: rgba(255, 255, 255, 0.4);
    letter-spacing: 2px;
}

/* --- Hero Section --- */
.hero-container {
    position: relative;
    height: 100vh;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    /* Hidden until boot */
}

.cover-wrapper {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.cover-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: brightness(0.4) contrast(1.1);
}

.cover-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at center, transparent 0%, rgba(0, 0, 0, 0.9) 100%);
}

/* --- Glass Card --- */
.glass-header {
    position: relative;
    z-index: 10;
    width: 90%;
    max-width: 800px;
    padding: 4rem 2rem;
    background: var(--glass-bg);
    backdrop-filter: blur(25px);
    -webkit-backdrop-filter: blur(25px);
    border: 1px solid var(--glass-border);
    border-radius: 30px;
    text-align: center;
}

.profile-img {
    width: 160px;
    height: 160px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--glass-border);
    padding: 5px;
    background: linear-gradient(45deg, var(--neon-cyan), transparent);
}


.scan-line {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background: var(--neon-cyan);
    box-shadow: 0 0 15px var(--neon-cyan);
    z-index: 11;
}

.name-title {
    font-family: 'Orbitron', sans-serif;
    font-weight: 700;
    letter-spacing: 8px;
    text-transform: uppercase;
    margin-top: 1.5rem;
    background: linear-gradient(to bottom, #fff 0%, #888 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

@media (max-width: 768px) {
    .name-title {
        font-size: 1.5rem;
        letter-spacing: 6px;
    }

    .glass-card {
        padding: 3rem 1.5rem;
    }

    .profile-img {
        width: 110px;
        height: 110px;
    }
}


/* --- Toggle Switch --- */
.mode-toggle-container {
    position: fixed;
    top: 40px;
    right: 40px;
    z-index: 100;
    display: flex;
    align-items: center;
    gap: 15px;
    opacity: 0;
}

.custom-switch {
    position: relative;
    width: 50px;
    height: 26px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50px;
    cursor: pointer;
    border: 1px solid var(--glass-border);
}

.switch-handle {
    position: absolute;
    top: 3px;
    left: 3px;
    width: 18px;
    height: 18px;
    background: #fff;
    border-radius: 50%;
    transition: 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.custom-switch.active .switch-handle {
    left: 27px;
    background: var(--neon-cyan);
    box-shadow: 0 0 15px var(--neon-cyan);
}

/* --- Tech Tabs --- */
.tech-nav {
    display: flex;
    justify-content: center;
    gap: 2rem;
    padding: 1rem;
    background: rgba(0, 0, 0, 0.2);
}

.nav-item {
    font-family: 'Orbitron', sans-serif;
    font-size: 0.7rem;
    letter-spacing: 2px;
    color: rgba(255, 255, 255, 0.4);
    cursor: pointer;
    position: relative;
    padding: 5px 10px;
    transition: 0.3s;
}

.nav-item.active {
    color: var(--neon-cyan);
    text-shadow: 0 0 10px var(--neon-cyan);
}

.nav-item::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--neon-cyan);
    transition: 0.3s;
}

.nav-item.active::after {
    width: 100%;
}

/* --- Tab Content Areas --- */
.content-body {
    flex-grow: 1;
    padding: 2.5rem;
    position: relative;
}

.tab-panel {
    display: none;
    font-family: 'JetBrains Mono', monospace;
    line-height: 1.6;
}

.tab-panel.active {
    display: block;
}

.stat-row {
    margin-bottom: 1.5rem;
}

.stat-bar-bg {
    height: 4px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 2px;
    margin-top: 8px;
    overflow: hidden;
}

.stat-bar-fill {
    height: 100%;
    background: var(--neon-cyan);
    width: 0%;
    box-shadow: 0 0 10px var(--neon-cyan);
}

/* --- Toggle Switch --- */
.mode-toggle {
    position: fixed;
    top: 40px;
    right: 40px;
    z-index: 100;
    opacity: 0;
}

.custom-switch {
    width: 50px;
    height: 26px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--glass-border);
    border-radius: 30px;
    position: relative;
    cursor: pointer;
}

.switch-handle {
    position: absolute;
    top: 3px;
    left: 3px;
    width: 18px;
    height: 18px;
    background: white;
    border-radius: 50%;
    transition: 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

.custom-switch.active .switch-handle {
    left: 27px;
    background: var(--neon-cyan);
    box-shadow: 0 0 15px var(--neon-cyan);
}

/* Light Mode Overrides */
body.light-mode {
    background-color: #f0f0f0;
    color: #111;
}

body.light-mode .glass-header {
    background: rgba(0, 0, 0, 0.05);
    border-color: rgba(0, 0, 0, 0.1);
    color: #222;
}

body.light-mode .name-title {
    background: linear-gradient(to bottom, #222, #555);
    -webkit-background-clip: text;
}


/* --- INTEL LIST STYLING --- */
.intel-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.intel-item {
    margin-bottom: 18px;
    padding-bottom: 8px;
    display: flex;
    flex-direction: column;
    transition: 0.3s;
}

.intel-label {
    font-family: 'Orbitron', sans-serif;
    font-size: 0.6rem;
    letter-spacing: 2px;
    color: var(--neon-cyan);
    margin-bottom: 4px;
    opacity: 0.8;
}

.intel-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    background: #111;
    color: #fff;
    font-size: 18px;
    transition: 0.3s ease;
    text-decoration: none !important;
}

.social-center {
    display: flex;
    justify-content: center;
    /* Center horizontally */
    align-items: center;
    /* Center vertically */
    gap: 15px;
    padding: 0;
    margin: 0 auto;
    list-style: none;
    flex-wrap: wrap;
}

.intel-link:hover {
    background: #00f2ff;
    transform: translateY(-3px);
}

/*  */

/* --- 9-MENU FLOATING NAVBAR --- */
.mainframe-nav {
    position: relative;
    top: 30px;
    z-index: 100;
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    border-radius: 50px;
    padding: 8px 25px;
    display: flex;
    gap: 10px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);

    transform: translateY(-50px);
}

.nav-link-custom {
    font-family: 'Orbitron', sans-serif;
    font-size: 0.55rem;
    letter-spacing: 2px;
    color: rgba(255, 255, 255, 0.4);
    padding: 10px 15px;
    cursor: pointer;
    text-transform: uppercase;
    transition: 0.3s;
    border-radius: 25px;
    white-space: nowrap;
}

.nav-link-custom:hover {
    color: var(--neon-cyan);
    background: rgba(0, 242, 255, 0.05);
}

.nav-link-custom.active {
    color: var(--neon-cyan);
    background: rgba(0, 242, 255, 0.1);
    box-shadow: inset 0 0 10px rgba(0, 242, 255, 0.2);
}

/* --- MODE TOGGLE --- */
.mode-toggle {
    position: fixed;
    top: 38px;
    right: 40px;
    z-index: 101;
    opacity: 0;
}

.switch-box {
    width: 45px;
    height: 22px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    position: relative;
    cursor: pointer;
    border: 1px solid var(--glass-border);
}

.switch-knob {
    position: absolute;
    top: 3px;
    left: 3px;
    width: 14px;
    height: 14px;
    background: #fff;
    border-radius: 50%;
    transition: 0.4s;
}

.active .switch-knob {
    left: 26px;
    background: var(--neon-cyan);
    box-shadow: 0 0 10px var(--neon-cyan);
}

/* --- CENTRAL MAINFRAME CARD --- */
.mainframe-card {
    position: relative;
    z-index: 5;
    width: 90%;
    max-width: 1000px;
    height: 650px;
    background: var(--glass-bg);
    backdrop-filter: blur(40px);
    border: 1px solid var(--glass-border);
    border-radius: 30px;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    box-shadow: 0 40px 100px rgba(0, 0, 0, 0.8);
}

.card-header {
    padding: 2rem 3rem;
    border-bottom: 1px solid var(--glass-border);
    display: flex;
    align-items: center;
    gap: 25px;
}

.profile-wrap {
    position: relative;
}

.name-meta h1 {
    font-family: 'Orbitron', sans-serif;
    font-size: 1.6rem;
    letter-spacing: 5px;
    margin: 0;
    background: linear-gradient(to right, #fff, #777);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.name-meta p {
    font-family: 'JetBrains Mono';
    font-size: 0.65rem;
    color: var(--neon-cyan);
    margin: 0;
    letter-spacing: 3px;
    opacity: 0.7;
}

.card-body {
    flex-grow: 1;
    padding: 3rem;
    position: relative;
    overflow-y: auto;
}

.module-panel {
    display: none;
}

.module-panel.active {
    display: block;
}

/* --- MODULE SPECIFIC STYLES --- */
.grid-stats {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
}

.stat-item {
    margin-bottom: 15px;
}

.stat-label {
    font-size: 0.6rem;
    font-family: 'Orbitron';
    letter-spacing: 2px;
    display: block;
    margin-bottom: 8px;
    opacity: 0.6;
}

.bar-bg {
    height: 4px;
    background: rgba(255, 255, 255, 0.05);
}

.bar-fill {
    height: 100%;
    background: var(--neon-cyan);
    box-shadow: 0 0 15px var(--neon-cyan);
    width: 0;
}

.case-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.case-item {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--glass-border);
    padding: 20px;
    border-radius: 15px;
    transition: 0.3s;
    cursor: pointer;
}

.case-item:hover {
    border-color: var(--neon-cyan);
    background: rgba(0, 242, 255, 0.05);
}

/* --- Scrollbar --- */
.card-body::-webkit-scrollbar {
    width: 4px;
}

.card-body::-webkit-scrollbar-thumb {
    background: var(--glass-border);
    border-radius: 10px;
}


/* My Dream PRoject */
.next-section {
    /* min-height: 100vh; */
    padding: 100px 0;
    background: linear-gradient(to bottom, #020202, #080808);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.section-header {
    text-align: center;
    margin-bottom: 80px;
}

.section-header h2 {
    font-family: 'Orbitron';
    letter-spacing: 15px;
    font-size: 1.5rem;
    text-transform: uppercase;
    opacity: 0.8;
}

.section-header p {
    font-family: 'JetBrains Mono';
    font-size: 0.7rem;
    color: var(--neon-cyan);
    letter-spacing: 4px;
}

.dream-orbit-container {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 40px;
    flex-wrap: wrap;
    width: 100%;
    max-width: 1100px;
}

.project-circle {
    width: 190px;
    height: 190px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--glass-border);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    position: relative;
    cursor: pointer;
    transition: 0.5s;
    opacity: 0;
    transform: translateY(50px);
}

/* Visual Stagger */
.project-circle:nth-child(even) {
    margin-top: -60px;
}

.project-circle:hover {
    border-color: var(--neon-cyan);
    background: rgba(0, 242, 255, 0.05);
    transform: scale(1.1) translateY(-10px);
    box-shadow: 0 0 30px var(--accent-glow);
}

.project-circle::before {
    content: "";
    position: absolute;
    inset: -10px;
    border-radius: 50%;
    border: 1px dashed var(--neon-cyan);
    opacity: 0.1;
    transition: 0.5s;
}

.project-circle:hover::before {
    opacity: 0.4;
    animation: spin 10s linear infinite;
}

@keyframes spin {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}

.circle-id {
    font-family: 'JetBrains Mono';
    font-size: 1rem;
    color: var(--neon-cyan);
    margin-bottom: 5px;
    opacity: 0.6;
}

.circle-title {
    font-family: 'Orbitron';
    font-size: 0.7rem;
    text-align: center;
    letter-spacing: 2px;
    text-transform: uppercase;
    padding: 0 10px;
}

.circle-hint {
    position: absolute;
    bottom: -80px;
    width: 200px;
    font-size: 0.75rem;
    color: #fff;
    text-align: center;
    opacity: 0;
    transition: 0.4s;
    pointer-events: none;
    line-height: 1.4;
}

.project-circle:hover .circle-hint {
    opacity: 0.6;
    bottom: -95px;
}


/* Responsive adjustments for circles */
@media (max-width: 992px) {
    .project-circle {
        width: 140px;
        height: 140px;
    }

    .section-header h2 {
        letter-spacing: 8px;
        font-size: 1.2rem;
    }

    .dream-orbit-container {
        gap: 20px;
    }
}

/* Visual Stagger - Only on desktop to avoid overlaps on mobile wrap */
@media (min-width: 768px) {
    .project-circle:nth-child(even) {
        margin-top: -60px;
    }
}

@media (max-width: 576px) {
    .circle-hint {
        width: 160px;
        font-size: 0.7rem;
        bottom: -70px;
    }

    .project-circle {
        width: 130px;
        height: 130px;
    }
}

/* NiNe Tab Photo */
.photo-card {
    position: relative;
    overflow: hidden;
    border-radius: 15px;
    border: 1px solid #444;
    background: #0d0d0d;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.5);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.photo-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 255, 255, 0.2);
}

.photo-card img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.photo-card:hover img {
    transform: scale(1.1);
}

.photo-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 15px;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.8), transparent);
    color: #00ffff;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.photo-card:hover .photo-overlay {
    opacity: 1;
}

.photo-title {
    font-family: 'Orbitron', sans-serif;
    font-size: 0.9rem;
    letter-spacing: 1px;
}

/* --- MODULE PANEL --- */
.module-panel {
    padding: 20px;
}

/* --- CERTIFICATES GRID --- */
.cert-container {
    max-width: 1200px;
    margin: 40px auto;
    padding: 20px;
}

.cert-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 30px;
}

/* --- THE INTERACTIVE CARD --- */
.cert-card {
    position: relative;
    height: 300px;
    border-radius: 25px;
    overflow: hidden;
    background: #000;
    border: 1px solid var(--glass-border);
    cursor: pointer;
    transition: transform 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    opacity: 0;
    /* Animated by GSAP */
}

.cert-card:hover {
    transform: scale(1.02);
    border-color: var(--neon-cyan);
    box-shadow: 0 0 40px rgba(0, 242, 255, 0.15);
}

/* The Certificate Image */
.cert-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: 0.8s ease;
    filter: brightness(0.8);
}

.cert-card:hover .cert-img {
    filter: brightness(0.2) blur(12px);
    transform: scale(1.05);
}

/* The Data Overlay */
.cert-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 40px;
    background: rgba(0, 0, 0, 0.3);
    opacity: 0;
    transition: 0.5s ease;
    z-index: 10;
}

.cert-card:hover .cert-overlay {
    opacity: 1;
}

/* Content inside overlay */
.data-id {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.6rem;
    color: var(--neon-cyan);
    letter-spacing: 4px;
    margin-bottom: 15px;
    transform: translateY(15px);
    transition: 0.4s ease-out;
}

.data-title {
    font-family: 'Orbitron', sans-serif;
    font-size: 1.1rem;
    text-align: center;
    letter-spacing: 2px;
    text-transform: uppercase;
    margin-bottom: 8px;
    transform: translateY(15px);
    transition: 0.5s ease-out;
}

.data-issuer {
    font-size: 0.75rem;
    opacity: 0.5;
    transform: translateY(15px);
    transition: 0.6s ease-out;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.cert-card:hover .data-id,
.cert-card:hover .data-title,
.cert-card:hover .data-issuer {
    transform: translateY(0);
}

/* Subtle Static Holographic Grid */
.holo-grid {
    position: relative;
    inset: 0;
    background-image: linear-gradient(rgba(0, 242, 255, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0, 242, 255, 0.03) 1px, transparent 1px);
    background-size: 30px 30px;
    opacity: 0;
    transition: 0.5s;
    pointer-events: none;
}

.cert-card:hover .holo-grid {
    opacity: 1;
}


/* ===== MODULE PANEL CONTAINER ===== */
.module-panel {
    max-width: 1500px;
    padding: 40px;
    overflow: hidden;
}

.module-panel::before {
    content: "SYSTEM_SCAN: ACTIVE";
    position: absolute;
    top: 15px;
    right: 25px;
    font-family: monospace;
    font-size: 10px;
    color: var(--neon-blue);
    letter-spacing: 2px;
    opacity: 0.5;
}

/* ===== GRID STATS ===== */
.grid-stats {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 25px;
}

.stat-item {
    position: relative;
    background: var(--glass);
    padding: 20px;
    border-radius: 12px;
    border-left: 3px solid var(--deep-blue);
    transition: transform 0.3s ease, border-color 0.3s ease;
}

.stat-item:hover {
    transform: translateX(5px);
    border-color: var(--neon-blue);
    background: rgba(255, 255, 255, 0.05);
}

.stat-label {
    display: block;
    font-family: 'Courier New', Courier, monospace;
    font-size: 11px;
    font-weight: bold;
    color: var(--neon-blue);
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 12px;
}

/* ===== STYLISH BARS ===== */
.bar-bg {
    background: rgba(255, 255, 255, 0.05);
    height: 32px;
    border-radius: 6px;
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.bar-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--deep-blue), var(--neon-blue));
    display: flex;
    align-items: center;
    padding-left: 15px;
    font-size: 13px;
    font-weight: 500;
    color: white;
    white-space: nowrap;
    position: relative;
    animation: slideIn 1.5s cubic-bezier(0.1, 0.8, 0.2, 1) forwards;
    box-shadow: 0 0 15px rgba(0, 210, 255, 0.4);
}

.bar-fill span {
    text-shadow: 0 0 10px rgba(0, 0, 0, 0.5);
}

@keyframes slideIn {
    from {
        width: 0%;
    }
}

/* ===== CATEGORY DETAILS (CLASSICAL LIST) ===== */
.category-details {
    margin-top: 40px;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    align-items: center;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 30px;
}

.detail-group h4 {
    color: #fff;
    font-size: 14px;
    letter-spacing: 1px;
    margin-bottom: 15px;
    text-transform: uppercase;
    border-bottom: 1px solid var(--border-glow);
    display: inline-block;
    padding-bottom: 3px;
}

.detail-item {
    font-size: 13px;
    margin-bottom: 8px;
    display: flex;
    justify-content: space-between;
}

.detail-key {
    opacity: 0.5;
    font-weight: 300;
}

.detail-val {
    color: var(--neon-blue);
    font-weight: 500;
}

/* ===== SPECIAL FOOTER ===== */
.system-footer {
    margin-top: 50px;
    padding: 30px;
    background: rgba(0, 210, 255, 0.03);
    border: 1px dashed var(--border-glow);
    border-radius: 12px;
    text-align: center;
}

.mother-word {
    font-family: "Georgia", serif;
    font-size: 1.5rem;
    color: #fff;
    font-style: italic;
    margin-bottom: 5px;
}

.dedication {
    font-size: 12px;
    letter-spacing: 1px;
    opacity: 0.8;
    margin-top: 15px;
}

.secret-module {
    margin-top: 25px;
    padding: 10px;
    background: #000;
    border-radius: 5px;
    display: inline-block;
    cursor: help;
    border: 1px solid var(--neon-blue);
    font-family: monospace;
    font-size: 11px;
    color: var(--neon-blue);
    transition: all 0.3s;
}

.secret-module:hover {
    background: var(--neon-blue);
    color: #000;
    box-shadow: 0 0 20px var(--neon-blue);
}

@media (max-width: 768px) {
    .grid-stats {
        grid-template-columns: 1fr;
    }

    .module-panel {
        padding: 20px;
    }
}

:root {
    --neon-blue: #00d2ff;
    --deep-blue: #0045ff;
    --glass: rgba(255, 255, 255, 0.03);
    --border-glow: rgba(0, 210, 255, 0.3);
    --bg-dark: #050507;
}

/* Hobby Section */
@keyframes scanline {
    0% {
        top: -10%;
    }

    100% {
        top: 110%;
    }
}

.hobby-card {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    padding: 20px;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
}

.hobby-card:hover {
    background: rgba(0, 210, 255, 0.05);
    border-color: rgba(0, 210, 255, 0.4);
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.status-badge {
    font-size: 9px;
    padding: 2px 6px;
    border-radius: 4px;
    background: rgba(0, 210, 255, 0.1);
    color: #00d2ff;
    border: 1px solid rgba(0, 210, 255, 0.3);
    text-transform: uppercase;
    margin-left: auto;
}

.hobby-line {
    font-family: monospace;
    font-size: 0.85rem;
    display: flex;
    align-items: center;
    margin-bottom: 12px;
}

.marker {
    opacity: 0.4;
    margin-right: 10px;
    color: #00d2ff;
}


/* --- FOOTER REFINEMENT --- */
.deck-footer {
    padding: 40px;
    border-top: 1px solid var(--card-border);
    background: rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(10px);
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
}

.footer-links {
    display: flex;
    gap: 30px;
    flex-wrap: wrap;
    justify-content: center;
}

.footer-links a {
    color: var(--bio-emerald);
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.65rem;
    text-decoration: none;
    letter-spacing: 2px;
    text-transform: uppercase;
    opacity: 0.5;
    transition: 0.3s;
    border-bottom: 1px solid transparent;
}

.footer-links a:hover {
    opacity: 1;
    border-bottom-color: var(--bio-emerald);
    text-shadow: 0 0 8px var(--bio-emerald);
}

.telemetry-readout {
    font-family: 'JetBrains Mono', monospace;
    font-size: 10px;
    color: var(--bio-emerald);
    opacity: 0.4;
    letter-spacing: 4px;
    text-align: center;
}

/* --- RESPONSIVE QUERIES --- */
@media (max-width: 480px) {
    .footer-links {
        gap: 15px;
    }
}


/* --- FAVOURITE MODULE ARCHITECTURE --- */
#favourite {
    padding: 15px;
    max-width: 100%;
    background: rgba(0, 0, 0, 0.2);
    border-radius: 20px;
}

/* System Bars Section */
.system-bars-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 15px;
    margin-bottom: 35px;
}

.stat-item {
    margin-bottom: 10px;
}

.stat-label {
    font-family: 'Orbitron', sans-serif;
    font-size: 0.6rem;
    letter-spacing: 2px;
    color: var(--neon-cyan);
    display: block;
    margin-bottom: 6px;
    opacity: 0.8;
}

.bar-bg {
    height: 22px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--glass-border);
    border-radius: 4px;
    overflow: hidden;
    position: relative;
}

.bar-fill {
    height: 100%;
    background: linear-gradient(90deg, rgba(0, 242, 255, 0.1), rgba(0, 242, 255, 0.4));
    box-shadow: inset 0 0 10px rgba(0, 242, 255, 0.2);
    display: flex;
    align-items: center;
    padding-left: 10px;
    transition: width 2s cubic-bezier(0.23, 1, 0.32, 1);
}

.bar-fill span {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.65rem;
    color: #fff;
    white-space: nowrap;
    letter-spacing: 1px;
}

/* Detailed Matrix Section */
.category-details {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.detail-group {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--glass-border);
    border-radius: 12px;
    padding: 18px;
    transition: 0.3s;
}

.detail-group:hover {
    background: rgba(0, 242, 255, 0.04);
    border-color: rgba(0, 242, 255, 0.4);
    transform: translateY(-2px);
}

.detail-group h4 {
    font-family: 'Orbitron', sans-serif;
    font-size: 0.7rem;
    color: var(--neon-cyan);
    letter-spacing: 2px;
    margin-bottom: 15px;
    border-bottom: 1px solid var(--glass-border);
    padding-bottom: 8px;
    text-transform: uppercase;
}

.detail-item {
    display: flex;
    justify-content: space-between;
    margin-bottom: 8px;
    font-size: 0.75rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.02);
    padding-bottom: 4px;
}

.detail-key {
    font-family: 'JetBrains Mono', monospace;
    opacity: 0.5;
    font-size: 0.65rem;
}

.detail-val {
    font-family: 'Inter', sans-serif;
    font-weight: 500;
    text-align: right;
    color: rgba(255, 255, 255, 0.9);
    max-width: 60%;
}

/* System Footer / Legacy */
.system-footer {
    background: rgba(0, 0, 0, 0.4);
    border: 1px solid var(--glass-border);
    border-radius: 15px;
    padding: 30px 20px;
    text-align: center;
    margin-top: 20px;
}

.mother-word {
    font-family: 'Orbitron', sans-serif;
    font-size: 1.3rem;
    letter-spacing: 8px;
    color: #fff;
    margin-bottom: 5px;
    text-transform: uppercase;
}

.dedication {
    margin: 20px 0;
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.65rem;
    line-height: 1.6;
    letter-spacing: 1px;
    color: rgba(255, 255, 255, 0.5);
}

.dedication strong {
    display: block;
    margin-top: 8px;
    color: var(--neon-cyan) !important;
    text-shadow: 0 0 10px var(--neon-cyan);
    font-size: 1.2rem;
    letter-spacing: 4px;
}

.secret-module {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.6rem;
    color: #ff3366;
    letter-spacing: 1px;
    margin-top: 20px;
    padding: 10px;
    border: 1px dashed rgba(255, 51, 102, 0.3);
    display: inline-block;
    border-radius: 6px;
    line-height: 1.4;
}

@media (max-width: 768px) {
    .category-details {
        grid-template-columns: 1fr;
    }

    .system-bars-container {
        grid-template-columns: 1fr;
    }

    .mother-word {
        font-size: 1rem;
        letter-spacing: 4px;
    }
}

/* Research Section */
/* --- RESEARCH ARCHIVE: COMPACT TACTICAL LAB --- */
#research {
    padding: 40px 20px;
    background: transparent;
    max-width: 1200px;
    margin: 0 auto;
}

.research-header {
    margin-bottom: 40px;
    border-left: 4px solid var(--mera-cyan);
    padding-left: 20px;
    position: relative;
}

.research-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
}

/* COMPACT BLUEPRINT STYLE CARD */
.research-card {
    background: rgba(10, 10, 15, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 16px;
    padding: 25px;
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(20px);
    transition: all 0.4s cubic-bezier(0.19, 1, 0.22, 1);
    display: flex;
    flex-direction: column;
    border-bottom: 3px solid transparent;
    height: 100%;
    max-width: 380px;
    /* Small card profile */
}

.research-card:hover {
    border-color: var(--mera-cyan);
    background: rgba(0, 242, 255, 0.04);
    transform: translateY(-5px);
    border-bottom-color: var(--mera-cyan);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.6);
}

/* SCHEMATIC BACKGROUND DECAL */
.schematic-icon {
    position: absolute;
    top: 15px;
    right: 15px;
    width: 60px;
    height: 60px;
    opacity: 0.1;
    color: var(--mera-cyan);
    transition: 0.5s;
    pointer-events: none;
}

.research-card:hover .schematic-icon {
    opacity: 0.3;
    transform: scale(1.1) rotate(5deg);
    filter: drop-shadow(0 0 10px var(--mera-cyan));
}

/* TOP META */
.node-top {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 20px;
}

.status-dot {
    width: 5px;
    height: 5px;
    background: var(--mera-cyan);
    border-radius: 50%;
    box-shadow: 0 0 8px var(--mera-cyan);
}

/* TITLES */
.node-title {
    font-family: 'Orbitron', sans-serif;
    font-size: 1.1rem;
    font-weight: 700;
    color: #fff;
    margin-bottom: 4px;
    letter-spacing: 0.5px;
}

.node-subtitle {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.6rem;
    color: var(--mera-cyan);
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 15px;
    display: block;
    opacity: 0.6;
}

.node-desc {
    font-size: 0.8rem;
    line-height: 1.6;
    color: #9aa0a6;
    margin-bottom: 0;
    flex-grow: 1;
}

/* DIAGNOSTIC SCAN ANIMATION */
.diag-scan {
    position: absolute;
    inset: 0;
    background: linear-gradient(rgba(0, 242, 255, 0.03) 50%, transparent 50%);
    background-size: 100% 4px;
    pointer-events: none;
    opacity: 0;
}

.research-card:hover .diag-scan {
    opacity: 1;
    animation: scanLines 12s infinite linear;
}

@keyframes scanLines {
    from {
        background-position: 0 0;
    }

    to {
        background-position: 0 100%;
    }
}

/* End Research Section */


/* Work Section */
/* --- CASE FILES: MISSION LEDGER REDESIGN (COMPACT) --- */
#work {
    padding: 40px 20px;
    background: transparent;
    max-width: 1100px;
    /* Constrained for better small-card layout */
    margin: 0 auto;
}

.work-header {
    margin-bottom: 35px;
    border-left: 4px solid var(--mera-cyan);
    padding-left: 15px;
    position: relative;
}

.case-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
}

/* TACTICAL MISSION CARD - RESIZED */
.case-item {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 12px;
    padding: 22px;
    /* Reduced padding */
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(10px);
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    display: flex;
    flex-direction: column;
    min-height: 200px;
    /* Reduced height */
    max-width: 380px;
    /* Small card profile constraint */
}

/* HUD Corner Accents */
.case-item::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 8px;
    height: 8px;
    border-top: 1px solid var(--mera-cyan);
    border-left: 1px solid var(--mera-cyan);
    opacity: 0.3;
}

.case-item:hover {
    border-color: rgba(0, 242, 255, 0.4);
    background: rgba(0, 242, 255, 0.03);
    transform: translateY(-5px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.5);
}

.case-item:hover::before {
    opacity: 1;
    width: 16px;
    height: 16px;
    filter: drop-shadow(0 0 5px var(--mera-cyan));
}

/* ID Badge */
.case-id {
    font-family: 'JetBrains Mono', monospace;
    font-size: 8px;
    /* Scaled down */
    color: var(--mera-cyan);
    background: rgba(0, 242, 255, 0.08);
    padding: 2px 8px;
    border-radius: 4px;
    margin-bottom: 15px;
    display: inline-block;
    letter-spacing: 1.5px;
    border: 1px solid rgba(0, 242, 255, 0.2);
}

/* Content Styling */
.case-title {
    font-family: 'Orbitron', sans-serif;
    font-size: 1rem;
    /* Scaled down */
    font-weight: 700;
    color: #fff;
    margin-bottom: 2px;
    letter-spacing: 1px;
}

.case-subtitle {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.6rem;
    /* Scaled down */
    color: #80868b;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    margin-bottom: 12px;
    display: block;
}

.case-desc {
    font-size: 0.8rem;
    /* Scaled down */
    line-height: 1.5;
    color: #9aa0a6;
    margin-bottom: 0;
    flex-grow: 1;
}

/* Decorative Bottom Bar */
.case-accent {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0%;
    height: 2px;
    background: var(--mera-cyan);
    transition: 0.6s cubic-bezier(0.23, 1, 0.32, 1);
    box-shadow: 0 0 10px var(--mera-cyan);
}

.case-item:hover .case-accent {
    width: 100%;
}

/* Subtle Scanline Background */
.case-scan {
    position: absolute;
    inset: 0;
    background: linear-gradient(rgba(0, 242, 255, 0.02) 50%, transparent 50%);
    background-size: 100% 4px;
    pointer-events: none;
    opacity: 0.2;
}

/* End Work Section */

/* --- OPERATIONAL HISTORY SECTION --- */
#archivment {
    max-width: 1200px;
    /* Increased container width to support two cards in a row */
    margin: 0 auto;
}

.ach-header {
    margin-bottom: 30px;
    border-left: 3px solid var(--neon-cyan);
    padding-left: 15px;
}

.ach-header h2 {
    font-size: 1.3rem;
    /* Scaled down header */
    letter-spacing: 8px;
}

.ach-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    /* Two cards in row */
    gap: 20px;
}

/* COMPACT SPLIT CARD LAYOUT */
.tactical-split-card {
    display: flex;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.03) 0%, rgba(0, 0, 0, 0.4) 100%);
    border: 1px solid var(--glass-border);
    border-radius: 16px;
    overflow: hidden;
    backdrop-filter: blur(15px);
    transition: 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    position: relative;
    min-height: 180px;
    /* Reduced height */
}

.tactical-split-card:hover {
    border-color: var(--neon-cyan);
    transform: translateY(-3px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.7);
}

/* LEFT SIDE: COMPACT IMAGE */
.card-visual {
    flex: 0 0 35%;
    /* Adjusted image width ratio for the row layout */
    position: relative;
    overflow: hidden;
    border-right: 1px solid var(--glass-border);
}

.card-visual img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.5;
    filter: saturate(0) sepia(1) hue-rotate(165deg) brightness(1.1);
    transition: 0.6s ease;
}

.tactical-split-card:hover .card-visual img {
    opacity: 0.8;
    filter: saturate(0.5) brightness(1.2);
}

.visual-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, transparent 0%, rgba(0, 242, 255, 0.1) 100%);
    pointer-events: none;
}

/* RIGHT SIDE: CONCISE CONTENT */
.card-content {
    flex: 1;
    padding: 15px 20px;
    /* Condensed padding */
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.meta-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

.badge-tag {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.55rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--neon-cyan);
    background: rgba(0, 242, 255, 0.06);
    padding: 2px 8px;
    border-radius: 3px;
    border: 1px solid rgba(0, 242, 255, 0.15);
}

.id-label {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.55rem;
    color: #666;
}

.log-date {
    font-family: 'Orbitron', sans-serif;
    font-size: 0.55rem;
    color: var(--neon-cyan);
    opacity: 0.4;
    margin-bottom: 4px;
    display: block;
}

.log-title {
    font-family: 'Orbitron', sans-serif;
    font-size: 0.95rem;
    /* Scaled down title for smaller row profile */
    font-weight: 700;
    color: #fff;
    margin: 0 0 4px 0;
    letter-spacing: 0.5px;
}

.log-org {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.6rem;
    color: #888;
    margin-bottom: 10px;
    display: block;
}

.log-desc {
    font-size: 0.75rem;
    /* Smaller description text */
    line-height: 1.4;
    color: #9aa0a6;
    margin-bottom: 0;
    border-left: 2px solid rgba(255, 255, 255, 0.05);
    padding-left: 12px;
}

/* Decorative Detail */
.tactical-split-card::after {
    content: "ID_SCAN";
    position: absolute;
    top: 10px;
    right: 20px;
    font-family: 'JetBrains Mono';
    font-size: 6px;
    opacity: 0.15;
    letter-spacing: 1px;
}

/* Responsive Breakpoints */
@media (max-width: 992px) {
    .ach-grid {
        grid-template-columns: 1fr;
    }

    #archivment {
        max-width: 600px;
    }
}

@media (max-width: 600px) {
    .tactical-split-card {
        flex-direction: column;
    }

    .card-visual {
        height: 140px;
        border-right: none;
        border-bottom: 1px solid var(--glass-border);
    }

    .card-content {
        padding: 20px;
    }
}

/* --- AWARDS SECTION REDESIGN --- */
#awards {
    padding: 60px 40px;
    background: transparent;
    max-width: 1250px;
    margin: 0 auto;
}

.awards-header {
    margin-bottom: 40px;
    border-left: 4px solid var(--mera-cyan);
    padding-left: 20px;
}

/* Grid optimized for smaller, standard card dimensions */
.awards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 25px;
    justify-content: start;
}

.award-node {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 24px;
    padding: 25px;
    position: relative;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    display: flex;
    flex-direction: column;
    backdrop-filter: blur(15px);
    max-width: 380px;
    /* Reduced width for "small card" profile */
}

.award-node:hover {
    background: rgba(255, 255, 255, 0.04);
    border-color: var(--mera-cyan);
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.6);
}

/* Image Styling: Scaled for smaller card height */
.award-img-wrap {
    width: 100%;
    height: 160px;
    /* Reduced from 240px for a more compact look */
    border-radius: 14px;
    margin-bottom: 20px;
    overflow: hidden;
    background: #000;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.award-img-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.5;
    filter: saturate(0) sepia(1) hue-rotate(160deg) brightness(1.1) contrast(1.1);
    transition: 0.6s cubic-bezier(0.23, 1, 0.32, 1);
}

.award-node:hover .award-img-wrap img {
    opacity: 0.8;
    filter: saturate(0.5) brightness(1.2);
    transform: scale(1.08);
}

.award-meta {
    display: flex;
    justify-content: space-between;
    font-family: 'JetBrains Mono', monospace;
    font-size: 10px;
    color: var(--mera-cyan);
    margin-bottom: 10px;
    letter-spacing: 1px;
    opacity: 0.7;
}

.award-title {
    font-family: 'Orbitron', sans-serif;
    font-size: 1.1rem;
    /* Scaled down for smaller card */
    color: #fff;
    margin-bottom: 6px;
    letter-spacing: 0.5px;
}

.award-org {
    font-size: 0.65rem;
    color: #80868b;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 15px;
    display: block;
}

.award-desc {
    font-size: 0.8rem;
    /* Slightly smaller text for better density */
    color: #9aa0a6;
    line-height: 1.6;
    margin-bottom: 5px;
    flex-grow: 1;
}

/* Scanline Animation Effect */
.award-scan {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--mera-cyan), transparent);
    opacity: 0;
    pointer-events: none;
}

.award-node:hover .award-scan {
    animation: scanAnim 2.5s infinite linear;
    opacity: 0.4;
}

@keyframes scanAnim {
    0% {
        top: 0;
    }

    100% {
        top: 100%;
    }
}

/* --- POSITION: CYBER-INDUSTRIAL UPLINK --- */
#position {
    padding: 20px;
    max-width: 1150px;
    margin: 0 auto;
}

/* Layout Split */
.uplink-grid {
    display: grid;
    grid-template-columns: 320px 1fr;
    gap: 40px;
    align-items: flex-start;
}

/* --- LEFT: RADAR VISUAL --- */
.radar-container {
    position: relative;
    width: 280px;
    height: 280px;
    border: 1px solid var(--glass-border);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: radial-gradient(circle, rgba(0, 242, 255, 0.05) 0%, transparent 70%);
    margin-top: 20px;
}

.radar-ring {
    position: absolute;
    border: 1px solid rgba(0, 242, 255, 0.1);
    border-radius: 50%;
    animation: radarPulse 4s infinite linear;
}

.radar-ring:nth-child(1) {
    width: 100%;
    height: 100%;
}

.radar-ring:nth-child(2) {
    width: 70%;
    height: 70%;
}

.radar-ring:nth-child(3) {
    width: 40%;
    height: 40%;
}

.radar-sweep {
    position: absolute;
    width: 50%;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--neon-cyan));
    top: 50%;
    left: 50%;
    transform-origin: left center;
    animation: radarSweep 3.5s infinite linear;
}

@keyframes radarPulse {

    0%,
    100% {
        transform: scale(0.95);
        opacity: 0.2;
    }

    50% {
        transform: scale(1.05);
        opacity: 0.4;
    }
}

@keyframes radarSweep {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}

/* --- RIGHT: INDUSTRIAL DESIGNATION PANEL --- */
.industrial-panel {
    background: rgba(255, 255, 255, 0.01);
    border: 1px solid var(--glass-border);
    padding: 50px 40px;
    position: relative;
    clip-path: polygon(0% 30px, 30px 0%,
            calc(100% - 30px) 0%, 100% 30px,
            100% calc(100% - 30px), calc(100% - 30px) 100%,
            30px 100%, 0% calc(100% - 30px));
    box-shadow: inset 0 0 50px rgba(0, 0, 0, 0.5);
}

.panel-tag {
    font-family: 'Orbitron', sans-serif;
    font-size: 0.65rem;
    background: var(--neon-cyan);
    color: #000;
    padding: 4px 15px;
    position: absolute;
    top: 0;
    left: 60px;
    letter-spacing: 3px;
    font-weight: 900;
    box-shadow: 0 0 20px rgba(0, 242, 255, 0.3);
}

/* Scrollable Data Stream Area */
.registry-stream {
    height: 500px;
    overflow-y: auto;
    padding-right: 20px;
    margin-top: 10px;
}

.registry-stream::-webkit-scrollbar {
    width: 3px;
}

.registry-stream::-webkit-scrollbar-thumb {
    background: var(--neon-cyan);
}

.designation-entry {
    margin-bottom: 25px;
    padding-bottom: 15px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.03);
    transition: 0.3s;
}

.designation-entry:hover {
    transform: translateX(10px);
    border-bottom-color: rgba(0, 242, 255, 0.2);
}

.entry-role {
    font-family: 'Orbitron', sans-serif;
    font-size: 0.95rem;
    color: #fff;
    letter-spacing: 1.5px;
    display: block;
    margin-bottom: 4px;
}

.entry-org {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.7rem;
    color: var(--neon-cyan);
    text-transform: uppercase;
    letter-spacing: 2px;
    opacity: 0.8;
}

.entry-desc {
    font-size: 0.7rem;
    opacity: 0.4;
    font-family: 'Inter', sans-serif;
    margin-top: 5px;
    display: block;
}

/* Warning Decoration */
.industrial-footer {
    margin-top: 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.warning-stripes {
    width: 100px;
    height: 12px;
    background: repeating-linear-gradient(45deg, #222, #222 5px, #000 5px, #000 10px);
}

@media (max-width: 992px) {
    .uplink-grid {
        grid-template-columns: 1fr;
    }

    .radar-container {
        margin: 0 auto 30px auto;
    }

    .registry-stream {
        height: 400px;
    }
}

a {
    text-decoration: none;
}


/* Education */
/* --- HOLOGRAPHIC ACADEMIC LEDGER REDESIGN (COMPACT) --- */
#education {
    padding: 40px 20px;
    background: transparent;
    max-width: 1100px;
    /* Constrained for better small-card layout */
    margin: 0 auto;
}

.edu-ledger-header {
    margin-bottom: 35px;
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    border-bottom: 1px solid rgba(0, 242, 255, 0.2);
    padding-bottom: 15px;
}

.edu-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
}

/* ACADEMIC NODE / CARD - RESIZED */
.edu-node {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.03) 0%, rgba(255, 255, 255, 0.01) 100%);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    padding: 22px;
    /* Reduced padding */
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(10px);
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    display: flex;
    gap: 15px;
    /* Tighter gap */
    max-width: 380px;
    /* Small card constraint */
}

.edu-node:hover {
    border-color: var(--mera-cyan);
    background: rgba(0, 242, 255, 0.02);
    transform: translateY(-5px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.5);
}

/* Icon Column - Scaled Down */
.edu-icon-wrap {
    flex-shrink: 0;
    width: 40px;
    height: 40px;
    background: rgba(0, 242, 255, 0.1);
    border: 1px solid rgba(0, 242, 255, 0.2);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--mera-cyan);
}

/* Content Column */
.edu-info {
    flex-grow: 1;
}

.edu-title {
    font-family: 'Orbitron', sans-serif;
    font-size: 1rem;
    /* Scaled down for compact feel */
    font-weight: 700;
    color: #fff;
    margin-bottom: 2px;
    letter-spacing: 0.5px;
}

.edu-inst {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.7rem;
    color: var(--mera-cyan);
    margin-bottom: 8px;
    display: block;
    opacity: 0.8;
}

.edu-date {
    font-size: 0.6rem;
    color: #80868b;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    margin-bottom: 12px;
    display: block;
}

.edu-desc {
    font-size: 0.8rem;
    line-height: 1.5;
    color: #9aa0a6;
    margin-bottom: 15px;
}

/* Knowledge Progress */
.knowledge-track {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.track-label {
    font-family: 'JetBrains Mono', monospace;
    font-size: 8px;
    color: #666;
    display: flex;
    justify-content: space-between;
}

.track-bar {
    height: 2px;
    /* Thinner for small cards */
    background: rgba(255, 255, 255, 0.05);
    border-radius: 10px;
    position: relative;
    overflow: hidden;
}

.track-fill {
    height: 100%;
    background: var(--mera-cyan);
    box-shadow: 0 0 8px var(--mera-cyan);
    border-radius: 10px;
    width: 0;
    transition: width 1.5s ease-out;
}

/* Academic Decorative Corner */
.edu-node::after {
    content: "";
    position: absolute;
    top: 0;
    right: 0;
    width: 20px;
    height: 20px;
    background: linear-gradient(45deg, transparent 50%, rgba(255, 255, 255, 0.03) 50%);
}


/* Tree Stethoscope */
:root {
    --bio-emerald: #00ff88;
    --data-cyan: #00f2ff;
    --bg-black: #020303;
    --card-glass: rgba(255, 255, 255, 0.03);
    --card-border: rgba(255, 255, 255, 0.1);
    --ui-text: #e0f2f1;
    --ui-dim: #70807a;
}

/* --- ATMOSPHERIC BACKGROUND --- */
.deck-bg {
    position: fixed;
    inset: 0;
    background: radial-gradient(circle at 0% 0%, #0d2b1d 0%, var(--bg-black) 70%);
    z-index: -2;
}

.technical-grid {
    position: fixed;
    inset: 0;
    background-image:
        linear-gradient(rgba(0, 255, 136, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0, 255, 136, 0.03) 1px, transparent 1px);
    background-size: 50px 50px;
    opacity: 0.5;
    z-index: -1;
}

/* --- TACTICAL NAV BAR --- */
.nav-bar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 80px;
    padding: 0 40px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 1000;
    transition: 0.4s cubic-bezier(0.19, 1, 0.22, 1);
}

.nav-bar.scrolled {
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(20px);
    height: 60px;
    border-bottom: 1px solid var(--card-border);
}

/* TACTICAL BUTTON REFINEMENT */
.back-home-btn {
    display: flex;
    align-items: center;
    gap: 12px;
    background: rgba(0, 255, 136, 0.02);
    border: 1px solid rgba(0, 255, 136, 0.15);
    padding: 10px 22px;
    border-radius: 2px;
    /* Sharp tactical look */
    color: var(--bio-emerald);
    text-decoration: none;
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.65rem;
    letter-spacing: 3px;
    text-transform: uppercase;
    transition: 0.4s;
    overflow: hidden;
    box-shadow: inset 0 0 10px rgba(0, 255, 136, 0.05);
}

/* HUD-style Corner Bracket for Button */
.back-home-btn::after {
    content: "";
    position: absolute;
    top: 0;
    right: 0;
    width: 10px;
    height: 10px;
    border-top: 2px solid var(--bio-emerald);
    border-right: 2px solid var(--bio-emerald);
    opacity: 0;
    transition: 0.3s;
}

/* Scanning Light Effect */
.back-home-btn::before {
    content: "";
    position: absolute;
    top: 0;
    left: -100%;
    width: 50%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(0, 255, 136, 0.15), transparent);
    transform: skewX(-25deg);
    transition: 0.5s;
}

.back-home-btn:hover {
    background: rgba(0, 255, 136, 0.1);
    border-color: var(--bio-emerald);
    color: #fff;
    box-shadow: 0 0 25px rgba(0, 255, 136, 0.2), inset 0 0 15px rgba(0, 255, 136, 0.1);
}

.back-home-btn:hover::before {
    left: 150%;
}

.back-home-btn:hover::after {
    opacity: 1;
    top: 2px;
    right: 2px;
}

/* --- MOBILE MENU TOGGLE --- */
.menu-toggle {
    display: none;
    background: rgba(0, 255, 136, 0.03);
    border: 1px solid var(--card-border);
    color: var(--bio-emerald);
    padding: 10px;
    border-radius: 4px;
    cursor: pointer;
    transition: 0.3s;
}

.menu-toggle:hover {
    background: rgba(0, 255, 136, 0.1);
    border-color: var(--bio-emerald);
    box-shadow: 0 0 15px rgba(0, 255, 136, 0.2);
}

/* --- MOBILE OVERLAY --- */
.mobile-menu-overlay {
    position: fixed;
    inset: 0;
    background: rgba(2, 3, 3, 0.98);
    z-index: 2000;
    display: flex;
    flex-direction: column;
    padding: 100px 40px;
    transform: translateX(100%);
    transition: 0.5s cubic-bezier(0.19, 1, 0.22, 1);
}

.mobile-menu-overlay.active {
    transform: translateX(0);
}

.menu-link {
    font-family: 'Orbitron', sans-serif;
    font-size: 1.5rem;
    color: #fff;
    text-decoration: none;
    margin-bottom: 30px;
    letter-spacing: 5px;
    text-transform: uppercase;
    border-left: 0 solid var(--bio-emerald);
    padding-left: 0;
    transition: 0.3s;
}

.menu-link:hover {
    color: var(--bio-emerald);
    padding-left: 20px;
    border-left-width: 4px;
}

/* --- COMMAND DECK LAYOUT --- */
.command-deck {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    min-height: 100vh;
    max-width: 1600px;
    margin: 0 auto;
    gap: 60px;
    padding: 120px 40px 60px 40px;
    align-items: center;
}

.hud-header h1 {
    font-family: 'Orbitron', sans-serif;
    font-size: clamp(2rem, 5vw, 3.5rem);
    letter-spacing: clamp(5px, 2vw, 15px);
    background: linear-gradient(to right, #fff, var(--bio-emerald));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 10px;
}

.hud-header p {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.65rem;
    letter-spacing: 8px;
    color: var(--bio-emerald);
    opacity: 0.6;
}

.heart-scanner {
    position: relative;
    width: min(420px, 80vw);
    height: min(420px, 80vw);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
}

.scanner-crosshair {
    position: absolute;
    inset: -10%;
    border: 1px solid rgba(0, 255, 136, 0.1);
    border-radius: 50%;
    background:
        linear-gradient(var(--bio-emerald), var(--bio-emerald)) 50% 0 / 1px 40px,
        linear-gradient(var(--bio-emerald), var(--bio-emerald)) 50% 100% / 1px 40px,
        linear-gradient(var(--bio-emerald), var(--bio-emerald)) 0 50% / 40px 1px,
        linear-gradient(var(--bio-emerald), var(--bio-emerald)) 100% 50% / 40px 1px;
    background-repeat: no-repeat;
    animation: spinHUD 20s linear infinite;
}

@keyframes spinHUD {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}

.heart-frame {
    position: relative;
    width: 80%;
    height: 80%;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 5;
}

.heart-glow {
    position: absolute;
    width: 130%;
    height: 130%;
    background: radial-gradient(circle, rgba(0, 255, 136, 0.15) 0%, transparent 70%);
    border-radius: 50%;
    filter: blur(40px);
}

.tree-vessel {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: brightness(1.2) contrast(1.1);
    z-index: 2;
}

.data-blade-column {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.data-blade {
    background: var(--card-glass);
    border: 1px solid var(--card-border);
    border-radius: 4px;
    padding: 30px;
    backdrop-filter: blur(10px);
    position: relative;
    transition: 0.4s cubic-bezier(0.2, 1, 0.3, 1);
    overflow: hidden;
}

.data-blade:hover {
    background: rgba(255, 255, 255, 0.06);
    border-color: var(--bio-emerald);
    transform: translateX(10px);
}

.blade-title {
    font-family: 'Orbitron', sans-serif;
    font-size: 1.1rem;
    margin-bottom: 10px;
    color: #fff;
}

.blade-text {
    font-size: 0.85rem;
    line-height: 1.6;
    color: var(--ui-dim);
}

/* --- RESPONSIVE QUERIES --- */
@media (max-width: 992px) {
    .command-deck {
        grid-template-columns: 1fr;
        text-align: center;
        padding-top: 100px;
    }

    .hud-header h1 {
        letter-spacing: 8px;
    }

    .data-blade:hover {
        transform: translateY(-5px);
    }

    .menu-toggle {
        display: block;
    }

    .back-home-btn {
        display: none;
    }

    /* Hide fixed button on mobile in favor of menu */
}

@media (max-width: 480px) {
    .hud-header h1 {
        font-size: 1.8rem;
    }

    .nav-bar {
        padding: 0 20px;
    }

    .command-deck {
        padding: 80px 20px 40px 20px;
        gap: 40px;
    }

    .data-blade {
        padding: 20px;
    }
}

/* Terms & Condition */
/* --- ATMOSPHERIC BACKGROUND --- */
.deck-bg {
    position: fixed;
    inset: 0;
    background: radial-gradient(circle at 100% 100%, #0d2b1d 0%, var(--bg-black) 70%);
    z-index: -2;
}

.technical-grid {
    position: fixed;
    inset: 0;
    background-image:
        linear-gradient(rgba(0, 255, 136, 0.02) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0, 255, 136, 0.02) 1px, transparent 1px);
    background-size: 60px 60px;
    opacity: 0.5;
    z-index: -1;
}

/* --- NAVIGATION --- */
.nav-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 80px;
    padding: 0 40px;
    display: flex;
    align-items: center;
    z-index: 1000;
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--card-border);
}

.back-home-btn {
    display: flex;
    align-items: center;
    gap: 12px;
    background: rgba(0, 255, 136, 0.03);
    border: 1px solid rgba(0, 255, 136, 0.15);
    padding: 10px 22px;
    border-radius: 2px;
    color: var(--bio-emerald);
    text-decoration: none;
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.65rem;
    letter-spacing: 3px;
    text-transform: uppercase;
    transition: 0.4s;
}

.back-home-btn:hover {
    background: rgba(0, 255, 136, 0.1);
    border-color: var(--bio-emerald);
    color: #fff;
    transform: translateX(-5px);
}

/* --- PROTOCOL CONTAINER --- */
.protocol-container {
    max-width: 900px;
    margin: 0 auto;
    padding: 140px 40px 100px 40px;
}

.header-section {
    margin-bottom: 60px;
    border-left: 4px solid var(--bio-emerald);
    padding-left: 30px;
}

.header-section h1 {
    font-family: 'Orbitron', sans-serif;
    font-size: 2.5rem;
    letter-spacing: 10px;
    text-transform: uppercase;
    margin: 0;
}

.header-section p {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.75rem;
    color: var(--bio-emerald);
    opacity: 0.6;
    margin-top: 10px;
}

.protocol-content section {
    margin-bottom: 50px;
    padding: 40px;
    background: var(--card-glass);
    border: 1px solid var(--card-border);
    border-radius: 4px;
    position: relative;
}

.protocol-content h2 {
    font-family: 'Orbitron', sans-serif;
    font-size: 1.2rem;
    color: var(--bio-emerald);
    margin-bottom: 20px;
    letter-spacing: 2px;
    display: flex;
    align-items: center;
    gap: 15px;
}

.protocol-content h2 span {
    font-family: 'JetBrains Mono';
    font-size: 0.6rem;
    opacity: 0.4;
}

.protocol-content p {
    color: var(--ui-dim);
    font-size: 0.95rem;
}

.list-item {
    margin-bottom: 15px;
    display: flex;
    gap: 15px;
    color: var(--ui-dim);
    font-size: 0.9rem;
}

.list-item i {
    color: var(--bio-emerald);
    margin-top: 5px;
}

footer {
    text-align: center;
    padding: 40px;
    border-top: 1px solid var(--card-border);
    margin-top: 60px;
    font-family: 'JetBrains Mono';
    font-size: 0.7rem;
    opacity: 0.4;
    letter-spacing: 4px;
}

@media (max-width: 768px) {
    .header-section h1 {
        font-size: 1.5rem;
        letter-spacing: 5px;
    }

    .protocol-container {
        padding: 120px 20px 60px 20px;
    }

    .protocol-content section {
        padding: 25px;
    }
}

/* Philosopy */
:root {
    --mera-cyan: #00f2ff;
    --mera-blue: #0055ff;
    --bg-black: #050507;
    --card-glass: rgba(255, 255, 255, 0.02);
    --card-border: rgba(0, 242, 255, 0.1);
    --ui-text: #e3e3e3;
    --ui-dim: #9aa0a6;
}

/* --- ATMOSPHERIC BACKGROUND --- */
.deck-bg {
    position: fixed;
    inset: 0;
    background: radial-gradient(circle at 0% 0%, #001a33 0%, var(--bg-black) 75%);
    z-index: -2;
}

.technical-grid {
    position: fixed;
    inset: 0;
    background-image:
        linear-gradient(rgba(0, 242, 255, 0.02) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0, 242, 255, 0.02) 1px, transparent 1px);
    background-size: 50px 50px;
    opacity: 0.4;
    z-index: -1;
}

/* --- NAVIGATION --- */
.nav-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 80px;
    padding: 0 40px;
    display: flex;
    align-items: center;
    z-index: 1000;
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--card-border);
}

.back-home-btn {
    display: flex;
    align-items: center;
    gap: 12px;
    background: rgba(0, 242, 255, 0.03);
    border: 1px solid rgba(0, 242, 255, 0.2);
    padding: 10px 22px;
    border-radius: 4px;
    color: var(--mera-cyan);
    text-decoration: none;
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.65rem;
    letter-spacing: 3px;
    text-transform: uppercase;
    transition: 0.4s;
}

.back-home-btn:hover {
    background: rgba(0, 242, 255, 0.1);
    border-color: var(--mera-cyan);
    color: #fff;
    box-shadow: 0 0 20px rgba(0, 242, 255, 0.2);
}

/* --- BLOG CONTAINER --- */
.blog-container {
    max-width: 1300px;
    margin: 0 auto;
    padding: 140px 40px 100px 40px;
}

.blog-header {
    margin-bottom: 60px;
    text-align: center;
}

.blog-header h1 {
    font-family: 'Orbitron', sans-serif;
    font-size: clamp(2rem, 6vw, 3.5rem);
    letter-spacing: clamp(10px, 3vw, 20px);
    text-transform: uppercase;
    color: #fff;
    margin: 0;
    background: linear-gradient(to bottom, #fff, var(--mera-cyan));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.status-line {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    margin-top: 15px;
    font-family: 'JetBrains Mono', monospace;
    font-size: 10px;
    color: var(--mera-cyan);
    letter-spacing: 4px;
    opacity: 0.6;
    text-transform: uppercase;
}

.pulse-dot {
    width: 8px;
    height: 8px;
    background: var(--mera-cyan);
    border-radius: 50%;
    box-shadow: 0 0 10px var(--mera-cyan);
    animation: pulse 2s infinite;
}

@keyframes pulse {

    0%,
    100% {
        opacity: 1;
        transform: scale(1);
    }

    50% {
        opacity: 0.3;
        transform: scale(1.2);
    }
}

/* --- TACTICAL CARD GRID --- */
.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(380px, 1fr));
    gap: 30px;
}

.blog-card {
    background: var(--card-glass);
    border: 1px solid var(--card-border);
    border-radius: 24px;
    overflow: hidden;
    backdrop-filter: blur(20px);
    transition: all 0.5s cubic-bezier(0.19, 1, 0.22, 1);
    display: flex;
    flex-direction: column;
    position: relative;
}

.blog-card:hover {
    transform: translateY(-10px);
    border-color: var(--mera-cyan);
    background: rgba(0, 242, 255, 0.03);
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.6);
}

.card-image-box {
    position: relative;
    height: 220px;
    width: 100%;
    overflow: hidden;
    background: #000;
}

.card-image-box img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.6;
    filter: saturate(0.5) contrast(1.1);
    transition: 0.6s ease;
}

.blog-card:hover .card-image-box img {
    opacity: 0.9;
    transform: scale(1.05);
    filter: saturate(1) contrast(1);
}

.card-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, var(--bg-black) 0%, transparent 50%);
}

.card-body {
    padding: 30px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.card-meta {
    font-family: 'JetBrains Mono', monospace;
    font-size: 9px;
    color: var(--mera-cyan);
    letter-spacing: 2px;
    margin-bottom: 15px;
    opacity: 0.7;
    display: flex;
    justify-content: space-between;
}

.card-title {
    font-family: 'Orbitron', sans-serif;
    font-size: 1.3rem;
    color: #fff;
    margin-bottom: 12px;
    line-height: 1.4;
    font-weight: 700;
}

.card-desc {
    font-size: 0.9rem;
    color: var(--ui-dim);

    flex-grow: 1;
}

.card-action {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: var(--mera-cyan);
    text-decoration: none;
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.7rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    padding: 10px 20px;
    border: 1px solid rgba(0, 242, 255, 0.2);
    border-radius: 4px;
    width: fit-content;
    transition: 0.3s;
}

.card-action:hover {
    background: var(--mera-cyan);
    color: #000;
    box-shadow: 0 0 20px rgba(0, 242, 255, 0.4);
}

/* --- FOOTER --- */
footer.blog-footer {
    text-align: center;
    padding: 60px 40px;
    border-top: 1px solid var(--card-border);
    margin-top: 100px;
    background: rgba(0, 0, 0, 0.3);
}

.footer-telemetry {
    font-family: 'JetBrains Mono';
    font-size: 10px;
    color: var(--mera-cyan);
    opacity: 0.4;
    letter-spacing: 5px;
}

@media (max-width: 768px) {
    .blog-container {
        padding: 120px 20px 60px 20px;
    }

    .blog-grid {
        grid-template-columns: 1fr;
    }

    .blog-header h1 {
        letter-spacing: 8px;
    }
}

/* Philosopy */


/* Last Button Section  */
/* --- CSS FOR REFINED ARCHIVE SECTION --- */
.archive-access-layer {
    padding: 40px 20px;
    position: relative;
    z-index: 10;
}

.archive-inner {
    max-width: 1000px;
    margin: 0 auto;
    text-align: center;
}

.archive-header-mini {
    margin-bottom: 30px;
}

.tech-label {
    font-family: 'JetBrains Mono', monospace;
    font-size: 9px;
    color: var(--mera-cyan);
    letter-spacing: 4px;
    opacity: 0.4;
    display: block;
    margin-bottom: 8px;
}

.archive-title {
    font-family: 'Orbitron', sans-serif;
    font-size: 1.2rem;
    color: #fff;
    text-transform: uppercase;
    letter-spacing: 6px;
    opacity: 0.9;
}

.archive-btn-row {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
}

/* COMPACT TACTICAL BUTTON */
.archive-node-btn {
    position: relative;
    flex: 0 1 240px;
    /* Smaller base width */
    background: rgba(0, 242, 255, 0.01);
    border: 1px solid rgba(255, 255, 255, 0.05);
    padding: 16px 24px;
    text-decoration: none;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.4s cubic-bezier(0.19, 1, 0.22, 1);
    overflow: hidden;
    backdrop-filter: blur(12px);
    border-radius: 4px;
}

.node-content {
    display: flex;
    align-items: center;
    gap: 15px;
    z-index: 2;
}

.icon-orb {
    width: 36px;
    height: 36px;
    background: rgba(0, 242, 255, 0.05);
    border: 1px solid rgba(0, 242, 255, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: 0.4s;
}

.node-icon {
    width: 18px;
    height: 18px;
    color: var(--mera-cyan);
}

.node-text {
    text-align: left;
    display: flex;
    flex-direction: column;
}

.node-label {
    font-family: 'JetBrains Mono', monospace;
    font-size: 8px;
    color: var(--mera-cyan);
    opacity: 0.5;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.node-main {
    font-family: 'Orbitron', sans-serif;
    font-size: 0.9rem;
    color: #fff;
    letter-spacing: 2px;
    text-transform: uppercase;
    margin-top: 2px;
}

/* SHARP HUD CORNERS */
.hud-corner {
    position: absolute;
    width: 6px;
    height: 6px;
    border: 1px solid var(--mera-cyan);
    opacity: 0.2;
    transition: 0.3s;
}

.tl {
    top: 6px;
    left: 6px;
    border-right: 0;
    border-bottom: 0;
}

.tr {
    top: 6px;
    right: 6px;
    border-left: 0;
    border-bottom: 0;
}

.bl {
    bottom: 6px;
    left: 6px;
    border-right: 0;
    border-top: 0;
}

.br {
    bottom: 6px;
    right: 6px;
    border-left: 0;
    border-top: 0;
}

/* HOVER INTERACTIONS */
.archive-node-btn:hover {
    background: rgba(0, 242, 255, 0.05);
    border-color: rgba(0, 242, 255, 0.3);
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.4), inset 0 0 15px rgba(0, 242, 255, 0.05);
}

.archive-node-btn:hover .icon-orb {
    background: rgba(0, 242, 255, 0.15);
    border-color: var(--mera-cyan);
    box-shadow: 0 0 15px rgba(0, 242, 255, 0.2);
}

.archive-node-btn:hover .hud-corner {
    opacity: 0.8;
    width: 10px;
    height: 10px;
}

/* GLITCH SCAN LINE */
.node-glitch-overlay {
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(0, 242, 255, 0.05), transparent);
    transition: 0.6s;
}

.archive-node-btn:hover .node-glitch-overlay {
    left: 100%;
}

@media (max-width: 600px) {
    .archive-btn-row {
        gap: 15px;
    }

    .archive-node-btn {
        flex: 1 1 100%;
        max-width: 100%;
    }

    .archive-title {
        font-size: 1rem;
        letter-spacing: 4px;
    }
}

/* End Button Setion */


/* Book */
:root {
    --mera-cyan: #00f2ff;
    --mera-blue: #0055ff;
    --bg-black: #020303;
    --card-glass: rgba(255, 255, 255, 0.03);
    --card-border: rgba(0, 242, 255, 0.1);
    --ui-text: #e0f2f1;
    --ui-dim: #70807a;
}

/* --- ATMOSPHERIC BACKGROUND --- */
.deck-bg {
    position: fixed;
    inset: 0;
    background: radial-gradient(circle at 100% 100%, #001a33 0%, var(--bg-black) 80%);
    z-index: -2;
}

.technical-grid {
    position: fixed;
    inset: 0;
    background-image:
        linear-gradient(rgba(0, 242, 255, 0.02) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0, 242, 255, 0.02) 1px, transparent 1px);
    background-size: 50px 50px;
    opacity: 0.5;
    z-index: -1;
}

/* --- NAVIGATION --- */
.nav-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 80px;
    padding: 0 40px;
    display: flex;
    align-items: center;
    z-index: 1000;
    backdrop-filter: blur(15px);
    border-bottom: 1px solid var(--card-border);
}

.back-home-btn {
    display: flex;
    align-items: center;
    gap: 12px;
    background: rgba(0, 242, 255, 0.03);
    border: 1px solid rgba(0, 242, 255, 0.15);
    padding: 10px 22px;
    border-radius: 2px;
    color: var(--mera-cyan);
    text-decoration: none;
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.65rem;
    letter-spacing: 3px;
    text-transform: uppercase;
    transition: 0.4s;
}

.back-home-btn:hover {
    background: rgba(0, 242, 255, 0.1);
    border-color: var(--mera-cyan);
    color: #fff;
    transform: translateX(-5px);
    box-shadow: 0 0 20px rgba(0, 242, 255, 0.2);
}

/* --- LIBRARY CONTAINER --- */
.library-container {
    max-width: 1300px;
    margin: 0 auto;
    padding: 140px 40px 100px 40px;
}

.library-header {
    margin-bottom: 50px;
    text-align: center;
}

.library-header h1 {
    font-family: 'Orbitron', sans-serif;
    font-size: clamp(1.8rem, 5vw, 2.2rem);
    letter-spacing: 12px;
    text-transform: uppercase;
    color: #fff;
    background: linear-gradient(to bottom, #fff, var(--mera-cyan));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin: 0;
}

.library-header p {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.6rem;
    color: var(--mera-cyan);
    opacity: 0.6;
    margin-top: 10px;
    letter-spacing: 4px;
    text-transform: uppercase;
}

/* --- MINIMAL 3-COLUMN GRID --- */
.node-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.book-node {
    background: var(--card-glass);
    border: 1px solid var(--card-border);
    padding: 25px;
    border-radius: 8px;
    position: relative;
    overflow: hidden;
    transition: 0.4s cubic-bezier(0.19, 1, 0.22, 1);
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    min-height: 200px;
}

.book-node:hover {
    border-color: var(--mera-cyan);
    background: rgba(0, 242, 255, 0.04);
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
}

/* PDF ICON BOX */
.pdf-icon-box {
    margin-bottom: 15px;
    color: var(--mera-cyan);
    opacity: 0.8;
    transition: 0.3s;
}

.book-node:hover .pdf-icon-box {
    transform: scale(1.1);
    opacity: 1;
    filter: drop-shadow(0 0 8px var(--mera-cyan));
}

.node-title {
    font-family: 'Orbitron', sans-serif;
    font-size: 0.9rem;
    color: #fff;
    margin-bottom: 20px;
    line-height: 1.4;
    letter-spacing: 0.5px;
    flex-grow: 1;
    display: flex;
    align-items: center;
}

/* TACTICAL HUD ACCENTS */
.hud-accent {
    position: absolute;
    width: 8px;
    height: 8px;
    border: 1px solid var(--mera-cyan);
    opacity: 0.2;
    transition: 0.3s;
}

.tl {
    top: 8px;
    left: 8px;
    border-right: 0;
    border-bottom: 0;
}

.br {
    bottom: 8px;
    right: 8px;
    border-left: 0;
    border-top: 0;
}

.book-node:hover .hud-accent {
    opacity: 1;
    width: 12px;
    height: 12px;
}

/* DOWNLOAD TRIGGER */
.download-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background: rgba(0, 242, 255, 0.05);
    border: 1px solid rgba(0, 242, 255, 0.2);
    padding: 10px 20px;
    color: var(--mera-cyan);
    text-decoration: none;
    font-family: 'Orbitron', sans-serif;
    font-size: 0.6rem;
    letter-spacing: 1px;
    text-transform: uppercase;
    transition: 0.4s;
    border-radius: 4px;
    width: 100%;
}

.download-btn:hover {
    background: var(--mera-cyan);
    color: #000;
    border-color: var(--mera-cyan);
    box-shadow: 0 0 15px rgba(0, 242, 255, 0.3);
}

footer.library-footer {
    text-align: center;
    padding: 40px 20px;
    border-top: 1px solid var(--card-border);
    margin-top: 60px;
    font-family: 'JetBrains Mono';
    font-size: 0.55rem;
    opacity: 0.4;
    letter-spacing: 4px;
    color: var(--ui-text);
}

@media (max-width: 1100px) {
    .node-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 700px) {
    .library-header h1 {
        font-size: 1.4rem;
        letter-spacing: 6px;
    }

    .library-container {
        padding: 120px 20px 60px 20px;
    }

    .node-grid {
        grid-template-columns: 1fr;
    }
}

/* Book */