/* ===== VARIABLES & BASE ===== */
:root {
    --primary: #00d4ff;
    --primary-dark: #00a8cc;
    --primary-light: #5ce1ff;
    --accent: #7c3aed;
    --accent-light: #a78bfa;
    --bg-primary: #0a0a0a;
    --bg-secondary: #111111;
    --bg-elevated: #1a1a1a;
    --bg-card: #141414;
    --text-primary: #f0f0f0;
    --text-secondary: #a0a0a0;
    --text-muted: #666666;
    --border: rgba(255, 255, 255, 0.06);
    --border-hover: rgba(255, 255, 255, 0.12);
    --font-body: 'Space Grotesk', 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    --font-mono: 'JetBrains Mono', 'Fira Code', monospace;
    --glass-bg: rgba(17, 17, 17, 0.8);
    --glass-border: rgba(255, 255, 255, 0.06);
    --glass-blur: 20px;
    --glow: 0 0 20px rgba(0, 212, 255, 0.3);
    --glow-strong: 0 0 40px rgba(0, 212, 255, 0.4), 0 0 80px rgba(0, 212, 255, 0.1);
    --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-slow: 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

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

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

body {
    font-family: var(--font-body);
    background: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
    cursor: none;
}

body.loaded .loader { opacity: 0; pointer-events: none; }

a { text-decoration: none; color: inherit; transition: all var(--transition); cursor: none; }
ul { list-style: none; }
img { max-width: 100%; display: block; }
button { cursor: none; }

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}
/* ===== CUSTOM CURSOR ===== */
.cursor-dot {
    position: fixed;
    top: 0;
    left: 0;
    width: 8px;
    height: 8px;
    background: var(--primary);
    border-radius: 50%;
    pointer-events: none;
    z-index: 9999;
    transform: translate(-50%, -50%);
    transition: width 0.2s, height 0.2s, background 0.2s;
}

.cursor-outline {
    position: fixed;
    top: 0;
    left: 0;
    width: 40px;
    height: 40px;
    border: 2px solid rgba(0, 212, 255, 0.4);
    border-radius: 50%;
    pointer-events: none;
    z-index: 9998;
    transform: translate(-50%, -50%);
    transition: width 0.3s, height 0.3s, border-color 0.3s;
}

.cursor-dot.hover {
    width: 16px;
    height: 16px;
    background: rgba(0, 212, 255, 0.6);
}

.cursor-outline.hover {
    width: 60px;
    height: 60px;
    border-color: rgba(0, 212, 255, 0.2);
}

/* ===== PAGE LOADER ===== */
.loader {
    position: fixed;
    inset: 0;
    background: #050505;
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.6s ease;
}

.loader.hidden {
    opacity: 0;
    pointer-events: none;
}

.loader__terminal {
    font-family: var(--font-mono);
    font-size: 1rem;
    color: var(--primary);
}

.loader__line {
    display: flex;
    gap: 0.5rem;
    align-items: center;
}

.loader__prompt {
    color: var(--accent-light);
}

.loader__text {
    color: var(--text-primary);
}

.loader__cursor {
    color: var(--primary);
    animation: blink 0.8s step-end infinite;
}

/* ===== COMMAND PALETTE ===== */
.cmd-palette {
    position: fixed;
    inset: 0;
    z-index: 1000;
    display: none;
    align-items: flex-start;
    justify-content: center;
    padding-top: 20vh;
}

.cmd-palette.active {
    display: flex;
}

.cmd-palette__overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(8px);
}

.cmd-palette__modal {
    position: relative;
    width: 90%;
    max-width: 560px;
    background: var(--bg-elevated);
    border: 1px solid var(--border-hover);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.5), var(--glow);
    animation: scaleIn 0.2s ease;
}

.cmd-palette__input-wrap {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem 1.25rem;
    border-bottom: 1px solid var(--border);
}

.cmd-palette__input-wrap i {
    color: var(--text-muted);
    font-size: 0.9rem;
}

.cmd-palette__input-wrap kbd {
    font-family: var(--font-mono);
    font-size: 0.7rem;
    padding: 0.2rem 0.5rem;
    background: var(--bg-primary);
    border: 1px solid var(--border);
    border-radius: 4px;
    color: var(--text-muted);
}

.cmd-palette__input {
    flex: 1;
    background: none;
    border: none;
    outline: none;
    color: var(--text-primary);
    font-family: var(--font-body);
    font-size: 1rem;
}

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

.cmd-palette__results {
    max-height: 300px;
    overflow-y: auto;
    padding: 0.5rem;
}

