/* ==========================================================================
   DESIGN SYSTEM & VARIABLES (FUTURISTIC "ANTIGRAVITY" PORTFOLIO)
   ========================================================================== */

:root {
    /* Color Palette */
    --bg-void: #030407;
    --bg-void-trans: rgba(3, 4, 7, 0.85);
    --bg-panel: rgba(10, 12, 20, 0.55);
    --bg-glass: rgba(15, 20, 35, 0.4);
    
    --neon-orange: #ff5d22;
    --neon-orange-glow: rgba(255, 93, 34, 0.45);
    --neon-orange-dim: rgba(255, 93, 34, 0.12);
    
    --cyber-white: #f5f6f9;
    --cyber-white-glow: rgba(245, 246, 249, 0.35);
    --cyber-gray: #828d9f;
    --cyber-blue-dim: rgba(0, 240, 255, 0.08);
    --cyber-blue: #00f0ff;
    
    /* Fonts */
    --font-tech: 'Orbitron', -apple-system, BlinkMacSystemFont, sans-serif;
    --font-body: 'Space Grotesk', 'Inter', -apple-system, sans-serif;
    
    /* Animation Speeds */
    --transition-fast: 0.15s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    --transition-medium: 0.35s cubic-bezier(0.25, 1, 0.5, 1);
    --transition-slow: 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

/* ==========================================================================
   BASE STYLES & CORE SETUP
   ========================================================================== */

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

html {
    scroll-behavior: smooth;
    background-color: var(--bg-void);
    color: var(--cyber-white);
    font-family: var(--font-body);
    font-size: 15px;
    overflow-x: hidden;
}

body {
    min-height: 100vh;
    position: relative;
    overflow-x: hidden;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}
::-webkit-scrollbar-track {
    background: var(--bg-void);
    border-left: 1px solid rgba(255, 255, 255, 0.03);
}
::-webkit-scrollbar-thumb {
    background: var(--neon-orange-dim);
    border-radius: 3px;
    border: 1px solid var(--neon-orange);
}
::-webkit-scrollbar-thumb:hover {
    background: var(--neon-orange);
}

/* Audio toggle and general buttons */
button, input, textarea {
    font-family: inherit;
    color: inherit;
    background: none;
    border: none;
    outline: none;
}

/* ==========================================================================
   BACKGROUND CANVAS & TECHNICAL GRID OVERLAYS
   ========================================================================== */

#gravity-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: 0;
    pointer-events: none;
}

.grid-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: 1;
    pointer-events: none;
}

.grid-lines {
    position: absolute;
    width: 100%;
    height: 100%;
    background-image: 
        linear-gradient(rgba(255, 255, 255, 0.015) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.015) 1px, transparent 1px),
        linear-gradient(rgba(255, 93, 34, 0.006) 2px, transparent 2px),
        linear-gradient(90deg, rgba(255, 93, 34, 0.006) 2px, transparent 2px);
    background-size: 40px 40px, 40px 40px, 200px 200px, 200px 200px;
    background-position: center center;
}

.grid-nodes {
    position: absolute;
    top: 40px;
    left: 40px;
    right: 40px;
    bottom: 40px;
    border: 1px solid rgba(255, 255, 255, 0.03);
}

.node {
    position: absolute;
    font-family: var(--font-tech);
    font-size: 10px;
    color: var(--cyber-gray);
    opacity: 0.3;
}
.node-tl { top: -6px; left: -4px; }
.node-tr { top: -6px; right: -4px; }
.node-bl { bottom: -6px; left: -4px; }
.node-br { bottom: -6px; right: -4px; }

/* Subtle Scanlines effect */
.scanlines {
    position: absolute;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        rgba(18, 16, 16, 0) 50%, 
        rgba(0, 0, 0, 0.12) 50%
    ), linear-gradient(
        90deg,
        rgba(255, 0, 0, 0.03),
        rgba(0, 255, 0, 0.01),
        rgba(0, 0, 255, 0.03)
    );
    background-size: 100% 4px, 6px 100%;
    opacity: 0.15;
}

/* ==========================================================================
   HEADER NAVIGATION
   ========================================================================== */

.main-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 80px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 50px;
    z-index: 100;
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.03);
    background: rgba(3, 4, 7, 0.4);
}

.logo-area {
    display: flex;
    align-items: center;
    gap: 15px;
}

