/* style.css - Tech-Noir Theme */

:root {
    --bg-primary: #05070A;
    --bg-secondary: #0A0D14;
    --bg-glass: rgba(16, 20, 28, 0.7);
    --border-glass: rgba(0, 240, 255, 0.15);
    
    --accent-cyan: #00F0FF;
    --accent-cyan-glow: rgba(0, 240, 255, 0.4);
    
    --accent-green: #39FF14;
    --accent-green-glow: rgba(57, 255, 20, 0.3);
    
    --text-main: #E2E8F0;
    --text-muted: #8B949E;
    
    --font-heading: 'Inter', sans-serif;
    --font-body: 'Inter', sans-serif;
    --font-mono: 'Fira Code', monospace;
    
    --transition-smooth: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

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

html, body {
    overflow-x: hidden;
    width: 100%;
    margin: 0;
    padding: 0;
    cursor: crosshair;
}

html {
    scroll-behavior: smooth;
    background-color: var(--bg-primary);
    color: var(--text-main);
    font-family: var(--font-body);
}

/* Custom Webkit Scrollbar */
::-webkit-scrollbar {
    width: 10px;
}
::-webkit-scrollbar-track {
    background: #000;
}
::-webkit-scrollbar-thumb {
    background: rgba(0, 240, 255, 0.2);
    border-radius: 5px;
    border: 2px solid #000;
    transition: var(--transition-smooth);
}
::-webkit-scrollbar-thumb:hover {
    background: var(--accent-cyan);
    box-shadow: 0 0 10px var(--accent-cyan-glow);
}

/* Live Telemetry HUD */
.telemetry-hud {
    position: fixed;
    top: 20px; right: 20px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    z-index: 10000;
    pointer-events: none;
}
.hud-box {
    background: rgba(0, 0, 0, 0.6);
    border: 1px solid rgba(0, 240, 255, 0.3);
    padding: 6px 12px;
    border-radius: 4px;
    text-align: right;
    box-shadow: 0 0 10px rgba(0, 240, 255, 0.1);
    backdrop-filter: blur(4px);
}
.hud-label {
    font-family: var(--font-mono);
    font-size: 0.55rem;
    color: var(--text-muted);
    letter-spacing: 1px;
}
.hud-value {
    font-family: var(--font-mono);
    font-size: 0.85rem;
    color: var(--accent-cyan);
    font-weight: bold;
    text-shadow: 0 0 8px var(--accent-cyan-glow);
}
@media (max-width: 768px) {
    .telemetry-hud { display: none; }
}

/* =========================================
   OMNI COMMAND PALETTE (CTRL+K)
========================================= */
#omni-palette {
    position: fixed;
    top: 0; left: 0;
    width: 100vw; height: 100vh;
    z-index: 999999;
    display: flex;
    justify-content: center;
    align-items: flex-start;
    padding-top: 15vh;
    opacity: 1;
    transition: opacity 0.2s ease, visibility 0.2s;
}
#omni-palette.omni-hidden {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}
.omni-overlay {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0, 5, 10, 0.85);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
}
.omni-modal {
    position: relative;
    width: 90%; max-width: 600px;
    background: rgba(10, 15, 25, 0.95);
    border: 1px solid var(--accent-cyan);
    box-shadow: 0 0 40px rgba(0, 240, 255, 0.15), inset 0 0 20px rgba(0, 240, 255, 0.05);
    border-radius: 12px;
    overflow: hidden;
    transform: translateY(0) scale(1);
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}
#omni-palette.omni-hidden .omni-modal {
    transform: translateY(-20px) scale(0.95);
}
.omni-header {
    display: flex;
    align-items: center;
    padding: 1.5rem;
    border-bottom: 1px solid rgba(0, 240, 255, 0.2);
}
.omni-icon {
    font-size: 1.2rem;
    color: var(--accent-cyan);
    margin-right: 15px;
}
#omni-input {
    flex: 1;
    background: transparent;
    border: none;
    outline: none;
    color: var(--text-main);
    font-family: var(--font-mono);
    font-size: 1.1rem;
    caret-color: var(--accent-cyan);
}
#omni-input::placeholder { color: rgba(255,255,255,0.3); }
.omni-shortcut-hint {
    font-family: var(--font-mono);
    font-size: 0.7rem;
    color: var(--text-muted);
    background: rgba(255,255,255,0.1);
    padding: 2px 6px;
    border-radius: 4px;
}
.omni-results {
    max-height: 350px;
    overflow-y: auto;
    padding: 0.5rem 0;
}
.omni-results::-webkit-scrollbar { width: 6px; }
.omni-results::-webkit-scrollbar-thumb { background: var(--accent-cyan); border-radius: 3px; }
.omni-item {
    padding: 1rem 1.5rem;
    display: flex;
    align-items: center;
    gap: 15px;
    color: var(--text-muted);
    font-family: var(--font-mono);
    font-size: 0.9rem;
    cursor: pointer;
    border-left: 2px solid transparent;
}
.omni-item.active, .omni-item:hover {
    background: rgba(0, 240, 255, 0.08);
    color: var(--accent-cyan);
    border-left: 2px solid var(--accent-cyan);
}
.omni-item i { width: 20px; text-align: center; font-size: 1.1rem;}
.omni-footer {
    padding: 0.8rem 1.5rem;
    border-top: 1px solid rgba(0, 240, 255, 0.1);
    display: flex;
    justify-content: flex-end;
    gap: 15px;
    background: rgba(0, 0, 0, 0.4);
}
.omni-footer span {
    font-family: var(--font-mono);
    font-size: 0.7rem;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    gap: 5px;
}
kbd {
    background: rgba(255,255,255,0.1);
    padding: 2px 5px;
    border-radius: 3px;
    border-bottom: 1px solid rgba(255,255,255,0.2);
    font-family: var(--font-body);
}

