/* ==========================================================================
   CYBERPUNK MAINFRAME DESIGN SYSTEM - BY ANTIGRAVITY FOR PHAN DOAN HOANG
   ========================================================================== */

/* --- CORE CUSTOM PROPERTIES --- */
:root {
    --bg-dark: #040409;
    --bg-card: rgba(8, 8, 16, 0.85);
    --border-color: rgba(0, 240, 255, 0.16);
    
    /* Neon Glow Palette */
    --neon-cyan: #00f0ff;
    --neon-purple: #bd00ff;
    --neon-green: #39ff14;
    --neon-yellow: #ffea00;
    --neon-red: #ff0055;
    
    /* Core Glow Dropshadows */
    --glow-cyan: 0 0 10px rgba(0, 240, 255, 0.4), 0 0 20px rgba(0, 240, 255, 0.2);
    --glow-purple: 0 0 10px rgba(189, 0, 255, 0.4), 0 0 20px rgba(189, 0, 255, 0.2);
    --glow-green: 0 0 10px rgba(57, 255, 20, 0.4), 0 0 20px rgba(57, 255, 20, 0.2);
    --glow-yellow: 0 0 10px rgba(255, 234, 0, 0.4), 0 0 20px rgba(255, 234, 0, 0.2);
    --glow-red: 0 0 12px rgba(255, 0, 85, 0.6), 0 0 25px rgba(255, 0, 85, 0.3);
    
    /* Font Families */
    --font-orbitron: 'Orbitron', sans-serif;
    --font-mono: 'Share Tech Mono', monospace;
    --font-inter: 'Inter', sans-serif;
    
    --glitch-speed: 2.5s;
}

/* --- RESET & BASIC STYLES --- */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    scroll-behavior: smooth;
}

body {
    background-color: var(--bg-dark);
    color: #e2e8f0;
    font-family: var(--font-inter);
    overflow-x: hidden;
    min-height: 100vh;
    position: relative;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}
::-webkit-scrollbar-track {
    background: #020205;
}
::-webkit-scrollbar-thumb {
    background: rgba(0, 240, 255, 0.3);
    border-radius: 3px;
    box-shadow: inset 0 0 6px rgba(0, 240, 255, 0.3);
}
::-webkit-scrollbar-thumb:hover {
    background: var(--neon-cyan);
    box-shadow: var(--glow-cyan);
}

/* --- CANVAS & RETRO CRT FILTER EFFECTS --- */
#matrix-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: -2;
    opacity: 0.45;
    pointer-events: none;
}

/* CRT Screen Flicker */
.crt-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle, rgba(0, 0, 0, 0) 55%, rgba(0, 0, 0, 0.7) 100%);
    pointer-events: none;
    z-index: 100;
}

.scanlines {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        rgba(18, 16, 16, 0) 50%, 
        rgba(0, 0, 0, 0.25) 50%
    );
    background-size: 100% 4px;
    z-index: 99;
    pointer-events: none;
    opacity: 0.8;
}

/* --- GLOBAL LAYOUT ELEMENTS --- */
#mainframe {
    max-width: 1440px;
    margin: 40px auto;
    padding: 20px;
    border: 1px solid rgba(0, 240, 255, 0.18);
    background: var(--bg-card);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.7), inset 0 0 45px rgba(0, 240, 255, 0.05);
    position: relative;
    border-radius: 8px;
    z-index: 10;
}

/* Header Section */
.mainframe-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 25px;
    border-bottom: 2px solid rgba(0, 240, 255, 0.3);
    background: rgba(4, 4, 8, 0.7);
    position: relative;
    margin-bottom: 25px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.header-left, .header-right {
    display: flex;
    align-items: center;
    font-size: 0.8rem;
    letter-spacing: 1.5px;
}

.status-indicator {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    margin-right: 8px;
    display: inline-block;
}

.status-indicator.online {
    background-color: var(--neon-green);
    box-shadow: 0 0 10px var(--neon-green);
    animation: pulse-green 1.5s infinite alternate;
}

.system-tag {
    color: rgba(255, 255, 255, 0.6);
}

.divider {
    color: rgba(0, 240, 255, 0.3);
    margin: 0 12px;
}

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

.main-title {
    font-size: 1.25rem;
    font-weight: 800;
    color: var(--neon-cyan);
    text-shadow: var(--glow-cyan);
    letter-spacing: 2px;
}

.sys-stat {
    color: rgba(255, 255, 255, 0.7);
}

/* Sound Switcher Control */
.system-controls {
    position: fixed;
    bottom: 25px;
    right: 25px;
    z-index: 200;
}

.system-controls button {
    background: rgba(10, 10, 18, 0.9);
    border: 1px solid var(--neon-cyan);
    color: var(--neon-cyan);
    padding: 10px 18px;
    border-radius: 30px;
    cursor: pointer;
    font-family: var(--font-orbitron);
    font-size: 0.75rem;
    letter-spacing: 1.5px;
    display: flex;
    align-items: center;
    gap: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.5);
    transition: all 0.3s ease;
}

.system-controls button:hover {
    box-shadow: var(--glow-cyan);
    background: var(--neon-cyan);
    color: var(--bg-dark);
    transform: translateY(-2px);
}

.icon-sound {
    width: 14px;
    height: 14px;
}

/* Navigation Bar */
.mainframe-nav {
    display: flex;
    justify-content: flex-start;
    gap: 15px;
    margin-bottom: 30px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    padding-bottom: 10px;
}

.nav-item {
    color: rgba(255, 255, 255, 0.5);
    text-decoration: none;
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 1.5px;
    padding: 8px 16px;
    border: 1px solid transparent;
    transition: all 0.3s ease;
    position: relative;
}

.nav-item:hover {
    color: var(--neon-cyan);
    border: 1px solid rgba(0, 240, 255, 0.2);
    background: rgba(0, 240, 255, 0.02);
}

.nav-item.active {
    color: var(--neon-cyan);
    border: 1px solid var(--neon-cyan);
    background: rgba(0, 240, 255, 0.05);
    box-shadow: inset 0 0 10px rgba(0, 240, 255, 0.1);
    text-shadow: var(--glow-cyan);
}

.nav-item.active::before {
    content: '';
    position: absolute;
    bottom: -11px;
    left: 0;
    width: 100%;
    height: 2px;
    background: var(--neon-cyan);
    box-shadow: var(--glow-cyan);
}

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

/* --- CYBER CARD COMPONENT --- */
.cyber-card {
    background: rgba(12, 12, 24, 0.65);
    border: 1px solid var(--border-color);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    position: relative;
    border-radius: 4px;
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    overflow: hidden;
}

.card-edge-top {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: linear-gradient(90deg, var(--neon-purple), var(--neon-cyan));
}

.card-header {
    padding: 15px 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: rgba(6, 6, 12, 0.85);
}

.card-header-icon {
    color: var(--neon-cyan);
    font-weight: bold;
    text-shadow: var(--glow-cyan);
}

.card-header h2 {
    font-size: 0.9rem;
    font-weight: 700;
    letter-spacing: 2px;
    color: #f8fafc;
}

.card-status-blink {
    width: 6px;
    height: 6px;
    background-color: var(--neon-purple);
    border-radius: 50%;
    box-shadow: 0 0 6px var(--neon-purple);
    animation: pulse-purple 1.2s infinite alternate;
}

.card-body {
    padding: 20px;
}

/* Hover effects for interactive cards */
.cyber-card.hover-glow:hover {
    border-color: rgba(0, 240, 255, 0.45);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.6), 0 0 20px rgba(0, 240, 255, 0.15);
    transform: translateY(-3px);
}

.cyber-card.hover-glow:hover .card-edge-top {
    background: linear-gradient(90deg, var(--neon-cyan), var(--neon-green));
}

/* Section Dividers */
.section-divider {
    grid-column: 1 / -1;
    display: flex;
    align-items: center;
    margin: 45px 0 25px 0;
}

.section-divider .line {
    flex-grow: 1;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(0, 240, 255, 0.2), transparent);
}

.section-divider h3 {
    padding: 0 20px;
    font-size: 0.95rem;
    color: var(--neon-cyan);
    text-shadow: var(--glow-cyan);
    letter-spacing: 3px;
    font-weight: 700;
}

/* --- HERO & CONSOLE (SECTION 1) --- */
.hero-console-section {
    display: grid;
    grid-template-columns: 1.15fr 1.85fr;
    gap: 25px;
    margin-bottom: 25px;
}

.hero-layout {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 25px;
}

/* Hologram Photo Effect */
.hologram-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
}

.hologram-container {
    width: 190px;
    height: 240px;
    border: 2px solid var(--neon-cyan);
    box-shadow: 0 0 25px rgba(0, 240, 255, 0.3), inset 0 0 20px rgba(0, 240, 255, 0.2);
    background: rgba(0, 240, 255, 0.04);
    position: relative;
    overflow: hidden;
    animation: holo-float 5s ease-in-out infinite;
}

