/* ==========================================================================
   KISHAN CHAURASIA CORE SYSTEM ARCHITECTURE STYLESHEET
   ========================================================================== */

:root {
    --bg-dark: #030712;
    --card-bg: rgba(11, 17, 34, 0.75);
    --border-color: rgba(255, 255, 255, 0.08);
    --text-primary: #f8fafc;
    --text-secondary: #94a3b8;
    
    /* System Premium Accent Nodes */
    --neon-cyan: #00f3ff;
    --neon-coral: #ff5f6d; 
    --neon-purple: #bd00ff;
    
    /* Soothing Global Glow Metrics */
    --soothing-cyan-glow: 0 0 15px rgba(0, 243, 255, 0.35);
    --soothing-coral-glow: 0 0 15px rgba(255, 95, 109, 0.5);
}

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

html {
    scroll-behavior: smooth;
    font-family: 'Plus Jakarta Sans', sans-serif;
    background-color: var(--bg-dark);
    color: var(--text-primary);
    overflow-x: hidden;
}

/* Background Streaming Grid Matrix Setup */
#cyber-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: -1;
    opacity: 0.28;
    pointer-events: none;
}

/* ==========================================================================
   1. NAVIGATION HEADER ARCHITECTURE (RESTORED BLUE CONTAINER STYLE)
   ========================================================================== */
.nav {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 70px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 3rem;
    background: rgba(3, 7, 18, 0.85); 
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border-color);
    z-index: 100;
}

/* Restored Red/Coral Logo Layout Brackets */
.nav-logo {
    font-family: 'Orbitron', 'JetBrains Mono', monospace;
    font-weight: 700;
    font-size: 1.1rem;
    letter-spacing: 1px;
    display: flex;
    align-items: center;
    user-select: none;
}

.logo-bracket {
    color: var(--neon-coral);
    text-shadow: 0 0 10px rgba(255, 95, 109, 0.6), 0 0 20px rgba(255, 95, 109, 0.3);
}

.nav-logo .logo-text {
    color: var(--text-primary);
    margin: 0 2px;
}

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

.nav-link { 
    text-decoration: none; 
    color: var(--text-secondary); 
    font-size: 0.9rem; 
    font-family: 'JetBrains Mono', monospace; 
    transition: 0.3s ease; 
    padding: 0.4rem 0.2rem;
    position: relative;
}

.nav-link.active { 
    color: var(--neon-cyan); 
    text-shadow: 0 0 10px rgba(0, 243, 255, 0.6);
}

.nav-link:hover {
    color: var(--neon-cyan);
}

/* Restored Original Blue Status Container Block Layout */
.nav-status-container {
    border: 1px solid rgba(0, 243, 255, 0.25);
    background: rgba(0, 243, 255, 0.03);
    border-radius: 4px;
    padding: 0.4rem 0.8rem;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: inset 0 0 8px rgba(0, 243, 255, 0.05);
}

.nav-status { 
    font-family: 'JetBrains Mono', monospace; 
    font-size: 0.8rem; 
    color: var(--neon-cyan); 
    font-weight: 700;
    letter-spacing: 0.5px;
    display: flex;
    align-items: center;
}

/* Cyan Monitor Pulsing Dot Core */
.status-pulse { 
    display: inline-block; 
    width: 7px; 
    height: 7px; 
    background: var(--neon-cyan); 
    border-radius: 50%; 
    margin-right: 8px; 
    box-shadow: 0 0 8px var(--neon-cyan), 0 0 15px var(--neon-cyan);
    animation: prompt-pulse 1s infinite alternate;
}

/* ==========================================================================
   2. HERO HEADER SETUP
   ========================================================================== */
#welcome-section h1.glitch {
    font-family: 'Orbitron', 'JetBrains Mono', monospace;
    font-size: 3.8rem;
    font-weight: 900;
    letter-spacing: 5px;
    text-transform: uppercase;
    color: #111625;
    -webkit-text-stroke: 1px rgba(0, 243, 255, 0.6);
    text-shadow: 
        1px 1px 0px #00f3ff,
        2px 2px 0px rgba(0, 0, 0, 0.9),
        0 0 10px rgba(0, 243, 255, 0.4);
}