.ctrl-k-hint {
    position: fixed;
    bottom: 20px; left: 20px;
    background: rgba(0, 0, 0, 0.7);
    border: 1px solid var(--accent-cyan);
    padding: 8px 15px;
    border-radius: 6px;
    font-family: var(--font-mono);
    font-size: 0.75rem;
    color: var(--accent-cyan);
    z-index: 1000;
    cursor: cell;
    display: flex;
    align-items: center;
    gap: 10px;
    box-shadow: 0 0 10px rgba(0, 240, 255, 0.1);
    transition: all 0.3s ease;
}
.ctrl-k-hint:hover {
    background: rgba(0, 240, 255, 0.15);
    box-shadow: 0 0 20px var(--accent-cyan-glow);
    transform: translateY(-3px);
}
@media (max-width: 768px) {
    .ctrl-k-hint {
        top: 20px; bottom: auto;
        font-size: 0.65rem;
        padding: 6px 10px;
    }
}

/* Hazard Button (Easter Egg) */
.hazard-btn {
    border-color: #ff003c !important;
    color: #ff003c !important;
    background: repeating-linear-gradient(
        45deg,
        rgba(255, 0, 60, 0.05),
        rgba(255, 0, 60, 0.05) 10px,
        rgba(0, 0, 0, 0.2) 10px,
        rgba(0, 0, 0, 0.2) 20px
    ) !important;
    box-shadow: 0 0 15px rgba(255, 0, 60, 0.2) !important;
    animation: hazard-pulse 2s infinite;
}
.hazard-btn:hover {
    color: #fff !important;
    background: repeating-linear-gradient(
        45deg,
        rgba(255, 0, 60, 0.6),
        rgba(255, 0, 60, 0.6) 10px,
        rgba(0, 0, 0, 0.8) 10px,
        rgba(0, 0, 0, 0.8) 20px
    ) !important;
    box-shadow: 0 0 30px rgba(255, 0, 60, 0.6) !important;
    animation: shake 0.3s infinite;
}
@keyframes hazard-pulse {
    0% { box-shadow: 0 0 10px rgba(255, 0, 60, 0.2); }
    50% { box-shadow: 0 0 25px rgba(255, 0, 60, 0.5); }
    100% { box-shadow: 0 0 10px rgba(255, 0, 60, 0.2); }
}
@keyframes shake {
    0% { transform: translate(1px, 1px) rotate(0deg); }
    25% { transform: translate(-1px, -2px) rotate(-1deg); }
    50% { transform: translate(-2px, 0px) rotate(1deg); }
    75% { transform: translate(2px, 2px) rotate(0deg); }
    100% { transform: translate(1px, -1px) rotate(1deg); }
}
/* X-Ray Mode Override */
body.xray-mode * {
    background: transparent !important;
    border: 1px solid rgba(57, 255, 20, 0.3) !important;
    color: rgba(57, 255, 20, 0.8) !important;
    box-shadow: none !important;
    text-shadow: none !important;
    backdrop-filter: none !important;
    border-radius: 0 !important;
}
body.xray-mode { background: #000 !important; cursor: crosshair; }
body.xray-mode canvas { opacity: 0.15 !important; filter: hue-rotate(90deg); }

/* =========================================
   UNIVERSE LEVEL: ISOMETRIC 3D GOD MODE
========================================= */
html.god-mode, body.god-mode {
    overflow-x: visible !important;
    overflow-y: visible !important;
}
body.god-mode .app-container, body.god-mode .main-content {
    overflow: visible !important;
}
body {
    perspective: 3000px;
    perspective-origin: 50% 50%;
}
body.god-mode .app-container {
    transform-style: preserve-3d;
    transition: transform 1.5s cubic-bezier(0.25, 1, 0.25, 1);
    transform: rotateX(55deg) rotateZ(-35deg) scale(0.65) translate3d(15%, -10%, 0);
    position: relative;
    transform-origin: center center;
}
body.god-mode .main-content,
body.god-mode section,
body.god-mode .projects-grid,
body.god-mode .skills-container,
body.god-mode .backend-layer,
body.god-mode .pods-grid {
    transform-style: preserve-3d;
}

body.god-mode .card-glass, 
body.god-mode .infra-node, 
body.god-mode .terminal-window,
body.god-mode .portrait-mock {
    transform: translateZ(80px);
    box-shadow: -40px 60px 80px rgba(0,0,0,0.7), inset 0 0 20px rgba(0,240,255,0.2) !important;
    background: rgba(5, 10, 15, 0.95);
    border: 1px solid var(--accent-cyan) !important;
    transition: transform 1.5s cubic-bezier(0.175, 0.885, 0.32, 1.275), box-shadow 1.5s;
}

body.god-mode .infra-node:hover, body.god-mode .card-glass:hover {
    transform: translateZ(120px) scale(1.05);
}

body.god-mode .btn-primary {
    transform: translateZ(50px);
    box-shadow: -20px 30px 40px rgba(0,0,0,0.7) !important;
    transition: transform 1.5s;
}

/* Background canvas shift */
body.god-mode #cyberspace-globe {
    transform: scale(2) translateZ(-500px) rotate(180deg);
    opacity: 0.7;
    filter: hue-rotate(90deg) contrast(2);
    transition: all 2s cubic-bezier(0.25, 1, 0.25, 1);
}