.hologram-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: brightness(1.1) contrast(1.1) saturate(0.9) sepia(0.15) hue-rotate(185deg);
    opacity: 0.88;
    mix-blend-mode: screen;
    transition: all 0.3s ease;
}

.hologram-container:hover .hologram-image {
    filter: brightness(1.3) contrast(1.2) saturate(1.2) sepia(0) hue-rotate(0deg);
    opacity: 1;
    transform: scale(1.03);
    animation: image-glitch 0.25s steps(2) infinite;
}

@keyframes image-glitch {
    0% { transform: translate(1px, 1px) rotate(0deg); }
    10% { transform: translate(-1px, -1px) rotate(-0.5deg) skewX(2deg); }
    20% { transform: translate(-2px, 0px) rotate(0.5deg); }
    30% { transform: translate(0px, 1px) rotate(0deg); }
    40% { transform: translate(1px, -1px) rotate(0.5deg); }
    50% { transform: translate(-1px, 1px) rotate(-0.5deg) skewX(-2deg); }
    60% { transform: translate(-2px, -1px) rotate(0deg); }
    70% { transform: translate(1px, 0px) rotate(0.5deg); }
    80% { transform: translate(-1px, -1px) rotate(-0.5deg); }
    90% { transform: translate(2px, 1px) rotate(0deg); }
    100% { transform: translate(1px, -1px) rotate(0.5deg); }
}

.holo-glitch-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle, transparent 35%, rgba(6, 6, 12, 0.85) 100%);
    pointer-events: none;
}

.holo-scanline {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        transparent 50%,
        rgba(0, 240, 255, 0.15) 50%
    );
    background-size: 100% 6px;
    animation: holo-scan 8s linear infinite;
    pointer-events: none;
}

.holo-frame::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background: rgba(0, 240, 255, 0.85);
    box-shadow: 0 0 12px var(--neon-cyan);
    animation: holo-bar 3.5s ease-in-out infinite;
    pointer-events: none;
}

/* Hologram Corner decorations */
.holo-dec-tl, .holo-dec-tr, .holo-dec-bl, .holo-dec-br {
    position: absolute;
    width: 10px;
    height: 10px;
    border: 2px solid var(--neon-cyan);
    pointer-events: none;
}
.holo-dec-tl { top: 4px; left: 4px; border-right: none; border-bottom: none; }
.holo-dec-tr { top: 4px; right: 4px; border-left: none; border-bottom: none; }
.holo-dec-bl { bottom: 4px; left: 4px; border-right: none; border-top: none; }
.holo-dec-br { bottom: 4px; right: 4px; border-left: none; border-top: none; }

.holo-pedestal {
    margin-top: 12px;
    font-size: 0.65rem;
    letter-spacing: 2px;
    color: var(--neon-cyan);
    text-shadow: var(--glow-cyan);
    border: 1px solid rgba(0, 240, 255, 0.3);
    padding: 5px 14px;
    background: rgba(0, 240, 255, 0.07);
    border-radius: 20px;
    box-shadow: inset 0 0 10px rgba(0, 240, 255, 0.1);
}

/* Hero Info details */
.hero-details {
    width: 100%;
    text-align: center;
}

.glitch-wrapper {
    position: relative;
    display: inline-block;
    margin-bottom: 8px;
}

.hero-name {
    font-size: 1.8rem;
    font-weight: 900;
    letter-spacing: 3px;
    color: #ffffff;
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.3);
}

.text-glitch {
    position: relative;
}

.text-glitch::before, .text-glitch::after {
    content: attr(data-text);
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--bg-dark);
}

.text-glitch::before {
    left: 3px;
    text-shadow: -2px 0 var(--neon-red);
    clip: rect(44px, 450px, 56px, 0);
    animation: glitch-anim 4s infinite linear alternate-reverse;
}

.text-glitch::after {
    left: -3px;
    text-shadow: -2px 0 var(--neon-cyan), 0 2px var(--neon-cyan);
    clip: rect(85px, 450px, 140px, 0);
    animation: glitch-anim2 4s infinite linear alternate-reverse;
}

.hero-role-typing {
    font-size: 0.85rem;
    letter-spacing: 2px;
    color: var(--neon-cyan);
    text-shadow: var(--glow-cyan);
    margin-bottom: 25px;
    min-height: 20px;
}

.hero-role-typing .cursor {
    animation: flash 1s infinite alternate;
}

/* HIGH TECH DECORATORS: ACTIVE RADAR & OSCILLOSCOPE */
.high-tech-decor {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 15px;
    margin-bottom: 25px;
    padding: 10px;
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.03);
    border-radius: 4px;
}

.radar-box, .oscilloscope-box {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    position: relative;
}

.box-tag {
    font-size: 0.55rem;
    color: rgba(255, 255, 255, 0.4);
    letter-spacing: 1px;
}

.radar-circle {
    width: 75px;
    height: 75px;
    border: 1.5px solid rgba(0, 240, 255, 0.25);
    border-radius: 50%;
    position: relative;
    overflow: hidden;
    background: radial-gradient(circle, rgba(0, 240, 255, 0.02) 40%, rgba(0, 240, 255, 0.08) 100%);
    box-shadow: inset 0 0 10px rgba(0, 240, 255, 0.05);
}

.radar-circle::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    width: 100%;
    height: 1px;
    background: rgba(0, 240, 255, 0.15);
}

.radar-circle::after {
    content: '';
    position: absolute;
    left: 50%;
    top: 0;
    width: 1px;
    height: 100%;
    background: rgba(0, 240, 255, 0.15);
}

.radar-sweep-line {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: conic-gradient(from 0deg, rgba(0, 240, 255, 0.4) 0deg, rgba(0, 240, 255, 0) 90deg);
    border-radius: 50%;
    animation: spin 3s linear infinite;
    transform-origin: 50% 50%;
}

.radar-dot {
    position: absolute;
    width: 4px;
    height: 4px;
    background: var(--neon-green);
    border-radius: 50%;
    box-shadow: 0 0 6px var(--neon-green);
}
.radar-dot.dot1 { top: 20px; left: 45px; animation: flash 1.4s infinite; }
.radar-dot.dot2 { top: 52px; left: 18px; animation: flash 1.8s infinite; }

#osc-canvas {
    width: 100%;
    height: 75px;
    border: 1px solid rgba(0, 240, 255, 0.2);
    background: #020205;
    border-radius: 2px;
}

/* Quick specs block */
.quick-specs {
    border: 1px solid rgba(255, 255, 255, 0.05);
    background: rgba(4, 4, 8, 0.5);
    padding: 15px;
    border-radius: 4px;
    text-align: left;
    margin-bottom: 25px;
}

.spec-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 8px;
    font-size: 0.75rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.02);
    padding-bottom: 8px;
}

.spec-row:last-child {
    margin-bottom: 0;
    border-bottom: none;
    padding-bottom: 0;
}

.spec-label {
    color: rgba(255, 255, 255, 0.4);
    font-weight: 600;
}

.spec-value {
    color: rgba(255, 255, 255, 0.85);
    text-align: right;
}

.text-glow {
    color: var(--neon-cyan);
    text-shadow: var(--glow-cyan);
}

/* Hero Button triggers */
.hero-actions {
    display: flex;
    justify-content: center;
    gap: 15px;
}

.cyber-btn {
    position: relative;
    padding: 12px 24px;
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 2px;
    text-decoration: none;
    text-transform: uppercase;
    border: 1px solid transparent;
    cursor: pointer;
    background: transparent;
    overflow: hidden;
    transition: all 0.3s ease;
}

.cyber-btn .btn-content {
    position: relative;
    z-index: 10;
}

.cyber-btn.primary-glow {
    border: 1px solid var(--neon-cyan);
    color: var(--neon-cyan);
    box-shadow: inset 0 0 10px rgba(0, 240, 255, 0.05);
}

.cyber-btn.primary-glow:hover {
    background: var(--neon-cyan);
    color: var(--bg-dark);
    box-shadow: var(--glow-cyan);
    transform: scale(1.02);
}

.cyber-btn.red-glow {
    border: 1px solid var(--neon-red);
    color: var(--neon-red);
    box-shadow: inset 0 0 10px rgba(255, 0, 85, 0.05);
}

.cyber-btn.red-glow:hover {
    background: var(--neon-red);
    color: #ffffff;
    box-shadow: var(--glow-red);
    transform: scale(1.02);
}

.cyber-btn.secondary-glow {
    border: 1px solid var(--neon-purple);
    color: var(--neon-purple);
    box-shadow: inset 0 0 10px rgba(189, 0, 255, 0.05);
}

.cyber-btn.secondary-glow:hover {
    background: var(--neon-purple);
    color: #ffffff;
    box-shadow: var(--glow-purple);
    transform: scale(1.02);
}

