@import url('https://fonts.googleapis.com/css2?family=Fira+Code:wght@400;500;600;700&family=Inter:wght@300;400;500;600;700&display=swap');

/* Core Retro IDE Variables */
:root {
    --bg-dark: #0b0c10;
    --bg-panel: #1e1e24;
    --bg-editor: #1b1c21;
    
    --primary: #00ff9d; /* Cyber Green Hashtag / Active Highlight */
    --secondary: #56b6c2; /* Cyan Highlights */
    --border-retro: #3e4451; /* IDE Outlines */
    
    --text-main: #abb2bf; /* Light Grey Text */
    --text-muted: #828997; /* Comments Style Grey */
    --text-dark: #5c6370; /* Muted Elements */
    
    --font-mono: 'Fira Code', monospace;
    --font-body: 'Inter', sans-serif;
    
    --transition-fast: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Reset and Global Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    scroll-behavior: smooth;
}

body {
    background-color: var(--bg-dark);
    color: var(--text-main);
    font-family: var(--font-body);
    line-height: 1.6;
    overflow-x: hidden;
    position: relative;
}

/* Retro linear-grid pattern overlay */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-image: 
        linear-gradient(rgba(62, 68, 81, 0.04) 1px, transparent 1px),
        linear-gradient(90deg, rgba(62, 68, 81, 0.04) 1px, transparent 1px);
    background-size: 36px 36px;
    z-index: -1;
    pointer-events: none;
}

/* Canvas & Overlays */
#particle-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: -3;
    pointer-events: none;
}

.background-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: radial-gradient(circle at 50% 50%, rgba(11, 12, 16, 0.55) 0%, rgba(7, 9, 11, 0.75) 100%);
    z-index: -2;
    pointer-events: none;
}

/* Scrollbars */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: var(--bg-dark);
}
::-webkit-scrollbar-thumb {
    background: var(--border-retro);
    border-radius: 0;
}
::-webkit-scrollbar-thumb:hover {
    background: var(--primary);
}

/* Sections */
section {
    padding: 80px 5% 80px 10%; /* Offset left padding for socials ribbon */
    max-width: 1300px;
    margin: 0 auto;
    position: relative;
}

/* Fixed Socials Vertical Line Ribbon */
.fixed-socials {
    position: fixed;
    left: 35px;
    top: 0;
    bottom: 0;
    width: 32px;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;
    z-index: 99;
    padding-top: 10vh;
    gap: 20px;
}

.fixed-socials::before {
    content: '';
    width: 1px;
    height: 120px;
    background: var(--border-retro);
    margin-bottom: 8px;
}

.fixed-socials a {
    color: var(--text-muted);
    font-size: 1.15rem;
    transition: var(--transition-fast);
    display: flex;
    justify-content: center;
    align-items: center;
    width: 32px;
    height: 32px;
}

.fixed-socials a:hover {
    color: var(--primary);
    transform: translateY(-2px);
}

/* Sticky Header Navigation */
header {
    position: sticky;
    top: 0;
    width: 100%;
    height: 70px;
    z-index: 100;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 5% 0 10%;
    background: rgba(11, 12, 16, 0.9);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border-bottom: 1px solid var(--border-retro);
}

.logo {
    font-family: var(--font-mono);
    font-size: 1.05rem;
    font-weight: 700;
    color: #fff;
    text-decoration: none;
    letter-spacing: -0.5px;
}

nav {
    display: flex;
    gap: 28px;
}

nav a {
    color: var(--text-muted);
    text-decoration: none;
    font-family: var(--font-mono);
    font-size: 0.85rem;
    transition: var(--transition-fast);
}

nav a span {
    color: var(--primary);
    margin-right: 2px;
}

nav a:hover, nav a.active {
    color: #fff;
}

.mobile-menu-toggle {
    display: none;
    font-size: 1.3rem;
    background: none;
    border: none;
    color: #fff;
    cursor: pointer;
}

/* Section Title & Header Row (with line decorations) */
.section-header-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 45px;
    width: 100%;
}

.section-header-row .section-title {
    margin-bottom: 0;
    flex-grow: 1;
}

.section-title {
    font-family: var(--font-mono);
    font-size: 1.6rem;
    font-weight: 500;
    color: #fff;
    margin-bottom: 45px;
    display: flex;
    align-items: center;
    gap: 15px;
    text-align: left;
}

