:root {
    --bg-primary: #0a0a0f;
    --bg-secondary: #12121a;
    --bg-card: #16161f;
    --bg-card-hover: #1c1c28;
    --purple-dark: #3d1a6e;
    --purple-main: #7B2FBE;
    --purple-light: #9D4EDD;
    --purple-glow: #C77DFF;
    --purple-neon: #b56dff;
    --red-main: #FF0040;
    --red-dark: #cc0033;
    --red-glow: #ff3366;
    --cyan-main: #00f0ff;
    --cyan-dark: #00b8cc;
    --green-main: #00ff88;
    --text-primary: #e8e8f0;
    --text-secondary: #8888a0;
    --text-muted: #55556a;
    --border-color: #2a2a3a;
    --border-glow: #7B2FBE33;
}

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

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

::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--bg-primary); }
::-webkit-scrollbar-thumb { background: var(--purple-main); border-radius: 3px; }

body {
    font-family: 'Inter', sans-serif;
    background: var(--bg-primary);
    color: var(--text-primary);
    overflow-x: hidden;
    cursor: default;
}

#cursor-glow {
    position: fixed;
    width: 400px;
    height: 400px;
    border-radius: 50%;
    background: radial-gradient(circle, var(--purple-main) 0%, transparent 70%);
    opacity: 0.07;
    pointer-events: none;
    z-index: 1;
    transform: translate(-50%, -50%);
    transition: opacity 0.3s;
}

#matrix-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    opacity: 0.08;
    pointer-events: none;
}


#cyber-artifacts {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
    overflow: hidden;
}

.cyber-artifact {
    will-change: transform, opacity;
    mix-blend-mode: screen;
}

.particle {
    position: absolute;
    width: 2px;
    height: 2px;
    background: var(--purple-light);
    border-radius: 50%;
    box-shadow: 0 0 6px var(--purple-main);
    animation: float-particle linear infinite;
}

@keyframes float-particle {
    0% { transform: translateY(100vh) scale(0); opacity: 0; }
    10% { opacity: 1; }
    90% { opacity: 1; }
    100% { transform: translateY(-10vh) scale(1); opacity: 0; }
}

/* NAVBAR */
#navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: 1rem 2rem;
    background: rgba(10, 10, 15, 0.8);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border-color);
    transition: all 0.3s ease;
}

#navbar.scrolled {
    padding: 0.5rem 2rem;
    background: rgba(10, 10, 15, 0.95);
}

.nav-inner {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.nav-logo {
    text-decoration: none;
    font-family: 'Orbitron', sans-serif;
    font-size: 1.2rem;
    font-weight: 700;
    display: flex;
    gap: 2px;
}

.logo-bracket {
    color: var(--purple-light);
}

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

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

.nav-link {
    text-decoration: none;
    color: var(--text-secondary);
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.85rem;
    letter-spacing: 1px;
    text-transform: uppercase;
    position: relative;
    padding: 0.5rem 0;
    transition: color 0.3s;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--purple-light);
    transition: width 0.3s;
    box-shadow: 0 0 8px var(--purple-main);
}

.nav-link:hover,
.nav-link.active {
    color: var(--purple-light);
}

.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;
}

.nav-toggle span {
    width: 25px;
    height: 2px;
    background: var(--text-primary);
    transition: all 0.3s;
}

.mobile-menu {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 999;
    background: rgba(10, 10, 15, 0.98);
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2rem;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s;
}

.mobile-menu.active {
    opacity: 1;
    pointer-events: all;
}

.mobile-link {
    text-decoration: none;
    color: var(--text-primary);
    font-family: 'Orbitron', sans-serif;
    font-size: 1.5rem;
    font-weight: 600;
    transition: color 0.3s;
}

.mobile-link:hover {
    color: var(--purple-light);
}

/* HERO */
#hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    z-index: 2;
}

.hero-grid-bg {
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(var(--border-color) 1px, transparent 1px),
        linear-gradient(90deg, var(--border-color) 1px, transparent 1px);
    background-size: 60px 60px;
    opacity: 0.3;
    mask-image: radial-gradient(ellipse at center, black 30%, transparent 70%);
    -webkit-mask-image: radial-gradient(ellipse at center, black 30%, transparent 70%);
}

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

.hero-terminal {
    perspective: 1000px;
}