body.god-mode .telemetry-hud {
    opacity: 0.15;
}
body.god-mode .sidebar {
    transform: translateZ(120px) translateX(-50px);
    position: absolute;
    height: 100vh;
    border-radius: 20px;
    border: 1px solid var(--accent-cyan);
    box-shadow: -20px 40px 60px rgba(0,0,0,0.8);
}
@media (max-width: 768px) {
    body.god-mode .app-container {
        transform: rotateX(55deg) rotateZ(-35deg) scale(0.4) translate3d(5%, 0, 0);
    }
}
/* Top Scroll Progress Line */
#scroll-progress {
    position: fixed;
    top: 0; left: 0;
    height: 3px;
    background: var(--accent-cyan);
    box-shadow: 0 0 10px var(--accent-cyan-glow), 0 0 15px var(--accent-cyan);
    z-index: 999999;
    width: 0%;
    transition: width 0.1s ease-out;
}

/* Flashlight Interactive Glow */
.flashlight {
    position: fixed;
    top: 0; left: 0;
    width: 100vw; height: 100vh;
    pointer-events: none;
    z-index: 9999;
    background: radial-gradient(circle 600px at var(--cursor-x, 50%) var(--cursor-y, 50%), rgba(0, 240, 255, 0.04), transparent 80%);
}

#devops-matrix {
    position: fixed;
    top: 0; left: 0;
    width: 100vw; height: 100vh;
    z-index: -3; /* Behind the tech grid */
    opacity: 0.25; /* Subtle matrix effect */
    pointer-events: none;
}

/* Boot Sequence Overlay */
#boot-overlay {
    position: fixed;
    top: 0; left: 0; width: 100vw; height: 100vh;
    background: #05070A;
    z-index: 100000;
    display: flex;
    flex-direction: column;
    padding: 2rem;
    font-family: var(--font-mono);
    color: #39FF14;
    font-size: 1rem;
    overflow: hidden;
    transition: opacity 0.8s ease;
}
#boot-overlay.fade-out {
    opacity: 0;
    pointer-events: none;
}
.boot-line {
    margin-bottom: 0.2rem;
    text-shadow: 0 0 5px rgba(57, 255, 20, 0.5);
}

/* Cyber Click Ripple Effect */
.cyber-ripple {
    position: fixed;
    border-radius: 50%;
    border: 2px solid var(--accent-cyan);
    box-shadow: 0 0 20px var(--accent-cyan), inset 0 0 10px var(--accent-cyan-glow);
    animation: ripple-anim 0.6s cubic-bezier(0.1, 0.8, 0.3, 1) forwards;
    pointer-events: none;
    z-index: 100000;
}
@keyframes ripple-anim {
    0% { width: 0; height: 0; opacity: 1; transform: translate(-50%, -50%); }
    100% { width: 150px; height: 150px; opacity: 0; transform: translate(-50%, -50%); }
}

/* --- Red Alert Easter Egg Theme --- */
body.red-alert {
    --bg-primary: #120005;
    --bg-secondary: #1a0005;
    --accent-cyan: #ff003c;
    --accent-cyan-glow: rgba(255, 0, 60, 0.4);
    --accent-green: #ff2a00;
    --border-glass: rgba(255, 0, 60, 0.2);
}

/* Cyber Cursor Trail */
#cursor-trail {
    position: fixed;
    top: 0; left: 0;
    width: 100vw; height: 100vh;
    pointer-events: none;
    z-index: 99999;
}
.trail-dot {
    position: absolute;
    width: 5px; height: 5px;
    background: var(--accent-cyan);
    box-shadow: 0 0 8px var(--accent-cyan-glow);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    animation: fadeTrail 0.4s ease-out forwards;
}
@keyframes fadeTrail {
    0% { opacity: 0.8; transform: translate(-50%, -50%) scale(1); }
    100% { opacity: 0; transform: translate(-50%, -50%) scale(0.1); }
}