.cmd-palette__results::-webkit-scrollbar {
    width: 4px;
}

.cmd-palette__results::-webkit-scrollbar-thumb {
    background: var(--border-hover);
    border-radius: 2px;
}

.cmd-result {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1rem;
    border-radius: 8px;
    cursor: pointer;
    transition: background 0.15s;
    color: var(--text-secondary);
}

.cmd-result:hover,
.cmd-result.active {
    background: rgba(0, 212, 255, 0.08);
    color: var(--text-primary);
}

.cmd-result i {
    width: 20px;
    text-align: center;
    color: var(--primary);
    font-size: 0.85rem;
}
/* ===== NAVIGATION ===== */
.nav {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 100;
    padding: 1.25rem 0;
    transition: all var(--transition);
}

.nav.scrolled {
    background: var(--glass-bg);
    backdrop-filter: blur(var(--glass-blur));
    -webkit-backdrop-filter: blur(var(--glass-blur));
    border-bottom: 1px solid var(--border);
    padding: 0.75rem 0;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.3);
}

.nav .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav__logo {
    font-family: var(--font-mono);
    font-size: 1.2rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 2px;
    transition: all var(--transition);
}

.nav__logo:hover {
    transform: scale(1.05);
}

.nav__logo-bracket {
    color: var(--primary);
    font-weight: 700;
}

.nav__logo-text {
    color: var(--text-primary);
    letter-spacing: -0.02em;
}

.nav__center {
    flex: 1;
    display: flex;
    justify-content: center;
}

.nav__links {
    display: flex;
    gap: 2rem;
}

.nav__link {
    font-size: 0.85rem;
    color: var(--text-secondary);
    font-weight: 500;
    position: relative;
    padding: 0.25rem 0;
    transition: color var(--transition);
}

.nav__link-num {
    color: var(--primary);
    font-family: var(--font-mono);
    font-size: 0.75rem;
    margin-right: 0.25rem;
}

.nav__link:hover,
.nav__link.active {
    color: var(--primary-light);
}

.nav__link::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -2px;
    left: 0;
    background: linear-gradient(90deg, var(--primary), var(--accent));
    transition: width var(--transition);
    border-radius: 1px;
}

.nav__link:hover::after,
.nav__link.active::after {
    width: 100%;
}

.nav__actions {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.nav__cmd-btn {
    display: flex;
    align-items: center;
    gap: 0.35rem;
    background: var(--bg-elevated);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 0.4rem 0.75rem;
    color: var(--text-muted);
    font-size: 0.75rem;
    transition: all var(--transition);
}

.nav__cmd-btn:hover {
    border-color: var(--primary);
    color: var(--primary);
    box-shadow: var(--glow);
}

.nav__cmd-btn kbd {
    font-family: var(--font-mono);
    font-size: 0.65rem;
    padding: 0.1rem 0.35rem;
    background: var(--bg-primary);
    border: 1px solid var(--border);
    border-radius: 3px;
}

.nav__cmd-btn span {
    color: var(--text-muted);
}

/* Hamburger */
.hamburger {
    display: none;
    flex-direction: column;
    gap: 6px;
    background: none;
    border: none;
    padding: 4px;
    z-index: 101;
}

.hamburger span {
    width: 24px;
    height: 2px;
    background: var(--text-primary);
    transition: all var(--transition);
    border-radius: 2px;
}

.hamburger.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.hamburger.active span:nth-child(2) {
    opacity: 0;
}

.hamburger.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -6px);
}

/* Scroll Progress */
.nav__progress {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background: transparent;
}

.nav__progress-bar {
    height: 100%;
    width: 0%;
    background: linear-gradient(90deg, var(--primary), var(--accent));
    transition: width 0.1s linear;
    border-radius: 0 1px 1px 0;
    box-shadow: 0 0 10px rgba(0, 212, 255, 0.5);
}
/* ===== HERO ===== */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
}

#matrixCanvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    opacity: 0.15;
}

.hero__gradient {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse at 15% 50%, rgba(0, 212, 255, 0.08) 0%, transparent 50%),
        radial-gradient(ellipse at 85% 30%, rgba(124, 58, 237, 0.06) 0%, transparent 50%),
        radial-gradient(ellipse at 50% 80%, rgba(0, 212, 255, 0.04) 0%, transparent 40%);
    z-index: 0;
    pointer-events: none;
}

.hero__grid {
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.02) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.02) 1px, transparent 1px);
    background-size: 60px 60px;
    z-index: 0;
    pointer-events: none;
}