#subheading {
    font-family: 'JetBrains Mono', monospace;
    font-size: 1.1rem;
    color: var(--text-secondary);
    letter-spacing: 2px;
    margin-bottom: 1.5rem;
}

#subheading span {
    color: #00f3ff;
    text-shadow: 0 0 10px rgba(0, 243, 255, 0.6);
    font-weight: bold;
}

/* ==========================================================================
   3. INTERACTIVE 3D CUBE - SPECTRUM BORDERS ONLY
   ========================================================================== */
.cyber-cube-container {
    width: 260px;
    height: 260px;
    perspective: 1000px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 2rem auto;
}

.cyber-cube {
    width: 140px;
    height: 140px;
    position: relative;
    transform-style: preserve-3d;
    cursor: pointer;
    animation: permanent-cube-rotate 12s linear infinite;
}

.cube-face {
    position: absolute;
    width: 140px;
    height: 140px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.9rem;
    font-weight: 700;
    letter-spacing: 1px;
    user-select: none;
    backface-visibility: visible;
}

/* Face Border Configuration tracking pure VIBGYOR mapping updates */
.face-top { 
    transform: rotateX(90deg) translateZ(70px); 
    border: 2px solid #4B0082; 
    color: #00f3ff; 
    background: rgba(0, 243, 255, 0.05); 
    box-shadow: inset 0 0 15px rgba(0, 243, 255, 0.2);
}
.face-front { 
    transform: rotateY(0deg) translateZ(70px); 
    border: 2px solid #0000FF; 
    color: #00f3ff;
    background: rgba(0, 243, 255, 0.05);
    box-shadow: inset 0 0 15px rgba(0, 243, 255, 0.2);
}
.face-back { 
    transform: rotateY(180deg) translateZ(70px); 
    border: 2px solid #FFFF00; 
    color: #00f3ff;
    background: rgba(0, 243, 255, 0.05);
    box-shadow: inset 0 0 15px rgba(0, 243, 255, 0.2);
}
.face-left { 
    transform: rotateY(-90deg) translateZ(70px); 
    border: 2px solid #FF7F00; 
    color: #00f3ff;
    background: rgba(0, 243, 255, 0.05);
    box-shadow: inset 0 0 15px rgba(0, 243, 255, 0.2);
}
.face-right { 
    transform: rotateY(90deg) translateZ(70px); 
    border: 2px solid #FF0000; 
    color: #00f3ff;
    background: rgba(0, 243, 255, 0.05);
    box-shadow: inset 0 0 15px rgba(0, 243, 255, 0.2);
}
.face-bottom { 
    transform: rotateX(-90deg) translateZ(70px); 
    border: 2px solid #00FF00; 
    color: #00f3ff;
    background: rgba(0, 243, 255, 0.05);
    box-shadow: inset 0 0 15px rgba(0, 243, 255, 0.2);
}

.cube-audio-prompt {
    font-family: 'Orbitron', sans-serif;
    font-size: 1.05rem; /* Increased size (was 0.8rem) */
    font-weight: 900;   /* Made it extra bold */
    text-align: center;
    padding: 0 5px;
    line-height: 1.4;
    color: #ff3333;     /* Changed text color to a bright red */
    text-shadow: 0 0 8px rgba(255, 51, 51, 0.6); /* Added a matching red neon glow */
    animation: prompt-pulse 1.5s infinite ease-in-out;
}

/* ==========================================================================
   4. CYBER-SNAKE LOCAL CANVAS ARCADE GRAPHICS GRID
   ========================================================================== */
.system-logs {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 1rem;
    width: 100%;
    max-width: 420px;
    margin: 0 auto;
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
}

.terminal-game-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.8rem;
    color: var(--text-secondary);
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 0.6rem;
    margin-bottom: 0.8rem;
}

.live-indicator-tag {
    font-size: 0.75rem;
    font-weight: bold;
    color: var(--neon-cyan);
    letter-spacing: 1px;
}