/* Background grid effect */
body::before {
    content: '';
    position: fixed;
    top: 0; left: 0; width: 100vw; height: 100vh;
    background-image: 
        linear-gradient(to right, rgba(255,255,255,0.02) 1px, transparent 1px),
        linear-gradient(to bottom, rgba(255,255,255,0.02) 1px, transparent 1px);
    background-size: 50px 50px;
    z-index: -2;
    pointer-events: none;
}

/* Radial Glow */
body::after {
    content: '';
    position: fixed;
    top: -20%; left: 50%;
    transform: translateX(-50%);
    width: 60vw; height: 60vh;
    background: radial-gradient(circle, var(--accent-cyan-glow) 0%, transparent 60%);
    opacity: 0.15;
    z-index: -1;
    pointer-events: none;
    filter: blur(100px);
}

.app-container {
    display: flex;
    min-height: 100vh;
}

/* Typography elements */
h1, h2, h3, h4 { font-family: var(--font-heading); font-weight: 800; letter-spacing: -0.02em; }
p { line-height: 1.6; color: var(--text-muted); }
.highlight-metric { color: var(--accent-cyan); font-weight: 600; }

/* Reusables */
.card-glass {
    background: var(--bg-glass);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--border-glass);
    border-radius: 12px;
    padding: 2rem;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}
.card-glass:hover {
    border-color: rgba(0, 240, 255, 0.6);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.6), 0 0 30px var(--accent-cyan-glow);
    transform: translateY(-5px);
}

/* Sidebar */
.sidebar {
    width: 80px;
    position: fixed;
    left: 0; top: 0; bottom: 0;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: center;
    padding: 2rem 0;
    border-right: 1px solid rgba(255,255,255,0.05);
    background: rgba(5, 7, 10, 0.8);
    backdrop-filter: blur(10px);
    z-index: 100;
}

.sidebar-top a {
    color: var(--text-muted);
    font-size: 1.25rem;
    margin-bottom: 1.5rem;
    display: block;
    transition: var(--transition-smooth);
}
.sidebar-top a:hover { color: var(--accent-cyan); transform: scale(1.1); }
.universe-btn {
    margin-top: 2rem;
    color: #ff00c8 !important;
    animation: pulse-pink 2s infinite;
}
@keyframes pulse-pink {
    0% { text-shadow: 0 0 10px #ff00c8; transform: scale(1); }
    50% { text-shadow: 0 0 20px #ff00c8, 0 0 30px #ff00c8; transform: scale(1.3); }
    100% { text-shadow: 0 0 10px #ff00c8; transform: scale(1); }
}

.sidebar-text-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    flex-grow: 1;
    justify-content: flex-end;
    gap: 2rem;
}

.vertical-text {
    writing-mode: vertical-rl;
    text-orientation: mixed;
    font-family: var(--font-mono);
    color: var(--text-muted);
    font-size: 0.85rem;
    letter-spacing: 2px;
}

.vertical-line {
    width: 1px;
    height: 60px;
    background: linear-gradient(to bottom, var(--text-muted), transparent);
}

/* Main Content */
.main-content {
    margin-left: 80px;
    flex: 1;
    padding: 0 5%;
    width: calc(100% - 80px);
}

/* Header */
header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 2rem 0;
    max-width: 1200px;
    margin: 0 auto;
    width: 100%;
}
.logo {
    font-family: var(--font-heading);
    font-weight: 800;
    font-size: 1.5rem;
    letter-spacing: 1px;
}
.accent-dot { color: var(--accent-cyan); }

nav { display: flex; gap: 2.5rem; }
.nav-link {
    text-decoration: none;
    color: var(--text-muted);
    font-family: var(--font-mono);
    font-size: 0.85rem;
    transition: var(--transition-smooth);
    position: relative;
}
.nav-link:hover, .nav-link.active {
    color: var(--text-main);
}
.nav-link::after {
    content: '';
    position: absolute;
    bottom: -4px; left: 0;
    width: 0; height: 1px;
    background: var(--accent-cyan);
    transition: width 0.3s;
}
.nav-link:hover::after, .nav-link.active::after {
    width: 100%;
}

.btn-primary {
    text-decoration: none;
    background: rgba(0, 240, 255, 0.1);
    color: var(--accent-cyan);
    border: 1px solid var(--accent-cyan);
    padding: 0.6rem 1.5rem;
    border-radius: 4px;
    font-family: var(--font-mono);
    font-size: 0.85rem;
    font-weight: 600;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    box-shadow: 0 0 10px rgba(0, 240, 255, 0.1);
    position: relative;
    overflow: hidden;
}
.btn-primary::before {
    content: '';
    position: absolute;
    top: 50%; left: 50%;
    width: 0; height: 0;
    background: rgba(0, 240, 255, 0.2);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: width 0.4s ease, height 0.4s ease;
    z-index: -1;
}
.btn-primary:hover::before {
    width: 300px; height: 300px;
}
.btn-primary:hover {
    background: rgba(0, 240, 255, 0.15);
    color: #fff;
    border-color: #fff;
    box-shadow: 0 0 20px var(--accent-cyan), inset 0 0 10px var(--accent-cyan);
    transform: translateY(-2px);
}

.btn-secondary {
    display: inline-block;
    text-decoration: none;
    color: var(--text-main);
    border-bottom: 1px dashed var(--accent-cyan);
    padding-bottom: 2px;
    font-family: var(--font-mono);
    font-size: 0.9rem;
    transition: var(--transition-smooth);
    margin-top: 1rem;
}
.btn-secondary:hover { color: var(--accent-cyan); text-shadow: 0 0 8px var(--accent-cyan-glow); }


/* Sections Generic */
section {
    padding: 6rem 0;
    max-width: 1200px;
    margin: 0 auto;
    width: 100%;
}

.section-header { margin-bottom: 4rem; }
.path {
    font-family: var(--font-mono);
    color: var(--accent-green);
    font-size: 0.85rem;
    display: block;
    margin-bottom: 0.5rem;
}
.blink { animation: blink 1s step-end infinite; }
@keyframes blink { 50% { opacity: 0; } }

.section-title { font-size: 2.5rem; }

/* Hero Section */
.hero-section {
    position: relative;
    display: flex;
    align-items: center;
    min-height: calc(100vh - 100px);
    gap: 4rem;
}
.hero-content { flex: 1; }

.system-status {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.4rem 1rem;
    background: rgba(57, 255, 20, 0.1);
    border: 1px solid rgba(57, 255, 20, 0.2);
    border-radius: 20px;
    margin-bottom: 2rem;
}
.status-dot {
    width: 8px; height: 8px;
    border-radius: 50%;
    background: var(--accent-green);
    box-shadow: 0 0 8px var(--accent-green);
    animation: pulse 2s infinite;
}
@keyframes pulse {
    0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(57, 255, 20, 0.7); }
    70% { transform: scale(1); box-shadow: 0 0 0 10px rgba(57, 255, 20, 0); }
    100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(57, 255, 20, 0); }
}
.status-text {
    font-family: var(--font-mono);
    color: var(--accent-green);
    font-size: 0.75rem;
    font-weight: 600;
}

