:root {
    --primary: #00D2FF;
    --primary-rgb: 0, 210, 255;
    --accent: #7B61FF;
    --accent-rgb: 123, 97, 255;
    --accent2: #00FFA3;
    --accent2-rgb: 0, 255, 163;
    --bg: #06060b;
    --bg-card: rgba(14, 14, 22, 0.8);
    --bg-card-solid: #0e0e16;
    --bg-card-hover: #1a1a2e;
    --text: #e8e8ef;
    --text-dim: rgba(232, 232, 239, 0.55);
    --text-dimmer: rgba(232, 232, 239, 0.3);
    --border: rgba(0, 210, 255, 0.12);
    --border-hover: rgba(0, 210, 255, 0.4);
    --glow: 0 0 20px rgba(0, 210, 255, 0.3);
    --glow-strong: 0 0 30px rgba(0, 210, 255, 0.4), 0 0 60px rgba(0, 210, 255, 0.1);
    --font-body: 'Inter', sans-serif;
    --font-mono: 'JetBrains Mono', monospace;
}

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

html {
    scroll-behavior: smooth;
    scrollbar-width: thin;
    scrollbar-color: var(--primary) var(--bg);
}

body {
    font-family: var(--font-body);
    background: var(--bg);
    color: var(--text);
    overflow-x: hidden;
    line-height: 1.6;
}

::selection {
    background: rgba(var(--primary-rgb), 0.3);
}

::-webkit-scrollbar { width: 5px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb {
    background: linear-gradient(to bottom, var(--primary), var(--accent));
    border-radius: 3px;
}

#progress-bar {
    position: fixed;
    top: 0;
    left: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--primary), var(--accent), var(--accent2));
    box-shadow: 0 0 15px var(--primary), 0 0 30px rgba(var(--primary-rgb), 0.3);
    z-index: 1000;
    transition: width 0.1s linear;
    width: 0%;
}

#particles-canvas {
    position: fixed;
    inset: 0;
    z-index: 0;
    pointer-events: none;
}

.scan-line {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, rgba(var(--primary-rgb), 0.08), transparent);
    z-index: 99;
    animation: scanLine 6s linear infinite;
    pointer-events: none;
}

@keyframes scanLine {
    0% { top: 0; }
    100% { top: 100vh; }
}

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

@keyframes gradientShift {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

@keyframes borderGlow {
    0%, 100% { opacity: 0.5; }
    50% { opacity: 1; }
}

.hud-overlay {
    position: fixed;
    inset: 0;
    z-index: 50;
    pointer-events: none;
    mix-blend-mode: screen;
    font-size: 10px;
    font-family: var(--font-mono);
    color: rgba(var(--primary-rgb), 0.35);
    user-select: none;
}

.hud-top-left {
    position: absolute;
    top: 1rem;
    left: 1rem;
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}
.hud-top-right {
    position: absolute;
    top: 1rem;
    right: 1rem;
    text-align: right;
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}
.hud-bottom-left {
    position: absolute;
    bottom: 1rem;
    left: 1rem;
    display: flex;
    align-items: flex-end;
    gap: 0.5rem;
}
.hud-bottom-right {
    position: absolute;
    bottom: 1rem;
    right: 1rem;
    text-align: right;
}

.hud-status {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}
.hud-dot {
    width: 6px;
    height: 6px;
    background: var(--accent2);
    border-radius: 50%;
    animation: pulse 2s ease-in-out infinite;
    box-shadow: 0 0 8px var(--accent2);
}
.hud-dim { opacity: 0.5; }
.hud-dim-more { opacity: 0.3; }

.hud-bars {
    display: flex;
    flex-direction: column;
    gap: 2px;
}
.hud-bar {
    width: 4px;
    height: 10px;
    background: rgba(var(--primary-rgb), 0.3);
}

.hud-version {
    border: 1px solid rgba(var(--primary-rgb), 0.3);
    padding: 2px 8px;
    background: rgba(var(--primary-rgb), 0.05);
}

.hud-corner {
    position: absolute;
    width: 60px;
    height: 60px;
    opacity: 0.15;
    color: var(--primary);
}
.hud-corner-tl { top: 0; left: 0; }
.hud-corner-tr { top: 0; right: 0; }
.hud-corner-bl { bottom: 0; left: 0; }
.hud-corner-br { bottom: 0; right: 0; }

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.3; }
}

