:root {
    --bg-color: #09090b;
    --text-primary: #f8fafc;
    --text-secondary: #94a3b8;
    --accent-1: #00d2ff;
    --accent-2: #9d00ff;
    --accent-3: #0055ff;
    --glass-bg: rgba(255, 255, 255, 0.02);
    --glass-border: rgba(255, 255, 255, 0.04);
}

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

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--bg-color);
    color: var(--text-primary);
    overflow-x: hidden;
    line-height: 1.6;
}

/* Ambient Background Blobs */
.ambient-background {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: -1;
    overflow: hidden;
}

/* Glassmorphism Navigation */
.glass-nav {
    position: fixed;
    top: 0;
    width: 100%;
    padding: 1.5rem 5%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: rgba(5, 5, 5, 0.5);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--glass-border);
    z-index: 1000;
}

.nav-brand {
    font-weight: 800;
    font-size: 1.5rem;
    letter-spacing: 2px;
    background: linear-gradient(90deg, var(--accent-1), var(--accent-2));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.nav-links {
    list-style: none;
    display: flex;
    gap: 2rem;
}

.nav-links a {
    color: var(--text-primary);
    text-decoration: none;
    font-weight: 400;
    font-size: 1rem;
    transition: color 0.3s ease;
}

.nav-links a:hover {
    color: var(--accent-1);
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    padding: 0 10%;
    position: relative;
    overflow: hidden;
}

#particle-canvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.hero-content {
    flex: 1;
    z-index: 10;
    max-width: 800px;
}


.terminal-badge {
    display: inline-block;
    font-family: 'JetBrains Mono', monospace;
    color: var(--accent-1);
    font-size: 0.9rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    padding: 0.5rem 1rem;
    background: rgba(0, 210, 255, 0.1);
    border: 1px solid rgba(0, 210, 255, 0.3);
    border-radius: 4px;
    letter-spacing: 1px;
}