.terminal-bar {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    background: var(--bg-secondary);
    border-radius: 12px 12px 0 0;
    border: 1px solid var(--border-color);
    border-bottom: none;
}

.terminal-dots {
    display: flex;
    gap: 6px;
}

.dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
}

.dot.red { background: var(--red-main); }
.dot.yellow { background: #ffbb00; }
.dot.green { background: var(--green-main); }

.terminal-title {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.75rem;
    color: var(--text-muted);
}

.terminal-body {
    background: rgba(18, 18, 26, 0.9);
    border: 1px solid var(--border-color);
    border-top: none;
    border-radius: 0 0 12px 12px;
    padding: 1.5rem;
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.85rem;
    min-height: 200px;
    transform: rotateY(-5deg) rotateX(2deg);
    transform-style: preserve-3d;
    transition: transform 0.5s ease;
}

.terminal-body:hover {
    transform: rotateY(0deg) rotateX(0deg);
}

.terminal-line {
    margin-bottom: 0.5rem;
    display: flex;
    gap: 0.5rem;
}

.terminal-prompt {
    color: var(--purple-light);
    font-weight: 700;
}

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

.hero-info {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.hero-name {
    font-family: 'Orbitron', sans-serif;
    font-size: 2.5rem;
    font-weight: 900;
    letter-spacing: 2px;
    line-height: 1.2;
    background: linear-gradient(135deg, var(--text-primary) 0%, var(--purple-light) 50%, var(--red-main) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.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;
}

.glitch::before {
    animation: glitch-1 3s infinite linear alternate-reverse;
    -webkit-text-fill-color: transparent;
    clip-path: polygon(0 0, 100% 0, 100% 45%, 0 45%);
    transform: translate(-2px, -2px);
    opacity: 0.7;
    background: linear-gradient(135deg, var(--text-primary) 0%, var(--purple-light) 50%, var(--red-main) 100%);
    -webkit-background-clip: text;
}

.glitch::after {
    animation: glitch-2 3s infinite linear alternate-reverse;
    -webkit-text-fill-color: transparent;
    clip-path: polygon(0 60%, 100% 60%, 100% 100%, 0 100%);
    transform: translate(2px, 2px);
    opacity: 0.7;
    background: linear-gradient(135deg, var(--red-main) 0%, var(--purple-light) 50%, var(--text-primary) 100%);
    -webkit-background-clip: text;
}

@keyframes glitch-1 {
    0%, 90% { transform: translate(0); }
    91% { transform: translate(-2px, 1px); }
    92% { transform: translate(2px, -1px); }
    93% { transform: translate(-1px, 2px); }
    94% { transform: translate(1px, -2px); }
    95% { transform: translate(-2px, 0); }
    96% { transform: translate(0, 2px); }
    97% { transform: translate(2px, 0); }
    98% { transform: translate(-1px, -1px); }
    99% { transform: translate(1px, 1px); }
    100% { transform: translate(0); }
}

@keyframes glitch-2 {
    0%, 90% { transform: translate(0); }
    91% { transform: translate(2px, -1px); }
    92% { transform: translate(-2px, 1px); }
    93% { transform: translate(1px, -2px); }
    94% { transform: translate(-1px, 2px); }
    95% { transform: translate(2px, 0); }
    96% { transform: translate(0, -2px); }
    97% { transform: translate(-2px, 0); }
    98% { transform: translate(1px, 1px); }
    99% { transform: translate(-1px, -1px); }
    100% { transform: translate(0); }
}

.hero-role {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.role-tag {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.8rem;
    font-weight: 600;
    padding: 4px 12px;
    border-radius: 4px;
    letter-spacing: 2px;
}

.role-tag.purple {
    background: rgba(123, 47, 190, 0.2);
    color: var(--purple-light);
    border: 1px solid var(--purple-main);
}

.role-tag.red {
    background: rgba(255, 0, 64, 0.15);
    color: var(--red-main);
    border: 1px solid var(--red-dark);
}

.role-tag.white {
    background: rgba(255, 255, 255, 0.08);
    color: var(--text-primary);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.role-tag.blue {
    background: rgba(0, 180, 255, 0.15);
    color: #00b4ff;
    border: 1px solid rgba(0, 180, 255, 0.3);
}

.role-divider {
    color: var(--text-muted);
    font-weight: 300;
}

.hero-tagline {
    font-family: 'JetBrains Mono', monospace;
    font-size: 1rem;
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.tagline-dot {
    color: var(--purple-light);
    font-size: 1.5rem;
}

.hero-cta {
    display: flex;
    gap: 1rem;
    margin-top: 0.5rem;
}

.cta-btn {
    text-decoration: none;
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.85rem;
    font-weight: 600;
    padding: 12px 24px;
    border-radius: 6px;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s;
    position: relative;
    overflow: hidden;
}

.cta-btn.primary {
    background: var(--purple-main);
    color: white;
    border: 1px solid var(--purple-light);
    box-shadow: 0 0 20px rgba(123, 47, 190, 0.3);
}

.cta-btn.primary:hover {
    background: var(--purple-light);
    box-shadow: 0 0 30px rgba(157, 78, 221, 0.5);
    transform: translateY(-2px);
}

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

.cta-btn.secondary:hover {
    border-color: var(--purple-light);
    color: var(--purple-light);
    transform: translateY(-2px);
}

.cta-icon {
    font-family: 'JetBrains Mono', monospace;
}

.hero-stats {
    display: flex;
    gap: 1.5rem;
    margin-top: 1rem;
}

.stat-card {
    text-align: center;
    padding: 1rem 1.5rem;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    min-width: 100px;
}

.stat-number {
    display: block;
    font-family: 'Orbitron', sans-serif;
    font-size: 2rem;
    font-weight: 700;
    color: var(--purple-light);
    text-shadow: 0 0 20px rgba(157, 78, 221, 0.5);
}

.stat-label {
    font-size: 0.7rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 1px;
    font-family: 'JetBrains Mono', monospace;
}

.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.7rem;
    font-family: 'JetBrains Mono', monospace;
    letter-spacing: 2px;
    text-transform: uppercase;
    animation: bounce 2s infinite;
}

@media (max-width: 600px) {
    .scroll-indicator { display: none; }
}

.mouse {
    width: 24px;
    height: 38px;
    border: 2px solid var(--text-muted);
    border-radius: 12px;
    display: flex;
    justify-content: center;
    padding-top: 8px;
}

.mouse-wheel {
    width: 3px;
    height: 8px;
    background: var(--purple-light);
    border-radius: 2px;
    animation: scroll-anim 1.5s infinite;
}

@keyframes scroll-anim {
    0% { opacity: 1; transform: translateY(0); }
    100% { opacity: 0; transform: translateY(10px); }
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% { transform: translateX(-50%) translateY(0); }
    40% { transform: translateX(-50%) translateY(-8px); }
    60% { transform: translateX(-50%) translateY(-4px); }
}

/* SECTIONS COMMON */
section {
    position: relative;
    z-index: 2;
    padding: 6rem 2rem;
}

.section-container {
    max-width: 1100px;
    margin: 0 auto;
}

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

.section-number {
    font-family: 'Orbitron', sans-serif;
    font-size: 1rem;
    color: var(--purple-light);
    font-weight: 700;
}

.section-title {
    font-family: 'Orbitron', sans-serif;
    font-size: 2rem;
    font-weight: 800;
    letter-spacing: 3px;
    white-space: nowrap;
}

.section-line {
    flex: 1;
    height: 1px;
    background: linear-gradient(90deg, var(--purple-main), transparent);
}

/* ABOUT */
.about-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: 3rem;
    align-items: start;
}

.about-terminal .terminal-body {
    transform: none;
    min-height: auto;
}

.terminal-output {
    margin-bottom: 0.75rem;
    line-height: 1.6;
    font-size: 0.85rem;
}

.prompt-green { color: var(--green-main); font-weight: 700; }
.prompt-cyan { color: var(--cyan-main); font-weight: 700; }
.prompt-red { color: var(--red-main); font-weight: 700; }
.prompt-purple { color: var(--purple-light); font-weight: 700; }

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

.info-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 1.2rem;
    transition: all 0.3s;
}

.info-card:hover {
    border-color: var(--purple-main);
    background: var(--bg-card-hover);
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(123, 47, 190, 0.15);
}

.info-icon {
    font-family: 'JetBrains Mono', monospace;
    color: var(--purple-light);
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
}

.info-card h3 {
    font-family: 'Orbitron', sans-serif;
    font-size: 0.75rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 0.3rem;
}

.info-card p {
    font-size: 0.9rem;
    color: var(--text-primary);
}

/* TIMELINE */
.timeline {
    position: relative;
    padding-left: 2rem;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 2px;
    background: linear-gradient(180deg, var(--purple-main), var(--purple-dark), transparent);
}

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

.timeline-dot {
    position: absolute;
    left: -2rem;
    top: 0.5rem;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--purple-main);
    border: 2px solid var(--bg-primary);
    box-shadow: 0 0 10px var(--purple-main);
    transform: translateX(-5px);
}

.timeline-content {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 10px;
    padding: 1.5rem;
    transition: all 0.3s;
}

.timeline-content:hover {
    border-color: var(--purple-main);
    box-shadow: 0 5px 25px rgba(123, 47, 190, 0.15);
    transform: translateX(5px);
}

.timeline-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 0.75rem;
}

.timeline-date {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.75rem;
    color: var(--text-muted);
}

.timeline-badge {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.65rem;
    padding: 2px 8px;
    border-radius: 3px;
    font-weight: 600;
    letter-spacing: 1px;
}

.timeline-badge.current {
    background: rgba(0, 255, 136, 0.15);
    color: var(--green-main);
    border: 1px solid rgba(0, 255, 136, 0.3);
}

.timeline-role {
    font-family: 'Orbitron', sans-serif;
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 0.3rem;
}

.timeline-company {
    font-size: 0.9rem;
    color: var(--purple-light);
    margin-bottom: 1rem;
    font-weight: 500;
}

.timeline-details {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.timeline-details li {
    font-size: 0.85rem;
    color: var(--text-secondary);
    padding-left: 1.2rem;
    position: relative;
    line-height: 1.5;
}

.timeline-details li::before {
    content: '>';
    position: absolute;
    left: 0;
    color: var(--purple-light);
    font-family: 'JetBrains Mono', monospace;
    font-weight: 700;
}

/* SKILLS */
.skills-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
}

.skill-category {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 10px;
    padding: 1.5rem;
    transition: all 0.3s;
    position: relative;
    overflow: hidden;
}

.skill-category::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--purple-main), var(--red-main));
    opacity: 0;
    transition: opacity 0.3s;
}

