/* ===== RESET & BASE ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Light mode is default */
:root {
    --neon-cyan: #0094a8;
    --neon-magenta: #c4008a;
    --neon-purple: #8400b8;
    --neon-green: #1a8a00;
    --neon-orange: #d45800;
    --neon-gold: #b8860b;
    --bg-dark: #f4f4f8;
    --bg-card: rgba(255, 255, 255, 0.85);
    --glass-border: rgba(0, 0, 0, 0.08);
    --text-primary: #1a1a2e;
    --text-dim: #5a5a70;
}

/* ===== DARK MODE ===== */
[data-theme="dark"] {
    --neon-cyan: #00f0ff;
    --neon-magenta: #ff00e5;
    --neon-purple: #b400ff;
    --neon-green: #39ff14;
    --neon-orange: #ff6a00;
    --neon-gold: #ffd700;
    --bg-dark: #0a0a0f;
    --bg-card: rgba(15, 15, 30, 0.7);
    --glass-border: rgba(255, 255, 255, 0.08);
    --text-primary: #e0e0e8;
    --text-dim: #7a7a8e;
}

html {
    scroll-behavior: smooth;
}

body {
    background-color: var(--bg-dark);
    color: var(--text-primary);
    font-family: 'Rajdhani', sans-serif;
    font-weight: 400;
    line-height: 1.6;
    min-height: 100vh;
    overflow-x: hidden;
}

/* Background grid — dark mode only */
body::before {
    content: '';
    position: fixed;
    inset: 0;
    background:
        linear-gradient(rgba(0, 240, 255, 0.02) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0, 240, 255, 0.02) 1px, transparent 1px);
    background-size: 60px 60px;
    z-index: -2;
    display: none;
}

/* Ambient glow — dark mode only */
body::after {
    content: '';
    position: fixed;
    top: -30%;
    left: -10%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(180, 0, 255, 0.08) 0%, transparent 70%);
    border-radius: 50%;
    z-index: -1;
    display: none;
}

[data-theme="dark"] body::before,
[data-theme="dark"] body::after {
    display: block;
}

/* ===== PAGE FADE-IN ===== */
@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(16px); }
    to { opacity: 1; transform: translateY(0); }
}

.wrapper {
    max-width: 720px;
    margin: 0 auto;
    padding: 40px 30px;
    position: relative;
    animation: fadeInUp 0.5s ease-out;
}

/* ===== NAV ===== */
.nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--glass-border);
    margin-bottom: 40px;
}

.nav-logo {
    font-family: 'Orbitron', sans-serif;
    font-weight: 900;
    font-size: 1.4rem;
    letter-spacing: 2px;
    color: var(--neon-cyan) !important;
    border: none !important;
}

.nav-logo:hover {
    border: none !important;
}

.nav-links {
    display: flex;
    gap: 28px;
    flex-wrap: wrap;
    padding-right: 50px;
}

.nav-links a {
    font-family: 'Rajdhani', sans-serif;
    font-weight: 600;
    font-size: 15px;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: var(--text-dim);
    transition: color 0.3s ease;
    border: none !important;
}

.nav-links a:hover {
    color: var(--neon-cyan);
    border: none !important;
}

/* ===== TOGGLE BUTTONS (shared) ===== */
.theme-toggle,
.fx-toggle {
    position: fixed;
    right: 20px;
    z-index: 10000;
    background: var(--bg-card);
    border: 2px solid var(--neon-gold);
    border-radius: 8px;
    padding: 10px 12px;
    cursor: pointer;
    color: var(--neon-gold);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    line-height: 1;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.theme-toggle { top: 20px; }
.fx-toggle { top: 72px; }

.theme-toggle:hover {
    border-color: var(--neon-gold);
    box-shadow: 0 0 15px rgba(255, 215, 0, 0.2);
}

/* FX toggle — matches theme toggle colors by default */
.fx-toggle:hover {
    box-shadow: 0 0 15px rgba(255, 215, 0, 0.2);
}

.fx-toggle .icon-flipper {
    width: 26px;
    height: 26px;
}

.fx-toggle .icon-front,
.fx-toggle .icon-back {
    width: 26px;
    height: 26px;
}

/* Spin only when effects are on */
.fx-on .fx-toggle .icon-flipper {
    animation: iconSpin 1.2s linear infinite;
}

/* Temporary green/red flash on click */
.fx-toggle.fx-flash-on {
    border-color: #22aa00 !important;
    color: #22aa00 !important;
    box-shadow: 0 0 12px rgba(34, 170, 0, 0.3);
}

.fx-toggle.fx-flash-off {
    border-color: #cc2200 !important;
    color: #cc2200 !important;
    box-shadow: 0 0 12px rgba(204, 34, 0, 0.3);
}

[data-theme="dark"] .fx-toggle.fx-flash-on {
    border-color: #39ff14 !important;
    color: #39ff14 !important;
    box-shadow: 0 0 12px rgba(57, 255, 20, 0.3);
}

[data-theme="dark"] .fx-toggle.fx-flash-off {
    border-color: #ff3322 !important;
    color: #ff3322 !important;
    box-shadow: 0 0 12px rgba(255, 51, 34, 0.3);
}

/* Dark mode default — purple border like theme toggle */
[data-theme="dark"] .fx-toggle {
    border-color: var(--neon-purple);
    color: var(--neon-purple);
}

[data-theme="dark"] .fx-toggle:hover {
    box-shadow: 0 0 15px rgba(180, 0, 255, 0.2);
}

/* Effects canvas */
#fxCanvas {
    position: fixed;
    inset: 0;
    z-index: -1;
    pointer-events: none;
}