/* --- INTERACTIVE PORTFOLIO TERMINAL --- */
.terminal-card {
    height: 100%;
    min-height: 520px;
    display: flex;
    flex-direction: column;
}

.terminal-body {
    flex-grow: 1;
    background-color: #030306;
    padding: 20px;
    overflow-y: auto;
    font-size: 0.8rem;
    line-height: 1.5;
    color: rgba(255, 255, 255, 0.88);
    display: flex;
    flex-direction: column;
    gap: 8px;
    height: 480px;
}

.term-log {
    margin-bottom: 5px;
}

.term-log.system-init {
    color: rgba(255, 255, 255, 0.35);
}

.neon-cyan-text {
    color: var(--neon-cyan);
    text-shadow: var(--glow-cyan);
}

.neon-purple-text {
    color: var(--neon-purple);
    text-shadow: var(--glow-purple);
}

.neon-green-text {
    color: var(--neon-green);
    text-shadow: var(--glow-green);
}

.neon-yellow-text {
    color: var(--neon-yellow);
    text-shadow: var(--glow-yellow);
}

.neon-red-text {
    color: var(--neon-red);
    text-shadow: var(--glow-red);
}

.blink-text {
    animation: flash 0.8s infinite alternate;
}

/* Interactive output styling */
.terminal-output {
    margin: 10px 0;
    padding: 12px 16px;
    border-left: 2px solid var(--neon-cyan);
    background: rgba(0, 240, 255, 0.02);
}

.terminal-error {
    border-left-color: var(--neon-red);
    color: var(--neon-red);
    background: rgba(255, 0, 85, 0.03);
}

/* Input typing lines */
.terminal-input-line {
    display: flex;
    align-items: center;
    margin-top: auto;
    position: relative;
    padding-top: 15px;
    border-top: 1px dashed rgba(255, 255, 255, 0.05);
}

.terminal-prompt {
    color: var(--neon-green);
    margin-right: 10px;
    font-weight: bold;
}

#terminal-input {
    background: transparent;
    border: none;
    outline: none;
    color: #ffffff;
    font-family: var(--font-mono);
    font-size: 0.85rem;
    flex-grow: 1;
    caret-color: transparent;
}

.input-glow-caret {
    display: inline-block;
    width: 8px;
    height: 15px;
    background-color: var(--neon-cyan);
    box-shadow: var(--glow-cyan);
    position: absolute;
    animation: flash 0.6s infinite;
}

/* --- SECTION 1.5: HARDWARE DIAGNOSTICS GRIDS --- */
.hardware-diagnostics-section {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 25px;
    margin-bottom: 25px;
}

.esp32-visualizer {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 10px 0;
}

.esp32-svg {
    width: 100%;
    max-height: 200px;
    filter: drop-shadow(0 0 8px rgba(0, 240, 255, 0.05));
}

.esp32-body {
    animation: pulse-purple 4s infinite alternate;
}

.esp32-core {
    animation: pulse-cyan 2.5s infinite alternate;
}

/* ESP32 Glowing micro-pins animations */
.esp-pin {
    stroke-linecap: round;
    transition: all 0.3s ease;
}

.pin-active {
    filter: drop-shadow(0 0 3px var(--neon-green));
}

.pin-active-data {
    animation: data-pulse 0.4s infinite alternate;
}

.pin-active-serial {
    animation: data-pulse 0.2s infinite alternate;
}

@keyframes data-pulse {
    0% { stroke: rgba(0, 240, 255, 0.3); filter: none; }
    100% { stroke: var(--neon-cyan); filter: drop-shadow(0 0 4px var(--neon-cyan)); }
}

.esp-serial-output {
    background: #020204;
    border: 1px solid rgba(255, 255, 255, 0.05);
    padding: 10px 15px;
    font-size: 0.7rem;
    height: 60px;
    overflow-y: hidden;
    display: flex;
    flex-direction: column;
    gap: 4px;
    border-radius: 4px;
    margin-top: 15px;
    box-shadow: inset 0 0 10px rgba(0,0,0,0.8);
}

.grid-diagnostics {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 20px;
    height: 100%;
    min-height: 280px;
}

.accel-plot-box, .live-activity-box {
    display: flex;
    flex-direction: column;
    gap: 8px;
    height: 100%;
}

#accel-canvas {
    width: 100%;
    height: 180px;
    background-color: #020204;
    border: 1px solid rgba(0, 240, 255, 0.15);
    border-radius: 4px;
}

.live-log-container {
    background-color: #020204;
    border: 1px solid rgba(255, 255, 255, 0.05);
    padding: 12px;
    height: 180px;
    overflow-y: auto;
    font-size: 0.65rem;
    display: flex;
    flex-direction: column;
    gap: 6px;
    border-radius: 4px;
    box-shadow: inset 0 0 10px rgba(0,0,0,0.8);
}

.l-log {
    border-bottom: 1px dashed rgba(255,255,255,0.02);
    padding-bottom: 4px;
    line-height: 1.4;
    color: rgba(255,255,255,0.7);
}

.l-time {
    color: rgba(255,255,255,0.3);
    margin-right: 5px;
}


/* --- SECTION 2: SKILLS GRID --- */
.skills-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 25px;
}

.skill-desc {
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.5);
    margin-bottom: 20px;
    line-height: 1.6;
}

.skill-bar-wrapper {
    margin-bottom: 18px;
}

.skill-bar-wrapper:last-child {
    margin-bottom: 0;
}

.skill-info {
    display: flex;
    justify-content: space-between;
    font-size: 0.75rem;
    margin-bottom: 6px;
    color: rgba(255, 255, 255, 0.88);
}

.bar-container {
    height: 6px;
    background-color: #020204;
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 4px;
    overflow: hidden;
    position: relative;
}

.bar-fill {
    height: 100%;
    border-radius: 4px;
    position: relative;
}

.bar-fill.cyan-glow {
    background: linear-gradient(90deg, #0099ff, var(--neon-cyan));
    box-shadow: 0 0 8px rgba(0, 240, 255, 0.5);
}

.bar-fill.purple-glow {
    background: linear-gradient(90deg, #7c00ff, var(--neon-purple));
    box-shadow: 0 0 8px rgba(189, 0, 255, 0.5);
}

.bar-fill.green-glow {
    background: linear-gradient(90deg, #1aa308, var(--neon-green));
    box-shadow: 0 0 8px rgba(57, 255, 20, 0.5);
}

/* --- SECTION 3: PROJECTS DB --- */
.projects-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 25px;
}

.project-card {
    min-height: 240px;
}

.proj-badge {
    font-size: 0.65rem;
    letter-spacing: 1.5px;
    border: 1px solid rgba(0, 240, 255, 0.3);
    padding: 3px 8px;
    background: rgba(0, 240, 255, 0.07);
    border-radius: 20px;
    color: var(--neon-cyan);
}

.text-muted {
    color: rgba(255, 255, 255, 0.3);
}

.project-desc {
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.65;
    margin-bottom: 15px;
}

.project-tech-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.project-tech-tags span {
    font-size: 0.65rem;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.05);
    padding: 3px 10px;
    border-radius: 4px;
    color: rgba(255, 255, 255, 0.6);
}

/* --- SECTION 4: MULTIMEDIA LAB --- */
.multimedia-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 25px;
}

.media-card {
    height: 100%;
}

.media-title {
    font-size: 0.85rem;
    font-weight: 700;
    margin-bottom: 10px;
    letter-spacing: 1px;
}

.media-desc {
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.65);
    line-height: 1.6;
    margin-bottom: 15px;
}

.media-list {
    list-style: none;
    font-size: 0.75rem;
}

.media-list li {
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 8px;
    color: rgba(255, 255, 255, 0.8);
}

.media-list li span {
    color: var(--neon-green);
    font-weight: bold;
}

.project-showcase-box {
    background: rgba(4, 4, 8, 0.45);
    border: 1px solid rgba(255, 255, 255, 0.05);
    padding: 15px;
    border-radius: 4px;
}

.p-box .p-title {
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--neon-cyan);
    margin-bottom: 4px;
    display: block;
}

.p-box .p-desc {
    font-size: 0.7rem;
    color: rgba(255, 255, 255, 0.5);
    line-height: 1.5;
}

/* --- SECTION 5: CONTACT & FORMS --- */
.contact-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 25px;
}

.contact-sub {
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.5);
    margin-bottom: 25px;
    line-height: 1.6;
}