.hero__container {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 4rem;
    align-items: center;
    position: relative;
    z-index: 1;
    width: 100%;
}

.hero__content {
    position: relative;
}

.hero__badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.4rem 1rem;
    background: rgba(0, 212, 255, 0.08);
    border: 1px solid rgba(0, 212, 255, 0.2);
    border-radius: 100px;
    font-size: 0.8rem;
    color: var(--primary);
    font-family: var(--font-mono);
    margin-bottom: 1.5rem;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.6s ease;
}

.hero__badge.revealed {
    opacity: 1;
    transform: translateY(0);
}

.hero__badge-dot {
    width: 8px;
    height: 8px;
    background: #10b981;
    border-radius: 50%;
    animation: pulse-dot 2s ease infinite;
}

.hero__greeting {
    margin-bottom: 0.5rem;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.6s ease 0.1s;
}

.hero__greeting.revealed {
    opacity: 1;
    transform: translateY(0);
}

.hero__title {
    margin-bottom: 1rem;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.6s ease 0.2s;
}

.hero__title.revealed {
    opacity: 1;
    transform: translateY(0);
}

.hero__title-line {
    display: block;
    font-size: clamp(1.2rem, 3vw, 1.5rem);
    font-weight: 400;
    color: var(--text-secondary);
    margin-bottom: 0.25rem;
}

.hero__name {
    display: block;
    font-size: clamp(3rem, 7vw, 4.5rem);
    font-weight: 700;
    letter-spacing: -0.03em;
    line-height: 1.1;
    background: linear-gradient(135deg, var(--text-primary) 0%, var(--primary) 50%, var(--accent-light) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Glitch Effect */
.glitch {
    position: relative;
}

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

.glitch:hover::before {
    opacity: 0.8;
    -webkit-text-fill-color: var(--primary);
    animation: glitch-1 0.3s infinite linear alternate-reverse;
    clip-path: polygon(0 0, 100% 0, 100% 35%, 0 35%);
}

.glitch:hover::after {
    opacity: 0.8;
    -webkit-text-fill-color: var(--accent);
    animation: glitch-2 0.3s infinite linear alternate-reverse;
    clip-path: polygon(0 65%, 100% 65%, 100% 100%, 0 100%);
}

.hero__role {
    font-size: 1.15rem;
    color: var(--text-secondary);
    font-family: var(--font-mono);
    margin-bottom: 1.5rem;
    min-height: 1.8rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.6s ease 0.3s;
}

.hero__role.revealed {
    opacity: 1;
    transform: translateY(0);
}

.hero__role-prefix {
    color: var(--primary);
    font-weight: 600;
}

.typing-text {
    color: var(--text-primary);
}

.cursor {
    color: var(--primary);
    animation: blink 1s step-end infinite;
    font-weight: 300;
}

.hero__subtitle {
    font-size: 1rem;
    color: var(--text-secondary);
    line-height: 1.7;
    max-width: 500px;
    margin-bottom: 2rem;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.6s ease 0.4s;
}

.hero__subtitle.revealed {
    opacity: 1;
    transform: translateY(0);
}

.hero__cta {
    display: flex;
    gap: 1rem;
    margin-bottom: 2.5rem;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.6s ease 0.5s;
}

.hero__cta.revealed {
    opacity: 1;
    transform: translateY(0);
}

/* Floating Tech Icons */
.hero__tech-float {
    display: flex;
    gap: 1.5rem;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.6s ease 0.6s;
}

.hero__tech-float.revealed {
    opacity: 1;
    transform: translateY(0);
}

.tech-icon {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-elevated);
    border: 1px solid var(--border);
    border-radius: 10px;
    color: var(--text-muted);
    font-size: 1.1rem;
    animation: float 3s ease-in-out infinite;
    transition: all var(--transition);
}

.tech-icon:hover {
    color: var(--primary);
    border-color: var(--primary);
    box-shadow: var(--glow);
}

.tech-icon[data-float-delay="1"] { animation-delay: 0.5s; }
.tech-icon[data-float-delay="2"] { animation-delay: 1s; }
.tech-icon[data-float-delay="3"] { animation-delay: 1.5s; }
.tech-icon[data-float-delay="4"] { animation-delay: 2s; }

/* Hero Visual - Code Window */
.hero__visual {
    opacity: 0;
    transform: translateY(30px) perspective(1000px) rotateY(-5deg);
    transition: all 0.8s ease 0.4s;
}

.hero__visual.revealed {
    opacity: 1;
    transform: translateY(0) perspective(1000px) rotateY(0deg);
}

.hero__code-window {
    background: var(--bg-secondary);
    border: 1px solid var(--border-hover);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4), var(--glow);
}

