/* ── CYBERPUNK DESIGN SYSTEM ── */
:root {
    --bg-dark: #0a0404;
    --bg-deep: #040101;
    --card-bg: rgba(23, 13, 13, 0.45);
    --card-border: rgba(53, 30, 30, 0.5);
    --card-hover-border: rgba(255, 0, 60, 0.4);
    
    --blue: #ff003c; /* Neon Crimson Red (Primary Accent) */
    --blue-rgb: 255, 0, 60;
    --green: #ff5500; /* Neon Orange-Red (Secondary) */
    --green-rgb: 255, 85, 0;
    --purple: #ff2a2a; /* Bright Red (Tertiary) */
    --purple-rgb: 255, 42, 42;
    
    --text-primary: #f8fafc;
    --text-secondary: #cbd5e1;
    --text-muted: #64748b;
    
    --font-primary: 'Plus Jakarta Sans', sans-serif;
    --font-mono: 'Share Tech Mono', monospace;
    --font-header: 'Orbitron', sans-serif;
}

/* ── BASE RESET ── */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    overflow-x: hidden;
}

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

/* Scanline Effect */
body::after {
    content: '';
    position: fixed;
    inset: 0;
    z-index: 9999;
    pointer-events: none;
    background: repeating-linear-gradient(
        0deg,
        transparent,
        transparent 2px,
        rgba(0, 229, 255, 0.015) 2px,
        rgba(0, 229, 255, 0.015) 4px
    );
}

/* ── SCROLLBAR ── */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: var(--bg-deep);
}
::-webkit-scrollbar-thumb {
    background: rgba(30, 30, 53, 0.8);
    border-radius: 4px;
    border: 1px solid rgba(0, 229, 255, 0.1);
}
::-webkit-scrollbar-thumb:hover {
    background: var(--blue);
    box-shadow: 0 0 10px var(--blue);
}

/* ── CUSTOM CURSOR ── */
.cursor-dot {
    width: 6px;
    height: 6px;
    background-color: var(--blue);
    position: fixed;
    border-radius: 50%;
    z-index: 10000;
    pointer-events: none;
    transform: translate(-50%, -50%);
    box-shadow: 0 0 10px var(--blue), 0 0 20px var(--blue);
    transition: width 0.2s, height 0.2s, background-color 0.2s;
}
.cursor-ring {
    width: 26px;
    height: 26px;
    border: 1px solid var(--blue);
    position: fixed;
    border-radius: 50%;
    z-index: 9999;
    pointer-events: none;
    transform: translate(-50%, -50%);
    transition: transform 0.08s ease-out, border-color 0.2s, width 0.2s, height 0.2s;
    box-shadow: 0 0 5px rgba(0, 229, 255, 0.15);
}

/* Hover States for Custom Cursor */
.hovering .cursor-dot {
    background-color: var(--green);
    width: 8px;
    height: 8px;
    box-shadow: 0 0 12px var(--green);
}
.hovering .cursor-ring {
    border-color: var(--green);
    width: 38px;
    height: 38px;
    box-shadow: 0 0 8px rgba(57, 255, 20, 0.3);
}

/* ── INTERACTIVE BACKGROUNDS ── */
#bg-canvas {
    position: fixed;
    inset: 0;
    z-index: 0;
    pointer-events: none;
}

.ambient-glow {
    position: fixed;
    border-radius: 50%;
    filter: blur(120px);
    z-index: 1;
    pointer-events: none;
    opacity: 0.25;
    will-change: transform;
}
.glow-1 {
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(0, 229, 255, 0.6) 0%, transparent 70%);
    top: 10%;
    left: -100px;
    animation: float-glow 20s infinite alternate;
}
.glow-2 {
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(176, 38, 255, 0.55) 0%, transparent 70%);
    bottom: 5%;
    right: -150px;
    animation: float-glow 25s infinite alternate-reverse;
}
.glow-3 {
    width: 350px;
    height: 350px;
    background: radial-gradient(circle, rgba(57, 255, 20, 0.4) 0%, transparent 70%);
    top: 50%;
    left: 45%;
    animation: float-glow 18s infinite alternate 2s;
}