.glitch {
    font-family: 'JetBrains Mono', monospace;
    font-size: 5rem;
    font-weight: 800;
    text-transform: uppercase;
    position: relative;
    background: linear-gradient(90deg, #ffffff, #00d2ff, #9d00ff, #0055ff);
    background-size: 300% 300%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: gradientShift 6s ease infinite;
    margin-bottom: 1rem;
    line-height: 1.1;
}

@keyframes gradientShift {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

.subtitle {
    font-size: 1.5rem;
    color: var(--text-secondary);
    margin-bottom: 2.5rem;
    max-width: 600px;
}

.cta-button {
    display: inline-block;
    padding: 1rem 2.5rem;
    font-size: 1.1rem;
    font-weight: 600;
    color: #fff;
    background: linear-gradient(90deg, #ffffff, #00d2ff, #9d00ff, #0055ff);
    background-size: 300% 300%;
    animation: gradientShift 6s ease infinite;
    border: none;
    border-radius: 50px;
    text-decoration: none;
    box-shadow: 0 0 20px rgba(0, 242, 254, 0.4);
    transition: all 0.3s ease;
    cursor: pointer;
}

.cta-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 0 30px rgba(0, 242, 254, 0.6);
}

/* Interactive Cube Restored and Upgraded */
.cube-container {
    width: 300px;
    height: 300px;
    perspective: 1200px;
    position: absolute;
    z-index: -1;
    opacity: 0.6;
}

.cube-1 { --scale: 1; top: 10%; left: 10%; animation: floatCube 30s infinite ease-in-out; }
.cube-2 { --scale: 0.8; bottom: 5%; right: 10%; animation: floatCube 25s infinite ease-in-out reverse; }
.cube-3 { --scale: 1.5; top: 40%; right: 40%; opacity: 0.3; animation: floatCube 40s infinite linear; }
.cube-4 { --scale: 0.6; bottom: 20%; left: 15%; animation: floatCube 20s infinite ease-in-out; }

@media (max-width: 1024px) {
    .cube-container {
        display: none; /* Hide on smaller screens to prevent layout break */
    }
}

.cube {
    width: 100%;
    height: 100%;
    position: relative;
    transform-style: preserve-3d;
    animation: rotateCube 20s infinite linear;
}

.face {
    position: absolute;
    width: 100%;
    height: 100%;
    border: 2px solid;
    box-shadow: 0 0 40px rgba(0, 0, 0, 0.6) inset;
    transition: transform 1.5s cubic-bezier(0.175, 0.885, 0.32, 1.275), opacity 1.5s ease;
}

/* 4 Branding colors distributed across the 6 faces */
.front  { transform: rotateY(0deg) translateZ(150px); border-color: #00d2ff; background: rgba(0, 210, 255, 0.1); }
.back   { transform: rotateY(180deg) translateZ(150px); border-color: #9d00ff; background: rgba(157, 0, 255, 0.1); }
.right  { transform: rotateY(90deg) translateZ(150px); border-color: #0055ff; background: rgba(0, 85, 255, 0.1); }
.left   { transform: rotateY(-90deg) translateZ(150px); border-color: #ffffff; background: rgba(255, 255, 255, 0.1); }
.top    { transform: rotateX(90deg) translateZ(150px); border-color: #00d2ff; background: rgba(0, 210, 255, 0.1); }
.bottom { transform: rotateX(-90deg) translateZ(150px); border-color: #9d00ff; background: rgba(157, 0, 255, 0.1); }

/* Exploded State */
.cube.exploded .front  { transform: rotateY(0deg) translateZ(800px) rotateX(180deg) scale(0); opacity: 0; }
.cube.exploded .back   { transform: rotateY(180deg) translateZ(800px) rotateX(-180deg) scale(0); opacity: 0; }
.cube.exploded .right  { transform: rotateY(90deg) translateZ(800px) rotateZ(180deg) scale(0); opacity: 0; }
.cube.exploded .left   { transform: rotateY(-90deg) translateZ(800px) rotateZ(-180deg) scale(0); opacity: 0; }
.cube.exploded .top    { transform: rotateX(90deg) translateZ(800px) rotateY(180deg) scale(0); opacity: 0; }
.cube.exploded .bottom { transform: rotateX(-90deg) translateZ(800px) rotateY(-180deg) scale(0); opacity: 0; }

@keyframes rotateCube {
    0% { transform: rotateX(0deg) rotateY(0deg) rotateZ(0deg); }
    100% { transform: rotateX(360deg) rotateY(360deg) rotateZ(180deg); }
}

@keyframes floatCube {
    0%, 100% { transform: translateY(15px) rotate(0deg) scale(var(--scale, 1)); }
    50% { transform: translateY(-15px) rotate(10deg) scale(var(--scale, 1)); }
}
/* Projects Section */
.projects-section {
    padding: 5rem 10%;
    min-height: 100vh;
    position: relative;
    z-index: 10;
}

.section-title {
    font-size: 3rem;
    font-weight: 800;
    margin-bottom: 3rem;
    background: linear-gradient(90deg, #fff, var(--text-secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.projects-grid {
    display: grid;
    grid-template-rows: repeat(3, 1fr);
    grid-auto-columns: minmax(280px, 1fr);
    grid-auto-flow: column;
    gap: 20px;
    padding: 15px 15px 30px 15px; /* Extra bottom padding for scrollbar */
    overflow-x: auto;
    overflow-y: hidden;
    scroll-snap-type: x mandatory;
    scroll-padding: 20px;
}

/* Custom Scrollbar for the horizontal grid */
.projects-grid::-webkit-scrollbar {
    height: 8px;
}
.projects-grid::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 4px;
}
.projects-grid::-webkit-scrollbar-thumb {
    background: rgba(0, 243, 255, 0.3);
    border-radius: 4px;
}
.projects-grid::-webkit-scrollbar-thumb:hover {
    background: rgba(0, 243, 255, 0.6);
}

.project-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    padding: 15px;
    transition: transform 0.4s ease, box-shadow 0.4s ease, border-color 0.4s ease;
    position: relative;
    overflow: hidden;
    scroll-snap-align: start;
}

.glass-card {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    padding: 2.5rem;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    position: relative;
    overflow: hidden;
    transition: transform 0.3s ease, border-color 0.3s ease;
}

.glass-card:hover {
    transform: translateY(-10px);
    border-color: var(--accent-1);
}

.card-glow {
    position: absolute;
    width: 150px;
    height: 150px;
    background: var(--accent-1);
    border-radius: 50%;
    filter: blur(50px);
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
    top: 0;
    left: 0;
}

.glass-card:hover .card-glow {
    opacity: 0.2;
}

.project-card h3 {
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
    color: #fff;
    position: relative;
    z-index: 2;
}

.project-card p {
    font-size: 0.9rem;
    color: var(--text-secondary);
    position: relative;
    z-index: 2;
}

/* Card Images */
.card-image {
    width: 100%;
    height: 120px;
    object-fit: cover;
    border-radius: 12px;
    margin-bottom: 1rem;
    position: relative;
    z-index: 2;
    border: 1px solid var(--glass-border);
    transition: transform 0.3s ease;
}

.glass-card:hover .card-image {
    transform: scale(1.02);
}

/* About Section */
.about-section {
    padding: 5rem 10%;
    position: relative;
    z-index: 10;
}

.about-content {
    max-width: 800px;
    margin: 0 auto;
}

.about-content p {
    color: var(--text-secondary);
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
}

.about-content p:last-child {
    margin-bottom: 0;
}

/* Contact Section */
.contact-section {
    padding: 5rem 10%;
    position: relative;
    z-index: 10;
    margin-bottom: 3rem;
}

.text-center {
    text-align: center;
}

.contact-form {
    max-width: 600px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    position: relative;
    z-index: 2;
}

.form-group label {
    font-weight: 600;
    color: var(--accent-1);
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.form-group input,
.form-group textarea {
    background: rgba(0, 0, 0, 0.5);
    border: 1px solid var(--glass-border);
    border-radius: 8px;
    padding: 1rem;
    color: var(--text-primary);
    font-family: inherit;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--accent-2);
    box-shadow: 0 0 10px rgba(79, 172, 254, 0.2);
}

.submit-btn {
    margin-top: 1rem;
    width: 100%;
    position: relative;
    z-index: 2;
}

/* Footer */
footer {
    text-align: center;
    padding: 2rem;
    border-top: 1px solid var(--glass-border);
    color: var(--text-secondary);
    background: rgba(5, 5, 5, 0.8);
    backdrop-filter: blur(10px);
    position: relative;
    z-index: 10;
}

/* Scroll Reveal */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s cubic-bezier(0.5, 0, 0, 1);
}
.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Typing Effect Utility */
.typing-done {
    border-right: none !important;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: var(--bg-color);
}
::-webkit-scrollbar-thumb {
    background: var(--accent-1);
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: var(--accent-2);
}

/* Custom Cursor */
* {
    cursor: none !important; /* Hide default cursor globally */
}
#custom-cursor {
    width: 8px;
    height: 8px;
    background: var(--accent-1);
    border-radius: 50%;
    position: fixed;
    pointer-events: none;
    z-index: 30000;
    transform: translate(-50%, -50%);
    box-shadow: 0 0 10px var(--accent-1);
}
#custom-cursor-follower {
    width: 40px;
    height: 40px;
    border: 1px solid var(--accent-1);
    border-radius: 50%;
    position: fixed;
    pointer-events: none;
    z-index: 29999;
    transform: translate(-50%, -50%);
    transition: transform 0.1s ease-out, border-color 0.3s ease;
}

/* CRT Scanline Overlay */
.crt-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: linear-gradient(
        rgba(18, 16, 16, 0) 50%,
        rgba(0, 0, 0, 0.25) 50%
    );
    background-size: 100% 4px;
    pointer-events: none;
    z-index: 9000;
    opacity: 0.3;
}

/* Arsenal Section */
.arsenal-section {
    padding: 5rem 10%;
    position: relative;
}
.arsenal-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}
.tech-badge {
    text-align: center;
    padding: 2rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    min-height: 150px;
    border-color: rgba(0, 210, 255, 0.2);
}
.telemetry-hud:hover {
    border-color: rgba(0, 210, 255, 0.2);
}
.tech-badge h4 {
    background: linear-gradient(90deg, #ffffff, #00d2ff, #9d00ff, #0055ff);
    background-size: 300% 300%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: gradientShift 6s ease infinite;
    font-family: 'JetBrains Mono', monospace;
    margin-bottom: 0.5rem;
    font-size: 1.1rem;
}
.tech-badge p {
    font-size: 0.9rem;
    color: var(--text-secondary);
}

/* FRIDAY Terminal Section */
.friday-section {
    padding: 5rem 10%;
    position: relative;
}
.friday-terminal {
    max-width: 800px;
    margin: 3rem auto 0;
    border: 1px solid var(--accent-1);
    background: rgba(0, 0, 0, 0.7);
    border-radius: 8px;
    overflow: hidden;
    font-family: 'JetBrains Mono', monospace;
    display: flex;
    flex-direction: column;
}
.terminal-header {
    background: rgba(0, 210, 255, 0.1);
    padding: 0.5rem 1rem;
    font-size: 0.8rem;
    background-image: linear-gradient(90deg, #ffffff, #00d2ff, #9d00ff, #0055ff);
    background-size: 300% 300%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: gradientShift 6s ease infinite;
    border-bottom: 1px solid rgba(0, 210, 255, 0.2);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}
.status-dot {
    width: 8px;
    height: 8px;
    background-color: var(--accent-1);
    border-radius: 50%;
    display: inline-block;
    box-shadow: 0 0 8px var(--accent-1);
    animation: pulse 1.5s infinite;
}
@keyframes pulse {
    0% { opacity: 1; }
    50% { opacity: 0.4; }
    100% { opacity: 1; }
}
.terminal-output {
    padding: 1.5rem;
    min-height: 200px;
    max-height: 300px;
    overflow-y: auto;
    font-size: 0.9rem;
    color: var(--text-primary);
    display: flex;
    flex-direction: column;
    gap: 1rem;
}
.terminal-output p {
    margin: 0;
    line-height: 1.4;
}
.prompt-friday {
    color: var(--accent-1);
    font-weight: 800;
}
.prompt-user {
    color: var(--accent-2);
    font-weight: 800;
}
.terminal-input-row {
    display: flex;
    align-items: center;
    padding: 1rem;
    background: rgba(0, 0, 0, 0.8);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    gap: 1rem;
}
#friday-input {
    flex: 1;
    background: transparent;
    border: none;
    color: var(--text-primary);
    font-family: inherit;
    font-size: 0.9rem;
    outline: none;
}
#friday-input::placeholder {
    color: rgba(255, 255, 255, 0.3);
}
.query-btn {
    padding: 0.5rem 1rem;
    font-size: 0.8rem;
}

/* Boot Sequence */
.boot-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: #000;
    z-index: 10000;
    display: flex;
    padding: 2rem;
    font-family: 'JetBrains Mono', monospace;
    background: linear-gradient(90deg, #ffffff, #00d2ff, #9d00ff, #0055ff);
    background-size: 300% 300%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: gradientShift 6s ease infinite;
    font-size: 1rem;
    transition: opacity 0.5s ease;
}
.boot-overlay.hidden {
    opacity: 0;
    pointer-events: none;
}

/* Telemetry HUD */
.telemetry-hud {
    position: fixed;
    top: 2rem;
    right: 2rem;
    background: rgba(0, 0, 0, 0.6);
    box-shadow: 0 20px 50px rgba(0,0,0,0.5);
    border: 1px solid rgba(0, 210, 255, 0.2);
    padding: 1rem;
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.75rem;
    color: var(--text-secondary);
    z-index: 999;
    border-radius: 4px;
    pointer-events: none;
    backdrop-filter: blur(5px);
}
.hud-line {
    margin-bottom: 0.25rem;
}
.status-secure {
    color: var(--accent-1);
    animation: pulse 2s infinite;
}

/* Project Modal */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(15px);
    z-index: 20000;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 1;
    transition: opacity 0.4s ease;
}
.modal-overlay.hidden {
    opacity: 0;
    pointer-events: none;
}
.modal-content {
    position: relative;
    width: 90%;
    max-width: 1000px;
    max-height: 90vh;
    overflow-y: auto;
    background: rgba(9, 9, 11, 0.95);
    border: 1px solid var(--accent-2);
    box-shadow: 0 0 40px rgba(138, 43, 226, 0.2);
    padding: 3rem;
    border-radius: 12px;
    transform: scale(1);
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}
.modal-overlay.hidden .modal-content {
    transform: scale(0.9);
}
.close-btn {
    position: absolute;
    top: 1.5rem;
    right: 2rem;
    background: transparent;
    border: none;
    color: var(--text-secondary);
    font-size: 2.5rem;
    cursor: pointer;
    transition: color 0.3s ease;
    z-index: 2;
}
.close-btn:hover {
    color: var(--accent-3);
}
.modal-body {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: start;
}
.modal-image {
    width: 100%;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}
.modal-title {
    font-size: 2.5rem;
    color: var(--text-primary);
    margin-bottom: 1rem;
    line-height: 1.2;
}
.modal-stack {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
    margin-bottom: 2rem;
}
.modal-stack span {
    background: rgba(0, 210, 255, 0.1);
    background-image: linear-gradient(90deg, #ffffff, #00d2ff, #9d00ff, #0055ff);
    background-size: 300% 300%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: gradientShift 6s ease infinite;
    padding: 0.3rem 0.8rem;
    border-radius: 50px;
    font-size: 0.8rem;
    font-family: 'JetBrains Mono', monospace;
    border: 1px solid rgba(0, 210, 255, 0.3);
}
.modal-desc {
    color: var(--text-secondary);
    margin-bottom: 2rem;
    font-size: 1.1rem;
    line-height: 1.6;
}
.modal-features {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}
.modal-features li {
    display: flex;
    align-items: center;
    color: var(--text-primary);
    font-size: 1rem;
}
.modal-features li::before {
    content: '>';
    color: var(--accent-1);
    font-weight: 800;
    margin-right: 15px;
    font-family: 'JetBrains Mono', monospace;
}
.project-card {
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.project-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 30px rgba(0, 210, 255, 0.15);
}

@media (max-width: 900px) {
    .modal-body {
        grid-template-columns: 1fr;
    }
    .hero {
        flex-direction: column;
        justify-content: center;
        text-align: center;
        gap: 4rem;
        padding-top: 6rem;
    }
    .glitch { font-size: 3.5rem; }
}

@media (max-width: 768px) {
    /* Navigation Mobile Fix */
    .nav-links {
        flex-wrap: wrap;
        justify-content: center;
        gap: 15px;
        margin-top: 10px;
    }
    .glass-nav {
        flex-direction: column;
        padding: 1rem;
    }
    
    /* Hero Adjustments */
    .glitch { font-size: 2.5rem; }
    .hero p { font-size: 1rem; }
    
    /* Projects Grid Mobile Override: 1-Column Vertical Feed */
    .projects-grid {
        grid-template-rows: auto;
        grid-template-columns: 1fr;
        grid-auto-flow: row;
        overflow-x: hidden;
        overflow-y: visible;
        padding: 10px;
    }
    
    .project-card {
        padding: 20px;
    }

    .card-image {
        height: 200px; /* Taller images on mobile for visual impact */
    }

    /* Modal Form Fixes */
    .contact-form, .modal-content {
        padding: 1.5rem;
    }
}

/* Utility class for hiding elements */
.hidden {
    display: none !important;
}

/* ── Portal routing confirmation ──────────────────────────────────────────
   Shown between "code accepted" and the redirect. Restrained on purpose: the
   site already has plenty of motion, and this moment needs to read as
   trustworthy rather than flashy. A client is about to be sent to another
   domain and asked to sign in — calm and explicit beats another animation. */
.portal-status {
    margin-top: 18px;
    text-align: center;
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.92rem;
    line-height: 1.7;
    color: var(--text-secondary);
    animation: portalFade 0.35s ease-out;
}
/* Success reads as SUCCESS. The denied state is red; approval should not be
   the same colour family as a rejection, or the client cannot tell at a glance
   which one they got. Brand accent + a soft glow, not a warning. */
.portal-status .portal-ok {
    display: inline-block;
    color: var(--accent-1);
    letter-spacing: 0.22em;
    font-weight: 800;
    font-size: 1.05rem;
    text-shadow: 0 0 12px rgba(0, 210, 255, 0.55);
    animation: portalApproved 0.5s ease-out;
}
@keyframes portalApproved {
    0%   { opacity: 0; transform: scale(0.94); }
    60%  { opacity: 1; transform: scale(1.04); }
    100% { opacity: 1; transform: scale(1); }
}
.portal-status strong {
    color: var(--accent-2);
    letter-spacing: 0.04em;
}
.portal-status .portal-note {
    display: inline-block;
    margin-top: 8px;
    font-size: 0.82rem;
    opacity: 0.75;
}
@keyframes portalFade {
    from { opacity: 0; transform: translateY(6px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* Delay UI Load until boot completes */
body main,
body .glass-nav,
body .telemetry-hud,
body .ambient-background {
    opacity: 0;
    pointer-events: none;
    transition: opacity 1.5s ease-in-out;
}

body.boot-complete main,
body.boot-complete .glass-nav,
body.boot-complete .telemetry-hud,
body.boot-complete .ambient-background {
    opacity: 1;
    pointer-events: auto;
}
