/* ==========================================================================
   Design System & CSS Variables
   ========================================================================== */
   :root {
    /* Colors */
    --bg-dark: #07070a;
    --bg-surface: rgba(20, 20, 30, 0.4);
    --bg-glass: rgba(25, 25, 45, 0.25);

    /* Accents */
    --accent-blue: #00f0ff;
    --accent-purple: #9d00ff;
    --accent-blue-dim: rgba(0, 240, 255, 0.15);
    --accent-purple-dim: rgba(157, 0, 255, 0.15);

    /* Text */
    --text-main: #f0f0f5;
    --text-muted: #a0a0b0;
    --text-dark: #1a1a24;

    /* Fonts */
    --font-heading: 'Space Grotesk', sans-serif;
    --font-body: 'Inter', sans-serif;
    --font-mono: 'Fira Code', monospace, sans-serif;

    /* Gradients */
    --hero-gradient: linear-gradient(135deg, var(--accent-blue), var(--accent-purple));
    --surface-gradient: linear-gradient(145deg, rgba(30,30,50,0.4) 0%, rgba(10,10,15,0.4) 100%);

    /* UI Values */
    --glow-spread: 15px;
    --radius-lg: 16px;
    --radius-md: 12px;
    --radius-sm: 8px;
    --transition-slow: 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-norm: 0.3s ease;
    --transition-fast: 0.15s ease;
}

/* ==========================================================================
   Boot Sequence Screen
   ========================================================================== */
#boot-screen {
    position: fixed;
    inset: 0;
    z-index: 99999;
    background: var(--bg-dark);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    font-family: var(--font-mono);
    padding: 2rem;
}

#boot-screen.hidden {
    display: none;
}

.boot-terminal {
    max-width: 600px;
    width: 100%;
    min-height: 300px;
}

.boot-line {
    opacity: 0;
    transform: translateY(5px);
    animation: boot-line-in 0.3s forwards;
    font-size: 0.9rem;
    line-height: 1.8;
    white-space: nowrap;
    overflow: hidden;
}

.boot-line-header {
    font-size: 1.4rem;
    font-weight: 700;
    background: var(--hero-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 0.5rem;
}

.boot-line-system {
    color: var(--text-muted);
}

.boot-line-success {
    color: var(--text-muted);
}

.boot-line-success .ok {
    color: #27c93f;
    font-weight: 600;
}

.boot-line-command {
    color: var(--accent-blue);
    margin-top: 0.5rem;
}

.boot-progress-bar {
    max-width: 600px;
    width: 100%;
    height: 3px;
    background: rgba(255,255,255,0.1);
    border-radius: 2px;
    margin-top: 2rem;
    overflow: hidden;
}

.boot-progress-fill {
    height: 100%;
    width: 0%;
    background: var(--hero-gradient);
    border-radius: 2px;
    transition: width 0.3s ease;
    box-shadow: 0 0 10px var(--accent-blue);
}

.boot-skip-btn {
    margin-top: 2rem;
    font-family: var(--font-mono);
    color: var(--text-muted);
    background: transparent;
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: var(--radius-sm);
    padding: 0.5rem 1rem;
    cursor: pointer;
    font-size: 0.8rem;
    transition: var(--transition-norm);
}

.boot-skip-btn:hover {
    border-color: var(--accent-blue);
    color: var(--accent-blue);
}

.boot-line.dissolving {
    transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    transform: translateY(100px);
    opacity: 0;
}

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

/* Content hidden during boot */
.content-hidden {
    opacity: 0;
    pointer-events: none;
}

.content-visible {
    opacity: 1;
    pointer-events: auto;
    transition: opacity 0.8s ease;
}

/* ==========================================================================
   Custom Cursor & Trail
   ========================================================================== */
@media (pointer: fine) {
    body.custom-cursor,
    body.custom-cursor * {
        cursor: none !important;
    }
}

#custom-cursor {
    position: fixed;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--accent-blue);
    box-shadow: 0 0 15px var(--accent-blue), 0 0 30px rgba(0,240,255,0.3);
    pointer-events: none;
    z-index: 99998;
    transform: translate(-50%, -50%);
    transition: width 0.2s, height 0.2s, background 0.2s, border 0.2s, box-shadow 0.2s;
    display: none;
}

#custom-cursor.visible {
    display: block;
}

#custom-cursor.hovering {
    width: 40px;
    height: 40px;
    background: transparent;
    border: 2px solid var(--accent-blue);
    box-shadow: 0 0 20px rgba(0,240,255,0.2);
}

.cursor-trail-dot {
    position: fixed;
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: rgba(0, 240, 255, 0.4);
    pointer-events: none;
    z-index: 99997;
    opacity: 0;
    transition: opacity 0.4s ease;
}

/* ==========================================================================
   Base & Reset
   ========================================================================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

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

body.booting {
    overflow: hidden;
}

/* Interactive AI Assistant */
.ai-assistant {
    position: fixed;
    bottom: 40px;
    right: 40px;
    z-index: 10000;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 60px;
    height: 60px;
    transition: transform var(--transition-norm);
}

.ai-assistant:hover {
    transform: scale(1.15);
}

.ai-orb {
    width: 24px;
    height: 24px;
    background: var(--hero-gradient);
    border-radius: 50%;
    box-shadow: 0 0 20px var(--accent-blue), 0 0 40px var(--accent-purple);
    animation: pulse-orb 2s infinite alternate;
}

.ai-ring {
    position: absolute;
    width: 100%;
    height: 100%;
    border: 2px dashed rgba(0, 240, 255, 0.4);
    border-radius: 50%;
    animation: rotate-ring 15s linear infinite;
}

.ai-speech-bubble {
    background: rgba(10, 10, 15, 0.95);
    border: 1px solid var(--accent-purple);
    padding: 15px 20px;
    border-radius: 12px 12px 12px 0;
    color: white;
    font-size: 0.95rem;
    box-shadow: 0 10px 30px rgba(157, 0, 255, 0.2);
    font-family: var(--font-heading);
    margin-bottom: 10px;
    width: 250px;
    line-height: 1.4;
}

.tour-controls {
    position: absolute;
    right: 80px;
    bottom: 0;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    opacity: 0;
    transform: translateX(20px);
    pointer-events: none;
    transition: opacity 0.3s, transform 0.3s;
}

.tour-controls.active {
    opacity: 1;
    transform: translateX(0);
    pointer-events: all;
}

.tour-buttons {
    display: flex;
    align-items: center;
    gap: 8px;
    background: rgba(10, 10, 15, 0.9);
    padding: 8px 12px;
    border-radius: 20px;
    border: 1px solid rgba(0, 240, 255, 0.3);
    backdrop-filter: blur(10px);
}

.tour-btn {
    background: transparent;
    border: none;
    color: var(--text-main);
    width: 30px;
    height: 30px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition-norm);
}

.tour-btn:hover {
    background: rgba(255,255,255,0.1);
    color: var(--accent-blue);
}

.tour-btn:disabled {
    opacity: 0.3;
    cursor: not-allowed;
    background: transparent;
    color: var(--text-main);
}

.skip-btn {
    width: auto;
    border-radius: 15px;
    padding: 0 12px;
    font-size: 0.85rem;
    margin-left: 5px;
    color: var(--text-muted);
}

.skip-btn:hover {
    color: #ff5f56;
    background: rgba(255, 95, 86, 0.1);
}

.tour-progress {
    font-family: var(--font-mono);
    font-size: 0.85rem;
    color: var(--accent-blue);
    padding: 0 5px;
}

/* Tour Highlight Effect */
.tour-highlight {
    position: relative;
    z-index: 100 !important;
    box-shadow: 0 0 0 4px rgba(0, 240, 255, 0.3), 0 0 30px rgba(157, 0, 255, 0.4) !important;
    border-color: var(--accent-blue) !important;
    transform: scale(1.02) !important;
    transition: all 0.5s ease-out !important;
}

/* Dim background when touring */
body.tour-active::after {
    content: '';
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0, 0, 0, 0.6);
    z-index: 90;
    pointer-events: none;
    transition: opacity 0.5s;
    opacity: 1;
}

body:not(.tour-active)::after {
    display: none;
}

@keyframes pulse-orb {
    from { transform: scale(0.9); box-shadow: 0 0 10px var(--accent-blue); filter: hue-rotate(0deg); }
    to { transform: scale(1.2); box-shadow: 0 0 30px var(--accent-blue), 0 0 60px var(--accent-purple); filter: hue-rotate(45deg); }
}

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

/* Canvas Background */
#bg-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -2;
    pointer-events: none;
    opacity: 0.6;
}