.section-title::before {
    content: '#';
    color: var(--primary);
}

.section-title::after {
    content: '';
    flex-grow: 1;
    height: 1px;
    background: var(--border-retro);
}

.view-all-link {
    font-family: var(--font-mono);
    color: var(--text-main);
    text-decoration: none;
    font-size: 0.85rem;
    margin-left: 20px;
    white-space: nowrap;
    transition: var(--transition-fast);
}

.view-all-link:hover {
    color: var(--primary);
}

/* Hero Section */
#hero {
    min-height: 85vh;
    display: flex;
    align-items: center;
    padding-top: 40px;
    padding-bottom: 40px;
}

.hero-grid {
    display: grid;
    grid-template-columns: 1.25fr 0.75fr;
    gap: 50px;
    align-items: center;
    width: 100%;
}

.hero-content {
    text-align: left;
}

.hero-tag {
    font-family: var(--font-mono);
    font-size: 0.75rem;
    color: var(--secondary);
    margin-bottom: 20px;
    letter-spacing: 1px;
}

.hero-name {
    font-family: var(--font-mono);
    font-size: 2.5rem;
    font-weight: 700;
    color: #fff;
    line-height: 1.25;
    margin-bottom: 16px;
}

.hero-name span {
    color: var(--primary);
}

.hero-title {
    font-family: var(--font-mono);
    font-size: 1.15rem;
    color: var(--text-muted);
    margin-bottom: 24px;
}

.hero-desc {
    font-size: 0.95rem;
    color: var(--text-muted);
    max-width: 620px;
    margin-bottom: 40px;
    line-height: 1.65;
}

.hero-actions {
    display: flex;
    gap: 15px;
}

.project-btn {
    font-family: var(--font-mono);
    font-size: 0.85rem;
    border: 1px solid var(--primary);
    background: transparent;
    color: #fff;
    padding: 10px 18px;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: var(--transition-fast);
}

.project-btn:hover {
    background: rgba(0, 255, 157, 0.1);
}

.project-btn.outline {
    border-color: var(--border-retro);
    color: var(--text-muted);
}

.project-btn.outline:hover {
    background: rgba(62, 68, 81, 0.15);
    color: #fff;
}

/* Hero Avatar Area (Offset frame) */
.hero-avatar-area {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.avatar-frame-container {
    position: relative;
    width: 240px;
    height: 250px;
    border: 1px solid var(--border-retro);
    margin-bottom: 15px;
}

.avatar-bg-border {
    position: absolute;
    top: 15px;
    left: 15px;
    width: 100%;
    height: 100%;
    border: 1px solid var(--primary);
    z-index: 1;
    pointer-events: none;
}

.profile-avatar-retro {
    width: 100%;
    height: 100%;
    object-fit: cover;
    position: relative;
    z-index: 2;
    background: var(--bg-dark);
}

.avatar-status-badge {
    display: flex;
    align-items: center;
    border: 1px solid var(--border-retro);
    padding: 8px 12px;
    font-family: var(--font-mono);
    font-size: 0.75rem;
    color: var(--text-muted);
    background: var(--bg-dark);
    z-index: 3;
    margin-top: 12px;
    max-width: 100%;
}

.avatar-status-badge strong {
    color: var(--primary);
    margin-left: 4px;
}

.status-dot {
    display: inline-block;
    width: 10px;
    height: 10px;
    background: var(--primary);
    margin-right: 8px;
    flex-shrink: 0;
}

/* Quote Section */
#quote-section {
    display: flex;
    justify-content: center;
    padding-top: 40px;
    padding-bottom: 40px;
}

.quote-container {
    border: 1px solid var(--border-retro);
    padding: 36px 48px;
    position: relative;
    max-width: 600px;
    width: 100%;
}

.quote-text {
    font-size: 1rem;
    color: #fff;
    line-height: 1.6;
    position: relative;
    z-index: 2;
}

.quote-container::before {
    content: '“';
    position: absolute;
    top: -20px;
    left: 20px;
    font-size: 3.5rem;
    font-family: Georgia, serif;
    color: var(--primary);
    background: var(--bg-dark);
    padding: 0 8px;
    line-height: 1;
    z-index: 3;
}