.tech-logo {
    font-family: var(--font-tech);
    font-size: 20px;
    font-weight: 900;
    color: var(--cyber-white);
    text-decoration: none;
    display: flex;
    align-items: center;
    letter-spacing: 2px;
}

.tech-logo .bracket {
    color: var(--neon-orange);
    transition: transform var(--transition-fast);
}

.tech-logo:hover .bracket {
    transform: scaleX(1.3);
}

.system-status {
    font-family: var(--font-tech);
    font-size: 10px;
    color: var(--cyber-gray);
    border: 1px solid rgba(255, 255, 255, 0.08);
    padding: 2px 8px;
    border-radius: 2px;
    background: rgba(255, 255, 255, 0.02);
}

.nav-links {
    display: flex;
    gap: 30px;
}

.nav-item {
    font-family: var(--font-tech);
    font-size: 11px;
    color: var(--cyber-gray);
    text-decoration: none;
    letter-spacing: 1.5px;
    transition: color var(--transition-fast);
    padding: 8px 0;
    position: relative;
}

.nav-num {
    color: var(--neon-orange);
    margin-right: 4px;
    opacity: 0.7;
}

.nav-item:hover, .nav-item.active {
    color: var(--cyber-white);
}

.nav-item::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 1px;
    background-color: var(--neon-orange);
    transition: width var(--transition-medium);
}

.nav-item:hover::after, .nav-item.active::after {
    width: 100%;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 20px;
}

/* ==========================================================================
   BUTTONS & MICRO-INTERACTIONS
   ========================================================================== */

.control-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 6px 12px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 4px;
    cursor: pointer;
    font-size: 10px;
    font-family: var(--font-tech);
    color: var(--cyber-gray);
    background: rgba(255, 255, 255, 0.01);
    transition: all var(--transition-fast);
}

.control-btn:hover {
    color: var(--cyber-white);
    border-color: rgba(255, 255, 255, 0.2);
    background: rgba(255, 255, 255, 0.03);
}

.btn-primary {
    display: inline-flex;
    text-decoration: none;
    color: var(--cyber-white);
    background: var(--neon-orange);
    padding: 1px; /* Border look */
    border-radius: 2px;
    position: relative;
    overflow: hidden;
    cursor: pointer;
    box-shadow: 0 0 15px var(--neon-orange-glow);
    transition: box-shadow var(--transition-fast);
}

.btn-inner {
    display: block;
    background: var(--bg-void);
    padding: 10px 20px;
    font-family: var(--font-tech);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 1.5px;
    border-radius: 2px;
    width: 100%;
    height: 100%;
    transition: background var(--transition-fast), color var(--transition-fast);
}

.btn-primary:hover {
    box-shadow: 0 0 25px var(--neon-orange);
}

.btn-primary:hover .btn-inner {
    background: transparent;
    color: var(--cyber-white);
}

.btn-secondary {
    display: inline-flex;
    text-decoration: none;
    color: var(--cyber-gray);
    padding: 1px;
    border-radius: 2px;
    cursor: pointer;
    transition: all var(--transition-fast);
}

.btn-secondary .btn-inner {
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--cyber-gray);
}

.btn-secondary:hover {
    color: var(--cyber-white);
}

.btn-secondary:hover .btn-inner {
    border-color: var(--cyber-white);
    color: var(--cyber-white);
}

.large-btn {
    font-size: 12px;
}

.large-btn .btn-inner {
    padding: 14px 28px;
}

/* ==========================================================================
   LEFT SIDEBAR (SOCIALS & SCROLL)
   ========================================================================== */

.sidebar-left {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 80px;
    top: 80px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: center;
    padding: 40px 0;
    border-right: 1px solid rgba(255, 255, 255, 0.02);
    z-index: 90;
    pointer-events: none;
}

.social-links {
    display: flex;
    flex-direction: column;
    gap: 24px;
    pointer-events: auto;
}