@keyframes float-glow {
    0% { transform: translate(0, 0) scale(1); }
    100% { transform: translate(80px, 60px) scale(1.15); }
}

/* ── HEADER / NAVIGATION ── */
header#main-nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: 1.25rem 4rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: rgba(5, 5, 8, 0.6);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--card-border);
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), background 0.3s;
}

header#main-nav.hidden {
    transform: translateY(-100%);
}

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

.glitch-logo {
    font-family: var(--font-header);
    font-weight: 900;
    font-size: 1.6rem;
    color: #fff;
    letter-spacing: 3px;
    position: relative;
    text-shadow: 0 0 10px rgba(0, 229, 255, 0.5);
    cursor: pointer;
}

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

.glitch-logo:hover::before {
    left: -2px;
    color: var(--blue);
    text-shadow: -1px 0 var(--blue);
    clip-path: polygon(0 0, 100% 0, 100% 45%, 0 45%);
    animation: glitch-anim 0.8s infinite linear alternate-reverse;
}
.glitch-logo:hover::after {
    left: 2px;
    color: var(--purple);
    text-shadow: -1px 0 var(--purple);
    clip-path: polygon(0 50%, 100% 50%, 100% 100%, 0 100%);
    animation: glitch-anim2 0.8s infinite linear alternate-reverse;
}

@keyframes glitch-anim {
    0% { clip-path: inset(40% 0 61% 0); }
    20% { clip-path: inset(92% 0 1% 0); }
    40% { clip-path: inset(15% 0 80% 0); }
    60% { clip-path: inset(80% 0 5% 0); }
    80% { clip-path: inset(2% 0 92% 0); }
    100% { clip-path: inset(53% 0 40% 0); }
}

@keyframes glitch-anim2 {
    0% { clip-path: inset(24% 0 71% 0); }
    20% { clip-path: inset(8% 0 85% 0); }
    40% { clip-path: inset(78% 0 15% 0); }
    60% { clip-path: inset(42% 0 39% 0); }
    80% { clip-path: inset(98% 0 2% 0); }
    100% { clip-path: inset(11% 0 80% 0); }
}

.status-indicator {
    font-family: var(--font-mono);
    font-size: 0.7rem;
    color: var(--text-muted);
    letter-spacing: 1px;
    display: flex;
    align-items: center;
    gap: 0.4rem;
    border: 1px solid var(--card-border);
    padding: 0.2rem 0.6rem;
    border-radius: 4px;
    background: rgba(30, 30, 53, 0.2);
}

.pulse-dot {
    width: 6px;
    height: 6px;
    background-color: var(--green);
    border-radius: 50%;
    box-shadow: 0 0 8px var(--green);
    animation: pulse 1.8s infinite;
}

@keyframes pulse {
    0% { opacity: 0.4; }
    50% { opacity: 1; box-shadow: 0 0 12px var(--green); }
    100% { opacity: 0.4; }
}

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

.nav-link {
    font-family: var(--font-mono);
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.8rem;
    letter-spacing: 1.5px;
    transition: color 0.3s, text-shadow 0.3s;
    position: relative;
    padding: 0.5rem 0;
}