.contact-links-grid {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.contact-item-glow {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 12px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    background: rgba(4, 4, 8, 0.35);
    text-decoration: none;
    border-radius: 4px;
    color: inherit;
    transition: all 0.3s ease;
}

.contact-item-glow:hover {
    border-color: rgba(0, 240, 255, 0.35);
    background: rgba(0, 240, 255, 0.02);
    transform: translateX(5px);
    box-shadow: 0 0 15px rgba(0, 240, 255, 0.05);
}

.contact-item-glow.no-link:hover {
    border-color: rgba(255, 255, 255, 0.05);
    background: rgba(4, 4, 8, 0.35);
    transform: none;
    box-shadow: none;
}

.c-icon {
    width: 45px;
    height: 45px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(0, 0, 0, 0.25);
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
    font-weight: bold;
    color: var(--neon-cyan);
}

.c-info {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.c-title {
    font-size: 0.65rem;
    color: rgba(255, 255, 255, 0.4);
    letter-spacing: 1px;
}

.c-val {
    font-size: 0.8rem;
    font-weight: bold;
}

/* Custom Message Form Fields */
.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.form-group label {
    font-size: 0.65rem;
    letter-spacing: 1px;
    color: rgba(255, 255, 255, 0.4);
}

.form-group input, .form-group textarea {
    background: rgba(4, 4, 8, 0.65);
    border: 1px solid rgba(255, 255, 255, 0.08);
    padding: 10px 14px;
    border-radius: 4px;
    color: #ffffff;
    font-family: var(--font-mono);
    font-size: 0.75rem;
    outline: none;
    transition: all 0.3s ease;
}

.form-group input:focus, .form-group textarea:focus {
    border-color: var(--neon-cyan);
    box-shadow: 0 0 10px rgba(0, 240, 255, 0.15);
    background: rgba(4, 4, 8, 0.95);
}

/* Footer styles */
.mainframe-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 25px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    font-size: 0.65rem;
    color: rgba(255, 255, 255, 0.3);
    margin-top: 40px;
}

.footer-right {
    display: flex;
    align-items: center;
}


/* ==========================================================================
   BREACH ALERTS AND WARNING MODAL (SUPER BADASS EFFECTS)
   ========================================================================== */
#breach-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: rgba(18, 1, 1, 0.96);
    z-index: 1000;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 30px;
    transition: all 0.5s ease;
    overflow: hidden;
}

#breach-overlay.hidden {
    opacity: 0;
    pointer-events: none;
    transform: scale(1.1);
}

.alert-grid {
    max-width: 800px;
    width: 100%;
    background: rgba(0, 0, 0, 0.9);
    border: 2px solid var(--neon-red);
    box-shadow: var(--glow-red);
    padding: 30px;
    border-radius: 8px;
    display: flex;
    flex-direction: column;
    gap: 20px;
    position: relative;
}

.alert-grid::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        transparent 50%,
        rgba(255, 0, 85, 0.05) 50%
    );
    background-size: 100% 8px;
    pointer-events: none;
}

.glitch-red-title {
    font-size: 1.4rem;
    font-weight: 900;
    letter-spacing: 2px;
    color: var(--neon-red);
    text-shadow: var(--glow-red);
    text-align: center;
    position: relative;
    animation: flash 0.6s infinite alternate;
}

.breach-scroller {
    height: 250px;
    background-color: #050000;
    border: 1px solid rgba(255, 0, 85, 0.3);
    padding: 15px;
    font-size: 0.75rem;
    overflow-y: auto;
    color: rgba(255, 80, 80, 0.9);
    line-height: 1.6;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.breach-actions {
    display: flex;
    justify-content: center;
    margin-top: 10px;
}

/* Red alert sweeping radar graphic */
.red-radar-container {
    width: 80px;
    height: 80px;
    border: 2px solid var(--neon-red);
    border-radius: 50%;
    margin: 10px auto;
    position: relative;
    background: radial-gradient(circle, rgba(255, 0, 85, 0.01) 40%, rgba(255, 0, 85, 0.1) 100%);
    box-shadow: 0 0 10px rgba(255, 0, 85, 0.15);
}

.red-radar-sweep {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: conic-gradient(from 0deg, rgba(255, 0, 85, 0.5) 0deg, rgba(255, 0, 85, 0) 90deg);
    border-radius: 50%;
    animation: spin 2s linear infinite;
    transform-origin: 50% 50%;
}


/* --- KEYFRAME ANIMATIONS --- */
@keyframes pulse-cyan {
    0% { opacity: 0.6; box-shadow: 0 0 8px var(--neon-cyan); }
    100% { opacity: 1; box-shadow: 0 0 16px var(--neon-cyan); }
}

@keyframes pulse-green {
    0% { opacity: 0.6; box-shadow: 0 0 8px var(--neon-green); }
    100% { opacity: 1; box-shadow: 0 0 16px var(--neon-green); }
}

@keyframes pulse-purple {
    0% { opacity: 0.6; box-shadow: 0 0 8px var(--neon-purple); }
    100% { opacity: 1; box-shadow: 0 0 16px var(--neon-purple); }
}

@keyframes flash {
    0%, 50% { opacity: 0.35; }
    51%, 100% { opacity: 1; }
}

@keyframes holo-float {
    0%, 100% {
        transform: translateY(0);
        box-shadow: 0 0 25px rgba(0, 240, 255, 0.25);
    }
    50% {
        transform: translateY(-8px);
        box-shadow: 0 15px 40px rgba(0, 240, 255, 0.45);
    }
}

@keyframes holo-scan {
    0% { background-position: 0 0; }
    100% { background-position: 0 100%; }
}

@keyframes holo-bar {
    0% { top: 0%; opacity: 0; }
    5% { opacity: 0.85; }
    95% { opacity: 0.85; }
    100% { top: 100%; opacity: 0; }
}

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

@keyframes glitch-anim {
    0% { clip: rect(15px, 9999px, 66px, 0); }
    10% { clip: rect(85px, 9999px, 5px, 0); }
    20% { clip: rect(3px, 9999px, 115px, 0); }
    30% { clip: rect(98px, 9999px, 34px, 0); }
    40% { clip: rect(43px, 9999px, 78px, 0); }
    50% { clip: rect(120px, 9999px, 12px, 0); }
    60% { clip: rect(6px, 9999px, 98px, 0); }
    70% { clip: rect(89px, 9999px, 45px, 0); }
    80% { clip: rect(22px, 9999px, 112px, 0); }
    90% { clip: rect(76px, 9999px, 3px, 0); }
    100% { clip: rect(44px, 9999px, 56px, 0); }
}

@keyframes glitch-anim2 {
    0% { clip: rect(76px, 9999px, 116px, 0); }
    11% { clip: rect(3px, 9999px, 43px, 0); }
    22% { clip: rect(98px, 9999px, 87px, 0); }
    33% { clip: rect(12px, 9999px, 22px, 0); }
    44% { clip: rect(45px, 9999px, 115px, 0); }
    55% { clip: rect(89px, 9999px, 3px, 0); }
    66% { clip: rect(21px, 9999px, 90px, 0); }
    77% { clip: rect(67px, 9999px, 12px, 0); }
    88% { clip: rect(112px, 9999px, 56px, 0); }
    100% { clip: rect(85px, 9999px, 140px, 0); }
}

/* --- SECTION 1.7: SANDBOX & NETWORK PORTS LAYOUT --- */
.sandbox-network-section {
    display: grid;
    grid-template-columns: 1.65fr 1.35fr;
    gap: 25px;
    margin-bottom: 25px;
}

/* Sound controls with Audio Visualizer Canvas */
.system-controls {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 10px;
}
.sound-visualizer-box {
    width: 140px;
    height: 40px;
    background: rgba(4, 4, 8, 0.85);
    border: 1px solid var(--border-color);
    border-radius: 4px;
    overflow: hidden;
    display: none; /* Show when active */
    box-shadow: inset 0 0 10px rgba(0, 240, 255, 0.1);
}
.sound-visualizer-box.active {
    display: block;
}
#audio-visualizer-canvas {
    width: 100%;
    height: 100%;
    display: block;
}

/* Sandbox card container styling */
.sandbox-tabs {
    display: flex;
    gap: 8px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    padding-bottom: 10px;
    margin-bottom: 15px;
    flex-wrap: wrap;
}
.sandbox-tab {
    background: rgba(10, 10, 18, 0.6);
    border: 1px solid rgba(0, 240, 255, 0.15);
    color: rgba(255, 255, 255, 0.5);
    padding: 8px 16px;
    font-family: var(--font-orbitron);
    font-size: 0.7rem;
    cursor: pointer;
    border-radius: 2px;
    transition: all 0.3s ease;
}
.sandbox-tab:hover {
    color: var(--neon-cyan);
    border-color: var(--neon-cyan);
    background: rgba(0, 240, 255, 0.02);
}
.sandbox-tab.active {
    color: var(--neon-cyan);
    border-color: var(--neon-cyan);
    background: rgba(0, 240, 255, 0.07);
    box-shadow: inset 0 0 8px rgba(0, 240, 255, 0.1);
    text-shadow: var(--glow-cyan);
}
.sandbox-tab-content {
    display: none;
    animation: fade-in 0.4s ease;
}
.sandbox-tab-content.active {
    display: block;
}
.tab-desc {
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.4);
    margin-bottom: 15px;
    border-left: 2px solid var(--neon-purple);
    padding-left: 10px;
    line-height: 1.4;
}