.skill-category:hover::before {
    opacity: 1;
}

.skill-category:hover {
    border-color: var(--purple-main);
    transform: translateY(-3px);
    box-shadow: 0 8px 30px rgba(123, 47, 190, 0.15);
}

.skill-category-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1.2rem;
}

.skill-icon {
    font-size: 1.5rem;
}

.skill-icon.red { color: var(--red-main); }
.skill-icon.purple { color: var(--purple-light); }
.skill-icon.cyan { color: var(--cyan-main); }
.skill-icon.green { color: var(--green-main); }

.skill-icon-svg {
    display: flex;
    align-items: center;
    justify-content: center;
}

.skill-icon-svg.white { color: #ffffff; }
.skill-icon-svg.red { color: var(--red-main); }
.skill-icon-svg.purple { color: var(--purple-light); }
.skill-icon-svg.cyan { color: var(--cyan-main); }
.skill-icon-svg.green { color: var(--green-main); }

.skill-category h3 {
    font-family: 'Orbitron', sans-serif;
    font-size: 0.9rem;
    font-weight: 700;
    letter-spacing: 1px;
}

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

.skill-tag {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.7rem;
    padding: 4px 10px;
    background: rgba(123, 47, 190, 0.1);
    border: 1px solid var(--border-color);
    border-radius: 4px;
    color: var(--text-secondary);
    transition: all 0.3s;
    cursor: default;
}

.skill-tag:hover {
    background: rgba(123, 47, 190, 0.25);
    border-color: var(--purple-main);
    color: var(--purple-light);
    box-shadow: 0 0 10px rgba(123, 47, 190, 0.2);
}

/* CERTIFICATIONS */
.certs-roadmap {
    margin-bottom: 3rem;
    padding: 1.5rem;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 10px;
}

.roadmap-label {
    font-family: 'Orbitron', sans-serif;
    font-size: 0.7rem;
    color: var(--purple-light);
    letter-spacing: 3px;
    margin-bottom: 1rem;
    text-align: center;
}

.roadmap-track {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0;
    flex-wrap: wrap;
}

.roadmap-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    padding: 0 0.5rem;
}