/* Icon flip system */
.icon-flipper {
    position: relative;
    width: 28px;
    height: 28px;
    transform-style: preserve-3d;
    -webkit-transform-style: preserve-3d;
}

.icon-flipper .icon-front,
.icon-flipper .icon-back {
    position: absolute;
    top: 0;
    left: 0;
    width: 28px;
    height: 28px;
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
}

.icon-flipper .icon-back {
    transform: rotateY(180deg);
}

.theme-toggle:hover .icon-flipper {
    animation: iconSpin 1.2s linear infinite;
}

@keyframes iconSpin {
    from { transform: perspective(200px) rotateY(0deg); }
    to { transform: perspective(200px) rotateY(360deg); }
}

/* In light mode (default): show star, hide ghost */
.theme-toggle .icon-star { display: block; }
.theme-toggle .icon-ghost { display: none; }

/* In dark mode: show ghost, hide star */
[data-theme="dark"] .theme-toggle .icon-star { display: none; }
[data-theme="dark"] .theme-toggle .icon-ghost { display: block; }
[data-theme="dark"] .theme-toggle {
    color: var(--neon-purple);
    border-color: var(--neon-purple);
}
[data-theme="dark"] .theme-toggle:hover {
    border-color: var(--neon-purple);
    box-shadow: 0 0 15px rgba(180, 0, 255, 0.2);
}

/* ===== HERO ===== */
.hero {
    text-align: center;
    padding: 50px 0 60px;
}

.hero-name {
    font-family: 'Orbitron', sans-serif;
    font-weight: 900;
    font-size: 2.8rem;
    letter-spacing: 3px;
    background: linear-gradient(135deg, var(--neon-cyan), var(--neon-magenta));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 8px;
}

[data-theme="dark"] .hero-name {
    filter: drop-shadow(0 0 20px rgba(0, 240, 255, 0.3));
}

.hero-title {
    font-family: 'Rajdhani', sans-serif;
    font-weight: 500;
    font-size: 1.2rem;
    color: var(--text-dim);
    letter-spacing: 3px;
    text-transform: uppercase;
    margin-bottom: 24px;
}

.hero-socials {
    display: flex;
    justify-content: center;
    gap: 14px;
}

.hero-socials a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    border: 1px solid rgba(0, 240, 255, 0.15);
    border-radius: 50%;
    background: var(--bg-card);
    transition: all 0.3s ease;
}

.hero-socials a:hover {
    border-color: var(--neon-cyan);
    box-shadow: 0 0 15px rgba(0, 240, 255, 0.2);
    transform: translateY(-2px);
}

.hero-socials svg {
    width: 18px;
    height: 18px;
    fill: var(--text-dim);
    transition: all 0.3s ease;
}

.hero-socials a:hover svg {
    fill: var(--neon-cyan);
}