.social-link {
    font-family: var(--font-tech);
    font-size: 11px;
    color: var(--cyber-gray);
    text-decoration: none;
    transition: color var(--transition-fast);
    writing-mode: vertical-rl;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.social-link:hover {
    color: var(--neon-orange);
}

.scroll-indicator {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
}

.scroll-text {
    font-family: var(--font-tech);
    font-size: 8px;
    color: var(--cyber-gray);
    letter-spacing: 2px;
    writing-mode: vertical-rl;
    text-transform: uppercase;
}

.scroll-line-container {
    width: 1px;
    height: 80px;
    background: rgba(255, 255, 255, 0.05);
    position: relative;
    overflow: hidden;
}

.scroll-line {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 30px;
    background: linear-gradient(to bottom, transparent, var(--neon-orange), transparent);
    animation: scroll-sweep 2s infinite cubic-bezier(0.4, 0, 0.2, 1);
}

@keyframes scroll-sweep {
    0% { top: -30px; }
    100% { top: 80px; }
}

/* ==========================================================================
   RIGHT SIDEBAR (TELEMETRY OVERLAY)
   ========================================================================== */

.sidebar-right {
    position: fixed;
    right: 30px;
    top: 110px;
    width: 320px;
    background: var(--bg-panel);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 4px;
    backdrop-filter: blur(16px);
    z-index: 95;
    padding: 20px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.5);
    pointer-events: auto;
}

.panel-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    padding-bottom: 12px;
    margin-bottom: 15px;
}

.panel-title {
    font-family: var(--font-tech);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 1px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.orange-dot {
    width: 6px;
    height: 6px;
    background-color: var(--neon-orange);
    border-radius: 50%;
    display: inline-block;
    box-shadow: 0 0 8px var(--neon-orange);
    animation: blink-dot 1.5s infinite;
}

@keyframes blink-dot {
    0%, 100% { opacity: 0.3; }
    50% { opacity: 1; }
}

.panel-code {
    font-family: var(--font-tech);
    font-size: 9px;
    color: var(--cyber-gray);
    background: rgba(255, 255, 255, 0.02);
    padding: 2px 6px;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.telemetry-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px 12px;
    margin-bottom: 20px;
}

.telemetry-item {
    border-left: 2px solid rgba(255, 255, 255, 0.05);
    padding-left: 10px;
}

.telemetry-item:hover {
    border-left-color: var(--neon-orange);
}

.tel-label {
    font-family: var(--font-tech);
    font-size: 8px;
    color: var(--cyber-gray);
    letter-spacing: 0.8px;
    margin-bottom: 3px;
}

.tel-value {
    font-family: var(--font-tech);
    font-size: 10px;
    font-weight: 700;
    color: var(--cyber-white);
    margin-bottom: 2px;
}

.tel-sub {
    font-size: 8px;
    color: rgba(130, 141, 159, 0.6);
}

.glow-orange {
    color: var(--neon-orange);
    text-shadow: 0 0 8px var(--neon-orange-glow);
}

.glow-white {
    color: var(--cyber-white);
    text-shadow: 0 0 8px var(--cyber-white-glow);
}

/* Telemetry Active Radar Animation */
.active-radar {
    display: flex;
    align-items: center;
    gap: 15px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    padding-top: 15px;
}

.radar-circle {
    width: 46px;
    height: 46px;
    border: 1px solid rgba(255, 93, 34, 0.25);
    border-radius: 50%;
    position: relative;
    overflow: hidden;
    background: rgba(255, 93, 34, 0.02);
}

.radar-circle::before, .radar-circle::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    border-radius: 50%;
    border: 1px dashed rgba(255, 93, 34, 0.1);
}

.radar-circle::before { width: 30px; height: 30px; }
.radar-circle::after { width: 16px; height: 16px; }

.radar-sweep {
    position: absolute;
    width: 100%;
    height: 100%;
    background: conic-gradient(from 0deg, var(--neon-orange-glow) 0deg, transparent 90deg, transparent 360deg);
    border-radius: 50%;
    animation: radar-rotate 4s linear infinite;
    transform-origin: center center;
}

.radar-blip {
    position: absolute;
    width: 3px;
    height: 3px;
    background-color: var(--cyber-white);
    border-radius: 50%;
    box-shadow: 0 0 5px var(--cyber-white);
}

.blip-1 { top: 12px; left: 30px; animation: blink-dot 1.2s infinite 0.3s; }
.blip-2 { top: 32px; left: 14px; animation: blink-dot 2s infinite 0.9s; }