.hero-title { 
    font-size: 4.5rem; 
    margin-bottom: 0.5rem; 
    line-height: 1.1; 
    position: relative;
    display: inline-block;
}
.hero-title:hover {
    animation: glitch-anim 0.2s linear infinite;
    color: var(--accent-cyan);
    text-shadow: 2px 0 var(--accent-green), -2px 0 #ff00c8;
}

@keyframes glitch-anim {
    0% { transform: translate(0) }
    20% { transform: translate(-2px, 2px) }
    40% { transform: translate(-2px, -2px) }
    60% { transform: translate(2px, 2px) }
    80% { transform: translate(2px, -2px) }
    100% { transform: translate(0) }
}

.hero-subtitle {
    font-family: var(--font-mono);
    color: var(--accent-cyan);
    font-size: 1.25rem;
    margin-bottom: 2rem;
    font-weight: 400;
}
.hero-description {
    font-size: 1.1rem;
    max-width: 600px;
    margin-bottom: 2.5rem;
}

/* Hero Visual Placeholder */
.hero-visual {
    flex: 1;
    display: flex;
    justify-content: center;
    position: relative;
}
.portrait-container {
    position: relative;
    width: 350px; height: 450px;
}
.portrait-mock {
    width: 100%; height: 100%;
    background: linear-gradient(145deg, #11151d, #080a0e);
    border-radius: 20px;
    border: 1px solid var(--border-glass);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: inset 0 0 40px rgba(0,0,0,0.8);
    position: relative;
    z-index: 2;
    overflow: hidden;
}
.profile-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 20px;
    opacity: 0.85;
    mix-blend-mode: luminosity; /* gives it a cool monochrome/tech feel */
    transition: var(--transition-smooth);
}
.portrait-mock:hover .profile-image {
    opacity: 1;
    mix-blend-mode: normal;
    transform: scale(1.03);
    filter: contrast(1.1) brightness(1.1);
}

/* AI Computer Vision Bounding Box */
.ai-bounding-box {
    position: absolute;
    top: 50%; left: 50%;
    width: 65%; height: 60%;
    transform: translate(-50%, -50%) scale(1.1);
    border: 1px solid rgba(57, 255, 20, 0);
    opacity: 0;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    pointer-events: none;
    z-index: 10;
}
.portrait-mock:hover .ai-bounding-box {
    opacity: 1;
    transform: translate(-50%, -55%) scale(1);
    border-color: rgba(57, 255, 20, 0.2);
    box-shadow: inset 0 0 20px rgba(57, 255, 20, 0.1);
}

.corner {
    position: absolute;
    width: 15px; height: 15px;
    border: 2px solid var(--accent-green);
    box-shadow: 0 0 8px var(--accent-green-glow);
}
.top-left { top: -2px; left: -2px; border-right: none; border-bottom: none; }
.top-right { top: -2px; right: -2px; border-left: none; border-bottom: none; }
.bottom-left { bottom: -2px; left: -2px; border-right: none; border-top: none; }
.bottom-right { bottom: -2px; right: -2px; border-left: none; border-top: none; }