/* ===== HEADINGS ===== */
h1 {
    font-family: 'Orbitron', sans-serif;
    font-weight: 700;
    margin: 0 0 5px 0;
    background: linear-gradient(135deg, var(--neon-cyan), var(--neon-purple));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

[data-theme="dark"] h1 {
    filter: drop-shadow(0 0 12px rgba(0, 240, 255, 0.2));
}

h2 {
    font-family: 'Orbitron', sans-serif;
    font-weight: 700;
    font-size: 1.2rem;
    letter-spacing: 1px;
    color: var(--neon-magenta);
    margin: 40px 0 20px;
}

h3 {
    font-family: 'Orbitron', sans-serif;
    font-weight: 700;
    font-size: 0.9rem;
    letter-spacing: 1px;
    color: var(--neon-cyan);
    margin-bottom: 12px;
}

/* ===== LINKS ===== */
a {
    text-decoration: none !important;
    font-family: 'Rajdhani', sans-serif;
    font-weight: 600;
    font-size: 17px;
    color: var(--text-primary);
    padding-bottom: 1px;
    transition: all 0.3s ease;
}

a:hover {
    color: var(--neon-cyan);
    text-decoration: none !important;
    padding-bottom: 1px;
    border-bottom: 1px solid var(--neon-cyan);
}

ul {
    list-style-type: none;
    display: flex;
    margin: 0;
    padding: 0;
    gap: 10px;
    flex-wrap: wrap;
}

/* ===== SECTION TITLES ===== */
.section-title {
    font-family: 'Orbitron', sans-serif;
    font-weight: 700;
    font-size: 0.9rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--text-dim);
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 1px solid var(--glass-border);
}

/* ===== BIO TEXT ===== */
.bio-text {
    font-size: 17px;
    line-height: 1.8;
    margin-bottom: 20px;
}

/* ===== SKILLS GRID ===== */
.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 12px;
    margin-bottom: 20px;
}

.skill-card-wrapper {
    perspective: 600px;
}

.skill-card {
    position: relative;
    min-height: 100px;
    transform-style: preserve-3d;
    -webkit-transform-style: preserve-3d;
    transition: transform 0.5s ease;
}

.skill-card-wrapper.flipped .skill-card {
    transform: rotateY(180deg);
}

.skill-front,
.skill-back {
    position: absolute;
    inset: 0;
    padding: 14px;
    background: var(--bg-card);
    border: 1px solid var(--glass-border);
    border-radius: 8px;
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
}

.skill-back {
    transform: rotateY(180deg);
    display: flex;
    flex-direction: column;
    justify-content: center;
    border-color: var(--neon-cyan);
}

.skill-back p {
    font-size: 13px;
    line-height: 1.5;
    color: var(--text-primary);
}

.skill-card-wrapper {
    cursor: pointer;
}

.skill-card h3 {
    font-size: 0.7rem;
    margin-bottom: 8px;
}

.skill-card .skill-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
}

.skill-tag {
    font-family: 'Rajdhani', sans-serif;
    font-size: 13px;
    font-weight: 500;
    color: var(--text-primary);
    padding: 2px 9px;
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    background: rgba(0, 240, 255, 0.03);
}

/* ===== TIMELINE ===== */
.timeline {
    position: relative;
    padding-left: 28px;
    margin-bottom: 40px;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 7px;
    top: 0;
    bottom: 0;
    width: 2px;
    background: linear-gradient(to bottom, var(--neon-cyan), var(--neon-purple), rgba(180, 0, 255, 0.2));
    border-radius: 1px;
}

.timeline-item {
    position: relative;
    margin-bottom: 24px;
    padding: 16px 18px;
    background: var(--bg-card);
    border: 1px solid var(--glass-border);
    border-radius: 8px;
    transition: border-color 0.3s ease;
}

.timeline-item:hover {
    border-color: rgba(0, 240, 255, 0.12);
}

.timeline-item::before {
    content: '';
    position: absolute;
    left: -25px;
    top: 20px;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--bg-dark);
    border: 2px solid var(--neon-cyan);
}

[data-theme="dark"] .timeline-item::before {
    box-shadow: 0 0 6px rgba(0, 240, 255, 0.3);
}

.timeline-item .role {
    font-family: 'Orbitron', sans-serif;
    font-weight: 700;
    font-size: 0.8rem;
    color: var(--neon-cyan);
    letter-spacing: 1px;
    margin-bottom: 2px;
}

.timeline-item .company {
    font-family: 'Rajdhani', sans-serif;
    font-weight: 600;
    font-size: 1rem;
    color: var(--text-primary);
}

.timeline-item .period {
    font-family: 'Orbitron', sans-serif;
    font-size: 0.6rem;
    color: var(--text-dim);
    letter-spacing: 1px;
    margin-bottom: 10px;
}