.code-window__header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1rem;
    background: var(--bg-elevated);
    border-bottom: 1px solid var(--border);
}

.code-window__dots {
    display: flex;
    gap: 6px;
}

.code-window__dots span {
    width: 12px;
    height: 12px;
    border-radius: 50%;
}

.code-window__dots span:nth-child(1) { background: #ff5f57; }
.code-window__dots span:nth-child(2) { background: #ffbd2e; }
.code-window__dots span:nth-child(3) { background: #28c840; }

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

.code-window__body {
    padding: 1.25rem;
    font-family: var(--font-mono);
    font-size: 0.85rem;
    line-height: 1.8;
    overflow-x: auto;
}

.code-window__body code {
    white-space: pre;
}

.code-keyword { color: #c678dd; }
.code-var { color: #e06c75; }
.code-string { color: #98c379; }
.code-number { color: #d19a66; }
.code-bool { color: #d19a66; }
.code-prop { color: #e5c07b; }
.code-method { color: #61afef; }
.code-comment { font-family: var(--font-mono); color: var(--primary); font-size: 0.875rem; display: block; }

/* Scroll Indicator */
.hero__scroll-indicator {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-muted);
    font-size: 0.75rem;
    font-family: var(--font-mono);
    transition: opacity var(--transition);
    z-index: 2;
}

.hero__scroll-mouse {
    width: 24px;
    height: 38px;
    border: 2px solid var(--text-muted);
    border-radius: 12px;
    position: relative;
}

.hero__scroll-wheel {
    width: 3px;
    height: 8px;
    background: var(--primary);
    border-radius: 2px;
    position: absolute;
    top: 6px;
    left: 50%;
    transform: translateX(-50%);
    animation: scrollWheel 2s ease infinite;
}
/* ===== BUTTONS ===== */
.btn {
    padding: 0.75rem 1.75rem;
    border-radius: 10px;
    font-weight: 500;
    font-size: 0.9rem;
    transition: all var(--transition);
    cursor: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    font-family: var(--font-body);
    position: relative;
    overflow: hidden;
}

.btn--primary {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: #000;
    border: 1px solid var(--primary);
    font-weight: 600;
}

.btn--primary:hover {
    transform: translateY(-2px);
    box-shadow: var(--glow-strong);
}

.btn--glow {
    box-shadow: var(--glow);
}

.btn--outline {
    background: transparent;
    color: var(--text-primary);
    border: 1px solid var(--border-hover);
}

.btn--outline:hover {
    border-color: var(--primary);
    color: var(--primary);
    background: rgba(0, 212, 255, 0.05);
    transform: translateY(-2px);
}

/* ===== SECTIONS ===== */
.section {
    padding: 100px 0;
    position: relative;
}

.section-header {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    margin-bottom: 4rem;
}

.section-number {
    font-family: var(--font-mono);
    font-size: 4rem;
    font-weight: 700;
    color: rgba(0, 212, 255, 0.06);
    line-height: 1;
    letter-spacing: -0.05em;
}

.section-header__text {
    flex-shrink: 0;
}

.section-header__text .code-comment {
    margin-bottom: 0.25rem;
    font-size: 0.8rem;
}

.section-title {
    font-size: clamp(1.8rem, 4vw, 2.5rem);
    font-weight: 700;
    color: var(--text-primary);
    letter-spacing: -0.02em;
}

.section-header__line {
    flex: 1;
    height: 1px;
    background: linear-gradient(90deg, var(--border-hover), transparent);
}
/* ===== ABOUT ===== */
.about__content {
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: 4rem;
    align-items: start;
    margin-bottom: 4rem;
}

.about__text p {
    color: var(--text-secondary);
    font-size: 1rem;
    line-height: 1.8;
    margin-bottom: 1.25rem;
}

.about__stats-grid {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.stat-card {
    text-align: center;
    padding: 1.5rem;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 16px;
    transition: all var(--transition);
    transition-delay: var(--delay, 0ms);
}

.stat-card:hover {
    border-color: var(--primary);
    box-shadow: var(--glow);
    transform: translateY(-4px);
}

.stat-card__ring {
    position: relative;
    width: 100px;
    height: 100px;
    margin: 0 auto 0.75rem;
}

.stat-card__ring svg {
    width: 100%;
    height: 100%;
    transform: rotate(-90deg);
}

.stat-card__ring-bg {
    fill: none;
    stroke: var(--border);
    stroke-width: 4;
}

.stat-card__ring-fill {
    fill: none;
    stroke: var(--primary);
    stroke-width: 4;
    stroke-linecap: round;
    stroke-dasharray: 339.292;
    stroke-dashoffset: 339.292;
    transition: stroke-dashoffset 1.5s ease;
}

.stat-card.revealed .stat-card__ring-fill {
    stroke-dashoffset: calc(339.292 - (339.292 * var(--progress, 0)) / 100);
}

.stat-card__number {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-primary);
    font-family: var(--font-mono);
}

.stat-card__label {
    font-size: 0.8rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* Timeline */
.about__timeline {
    position: relative;
}

.timeline {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0;
    position: relative;
}

.timeline::before {
    content: '';
    position: absolute;
    top: 12px;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--primary), var(--accent), var(--primary));
    opacity: 0.3;
}

.timeline__item {
    position: relative;
    padding-top: 2rem;
    text-align: center;
}

.timeline__dot {
    position: absolute;
    top: 4px;
    left: 50%;
    transform: translateX(-50%);
    width: 18px;
    height: 18px;
    background: var(--bg-primary);
    border: 3px solid var(--primary);
    border-radius: 50%;
    z-index: 1;
    transition: all var(--transition);
}

.timeline__item:hover .timeline__dot {
    background: var(--primary);
    box-shadow: var(--glow);
    transform: translateX(-50%) scale(1.3);
}

.timeline__content {
    padding: 0 0.5rem;
}

.timeline__year {
    font-family: var(--font-mono);
    font-size: 0.8rem;
    color: var(--primary);
    font-weight: 600;
    display: block;
    margin-bottom: 0.25rem;
}

.timeline__content h4 {
    font-size: 0.95rem;
    color: var(--text-primary);
    margin-bottom: 0.25rem;
    font-weight: 600;
}

.timeline__content p {
    font-size: 0.8rem;
    color: var(--text-muted);
    line-height: 1.4;
}
/* ===== PROJECTS ===== */
.projects__grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(380px, 1fr));
    gap: 2rem;
}

.project-card {
    position: relative;
    border-radius: 16px;
    overflow: hidden;
    background: var(--bg-card);
    border: 1px solid var(--border);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    transform-style: preserve-3d;
    perspective: 1000px;
}

.project-card:hover {
    border-color: rgba(0, 212, 255, 0.3);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4), 0 0 30px rgba(0, 212, 255, 0.1);
}

.project-card__spotlight {
    position: absolute;
    inset: 0;
    opacity: 0;
    transition: opacity 0.4s;
    pointer-events: none;
    z-index: 0;
    border-radius: 16px;
}

.project-card:hover .project-card__spotlight {
    opacity: 1;
}

.project-card__content {
    position: relative;
    z-index: 1;
    padding: 2rem;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.project-card__header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
}

.project-card__tag {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    background: rgba(0, 212, 255, 0.08);
    color: var(--primary);
    padding: 0.3rem 0.85rem;
    border-radius: 100px;
    font-family: var(--font-mono);
    font-size: 0.75rem;
    font-weight: 500;
    border: 1px solid rgba(0, 212, 255, 0.15);
}

.project-card__tag i {
    font-size: 0.7rem;
}

.project-card__links a {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    color: var(--text-muted);
    background: var(--bg-elevated);
    border: 1px solid var(--border);
    transition: all var(--transition);
}

.project-card__links a:hover {
    color: var(--primary);
    border-color: var(--primary);
    box-shadow: var(--glow);
}

.project-card__title {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
    color: var(--text-primary);
    transition: color var(--transition);
}

.project-card:hover .project-card__title {
    color: var(--primary-light);
}

.project-card__description {
    color: var(--text-secondary);
    font-size: 0.9rem;
    line-height: 1.7;
    margin-bottom: 1.5rem;
    flex-grow: 1;
}

.project-card__features {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
}

.feature-pill {
    font-size: 0.72rem;
    color: var(--text-muted);
    background: rgba(255, 255, 255, 0.04);
    padding: 0.3rem 0.65rem;
    border-radius: 6px;
    border: 1px solid var(--border);
    font-family: var(--font-mono);
    transition: all var(--transition);
}

.feature-pill:hover {
    border-color: var(--primary);
    color: var(--primary);
    background: rgba(0, 212, 255, 0.05);
}

.project-card__cta {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--primary);
    font-weight: 500;
    font-size: 0.9rem;
    transition: all var(--transition);
}

.project-card__cta i {
    transition: transform var(--transition);
}

.project-card__cta:hover {
    gap: 0.75rem;
}

.project-card__cta:hover i {
    transform: translateX(4px);
}
/* ===== SKILLS ===== */
.skills__constellation {
    position: relative;
    width: 100%;
    height: 200px;
    margin-bottom: 3rem;
}

#skillsCanvas {
    width: 100%;
    height: 100%;
    opacity: 0.4;
}

.skills__grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
}

.skill-category {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 14px;
    padding: 1.5rem;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    transition-delay: var(--delay, 0ms);
}

.skill-category:hover {
    border-color: rgba(0, 212, 255, 0.25);
    transform: translateY(-4px);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3), 0 0 20px rgba(0, 212, 255, 0.08);
}

.skill-category__header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1.25rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid var(--border);
}