.ai-label {
    position: absolute;
    top: -20px; left: -2px;
    font-family: var(--font-mono);
    font-size: 0.65rem;
    font-weight: 800;
    background: var(--accent-green);
    color: #000;
    padding: 2px 6px;
    letter-spacing: 1px;
}
.ai-class {
    position: absolute;
    bottom: -20px; left: -2px;
    font-family: var(--font-mono);
    font-size: 0.6rem;
    color: var(--accent-green);
    background: rgba(0,0,0,0.8);
    padding: 2px 4px;
    border: 1px solid var(--accent-green);
}
.ai-conf {
    position: absolute;
    bottom: -40px; left: -2px;
    font-family: var(--font-mono);
    font-size: 0.6rem;
    color: var(--accent-green);
    background: rgba(0,0,0,0.8);
    padding: 2px 4px;
    border: 1px solid var(--accent-green);
}
.scan-line {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 2px;
    background: var(--accent-green);
    box-shadow: 0 0 10px var(--accent-green);
    opacity: 0;
}
.portrait-mock:hover .scan-line {
    opacity: 0.8;
    animation: scan-down 2s linear infinite;
}
@keyframes scan-down {
    0% { top: 0; opacity: 0; }
    10% { opacity: 0.8; }
    90% { opacity: 0.8; }
    100% { top: 100%; opacity: 0; }
}

.large-icon { font-size: 6rem; color: rgba(255,255,255,0.05); }

.floating-badge {
    position: absolute;
    bottom: -20px; right: -30px;
    background: rgba(10, 13, 20, 0.9);
    border: 1px solid var(--accent-cyan);
    padding: 1rem 1.5rem;
    border-radius: 8px;
    display: flex;
    align-items: center;
    gap: 1rem;
    z-index: 3;
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
    backdrop-filter: blur(5px);
    animation: float 6s ease-in-out infinite;
}
@keyframes float {
    0% { transform: translateY(0px); }
    50% { transform: translateY(-10px); }
    100% { transform: translateY(0px); }
}
.floating-badge i { color: var(--accent-cyan); font-size: 1.5rem; }
.floating-badge span { font-size: 0.85rem; font-weight: 600; letter-spacing: 0.5px; }

.glow-orb {
    position: absolute;
    width: 250px; height: 250px;
    background: var(--accent-cyan-glow);
    border-radius: 50%;
    filter: blur(80px);
    top: 50%; left: 50%;
    transform: translate(-50%, -50%);
    z-index: 1;
}

/* Timeline */
.timeline {
    position: relative;
    padding-left: 2rem;
}
.timeline::before {
    content: '';
    position: absolute;
    left: 0; top: 0; bottom: 0;
    width: 1px;
    background: linear-gradient(to bottom, var(--accent-cyan), transparent);
}
.timeline-item { position: relative; margin-bottom: 3rem; }
.timeline-dot {
    position: absolute;
    left: -2.4rem; top: 1.5rem;
    width: 12px; height: 12px;
    border-radius: 50%;
    background: var(--bg-primary);
    border: 2px solid var(--accent-cyan);
    box-shadow: 0 0 10px var(--accent-cyan-glow);
}
.role-header { margin-bottom: 1.5rem; }
.role-header h3 { font-size: 1.5rem; color: var(--text-main); margin-bottom: 0.25rem; }
.company { color: var(--accent-cyan); font-weight: 600; margin-right: 1rem; }
.duration { font-family: var(--font-mono); font-size: 0.85rem; color: var(--text-muted); }
.role-highlights { list-style-type: none; margin-bottom: 1.5rem; }
.role-highlights li {
    position: relative;
    padding-left: 1.5rem;
    margin-bottom: 0.8rem;
    color: var(--text-muted);
}
.role-highlights li::before {
    content: '>';
    position: absolute;
    left: 0; top: 0;
    color: var(--accent-green);
    font-family: var(--font-mono);
}

.tech-tags { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.tag {
    background: rgba(0, 240, 255, 0.1);
    color: var(--accent-cyan);
    padding: 0.4rem 0.8rem;
    border-radius: 4px;
    font-family: var(--font-mono);
    font-size: 0.75rem;
    border: 1px solid rgba(0, 240, 255, 0.2);
}
.tag.outline {
    background: transparent;
    color: var(--text-main);
    border: 1px solid rgba(255,255,255,0.1);
}

/* Projects Grid */
.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 2rem;
}
.project-card { padding: 0; overflow: hidden; display: flex; flex-direction: column; }
.project-visual {
    height: 200px;
    background: #0D1117;
    position: relative;
    display: flex;
    align-items: center; justify-content: center;
    border-bottom: 1px solid rgba(255,255,255,0.05);
}
.project-info { padding: 2rem; flex: 1; display: flex; flex-direction: column; }
.project-info h3 { margin-bottom: 1rem; font-size: 1.25rem; }
.project-info p { margin-bottom: 1.5rem; flex: 1; }