.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 2rem;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    backdrop-filter: blur(0px);
}
.navbar.scrolled {
    background: rgba(6, 6, 11, 0.85);
    backdrop-filter: blur(20px) saturate(1.2);
    border-bottom: 1px solid var(--border);
    padding: 0.6rem 2rem;
}

.nav-brand {
    font-family: var(--font-mono);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary);
    text-shadow: 0 0 20px rgba(var(--primary-rgb), 0.5);
    letter-spacing: -0.02em;
}

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

.nav-link {
    font-family: var(--font-mono);
    font-size: 0.75rem;
    color: var(--text-dim);
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    transition: all 0.3s ease;
    position: relative;
    padding: 0.25rem 0;
}
.nav-link::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--primary), var(--accent));
    transition: width 0.3s ease;
    box-shadow: 0 0 8px var(--primary);
    border-radius: 1px;
}
.nav-link:hover,
.nav-link.active {
    color: #fff;
}
.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
}

.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 5px;
    z-index: 110;
}
.nav-toggle span {
    width: 24px;
    height: 2px;
    background: var(--primary);
    transition: all 0.3s ease;
}
.nav-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}
.nav-toggle.active span:nth-child(2) {
    opacity: 0;
}
.nav-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}

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

.section {
    position: relative;
    z-index: 10;
    padding: 7rem 0;
}

.section-header {
    text-align: center;
    margin-bottom: 4rem;
}
.section-tag {
    font-family: var(--font-mono);
    font-size: 0.7rem;
    color: var(--primary);
    text-transform: uppercase;
    letter-spacing: 0.3em;
    display: inline-block;
    padding: 0.3rem 1.2rem;
    border: 1px solid var(--border);
    margin-bottom: 1.25rem;
    background: rgba(var(--primary-rgb), 0.03);
    position: relative;
}
.section-tag::before {
    content: '';
    position: absolute;
    inset: -1px;
    background: linear-gradient(135deg, rgba(var(--primary-rgb), 0.2), transparent 60%);
    z-index: -1;
}
.section-title {
    font-size: 2.8rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
    background: linear-gradient(135deg, #fff 30%, var(--primary) 70%, var(--accent));
    background-size: 200% 200%;
    animation: gradientShift 6s ease infinite;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}
.section-subtitle {
    color: var(--text-dim);
    max-width: 600px;
    margin: 0 auto;
    font-size: 0.95rem;
    line-height: 1.7;
}

.hero-section {
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
    padding-top: 5rem;
}

.hero-grid-bg {
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(var(--primary-rgb), 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(var(--primary-rgb), 0.03) 1px, transparent 1px);
    background-size: 60px 60px;
    mask-image: radial-gradient(ellipse 70% 70% at 50% 50%, black 10%, transparent 100%);
    -webkit-mask-image: radial-gradient(ellipse 70% 70% at 50% 50%, black 10%, transparent 100%);
}

.hero-section::before {
    content: '';
    position: absolute;
    top: -30%;
    right: -20%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(var(--primary-rgb), 0.08) 0%, transparent 70%);
    pointer-events: none;
}
.hero-section::after {
    content: '';
    position: absolute;
    bottom: -20%;
    left: -10%;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(var(--accent-rgb), 0.06) 0%, transparent 70%);
    pointer-events: none;
}

.hero-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    width: 100%;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-family: var(--font-mono);
    font-size: 0.8rem;
    color: var(--primary);
    border: 1px solid var(--border);
    padding: 0.4rem 1.2rem;
    margin-bottom: 1.5rem;
    background: rgba(var(--primary-rgb), 0.05);
    backdrop-filter: blur(10px);
}

.hero-title {
    font-size: 3.8rem;
    font-weight: 800;
    line-height: 1.05;
    margin-bottom: 1.5rem;
    letter-spacing: -0.02em;
}

.hero-role {
    display: block;
    background: linear-gradient(135deg, #ffffff 20%, var(--primary) 50%, var(--accent) 80%);
    background-size: 200% 200%;
    animation: gradientShift 5s ease infinite;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-description {
    color: var(--text-dim);
    font-size: 1.05rem;
    margin-bottom: 2.5rem;
    max-width: 480px;
    line-height: 1.8;
}

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

.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.8rem 2rem;
    font-family: var(--font-mono);
    font-size: 0.8rem;
    text-decoration: none;
    border-radius: 0;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    position: relative;
    overflow: hidden;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary), var(--accent));
    color: #fff;
    border: none;
    font-weight: 600;
}
.btn-primary:hover {
    box-shadow: 0 0 30px rgba(var(--primary-rgb), 0.4), 0 0 60px rgba(var(--accent-rgb), 0.15);
    transform: translateY(-3px);
    filter: brightness(1.1);
}