.live-dot {
    display: inline-block;
    width: 7px;
    height: 7px;
    background-color: var(--neon-cyan);
    border-radius: 50%;
    margin-right: 4px;
    box-shadow: 0 0 8px var(--neon-cyan);
    animation: prompt-pulse 1s infinite alternate;
}

#snake-game-canvas {
    width: 100%;
    height: 175px;
    border: 1px solid rgba(0, 243, 255, 0.15);
    border-radius: 6px;
    background-color: #010206;
    display: block;
}

#pong-instructions {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 0.75rem;
    color: var(--text-secondary);
    text-align: center;
    margin-top: 0.6rem;
}

/* ==========================================================================
   5. LAYOUT BASE DEFINITIONS
   ========================================================================== */
/* #welcome-section { min-height: 100vh; padding: 120px 3rem 40px 3rem; display: flex; align-items: center; } */
/* #welcome-section h1.glitch {
    -webkit-text-stroke: 1px rgba(255, 170, 0, 0.7);
    text-shadow: 
        1px 1px 0px #ffaa00,
        2px 2px 0px rgba(0, 0, 0, 0.9),
        0 0 15px rgba(255, 170, 0, 0.4);
} */
 #welcome-section h1.glitch {
    -webkit-text-stroke: 1px rgba(255, 170, 0, 0.8);
    text-shadow: 
        1px 1px 0px #ffaa00,
        2px 2px 0px rgba(0, 0, 0, 0.9),
        0 0 15px rgba(255, 170, 0, 0.5);
    
    /* Triggers the high-voltage lightning flicker loop */
    animation: cyber-lightning-surge 4s infinite linear;
}

/* ==========================================================================
   HIGH-VOLTAGE NEON LIGHTNING ENGINE
   ========================================================================== */
@keyframes cyber-lightning-surge {
    /* Stable baseline glow state */
    0%, 18%, 22%, 25%, 53%, 57%, 100% {
        -webkit-text-stroke: 1px rgba(255, 170, 0, 0.8);
        text-shadow: 
            1px 1px 0px #ffaa00,
            2px 2px 0px rgba(0, 0, 0, 0.9),
            0 0 15px rgba(255, 170, 0, 0.5);
    }
    /* Sharp, blinding voltage spikes (The Lightning Strike) */
    19%, 24%, 55% {
        -webkit-text-stroke: 1.5px #ffffff;
        text-shadow: 
            1px 1px 0px #ffffff,
            2px 2px 0px rgba(0, 0, 0, 1),
            0 0 10px #ffaa00,
            0 0 30px #ffffff, 
            0 0 45px rgba(255, 170, 0, 0.9);
    }
    /* Sudden dim drop directly following a strike */
    20%, 56% {
        -webkit-text-stroke: 1px rgba(255, 170, 0, 0.3);
        text-shadow: 
            1px 1px 0px rgba(255, 170, 0, 0.4),
            2px 2px 0px rgba(0, 0, 0, 0.9),
            0 0 4px rgba(255, 170, 0, 0.1);
    }
}
.hero-grid { display: grid; grid-template-columns: 1.2fr 0.8fr; width: 100%; max-width: 1200px; margin: 0 auto; gap: 4rem; align-items: center; }
.cyber-badge { display: inline-flex; align-items: center; gap: 0.5rem; background: rgba(0, 243, 255, 0.08); border: 1px solid rgba(0, 243, 255, 0.2); color: var(--neon-cyan); padding: 0.4rem 0.8rem; border-radius: 4px; font-family: 'JetBrains Mono', monospace; font-size: 0.75rem; margin-bottom: 1rem; }
.hero-tagline { color: var(--text-secondary); line-height: 1.6; font-size: 1.05rem; margin-bottom: 2rem; }
.corp-tag { color: var(--text-primary); border-bottom: 1px solid var(--neon-coral); padding-bottom: 2px; }