.roadmap-dot {
    width: 14px;
    height: 14px;
    border-radius: 50%;
    border: 2px solid var(--border-color);
    background: var(--bg-secondary);
    transition: all 0.3s;
}

.roadmap-item.completed .roadmap-dot {
    background: var(--green-main);
    border-color: var(--green-main);
    box-shadow: 0 0 10px rgba(0, 255, 136, 0.4);
}

.roadmap-item.active .roadmap-dot {
    background: var(--red-main);
    border-color: var(--red-main);
    box-shadow: 0 0 10px rgba(255, 0, 64, 0.4);
    animation: glow-pulse-red 2s ease-in-out infinite;
}

.roadmap-item.upcoming .roadmap-dot {
    border-color: var(--text-muted);
    border-style: dashed;
}

@keyframes glow-pulse-red {
    0%, 100% { box-shadow: 0 0 5px rgba(255, 0, 64, 0.3); }
    50% { box-shadow: 0 0 15px rgba(255, 0, 64, 0.7); }
}

.roadmap-item span {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.65rem;
    color: var(--text-muted);
    white-space: nowrap;
}

.roadmap-item.completed span { color: var(--green-main); }
.roadmap-item.active span { color: var(--red-main); font-weight: 600; }
.roadmap-item.upcoming span { color: var(--text-muted); }