.btn-glow {
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255,255,255,0.15) 0%, transparent 70%);
    opacity: 0;
    transition: opacity 0.3s;
}
.btn:hover .btn-glow {
    opacity: 1;
}

.btn-outline {
    background: transparent;
    color: var(--text);
    border: 1px solid rgba(255,255,255,0.15);
    backdrop-filter: blur(5px);
}
.btn-outline:hover {
    border-color: var(--primary);
    color: var(--primary);
    background: rgba(var(--primary-rgb), 0.05);
    box-shadow: 0 0 20px rgba(var(--primary-rgb), 0.1);
}

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

.hero-stats {
    display: flex;
    gap: 2.5rem;
}
.stat-item {
    text-align: center;
    position: relative;
}
.stat-item::after {
    content: '';
    position: absolute;
    right: -1.25rem;
    top: 50%;
    transform: translateY(-50%);
    width: 1px;
    height: 30px;
    background: linear-gradient(to bottom, transparent, var(--border), transparent);
}
.stat-item:last-child::after {
    display: none;
}
.stat-value {
    font-family: var(--font-mono);
    font-size: 2rem;
    font-weight: 700;
    background: linear-gradient(135deg, var(--primary), var(--accent2));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    filter: drop-shadow(0 0 8px rgba(var(--primary-rgb), 0.3));
}
.stat-label {
    font-size: 0.7rem;
    color: var(--text-dim);
    text-transform: uppercase;
    letter-spacing: 0.15em;
    margin-top: 0.25rem;
}

.glass-card {
    background: var(--bg-card);
    backdrop-filter: blur(15px);
    border: 1px solid var(--border);
    position: relative;
}
.glass-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(var(--primary-rgb), 0.06), transparent 40%, rgba(var(--accent-rgb), 0.03));
    pointer-events: none;
    z-index: 0;
}

.code-window {
    background: var(--bg-card);
    backdrop-filter: blur(15px);
    border: 1px solid var(--border);
    overflow: hidden;
    position: relative;
    transition: transform 0.3s ease;
}
.code-window-wrapper {
    animation: float 6s ease-in-out infinite;
}
.code-window::before {
    content: '';
    position: absolute;
    inset: -1px;
    background: linear-gradient(135deg, rgba(var(--primary-rgb), 0.25), transparent 30%, transparent 70%, rgba(var(--accent-rgb), 0.15));
    z-index: 0;
    pointer-events: none;
}
.code-window::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(var(--primary-rgb), 0.03) 0%, transparent 30%);
    pointer-events: none;
    z-index: 0;
}