@keyframes fade-in {
    from { opacity: 0; transform: translateY(5px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Tab 1: TikTok AutoCut Sim screen */
.autocut-simulation-screen {
    display: flex;
    flex-direction: column;
    gap: 15px;
}
.wave-visual-box {
    width: 100%;
    height: 120px;
    background: #020204;
    border: 1px solid rgba(0, 240, 255, 0.15);
    border-radius: 4px;
    overflow: hidden;
}
#autocut-wave-canvas {
    width: 100%;
    height: 100%;
    display: block;
}
.autocut-stats {
    display: flex;
    justify-content: space-between;
    font-size: 0.75rem;
    background: rgba(4, 4, 8, 0.4);
    padding: 10px;
    border-radius: 4px;
    border: 1px solid rgba(255, 255, 255, 0.03);
}

/* Tab 2: Slider Captcha Sim screen */
.captcha-puzzle-container {
    width: 100%;
    height: 120px;
    margin: 0 auto;
    border: 1px solid rgba(0, 240, 255, 0.2);
    background: #040409;
    border-radius: 4px;
    position: relative;
    overflow: hidden;
    box-shadow: inset 0 0 20px rgba(0, 0, 0, 0.8);
}
.puzzle-bg-hologram {
    width: 100%;
    height: 100%;
    position: relative;
    background: radial-gradient(circle, rgba(0, 240, 255, 0.02) 20%, rgba(189, 0, 255, 0.04) 100%);
}
.puzzle-scanlines {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(rgba(0, 240, 255, 0.05) 50%, transparent 50%);
    background-size: 100% 4px;
    pointer-events: none;
}
.puzzle-target-gap {
    position: absolute;
    width: 40px;
    height: 40px;
    background: #010103;
    border: 2px dashed var(--neon-purple);
    box-shadow: inset 0 0 10px rgba(189, 0, 255, 0.5);
    border-radius: 4px;
}
.puzzle-slider-piece {
    position: absolute;
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, rgba(0, 240, 255, 0.4), rgba(189, 0, 255, 0.4));
    border: 2px solid var(--neon-cyan);
    box-shadow: var(--glow-cyan);
    border-radius: 4px;
    cursor: grab;
    z-index: 15;
}
.puzzle-slider-piece:active {
    cursor: grabbing;
}
.virtual-pointer {
    position: absolute;
    width: 14px;
    height: 14px;
    background: var(--neon-red);
    border-radius: 50%;
    box-shadow: 0 0 10px var(--neon-red);
    border: 2px solid #ffffff;
    pointer-events: none;
    z-index: 20;
    transition: transform 0.1s ease;
}
.captcha-controls {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-top: 15px;
}
.slider-drag-track {
    width: 100%;
    height: 35px;
    background: #020204;
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 30px;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}
.track-text {
    font-size: 0.65rem;
    color: rgba(255, 255, 255, 0.25);
    letter-spacing: 1px;
    pointer-events: none;
    user-select: none;
    z-index: 5;
}
.slider-drag-handle {
    position: absolute;
    left: 2px;
    width: 31px;
    height: 31px;
    background: var(--neon-cyan);
    box-shadow: var(--glow-cyan);
    border-radius: 50%;
    cursor: grab;
    z-index: 10;
}
.slider-drag-handle:active {
    cursor: grabbing;
}

/* Tab 3: Shopee Scraper Table */
.scraper-simulation-screen {
    display: flex;
    flex-direction: column;
    gap: 15px;
}
.scraper-data-table-container {
    width: 100%;
    max-height: 130px;
    overflow-y: auto;
    border: 1px solid rgba(0, 240, 255, 0.12);
    background: #020204;
    border-radius: 4px;
}
.scraper-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.65rem;
    text-align: left;
}
.scraper-table th {
    background: rgba(6, 6, 12, 0.85);
    color: var(--neon-cyan);
    padding: 8px;
    border-bottom: 1px solid rgba(0, 240, 255, 0.15);
    font-weight: bold;
    letter-spacing: 1px;
}
.scraper-table td {
    padding: 6px 8px;
    border-bottom: 1px dashed rgba(255, 255, 255, 0.02);
    color: rgba(255, 255, 255, 0.7);
}
.table-empty {
    text-align: center;
    color: rgba(255, 255, 255, 0.3) !important;
    padding: 25px !important;
}
.scraper-controls {
    display: flex;
    flex-direction: column;
    gap: 12px;
}
.progress-bar-wrapper {
    font-size: 0.65rem;
    color: rgba(255, 255, 255, 0.4);
    display: flex;
    flex-direction: column;
    gap: 4px;
}

/* Network monitoring card layout */
.network-body {
    display: flex;
    flex-direction: column;
    gap: 20px;
}
.network-port-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
}
.port-socket {
    background: rgba(4, 4, 8, 0.65);
    border: 1px solid rgba(255, 255, 255, 0.05);
    padding: 10px 5px;
    border-radius: 4px;
    text-align: center;
    display: flex;
    flex-direction: column;
    gap: 4px;
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
}
.port-socket::before {
    content: '';
    position: absolute;
    top: 4px;
    right: 4px;
    width: 5px;
    height: 5px;
    border-radius: 50%;
}
.port-socket.online {
    border-color: rgba(57, 255, 20, 0.2);
}
.port-socket.online::before {
    background: var(--neon-green);
    box-shadow: var(--glow-green);
    animation: flash 1s infinite alternate;
}
.port-socket.listening {
    border-color: rgba(0, 240, 255, 0.2);
}
.port-socket.listening::before {
    background: var(--neon-cyan);
    box-shadow: var(--glow-cyan);
    animation: flash 1.5s infinite alternate;
}
.port-socket.offline {
    border-color: rgba(255, 0, 85, 0.15);
    opacity: 0.6;
}
.port-socket.offline::before {
    background: var(--neon-red);
}
.port-num {
    font-size: 0.7rem;
    font-weight: bold;
    color: #ffffff;
}
.port-desc {
    font-size: 0.55rem;
    color: rgba(255, 255, 255, 0.4);
    letter-spacing: 0.5px;
}
.network-charts-container {
    background: rgba(2, 2, 4, 0.8);
    border: 1px solid rgba(255, 255, 255, 0.03);
    padding: 12px;
    border-radius: 4px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.chart-row {
    display: flex;
    justify-content: space-between;
    font-size: 0.7rem;
}
.chart-label {
    color: rgba(255, 255, 255, 0.4);
}

/* --- RESPONSIVE MEDIA QUERIES --- */
@media (max-width: 1024px) {
    .skills-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .hero-console-section, .hardware-diagnostics-section, .sandbox-network-section {
        grid-template-columns: 1fr;
    }
    
    .terminal-card {
        min-height: 420px;
    }
}

@media (max-width: 768px) {
    #mainframe-theme-cyber {
        margin: 10px;
        padding: 10px;
    }

    .mainframe-header {
        flex-direction: column;
        gap: 10px;
        padding: 15px;
    }
    
    .mainframe-nav {
        flex-wrap: wrap;
        justify-content: center;
        gap: 8px;
    }
    
    .nav-item {
        font-size: 0.7rem;
        padding: 6px 12px;
    }
    
    .skills-grid, .projects-grid, .multimedia-grid, .contact-layout, .grid-diagnostics {
        grid-template-columns: 1fr;
    }
    
    .network-port-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .form-row {
        grid-template-columns: 1fr;
    }
    
    .hidden-mobile {
        display: none;
    }
    
    .hero-layout {
        flex-direction: column;
        text-align: center;
    }
    
    .hero-details {
        text-align: center;
    }
    
    .high-tech-decor {
        flex-direction: column;
        gap: 20px;
    }
    
    .quick-specs {
        max-width: 100%;
    }
    
    .mainframe-footer {
        flex-direction: column;
        gap: 10px;
        text-align: center;
    }
}


/* ==========================================================================
   MINIMALIST NEXT.JS SAKURA THEME SYSTEM (duc-huynh-2003.id.vn CLONE)
   ========================================================================== */

/* Theme Variables (Elegant Craftzdog Sakura Light Cream System with Sky Blue Accents) */
.minimal-container {
    --site-bg: #f0e7db; /* Milk light cream background */
    --site-surface: rgba(255, 255, 255, 0.5); /* Soft white glass */
    --site-fg: #1a202c; /* Deep slate gray text */
    --site-muted: #4a5568; /* Slate gray muted text */
    --site-accent: #0088ff; /* Premium Sky Blue accent */
    --site-accent-rgb: 0, 136, 255;
    --site-border: rgba(0, 0, 0, 0.06); /* Soft dark-tinted borders */
    --site-header-bg: rgba(240, 231, 219, 0.78); /* Dynamic header glass */
    --site-underline: #0088ff; /* Sky Blue line */
    
    font-family: var(--font-inter);
    background-color: var(--site-bg);
    color: var(--site-fg);
    min-height: 100vh;
    padding-top: 85px;
    transition: background-color 0.4s ease, color 0.4s ease;
}