.roadmap-line {
    width: 30px;
    height: 2px;
    background: var(--border-color);
    flex-shrink: 0;
}

.roadmap-line.filled {
    background: var(--green-main);
    box-shadow: 0 0 6px rgba(0, 255, 136, 0.3);
}

.certs-section-label {
    font-family: 'Orbitron', sans-serif;
    font-size: 0.7rem;
    color: var(--text-muted);
    letter-spacing: 3px;
    margin-bottom: 1.5rem;
    padding-left: 0.5rem;
    border-left: 3px solid var(--purple-main);
}

.certs-section-label.upcoming-label {
    margin-top: 3rem;
    border-left-color: var(--red-main);
    color: var(--red-main);
}

.certs-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 1rem;
}

.cert-card {
    position: relative;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 10px;
    padding: 1.2rem;
    text-align: center;
    transition: all 0.4s;
    overflow: hidden;
}

.cert-card .cert-glow {
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(123, 47, 190, 0.08) 0%, transparent 50%);
    opacity: 0;
    transition: opacity 0.4s;
    pointer-events: none;
}

.cert-card:hover .cert-glow {
    opacity: 1;
}

.cert-card:hover {
    border-color: var(--purple-main);
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(123, 47, 190, 0.15);
}

.cert-card.featured {
    border-color: var(--purple-main);
    background: linear-gradient(135deg, var(--bg-card) 0%, rgba(123, 47, 190, 0.08) 100%);
}

.cert-card.featured:hover {
    box-shadow: 0 8px 25px rgba(123, 47, 190, 0.25);
}

.cert-logo {
    margin-bottom: 0.8rem;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 52px;
}

.cert-logo svg {
    filter: drop-shadow(0 0 4px currentColor);
}

.cert-card.featured .cert-logo svg {
    filter: drop-shadow(0 0 8px currentColor);
}

.cert-name {
    font-family: 'Orbitron', sans-serif;
    font-size: 0.8rem;
    font-weight: 700;
    margin-bottom: 0.2rem;
}

.cert-org {
    font-size: 0.75rem;
    color: var(--text-muted);
    margin-bottom: 0.3rem;
}

.cert-date {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.65rem;
    color: var(--purple-light);
    display: block;
    margin-bottom: 0.3rem;
}

.cert-badge-row {
    margin-top: 0.3rem;
}

.cert-credential {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.55rem;
    color: var(--text-muted);
    background: rgba(123, 47, 190, 0.1);
    padding: 2px 6px;
    border-radius: 3px;
    letter-spacing: 0.5px;
}

.upcoming-grid {
    grid-template-columns: repeat(auto-fill, minmax(170px, 1fr));
}

.upcoming-card {
    border-style: dashed;
    opacity: 0.7;
}

.upcoming-card:hover {
    opacity: 1;
}

.upcoming-card .cert-logo svg {
    filter: drop-shadow(0 0 3px currentColor) opacity(0.7);
}

.upcoming-date {
    color: var(--red-main) !important;
}