/* Abstract visual elements for projects */
.abstract-nodes { position: relative; width: 100px; height: 100px; animation: float 5s ease-in-out infinite alternate; }
.node {
    width: 12px; height: 12px;
    background: var(--accent-cyan);
    border-radius: 50%;
    position: absolute;
    box-shadow: 0 0 10px var(--accent-cyan);
}
.n1 { top: 15px; left: 45px; }
.n2 { top: 45px; left: 15px; }
.n3 { top: 55px; left: 75px; }
.connection-lines {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
}

.ai-pulse { position: relative; width: 80px; height: 80px; display: flex; align-items: center; justify-content: center;}
.circle {
    position: absolute;
    border-radius: 50%;
    border: 1px solid var(--accent-cyan);
    animation: pulse-ring 3s cubic-bezier(0.215, 0.61, 0.355, 1) infinite;
}
.c1 { width: 20px; height: 20px; animation-delay: 0s; }
.c2 { width: 40px; height: 40px; animation-delay: 0.5s; }
.c3 { width: 60px; height: 60px; animation-delay: 1s; }
@keyframes pulse-ring {
    0% { transform: scale(0.5); opacity: 0; }
    50% { opacity: 1; }
    100% { transform: scale(1.5); opacity: 0; }
}

/* Skills */
.skills-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}
.category-title {
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.8rem;
    font-size: 1.1rem;
    color: var(--text-main);
}
.category-title i { color: var(--accent-cyan); font-size: 1.2rem; }
.skill-category .tech-tags { gap: 0.8rem; }
.skill-category .tag.outline:hover {
    border-color: var(--accent-cyan);
    color: var(--accent-cyan);
}