/* Background gradient blobs */
body.dark-theme::before {
    content: '';
    position: fixed;
    width: 60vw;
    height: 60vw;
    border-radius: 50%;
    filter: blur(120px);
    z-index: -1;
    opacity: 0.15;
    pointer-events: none;
    top: -20%;
    left: -10%;
    background: radial-gradient(circle, var(--accent-purple) 0%, transparent 70%);
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 600;
    line-height: 1.2;
}

a {
    color: var(--text-main);
    text-decoration: none;
    transition: var(--transition-norm);
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.section {
    padding: 6rem 0;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.section-title {
    font-size: 2.5rem;
    margin-bottom: 3rem;
    text-align: center;
}

.mt-3 { margin-top: 1.5rem; }
.mt-4 { margin-top: 2rem; }
.mb-4 { margin-bottom: 2rem; }
.w-100 { width: 100%; }
.text-center { text-align: center; }

/* ==========================================================================
   Typography & Utils
   ========================================================================== */
.gradient-text {
    background: var(--hero-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.neon-blue { color: var(--accent-blue); text-shadow: 0 0 10px var(--accent-blue-dim); }
.neon-purple { color: var(--accent-purple); text-shadow: 0 0 10px var(--accent-purple-dim); }
.neon-purple-text { color: var(--accent-purple); }

.highlight {
    color: var(--accent-blue);
    font-weight: 500;
}

/* Glassmorphism Classes */
.glass-nav {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    background: rgba(10, 10, 15, 0.7);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    transition: var(--transition-norm);
}

.glass-nav.scrolled {
    padding: 0.5rem 0;
    background: rgba(10, 10, 15, 0.9);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.5);
}

.glass-card {
    background: var(--surface-gradient);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: var(--radius-lg);
    padding: 2rem;
    position: relative;
    overflow: hidden;
    transform-style: preserve-3d;
    transition: box-shadow var(--transition-slow), border-color var(--transition-slow), transform 0.1s ease;
}

.glass-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    border-radius: inherit;
    padding: 2px;
    background: linear-gradient(135deg, rgba(255,255,255,0.1), rgba(255,255,255,0));
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    pointer-events: none;
}

.hover-glow {
    transition: var(--transition-slow);
}

.hover-glow:hover {
    transform: translateY(-5px);
    border-color: rgba(255, 255, 255, 0.15);
    box-shadow: 0 10px 40px -10px rgba(0, 0, 0, 0.5),
                0 0 20px var(--accent-blue-dim);
}

.outline-blue:hover { border-color: var(--accent-blue); box-shadow: 0 10px 30px var(--accent-blue-dim); }
.outline-purple:hover { border-color: var(--accent-purple); box-shadow: 0 10px 30px var(--accent-purple-dim); }

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.8rem 1.8rem;
    border-radius: var(--radius-sm);
    font-family: var(--font-heading);
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition-norm);
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 0.9rem;
    border: none;
    position: relative;
    overflow: hidden;
}

/* Ripple Effect */
.ripple {
    position: absolute;
    border-radius: 50%;
    transform: scale(0);
    animation: ripple-anim 0.6s linear;
    background-color: rgba(255, 255, 255, 0.3);
    pointer-events: none;
}

@keyframes ripple-anim {
    to {
        transform: scale(4);
        opacity: 0;
    }
}

.btn-primary {
    background: var(--hero-gradient);
    color: white;
    position: relative;
    z-index: 1;
}

.btn-primary::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: linear-gradient(135deg, var(--accent-purple), var(--accent-blue));
    border-radius: inherit;
    z-index: -1;
    transition: opacity var(--transition-norm);
    opacity: 0;
}

.btn-primary:hover::before { opacity: 1; }

.glow-effect:hover {
    box-shadow: 0 0 20px var(--accent-purple-dim), 0 0 40px var(--accent-blue-dim);
    transform: translateY(-2px);
}

.btn-secondary {
    background: transparent;
    border: 1px solid rgba(255,255,255,0.2);
    color: var(--text-main);
}

.btn-secondary:hover {
    background: rgba(255,255,255,0.05);
    border-color: var(--accent-blue);
    color: var(--accent-blue);
}

/* ==========================================================================
   Navigation
   ========================================================================== */
.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 1.2rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 700;
    letter-spacing: 2px;
}

.logo .dot {
    color: var(--accent-purple);
}

.nav-links {
    display: flex;
    gap: 2rem;
}

.nav-links a {
    font-size: 0.9rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1px;
    position: relative;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--hero-gradient);
    transition: var(--transition-norm);
}

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

.nav-links a:hover,
.nav-links a.active {
    color: var(--accent-blue);
}

.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    color: var(--text-main);
    font-size: 1.5rem;
    cursor: pointer;
}

/* ==========================================================================
   Hero Section
   ========================================================================== */
.hero {
    position: relative;
    overflow: hidden;
}

.parallax-layer {
    will-change: transform;
    transition: transform 0.1s ease-out;
}

.hero-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.greeting {
    font-family: var(--font-mono);
    color: var(--accent-blue);
    margin-bottom: 1rem;
    font-size: 1.1rem;
}

.hero h1 {
    font-size: 4.5rem;
    margin-bottom: 0.5rem;
    white-space: nowrap;
}

.cursor {
    animation: blink 1s step-end infinite;
    color: var(--accent-purple);
}

@keyframes blink {
    50% { opacity: 0; }
}

.hero .subtitle {
    font-size: 2rem;
    margin-bottom: 1.5rem;
}

.hero .tagline {
    font-size: 1.1rem;
    color: var(--text-muted);
    margin-bottom: 2.5rem;
    max-width: 90%;
}

.hero-cta {
    display: flex;
    gap: 1rem;
    margin-bottom: 3rem;
}

.hero-text .social-links {
    display: flex;
    gap: 1.5rem;
}

.hero-text .social-links a {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    background: rgba(255,255,255,0.05);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    border: 1px solid rgba(255,255,255,0.1);
}

.hero-text .social-links a:hover {
    background: var(--accent-blue-dim);
    border-color: var(--accent-blue);
    color: var(--accent-blue);
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 240, 255, 0.2);
}

/* ==========================================================================
   Interactive Terminal
   ========================================================================== */
.terminal-window {
    padding: 0;
    max-width: 550px;
    margin-left: auto;
    font-family: var(--font-mono);
    border-color: rgba(255, 255, 255, 0.15);
}

.interactive-terminal {
    display: flex;
    flex-direction: column;
    min-height: 380px;
}

.terminal-header {
    background: rgba(0, 0, 0, 0.3);
    padding: 0.8rem 1rem;
    display: flex;
    align-items: center;
    border-bottom: 1px solid rgba(255,255,255,0.05);
}