.quote-container::after {
    content: '”';
    position: absolute;
    bottom: -32px;
    right: 230px; /* Shifted safely to the left of the author box */
    font-size: 3.5rem;
    font-family: Georgia, serif;
    color: var(--primary);
    background: var(--bg-dark);
    padding: 0 8px;
    line-height: 1;
    z-index: 3;
}

@media (max-width: 550px) {
    .quote-container::after {
        right: auto;
        left: 20px; /* Shift to the left on small viewports where author wraps */
    }
}

.quote-author {
    border: 1px solid var(--border-retro);
    border-top: none;
    background: var(--bg-dark);
    padding: 6px 14px;
    position: absolute;
    bottom: -37px;
    right: -1px;
    font-family: var(--font-mono);
    font-size: 0.8rem;
    color: var(--text-muted);
}

/* Projects Showcase Section */
.projects-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 25px;
    margin-top: 15px;
}

.project-card-retro {
    border: 1px solid var(--border-retro);
    background: transparent;
    display: flex;
    flex-direction: column;
    transition: var(--transition-fast);
}

.project-card-retro:hover {
    border-color: var(--text-muted);
}

.project-card-tags-header {
    padding: 8px 16px;
    font-family: var(--font-mono);
    font-size: 0.75rem;
    color: var(--text-muted);
    border-bottom: 1px solid var(--border-retro);
    word-wrap: break-word;
    background: rgba(255, 255, 255, 0.01);
}

.project-card-body {
    padding: 16px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.project-card-body h3 {
    font-family: var(--font-mono);
    font-size: 1.15rem;
    font-weight: 500;
    color: #fff;
    margin-bottom: 12px;
}

.project-card-body p {
    font-size: 0.85rem;
    color: var(--text-muted);
    line-height: 1.6;
    margin-bottom: 24px;
    flex-grow: 1;
}

.project-card-actions {
    display: flex;
    margin-top: auto;
}

.project-retro-btn {
    font-family: var(--font-mono);
    font-size: 0.8rem;
    color: #fff;
    border: 1px solid var(--primary);
    background: transparent;
    padding: 6px 14px;
    text-decoration: none;
    transition: var(--transition-fast);
    display: inline-flex;
    align-items: center;
    gap: 6px;
    cursor: pointer;
}

.project-retro-btn:hover {
    background: rgba(0, 255, 157, 0.1);
}

/* Skills Section */
.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(210px, 1fr));
    gap: 20px;
    margin-top: 15px;
}

.skill-card-retro {
    border: 1px solid var(--border-retro);
    background: transparent;
}

.skill-card-header {
    padding: 8px 14px;
    font-family: var(--font-mono);
    font-size: 0.8rem;
    font-weight: 600;
    color: #fff;
    border-bottom: 1px solid var(--border-retro);
    background: rgba(255, 255, 255, 0.01);
}

.skill-card-body {
    padding: 14px;
    font-family: var(--font-mono);
    font-size: 0.75rem;
    color: var(--text-muted);
    display: flex;
    flex-wrap: wrap;
    gap: 8px 12px;
    line-height: 1.5;
}

/* About Section */
.about-grid {
    display: grid;
    grid-template-columns: 1.05fr 0.95fr;
    gap: 45px;
    align-items: flex-start;
}

.about-intro-text {
    font-size: 0.95rem;
    color: var(--text-muted);
    line-height: 1.65;
    margin-bottom: 30px;
}

.about-intro-text strong {
    color: var(--secondary);
}

/* Bio Tabs System inside About */
.about-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 20px;
}

.tab-btn {
    background: transparent;
    border: 1px solid var(--border-retro);
    color: var(--text-muted);
    font-family: var(--font-mono);
    font-size: 0.8rem;
    padding: 6px 14px;
    cursor: pointer;
    transition: var(--transition-fast);
}

.tab-btn:hover {
    color: #fff;
    border-color: var(--text-main);
}

.tab-btn.active {
    color: #fff;
    border-color: var(--primary);
    background: rgba(0, 255, 157, 0.08);
}

.prism-viewport {
    width: 100%;
    height: 380px;
    perspective: 1200px;
    position: relative;
    overflow: visible;
}

.about-prism-box {
    width: 100%;
    height: 100%;
    position: absolute;
    transform-style: preserve-3d;
    transition: transform 0.8s cubic-bezier(0.175, 0.885, 0.32, 1.1);
}