.timeline-item .details {
    list-style: none;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.timeline-item .details li {
    font-size: 14px;
    color: var(--text-primary);
    padding-left: 14px;
    position: relative;
    line-height: 1.5;
}

.timeline-item .details li::before {
    content: '>';
    position: absolute;
    left: 0;
    color: var(--neon-purple);
    font-family: 'Orbitron', sans-serif;
    font-size: 10px;
    font-weight: 700;
}

/* ===== EDUCATION ===== */
.education-card {
    padding: 18px;
    background: var(--bg-card);
    border: 1px solid var(--glass-border);
    border-left: 3px solid var(--neon-gold);
    border-radius: 8px;
    margin-bottom: 20px;
}

.education-card .degree {
    font-family: 'Orbitron', sans-serif;
    font-weight: 700;
    font-size: 0.75rem;
    color: var(--neon-gold);
    letter-spacing: 1px;
}

.education-card .school {
    font-size: 15px;
    color: var(--text-primary);
    margin-top: 3px;
}

.education-card .honor {
    font-size: 13px;
    color: var(--neon-green);
    margin-top: 3px;
}

/* ===== CTA BUTTON ===== */
.cta-button {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-top: 10px;
    padding: 12px 28px;
    font-family: 'Orbitron', sans-serif;
    font-weight: 700;
    font-size: 0.8rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--bg-dark);
    background: linear-gradient(135deg, var(--neon-cyan), var(--neon-green));
    border: none;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none !important;
}

.cta-button:hover {
    box-shadow: 0 0 25px rgba(0, 240, 255, 0.3);
    transform: translateY(-2px);
    color: var(--bg-dark);
    border-bottom: none;
    text-shadow: none;
}

/* Dark mode glow effects */
[data-theme="dark"] .nav-links a:hover {
    text-shadow: 0 0 8px rgba(0, 240, 255, 0.3);
}

[data-theme="dark"] .nav-logo:hover {
    text-shadow: 0 0 12px rgba(0, 240, 255, 0.4);
}

[data-theme="dark"] .game-over-title {
    text-shadow: 0 0 20px rgba(255, 0, 229, 0.5), 0 0 40px rgba(255, 0, 229, 0.3);
}

[data-theme="dark"] .game-over-code {
    filter: drop-shadow(0 0 25px rgba(180, 0, 255, 0.3));
}

[data-theme="dark"] .game-over-continue {
    text-shadow: 0 0 8px rgba(57, 255, 20, 0.3);
}

[data-theme="dark"] .coin-insert {
    text-shadow: 0 0 6px rgba(255, 215, 0, 0.3);
}

/* ===== JELLY / NAV BUTTONS (blog, consult, subpages) ===== */
.jelly-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    text-decoration: none;
    padding: 8px 16px;
    border: 1px solid rgba(0, 240, 255, 0.25);
    border-radius: 6px;
    background: var(--bg-card);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.jelly-button:hover {
    border-color: var(--neon-cyan);
    box-shadow: 0 0 12px rgba(0, 240, 255, 0.15);
    transform: translateY(-2px);
    border-bottom: 1px solid var(--neon-cyan);
}

.jelly-button svg {
    width: 16px;
    height: 16px;
    fill: var(--text-primary);
    transition: all 0.3s ease;
    flex-shrink: 0;
}

.jelly-button:hover svg {
    fill: var(--neon-cyan);
}

.jelly-text {
    font-family: 'Orbitron', sans-serif;
    font-weight: 700;
    font-size: 12px;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: var(--text-primary);
    transition: color 0.3s ease;
}

.jelly-button:hover .jelly-text {
    color: var(--neon-cyan);
}

/* ===== BACK LINK (subpages) ===== */
.back-link,
.wrapper > a:first-child {
    display: inline-flex;
    align-items: center;
    font-family: 'Orbitron', sans-serif;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 1px;
    color: var(--neon-cyan);
    text-transform: uppercase;
    margin-bottom: 20px;
    padding: 6px 14px;
    border: 1px solid rgba(0, 240, 255, 0.2);
    border-radius: 4px;
    background: var(--bg-card);
    transition: all 0.3s ease;
}

.back-link:hover,
.wrapper > a:first-child:hover {
    border-color: var(--neon-cyan);
    box-shadow: 0 0 10px rgba(0, 240, 255, 0.15);
    border-bottom: 1px solid var(--neon-cyan);
}

/* ===== POST CONTENT PAGES ===== */
.postTitle {
    font-family: 'Orbitron', sans-serif;
    font-weight: 900;
    font-size: 1.8rem;
    letter-spacing: 2px;
    background: linear-gradient(135deg, var(--neon-cyan), var(--neon-magenta));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin: 0;
}