/* Terminal Section */
.terminal-window {
    background: #0A0A0A;
    border-radius: 10px;
    border: 1px solid #333;
    overflow: hidden;
    box-shadow: 0 20px 50px rgba(0,0,0,0.8);
    max-width: 900px;
    margin: 0 auto 4rem auto;
}
.terminal-header {
    background: #1A1A1A;
    padding: 0.8rem 1rem;
    display: flex;
    align-items: center;
    border-bottom: 1px solid #333;
    position: relative;
}
.mac-btns { display: flex; gap: 8px; }
.mac-btns span { width: 12px; height: 12px; border-radius: 50%; }
.close { background: #FF5F56; }
.min { background: #FFBD2E; }
.max { background: #27C93F; }
.terminal-title {
    position: absolute;
    left: 50%; transform: translateX(-50%);
    font-family: var(--font-mono);
    color: #666;
    font-size: 0.8rem;
}
.terminal-body {
    padding: 1.5rem;
    font-family: var(--font-mono);
    font-size: 0.9rem;
    color: var(--accent-green);
    min-height: 250px;
    line-height: 1.6;
}
.term-line { margin-bottom: 0.5rem; }
.term-prompt { color: var(--accent-cyan); margin-right: 10px;}
.term-success { color: var(--accent-green); }
.term-info { color: #888; }
.cursor {
    display: inline-block;
    width: 8px; height: 15px;
    background: var(--accent-green);
    animation: blink 1s step-end infinite;
    vertical-align: middle;
}

/* Interactive Input Line */
.terminal-input-line {
    display: flex;
    align-items: center;
    margin-top: 0.5rem;
}
.term-input-field {
    background: transparent;
    border: none;
    color: var(--accent-green);
    font-family: var(--font-mono);
    font-size: 0.9rem;
    outline: none;
    flex: 1;
    caret-color: var(--accent-green);
}

/* =========================================
   INFRA ARCHITECTURE VISUALIZER
========================================= */
.architecture-section {
    padding: 6rem 0 2rem;
}
.infra-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 4rem 2rem;
    position: relative;
    overflow: hidden;
    gap: 15px;
    margin-top: 2rem;
}
@media (min-width: 1000px) {
    .infra-container {
        flex-direction: row;
        flex-wrap: wrap;
        justify-content: center;
        align-items: center;
    }
}

.infra-node {
    background: rgba(0, 0, 0, 0.7);
    border: 1px solid rgba(0, 240, 255, 0.2);
    border-radius: 8px;
    padding: 1.5rem 1rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    width: 140px;
    cursor: crosshair;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow: 0 0 15px rgba(0, 240, 255, 0.05);
    position: relative;
    z-index: 2;
}
.infra-node i {
    font-size: 2.5rem;
    color: var(--accent-cyan);
    transition: all 0.3s ease;
}
.infra-node span {
    font-family: var(--font-mono);
    font-size: 0.8rem;
    text-align: center;
    color: #e2e8f0;
    font-weight: bold;
}
.infra-node:hover {
    transform: translateY(-8px) scale(1.05);
    border-color: var(--accent-cyan);
    box-shadow: 0 10px 25px var(--accent-cyan-glow);
    background: rgba(0, 240, 255, 0.05);
}
.infra-node:hover i {
    color: var(--accent-green);
    text-shadow: 0 0 15px var(--accent-green-glow);
}

/* Specific Node Themes */
.ml-node i { color: #ff00c8; }
.ml-node:hover i { color: #ff00c8; text-shadow: 0 0 15px rgba(255,0,200,0.6); }
.ml-node:hover { border-color: #ff00c8; box-shadow: 0 10px 25px rgba(255,0,200,0.2); background: rgba(255,0,200,0.05); }

.k8s-cluster {
    border: 1px dashed rgba(57, 255, 20, 0.4);
    border-radius: 12px;
    padding: 2.5rem 1.5rem 1.5rem;
    position: relative;
    background: rgba(57, 255, 20, 0.02);
    box-shadow: inset 0 0 30px rgba(57, 255, 20, 0.03);
    margin: 10px;
}
.cluster-label {
    position: absolute;
    top: -12px; left: 20px;
    background: var(--bg-primary);
    padding: 2px 12px;
    font-family: var(--font-mono);
    font-size: 0.8rem;
    color: var(--accent-green);
    border: 1px solid var(--accent-green);
    border-radius: 4px;
    font-weight: bold;
    letter-spacing: 1px;
    box-shadow: 0 0 10px var(--accent-green-glow);
}
.pods-grid {
    display: flex;
    gap: 1.5rem;
    flex-wrap: wrap;
    justify-content: center;
}

.backend-layer {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 1rem;
    width: 100%;
}

/* Connecting Paths & Animated Data Packets */
.infra-path {
    position: relative;
    background: rgba(255, 255, 255, 0.1);
    z-index: 1;
}
.infra-path.horizontal {
    width: 2px;
    height: 40px;
    margin: 5px 0;
}
@media (min-width: 1000px) {
    .infra-path.horizontal {
        width: 50px;
        height: 2px;
        margin: 0 10px;
    }
    .k8s-cluster { margin: 0 10px; }
}

.data-packet {
    position: absolute;
    width: 8px; height: 8px;
    background: var(--accent-green);
    border-radius: 50%;
    box-shadow: 0 0 12px var(--accent-green), 0 0 20px var(--accent-green);
    top: 50%; left: 50%;
    transform: translate(-50%, -50%);
    opacity: 0;
}

/* Data Flow Animations */
@media (min-width: 1000px) {
    .horizontal .data-packet { animation: packet-move-h 1.5s infinite linear; }
}
@media (max-width: 999px) {
    .horizontal .data-packet { animation: packet-move-v 1.5s infinite linear; }
}
@keyframes packet-move-h {
    0% { left: 0%; opacity: 0; }
    20% { opacity: 1; }
    80% { opacity: 1; }
    100% { left: 100%; opacity: 0; }
}
@keyframes packet-move-v {
    0% { top: 0%; opacity: 0; }
    20% { opacity: 1; }
    80% { opacity: 1; }
    100% { top: 100%; opacity: 0; }
}

/* Hover Tooltip */
.infra-tooltip {
    position: absolute;
    bottom: 20px;
    font-family: var(--font-mono);
    font-size: 1rem;
    color: var(--accent-green);
    background: rgba(0,0,0,0.85);
    padding: 0.8rem 1.5rem;
    border-radius: 4px;
    border: 1px solid var(--accent-green);
    box-shadow: 0 0 15px rgba(57, 255, 20, 0.2);
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 20;
    font-weight: bold;
    letter-spacing: 0.5px;
}

/* Footer */
footer {
    border-top: 1px solid rgba(255,255,255,0.05);
    padding: 3rem 0;
}
.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-family: var(--font-mono);
    font-size: 0.8rem;
    color: #666;
}
.footer-link {
    color: var(--accent-cyan);
    text-decoration: none;
    transition: var(--transition-smooth);
}
.footer-link:hover { text-shadow: 0 0 10px var(--accent-cyan-glow); }

/* Responsive */
@media (max-width: 992px) {
    .hero-section { flex-direction: column; margin-top: 5rem; text-align: center; }
    .hero-visual { order: -1; }
    .system-status { margin: 0 auto 2rem auto; }
}

@media (max-width: 768px) {
    .sidebar { display: none; }
    .main-content { margin-left: 0; padding: 0 1rem; width: 100%; box-sizing: border-box; }
    header { flex-direction: column; gap: 1rem; }
    nav { gap: 1.5rem; flex-wrap: wrap; justify-content: center; }
    
    .hero-title { font-size: 3rem; }
    .hero-subtitle { font-size: 1.1rem; }
    .section-title { font-size: 2rem; margin-bottom: 2rem; }
    
    .infra-container { padding: 2rem 1rem; }
    .k8s-cluster { padding: 2rem 1rem 1rem; }
    .cluster-label { font-size: 0.7rem; left: 10px; }
    .infra-node { width: 130px; padding: 1rem 0.5rem; }
    
    .portrait-container { width: 300px; height: 380px; max-width: 100%; margin: 0 auto; }
    .floating-badge { right: 10px; bottom: -10px; font-size: 0.8rem; padding: 0.8rem 1rem; }
    
    body { width: 100vw; position: relative; }
    .app-container { overflow-x: hidden; width: 100%; }
}

@media (max-width: 480px) {
    .hero-title { font-size: 2.2rem; }
    .nav-link { font-size: 0.75rem; }
    .portrait-container { width: 250px; height: 320px; }
    .infra-node { width: 110px; }
    .infra-node span { font-size: 0.7rem; }
}