.tab-face {
    position: absolute;
    width: 100%;
    height: 100%;
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
    padding: 20px;
    background: var(--bg-panel);
    border: 1px solid var(--border-retro);
    overflow-y: auto;
}

.face-story {
    transform: rotateY(0deg) translateZ(var(--prism-depth, 250px));
}

.face-education {
    transform: rotateY(90deg) translateZ(var(--prism-depth, 250px));
}

.face-awards {
    transform: rotateY(-90deg) translateZ(var(--prism-depth, 250px));
}

.face-experience {
    transform: rotateY(180deg) translateZ(var(--prism-depth, 250px));
}

.about-prism-box.show-story {
    transform: translateZ(calc(-1 * var(--prism-depth, 250px))) rotateY(0deg);
}

.about-prism-box.show-education {
    transform: translateZ(calc(-1 * var(--prism-depth, 250px))) rotateY(-90deg);
}

.about-prism-box.show-awards {
    transform: translateZ(calc(-1 * var(--prism-depth, 250px))) rotateY(90deg);
}

.about-prism-box.show-experience {
    transform: translateZ(calc(-1 * var(--prism-depth, 250px))) rotateY(-180deg);
}

.tab-face h4 {
    font-family: var(--font-mono);
    font-size: 1.1rem;
    font-weight: 500;
    margin-bottom: 12px;
    color: #fff;
}

.tab-face p {
    font-size: 0.85rem;
    color: var(--text-muted);
    line-height: 1.6;
}

.timeline {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.timeline-item {
    position: relative;
    padding-left: 20px;
    border-left: 1px solid var(--border-retro);
}

.timeline-item::before {
    content: '';
    position: absolute;
    left: -5px;
    top: 6px;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--secondary);
}

.timeline-year {
    font-family: var(--font-mono);
    font-size: 0.75rem;
    color: var(--secondary);
    font-weight: 600;
    margin-bottom: 2px;
}

.timeline-title {
    font-family: var(--font-mono);
    font-size: 0.85rem;
    font-weight: 500;
    color: #fff;
}

.timeline-subtitle {
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-top: 2px;
}

/* Terminal Panel styling */
.terminal-panel {
    width: 100%;
    margin-top: 24px;
    border: 1px solid var(--border-retro);
    background: var(--bg-editor);
    text-align: left;
}