.hero-metrics { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; margin-bottom: 2.5rem; }
.metric-card { background: var(--card-bg); border: 1px solid var(--border-color); padding: 1rem; border-radius: 6px; position: relative; overflow: hidden; }
.metric-num { display: block; font-family: 'Orbitron', sans-serif; font-size: 1.5rem; font-weight: bold; color: var(--text-primary); margin-bottom: 0.2rem; }
.metric-label { font-size: 0.7rem; color: var(--text-secondary); font-family: 'JetBrains Mono', monospace; }

.text-btn { display: flex; gap: 1rem; }
.btn { text-decoration: none; padding: 0.8rem 1.5rem; border-radius: 4px; font-family: 'JetBrains Mono', monospace; font-size: 0.85rem; font-weight: bold; display: inline-flex; align-items: center; gap: 0.7rem; transition: 0.3s; }
.hire-btn {
    /* Change the background from blue to the specific coral red color */
    background: #ff7f7f !important;
    color: #030712;
    /* Change the glow from cyan to a matching red shadow */
    box-shadow: 0 0 15px rgba(255, 127, 127, 0.5) !important;
}
/* .hire-btn { background: var(--neon-cyan); color: #030712; box-shadow: var(--soothing-cyan-glow); } */
.secondary-btn { border: 1px solid var(--border-color); color: var(--text-primary); background: rgba(255,255,255,0.02); }
.secondary-btn:hover { border-color: var(--text-secondary); }

section { padding: 80px 3rem; max-width: 1200px; margin: 0 auto; }
.section-header { border-bottom: 1px solid var(--border-color); padding-bottom: 1rem; margin-bottom: 2.5rem; }
.section-header h2 { font-family: 'Orbitron', sans-serif; font-size: 1.8rem; letter-spacing: 1px; }
.section-num { color: var(--neon-cyan); }
.section-subtitle { font-family: 'JetBrains Mono', monospace; font-size: 0.9rem; color: var(--text-secondary); margin-top: -1.8rem; margin-bottom: 2.5rem; }