.btn-close, .btn-min, .btn-max {
    width: 12px; height: 12px;
    border-radius: 50%;
    margin-right: 8px;
}
.btn-close { background: #ff5f56; }
.btn-min { background: #ffbd2e; }
.btn-max { background: #27c93f; }

.terminal-title {
    margin-left: auto;
    margin-right: auto;
    font-size: 0.85rem;
    color: var(--text-muted);
}

.terminal-body {
    display: flex;
    flex-direction: column;
    flex: 1;
    overflow: hidden;
}

.terminal-output {
    flex: 1;
    overflow-y: auto;
    padding: 1rem 1.5rem;
    font-size: 0.8rem;
    line-height: 1.6;
    scrollbar-width: thin;
    scrollbar-color: rgba(0,240,255,0.3) transparent;
    max-height: 280px;
}

.terminal-output::-webkit-scrollbar {
    width: 4px;
}

.terminal-output::-webkit-scrollbar-track {
    background: transparent;
}

.terminal-output::-webkit-scrollbar-thumb {
    background: rgba(0,240,255,0.3);
    border-radius: 2px;
}

.terminal-input-line {
    display: flex;
    align-items: center;
    padding: 0.5rem 1.5rem 1rem;
    border-top: 1px solid rgba(255,255,255,0.05);
}

.terminal-prompt {
    color: #27c93f;
    font-family: var(--font-mono);
    font-size: 0.8rem;
    white-space: nowrap;
    margin-right: 0.5rem;
}

#terminal-input {
    background: transparent;
    border: none;
    outline: none;
    color: var(--accent-blue);
    font-family: var(--font-mono);
    font-size: 0.8rem;
    width: 100%;
    caret-color: var(--accent-blue);
}

.term-line {
    margin-bottom: 0.2rem;
}

.term-cmd {
    color: var(--text-muted);
}

.term-cmd .prompt-echo {
    color: #27c93f;
}

.term-output {
    color: #a5d6ff;
}

.term-error {
    color: #ff5f56;
}

.term-success {
    color: #27c93f;
}

.term-special {
    background: var(--hero-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: 600;
}

.term-ascii {
    white-space: pre;
    font-size: 0.55rem;
    line-height: 1.1;
    color: var(--accent-blue);
}

.term-table {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 0.15rem 1.5rem;
    margin: 0.3rem 0;
}

.term-table .term-key {
    color: var(--accent-blue);
    white-space: nowrap;
}

.term-table .term-val {
    color: var(--text-muted);
}

.term-heading {
    color: var(--accent-purple);
    font-weight: 600;
    margin-top: 0.4rem;
    margin-bottom: 0.2rem;
    border-bottom: 1px solid rgba(255,255,255,0.05);
    padding-bottom: 0.15rem;
}

.term-tag {
    display: inline-block;
    color: var(--accent-blue);
    background: rgba(0,240,255,0.1);
    padding: 0.1rem 0.4rem;
    border-radius: 3px;
    font-size: 0.75rem;
    margin: 0.1rem 0.2rem 0.1rem 0;
}

.terminal-flash {
    animation: term-flash 0.3s ease;
}

@keyframes term-flash {
    0%, 100% { box-shadow: none; }
    50% { box-shadow: 0 0 40px rgba(39,201,63,0.5), inset 0 0 20px rgba(39,201,63,0.1); }
}

/* Background floating code */
.code-bg-elements {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    pointer-events: none;
    z-index: -1;
    overflow: hidden;
}

.code-snippet {
    position: absolute;
    font-family: var(--font-mono);
    color: rgba(255, 255, 255, 0.03);
    font-size: 2rem;
    white-space: nowrap;
    animation: float-around 20s linear infinite;
}

.snippet-1 { top: 20%; left: 5%; }
.snippet-2 { top: 60%; right: 10%; font-size: 3rem; animation-duration: 25s; animation-direction: reverse; }
.snippet-3 { bottom: 10%; left: 20%; font-size: 1.5rem; }
.snippet-4 { top: 15%; right: 5%; font-size: 1.8rem; }

@keyframes float-around {
    0% { transform: translate(0, 0) rotate(0deg); }
    33% { transform: translate(30px, -50px) rotate(5deg); }
    66% { transform: translate(-20px, 20px) rotate(-5deg); }
    100% { transform: translate(0, 0) rotate(0deg); }
}

/* ==========================================================================
   About Section
   ========================================================================== */
.about-grid {
    display: grid;
    grid-template-columns: 3fr 2fr;
    gap: 2rem;
}

.about-text p {
    color: var(--text-muted);
    margin-bottom: 1rem;
    font-size: 1.05rem;
}

.education-card {
    display: flex;
    gap: 1.5rem;
    align-items: flex-start;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(255,255,255,0.1);
}

.edu-icon {
    font-size: 2.5rem;
    color: var(--accent-purple);
    background: var(--accent-purple-dim);
    padding: 1rem;
    border-radius: var(--radius-md);
}

.date {
    font-size: 0.9rem;
    color: var(--text-muted);
}

.stats-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
}

.stat-card {
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
}

.stat-number {
    font-size: 3.5rem;
    font-family: var(--font-heading);
    font-weight: 700;
    line-height: 1;
    margin-bottom: 0.5rem;
}

.stat-label {
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 0.85rem;
    color: var(--text-muted);
}

/* ==========================================================================
   Experience Section
   ========================================================================== */
.timeline {
    position: relative;
    max-width: 900px;
    margin: 0 auto;
}

.timeline::before {
    content: '';
    position: absolute;
    top: 0; left: 20px;
    height: 100%; width: 2px;
    background: linear-gradient(to bottom, var(--accent-blue), var(--accent-purple));
    box-shadow: 0 0 10px var(--accent-blue-dim);
}

.timeline-item {
    position: relative;
    padding-left: 60px;
    margin-bottom: 3rem;
}

.timeline-marker {
    position: absolute;
    left: 11px; top: 30px;
    width: 20px; height: 20px;
    border-radius: 50%;
    background: var(--bg-dark);
    border: 4px solid var(--accent-blue);
    box-shadow: 0 0 15px var(--accent-blue);
    z-index: 1;
    transition: all 0.3s ease;
}

.timeline-marker.pulse {
    animation: marker-pulse 1.5s infinite;
}

@keyframes marker-pulse {
    0%, 100% { box-shadow: 0 0 15px var(--accent-blue); }
    50% { box-shadow: 0 0 25px var(--accent-blue), 0 0 50px rgba(0, 240, 255, 0.4); transform: scale(1.2); }
}

.timeline-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    border-bottom: 1px solid rgba(255,255,255,0.1);
    padding-bottom: 1rem;
}

.timeline .role {
    font-size: 1.5rem;
    color: var(--text-main);
}

.company {
    font-size: 1.1rem;
    margin-top: 0.3rem;
}

.location {
    font-size: 0.9rem;
    color: var(--text-muted);
    font-weight: 400;
    margin-left: 10px;
}

.date-badge {
    background: rgba(255,255,255,0.05);
    padding: 0.4rem 1rem;
    border-radius: 20px;
    font-size: 0.85rem;
    border: 1px solid rgba(255,255,255,0.1);
}

.category-title {
    font-size: 1.2rem;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.exp-list {
    padding-left: 1.2rem;
    color: var(--text-muted);
}

.exp-list li {
    margin-bottom: 0.5rem;
    position: relative;
}

.exp-list li::before {
    content: '\25B9';
    position: absolute;
    left: -1.2rem;
    color: var(--accent-blue);
}

/* ==========================================================================
   Git Commit Timeline
   ========================================================================== */
.commit-timeline {
    margin-top: 3rem;
    overflow-x: auto;
    overflow-y: hidden;
    padding: 1rem 0 2rem;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
    scrollbar-color: rgba(0, 240, 255, 0.2) transparent;
}

.commit-timeline::-webkit-scrollbar {
    height: 4px;
}
.commit-timeline::-webkit-scrollbar-thumb {
    background: rgba(0, 240, 255, 0.2);
    border-radius: 2px;
}

.commit-track {
    display: flex;
    align-items: flex-start;
    gap: 2rem;
    position: relative;
    min-width: max-content;
    padding: 0 1rem;
}

.commit-line {
    position: absolute;
    top: 12px;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--accent-blue), var(--accent-purple));
    opacity: 0.3;
    z-index: 0;
}

.commit-node {
    position: relative;
    flex-shrink: 0;
    width: 220px;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.commit-node.visible {
    opacity: 1;
    transform: translateY(0);
}

.commit-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--accent-blue);
    border: 2px solid var(--bg-dark);
    position: relative;
    z-index: 1;
    margin-bottom: 1rem;
    box-shadow: 0 0 8px rgba(0, 240, 255, 0.3);
}

.commit-dot.active {
    background: var(--accent-purple);
    box-shadow: 0 0 12px rgba(157, 0, 255, 0.5);
    animation: marker-pulse 1.5s infinite;
}

.commit-node::before {
    content: attr(data-date);
    position: absolute;
    top: -22px;
    left: 0;
    font-family: var(--font-mono);
    font-size: 0.65rem;
    color: var(--accent-blue);
    white-space: nowrap;
}

.commit-node::after {
    content: attr(data-metric);
    position: absolute;
    top: -22px;
    right: 0;
    font-family: var(--font-mono);
    font-size: 0.65rem;
    color: var(--accent-purple);
    font-weight: 600;
    white-space: nowrap;
}

.commit-card {
    padding: 1rem;
    font-size: 0.82rem;
}

.commit-hash {
    font-family: var(--font-mono);
    font-size: 0.7rem;
    color: var(--accent-purple);
    margin-bottom: 0.4rem;
}

.commit-msg {
    font-family: var(--font-mono);
    font-size: 0.8rem;
    color: var(--text-main);
    margin-bottom: 0.6rem;
    font-weight: 500;
}

.commit-diff {
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
}

.diff-add {
    font-family: var(--font-mono);
    font-size: 0.72rem;
    color: #00ff88;
    line-height: 1.5;
}

.diff-del {
    font-family: var(--font-mono);
    font-size: 0.72rem;
    color: #ff6b6b;
    line-height: 1.5;
}

@media (max-width: 768px) {
    .commit-node { width: 180px; }
    .commit-track { gap: 1.5rem; }
    .commit-card { padding: 0.75rem; }
}

/* ==========================================================================
   Skills Section
   ========================================================================== */
.radar-chart-container {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 3rem;
    position: relative;
}

.skill-radar {
    width: 100%;
    max-width: 420px;
    height: auto;
}

.radar-ring {
    fill: none;
    stroke: rgba(255, 255, 255, 0.06);
    stroke-width: 1;
}

.radar-axes line {
    stroke: rgba(255, 255, 255, 0.08);
    stroke-width: 1;
}