.terminal-header {
    background: rgba(255, 255, 255, 0.02);
    border-bottom: 1px solid var(--border-retro);
    padding: 8px 12px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.terminal-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
}
.terminal-dot.red { background-color: #ef4444; }
.terminal-dot.yellow { background-color: #f59e0b; }
.terminal-dot.green { background-color: #10b981; }

.terminal-title {
    margin-left: 10px;
    font-family: var(--font-mono);
    font-size: 0.7rem;
    color: var(--text-dark);
}

.terminal-body {
    padding: 16px;
    font-family: 'Courier New', Courier, monospace;
    font-size: 0.8rem;
    color: #10b981;
    min-height: 170px;
}

.terminal-line {
    margin-bottom: 6px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.terminal-prompt {
    color: var(--secondary);
    font-weight: 700;
}

.terminal-typed-input {
    color: #fff;
}

.terminal-output {
    color: var(--text-muted);
    font-size: 0.75rem;
    line-height: 1.5;
}

/* Contacts Section */
.contact-grid-retro {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: flex-start;
    margin-top: 10px;
}

.contact-grid-retro .contact-intro {
    font-size: 0.95rem;
    color: var(--text-muted);
    line-height: 1.65;
}

.contact-box-retro {
    border: 1px solid var(--border-retro);
    padding: 24px;
    background: transparent;
}

.contact-box-title {
    font-family: var(--font-mono);
    font-size: 0.85rem;
    font-weight: 600;
    color: #fff;
    margin-bottom: 18px;
}

.contact-box-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.contact-box-item {
    display: flex;
    align-items: center;
    gap: 10px;
    font-family: var(--font-mono);
    font-size: 0.8rem;
    color: var(--text-muted);
    text-decoration: none;
    transition: var(--transition-fast);
}

.contact-box-item:hover {
    color: var(--primary);
}

.contact-box-item i {
    width: 16px;
    text-align: center;
    color: var(--primary);
}

/* Footer Section */
footer {
    border-top: 1px solid var(--border-retro);
    padding: 30px 5% 30px 10%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1300px;
    margin: 60px auto 0 auto;
    font-family: var(--font-mono);
    font-size: 0.75rem;
}

.footer-logo {
    text-decoration: none;
    color: #fff;
    font-weight: 700;
    transition: var(--transition-fast);
}

.footer-logo:hover {
    color: var(--primary);
}

.footer-copy {
    color: var(--text-muted);
}

.footer-media {
    display: flex;
    align-items: center;
    gap: 14px;
}

.footer-media span {
    color: var(--text-dark);
    margin-right: 2px;
}

.footer-media a {
    color: var(--text-muted);
    font-size: 0.95rem;
    transition: var(--transition-fast);
}

.footer-media a:hover {
    color: var(--primary);
}

/* Project Details Modal Overlay */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(11, 12, 16, 0.8);
    backdrop-filter: blur(4px);
    z-index: 1000;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.modal-overlay.active {
    opacity: 1;
    pointer-events: auto;
}

.modal-box {
    width: 90%;
    max-width: 600px;
    background: var(--bg-panel);
    border: 1px solid var(--border-retro);
    padding: 30px;
    position: relative;
    transform: scale(0.95);
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.modal-overlay.active .modal-box {
    transform: scale(1);
}

.modal-close-btn {
    position: absolute;
    top: 15px;
    right: 15px;
    background: none;
    border: none;
    color: var(--text-dark);
    font-size: 1.8rem;
    cursor: pointer;
    transition: var(--transition-fast);
    line-height: 1;
}

.modal-close-btn:hover {
    color: #fff;
}

.modal-header {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 20px;
    border-bottom: 1px solid var(--border-retro);
    padding-bottom: 12px;
}

.modal-header h3 {
    font-family: var(--font-mono);
    font-size: 1.4rem;
    color: #fff;
}

.modal-desc {
    font-size: 0.9rem;
    color: var(--text-muted);
    margin-bottom: 20px;
    line-height: 1.6;
}

.modal-tech-details {
    background: var(--bg-dark);
    border: 1px solid var(--border-retro);
    padding: 16px;
    font-family: var(--font-mono);
    font-size: 0.75rem;
    color: var(--text-muted);
    margin-bottom: 24px;
    max-height: 220px;
    overflow-y: auto;
}

.modal-tech-details pre {
    margin: 0;
    white-space: pre-wrap;
    word-wrap: break-word;
}

.modal-tech-details .spec-title {
    color: var(--secondary);
    font-weight: 600;
    margin-bottom: 6px;
    display: block;
}

.modal-cta-row {
    display: flex;
    justify-content: flex-end;
}

/* Custom Cursor Glow Trail */
#cursor-glow {
    width: 350px;
    height: 350px;
    background: radial-gradient(circle, rgba(0, 255, 157, 0.04) 0%, transparent 70%);
    position: fixed;
    top: 0;
    left: 0;
    transform: translate(-50%, -50%);
    pointer-events: none;
    z-index: -2;
    transition: transform 0.15s cubic-bezier(0.1, 0.8, 0.2, 1);
    will-change: transform;
}

/* Typewriter Cursor */
.typewriter-cursor {
    font-weight: 300;
    color: var(--secondary);
    animation: blink-cursor 0.8s step-end infinite;
    margin-left: 3px;
}

@keyframes blink-cursor {
    from, to { color: transparent }
    50% { color: var(--secondary); }
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(8px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Responsive Styles */
@media (max-width: 1024px) {
    section {
        padding-left: 8%;
        padding-right: 8%;
    }
    .hero-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    .hero-avatar-area {
        order: -1;
        margin-bottom: 20px;
    }
    .projects-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .about-grid {
        grid-template-columns: 1fr;
        gap: 35px;
    }
    .fixed-socials {
        display: none; /* Hide vertical social ribbon on smaller viewports */
    }
    header {
        padding-left: 5%;
        padding-right: 5%;
    }
    footer {
        padding-left: 5%;
        padding-right: 5%;
    }
}

@media (max-width: 768px) {
    section {
        padding-top: 50px;
        padding-bottom: 50px;
    }
    
    header {
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        width: 100%;
        background: var(--bg-dark);
    }
    
    .mobile-menu-toggle {
        display: block;
    }
    
    #nav-links {
        display: none;
    }
    
    #nav-links.mobile-open {
        display: flex;
        flex-direction: column;
        position: absolute;
        top: 70px;
        left: 0;
        width: 100%;
        background: var(--bg-dark);
        border-bottom: 1px solid var(--border-retro);
        padding: 24px;
        gap: 15px;
        align-items: flex-start;
        box-shadow: 0 10px 20px rgba(0, 0, 0, 0.4);
        animation: fadeIn 0.25s ease forwards;
    }
    
    .hero-name {
        font-size: 1.8rem;
    }
    
    .hero-title {
        font-size: 1rem;
    }
    
    .hero-actions {
        flex-direction: column;
        width: 100%;
        gap: 10px;
    }
    
    .project-btn {
        width: 100%;
        justify-content: center;
    }
    
    .projects-grid {
        grid-template-columns: 1fr;
    }
    
    .skills-grid {
        grid-template-columns: 1fr;
    }
    
    .contact-grid-retro {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    footer {
        flex-direction: column;
        gap: 15px;
        text-align: center;
    }

    /* Override 3D rotating prism/cube on Mobile viewports to prevent layout overlap */
    .prism-viewport {
        height: auto !important;
        perspective: none;
        overflow: visible;
    }
    
    .about-prism-box {
        position: relative;
        height: auto !important;
        transform: none !important;
        transform-style: flat;
    }
    
    .tab-face {
        position: relative;
        height: auto !important;
        transform: none !important;
        opacity: 0;
        display: none;
        padding: 16px;
        border-radius: 0;
        transition: opacity 0.3s ease;
    }
    
    .about-prism-box.show-story .face-story,
    .about-prism-box.show-experience .face-experience,
    .about-prism-box.show-education .face-education,
    .about-prism-box.show-awards .face-awards {
        display: block;
        opacity: 1;
    }
}

/* Header Controls */
.header-controls {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-left: auto;
    margin-right: 20px;
}

.control-btn {
    background: transparent;
    border: 1px solid var(--border-retro);
    color: var(--text-muted);
    font-family: var(--font-mono);
    font-size: 0.7rem;
    padding: 6px 12px;
    cursor: pointer;
    transition: var(--transition-fast);
    display: flex;
    align-items: center;
    gap: 6px;
}

.control-btn:hover {
    border-color: var(--text-main);
    color: #fff;
}

.control-btn.active {
    border-color: var(--primary);
    color: var(--primary);
    background: rgba(0, 255, 157, 0.05);
}

@media (max-width: 768px) {
    .header-controls {
        margin-right: 10px;
    }
    .control-btn span {
        display: none;
    }
}

/* CRT Screen Scanline Overlay Filter */
#crt-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: 9999;
    pointer-events: none;
    background: linear-gradient(rgba(18, 16, 16, 0) 50%, rgba(0, 0, 0, 0.15) 50%), 
                linear-gradient(90deg, rgba(255, 0, 0, 0.015), rgba(0, 255, 0, 0.005), rgba(0, 0, 255, 0.015));
    background-size: 100% 3px, 3px 100%;
    opacity: 0;
    transition: opacity 0.3s ease;
}

body.crt-active #crt-overlay {
    opacity: 1;
}

body.crt-active {
    animation: crt-flicker 0.15s infinite;
}

@keyframes crt-flicker {
    0% { opacity: 0.998; }
    50% { opacity: 1; }
    100% { opacity: 0.998; }
}

/* System Stats Panel Strip */
.systems-stats-strip {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    margin-top: 30px;
    border-top: 1px dashed var(--border-retro);
    padding-top: 20px;
}

.stat-item {
    border: 1px solid var(--border-retro);
    padding: 6px 12px;
    font-family: var(--font-mono);
    font-size: 0.7rem;
    color: var(--text-muted);
    background: rgba(255, 255, 255, 0.01);
}

.stat-label {
    color: var(--text-dark);
    margin-right: 4px;
}

.stat-val-green {
    color: var(--primary);
    font-weight: 600;
}

#stat-cpu, #stat-latency {
    color: var(--primary);
    font-weight: 600;
    transition: color 0.3s ease;
}

/* Terminal Body Scrollability & Command Prompt */
.terminal-body {
    max-height: 250px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
}

#terminal-shell-input::placeholder {
    color: var(--text-dark);
    opacity: 0.6;
}