.postDate {
    font-family: 'Orbitron', sans-serif;
    font-size: 12px;
    color: var(--text-dim);
    letter-spacing: 1px;
}

.postDate p { margin: 0; }

.postMeta { margin-bottom: 10px; }

.readingTime {
    font-size: 13px;
    color: var(--neon-purple);
    font-weight: 500;
}

.postContent {
    padding-top: 20px;
    font-size: 17px;
    line-height: 1.8;
}

.postContent p { margin-bottom: 16px; }

.postContent strong {
    color: var(--neon-cyan);
    font-weight: 600;
}

.postContent h4 {
    font-family: 'Orbitron', sans-serif;
    font-size: 14px;
    color: var(--neon-magenta);
    letter-spacing: 1px;
    margin: 24px 0 12px;
}

.postContent ol {
    display: flex;
    flex-direction: column;
    gap: 6px;
    padding-left: 20px;
    list-style: decimal;
}

.postContent ol li {
    color: var(--text-primary);
    font-size: 16px;
}

/* ===== BLOG / POSTS LIST ===== */
.blog { padding-bottom: 20px; }
.postList { list-style: none; padding: 0; }
.postItem { padding: 0; }

.postItem ol {
    list-style: none;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.postItem ol li {
    padding: 12px 16px;
    background: var(--bg-card);
    border: 1px solid var(--glass-border);
    border-left: 3px solid var(--neon-purple);
    border-radius: 6px;
    transition: all 0.3s ease;
}

.postItem ol li:hover {
    border-left-color: var(--neon-cyan);
    transform: translateX(3px);
}

.postItem ol li a {
    color: var(--text-primary);
    font-size: 16px;
    font-weight: 500;
}

.postItem ol li a:hover {
    color: var(--neon-cyan);
    border-bottom: none;
}

.date {
    font-family: 'Orbitron', sans-serif;
    font-size: 11px;
    color: var(--text-dim);
    letter-spacing: 1px;
}

/* ===== BLOG HUB ===== */
.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 14px;
    margin-bottom: 24px;
}

.blog-card {
    display: block;
    padding: 20px 18px;
    background: var(--bg-card);
    border: 1px solid var(--glass-border);
    border-radius: 8px;
    transition: all 0.3s ease;
}

.blog-card:hover {
    border-color: rgba(0, 240, 255, 0.15);
    transform: translateY(-2px);
    border-bottom: 1px solid rgba(0, 240, 255, 0.15);
}

.blog-card .card-icon {
    font-size: 24px;
    margin-bottom: 10px;
    display: block;
}

.blog-card .card-title {
    font-family: 'Orbitron', sans-serif;
    font-weight: 700;
    font-size: 0.8rem;
    letter-spacing: 1px;
    color: var(--neon-cyan);
    margin-bottom: 6px;
    -webkit-text-fill-color: initial;
}

.blog-card .card-desc {
    font-size: 14px;
    color: var(--text-dim);
    line-height: 1.5;
}

.blog-card.accent-purple { border-left: 3px solid var(--neon-purple); }
.blog-card.accent-green { border-left: 3px solid var(--neon-green); }
.blog-card.accent-cyan { border-left: 3px solid var(--neon-cyan); }
.blog-card.accent-magenta { border-left: 3px solid var(--neon-magenta); }
.blog-card.accent-orange { border-left: 3px solid var(--neon-orange); }
.blog-card.accent-gold { border-left: 3px solid var(--neon-gold); }

/* ===== CONSULT / POWER-UP CARDS ===== */
.consult-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 14px;
    margin-bottom: 24px;
}

.power-card {
    padding: 22px 18px;
    background: var(--bg-card);
    border: 1px solid var(--glass-border);
    border-radius: 8px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    text-align: center;
}

.power-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 3px;
}

.power-card.tier-free::before { background: linear-gradient(90deg, var(--neon-green), var(--neon-cyan)); }
.power-card.tier-ai::before { background: linear-gradient(90deg, var(--neon-cyan), var(--neon-purple)); }
.power-card.tier-security::before { background: linear-gradient(90deg, var(--neon-magenta), var(--neon-orange)); }
.power-card.tier-mentor::before { background: linear-gradient(90deg, var(--neon-gold), var(--neon-green)); }

.power-card:hover {
    border-color: rgba(0, 240, 255, 0.15);
    transform: translateY(-2px);
}

.power-card .power-icon { font-size: 32px; margin-bottom: 10px; display: block; }