.skill-category__icon {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 212, 255, 0.08);
    border: 1px solid rgba(0, 212, 255, 0.15);
    border-radius: 8px;
    color: var(--primary);
    font-size: 0.9rem;
}

.skill-category h3 {
    font-size: 1rem;
    color: var(--text-primary);
    font-weight: 600;
}

.skill-category__tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.skill-tag {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.8rem;
    color: var(--text-secondary);
    font-family: var(--font-mono);
    background: var(--bg-elevated);
    padding: 0.35rem 0.65rem;
    border-radius: 6px;
    border: 1px solid transparent;
    transition: all var(--transition);
    transition-delay: var(--tag-delay, 0ms);
}

.skill-tag:hover {
    border-color: var(--primary);
    color: var(--primary);
    background: rgba(0, 212, 255, 0.06);
    box-shadow: 0 0 12px rgba(0, 212, 255, 0.15);
    transform: translateY(-2px);
}

.skill-tag__dot {
    width: 5px;
    height: 5px;
    background: var(--primary);
    border-radius: 50%;
    opacity: 0.5;
    transition: opacity var(--transition);
}

.skill-tag:hover .skill-tag__dot {
    opacity: 1;
    box-shadow: 0 0 6px var(--primary);
}
/* ===== CONTACT ===== */
.contact__content {
    max-width: 700px;
    margin: 0 auto;
}