#about-container { display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; }
.terminal-header { background: #0f172a; padding: 0.6rem 1rem; border-top-left-radius: 8px; border-top-right-radius: 8px; display: flex; align-items: center; gap: 0.5rem; border: 1px solid var(--border-color); border-bottom: none; }
.dot { width: 10px; height: 10px; border-radius: 50%; }
.red { background: #ef4444; } .yellow { background: #eab308; } .green { background: #22c55e; }
.terminal-title { font-family: 'JetBrains Mono', monospace; font-size: 0.75rem; color: var(--text-secondary); margin-left: 0.5rem; }
.terminal-body { background: rgba(3, 7, 18, 0.6); border: 1px solid var(--border-color); padding: 1.5rem; border-bottom-left-radius: 8px; border-bottom-right-radius: 8px; font-family: 'JetBrains Mono', monospace; min-height: 250px; }
.prompt { color: var(--neon-cyan); }
.story-text { margin-top: 1rem; color: var(--text-secondary); line-height: 1.6; font-family: 'Plus Jakarta Sans', sans-serif; font-size: 0.95rem; }

.skills-grid-wrapper { display: flex; flex-direction: column; gap: 1.5rem; }
.skill-category h3 { font-size: 0.85rem; font-family: 'JetBrains Mono', monospace; color: var(--text-primary); margin-bottom: 0.8rem; display: flex; align-items: center; gap: 0.5rem; }
.tags { display: flex; flex-wrap: wrap; gap: 0.6rem; }
.tag { background: rgba(255,255,255,0.03); border: 1px solid var(--border-color); padding: 0.4rem 0.8rem; border-radius: 4px; font-size: 0.8rem; color: var(--text-secondary); transition: 0.2s; }
.tag:hover { border-color: var(--neon-coral); color: var(--text-primary); }

.projects-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 2rem; }
.card { background: var(--card-bg); border: 1px solid var(--border-color); padding: 2rem; border-radius: 8px; position: relative; transition: 0.3s; }
.card:hover { transform: translateY(-5px); border-color: rgba(242, 121, 123, 0.3); }
.project-header-meta { display: flex; justify-content: space-between; align-items: center; margin-bottom: 1.5rem; }
.folder-icon { font-size: 1.6rem; color: var(--neon-coral); }
.project-links a { color: var(--text-secondary); font-size: 1.2rem; transition: 0.2s; }
.project-links a:hover { color: var(--neon-cyan); }
.project-tile { font-family: 'Orbitron', sans-serif; font-size: 1.2rem; margin-bottom: 0.8rem; }
.card .desc p { color: var(--text-secondary); font-size: 0.9rem; line-height: 1.5; margin-bottom: 1.5rem; }
.project-tech-tags { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.p-tag { font-family: 'JetBrains Mono', monospace; font-size: 0.75rem; color: var(--neon-cyan); background: rgba(0, 243, 255, 0.05); padding: 0.2rem 0.5rem; border-radius: 3px; }

.cert-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
.cert-card { background: var(--card-bg); border: 1px solid var(--border-color); padding: 1.5rem; border-radius: 6px; }
.cert-icon { font-size: 1.4rem; color: var(--neon-cyan); margin-bottom: 0.8rem; }
.cert-card h4 { font-family: 'Orbitron', sans-serif; font-size: 0.95rem; margin-bottom: 0.4rem; }
.cert-card p { font-size: 0.8rem; color: var(--text-secondary); line-height: 1.4; }

.contact-box { background: linear-gradient(135deg, rgba(11,17,34,0.9) 0%, rgba(3,7,18,0.95) 100%); border: 1px solid rgba(242, 121, 123, 0.2); border-radius: 12px; padding: 4rem 2rem; text-align: center; max-width: 800px; margin: 2rem auto 0 auto; position: relative; }
.contact-box h2 { font-family: 'Orbitron', sans-serif; font-size: 1.8rem; color: var(--text-primary); margin-bottom: 1rem; }
.location-status { font-family: 'JetBrains Mono', monospace; font-size: 0.8rem; color: var(--neon-cyan); margin-bottom: 1.5rem; }
.contact-pitch { color: var(--text-secondary); max-width: 550px; margin: 0 auto 2.5rem auto; line-height: 1.6; }
.contact-links { display: flex; flex-wrap: wrap; justify-content: center; gap: 1rem; }
.contact-badge-btn { text-decoration: none; background: rgba(255,255,255,0.02); border: 1px solid var(--border-color); padding: 0.8rem 1.5rem; border-radius: 6px; color: var(--text-primary); font-family: 'JetBrains Mono', monospace; font-size: 0.85rem; display: inline-flex; align-items: center; gap: 0.6rem; transition: 0.3s; }
.contact-badge-btn:hover { border-color: var(--neon-cyan); background: rgba(0, 243, 255, 0.03); transform: translateY(-2px); }

.floating-controls { position: fixed; bottom: 25px; right: 25px; z-index: 200; }
#audio-toggle-btn { width: 45px; height: 45px; border-radius: 50%; background: #0b1122; border: 1px solid rgba(255,255,255,0.1); color: #f8fafc; cursor: pointer; display: flex; align-items: center; justify-content: center; font-size: 1.1rem; transition: 0.3s; }

footer { border-top: 1px solid var(--border-color); padding: 2rem 3rem; text-align: center; margin-top: 6rem; }
footer p { font-family: 'JetBrains Mono', monospace; font-size: 0.75rem; color: var(--text-secondary); }

/* Animation Core Loops */
@keyframes permanent-cube-rotate {
    0% { transform: rotateX(0deg) rotateY(0deg); }
    100% { transform: rotateX(360deg) rotateY(360deg); }
}

@keyframes prompt-pulse {
    0%, 100% { opacity: 0.6; }
    50% { opacity: 1; }
}

/* Structural Layout Breakpoint Triggers */
@media (max-width: 968px) {
    .hero-grid, #about-container { grid-template-columns: 1fr; gap: 3rem; }
    .hero-visual { order: -1; }
    .nav ul, .nav-status-container { display: none; }
    .cert-grid { grid-template-columns: 1fr; }
    section, .nav { padding-left: 1.5rem; padding-right: 1.5rem; }
}