.power-card .power-name {
    font-family: 'Orbitron', sans-serif;
    font-weight: 700;
    font-size: 0.75rem;
    letter-spacing: 1px;
    color: var(--neon-cyan);
    margin-bottom: 4px;
}

.power-card .power-label {
    font-family: 'Press Start 2P', cursive;
    font-size: 8px;
    letter-spacing: 1px;
    margin-bottom: 10px;
    display: inline-block;
    padding: 3px 10px;
    border-radius: 20px;
}

.power-card.tier-free .power-label { color: var(--neon-green); border: 1px solid rgba(57, 255, 20, 0.3); }
.power-card.tier-ai .power-label { color: var(--neon-purple); border: 1px solid rgba(180, 0, 255, 0.3); }
.power-card.tier-security .power-label { color: var(--neon-magenta); border: 1px solid rgba(255, 0, 229, 0.3); }
.power-card.tier-mentor .power-label { color: var(--neon-gold); border: 1px solid rgba(255, 215, 0, 0.3); }

.power-card .power-desc {
    font-size: 14px;
    color: var(--text-dim);
    line-height: 1.6;
}

.power-card .power-desc ul {
    display: flex;
    flex-direction: column;
    gap: 4px;
    text-align: left;
    padding-left: 0;
    margin-top: 8px;
}

.power-card .power-desc li {
    font-size: 13px;
    color: var(--text-primary);
    padding-left: 16px;
    position: relative;
}

.power-card .power-desc li::before {
    content: '+';
    position: absolute;
    left: 0;
    color: var(--neon-green);
    font-weight: 700;
}

/* ===== 404 PAGE ===== */
.game-over {
    text-align: center;
    padding: 80px 20px;
}

.game-over-title {
    font-family: 'Press Start 2P', cursive;
    font-size: 3rem;
    color: var(--neon-magenta);
    margin-bottom: 20px;
}

.game-over-code {
    font-family: 'Orbitron', sans-serif;
    font-size: 8rem;
    font-weight: 900;
    background: linear-gradient(135deg, var(--neon-purple), var(--neon-magenta));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1;
    margin-bottom: 20px;
}

.game-over-sub {
    font-family: 'Press Start 2P', cursive;
    font-size: 0.7rem;
    color: var(--text-dim);
    margin-bottom: 10px;
    letter-spacing: 1px;
}

.game-over-continue {
    font-family: 'Press Start 2P', cursive;
    font-size: 0.8rem;
    color: var(--neon-green);
    margin-top: 30px;
}

.game-over-continue a {
    color: var(--neon-cyan);
    font-family: 'Press Start 2P', cursive;
    font-size: 0.8rem;
}

.coin-insert {
    font-family: 'Press Start 2P', cursive;
    font-size: 0.6rem;
    color: var(--neon-gold);
    margin-top: 40px;
    animation: blink 1.5s step-end infinite;
}

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

/* ===== ABOUT PAGE (standalone) ===== */
.wrapper > p {
    font-size: 17px;
    line-height: 1.8;
    margin-bottom: 16px;
}

/* ===== FOOTER ===== */
.footer {
    margin-top: 60px;
    padding-top: 20px;
    border-top: 1px solid var(--glass-border);
}

.copyright {
    font-family: 'Orbitron', sans-serif;
    font-size: 11px;
    color: var(--text-dim);
    letter-spacing: 1px;
}

/* ===== SCANLINE OVERLAY ===== */
.scanlines {
    position: fixed;
    inset: 0;
    background: repeating-linear-gradient(
        0deg,
        transparent,
        transparent 2px,
        rgba(0, 0, 0, 0.02) 2px,
        rgba(0, 0, 0, 0.02) 4px
    );
    pointer-events: none;
    z-index: 999;
    display: none;
}

[data-theme="dark"] .scanlines {
    display: block;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 600px) {
    .nav {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }

    .nav-links { gap: 16px; }

    .hero-name { font-size: 1.8rem; }
    .hero-title { font-size: 1rem; }

    .wrapper { padding: 30px 20px; }

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

    .game-over-title { font-size: 1.5rem; }
    .game-over-code { font-size: 5rem; }
}

/* ===== SELECTION ===== */
::selection {
    background: rgba(0, 240, 255, 0.25);
    color: #fff;
}

/* ===== SCROLLBAR ===== */
::-webkit-scrollbar { width: 5px; }
::-webkit-scrollbar-track { background: var(--bg-dark); }
::-webkit-scrollbar-thumb { background: rgba(0, 240, 255, 0.2); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: rgba(0, 240, 255, 0.4); }