/* Craftzdog Dark Theme with Electric Sky Blue Accents */
.minimal-container.dark {
    --site-bg: #202023; /* Classic craftzdog dark charcoal */
    --site-surface: rgba(32, 32, 35, 0.45); /* Charcoal glass */
    --site-fg: #eeeeee; /* Light grey text */
    --site-muted: #a0aec0; /* Soft dark grey text */
    --site-accent: #38bdf8; /* Light Electric Sky Blue */
    --site-accent-rgb: 56, 189, 248;
    --site-border: rgba(255, 255, 255, 0.08);
    --site-header-bg: rgba(32, 32, 35, 0.78);
    --site-underline: #38bdf8; /* Sky Blue underline */
}

/* Custom rounded font utility */
.font-rounded {
    font-family: 'M PLUS Rounded 1c', sans-serif !important;
}

/* Global width constraint for minimalist mode */
.minimal-main {
    max-width: 768px;
    width: 100%;
    padding: 20px 24px 60px 24px;
    margin: 0 auto; /* Perfectly center-align the main container! */
}

/* Interface toggles in cyber bar */
.cyber-interface-toggle {
    background: rgba(0, 240, 255, 0.07);
    border: 1px dashed var(--neon-cyan);
    color: var(--neon-cyan);
    padding: 6px 12px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 0.65rem;
    transition: all 0.3s ease;
    margin-left: 10px;
}
.cyber-interface-toggle:hover {
    background: var(--neon-cyan);
    color: var(--bg-dark);
    box-shadow: var(--glow-cyan);
}

/* Translucent floating Header */
.minimal-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    border-bottom: 1px solid var(--site-border);
    background-color: var(--site-header-bg);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    transition: background-color 0.3s ease, border-color 0.3s ease;
}
.header-nav-container {
    max-width: 768px;
    width: 100%;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 24px;
}
.minimal-brand {
    display: flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    color: var(--site-fg);
    font-weight: bold;
    font-size: 1.1rem;
    font-family: 'M PLUS Rounded 1c', sans-serif;
    transition: color 0.3s ease;
}
.nav-logo-icon {
    width: 20px;
    height: 20px;
    animation: gear-spin 8s linear infinite;
    color: var(--site-fg);
}
@keyframes gear-spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}
.brand-text {
    letter-spacing: 0.5px;
}

.minimal-nav {
    position: relative;
    display: flex;
    gap: 5px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.05);
    padding: 4px;
    border-radius: 10px;
    align-items: center;
}
.nav-active-pill {
    position: absolute;
    background: rgba(var(--site-accent-rgb), 0.08);
    border: 1px solid var(--site-accent);
    box-shadow: 0 2px 8px rgba(var(--site-accent-rgb), 0.15);
    border-radius: 8px;
    height: calc(100% - 8px);
    top: 4px;
    left: 0;
    width: 0;
    transition: all 0.35s cubic-bezier(0.25, 0.8, 0.25, 1);
    z-index: 0;
    pointer-events: none;
}
.minimal-nav-item {
    position: relative;
    z-index: 1;
    text-decoration: none;
    color: var(--site-muted);
    font-size: 0.85rem;
    font-weight: 600;
    padding: 6px 14px;
    border-radius: 8px;
    transition: color 0.3s ease;
    display: flex;
    align-items: center;
    gap: 5px;
    cursor: pointer;
}
.minimal-nav-item:hover {
    color: var(--site-fg);
}
.minimal-nav-item.active {
    color: var(--site-accent) !important;
}
.nav-social-svg {
    width: 14px;
    height: 14px;
}

.minimal-header-controls {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
}
.minimal-theme-toggle {
    background: var(--site-surface);
    border: 1px solid var(--site-border);
    color: var(--site-accent);
    width: 38px;
    height: 38px;
    border-radius: 8px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.25s ease;
    box-shadow: 0 2px 8px rgba(0,0,0,0.02);
}
.minimal-theme-toggle:hover {
    background: var(--site-fg);
    color: var(--site-bg);
}
.sun-icon {
    width: 18px;
    height: 18px;
}
.minimal-interface-toggle {
    background: var(--site-surface);
    border: 1px solid var(--site-border);
    color: var(--site-fg);
    padding: 8px 16px;
    border-radius: 8px;
    font-size: 0.8rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.25s ease;
    white-space: nowrap; /* Prevent wrapping onto multiple lines! */
    flex-shrink: 0;
    box-shadow: 0 2px 8px rgba(0,0,0,0.02);
}
.minimal-interface-toggle:hover {
    background: var(--site-accent);
    color: #ffffff !important;
    border-color: var(--site-accent);
    box-shadow: 0 4px 12px rgba(var(--site-accent-rgb), 0.2);
}


/* TAB COMPONENT PANEL SYSTEM (Framer Motion-like fluid transitions) */
.minimal-tab-container {
    position: relative;
    width: 100%;
}
.minimal-tab-panel {
    display: none;
    opacity: 0;
    transform: translateY(15px) scale(0.985);
    transition: opacity 0.35s cubic-bezier(0.25, 0.8, 0.25, 1), transform 0.35s cubic-bezier(0.25, 0.8, 0.25, 1);
}
.minimal-tab-panel.active {
    display: block;
    opacity: 1;
    transform: translateY(0) scale(1);
}

/* SECTION STRUCTURE */
.minimal-section {
    margin-bottom: 45px;
}
.minimal-section-title {
    font-size: 1.25rem;
    font-weight: bold;
    border-bottom: 4px solid var(--site-underline);
    width: fit-content;
    padding-bottom: 4px;
    margin-bottom: 20px;
    letter-spacing: 0.5px;
    transition: border-color 0.3s ease;
}

/* WELCOME BANNER & HERO CARD */
.welcome-banner {
    width: 100%;
    background-color: var(--site-surface);
    border: 1px solid var(--site-border);
    border-radius: 12px;
    padding: 16px;
    font-size: 0.95rem;
    font-weight: 500;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    margin-bottom: 30px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.03);
    transition: background-color 0.3s ease, border-color 0.3s ease;
}
.profile-hero-grid {
    display: grid;
    grid-template-columns: 1fr 120px;
    align-items: center;
    gap: 20px;
}
.profile-name {
    font-size: 2.2rem;
    font-weight: bold;
    letter-spacing: -0.5px;
}
.profile-title {
    font-size: 1.05rem;
    font-weight: 600;
    margin-top: 5px;
}
.profile-subtitle {
    font-size: 0.9rem;
    color: var(--site-muted);
    margin-top: 8px;
    line-height: 1.5;
    transition: color 0.3s ease;
}
.avatar-circle-wrapper {
    width: 110px;
    height: 110px;
    border-radius: 50%;
    overflow: hidden;
    border: 2px solid #ffffff;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
}
.circle-avatar-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* ABOUT SECTION */
.minimal-about-card {
    background-color: var(--site-surface);
    border: 1px solid var(--site-border);
    padding: 24px;
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.02);
    transition: background-color 0.3s ease, border-color 0.3s ease;
}
.about-desc {
    font-size: 0.95rem;
    line-height: 1.65;
    color: var(--site-muted);
    margin-bottom: 15px;
}
.about-desc.font-medium {
    font-weight: 500;
    color: var(--site-fg);
}
.specs-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
    margin-top: 25px;
}
.spec-card {
    background-color: rgba(255, 255, 255, 0.35);
    border: 1px solid rgba(0, 0, 0, 0.05);
    border-radius: 12px;
    padding: 14px 12px;
    text-align: center;
    transition: all 0.3s ease;
}
.spec-card:hover {
    background-color: rgba(255, 255, 255, 0.7);
    border-color: rgba(var(--site-accent-rgb), 0.35);
    box-shadow: 0 4px 12px rgba(var(--site-accent-rgb), 0.1);
}
.dark .spec-card {
    background-color: rgba(255, 255, 255, 0.03);
    border-color: rgba(255, 255, 255, 0.05);
}
.dark .spec-card:hover {
    background-color: rgba(255, 255, 255, 0.06);
    border-color: rgba(var(--site-accent-rgb), 0.4);
}
.spec-card-label {
    display: block;
    font-size: 0.65rem;
    color: var(--site-muted);
    margin-bottom: 2px;
}
.spec-card-val {
    display: block;
    font-size: 0.85rem;
    font-weight: bold;
}