.radar-data {
    stroke: var(--accent-blue);
    stroke-width: 2;
    stroke-dasharray: 1200;
    stroke-dashoffset: 1200;
    transition: stroke-dashoffset 1.5s ease-out;
}

.radar-data.animated {
    stroke-dashoffset: 0;
}

.radar-points circle {
    fill: var(--accent-blue);
    stroke: var(--bg-dark);
    stroke-width: 2;
    r: 0;
    transition: r 0.5s ease-out;
    cursor: pointer;
}

.radar-points circle.animated {
    r: 5;
}

.radar-points circle:hover {
    r: 8;
    fill: var(--accent-purple);
    filter: drop-shadow(0 0 6px var(--accent-purple));
}

.radar-labels text {
    font-family: var(--font-mono);
    font-size: 11px;
    fill: var(--text-muted);
    text-anchor: middle;
    pointer-events: none;
}

.radar-tooltip {
    position: absolute;
    background: var(--bg-surface);
    border: 1px solid rgba(0, 240, 255, 0.2);
    border-radius: 8px;
    padding: 0.5rem 0.8rem;
    font-family: var(--font-mono);
    font-size: 0.75rem;
    color: var(--text-main);
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.2s;
    white-space: nowrap;
    z-index: 10;
}

.radar-tooltip.visible {
    opacity: 1;
}

@media (max-width: 768px) {
    .skill-radar { max-width: 300px; }
    .radar-labels text { font-size: 9px; }
}

.skills-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}

.skill-category h3 {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    margin-bottom: 1.5rem;
    font-size: 1.2rem;
    padding-bottom: 0.8rem;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

.skill-category h3 i {
    color: var(--accent-blue);
}

.skill-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.8rem;
}

.tag {
    background: rgba(255,255,255,0.03);
    border: 1px solid rgba(255,255,255,0.1);
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.9rem;
    transition: var(--transition-norm);
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.tag:hover {
    background: rgba(255,255,255,0.1);
    transform: translateY(-2px);
}

.tag.neon-border {
    border-color: rgba(0, 240, 255, 0.3);
}

.tag.neon-border:hover {
    border-color: var(--accent-blue);
    box-shadow: 0 0 10px var(--accent-blue-dim);
    color: var(--accent-blue);
}

/* Skill tag particle burst */
.tag-particle {
    position: absolute;
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background: var(--accent-blue);
    pointer-events: none;
    opacity: 0;
}

.tag-particle.burst {
    animation: particle-fly 0.6s ease-out forwards;
}

@keyframes particle-fly {
    0% { transform: translate(0, 0) scale(1); opacity: 1; }
    100% { transform: translate(var(--px), var(--py)) scale(0); opacity: 0; }
}

/* ==========================================================================
   Works / Projects Section
   ========================================================================== */
.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(400px, 1fr));
    gap: 2rem;
}

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

.project-visual {
    padding: 2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    min-height: 120px;
}

.project-content {
    padding: 2rem;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.project-content h3 {
    font-size: 1.6rem;
    margin-bottom: 1rem;
}

.project-content p {
    color: var(--text-muted);
    margin-bottom: 1.5rem;
    flex-grow: 1;
}

.tech-stack {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
}

.tech-stack span {
    font-size: 0.8rem;
    color: var(--accent-blue);
    background: var(--accent-blue-dim);
    padding: 0.2rem 0.6rem;
    border-radius: 4px;
    font-family: var(--font-mono);
}

/* CSS Voice Waveform Animation */
.ai-waveform {
    display: flex;
    align-items: center;
    gap: 5px;
}
.ai-waveform .bar {
    width: 6px;
    background: var(--hero-gradient);
    border-radius: 3px;
    animation: waveform 1.2s ease-in-out infinite alternate;
}
.ai-waveform .bar:nth-child(1) { height: 20px; animation-delay: 0.1s; }
.ai-waveform .bar:nth-child(2) { height: 40px; animation-delay: 0.2s; }
.ai-waveform .bar:nth-child(3) { height: 70px; animation-delay: 0.3s; }
.ai-waveform .bar:nth-child(4) { height: 50px; animation-delay: 0.4s; }
.ai-waveform .bar:nth-child(5) { height: 80px; animation-delay: 0.5s; }
.ai-waveform .bar:nth-child(6) { height: 30px; animation-delay: 0.6s; }
.ai-waveform .bar:nth-child(7) { height: 50px; animation-delay: 0.7s; }

.ai-icon {
    position: absolute;
    font-size: 3rem;
    color: rgba(255,255,255,0.2);
    z-index: 0;
}

@keyframes waveform {
    0% { transform: scaleY(0.5); }
    100% { transform: scaleY(1.5); }
}

/* CSS Chart Animation */
.analytics-chart {
    display: flex;
    align-items: flex-end;
    gap: 15px;
    padding-bottom: 30px;
    position: relative;
}
.chart-bar {
    width: 30px;
    background: linear-gradient(to top, rgba(157,0,255,0.2), var(--accent-purple));
    border-radius: 4px 4px 0 0;
    position: relative;
    opacity: 0.8;
    transition: height 1s;
}
.h-40 { height: 40px; }
.h-70 { height: 70px; }
.h-50 { height: 50px; }
.h-90 { height: 90px; }
.h-60 { height: 60px; }

/* ==========================================================================
   Contact Section
   ========================================================================== */
.contact-grid {
    display: grid;
    grid-template-columns: 2fr 3fr;
    gap: 3rem;
}

.contact-info h3 {
    font-size: 1.8rem;
    margin-bottom: 1rem;
}

.method-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.icon-box {
    width: 50px; height: 50px;
    border-radius: 12px;
    background: rgba(255,255,255,0.05);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    border: 1px solid rgba(255,255,255,0.05);
}

.method-item h4 {
    font-size: 0.9rem;
    color: var(--text-muted);
    font-weight: 500;
}

.glass-icon {
    display: inline-flex;
    width: 45px; height: 45px;
    border-radius: 50%;
    background: rgba(255,255,255,0.05);
    align-items: center;
    justify-content: center;
    margin-right: 1rem;
    border: 1px solid rgba(255,255,255,0.1);
}

.glass-icon:hover {
    background: var(--hero-gradient);
    color: white;
    border-color: transparent;
    transform: translateY(-3px);
}

.contact-form .form-group {
    margin-bottom: 1.5rem;
}

.contact-form label {
    display: block;
    margin-bottom: 0.5rem;
    color: var(--text-muted);
    font-size: 0.9rem;
    letter-spacing: 1px;
}

.glass-input {
    width: 100%;
    padding: 1rem;
    background: rgba(0,0,0,0.3);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: var(--radius-sm);
    color: white;
    font-family: inherit;
    font-size: 1rem;
    transition: var(--transition-norm);
}

.glass-input:focus {
    outline: none;
    border-color: var(--accent-purple);
    box-shadow: 0 0 15px var(--accent-purple-dim);
    background: rgba(0,0,0,0.5);
}

/* Footer */
.glass-footer {
    padding: 2rem 0;
    border-top: 1px solid rgba(255,255,255,0.05);
    background: rgba(10, 10, 15, 0.8);
    backdrop-filter: blur(10px);
}

.glass-footer p {
    color: var(--text-muted);
    font-size: 0.9rem;
}

/* ==========================================================================
   Scroll Progress Pipeline
   ========================================================================== */
.scroll-pipeline {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    z-index: 999;
    background: rgba(7, 7, 10, 0.92);
    backdrop-filter: blur(10px);
    border-top: 1px solid rgba(255,255,255,0.05);
    padding: 0.6rem 2rem;
}

.pipeline-track {
    display: flex;
    align-items: center;
    justify-content: center;
    max-width: 800px;
    margin: 0 auto;
}

.pipeline-stage {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.25rem;
    cursor: pointer;
    padding: 0 0.4rem;
    transition: var(--transition-norm);
}

.pipeline-stage:hover .pipeline-label {
    color: var(--accent-blue);
}

.pipeline-node {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    border: 2px solid rgba(255,255,255,0.2);
    background: transparent;
    transition: all 0.3s;
    position: relative;
}

.pipeline-stage.completed .pipeline-node {
    border-color: #27c93f;
    background: #27c93f;
    box-shadow: 0 0 8px rgba(39, 201, 63, 0.5);
}

.pipeline-stage.completed .pipeline-node::after {
    content: '\2713';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 0.5rem;
    color: var(--bg-dark);
    font-weight: 700;
}

.pipeline-stage.active .pipeline-node {
    border-color: var(--accent-blue);
    background: var(--accent-blue);
    box-shadow: 0 0 12px var(--accent-blue), 0 0 25px rgba(0,240,255,0.3);
    animation: pulse-node 1.5s infinite;
}

.pipeline-label {
    font-family: var(--font-mono);
    font-size: 0.6rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--text-muted);
    transition: color 0.3s;
}