.contact__subtitle {
    color: var(--text-secondary);
    font-size: 1.05rem;
    line-height: 1.7;
    margin-bottom: 2.5rem;
    text-align: center;
}

/* Terminal */
.contact__terminal {
    background: var(--bg-secondary);
    border: 1px solid var(--border-hover);
    border-radius: 12px;
    overflow: hidden;
    margin-bottom: 2.5rem;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
}

.terminal__header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1rem;
    background: var(--bg-elevated);
    border-bottom: 1px solid var(--border);
}

.terminal__dots {
    display: flex;
    gap: 6px;
}

.terminal__dots span {
    width: 12px;
    height: 12px;
    border-radius: 50%;
}

.terminal__dots span:nth-child(1) { background: #ff5f57; }
.terminal__dots span:nth-child(2) { background: #ffbd2e; }
.terminal__dots span:nth-child(3) { background: #28c840; }

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

.terminal__body {
    padding: 1.25rem;
    font-family: var(--font-mono);
    font-size: 0.85rem;
    line-height: 1.8;
}

.terminal__line {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 0.25rem;
}

.terminal__prompt {
    color: #10b981;
    font-weight: 600;
    user-select: none;
}

.terminal__cmd {
    color: var(--text-primary);
}

.terminal__output {
    color: var(--text-secondary);
    padding-left: 1.25rem;
    margin-bottom: 0.75rem;
}

.terminal__output a {
    color: var(--primary);
    transition: color var(--transition);
}

.terminal__output a:hover {
    color: var(--primary-light);
    text-decoration: underline;
}

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

.terminal__json a {
    color: #98c379;
}

.terminal__json a:hover {
    color: var(--primary-light);
}

.terminal__line--active {
    margin-top: 0.5rem;
}

.terminal__cmd-typing {
    color: var(--text-primary);
}

.terminal__cursor {
    color: var(--primary);
    animation: blink 0.8s step-end infinite;
}

/* Contact Links */
.contact__links {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.contact__link {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem 1.25rem;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 12px;
    transition: all var(--transition);
    transition-delay: var(--delay, 0ms);
}

.contact__link:hover {
    border-color: var(--primary);
    background: rgba(0, 212, 255, 0.04);
    transform: translateX(8px);
    box-shadow: 0 0 20px rgba(0, 212, 255, 0.1);
}

.contact__link-icon {
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 212, 255, 0.08);
    border: 1px solid rgba(0, 212, 255, 0.15);
    border-radius: 10px;
    color: var(--primary);
    font-size: 1.1rem;
    flex-shrink: 0;
}

.contact__link-info {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.contact__link-label {
    font-size: 0.75rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.contact__link-value {
    font-size: 0.9rem;
    color: var(--text-primary);
    font-weight: 500;
}

.contact__link-arrow {
    color: var(--text-muted);
    transition: all var(--transition);
}

.contact__link:hover .contact__link-arrow {
    color: var(--primary);
    transform: translateX(4px);
}

/* Easter Egg */
.easter-egg {
    margin-top: 3rem;
    text-align: center;
    opacity: 0;
    transition: opacity 1s ease;
}

.easter-egg.visible {
    opacity: 1;
}

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

.easter-egg__hint kbd {
    padding: 0.15rem 0.4rem;
    background: var(--bg-elevated);
    border: 1px solid var(--border);
    border-radius: 4px;
    font-family: var(--font-mono);
    font-size: 0.7rem;
    color: var(--primary);
}
/* ===== FOOTER ===== */
.footer {
    padding: 3rem 0 2rem;
    border-top: 1px solid var(--border);
}

.footer__content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.footer__left {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.footer__logo {
    font-family: var(--font-mono);
    font-size: 1rem;
    display: flex;
    align-items: center;
    gap: 2px;
}

.footer__tagline {
    color: var(--text-muted);
    font-size: 0.85rem;
}

.footer__right {
    text-align: right;
}

.footer__credit {
    color: var(--text-secondary);
    font-size: 0.85rem;
    margin-bottom: 0.25rem;
}

.footer__copyright {
    color: var(--text-muted);
    font-size: 0.8rem;
}

/* ===== GAME MODAL ===== */
.game-modal {
    position: fixed;
    inset: 0;
    z-index: 2000;
    display: none;
    align-items: center;
    justify-content: center;
}

.game-modal.active {
    display: flex;
}

.game-modal__overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(10px);
}

.game-modal__content {
    position: relative;
    background: var(--bg-secondary);
    border: 1px solid var(--border-hover);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.5), var(--glow);
}

.game-modal__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 1.25rem;
    background: var(--bg-elevated);
    border-bottom: 1px solid var(--border);
}

.game-modal__header h3 {
    font-family: var(--font-mono);
    font-size: 0.9rem;
    color: var(--primary);
}

.game-modal__score {
    font-family: var(--font-mono);
    font-size: 0.85rem;
    color: var(--text-secondary);
}

.game-modal__close {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-primary);
    border: 1px solid var(--border);
    border-radius: 6px;
    color: var(--text-muted);
    transition: all var(--transition);
}

.game-modal__close:hover {
    color: #ff5f57;
    border-color: #ff5f57;
}

#snakeCanvas {
    display: block;
    background: #0a0a0a;
}

.game-modal__hint {
    padding: 0.75rem 1.25rem;
    font-family: var(--font-mono);
    font-size: 0.7rem;
    color: var(--text-muted);
    text-align: center;
    border-top: 1px solid var(--border);
}

.game-modal__hint kbd {
    padding: 0.1rem 0.35rem;
    background: var(--bg-elevated);
    border: 1px solid var(--border);
    border-radius: 3px;
    font-family: var(--font-mono);
    font-size: 0.65rem;
    color: var(--primary);
}
/* ===== ANIMATIONS ===== */
@keyframes blink {
    50% { opacity: 0; }
}

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

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

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-8px); }
}