.code-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 0.75rem 1rem;
    background: rgba(0, 0, 0, 0.4);
    border-bottom: 1px solid var(--border);
    position: relative;
    z-index: 1;
}
.code-dots {
    display: flex;
    gap: 6px;
}
.dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
}
.dot-red { background: #ff5f56; box-shadow: 0 0 6px rgba(255, 95, 86, 0.4); }
.dot-yellow { background: #ffbd2e; box-shadow: 0 0 6px rgba(255, 189, 46, 0.4); }
.dot-green { background: #27c93f; box-shadow: 0 0 6px rgba(39, 201, 63, 0.4); }

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

.code-body {
    padding: 1.5rem;
    font-family: var(--font-mono);
    font-size: 0.82rem;
    line-height: 1.8;
    position: relative;
    z-index: 1;
}
.code-keyword { color: #c678dd; }
.code-var { color: #e5c07b; }
.code-prop { color: #61afef; }
.code-string { color: #98c379; }

.code-cursor {
    display: inline-block;
    width: 8px;
    height: 16px;
    background: var(--primary);
    animation: blink 1s step-end infinite;
    vertical-align: middle;
    margin-left: 4px;
    box-shadow: 0 0 8px var(--primary);
}
@keyframes blink {
    50% { opacity: 0; }
}

.typing-text {
    overflow: hidden;
    border-right: none;
    animation: typing 3s steps(20) 1s forwards;
    width: 0;
    display: inline-block;
    vertical-align: bottom;
    white-space: nowrap;
}
@keyframes typing {
    from { width: 0; }
    to { width: 100%; }
}

.story-content {
    max-width: 750px;
    margin: 0 auto;
    position: relative;
    padding-left: 3rem;
}
.story-timeline-line {
    position: absolute;
    left: 12px;
    top: 0;
    bottom: 0;
    width: 2px;
    background: linear-gradient(to bottom, var(--primary), rgba(var(--accent-rgb), 0.3), var(--primary));
}
.story-block {
    position: relative;
    margin-bottom: 2.5rem;
}
.story-block:last-child {
    margin-bottom: 0;
}
.story-marker {
    position: absolute;
    left: -3rem;
    top: 0.2rem;
    width: 26px;
    height: 26px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg);
    border: 1px solid var(--border);
    z-index: 1;
}
.story-marker-icon {
    width: 14px;
    height: 14px;
    color: var(--primary);
}
.story-highlight-block .story-marker {
    border-color: var(--primary);
    box-shadow: 0 0 15px rgba(var(--primary-rgb), 0.5);
    background: rgba(var(--primary-rgb), 0.1);
}
.story-text {
    font-size: 1rem;
    color: var(--text-dim);
    line-height: 1.8;
    background: var(--bg-card);
    backdrop-filter: blur(10px);
    border: 1px solid var(--border);
    padding: 1.5rem;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    position: relative;
}
.story-text::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(var(--primary-rgb), 0.04), transparent 50%);
    pointer-events: none;
}
.story-text:hover {
    border-color: var(--border-hover);
    transform: translateX(5px);
}
.story-highlight {
    font-family: var(--font-mono);
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--primary);
    text-shadow: 0 0 25px rgba(var(--primary-rgb), 0.4);
    padding: 1.5rem 2rem;
    border-left: 3px solid var(--primary);
    background: linear-gradient(135deg, rgba(var(--primary-rgb), 0.08), rgba(var(--accent-rgb), 0.03));
    backdrop-filter: blur(10px);
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    gap: 2rem;
    align-items: center;
    margin-bottom: 3rem;
}

.about-card {
    background: var(--bg-card);
    backdrop-filter: blur(15px);
    border: 1px solid var(--border);
    padding: 2rem;
    text-align: center;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    position: relative;
    overflow: hidden;
}
.about-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(var(--primary-rgb), 0.05), transparent 60%);
    pointer-events: none;
}
.about-card:hover {
    border-color: var(--border-hover);
    box-shadow: var(--glow-strong);
    transform: translateY(-6px);
}

.about-icon-wrapper {
    width: 64px;
    height: 64px;
    margin: 0 auto 1.25rem;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--border);
    background: rgba(var(--primary-rgb), 0.05);
    position: relative;
}
.about-icon-wrapper::after {
    content: '';
    position: absolute;
    inset: -3px;
    border: 1px solid rgba(var(--primary-rgb), 0.08);
}
.about-icon-wrapper.glow {
    box-shadow: var(--glow-strong);
    border-color: var(--primary);
}
.about-icon {
    width: 28px;
    height: 28px;
    color: var(--primary);
}

.about-text {
    color: var(--text-dim);
    font-size: 0.9rem;
    line-height: 1.7;
}
.about-highlight {
    font-family: var(--font-mono);
    font-size: 0.9rem;
    color: var(--primary);
    font-style: italic;
    text-shadow: 0 0 15px rgba(var(--primary-rgb), 0.2);
}

.about-divider {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
}
.divider-line {
    width: 2px;
    height: 30px;
    background: linear-gradient(to bottom, transparent, var(--primary), transparent);
}
.divider-arrow {
    color: var(--primary);
    font-size: 0.8rem;
    transform: rotate(90deg);
    filter: drop-shadow(0 0 5px var(--primary));
}

.about-transition {
    background: transparent;
    border: none;
    padding: 1rem;
}
.about-transition:hover {
    background: transparent;
    box-shadow: none;
    transform: none;
}

.terminal-window {
    background: var(--bg-card);
    backdrop-filter: blur(15px);
    border: 1px solid var(--border);
    max-width: 700px;
    margin: 0 auto;
    position: relative;
    overflow: hidden;
}
.terminal-window::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(var(--primary-rgb), 0.04) 0%, transparent 20%);
    pointer-events: none;
}
.terminal-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 0.75rem 1rem;
    background: rgba(0, 0, 0, 0.4);
    border-bottom: 1px solid var(--border);
    position: relative;
    z-index: 1;
}
.terminal-title {
    font-family: var(--font-mono);
    font-size: 0.75rem;
    color: var(--text-dim);
}
.terminal-body {
    padding: 1.5rem;
    font-family: var(--font-mono);
    font-size: 0.8rem;
    line-height: 2;
    position: relative;
    z-index: 1;
}
.terminal-line {
    opacity: 0;
    transform: translateY(10px);
    transition: all 0.4s ease;
}
.terminal-line.visible {
    opacity: 1;
    transform: translateY(0);
}
.terminal-prompt {
    color: var(--accent2);
    margin-right: 0.5rem;
}
.terminal-text {
    color: var(--text-dim);
}

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