.pipeline-stage.active .pipeline-label {
    color: var(--accent-blue);
}

.pipeline-stage.completed .pipeline-label {
    color: #27c93f;
}

.pipeline-connector {
    flex: 1;
    height: 2px;
    background: rgba(255,255,255,0.1);
    min-width: 20px;
    max-width: 70px;
    transition: background 0.3s;
}

.pipeline-connector.filled {
    background: linear-gradient(90deg, #27c93f, var(--accent-blue));
    box-shadow: 0 0 5px rgba(0,240,255,0.2);
}

@keyframes pulse-node {
    0%, 100% { box-shadow: 0 0 10px var(--accent-blue); }
    50% { box-shadow: 0 0 20px var(--accent-blue), 0 0 35px rgba(0,240,255,0.3); }
}

/* ==========================================================================
   Easter Egg: Achievement Toast
   ========================================================================== */
.easter-egg-toast {
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%) translateY(-150px);
    background: rgba(10, 10, 15, 0.95);
    border: 1px solid #27c93f;
    border-radius: var(--radius-md);
    padding: 1rem 1.5rem;
    z-index: 100000;
    font-family: var(--font-mono);
    box-shadow: 0 0 30px rgba(39,201,63,0.3);
    display: flex;
    align-items: center;
    gap: 1rem;
    transition: transform 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.easter-egg-toast.visible {
    transform: translateX(-50%) translateY(0);
}

.toast-icon {
    font-size: 1.5rem;
    color: #ffd700;
}

.toast-title {
    color: #27c93f;
    font-weight: 600;
    font-size: 0.85rem;
    letter-spacing: 1px;
}

.toast-msg {
    color: var(--text-muted);
    font-size: 0.8rem;
    margin-top: 0.2rem;
}

/* ==========================================================================
   Easter Egg: Debug Panel
   ========================================================================== */
.debug-panel {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.9);
    z-index: 99999;
    max-width: 400px;
    width: 90%;
    opacity: 0;
    pointer-events: none;
    transition: all 0.3s ease;
}

.debug-panel.visible {
    opacity: 1;
    pointer-events: auto;
    transform: translate(-50%, -50%) scale(1);
}

.debug-panel h3 {
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.debug-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: transparent;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    font-size: 1rem;
    transition: var(--transition-norm);
}

.debug-close:hover {
    color: #ff5f56;
}

.debug-info {
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
}

.debug-row {
    display: flex;
    justify-content: space-between;
    padding: 0.4rem 0;
    border-bottom: 1px solid rgba(255,255,255,0.05);
    font-size: 0.85rem;
}

.debug-key {
    color: var(--accent-blue);
    font-family: var(--font-mono);
}

.debug-val {
    color: var(--text-muted);
    font-family: var(--font-mono);
}

/* ==========================================================================
   Matrix Rain Canvas
   ========================================================================== */
#matrix-canvas {
    position: fixed;
    inset: 0;
    z-index: 99998;
    opacity: 1;
    transition: opacity 1s;
}

/* ==========================================================================
   Light Theme
   ========================================================================== */
body.light-theme {
    --bg-dark: #f0f0f5;
    --bg-surface: rgba(255, 255, 255, 0.6);
    --bg-glass: rgba(255, 255, 255, 0.4);
    --accent-blue: #0090aa;
    --accent-purple: #7b00cc;
    --accent-blue-dim: rgba(0, 144, 170, 0.12);
    --accent-purple-dim: rgba(123, 0, 204, 0.12);
    --text-main: #1a1a2e;
    --text-muted: #555568;
    --text-dark: #f0f0f5;
    --hero-gradient: linear-gradient(135deg, #0090aa, #7b00cc);
    --surface-gradient: linear-gradient(145deg, rgba(255,255,255,0.7) 0%, rgba(240,240,245,0.5) 100%);
}

body.light-theme .glass-nav {
    background: rgba(255,255,255,0.8);
    border-bottom-color: rgba(0,0,0,0.05);
}

body.light-theme .glass-nav.scrolled {
    background: rgba(255,255,255,0.95);
}

body.light-theme .glass-card {
    border-color: rgba(0,0,0,0.08);
}

body.light-theme .glass-card::before {
    background: linear-gradient(135deg, rgba(0,0,0,0.05), rgba(0,0,0,0));
}

body.light-theme .glass-footer {
    background: rgba(255,255,255,0.9);
    border-top-color: rgba(0,0,0,0.05);
}

body.light-theme .glass-input {
    background: rgba(255,255,255,0.5);
    border-color: rgba(0,0,0,0.1);
    color: var(--text-main);
}

body.light-theme #bg-canvas {
    opacity: 0.25;
}

body.light-theme .interactive-terminal {
    --surface-gradient: linear-gradient(145deg, rgba(20,20,30,0.95) 0%, rgba(10,10,15,0.95) 100%);
}

body.light-theme .interactive-terminal,
body.light-theme .terminal-header,
body.light-theme .terminal-input-line {
    color: #a5d6ff;
}

body.light-theme .interactive-terminal .terminal-prompt,
body.light-theme .interactive-terminal #terminal-input {
    color: #27c93f;
}

body.light-theme .tag {
    background: rgba(0,0,0,0.03);
    border-color: rgba(0,0,0,0.1);
}

body.light-theme .scroll-pipeline {
    background: rgba(240,240,245,0.92);
    border-top-color: rgba(0,0,0,0.05);
}

body.light-theme .date-badge {
    background: rgba(0,0,0,0.03);
    border-color: rgba(0,0,0,0.08);
}

body.light-theme .icon-box {
    background: rgba(0,0,0,0.03);
    border-color: rgba(0,0,0,0.05);
}

body.light-theme::before {
    opacity: 0.08;
}

body, .glass-card, .glass-nav, .glass-footer, .glass-input, .tag, .icon-box, .date-badge {
    transition: background-color 0.4s, color 0.4s, border-color 0.4s, box-shadow 0.4s;
}

/* ==========================================================================
   Theme Toggle Button
   ========================================================================== */
.theme-toggle {
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 50%;
    width: 38px;
    height: 38px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-main);
    cursor: pointer;
    transition: var(--transition-norm);
    font-size: 0.95rem;
    margin-left: 1rem;
    flex-shrink: 0;
}

.theme-toggle:hover {
    background: var(--accent-blue-dim);
    border-color: var(--accent-blue);
    color: var(--accent-blue);
}

body.light-theme .theme-toggle {
    background: rgba(0,0,0,0.05);
    border-color: rgba(0,0,0,0.1);
}

.sound-toggle {
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 50%;
    width: 38px;
    height: 38px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-main);
    cursor: pointer;
    transition: var(--transition-norm);
    font-size: 0.95rem;
    margin-left: 1rem;
    flex-shrink: 0;
}

.sound-toggle:hover {
    background: var(--accent-blue-dim);
    border-color: var(--accent-blue);
    color: var(--accent-blue);
}

.sound-toggle.active {
    color: var(--accent-blue);
    border-color: var(--accent-blue);
}

body.light-theme .sound-toggle {
    background: rgba(0,0,0,0.05);
    border-color: rgba(0,0,0,0.1);
}

/* ==========================================================================
   SVG Monogram
   ========================================================================== */
.about-grid-3col {
    grid-template-columns: auto 3fr 2fr;
}

.profile-visual {
    display: flex;
    align-items: center;
    justify-content: center;
}

.profile-frame {
    width: 180px;
    height: 180px;
    position: relative;
}

.monogram-svg {
    width: 100%;
    height: 100%;
}

.monogram-circle {
    stroke-dasharray: 600;
    stroke-dashoffset: 600;
    animation: draw-circle 2s ease forwards 0.5s;
}

.monogram-text {
    stroke-dasharray: 300;
    stroke-dashoffset: 300;
    animation: draw-text 2s ease forwards 1.5s;
}

@keyframes draw-circle {
    to { stroke-dashoffset: 0; }
}

@keyframes draw-text {
    to { stroke-dashoffset: 0; }
}

.profile-frame::before {
    content: '';
    position: absolute;
    inset: -4px;
    border-radius: 50%;
    background: var(--hero-gradient);
    z-index: -1;
    opacity: 0;
    animation: profile-pulse 3s ease-in-out infinite alternate 2.5s;
}

@keyframes profile-pulse {
    0% { opacity: 0.3; transform: scale(1); }
    100% { opacity: 0.6; transform: scale(1.03); box-shadow: 0 0 30px var(--accent-blue), 0 0 60px var(--accent-purple); }
}

/* ==========================================================================
   Certifications Section
   ========================================================================== */
.certs-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 1.5rem;
}

.cert-card {
    text-align: center;
    padding: 2.5rem 2rem;
    position: relative;
    overflow: hidden;
}