.cert-progress {
    width: 100%;
    height: 3px;
    background: var(--border-color);
    border-radius: 2px;
    margin-top: 0.6rem;
    overflow: hidden;
}

.cert-progress-bar {
    height: 100%;
    background: linear-gradient(90deg, var(--red-main), var(--purple-main));
    border-radius: 2px;
    transition: width 1s ease;
    box-shadow: 0 0 6px rgba(123, 47, 190, 0.5);
}

.goal-card {
    border-color: var(--purple-glow) !important;
    border-style: dashed !important;
    background: linear-gradient(135deg, var(--bg-card) 0%, rgba(199, 125, 255, 0.05) 100%) !important;
}

/* PROJECTS */
.projects-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
}

.project-card {
    position: relative;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.4s;
}

.project-card:hover {
    border-color: var(--purple-main);
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(123, 47, 190, 0.2);
}

.project-bg {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--purple-main), var(--red-main), var(--cyan-main));
}

.project-card.featured-project .project-bg {
    height: 4px;
    background: linear-gradient(90deg, var(--purple-main), var(--red-main));
    box-shadow: 0 2px 15px rgba(123, 47, 190, 0.5);
}

.project-content {
    padding: 1.5rem;
}

.project-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 0.75rem;
}

.project-type {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.65rem;
    color: var(--purple-light);
    letter-spacing: 2px;
    font-weight: 600;
}

.project-status {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.6rem;
    padding: 2px 8px;
    background: rgba(0, 255, 136, 0.15);
    color: var(--green-main);
    border-radius: 3px;
    letter-spacing: 1px;
}

.project-name {
    font-family: 'Orbitron', sans-serif;
    font-size: 1.3rem;
    font-weight: 800;
    margin-bottom: 0.75rem;
}

.project-desc {
    font-size: 0.85rem;
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 1rem;
}

.project-stack {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.project-stack span {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.65rem;
    padding: 3px 8px;
    background: rgba(123, 47, 190, 0.15);
    border: 1px solid var(--border-color);
    border-radius: 3px;
    color: var(--text-muted);
}

.project-links {
    display: flex;
    gap: 1rem;
}

.project-link {
    text-decoration: none;
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.8rem;
    color: var(--purple-light);
    display: flex;
    align-items: center;
    gap: 0.4rem;
    transition: color 0.3s;
}

.project-link:hover {
    color: var(--purple-glow);
}

/* CONTACT */
#contact {
    background: linear-gradient(180deg, var(--bg-primary) 0%, var(--bg-secondary) 100%);
}

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

.contact-terminal .terminal-body {
    transform: none;
    min-height: auto;
}

.contact-link a {
    color: var(--purple-light);
    text-decoration: none;
    transition: color 0.3s;
}

.contact-link a:hover {
    color: var(--purple-glow);
}

.contact-hackthebox {
    display: flex;
    align-items: center;
    justify-content: center;
}

.htb-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 2rem;
    text-align: center;
    width: 100%;
    transition: all 0.4s;
}

.htb-card:hover {
    border-color: var(--purple-main);
    box-shadow: 0 0 30px rgba(123, 47, 190, 0.2);
    transform: scale(1.02);
}

.htb-logo {
    margin-bottom: 1rem;
}

.htb-info h3 {
    font-family: 'Orbitron', sans-serif;
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 0.3rem;
}

.htb-username {
    font-family: 'JetBrains Mono', monospace;
    font-size: 1.2rem;
    color: var(--purple-light);
    font-weight: 700;
    display: block;
    margin-bottom: 1rem;
}

.htb-stats {
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
    font-size: 0.8rem;
    color: var(--text-muted);
}

/* FOOTER */
footer {
    position: relative;
    z-index: 2;
    padding: 3rem 2rem;
    border-top: 1px solid var(--border-color);
    background: var(--bg-secondary);
}

.footer-content {
    max-width: 1100px;
    margin: 0 auto;
    text-align: center;
}