.service-card {
    background: var(--bg-card);
    backdrop-filter: blur(15px);
    border: 1px solid var(--border);
    padding: 2rem;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    position: relative;
    overflow: hidden;
}
.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--primary), var(--accent), transparent);
    opacity: 0;
    transition: opacity 0.4s;
}
.service-card::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(var(--primary-rgb), 0.03), transparent 40%);
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.4s;
}
.service-card:hover {
    border-color: var(--border-hover);
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.3), var(--glow);
}
.service-card:hover::before,
.service-card:hover::after {
    opacity: 1;
}

.service-icon-wrapper {
    width: 52px;
    height: 52px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--border);
    background: rgba(var(--primary-rgb), 0.05);
    margin-bottom: 1.25rem;
    transition: all 0.4s;
    position: relative;
}
.service-card:hover .service-icon-wrapper {
    border-color: var(--primary);
    box-shadow: var(--glow);
    background: rgba(var(--primary-rgb), 0.1);
}
.service-icon {
    width: 24px;
    height: 24px;
    color: var(--primary);
}

.service-title {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
    color: #fff;
}
.service-desc {
    font-size: 0.85rem;
    color: var(--text-dim);
    margin-bottom: 1.25rem;
    line-height: 1.7;
}
.service-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
}
.tag {
    font-family: var(--font-mono);
    font-size: 0.6rem;
    padding: 0.2rem 0.6rem;
    border: 1px solid rgba(var(--primary-rgb), 0.2);
    color: var(--primary);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    background: rgba(var(--primary-rgb), 0.03);
    transition: all 0.3s;
}
.service-card:hover .tag {
    border-color: rgba(var(--primary-rgb), 0.4);
    background: rgba(var(--primary-rgb), 0.08);
}

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

.skill-category {
    background: var(--bg-card);
    backdrop-filter: blur(15px);
    border: 1px solid var(--border);
    padding: 2rem;
    position: relative;
    overflow: hidden;
}
.skill-category::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--primary), transparent);
    opacity: 0.5;
}
.skill-category-title {
    font-family: var(--font-mono);
    font-size: 0.85rem;
    color: var(--primary);
    margin-bottom: 1.5rem;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}
.skill-category-title::before {
    content: '';
    width: 8px;
    height: 8px;
    background: var(--primary);
    box-shadow: 0 0 8px var(--primary);
}

.skill-item {
    margin-bottom: 1.25rem;
}
.skill-item:last-child {
    margin-bottom: 0;
}
.skill-info {
    display: flex;
    justify-content: space-between;
    margin-bottom: 0.4rem;
}
.skill-name {
    font-size: 0.85rem;
    color: var(--text);
}
.skill-level {
    font-family: var(--font-mono);
    font-size: 0.75rem;
    color: var(--primary);
}

.skill-bar {
    height: 3px;
    background: rgba(var(--primary-rgb), 0.08);
    overflow: hidden;
    border-radius: 2px;
}
.skill-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--primary), var(--accent));
    width: 0%;
    transition: width 1.5s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: 0 0 10px rgba(var(--primary-rgb), 0.5);
    border-radius: 2px;
    position: relative;
}

.timeline {
    max-width: 700px;
    margin: 0 auto;
    position: relative;
    padding-left: 2rem;
}
.timeline::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 2px;
    background: linear-gradient(to bottom, var(--primary), rgba(var(--accent-rgb), 0.3), rgba(var(--primary-rgb), 0.1));
}

.timeline-item {
    position: relative;
    padding-bottom: 2.5rem;
}
.timeline-item:last-child {
    padding-bottom: 0;
}

.timeline-marker {
    position: absolute;
    left: -2rem;
    top: 0.25rem;
    transform: translateX(-50%);
}
.marker-dot {
    width: 12px;
    height: 12px;
    border: 2px solid var(--border);
    background: var(--bg);
    transition: all 0.3s;
}
.timeline-marker.active .marker-dot {
    border-color: var(--primary);
    box-shadow: 0 0 12px var(--primary), 0 0 25px rgba(var(--primary-rgb), 0.3);
    background: var(--primary);
}