@keyframes scrollWheel {
    0% { opacity: 1; top: 6px; }
    100% { opacity: 0; top: 20px; }
}

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

@keyframes shimmer {
    0% { background-position: -200% 0; }
    100% { background-position: 200% 0; }
}

@keyframes pulse-dot {
    0%, 100% { box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.4); }
    50% { box-shadow: 0 0 0 6px rgba(16, 185, 129, 0); }
}

@keyframes ring-fill {
    from { stroke-dashoffset: 339.292; }
}

@keyframes slideIn {
    from { opacity: 0; transform: translateX(-20px); }
    to { opacity: 1; transform: translateX(0); }
}

@keyframes scaleIn {
    from { transform: scale(0.95); opacity: 0; }
    to { transform: scale(1); opacity: 1; }
}

@keyframes glow-pulse {
    0%, 100% { box-shadow: var(--glow); }
    50% { box-shadow: var(--glow-strong); }
}

/* ===== REVEAL SYSTEM ===== */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s cubic-bezier(0.4, 0, 0.2, 1), transform 0.8s cubic-bezier(0.4, 0, 0.2, 1);
    transition-delay: var(--delay, 0ms);
}

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

.reveal-hero {
    opacity: 0;
    transform: translateY(20px);
}

.reveal-hero.revealed {
    opacity: 1;
    transform: translateY(0);
}
/* ===== RESPONSIVE ===== */