.footer-logo {
    font-family: 'Orbitron', sans-serif;
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.footer-text {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-bottom: 1rem;
}

.footer-divider {
    width: 60px;
    height: 2px;
    background: var(--purple-main);
    margin: 1rem auto;
}

.footer-copy {
    font-size: 0.75rem;
    color: var(--text-muted);
    font-family: 'JetBrains Mono', monospace;
}

/* ANIMATIONS */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

.slide-in-left {
    opacity: 0;
    transform: translateX(-50px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.slide-in-left.visible {
    opacity: 1;
    transform: translateX(0);
}

.slide-in-right {
    opacity: 0;
    transform: translateX(50px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.slide-in-right.visible {
    opacity: 1;
    transform: translateX(0);
}

/* RESPONSIVE */
@media (max-width: 900px) {
    .nav-links { display: none; }
    .nav-toggle { display: flex; }
    .mobile-menu { display: flex; }

    .hero-content {
        grid-template-columns: 1fr;
        gap: 2rem;
        text-align: center;
    }

    .hero-terminal .terminal-body {
        transform: none;
    }

    .hero-name { font-size: 1.8rem; }
    .hero-role { justify-content: center; }
    .hero-tagline { justify-content: center; }
    .hero-cta { justify-content: center; }
    .hero-stats { justify-content: center; }

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

    .about-info {
        grid-template-columns: 1fr 1fr;
    }

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

    .certs-grid {
        grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    }

    .upcoming-grid {
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    }

    .roadmap-track {
        gap: 0;
    }

    .roadmap-line {
        width: 15px;
    }

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

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

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

    #cursor-glow { display: none; }
    #matrix-canvas { opacity: 0.04; }
}

@media (max-width: 600px) {
    .hero-name { font-size: 1.3rem; letter-spacing: 1px; }
    .hero-stats { flex-direction: column; align-items: center; }
    .about-info { grid-template-columns: 1fr; }
    .section-header { flex-wrap: wrap; }
    .section-line { display: none; }
    section { padding: 3rem 1rem; }

    .hero-terminal .terminal-body {
        transform: none;
        font-size: 0.7rem;
        padding: 1rem;
    }

    .hero-role {
        gap: 0.4rem;
    }

    .role-tag {
        font-size: 0.65rem;
        padding: 3px 8px;
        letter-spacing: 1px;
    }

    .role-divider {
        font-size: 0.8rem;
    }

    .hero-tagline {
        font-size: 0.8rem;
        gap: 0.4rem;
    }

    .hero-cta {
        flex-direction: column;
        align-items: center;
    }

    .cta-btn {
        width: 100%;
        justify-content: center;
        max-width: 260px;
    }

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

    .cert-card {
        padding: 0.8rem;
    }

    .cert-logo svg {
        width: 40px;
        height: 40px;
    }

    .cert-name {
        font-size: 0.65rem;
    }

    .cert-org {
        font-size: 0.6rem;
    }

    .cert-date {
        font-size: 0.55rem;
    }

    .cert-credential {
        font-size: 0.5rem;
    }

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

    .certs-roadmap {
        padding: 1rem 0.5rem;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }

    .roadmap-track {
        min-width: 400px;
        justify-content: flex-start;
        padding: 0 0.5rem;
    }

    .roadmap-item span {
        font-size: 0.55rem;
    }

    .roadmap-line {
        width: 10px;
    }

    .terminal-output {
        font-size: 0.72rem;
    }

    .timeline-role {
        font-size: 0.9rem;
    }

    .timeline-company {
        font-size: 0.8rem;
    }

    .timeline-details li {
        font-size: 0.78rem;
    }

    .skill-tag {
        font-size: 0.6rem;
        padding: 3px 7px;
    }

    .project-name {
        font-size: 1rem;
    }

    .project-desc {
        font-size: 0.78rem;
    }

    .section-title {
        font-size: 1.2rem;
        letter-spacing: 2px;
    }

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

    .stat-card {
        padding: 0.7rem 1rem;
    }

    .stat-number {
        font-size: 1.5rem;
    }

    .stat-label {
        font-size: 0.6rem;
    }

    .htb-card {
        padding: 1.5rem;
    }

    footer {
        padding: 2rem 1rem;
    }
}

/* Scanline effect */
#hero::after {
    content: '';
    position: absolute;
    inset: 0;
    background: repeating-linear-gradient(
        0deg,
        rgba(0, 0, 0, 0.1) 0px,
        rgba(0, 0, 0, 0.1) 1px,
        transparent 1px,
        transparent 3px
    );
    pointer-events: none;
    opacity: 0.3;
    z-index: 3;
}

/* Glowing border animation for featured cards */
@keyframes glow-pulse {
    0%, 100% { box-shadow: 0 0 5px rgba(123, 47, 190, 0.2); }
    50% { box-shadow: 0 0 15px rgba(123, 47, 190, 0.4); }
}

.cert-card.featured {
    animation: glow-pulse 4s ease-in-out infinite;
}

/* Project link GitHub icon */
.project-link svg {
    opacity: 0.7;
    transition: opacity 0.3s;
}

.project-link:hover svg {
    opacity: 1;
}

/* ========================================
   CYBER VOXEL GAME (Background 3D World)
   ======================================== */

#game-container {
    position: fixed;
    inset: 0;
    z-index: 0;
    pointer-events: none;
}

#game-canvas {
    width: 100vw;
    height: 100vh;
    display: block;
}

#game-canvas.active {
    pointer-events: auto;
}

#game-ui {
    position: fixed;
    inset: 0;
    z-index: 999;
    pointer-events: none;
    display: none;
}