.timeline-content {
    background: var(--bg-card);
    backdrop-filter: blur(15px);
    border: 1px solid var(--border);
    padding: 1.5rem;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    position: relative;
    overflow: hidden;
}
.timeline-content::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(var(--primary-rgb), 0.04), transparent 50%);
    pointer-events: none;
}
.timeline-content:hover {
    border-color: var(--border-hover);
    transform: translateX(5px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
}

.timeline-period {
    font-family: var(--font-mono);
    font-size: 0.72rem;
    color: var(--accent2);
    margin-bottom: 0.5rem;
    letter-spacing: 0.05em;
}
.timeline-role {
    font-size: 1.1rem;
    font-weight: 600;
    color: #fff;
    margin-bottom: 0.25rem;
}
.timeline-company {
    font-size: 0.85rem;
    color: var(--text-dim);
    margin-bottom: 0.75rem;
}
.timeline-desc {
    font-size: 0.85rem;
    color: var(--text-dim);
    line-height: 1.7;
}

.status-badge {
    display: inline-block;
    font-family: var(--font-mono);
    font-size: 0.6rem;
    padding: 0.2rem 0.8rem;
    margin-top: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.12em;
}
.status-badge.active {
    color: var(--accent2);
    border: 1px solid rgba(var(--accent2-rgb), 0.3);
    background: rgba(var(--accent2-rgb), 0.05);
    box-shadow: 0 0 10px rgba(var(--accent2-rgb), 0.1);
}

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

.project-card {
    background: var(--bg-card);
    backdrop-filter: blur(15px);
    border: 1px solid var(--border);
    padding: 2rem;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    position: relative;
    overflow: hidden;
}
.project-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(var(--primary-rgb), 0.04), transparent 40%, rgba(var(--accent-rgb), 0.02));
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.4s;
}
.project-card:hover {
    border-color: var(--border-hover);
    transform: translateY(-6px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.3), var(--glow);
}
.project-card:hover::before {
    opacity: 1;
}

.project-status {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-family: var(--font-mono);
    font-size: 0.65rem;
    color: var(--accent2);
    margin-bottom: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.15em;
}
.status-dot {
    width: 6px;
    height: 6px;
    background: var(--accent2);
    border-radius: 50%;
    animation: pulse 2s ease-in-out infinite;
    box-shadow: 0 0 8px var(--accent2);
}

.project-title {
    font-size: 1.15rem;
    font-weight: 600;
    color: #fff;
    margin-bottom: 0.75rem;
}
.project-desc {
    font-size: 0.85rem;
    color: var(--text-dim);
    margin-bottom: 1.25rem;
    line-height: 1.7;
}
.project-tech {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
}
.tech-tag {
    font-family: var(--font-mono);
    font-size: 0.6rem;
    padding: 0.2rem 0.6rem;
    border: 1px solid rgba(var(--accent-rgb), 0.2);
    color: var(--accent);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    background: rgba(var(--accent-rgb), 0.03);
}

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

.contact-item {
    display: flex;
    gap: 1rem;
    align-items: flex-start;
    margin-bottom: 1.5rem;
}
.contact-icon {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--border);
    background: rgba(var(--primary-rgb), 0.05);
    flex-shrink: 0;
    transition: all 0.3s;
}
.contact-item:hover .contact-icon {
    border-color: var(--primary);
    box-shadow: var(--glow);
}
.contact-icon svg {
    width: 20px;
    height: 20px;
    color: var(--primary);
}

.contact-label {
    font-family: var(--font-mono);
    font-size: 0.72rem;
    color: var(--primary);
    text-transform: uppercase;
    letter-spacing: 0.12em;
    margin-bottom: 0.25rem;
}
.contact-value {
    font-size: 0.9rem;
    color: var(--text);
    line-height: 1.6;
}

.contact-socials {
    display: flex;
    gap: 0.75rem;
    margin-top: 1rem;
}
.social-link {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--border);
    background: rgba(var(--primary-rgb), 0.05);
    color: var(--text-dim);
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}
.social-link:hover {
    border-color: var(--primary);
    color: var(--primary);
    box-shadow: var(--glow-strong);
    transform: translateY(-4px);
}
.social-link svg {
    width: 18px;
    height: 18px;
}

.contact-form-wrapper {
    background: var(--bg-card);
    backdrop-filter: blur(15px);
    border: 1px solid var(--border);
    padding: 2rem;
    position: relative;
    overflow: hidden;
}
.contact-form-wrapper::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(var(--primary-rgb), 0.04), transparent 50%);
    pointer-events: none;
}