/* Tablet */
@media (max-width: 1024px) {
    .hero__container {
        grid-template-columns: 1fr;
        gap: 3rem;
    }

    .hero__visual {
        max-width: 500px;
    }

    .nav__cmd-btn {
        display: none;
    }

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

    .timeline::before {
        display: none;
    }

    .timeline__dot {
        position: relative;
        top: auto;
        left: auto;
        transform: none;
        margin: 0 auto 0.5rem;
    }

    .cursor-dot,
    .cursor-outline {
        display: none !important;
    }

    html, body, a, button {
        cursor: auto;
    }
}

/* Mobile */
@media (max-width: 768px) {
    .container {
        padding: 0 1.25rem;
    }

    .nav__links {
        position: fixed;
        top: 0;
        right: -100%;
        width: 80%;
        max-width: 320px;
        height: 100vh;
        background: var(--bg-secondary);
        backdrop-filter: blur(20px);
        flex-direction: column;
        padding: 5rem 2rem;
        transition: right 0.3s ease-in-out;
        border-left: 1px solid var(--border);
        gap: 0;
        z-index: 100;
    }

    .nav__links.active {
        right: 0;
    }

    .nav__links li {
        padding: 0.75rem 0;
        border-bottom: 1px solid var(--border);
    }

    .nav__link {
        font-size: 1rem;
    }

    .nav__center {
        display: contents;
    }

    .hamburger {
        display: flex;
    }

    .hero__container {
        grid-template-columns: 1fr;
        padding-top: 5rem;
    }

    .hero__visual {
        display: none;
    }

    .hero__name {
        font-size: clamp(2.2rem, 10vw, 3.5rem);
    }

    .hero__cta {
        flex-direction: column;
        width: 100%;
    }

    .btn {
        width: 100%;
        justify-content: center;
    }

    .hero__tech-float {
        justify-content: center;
    }

    .section {
        padding: 60px 0;
    }

    .section-header {
        margin-bottom: 2.5rem;
    }

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

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

    .about__stats-grid {
        flex-direction: row;
        flex-wrap: wrap;
        gap: 1rem;
    }

    .stat-card {
        flex: 1;
        min-width: 140px;
    }

    .stat-card__ring {
        width: 80px;
        height: 80px;
    }

    .timeline {
        grid-template-columns: 1fr 1fr;
        gap: 1.5rem;
    }

    .projects__grid {
        grid-template-columns: 1fr;
    }

    .skills__grid {
        grid-template-columns: 1fr;
    }

    .skills__constellation {
        height: 120px;
    }

    .contact__links {
        gap: 0.75rem;
    }

    .footer__content {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }

    .footer__left {
        flex-direction: column;
        gap: 0.5rem;
    }

    .footer__right {
        text-align: center;
    }

    #snakeCanvas {
        width: 300px !important;
        height: 300px !important;
    }
}

/* Small Mobile */
@media (max-width: 480px) {
    .hero__name {
        font-size: 2rem;
    }

    .hero__tech-float {
        gap: 0.75rem;
    }

    .tech-icon {
        width: 34px;
        height: 34px;
        font-size: 0.9rem;
    }

    .timeline {
        grid-template-columns: 1fr;
    }

    .about__stats-grid {
        flex-direction: column;
    }

    .stat-card {
        min-width: auto;
    }

    .cmd-palette__modal {
        width: 95%;
        margin-top: -10vh;
    }
}

/* Reduced Motion */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }

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

    .reveal-hero {
        opacity: 1;
        transform: none;
    }
}
/* ===== GAME TABS ===== */
.game-modal__tabs {
    display: flex;
    gap: 0.25rem;
}

.game-tab {
    padding: 0.35rem 0.75rem;
    background: var(--bg-primary);
    border: 1px solid var(--border);
    border-radius: 6px;
    color: var(--text-muted);
    font-family: var(--font-mono);
    font-size: 0.7rem;
    transition: all var(--transition);
    cursor: none;
}

.game-tab:hover {
    color: var(--text-secondary);
    border-color: var(--border-hover);
}

.game-tab.active {
    color: var(--primary);
    border-color: var(--primary);
    background: rgba(0, 212, 255, 0.08);
}