#game-ui.visible {
    display: block;
}

#crosshair {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 24px;
    color: rgba(255, 255, 255, 0.7);
    text-shadow: 0 0 6px rgba(157, 78, 221, 0.8);
    pointer-events: none;
    z-index: 1001;
    font-family: 'JetBrains Mono', monospace;
    font-weight: 100;
}

#hotbar {
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 4px;
    background: rgba(10, 10, 15, 0.85);
    border: 1px solid rgba(123, 47, 190, 0.4);
    border-radius: 8px;
    padding: 6px;
    backdrop-filter: blur(10px);
    pointer-events: none;
}

.hotbar-slot {
    width: 48px;
    height: 48px;
    background: rgba(20, 20, 30, 0.8);
    border: 2px solid rgba(123, 47, 190, 0.2);
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    transition: all 0.2s;
}

.hotbar-slot.active {
    border-color: var(--purple-main);
    box-shadow: 0 0 10px rgba(123, 47, 190, 0.5), inset 0 0 10px rgba(123, 47, 190, 0.1);
}

.block-preview {
    width: 28px;
    height: 28px;
    border-radius: 4px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.slot-key {
    position: absolute;
    bottom: 1px;
    right: 3px;
    font-family: 'JetBrains Mono', monospace;
    font-size: 9px;
    color: rgba(255, 255, 255, 0.3);
}

#game-controls {
    position: fixed;
    bottom: 82px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 12px;
    font-family: 'JetBrains Mono', monospace;
    font-size: 10px;
    color: rgba(255, 255, 255, 0.35);
    letter-spacing: 0.5px;
    pointer-events: none;
    white-space: nowrap;
}

#game-overlay {
    position: fixed;
    inset: 0;
    background: rgba(10, 10, 15, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.3s;
}

#game-overlay.visible {
    opacity: 1;
    pointer-events: auto;
}

.overlay-content {
    text-align: center;
    padding: 3rem;
    border: 1px solid rgba(123, 47, 190, 0.3);
    border-radius: 12px;
    background: rgba(10, 10, 15, 0.9);
    backdrop-filter: blur(20px);
}

.overlay-content h2 {
    font-family: 'Orbitron', sans-serif;
    font-size: 2rem;
    color: var(--purple-light);
    margin-bottom: 1rem;
    text-shadow: 0 0 20px rgba(123, 47, 190, 0.5);
}

.overlay-content p {
    color: var(--text-secondary);
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.85rem;
}

.overlay-content .small {
    font-size: 0.7rem;
    color: var(--text-muted);
    margin-top: 0.8rem;
}

/* Game active state - content needs higher z-index */
body.game-active #main-content,
body.game-active nav,
body.game-active footer {
    position: relative;
    z-index: 100;
}

/* Game toggle button */
#game-toggle {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 1001;
    background: rgba(10, 10, 15, 0.8);
    border: 1px solid rgba(123, 47, 190, 0.4);
    border-radius: 8px;
    padding: 8px 14px;
    color: var(--purple-light);
    font-family: 'JetBrains Mono', monospace;
    font-size: 11px;
    cursor: pointer;
    backdrop-filter: blur(10px);
    transition: all 0.3s;
    letter-spacing: 1px;
}

#game-toggle:hover {
    border-color: var(--purple-main);
    box-shadow: 0 0 15px rgba(123, 47, 190, 0.3);
    color: var(--purple-glow);
}