.nav-link span {
    color: var(--blue);
    margin-right: 0.2rem;
    font-size: 0.75rem;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 1px;
    background: linear-gradient(90deg, var(--blue), var(--purple));
    transition: width 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

.nav-link:hover, .nav-link.active {
    color: #fff;
    text-shadow: 0 0 10px rgba(0, 229, 255, 0.3);
}

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

.menu-toggle {
    display: none;
    flex-direction: column;
    gap: 6px;
    background: none;
    border: none;
    cursor: pointer;
    z-index: 1100;
}

.menu-toggle .bar {
    width: 24px;
    height: 2px;
    background-color: var(--blue);
    transition: all 0.3s ease;
}

/* ── APP CONTAINER / WRAPPER ── */
.app-container {
    position: relative;
    z-index: 10;
    max-width: 1400px;
    margin: 0 auto;
}

/* ── HERO SECTION ── */
.hero-section {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    position: relative;
    padding: 8rem 2rem 4rem;
    text-align: center;
    overflow: hidden;
}

.hero-grid-overlay {
    position: absolute;
    inset: 0;
    z-index: -1;
    background-image: 
        linear-gradient(rgba(0, 229, 255, 0.02) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0, 229, 255, 0.02) 1px, transparent 1px);
    background-size: 50px 50px;
    mask-image: radial-gradient(ellipse 70% 70% at 50% 50%, black, transparent);
    -webkit-mask-image: radial-gradient(ellipse 70% 70% at 50% 50%, black, transparent);
    transform-origin: center;
}

.console-tag {
    font-family: var(--font-mono);
    color: var(--green);
    font-size: 0.8rem;
    letter-spacing: 3px;
    margin-bottom: 1.5rem;
    text-shadow: 0 0 8px rgba(57, 255, 20, 0.3);
}

.hero-title {
    font-family: var(--font-header);
    font-weight: 900;
    font-size: clamp(4rem, 15vw, 9rem);
    line-height: 0.95;
    letter-spacing: 12px;
    margin-bottom: 2rem;
    position: relative;
}