@keyframes radar-rotate {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.radar-caption {
    font-family: var(--font-tech);
    font-size: 9px;
    color: var(--cyber-gray);
    letter-spacing: 1px;
}

/* ==========================================================================
   MAIN LAYOUT & HERO INTRO COLUMN
   ========================================================================== */

.main-content {
    position: relative;
    z-index: 2;
    padding-left: 120px;
    padding-right: 380px;
    padding-top: 120px;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.hero-section {
    display: grid;
    grid-template-columns: 1fr 1.1fr;
    gap: 40px;
    align-items: center;
    min-height: calc(100vh - 220px);
}

.hero-intro {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.intro-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--neon-orange-dim);
    border: 1px solid rgba(255, 93, 34, 0.25);
    padding: 6px 12px;
    border-radius: 3px;
    width: fit-content;
    margin-bottom: 24px;
}

.badge-tag {
    font-family: var(--font-tech);
    font-size: 9px;
    font-weight: 700;
    letter-spacing: 1px;
    color: var(--neon-orange);
}

.badge-divider {
    color: rgba(255, 93, 34, 0.4);
    font-size: 10px;
}

.badge-status {
    font-family: var(--font-tech);
    font-size: 8px;
    letter-spacing: 0.5px;
    color: var(--cyber-white);
    opacity: 0.8;
}

.hero-title {
    font-family: var(--font-tech);
    font-size: clamp(3.5rem, 5vw, 5.5rem);
    font-weight: 900;
    line-height: 0.95;
    letter-spacing: -1.5px;
    margin-bottom: 15px;
    text-transform: uppercase;
}

.title-first {
    display: block;
    color: var(--cyber-white);
}

.title-last {
    display: block;
}

.glow-text-orange {
    color: var(--neon-orange);
    text-shadow: 0 0 30px rgba(255, 93, 34, 0.35);
}

.hero-subtitle {
    font-family: var(--font-tech);
    font-size: 14px;
    font-weight: 500;
    letter-spacing: 1px;
    margin-bottom: 25px;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
}

.title-prefix {
    color: var(--cyber-gray);
    font-size: 10px;
}

.designation-text {
    color: var(--cyber-white);
    font-weight: 700;
}

.designation-experience {
    color: var(--neon-orange);
}

.hero-description {
    font-size: 1.1rem;
    line-height: 1.6;
    color: var(--cyber-gray);
    margin-bottom: 40px;
    max-width: 500px;
    font-weight: 300;
}

.cta-actions {
    display: flex;
    gap: 20px;
    margin-bottom: 50px;
}

.intro-stats {
    display: flex;
    gap: 35px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    padding-top: 30px;
    max-width: 500px;
}

.stat-box {
    display: flex;
    flex-direction: column;
}

.stat-num {
    font-family: var(--font-tech);
    font-size: 26px;
    font-weight: 700;
    line-height: 1.1;
    margin-bottom: 4px;
}

.stat-label {
    font-family: var(--font-tech);
    font-size: 8px;
    color: var(--cyber-gray);
    letter-spacing: 1px;
}

/* ==========================================================================
   RIGHT COLUMN: ZERO-GRAVITY 3D VIEWPORT
   ========================================================================== */

.viewport-3d-wrapper {
    position: relative;
    width: 100%;
    height: 550px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.viewport-instruction {
    position: absolute;
    top: -10px;
    font-family: var(--font-tech);
    font-size: 9px;
    color: var(--cyber-gray);
    letter-spacing: 1.5px;
    display: flex;
    align-items: center;
    gap: 8px;
    opacity: 0.6;
    z-index: 10;
}

.mouse-icon {
    animation: bounce-mouse 2s infinite;
}

@keyframes bounce-mouse {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-3px); }
}

.viewport-3d {
    width: 100%;
    height: 100%;
    position: relative;
    /* Establishes 3D space */
    transform-style: preserve-3d;
    perspective: 1200px;
}

/* ==========================================================================
   GLASSOMORPHIC FLOATING CARDS & DEPTH OF FIELD
   ========================================================================== */

.floating-card {
    position: absolute;
    border-radius: 6px;
    transition: transform var(--transition-slow), box-shadow var(--transition-medium);
    will-change: transform;
    animation: antigravity-drift 8s ease-in-out infinite alternate;
}

/* Custom 3D Drift animation with individual delays */
@keyframes antigravity-drift {
    0% {
        transform: translateY(0px) rotateX(0deg) rotateY(0deg);
    }
    100% {
        transform: translateY(-20px) rotateX(2deg) rotateY(-2deg);
    }
}