.cert-icon {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
    color: var(--accent-blue);
    background: var(--accent-blue-dim);
    width: 70px;
    height: 70px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
}

.cert-name {
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
}

.cert-issuer {
    color: var(--accent-purple);
    font-size: 0.9rem;
    font-weight: 500;
}

.cert-date {
    color: var(--text-muted);
    font-size: 0.8rem;
    font-family: var(--font-mono);
    margin-top: 0.5rem;
}

.cert-badge-stamp {
    position: absolute;
    top: 10px;
    right: 10px;
    width: 50px;
    height: 50px;
    border: 3px solid var(--accent-blue);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transform: scale(3) rotate(-30deg);
    transition: all 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.cert-badge-stamp::after {
    content: '\2713';
    font-size: 1.3rem;
    color: var(--accent-blue);
    font-weight: 700;
}

.cert-card.stamped .cert-badge-stamp {
    opacity: 1;
    transform: scale(1) rotate(0deg);
}

/* ==========================================================================
   System Architecture Diagram
   ========================================================================== */
.section-subtitle {
    text-align: center;
    color: var(--text-muted);
    margin-top: -1.5rem;
    margin-bottom: 3rem;
    font-size: 1.05rem;
}

.sys-arch-diagram {
    position: relative;
    padding: 2rem 0;
}

.arch-svg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    pointer-events: none;
}

.arch-nodes-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
    z-index: 2;
    gap: 0.5rem;
}

.arch-node {
    width: 130px;
    text-align: center;
    padding: 1.2rem 0.8rem;
    background: var(--bg-glass);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: all 0.3s ease;
    animation: node-glow 3s ease-in-out infinite alternate;
}

.arch-node:hover {
    border-color: var(--accent-blue);
    box-shadow: 0 0 20px var(--accent-blue-dim);
    transform: translateY(-5px);
}

.arch-icon {
    font-size: 1.8rem;
    color: var(--accent-blue);
    margin-bottom: 0.6rem;
}

.arch-label {
    font-family: var(--font-mono);
    font-size: 0.75rem;
    color: var(--text-muted);
}

@keyframes node-glow {
    0% { box-shadow: 0 0 5px transparent; }
    100% { box-shadow: 0 0 15px var(--accent-blue-dim); }
}

.arch-tooltip {
    position: absolute;
    background: rgba(10,10,15,0.95);
    border: 1px solid var(--accent-blue);
    border-radius: var(--radius-sm);
    padding: 0.8rem 1.2rem;
    font-size: 0.82rem;
    color: var(--text-main);
    font-family: var(--font-mono);
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
    pointer-events: none;
    opacity: 0;
    transform: translateY(10px);
    transition: opacity 0.3s, transform 0.3s;
    z-index: 10;
    max-width: 280px;
    white-space: normal;
}

.arch-tooltip.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ==========================================================================
   Blog Section
   ========================================================================== */
.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 2rem;
}

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

.blog-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.blog-category {
    background: var(--accent-purple-dim);
    color: var(--accent-purple);
    padding: 0.25rem 0.7rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-family: var(--font-mono);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.blog-date {
    color: var(--text-muted);
    font-size: 0.82rem;
}

.blog-title {
    font-size: 1.25rem;
    margin-bottom: 0.8rem;
    line-height: 1.4;
}

.blog-excerpt {
    color: var(--text-muted);
    flex-grow: 1;
    margin-bottom: 1.5rem;
    font-size: 0.95rem;
    line-height: 1.6;
}

.blog-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 1rem;
    border-top: 1px solid rgba(255,255,255,0.05);
}

.blog-readtime {
    color: var(--text-muted);
    font-size: 0.82rem;
}

.blog-readmore {
    color: var(--accent-blue);
    font-size: 0.88rem;
    font-weight: 500;
}

.blog-readmore:hover {
    text-decoration: underline;
}

/* ==========================================================================
   Page Transition Overlay
   ========================================================================== */
.page-transition-overlay {
    position: fixed;
    inset: 0;
    z-index: 100001;
    background: var(--bg-dark);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.page-transition-overlay.active {
    opacity: 1;
    pointer-events: all;
}

.transition-text {
    font-family: var(--font-mono);
    font-size: 1.2rem;
    color: var(--accent-blue);
    letter-spacing: 3px;
    text-transform: uppercase;
    animation: transition-blink 0.5s infinite alternate;
}

@keyframes transition-blink {
    0% { opacity: 0.4; }
    100% { opacity: 1; }
}

/* ==========================================================================
   View Source Overlay
   ========================================================================== */
.source-overlay {
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(7, 7, 10, 0.88);
    backdrop-filter: blur(3px);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s, visibility 0.3s;
}

.source-overlay.visible {
    opacity: 1;
    visibility: visible;
}

.source-panel {
    max-width: 700px;
    width: 90%;
    max-height: 75vh;
    overflow-y: auto;
    padding: 1.5rem;
    border-radius: var(--radius-lg);
    background: rgba(15, 15, 25, 0.95);
    border: 1px solid rgba(0, 240, 255, 0.15);
    box-shadow: 0 0 30px rgba(0, 240, 255, 0.08);
}

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

.source-panel-header h3 {
    font-family: var(--font-mono);
    font-size: 0.85rem;
    color: var(--accent-blue);
}

.source-panel-close {
    background: none;
    border: none;
    color: var(--text-muted);
    font-size: 1.3rem;
    cursor: pointer;
}

.source-code {
    font-family: var(--font-mono);
    font-size: 0.78rem;
    line-height: 1.7;
    white-space: pre-wrap;
    word-break: break-word;
    color: var(--text-muted);
    tab-size: 2;
}

.source-code .kw { color: #00f0ff; }
.source-code .str { color: #c792ea; }
.source-code .cmt { color: #546e7a; font-style: italic; }
.source-code .num { color: #f78c6c; }
.source-code .fn { color: #82aaff; }

.source-panel::-webkit-scrollbar { width: 4px; }
.source-panel::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.1); border-radius: 2px; }

/* ==========================================================================
   Command Palette
   ========================================================================== */
.command-palette {
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(8px);
    display: flex;
    align-items: flex-start;
    justify-content: center;
    padding-top: 20vh;
    z-index: 10001;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.2s ease, visibility 0.2s ease;
}

.command-palette.visible {
    opacity: 1;
    visibility: visible;
}

.cmd-palette-content {
    max-width: 560px;
    width: 90%;
    padding: 0;
    overflow: hidden;
    transform: translateY(-10px) scale(0.98);
    transition: transform 0.2s ease;
}

.command-palette.visible .cmd-palette-content {
    transform: translateY(0) scale(1);
}

.cmd-palette-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.9rem 1.2rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.cmd-palette-header i {
    color: var(--accent-blue);
    font-size: 0.9rem;
    flex-shrink: 0;
}

.cmd-palette-header input {
    flex: 1;
    background: none;
    border: none;
    outline: none;
    color: var(--text-main);
    font-family: var(--font-body);
    font-size: 1rem;
}

.cmd-palette-header input::placeholder {
    color: var(--text-muted);
}

.cmd-palette-header kbd {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 2px 8px;
    font-family: var(--font-mono);
    font-size: 0.7rem;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 4px;
    color: var(--text-muted);
    flex-shrink: 0;
}

.cmd-palette-results {
    max-height: 320px;
    overflow-y: auto;
    padding: 0.4rem 0;
}

.cmd-palette-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.6rem 1.2rem;
    cursor: pointer;
    transition: background 0.1s;
}

.cmd-palette-item:hover,
.cmd-palette-item.selected {
    background: rgba(0, 240, 255, 0.08);
}

.cmd-palette-item .cmd-icon {
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 6px;
    background: rgba(255, 255, 255, 0.05);
    color: var(--accent-blue);
    font-size: 0.8rem;
    flex-shrink: 0;
}

.cmd-palette-item .cmd-label {
    flex: 1;
    font-size: 0.9rem;
    color: var(--text-main);
}

.cmd-palette-item .cmd-badge {
    font-family: var(--font-mono);
    font-size: 0.65rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--accent-purple);
    background: rgba(157, 0, 255, 0.1);
    padding: 2px 8px;
    border-radius: 4px;
}

.cmd-palette-results::-webkit-scrollbar {
    width: 4px;
}
.cmd-palette-results::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 2px;
}

/* ==========================================================================
   Keyboard Shortcuts Modal
   ========================================================================== */
.shortcuts-modal {
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(8px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.shortcuts-modal.visible {
    opacity: 1;
    visibility: visible;
}

.shortcuts-modal .shortcuts-content {
    max-width: 550px;
    width: 90%;
    padding: 2rem;
    transform: scale(0.9);
    transition: transform 0.3s ease;
}

.shortcuts-modal.visible .shortcuts-content {
    transform: scale(1);
}

.shortcuts-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.shortcuts-header h3 {
    font-family: var(--font-heading);
    font-size: 1.2rem;
    color: var(--accent-blue);
}

.shortcuts-header h3 i {
    margin-right: 0.5rem;
}

.shortcuts-close {
    background: none;
    border: none;
    color: var(--text-muted);
    font-size: 1.5rem;
    cursor: pointer;
    padding: 0.25rem 0.5rem;
    transition: color 0.2s;
}

.shortcuts-close:hover {
    color: var(--text-main);
}

.shortcuts-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
}

.shortcut-group h4 {
    font-family: var(--font-mono);
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--accent-purple);
    margin-bottom: 0.75rem;
}

.shortcut-item {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.4rem 0;
    font-size: 0.9rem;
    color: var(--text-muted);
}

.shortcut-item span {
    margin-left: auto;
}

.shortcut-item kbd {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 28px;
    height: 26px;
    padding: 0 6px;
    font-family: var(--font-mono);
    font-size: 0.75rem;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 4px;
    color: var(--text-main);
    box-shadow: 0 2px 0 rgba(0, 0, 0, 0.3);
}

@media (max-width: 768px) {
    .shortcuts-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
}

/* ==========================================================================
   Transitions & Animations for IntersectionObserver
   ========================================================================== */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s cubic-bezier(0.5, 0, 0, 1);
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

.delay-1 { transition-delay: 0.1s; }
.delay-2 { transition-delay: 0.2s; }
.delay-3 { transition-delay: 0.3s; }

/* ==========================================================================
   IST Timezone Clock
   ========================================================================== */
.ist-clock {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    font-family: var(--font-mono);
    font-size: 0.7rem;
    color: var(--text-muted);
    margin-left: auto;
    margin-right: 0.5rem;
    white-space: nowrap;
}

.clock-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    flex-shrink: 0;
}