.gradient-text-blue {
    color: var(--blue);
    background: linear-gradient(135deg, #fff 30%, var(--blue) 90%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    filter: drop-shadow(0 0 25px rgba(0, 229, 255, 0.35));
}

.gradient-text-green {
    color: var(--green);
    background: linear-gradient(135deg, #fff 30%, var(--green) 90%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    filter: drop-shadow(0 0 20px rgba(57, 255, 20, 0.25));
}

.hero-title::before {
    content: attr(data-text);
    position: absolute;
    inset: 0;
    z-index: -1;
    color: rgba(176, 38, 255, 0.2);
    transform: translate(4px, 4px);
    filter: blur(2px);
}

.hero-subtitle {
    font-family: var(--font-mono);
    color: var(--text-secondary);
    font-size: clamp(0.9rem, 2vw, 1.25rem);
    letter-spacing: 4px;
    max-width: 700px;
    margin: 0 auto;
}

.mono-prefix {
    color: var(--blue);
    font-weight: bold;
}

.typed-cursor {
    color: var(--blue);
    animation: blink-cursor 1s step-end infinite;
    text-shadow: 0 0 8px var(--blue);
}

@keyframes blink-cursor {
    0%, 100% { opacity: 1; }
    50% { opacity: 0; }
}

.hero-badges {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1rem;
    margin-top: 3.5rem;
}

.tech-badge {
    font-family: var(--font-mono);
    font-size: 0.75rem;
    letter-spacing: 2px;
    padding: 0.5rem 1.25rem;
    border-radius: 4px;
    border: 1px solid transparent;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(13, 13, 23, 0.6);
    transition: all 0.3s;
}

.badge-icon {
    width: 14px;
    height: 14px;
}

.badge-blue {
    border-color: rgba(0, 229, 255, 0.2);
    color: var(--blue);
}
.badge-blue:hover {
    border-color: var(--blue);
    background: rgba(0, 229, 255, 0.08);
    box-shadow: 0 0 15px rgba(0, 229, 255, 0.2);
}

.badge-green {
    border-color: rgba(57, 255, 20, 0.2);
    color: var(--green);
}
.badge-green:hover {
    border-color: var(--green);
    background: rgba(57, 255, 20, 0.06);
    box-shadow: 0 0 15px rgba(57, 255, 20, 0.2);
}

.badge-purple {
    border-color: rgba(176, 38, 255, 0.2);
    color: var(--purple);
}
.badge-purple:hover {
    border-color: var(--purple);
    background: rgba(176, 38, 255, 0.08);
    box-shadow: 0 0 15px rgba(176, 38, 255, 0.2);
}

.hero-actions {
    display: flex;
    gap: 1.5rem;
    margin-top: 4rem;
    justify-content: center;
}

.btn {
    font-family: var(--font-mono);
    font-size: 0.85rem;
    letter-spacing: 2px;
    padding: 1rem 2.25rem;
    border-radius: 4px;
    cursor: pointer;
    text-decoration: none;
    display: inline-block;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    position: relative;
    overflow: hidden;
}

.btn-glow {
    background: var(--blue);
    color: #000;
    border: none;
    font-weight: 700;
    box-shadow: 0 0 30px rgba(0, 229, 255, 0.35);
}

.btn-glow:hover {
    background: #fff;
    box-shadow: 0 0 45px rgba(0, 229, 255, 0.6);
    transform: translateY(-3px);
}

.btn-outline {
    background: transparent;
    color: #fff;
    border: 1px solid var(--card-border);
}

.btn-outline:hover {
    border-color: var(--blue);
    background: rgba(0, 229, 255, 0.04);
    box-shadow: 0 0 20px rgba(0, 229, 255, 0.15);
    transform: translateY(-3px);
}

.scroll-down-hint {
    position: absolute;
    bottom: 3rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
}

.scroll-text {
    font-family: var(--font-mono);
    font-size: 0.6rem;
    color: var(--text-muted);
    letter-spacing: 3px;
}

.mouse-indicator {
    width: 20px;
    height: 32px;
    border: 1.5px solid var(--card-border);
    border-radius: 12px;
    position: relative;
}

.mouse-wheel {
    width: 3px;
    height: 6px;
    background-color: var(--blue);
    position: absolute;
    top: 6px;
    left: 50%;
    transform: translateX(-50%);
    border-radius: 2px;
    animation: scroll-wheel 1.6s infinite;
}

@keyframes scroll-wheel {
    0% { transform: translate(-50%, 0); opacity: 1; }
    80% { transform: translate(-50%, 8px); opacity: 0; }
    100% { transform: translate(-50%, 0); opacity: 0; }
}

/* ── CONTENT SECTIONS ── */
.content-section {
    padding: 8rem 4rem;
    position: relative;
    max-width: 1200px;
    margin: 0 auto;
}

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

.section-number {
    font-family: var(--font-mono);
    font-size: 1.1rem;
    color: var(--blue);
    letter-spacing: 2px;
}

.section-title {
    font-family: var(--font-header);
    font-size: clamp(1.5rem, 3.5vw, 2.25rem);
    font-weight: 700;
    color: #fff;
    letter-spacing: 3px;
}

.header-line {
    flex-grow: 1;
    height: 1px;
    background: linear-gradient(90deg, var(--card-border), transparent);
}

/* ── PROFILE / ABOUT ── */
.profile-grid {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 4rem;
    align-items: center;
}

.bio-container {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.bio-heading {
    font-family: var(--font-header);
    font-size: 1.75rem;
    font-weight: 700;
    color: #fff;
}

.text-blue { color: var(--blue); }
.text-green { color: var(--green); }
.text-purple { color: var(--purple); }

.bio-text {
    font-size: 1.05rem;
    color: var(--text-secondary);
    line-height: 1.8;
}

.bio-text strong {
    color: #fff;
    font-weight: 600;
}

.bio-stats {
    display: flex;
    gap: 3rem;
    margin-top: 2rem;
}

.stat-item {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.stat-num {
    font-family: var(--font-header);
    font-size: 2.25rem;
    font-weight: 900;
    line-height: 1;
}

.stat-label {
    font-family: var(--font-mono);
    font-size: 0.7rem;
    color: var(--text-muted);
    letter-spacing: 1.5px;
}

/* MOCK IDE COMPONENT */
.ide-container {
    background: rgba(6, 6, 12, 0.85);
    border: 1px solid var(--card-border);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
    transition: transform 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275), border-color 0.3s;
}

.ide-container:hover {
    border-color: rgba(0, 229, 255, 0.25);
    box-shadow: 0 30px 60px rgba(0, 229, 255, 0.08);
}

.ide-header {
    background: rgba(13, 13, 23, 0.9);
    padding: 0.75rem 1.25rem;
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    border-bottom: 1px solid var(--card-border);
}

.ide-circles {
    display: flex;
    gap: 8px;
}

.ide-circles .circle {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    display: inline-block;
}

.circle.red { background-color: #ff5f56; }
.circle.yellow { background-color: #ffbd2e; }
.circle.green { background-color: #27c93f; }

.ide-tabs {
    display: flex;
    gap: 8px;
    margin-left: 2rem;
}

.ide-tab {
    font-family: var(--font-mono);
    font-size: 0.7rem;
    color: var(--text-muted);
    padding: 0.35rem 0.85rem;
    border-radius: 4px;
    cursor: pointer;
    background: rgba(30, 30, 53, 0.2);
    border: 1px solid transparent;
    display: flex;
    align-items: center;
    gap: 0.4rem;
    transition: all 0.2s;
}

.tab-icon {
    width: 12px;
    height: 12px;
}

.ide-tab.active {
    color: var(--text-primary);
    background: rgba(5, 5, 8, 0.9);
    border-color: var(--card-border);
}

.ide-filename {
    font-family: var(--font-mono);
    font-size: 0.65rem;
    color: var(--text-muted);
}

.ide-body {
    padding: 1.5rem;
    display: none;
    height: 340px;
    overflow-y: auto;
}

.ide-body.active {
    display: flex;
    gap: 1.25rem;
}

.line-numbers {
    display: flex;
    flex-direction: column;
    font-family: var(--font-mono);
    font-size: 0.85rem;
    color: var(--text-muted);
    text-align: right;
    user-select: none;
    line-height: 1.6;
}

.code-editor {
    font-family: var(--font-mono);
    font-size: 0.85rem;
    line-height: 1.6;
    color: var(--text-secondary);
    white-space: pre-wrap;
}

/* Syntax Highlighting */
.code-editor .keyword { color: #f43f5e; font-weight: 500; }
.code-editor .string { color: #10b981; }
.code-editor .number { color: #f59e0b; }
.code-editor .comment { color: #64748b; font-style: italic; }
.code-editor .function { color: #3b82f6; }

/* ── SKILLS / TECH STACK ── */
.skills-grid-new {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2rem;
}

.skill-card-premium {
    background: rgba(13, 13, 23, 0.35);
    border: 1px solid var(--card-border);
    border-radius: 8px;
    padding: 2.25rem;
    position: relative;
    overflow: hidden;
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.3s;
}

.skill-card-glow {
    position: absolute;
    inset: 0;
    z-index: -1;
    border-radius: 8px;
    opacity: 0;
    transition: opacity 0.4s;
    pointer-events: none;
}

.border-blue {
    background: radial-gradient(circle at top left, rgba(0, 229, 255, 0.08) 0%, transparent 60%);
}
.border-green {
    background: radial-gradient(circle at top left, rgba(57, 255, 20, 0.06) 0%, transparent 60%);
}
.border-purple {
    background: radial-gradient(circle at top left, rgba(176, 38, 255, 0.08) 0%, transparent 60%);
}

.skill-card-premium:hover {
    transform: translateY(-8px);
}

.skill-card-premium:hover .skill-card-glow {
    opacity: 1;
}

.skill-card-premium:hover {
    border-color: rgba(var(--border-hover-rgb, 0, 229, 255), 0.35);
}

.skill-card-premium:has(.text-blue):hover { border-color: rgba(0, 229, 255, 0.4); }
.skill-card-premium:has(.text-green):hover { border-color: rgba(57, 255, 20, 0.4); }
.skill-card-premium:has(.text-purple):hover { border-color: rgba(176, 38, 255, 0.4); }

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

.card-icon {
    width: 38px;
    height: 38px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 6px;
    background: rgba(30, 30, 53, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.card-icon svg {
    width: 20px;
    height: 20px;
}

.skill-index {
    font-family: var(--font-mono);
    font-size: 0.65rem;
    color: var(--text-muted);
    letter-spacing: 2px;
}

.skill-title {
    font-family: var(--font-header);
    font-size: 1.15rem;
    font-weight: 700;
    color: #fff;
    letter-spacing: 1.5px;
    margin-bottom: 0.75rem;
}

.skill-text {
    font-size: 0.95rem;
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 2rem;
}

.skill-progress-container {
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
}

.skill-progress-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.progress-label {
    font-family: var(--font-mono);
    font-size: 0.65rem;
    color: var(--text-muted);
    letter-spacing: 1px;
}

.progress-percent {
    font-family: var(--font-mono);
    font-size: 0.8rem;
    font-weight: 700;
}

.progress-bar-track {
    height: 4px;
    background: rgba(30, 30, 53, 0.5);
    border-radius: 2px;
    overflow: hidden;
}

.progress-bar-fill {
    height: 100%;
    width: 0;
    border-radius: 2px;
    transition: width 1.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.bg-blue { background: linear-gradient(90deg, var(--blue), var(--purple)); }
.bg-green { background: linear-gradient(90deg, var(--green), var(--blue)); }
.bg-purple { background: linear-gradient(90deg, var(--purple), var(--blue)); }

/* ── PROJECTS / ARCHIVE ── */
.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2rem;
}

.project-card {
    background: rgba(13, 13, 23, 0.3);
    border: 1px solid var(--card-border);
    border-radius: 6px;
    padding: 2rem;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.3s;
    height: 280px;
}

.project-card:hover {
    border-color: var(--blue);
    box-shadow: 0 15px 35px rgba(0, 229, 255, 0.05);
    transform: translateY(-6px);
}

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

.project-type {
    font-family: var(--font-mono);
    font-size: 0.65rem;
    color: var(--blue);
    letter-spacing: 2px;
}

.project-status {
    font-family: var(--font-mono);
    font-size: 0.6rem;
    letter-spacing: 1px;
    padding: 0.15rem 0.5rem;
    border-radius: 3px;
    font-weight: bold;
}

.project-status.secure { background: rgba(0, 229, 255, 0.1); color: var(--blue); }
.project-status.active { background: rgba(57, 255, 20, 0.08); color: var(--green); }
.project-status.testing { background: rgba(176, 38, 255, 0.1); color: var(--purple); }

.project-name {
    font-family: var(--font-header);
    font-size: 1.2rem;
    font-weight: 700;
    color: #fff;
    margin-bottom: 0.75rem;
}

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

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

.project-tags span {
    font-family: var(--font-mono);
    font-size: 0.6rem;
    color: var(--text-muted);
    letter-spacing: 1px;
    background: rgba(30, 30, 53, 0.25);
    padding: 0.2rem 0.5rem;
    border-radius: 3px;
    border: 1px solid rgba(255, 255, 255, 0.02);
}

.project-footer {
    border-top: 1px solid rgba(30, 30, 53, 0.4);
    padding-top: 1rem;
}

.project-link {
    font-family: var(--font-mono);
    font-size: 0.75rem;
    color: var(--text-secondary);
    text-decoration: none;
    letter-spacing: 1.5px;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: color 0.2s;
}

.link-arrow {
    width: 14px;
    height: 14px;
    transition: transform 0.2s;
}

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

.project-link:hover .link-arrow {
    transform: translateX(4px);
}

/* ── JOURNEY TIMELINE ── */
.journey-timeline {
    max-width: 800px;
    margin: 0 auto;
    position: relative;
}

.journey-timeline::before {
    content: '';
    position: absolute;
    left: 8px;
    top: 5px;
    bottom: 5px;
    width: 2px;
    background: linear-gradient(180deg, var(--green) 0%, var(--blue) 50%, var(--card-border) 100%);
}

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

.timeline-item:last-child {
    margin-bottom: 0;
}

.timeline-dot {
    width: 18px;
    height: 18px;
    background-color: var(--bg-dark);
    border: 2px solid var(--blue);
    border-radius: 50%;
    position: absolute;
    left: 0;
    top: 4px;
    box-shadow: 0 0 10px rgba(0, 229, 255, 0.5);
    z-index: 5;
    transition: transform 0.3s, background-color 0.3s;
}

.timeline-item:first-child .timeline-dot {
    border-color: var(--green);
    box-shadow: 0 0 10px rgba(57, 255, 20, 0.5);
}

.timeline-item:hover .timeline-dot {
    transform: scale(1.25);
    background-color: var(--blue);
}

.timeline-item:first-child:hover .timeline-dot {
    background-color: var(--green);
}

.timeline-content {
    background: rgba(13, 13, 23, 0.25);
    border: 1px solid var(--card-border);
    border-radius: 6px;
    padding: 1.75rem 2rem;
    transition: border-color 0.3s, background 0.3s;
}

.timeline-item:hover .timeline-content {
    border-color: var(--card-hover-border);
    background: rgba(13, 13, 23, 0.4);
}

.timeline-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.75rem;
}

.timeline-tag {
    font-family: var(--font-mono);
    font-size: 0.65rem;
    letter-spacing: 2px;
    font-weight: bold;
}

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

.timeline-title {
    font-family: var(--font-header);
    font-size: 1.25rem;
    font-weight: 700;
    color: #fff;
    margin-bottom: 0.5rem;
}

.timeline-text {
    font-size: 0.95rem;
    color: var(--text-secondary);
    line-height: 1.6;
}

/* ── CONTACT / CONNECTION ── */
.contact-card-premium {
    background: rgba(6, 6, 12, 0.85);
    border: 1px solid var(--card-border);
    border-radius: 8px;
    max-width: 600px;
    margin: 0 auto;
    overflow: hidden;
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.6);
    transition: border-color 0.3s;
}

.contact-card-premium:hover {
    border-color: var(--blue);
}

.contact-header {
    background: rgba(13, 13, 23, 0.9);
    padding: 0.9rem 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid var(--card-border);
}

.header-title {
    font-family: var(--font-mono);
    font-size: 0.7rem;
    color: var(--blue);
    letter-spacing: 2.5px;
    font-weight: bold;
}

.connection-status {
    font-family: var(--font-mono);
    font-size: 0.6rem;
    color: var(--green);
    letter-spacing: 1px;
    background: rgba(57, 255, 20, 0.08);
    padding: 0.15rem 0.6rem;
    border-radius: 4px;
    border: 1px solid rgba(57, 255, 20, 0.15);
}

.contact-body {
    padding: 3rem 2.5rem;
    text-align: center;
}

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

.contact-details {
    background: rgba(30, 30, 53, 0.15);
    border: 1px solid var(--card-border);
    border-radius: 6px;
    padding: 1.25rem 2rem;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    max-width: 380px;
    margin: 0 auto 2.5rem;
}

.detail-row {
    display: flex;
    justify-content: space-between;
    font-family: var(--font-mono);
    font-size: 0.8rem;
    letter-spacing: 1px;
}

.detail-row .label {
    color: var(--text-muted);
}

.detail-row .val {
    font-weight: bold;
    text-shadow: 0 0 10px rgba(var(--blue-rgb), 0.2);
}

.contact-button-glow {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    font-family: var(--font-mono);
    font-size: 0.85rem;
    letter-spacing: 2px;
    color: #000;
    background: var(--blue);
    padding: 0.95rem 2rem;
    border-radius: 4px;
    text-decoration: none;
    font-weight: 700;
    transition: all 0.3s;
    box-shadow: 0 0 25px rgba(0, 229, 255, 0.35);
}

.tg-icon {
    width: 16px;
    height: 16px;
}

.contact-button-glow:hover {
    background: var(--green);
    box-shadow: 0 0 35px rgba(57, 255, 20, 0.55);
    transform: translateY(-3px);
}

/* ── FOOTER ── */
footer#system-footer {
    border-top: 1px solid var(--card-border);
    background: rgba(2, 2, 4, 0.9);
    padding: 2.25rem 4rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-family: var(--font-mono);
    font-size: 0.7rem;
    color: var(--text-muted);
    letter-spacing: 1.5px;
    position: relative;
    z-index: 100;
}

.footer-left .font-bold {
    font-weight: bold;
    text-shadow: 0 0 8px rgba(0, 229, 255, 0.25);
}

.footer-right {
    display: flex;
    gap: 2rem;
}

.ping-rate {
    color: var(--green);
}

/* ── ADVANCED SCROLL REVEAL CLASSES ── */
.reveal {
    opacity: 0;
    transform: translateY(0);
    transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal.from-left { transform: translateX(-40px); }
.reveal.from-right { transform: translateX(40px); }
.reveal.from-bottom { transform: translateY(40px); }
.reveal.from-top { transform: translateY(-40px); }
.reveal.scale-in { transform: scale(0.95); }
.reveal.rotate-in { transform: perspective(1000px) rotateY(10deg) translateZ(-20px); }

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

/* stagger delay helper */
.stagger-delay-1 { transition-delay: 0.08s; }
.stagger-delay-2 { transition-delay: 0.16s; }
.stagger-delay-3 { transition-delay: 0.24s; }
.stagger-delay-4 { transition-delay: 0.32s; }

/* ── MEDIA QUERIES ── */
@media (max-width: 1024px) {
    header#main-nav {
        padding: 1.25rem 2.5rem;
    }
    .profile-grid {
        grid-template-columns: 1fr;
        gap: 3.5rem;
    }
    .ide-container {
        max-width: 600px;
        margin: 0 auto;
        width: 100%;
    }
}

@media (max-width: 768px) {
    header#main-nav {
        padding: 1rem 1.5rem;
    }
    
    .menu-toggle {
        display: flex;
    }
    
    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        width: 75%;
        height: 100vh;
        background: rgba(5, 5, 8, 0.98);
        backdrop-filter: blur(20px);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 2.5rem;
        z-index: 1050;
        transition: right 0.4s cubic-bezier(0.16, 1, 0.3, 1);
        border-left: 1px solid var(--card-border);
    }
    
    .nav-links.active {
        right: 0;
    }
    
    .menu-toggle.active .bar:nth-child(1) {
        transform: translateY(8px) rotate(45deg);
    }
    
    .menu-toggle.active .bar:nth-child(2) {
        transform: translateY(-8px) rotate(-45deg);
    }
    
    .content-section {
        padding: 6rem 1.5rem;
    }
    
    .hero-actions {
        flex-direction: column;
        gap: 1rem;
        width: 100%;
        max-width: 280px;
        margin: 3rem auto 0;
    }
    
    .btn {
        width: 100%;
        text-align: center;
    }
    
    footer#system-footer {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
        padding: 2.25rem 1.5rem;
    }
    
    .footer-right {
        justify-content: center;
    }
}

@media (prefers-reduced-motion: reduce) {
    .reveal {
        transition: none !important;
    }
    .ambient-glow, .glitch-logo::before, .glitch-logo::after {
        animation: none !important;
    }
}