/* TIMELINE (CAREER VERTICAL TIMELINE) */
.vertical-timeline-container {
    position: relative;
    padding-left: 28px;
    margin-top: 25px;
}
.timeline-central-line {
    position: absolute;
    left: 8px;
    top: 5px;
    bottom: 5px;
    width: 2px;
    background-color: var(--site-border);
    transition: background-color 0.3s ease;
}
.timeline-item {
    position: relative;
    padding-bottom: 30px;
}
.timeline-bullet {
    position: absolute;
    left: -20px;
    top: 24px;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background-color: var(--site-accent);
    box-shadow: 0 0 10px var(--site-accent), 0 0 20px rgba(var(--site-accent-rgb), 0.4);
    z-index: 10;
    transition: all 0.3s ease;
}
.timeline-card-wrapper {
    display: flex;
    flex-direction: column;
    background-color: rgba(255, 255, 255, 0.3);
    border: 1px solid rgba(0, 0, 0, 0.04);
    border-radius: 12px;
    padding: 18px;
    transition: all 0.3s ease;
}
.timeline-card-wrapper:hover {
    background-color: rgba(255, 255, 255, 0.65);
    border-color: rgba(var(--site-accent-rgb), 0.35);
    transform: translateX(4px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.02);
}
.dark .timeline-card-wrapper {
    background-color: rgba(255, 255, 255, 0.02);
    border-color: rgba(255, 255, 255, 0.04);
}
.dark .timeline-card-wrapper:hover {
    background-color: rgba(255, 255, 255, 0.05);
    border-color: rgba(var(--site-accent-rgb), 0.4);
}
.timeline-year {
    font-size: 0.75rem;
    font-weight: bold;
    color: var(--site-underline);
}
.timeline-role {
    font-size: 0.95rem;
    font-weight: bold;
    margin-top: 4px;
}
.timeline-org {
    font-size: 0.8rem;
    color: var(--site-muted);
    margin-top: 2px;
}
.timeline-text {
    font-size: 0.85rem;
    line-height: 1.5;
    color: var(--site-muted);
    margin-top: 8px;
}

/* STRENGTHS AND METRICS */
.strengths-cards-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
}
.strength-card {
    background-color: var(--site-surface);
    border: 1px solid var(--site-border);
    padding: 18px;
    border-radius: 12px;
    transition: background-color 0.3s ease, border-color 0.3s ease, transform 0.2s ease;
}
.strength-card:hover {
    transform: translateY(-2px);
    border-color: var(--site-accent);
}
.strength-card-title {
    font-size: 0.85rem;
    font-weight: bold;
    color: var(--site-underline);
    margin-bottom: 6px;
}
.strength-card-desc {
    font-size: 0.8rem;
    line-height: 1.45;
    color: var(--site-muted);
}
.impact-metrics-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
    margin-top: 15px;
}
.metric-card {
    background-color: var(--site-surface);
    border: 1px solid var(--site-border);
    padding: 16px 12px;
    border-radius: 12px;
    text-align: center;
}
.metric-val {
    display: block;
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--site-accent);
}
.metric-label {
    display: block;
    font-size: 0.7rem;
    color: var(--site-muted);
    margin-top: 4px;
}

/* PRINCIPLES */
.principles-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
}
.principle-card {
    background-color: var(--site-surface);
    border: 1px solid var(--site-border);
    padding: 20px 16px;
    border-radius: 12px;
    text-align: center;
}
.principle-card-title {
    font-size: 0.85rem;
    font-weight: bold;
    color: var(--site-underline);
    margin-bottom: 8px;
}
.principle-card-desc {
    font-size: 0.75rem;
    line-height: 1.5;
    color: var(--site-muted);
}

/* CONTACT DIRECT MESSENGER FORM */
.minimal-contact-box {
    background-color: var(--site-surface);
    border: 1px solid var(--site-border);
    padding: 24px;
    border-radius: 16px;
    margin-bottom: 25px;
}
.form-group-minimal {
    display: flex;
    flex-direction: column;
    gap: 6px;
}
.form-group-minimal label {
    font-size: 0.7rem;
    font-weight: 600;
    color: var(--site-muted);
}
.form-group-minimal input, .form-group-minimal textarea {
    background-color: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--site-border);
    padding: 10px 12px;
    border-radius: 8px;
    color: var(--site-fg);
    outline: none;
    font-size: 0.85rem;
    transition: all 0.2s ease;
}
.dark .form-group-minimal input, .dark .form-group-minimal textarea {
    background-color: rgba(255, 255, 255, 0.03);
}
.form-group-minimal input:focus, .form-group-minimal textarea:focus {
    border-color: var(--site-accent);
    box-shadow: 0 0 5px rgba(255,99,195,0.2);
}
.minimal-submit-btn {
    background-color: var(--site-underline);
    color: #ffffff;
    border: none;
    padding: 12px 24px;
    border-radius: 8px;
    font-size: 0.85rem;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.2s ease;
}
.minimal-submit-btn:hover {
    opacity: 0.9;
    transform: translateY(-1px);
}
.on-web-title {
    font-size: 1rem;
    font-weight: bold;
    margin-top: 30px;
    margin-bottom: 12px;
}
.social-links-list {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}
.social-link-btn {
    text-decoration: none;
    color: var(--site-underline);
    border: 1px solid var(--site-border);
    padding: 8px 16px;
    border-radius: 8px;
    font-size: 0.8rem;
    font-weight: 600;
    background-color: var(--site-surface);
    transition: all 0.2s ease;
}
.social-link-btn:hover {
    background-color: var(--site-underline);
    color: #ffffff;
}

/* MINIMALIST FOOTER */
.minimal-footer {
    border-top: 1px solid var(--site-border);
    padding: 24px 0;
    text-align: center;
    font-size: 0.7rem;
    color: var(--site-muted);
}

/* Animations classes */
.animate-slide-up {
    animation: slide-up 0.6s ease forwards;
}
.delay-100 { animation-delay: 0.1s; }
.delay-200 { animation-delay: 0.2s; }
.delay-300 { animation-delay: 0.3s; }