.clock-dot.online {
    background: #00ff88;
    box-shadow: 0 0 6px rgba(0, 255, 136, 0.5);
    animation: clock-pulse 2s infinite;
}

.clock-dot.offline {
    background: #ffaa00;
    box-shadow: 0 0 4px rgba(255, 170, 0, 0.4);
}

@keyframes clock-pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

.clock-time {
    color: var(--text-main);
    font-weight: 500;
}

.clock-status {
    color: var(--text-muted);
    font-size: 0.6rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* ==========================================================================
   Incognito Mode
   ========================================================================== */
body.incognito-mode .ist-clock .clock-status::after {
    content: ' [incognito]';
    color: var(--accent-purple);
}

body.incognito-mode::after {
    content: '\f6e2';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    position: fixed;
    top: 1rem;
    left: 50%;
    transform: translateX(-50%);
    color: var(--accent-purple);
    font-size: 0.8rem;
    opacity: 0.5;
    z-index: 10000;
    pointer-events: none;
}

/* ==========================================================================
   Hiring Mode Select Input
   ========================================================================== */
select.glass-input {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' fill='%23a0a0b0' viewBox='0 0 16 16'%3E%3Cpath d='M8 11L3 6h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 1rem center;
    padding-right: 2.5rem;
    cursor: pointer;
}

select.glass-input option {
    background: var(--bg-surface);
    color: var(--text-main);
}

/* ==========================================================================
   Print Stylesheet (Auto-Resume)
   ========================================================================== */
@media print {
    /* Hide non-essential elements */
    #boot-screen, #bg-canvas, #custom-cursor, .ai-assistant,
    .scroll-pipeline, .code-bg-elements, .glass-nav,
    .page-transition-overlay, .shortcuts-modal, .command-palette,
    .source-overlay, .glass-footer, .contact-form-container,
    #commit-timeline, .radar-chart-container, .ist-clock,
    .sound-toggle, .theme-toggle, .mobile-menu-btn,
    .hero-visual, .hero-cta, .social-links,
    .cert-badge-stamp, .architecture-section,
    #architecture, .blog-section, #blog,
    .tour-controls, .ai-ring, .ai-orb { display: none !important; }

    /* Reset colors */
    * {
        color: #000 !important;
        background: white !important;
        box-shadow: none !important;
        text-shadow: none !important;
        filter: none !important;
        backdrop-filter: none !important;
        border-color: #ddd !important;
        animation: none !important;
        transition: none !important;
    }

    body {
        font-size: 11pt;
        line-height: 1.4;
        margin: 0;
        padding: 0.5in;
    }

    /* Page setup */
    @page {
        margin: 0.5in;
        size: letter;
    }

    /* Show all sections */
    .content-hidden, main, section {
        opacity: 1 !important;
        transform: none !important;
        visibility: visible !important;
        display: block !important;
    }

    .reveal {
        opacity: 1 !important;
        transform: none !important;
    }

    /* Print header */
    .hero {
        padding: 0 !important;
        min-height: auto !important;
    }

    .hero-content {
        display: block !important;
    }

    .hero h1 {
        font-size: 24pt !important;
        margin-bottom: 0.2rem !important;
    }

    .hero .subtitle {
        font-size: 14pt !important;
        margin-bottom: 0.5rem !important;
    }

    .hero .tagline {
        font-size: 10pt !important;
        margin-bottom: 1rem !important;
    }

    .section {
        padding: 0.5rem 0 !important;
        page-break-inside: avoid;
    }

    .section-title {
        font-size: 14pt !important;
        margin-bottom: 0.5rem !important;
        border-bottom: 1px solid #000 !important;
        padding-bottom: 0.25rem !important;
    }

    /* Grid to single column */
    .skills-grid, .about-grid, .about-grid-3col,
    .contact-grid, .projects-grid, .certs-grid {
        display: block !important;
    }

    .glass-card {
        border: 1px solid #ddd !important;
        padding: 0.5rem !important;
        margin-bottom: 0.5rem !important;
    }

    .skill-tags .tag {
        display: inline-block;
        border: 1px solid #999 !important;
        padding: 1px 6px !important;
        margin: 2px !important;
        font-size: 9pt !important;
    }

    /* Contact info stays visible */
    .contact-info {
        border: none !important;
        padding: 0 !important;
    }

    .method-item {
        display: inline-block;
        margin-right: 1rem;
    }

    .icon-box { display: none !important; }

    a[href]::after {
        content: none !important;
    }

    /* Typing cursor hidden */
    .cursor { display: none !important; }
    .typing-text { font-size: 24pt !important; }
}

/* ==========================================================================
   Responsive Design
   ========================================================================== */
/* ---------- TABLET (max-width: 992px) ---------- */
@media (max-width: 992px) {
    .container { padding: 0 1.5rem; }
    .section { padding: 4rem 0; min-height: auto; }

    .hero h1 { font-size: 3.2rem; }
    .hero .subtitle { font-size: 1.7rem; }
    .hero-content { gap: 2rem; }

    .about-grid, .about-grid-3col, .projects-grid, .contact-grid {
        grid-template-columns: 1fr;
    }
    .profile-visual { order: -1; }
    .profile-frame { width: 140px; height: 140px; }
    .stats-grid { grid-template-columns: repeat(3, 1fr); }

    .skills-grid { grid-template-columns: repeat(2, 1fr); }

    .arch-nodes-container { flex-wrap: wrap; justify-content: center; gap: 1rem; }
    .arch-node { width: 110px; }
    .arch-svg { display: none; }

    .terminal-window { max-width: 100%; }
    .cmd-palette-content { max-width: 480px; }
    .source-panel { max-width: 580px; }
    .shortcuts-modal .shortcuts-content { max-width: 480px; }
}

/* ---------- MOBILE (max-width: 768px) ---------- */
@media (max-width: 768px) {
    /* --- Nav --- */
    .nav-links {
        position: fixed;
        top: 70px; left: -100%;
        width: 100%; height: calc(100vh - 70px);
        background: rgba(10, 10, 15, 0.95);
        backdrop-filter: blur(20px);
        flex-direction: column;
        align-items: center;
        justify-content: center;
        transition: 0.3s ease-in-out;
        gap: 2.5rem;
    }
    .nav-links.active { left: 0; }
    .nav-links a { font-size: 1.2rem; }
    .mobile-menu-btn { display: block; }
    .nav-container { padding: 0.8rem 1.2rem; }
    .ist-clock { display: none; }

    /* --- Hero --- */
    .hero-content {
        grid-template-columns: 1fr;
        text-align: center;
        margin-top: 2rem;
        gap: 1.5rem;
    }
    .hero h1 {
        font-size: 2.5rem;
        white-space: normal;
    }
    .hero .subtitle { font-size: 1.4rem; }
    .hero .tagline { font-size: 1rem; max-width: 100%; margin-bottom: 1.5rem; }
    .hero-text .social-links, .hero-cta { justify-content: center; }
    .hero-cta { flex-wrap: wrap; }

    /* --- Terminal --- */
    .terminal-window { margin: 0 auto; max-width: 100%; }
    .interactive-terminal { min-height: 300px; }
    .terminal-output { max-height: 220px; padding: 0.8rem 1rem; font-size: 0.78rem; }

    /* --- Sections --- */
    .section { padding: 3.5rem 0; min-height: auto; }
    .section-title { font-size: 1.8rem; margin-bottom: 2rem; }

    /* --- About --- */
    .stats-grid { grid-template-columns: 1fr; }
    .profile-frame { width: 120px; height: 120px; }

    /* --- Experience timeline --- */
    .timeline::before { left: 20px; }
    .timeline-item { padding-left: 50px; }
    .timeline-marker { left: 11px; }
    .timeline-header { flex-direction: column; }
    .date-badge { margin-top: 10px; }

    /* --- Commit timeline --- */
    .commit-timeline { margin-top: 2rem; }
    .commit-track { gap: 1.5rem; }
    .commit-node { width: 180px; }
    .commit-card { padding: 0.75rem; }
    .commit-node::before, .commit-node::after { font-size: 0.6rem; }

    /* --- Skills --- */
    .skills-grid { grid-template-columns: 1fr; }
    .skill-radar { max-width: 280px; }
    .radar-labels text { font-size: 9px; }
    .radar-chart-container { margin-bottom: 2rem; }

    /* --- Projects / Blog --- */
    .projects-grid, .blog-grid { grid-template-columns: 1fr; }

    /* --- Contact --- */
    .contact-grid { gap: 2rem; }
    .glass-input { font-size: 16px; } /* prevent iOS zoom */

    /* --- Modals & Overlays --- */
    .cmd-palette-content { width: 95%; max-width: 100%; }
    .cmd-palette-results { max-height: 260px; }
    .cmd-palette-item { padding: 0.5rem 1rem; }

    .shortcuts-modal .shortcuts-content { width: 95%; padding: 1.5rem; }
    .shortcuts-grid { grid-template-columns: 1fr; gap: 1.5rem; }

    .source-panel { width: 95%; max-height: 80vh; padding: 1.2rem; }
    .source-code { font-size: 0.72rem; }

    /* --- AI Assistant --- */
    .ai-assistant { bottom: 20px; right: 20px; width: 50px; height: 50px; }
    .ai-orb { width: 20px; height: 20px; }
    .ai-speech-bubble { width: 200px; font-size: 0.85rem; padding: 12px 16px; }
    .tour-controls { right: 65px; }

    /* --- Pipeline & Misc --- */
    .scroll-pipeline { display: none; }
    body.incognito-mode::after { display: none; }

    /* --- Parallax off on touch --- */
    .parallax-layer { transition: none !important; }
}

/* ---------- SMALL MOBILE (max-width: 480px) ---------- */
@media (max-width: 480px) {
    .container { padding: 0 1rem; }
    .section { padding: 2.5rem 0; }
    .section-title { font-size: 1.5rem; margin-bottom: 1.5rem; }

    /* --- Hero --- */
    .hero h1 {
        font-size: 2rem;
        white-space: normal;
        word-break: break-word;
    }
    .hero .subtitle { font-size: 1.15rem; }
    .hero .tagline { font-size: 0.9rem; }
    .greeting { font-size: 0.9rem; }
    .hero-content { gap: 1rem; margin-top: 1.5rem; }
    .hero-cta {
        flex-direction: column;
        width: 100%;
        gap: 0.8rem;
    }
    .hero-cta .btn { width: 100%; text-align: center; justify-content: center; }
    .hero-text .social-links { gap: 1rem; }
    .hero-text .social-links a { width: 40px; height: 40px; font-size: 1rem; }

    /* --- Terminal --- */
    .interactive-terminal { min-height: 260px; }
    .terminal-header { padding: 0.6rem 0.8rem; }
    .terminal-title { font-size: 0.75rem; }
    .terminal-output { max-height: 160px; padding: 0.6rem 0.8rem; font-size: 0.72rem; }
    .terminal-input-line { padding: 0.4rem 0.8rem 0.7rem; }
    .terminal-prompt { font-size: 0.72rem; }
    #terminal-input { font-size: 16px; } /* prevent iOS zoom */

    /* --- About --- */
    .about-text p { font-size: 0.95rem; }
    .profile-frame { width: 100px; height: 100px; }
    .stat-number { font-size: 2rem; }
    .stat-label { font-size: 0.75rem; }
    .education-card { flex-direction: column; text-align: center; }

    /* --- Experience --- */
    .timeline::before { left: 15px; }
    .timeline-item { padding-left: 40px; }
    .timeline-marker { left: 6px; }
    .timeline .role { font-size: 1.1rem; }
    .exp-list li { font-size: 0.88rem; }
    .category-title { font-size: 0.95rem; }

    /* --- Commit Timeline --- */
    .commit-track { gap: 1rem; }
    .commit-node { width: 155px; }
    .commit-card { padding: 0.6rem; }
    .commit-hash { font-size: 0.6rem; }
    .commit-msg { font-size: 0.72rem; }
    .diff-add, .diff-del { font-size: 0.65rem; }
    .commit-node::before, .commit-node::after { font-size: 0.55rem; }

    /* --- Skills --- */
    .skill-radar { max-width: 220px; }
    .radar-labels text { font-size: 7px; }
    .radar-chart-container { margin-bottom: 1.5rem; }
    .tag { padding: 0.35rem 0.7rem; font-size: 0.78rem; }

    /* --- Certs --- */
    .certs-grid { grid-template-columns: repeat(2, 1fr); gap: 0.8rem; }
    .cert-card { padding: 1rem; }
    .cert-name { font-size: 0.85rem; }

    /* --- Projects --- */
    .project-content { padding: 1.2rem; }
    .project-content h3 { font-size: 1.2rem; }
    .project-content p { font-size: 0.88rem; }

    /* --- Contact --- */
    .contact-info h3 { font-size: 1.2rem; }
    .contact-methods { gap: 1rem; }
    .method-item { gap: 0.8rem; }
    .icon-box { width: 42px; height: 42px; font-size: 0.95rem; }
    .glass-input { padding: 0.75rem; font-size: 16px; }
    select.glass-input { padding-right: 2rem; }

    /* --- Buttons --- */
    .btn { padding: 0.6rem 1.2rem; font-size: 0.82rem; }
    .glass-card { padding: 1.2rem; }

    /* --- Command Palette --- */
    .command-palette { padding-top: 12vh; }
    .cmd-palette-content { width: 96%; }
    .cmd-palette-header { padding: 0.75rem 1rem; gap: 0.5rem; }
    .cmd-palette-header input { font-size: 16px; }
    .cmd-palette-results { max-height: 220px; }
    .cmd-palette-item { padding: 0.5rem 0.8rem; gap: 0.5rem; }
    .cmd-palette-item .cmd-icon { width: 24px; height: 24px; font-size: 0.7rem; }
    .cmd-palette-item .cmd-label { font-size: 0.82rem; }
    .cmd-palette-item .cmd-badge { font-size: 0.6rem; padding: 2px 6px; }

    /* --- Shortcuts Modal --- */
    .shortcuts-modal .shortcuts-content { padding: 1.2rem; width: 96%; }
    .shortcuts-header h3 { font-size: 1rem; }
    .shortcut-group h4 { font-size: 0.7rem; }
    .shortcut-item { font-size: 0.8rem; padding: 0.3rem 0; }
    .shortcut-item kbd { min-width: 22px; height: 22px; font-size: 0.6rem; padding: 0 4px; }

    /* --- Source Overlay --- */
    .source-panel { width: 96%; padding: 1rem; max-height: 85vh; }
    .source-panel-header h3 { font-size: 0.75rem; }
    .source-code { font-size: 0.65rem; line-height: 1.5; }

    /* --- AI Assistant --- */
    .ai-assistant { bottom: 15px; right: 15px; width: 45px; height: 45px; }
    .ai-orb { width: 18px; height: 18px; }
    .ai-speech-bubble { width: 170px; font-size: 0.78rem; padding: 10px 14px; }
    .tour-controls { right: 55px; }
    .tour-btn { width: 26px; height: 26px; font-size: 0.7rem; }
    .tour-progress { font-size: 0.7rem; }

    /* --- Boot Screen --- */
    .boot-terminal { font-size: 0.8rem; max-width: 100%; padding: 0 1rem; }
    .boot-progress-bar { max-width: 90%; }
    .boot-skip-btn { font-size: 0.75rem; padding: 0.4rem 0.8rem; }
}