/* Glassomorphic Styling */
.glass-card {
    background: var(--bg-glass);
    border: 1px solid rgba(255, 255, 255, 0.06);
    backdrop-filter: blur(12px) saturate(180%);
    box-shadow: 
        0 20px 50px rgba(0, 0, 0, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
    overflow: hidden;
}

.glass-card:hover {
    border-color: rgba(255, 93, 34, 0.25);
    box-shadow: 
        0 25px 60px rgba(0, 0, 0, 0.4),
        0 0 20px rgba(255, 93, 34, 0.08),
        inset 0 1px 0 rgba(255, 255, 255, 0.15);
}

.card-glow {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 50% -20%, rgba(255, 255, 255, 0.08), transparent 70%);
    pointer-events: none;
}

/* Card Header */
.card-header {
    height: 38px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 16px;
    background: rgba(255, 255, 255, 0.01);
}

.window-controls {
    display: flex;
    gap: 6px;
}

.window-controls .dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.15);
}

.window-controls .dot-red { background: #ff5f56; }
.window-controls .dot-yellow { background: #ffbd2e; }
.window-controls .dot-green { background: #27c93f; }

.window-title {
    font-family: var(--font-tech);
    font-size: 9px;
    color: var(--cyber-gray);
    letter-spacing: 1px;
}

.window-telemetry {
    font-family: var(--font-tech);
    font-size: 8px;
    color: rgba(255, 93, 34, 0.55);
}

/* Card Body */
.card-body {
    padding: 16px;
}

/* 1. Main Project Window (Top Left / Centered Foreground) */
.main-project {
    width: 380px;
    top: 80px;
    left: 40px;
    z-index: 5;
}

.wireframe-image-wrapper {
    position: relative;
    width: 100%;
    height: 180px;
    background-color: rgba(0, 0, 0, 0.4);
    border-radius: 4px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.03);
    margin-bottom: 15px;
}

.wireframe-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.85;
    transition: transform var(--transition-medium), filter var(--transition-medium);
}

.glass-card:hover .wireframe-img {
    transform: scale(1.03);
    opacity: 1;
}

/* Cyber holographic scanner light animation */
.image-scanner {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(to bottom, var(--neon-orange), rgba(255, 93, 34, 0.05));
    box-shadow: 0 0 10px var(--neon-orange);
    opacity: 0.75;
    animation: scanner-sweep 4s ease-in-out infinite;
    pointer-events: none;
}

@keyframes scanner-sweep {
    0%, 100% { top: 0%; }
    50% { top: 98%; }
}

.card-details {
    display: flex;
    flex-direction: column;
}

.details-top {
    display: flex;
    justify-content: space-between;
    margin-bottom: 6px;
}

.project-tag {
    font-family: var(--font-tech);
    font-size: 8px;
    color: var(--neon-orange);
    letter-spacing: 0.8px;
}

.project-loc {
    font-family: var(--font-tech);
    font-size: 8px;
    color: rgba(130, 141, 159, 0.5);
}

.project-name {
    font-family: var(--font-tech);
    font-size: 15px;
    font-weight: 700;
    color: var(--cyber-white);
}

/* 2. Secondary Project Window (Bottom Right / Deep Background) */
.secondary-project {
    width: 320px;
    bottom: 50px;
    right: 20px;
    z-index: 3;
}

.secondary-project .wireframe-image-wrapper {
    height: 140px;
}

/* 3. Live System Code Card (Left Floating Overlay) */
.code-card {
    width: 250px;
    bottom: 80px;
    left: -20px;
    z-index: 6;
}

.code-stream {
    font-family: Consolas, Monaco, monospace;
    font-size: 10px;
    line-height: 1.5;
    color: rgba(245, 246, 249, 0.85);
    margin-bottom: 15px;
}

.code-line {
    white-space: nowrap;
}
.indent-1 { padding-left: 12px; }
.indent-2 { padding-left: 24px; }

.c-keyword { color: var(--neon-orange); }
.c-str { color: var(--cyber-blue); }
.c-fn { color: #ffeb3b; }
.c-type { color: #4caf50; }

.orange-text-tag {
    font-family: var(--font-tech);
    font-size: 8px;
    color: var(--neon-orange);
    animation: blink-dot 1s infinite;
}

.tactical-gauge {
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    padding-top: 12px;
}

.gauge-label {
    display: flex;
    justify-content: space-between;
    font-family: var(--font-tech);
    font-size: 8px;
    color: var(--cyber-gray);
    margin-bottom: 6px;
}

.gauge-bar-bg {
    height: 3px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 1px;
    overflow: hidden;
}

.gauge-bar-fill {
    height: 100%;
    background-color: var(--neon-orange);
    box-shadow: 0 0 5px var(--neon-orange);
    border-radius: 1px;
}

/* 4. Deep Background Blur Box Card (Weightless Wireframe) */
.wireframe-box-card {
    width: 180px;
    height: 120px;
    top: 40px;
    right: 60px;
    z-index: 2;
}

.wire-box-inner {
    position: relative;
    width: 100%;
    height: 100%;
    border: 1px dashed rgba(255, 255, 255, 0.12);
    display: flex;
    align-items: center;
    justify-content: center;
}

.wire-box-inner::before {
    content: '';
    position: absolute;
    width: calc(100% - 10px);
    height: calc(100% - 10px);
    border: 1px solid rgba(255, 93, 34, 0.08);
}

.wire-cross {
    position: absolute;
    width: 20px;
    height: 20px;
}
.wire-cross::before, .wire-cross::after {
    content: '';
    position: absolute;
    background: rgba(255, 255, 255, 0.2);
}
.wire-cross::before { top: 9px; left: 0; width: 20px; height: 1px; }
.wire-cross::after { top: 0; left: 9px; width: 1px; height: 20px; }

.wire-corner {
    position: absolute;
    width: 8px;
    height: 8px;
    border: 1px solid var(--neon-orange);
}
.wire-corner.tl { top: 2px; left: 2px; border-right: 0; border-bottom: 0; }
.wire-corner.tr { top: 2px; right: 2px; border-left: 0; border-bottom: 0; }
.wire-corner.bl { bottom: 2px; left: 2px; border-right: 0; border-top: 0; }
.wire-corner.br { bottom: 2px; right: 2px; border-left: 0; border-top: 0; }

.wire-label {
    position: absolute;
    bottom: -16px;
    left: 0;
    font-family: var(--font-tech);
    font-size: 7px;
    color: var(--cyber-gray);
    letter-spacing: 0.5px;
}

/* 5. Foreground Floating Accent Tracker (Blurry overlay) */
.wireframe-accent-card {
    width: 90px;
    height: 90px;
    top: 240px;
    right: 220px;
    z-index: 7;
    background: transparent;
}

.accent-frame-inner {
    width: 100%;
    height: 100%;
    border: 2px solid var(--neon-orange);
    border-radius: 50%;
    position: relative;
    box-shadow: 0 0 15px rgba(255, 93, 34, 0.25);
    animation: rotate-frame 8s linear infinite;
}

.accent-title {
    position: absolute;
    top: -14px;
    left: 50%;
    transform: translateX(-50%);
    font-family: var(--font-tech);
    font-size: 6px;
    color: var(--neon-orange);
    white-space: nowrap;
}

.accent-glow-dot {
    position: absolute;
    top: 6px;
    left: 50%;
    width: 6px;
    height: 6px;
    background: var(--cyber-white);
    border-radius: 50%;
    box-shadow: 0 0 8px var(--cyber-white);
}

@keyframes rotate-frame {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

/* UNREAL ENGINE STYLE DEPTH OF FIELD BLURS */
.bg-card-blur {
    filter: blur(3px);
    opacity: 0.45;
    pointer-events: none;
}

.fg-card-blur {
    filter: blur(1.5px);
    opacity: 0.8;
    pointer-events: none;
}

/* ==========================================================================
   INTERACTIVE COMMAND LINE TERMINAL
   ========================================================================== */

.terminal-section {
    margin-top: 80px;
    margin-bottom: 60px;
    padding-right: 40px;
}

.terminal-container {
    width: 100%;
    min-height: 380px;
    max-height: 480px;
    background: rgba(5, 7, 12, 0.8);
    border: 1px solid rgba(255, 255, 255, 0.05);
    box-shadow: 
        0 20px 45px rgba(0, 0, 0, 0.7),
        0 0 25px rgba(255, 93, 34, 0.03);
    display: flex;
    flex-direction: column;
}

.terminal-container:focus-within {
    border-color: rgba(255, 93, 34, 0.25);
    box-shadow: 
        0 20px 45px rgba(0, 0, 0, 0.8),
        0 0 35px rgba(255, 93, 34, 0.06);
}

.terminal-titlebar {
    height: 40px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 16px;
    background: rgba(255, 255, 255, 0.02);
}

.terminal-title-text {
    font-family: var(--font-tech);
    font-size: 10px;
    color: var(--cyber-gray);
    display: flex;
    align-items: center;
    gap: 8px;
    letter-spacing: 0.8px;
}

.title-terminal-icon {
    color: var(--neon-orange);
}

.terminal-status {
    font-family: var(--font-tech);
    font-size: 8px;
    color: var(--neon-orange);
    letter-spacing: 1px;
    background: var(--neon-orange-dim);
    padding: 2px 8px;
    border-radius: 2px;
}

.terminal-body {
    flex: 1;
    padding: 20px;
    overflow-y: auto;
    font-family: Consolas, Monaco, 'Courier New', monospace;
    font-size: 13px;
    display: flex;
    flex-direction: column;
}

.terminal-output {
    flex: 1;
}

.terminal-line {
    margin-bottom: 8px;
    line-height: 1.5;
    word-break: break-all;
    color: rgba(245, 246, 249, 0.85);
}

.terminal-line.system-msg {
    color: var(--cyber-gray);
    opacity: 0.6;
}

.terminal-line.info-msg {
    color: var(--cyber-white);
}

.terminal-line.error-msg {
    color: #ff5252;
}

.terminal-line.success-msg {
    color: #4caf50;
}

.terminal-line.user-cmd {
    color: var(--cyber-white);
    font-weight: 700;
}

.cmd-highlight {
    color: var(--neon-orange);
    font-weight: 700;
}

.terminal-input-line {
    display: flex;
    align-items: center;
    gap: 10px;
    border-top: 1px solid rgba(255, 255, 255, 0.02);
    padding-top: 15px;
    margin-top: auto;
}

.prompt {
    color: var(--neon-orange);
    font-weight: bold;
    white-space: nowrap;
}

#terminal-input {
    flex: 1;
    background: transparent;
    border: none;
    outline: none;
    color: var(--cyber-white);
    font-family: inherit;
    font-size: inherit;
}

/* ==========================================================================
   SYSTEM FOOTER
   ========================================================================== */

.system-footer {
    height: 50px;
    border-top: 1px solid rgba(255, 255, 255, 0.03);
    background: rgba(3, 4, 7, 0.95);
    display: grid;
    grid-template-columns: 1fr 1fr 2fr 1fr;
    align-items: center;
    padding: 0 50px;
    font-family: var(--font-tech);
    font-size: 9px;
    color: var(--cyber-gray);
    z-index: 100;
    margin-top: auto;
}

.footer-segment {
    border-right: 1px solid rgba(255, 255, 255, 0.03);
    padding: 0 15px;
    height: 100%;
    display: flex;
    align-items: center;
}

.footer-segment:last-child {
    border-right: none;
}

.footer-segment.text-center {
    justify-content: center;
}

.footer-segment.text-right {
    justify-content: flex-end;
}

.footer-segment .label {
    margin-right: 6px;
    opacity: 0.5;
}

.footer-segment .value {
    color: var(--cyber-white);
}

/* ==========================================================================
   MEDIA QUERIES (RESPONSIVENESS POILSH)
   ========================================================================== */

@media (max-width: 1400px) {
    .sidebar-right {
        position: static;
        width: 100%;
        margin-top: 40px;
        margin-bottom: 40px;
    }
    .main-content {
        padding-right: 50px;
    }
}

@media (max-width: 1100px) {
    .hero-section {
        grid-template-columns: 1fr;
        gap: 60px;
    }
    .viewport-3d-wrapper {
        height: 480px;
    }
    .main-project {
        left: 50%;
        transform: translateX(-50%) !important;
    }
    .secondary-project {
        right: 10px;
    }
}

@media (max-width: 768px) {
    .main-header {
        padding: 0 20px;
    }
    .nav-links {
        display: none; /* Mobile Menu simplification */
    }
    .sidebar-left {
        display: none;
    }
    .main-content {
        padding-left: 20px;
        padding-right: 20px;
    }
    .hero-title {
        font-size: 2.8rem;
    }
    .hero-subtitle {
        font-size: 11px;
    }
    .viewport-3d-wrapper {
        height: 400px;
    }
    .main-project {
        width: 100%;
        max-width: 340px;
    }
    .secondary-project {
        display: none; /* Remove background card on mobile */
    }
    .code-card {
        display: none;
    }
    .system-footer {
        grid-template-columns: 1fr;
        height: auto;
        padding: 20px;
        gap: 10px;
        text-align: center;
    }
    .footer-segment {
        border-right: none;
        justify-content: center;
        padding: 0;
    }
    .footer-segment.text-right {
        justify-content: center;
    }
}