.form-group {
    margin-bottom: 1.25rem;
    position: relative;
}
.form-label {
    display: block;
    font-family: var(--font-mono);
    font-size: 0.7rem;
    color: var(--primary);
    text-transform: uppercase;
    letter-spacing: 0.12em;
    margin-bottom: 0.5rem;
}
.form-input {
    width: 100%;
    padding: 0.8rem 1rem;
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid var(--border);
    color: var(--text);
    font-family: var(--font-body);
    font-size: 0.9rem;
    outline: none;
    transition: all 0.3s;
    position: relative;
}
.form-input:focus {
    border-color: var(--primary);
    box-shadow: 0 0 15px rgba(var(--primary-rgb), 0.15), inset 0 0 15px rgba(var(--primary-rgb), 0.03);
}
.form-input::placeholder {
    color: var(--text-dimmer);
}
.form-textarea {
    resize: vertical;
    min-height: 120px;
}

.footer {
    position: relative;
    z-index: 10;
    border-top: 1px solid var(--border);
    padding: 2.5rem 0;
    background: rgba(var(--primary-rgb), 0.01);
}
.footer-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.footer-brand {
    font-family: var(--font-mono);
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--primary);
    text-shadow: 0 0 15px rgba(var(--primary-rgb), 0.3);
}
.footer-text {
    font-size: 0.78rem;
    color: var(--text-dim);
}
.footer-links {
    display: flex;
    gap: 1rem;
}
.footer-link {
    font-size: 0.78rem;
    color: var(--text-dim);
    text-decoration: none;
    transition: all 0.3s;
}
.footer-link:hover {
    color: var(--primary);
}

.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}
.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

#hero .hero-content {
    opacity: 1;
    transform: none;
}

@media (max-width: 1024px) {
    .hero-content {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 2rem;
    }
    .hero-description {
        margin: 0 auto 2rem;
    }
    .hero-actions {
        justify-content: center;
    }
    .hero-stats {
        justify-content: center;
    }
    .hero-right {
        max-width: 550px;
        margin: 0 auto;
        width: 100%;
    }
    .services-grid,
    .skills-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .about-grid {
        grid-template-columns: 1fr;
    }
    .about-divider {
        flex-direction: row;
    }
    .divider-line {
        width: 30px;
        height: 2px;
    }
    .divider-arrow {
        transform: none;
    }
    .contact-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
}

@media (max-width: 768px) {
    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        width: 75%;
        height: 100vh;
        background: rgba(6, 6, 11, 0.98);
        flex-direction: column;
        padding: 5rem 2rem;
        transition: right 0.3s ease;
        border-left: 1px solid var(--border);
        z-index: 105;
        backdrop-filter: blur(20px);
    }
    .nav-links.open {
        right: 0;
    }
    .nav-toggle {
        display: flex;
    }
    .navbar {
        padding: 0.75rem 1rem;
    }

    .hero-section {
        padding-top: 4rem;
        min-height: auto;
        padding-bottom: 3rem;
    }
    .hero-title {
        font-size: 2.2rem;
    }
    .hero-badge {
        font-size: 0.75rem;
        padding: 0.3rem 0.8rem;
    }
    .hero-description {
        font-size: 0.9rem;
    }
    .hero-actions {
        flex-direction: column;
        align-items: center;
        gap: 0.75rem;
    }
    .hero-actions .btn {
        width: 100%;
        max-width: 280px;
        justify-content: center;
    }
    .hero-stats {
        flex-wrap: wrap;
        gap: 1.5rem;
    }

    .section {
        padding: 4rem 0;
    }
    .section-header {
        margin-bottom: 2.5rem;
    }
    .section-title {
        font-size: 1.8rem;
    }
    .section-subtitle {
        font-size: 0.85rem;
    }

    .services-grid,
    .skills-grid,
    .projects-grid,
    .contact-grid {
        grid-template-columns: 1fr;
    }

    .code-window {
        max-width: 100%;
        animation: none;
    }
    .code-body {
        padding: 1rem;
        font-size: 0.72rem;
        overflow-x: auto;
    }

    .terminal-window {
        max-width: 100%;
    }
    .terminal-body {
        padding: 1rem;
        font-size: 0.72rem;
    }

    .story-content {
        padding-left: 2.5rem;
    }
    .story-text {
        padding: 1.25rem;
        font-size: 0.9rem;
    }
    .story-highlight {
        font-size: 1rem;
        padding: 1.25rem 1.5rem;
    }

    .about-card {
        padding: 1.5rem;
    }

    .service-card {
        padding: 1.5rem;
    }

    .skill-category {
        padding: 1.5rem;
    }

    .timeline {
        padding-left: 1.5rem;
    }
    .timeline-marker {
        left: -1.5rem;
    }
    .timeline-content {
        padding: 1.25rem;
    }

    .project-card {
        padding: 1.5rem;
    }

    .contact-item {
        flex-direction: column;
        text-align: center;
        align-items: center;
    }

    .contact-form-wrapper {
        padding: 1.5rem;
    }

    .hud-overlay {
        font-size: 8px;
    }
    .hud-corner {
        width: 40px;
        height: 40px;
    }
    .hud-top-left {
        top: 0.5rem;
        left: 0.5rem;
    }
    .hud-top-right {
        top: 0.5rem;
        right: 0.5rem;
    }
    .hud-bottom-left {
        bottom: 0.5rem;
        left: 0.5rem;
    }
    .hud-bottom-right {
        bottom: 0.5rem;
        right: 0.5rem;
    }

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