@keyframes slide-up {
    from { opacity: 0; transform: translateY(15px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Responsiveness overrides for Minimal Mode */
@media (max-width: 640px) {
    .profile-hero-grid {
        grid-template-columns: 1fr;
        text-align: center;
    }
    .hero-right {
        order: -1;
    }
    .avatar-circle-wrapper {
        margin: 0 auto;
    }
    .specs-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .strengths-cards-grid, .impact-metrics-grid, .principles-grid {
        grid-template-columns: 1fr;
    }
    .header-nav-container {
        padding: 10px 15px;
    }
    .minimal-nav {
        display: flex;
        gap: 3px;
        background: rgba(0, 0, 0, 0.02);
        padding: 3px;
        border-radius: 8px;
    }
    .dark .minimal-nav {
        background: rgba(255, 255, 255, 0.02);
    }
    .minimal-nav-item {
        font-size: 0.75rem;
        padding: 4px 8px;
    }
    .nav-social-svg {
        display: none; /* Hide svg on small mobile to save space */
    }
    .minimal-nav-item.icon-item {
        display: none;
    }
    .nav-btn-hollow, .nav-btn-solid {
        display: none !important; /* Hide header action buttons on mobile to avoid overlap */
    }
    .nav-active-pill {
        display: none; /* Turn off absolute pill animation on mobile to avoid layout reflows */
    }
    .minimal-nav-item.active {
        background: rgba(var(--site-accent-rgb), 0.15);
        border: 1px solid var(--site-accent);
    }
}


/* NEW BRAND VISUAL ELEMENTS: ROTATING DYNAMIC PIXEL VOXEL PHAN DOAN HOANG MASCOT */
.pixel-hoang-container {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 30px;
    margin-top: 15px;
    perspective: 1200px; /* High-fidelity 3D perspective depth */
    transition: all 0.5s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.pixel-hoang-container:hover {
    transform: scale(1.06) translateY(-4px); /* Lift and scale the parent wrapper smoothly on hover */
}

.pixel-hoang-img {
    max-width: 240px;
    width: 100%;
    height: auto;
    border-radius: 24px;
    /* Transparent background naturally blends 100% perfectly with any page background color (cream or charcoal)! */
    filter: drop-shadow(0 12px 28px rgba(0, 136, 255, 0.14));
    animation: hoang-spin 8s ease-in-out infinite; /* Slow organic floating and horizontal 3D swinging (left to right) */
    transform-style: preserve-3d;
    backface-visibility: visible;
    transition: filter 0.5s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.pixel-hoang-container:hover .pixel-hoang-img {
    filter: drop-shadow(0 20px 42px rgba(0, 136, 255, 0.26));
    animation-play-state: paused; /* Hover to pause rotation precisely without sudden snap-back jumps! */
}

/* Dark mode overrides: transparent PNG handles this natively without muddy blending */
.dark .pixel-hoang-img {
    mix-blend-mode: normal;
    background-color: transparent;
    border: none;
    filter: drop-shadow(0 12px 28px rgba(0, 136, 255, 0.25));
}

.dark .pixel-hoang-container:hover .pixel-hoang-img {
    filter: drop-shadow(0 20px 42px rgba(0, 136, 255, 0.45));
}

@keyframes hoang-spin {
    0% {
        transform: rotateY(-24deg) translateY(0); /* Sway left, resting height */
    }
    50% {
        transform: rotateY(24deg) translateY(-8px); /* Sway right, float up slightly */
    }
    100% {
        transform: rotateY(-24deg) translateY(0); /* Return to left, resting height */
    }
}

/* NAVBAR BUTTONS */
.nav-btn-hollow {
    text-decoration: none;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--site-fg);
    border: 1px solid var(--site-border);
    padding: 6px 14px;
    border-radius: 8px;
    transition: all 0.2s ease;
    background: transparent;
    cursor: pointer;
}
.nav-btn-hollow:hover {
    background: rgba(0, 0, 0, 0.03);
}
.dark .nav-btn-hollow:hover {
    background: rgba(255, 255, 255, 0.05);
}

.nav-btn-solid {
    text-decoration: none;
    font-size: 0.8rem;
    font-weight: 600;
    color: #ffffff !important;
    background-color: var(--site-accent);
    border: 1px solid var(--site-accent);
    padding: 6px 14px;
    border-radius: 8px;
    transition: all 0.2s ease;
    cursor: pointer;
    box-shadow: 0 4px 10px rgba(var(--site-accent-rgb), 0.2);
}
.nav-btn-solid:hover {
    opacity: 0.95;
    transform: translateY(-0.5px);
    box-shadow: 0 6px 15px rgba(var(--site-accent-rgb), 0.3);
}


/* ANIMATED SVG CAT MASCOT BRAND LOGO (🐾 -> Dynamic Cat Mascot) */
.nav-logo-icon-cat {
    width: 32px;
    height: 32px;
    color: var(--site-accent);
    display: inline-block;
    vertical-align: middle;
    transition: color 0.3s ease;
    margin-right: 2px;
}
.cat-tail {
    transform-origin: 25px 65px;
    animation: cat-tail-wag 2.5s ease-in-out infinite;
}
.cat-head {
    transform-origin: 50px 38px;
    animation: cat-head-bob 3.5s ease-in-out infinite;
}
.cat-eye {
    animation: cat-eye-blink 4.5s infinite;
}

@keyframes cat-tail-wag {
    0%, 100% { transform: rotate(0deg); }
    50% { transform: rotate(-18deg); }
}
@keyframes cat-head-bob {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    50% { transform: translateY(1.2px) rotate(1.5deg); }
}
@keyframes cat-eye-blink {
    0%, 92%, 100% { transform: scaleY(1); transform-origin: 50px 35px; }
    96% { transform: scaleY(0.1); transform-origin: 50px 35px; }
}

/* ==========================================================================
   --- STATE-OF-THE-ART PREMIUM REFINEMENTS ---
   ========================================================================== */

/* 1. Premium Scroll Progress Bar */
#scroll-progress-bar {
    position: fixed;
    top: 0;
    left: 0;
    width: 0%;
    height: 3.5px;
    background: linear-gradient(90deg, #0088ff, #38bdf8);
    z-index: 99999;
    box-shadow: 0 1px 8px rgba(0, 136, 255, 0.35);
    transition: width 0.08s ease-out;
}

/* 2. Webkit Custom Scrollbar */
::-webkit-scrollbar {
    width: 10px;
    height: 10px;
}
::-webkit-scrollbar-track {
    background: var(--site-bg);
}
::-webkit-scrollbar-thumb {
    background: rgba(var(--site-accent-rgb), 0.22);
    border-radius: 10px;
    border: 3px solid var(--site-bg);
    transition: background 0.3s ease;
}
::-webkit-scrollbar-thumb:hover {
    background: var(--site-accent);
}

/* 3. Sleek 3D Tilt Card Base Transitions */
.minimal-about-card, 
.spec-card, 
.timeline-card-wrapper, 
.strength-card, 
.metric-card, 
.principle-card, 
.minimal-contact-box {
    transform-style: preserve-3d;
    transition: transform 0.15s cubic-bezier(0.25, 0.8, 0.25, 1), box-shadow 0.25s cubic-bezier(0.25, 0.8, 0.25, 1), border-color 0.25s ease;
}
.minimal-about-card:hover, 
.spec-card:hover, 
.timeline-card-wrapper:hover, 
.strength-card:hover, 
.metric-card:hover, 
.principle-card:hover, 
.minimal-contact-box:hover {
    border-color: rgba(var(--site-accent-rgb), 0.25);
    box-shadow: 0 12px 36px rgba(0, 136, 255, 0.06);
}
.dark .minimal-about-card:hover, 
.dark .spec-card:hover, 
.dark .timeline-card-wrapper:hover, 
.dark .strength-card:hover, 
.dark .metric-card:hover, 
.dark .principle-card:hover, 
.dark .minimal-contact-box:hover {
    box-shadow: 0 12px 36px rgba(0, 136, 255, 0.15);
}

/* 4. Minimalist Captcha Decryptor Sandbox styles */
.minimal-sandbox-card {
    background: var(--site-card-bg);
    border: 1px solid var(--site-border);
    border-radius: 16px;
    padding: 24px;
    display: grid;
    grid-template-columns: 1.25fr 1fr;
    gap: 24px;
    box-shadow: 0 8px 30px var(--site-shadow);
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    box-sizing: border-box;
}

@media (max-width: 768px) {
    .minimal-sandbox-card {
        grid-template-columns: 1fr;
        padding: 16px;
        gap: 16px;
    }
}

.minimal-puzzle-arena {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.min-puzzle-bg {
    position: relative;
    height: 140px;
    background: rgba(var(--site-accent-rgb), 0.03);
    border: 1px dashed var(--site-border);
    border-radius: 12px;
    overflow: hidden;
    display: flex;
    align-items: center;
    box-sizing: border-box;
}

.min-target-gap {
    position: absolute;
    left: 200px; /* Target position */
    top: 50%;
    transform: translateY(-50%);
    width: 44px;
    height: 44px;
    background: rgba(var(--site-accent-rgb), 0.12);
    border: 2px dashed var(--site-accent);
    border-radius: 8px;
    box-shadow: 0 0 15px rgba(var(--site-accent-rgb), 0.15);
    box-sizing: border-box;
}

.min-puzzle-piece {
    position: absolute;
    left: 20px; /* Initial position */
    top: 50%;
    transform: translateY(-50%);
    width: 42px;
    height: 42px;
    background: var(--site-accent);
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(var(--site-accent-rgb), 0.3);
    cursor: grab;
    z-index: 10;
    box-sizing: border-box;
    transition: left 0.1s ease-out;
}

.min-puzzle-piece:active {
    cursor: grabbing;
}

.min-pointer {
    position: absolute;
    left: 0;
    top: 0;
    width: 12px;
    height: 12px;
    background: #ff5e7e;
    border-radius: 50%;
    box-shadow: 0 0 8px #ff5e7e;
    pointer-events: none;
    z-index: 100;
    display: none;
}

.min-drag-track {
    position: relative;
    height: 42px;
    background: rgba(0, 0, 0, 0.025);
    border: 1px solid var(--site-border);
    border-radius: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    box-sizing: border-box;
}

.dark .min-drag-track {
    background: rgba(255, 255, 255, 0.035);
}

.min-drag-handle {
    position: absolute;
    left: 0;
    top: 0;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: var(--site-accent);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: grab;
    box-shadow: 0 2px 8px rgba(var(--site-accent-rgb), 0.3);
    z-index: 12;
    transition: left 0.1s ease-out;
    box-sizing: border-box;
}

.min-drag-prompt {
    font-size: 0.8rem;
    color: var(--site-fg-dim);
    user-select: none;
    pointer-events: none;
    font-family: inherit;
    font-weight: 500;
}

.minimal-sandbox-controls {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.min-run-sim-btn {
    background: var(--site-accent);
    color: #fff;
    border: none;
    padding: 11px 20px;
    font-size: 0.88rem;
    font-weight: 600;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.25s cubic-bezier(0.25, 0.8, 0.25, 1);
    box-shadow: 0 4px 14px rgba(var(--site-accent-rgb), 0.2);
    font-family: inherit;
}

.min-run-sim-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(var(--site-accent-rgb), 0.32);
}

.min-run-sim-btn:active {
    transform: translateY(0);
}

.min-run-sim-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none !important;
    box-shadow: none !important;
}

.min-sandbox-terminal {
    flex-grow: 1;
    background: rgba(0, 0, 0, 0.025);
    border: 1px solid var(--site-border);
    border-radius: 10px;
    padding: 12px;
    font-family: 'Share Tech Mono', monospace;
    font-size: 0.78rem;
    color: var(--site-fg);
    height: 130px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 6px;
    box-sizing: border-box;
}

.dark .min-sandbox-terminal {
    background: rgba(0, 0, 0, 0.22);
}

.min-term-line {
    line-height: 1.45;
    transition: all 0.1s ease;
}