@media (max-width: 480px) {
    .hero-title {
        font-size: 1.6rem;
    }
    .hero-stats {
        gap: 1rem;
    }
    .stat-value {
        font-size: 1.3rem;
    }
    .stat-label {
        font-size: 0.65rem;
    }
    .container {
        padding: 0 0.75rem;
    }
    .section {
        padding: 3rem 0;
    }
    .section-title {
        font-size: 1.5rem;
    }
    .section-tag {
        font-size: 0.65rem;
        padding: 0.2rem 0.6rem;
    }

    .navbar {
        padding: 0.5rem 0.75rem;
    }
    .nav-brand {
        font-size: 1.2rem;
    }

    .code-body {
        padding: 0.75rem;
        font-size: 0.65rem;
        line-height: 1.6;
    }
    .code-body pre {
        white-space: pre-wrap;
        word-break: break-word;
    }

    .terminal-body {
        padding: 0.75rem;
        font-size: 0.65rem;
        line-height: 1.8;
    }

    .story-content {
        padding-left: 2rem;
    }
    .story-marker {
        left: -2rem;
        width: 22px;
        height: 22px;
    }
    .story-marker-icon {
        width: 12px;
        height: 12px;
    }
    .story-text {
        padding: 1rem;
        font-size: 0.82rem;
    }
    .story-highlight {
        font-size: 0.9rem;
        padding: 1rem 1.25rem;
    }
    .story-block {
        margin-bottom: 1.5rem;
    }

    .about-card {
        padding: 1.25rem;
    }
    .about-text {
        font-size: 0.82rem;
    }
    .about-highlight {
        font-size: 0.82rem;
    }

    .service-card {
        padding: 1.25rem;
    }
    .service-title {
        font-size: 1rem;
    }
    .service-desc {
        font-size: 0.8rem;
    }

    .skill-category {
        padding: 1.25rem;
    }
    .skill-category-title {
        font-size: 0.8rem;
    }
    .skill-name {
        font-size: 0.8rem;
    }

    .timeline-role {
        font-size: 1rem;
    }
    .timeline-desc {
        font-size: 0.8rem;
    }

    .project-card {
        padding: 1.25rem;
    }
    .project-title {
        font-size: 1rem;
    }
    .project-desc {
        font-size: 0.8rem;
    }

    .contact-form-wrapper {
        padding: 1.25rem;
    }
    .form-input {
        padding: 0.6rem 0.75rem;
        font-size: 0.85rem;
    }
    .btn {
        padding: 0.6rem 1.5rem;
        font-size: 0.75rem;
    }

    .contact-label {
        font-size: 0.7rem;
    }
    .contact-value {
        font-size: 0.82rem;
    }

    .hud-overlay {
        font-size: 7px;
    }
    .hud-corner {
        width: 30px;
        height: 30px;
    }

    .footer-brand {
        font-size: 1rem;
    }
    .footer-text {
        font-size: 0.7rem;
    }
}

.btn:focus-visible,
.nav-link:focus-visible,
.social-link:focus-visible,
.nav-toggle:focus-visible,
.form-input:focus-visible {
    outline: 2px solid var(--primary);
    outline-offset: 2px;
    box-shadow: 0 0 12px rgba(var(--primary-rgb), 0.3);
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    html { scroll-behavior: auto; }
    .scan-line, .code-window-wrapper { animation: none; }
    .reveal { opacity: 1; transform: none; }
    .typing-text { width: 100%; animation: none; }
}
