/* ============================================
   CSS VARIABLES & RESET
   ============================================ */
:root {
    /* ── Cyberpunk Palette ─────────────────── */
    --bg: #050510;
    --bg-primary: #050510;
    --bg-secondary: #0a0a1a;
    --bg-card: rgba(12, 12, 35, 0.55);
    --bg-card-hover: rgba(20, 20, 55, 0.7);
    --glass-bg: rgba(12, 12, 40, 0.45);
    --glass-border: rgba(255, 255, 255, 0.08);
    --text: #e0e0ff;
    --text-primary: #e0e0ff;
    --text-secondary: #8888b8;
    --text-muted: #555580;
    --accent: #ff2a6d;
    --accent-glow: rgba(255, 42, 109, 0.4);
    --accent-2: #05d9e8;
    --accent-2-glow: rgba(5, 217, 232, 0.4);
    --accent-3: #d300c5;
    --accent-3-glow: rgba(211, 0, 197, 0.35);
    --border: rgba(255, 255, 255, 0.07);
    --border-hover: rgba(5, 217, 232, 0.35);
    --accent-bg: rgba(255, 42, 109, 0.08);
    --accent-border: rgba(255, 42, 109, 0.2);
    --radius: 12px;
    --radius-sm: 8px;
    --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --font-main: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    --font-mono: 'JetBrains Mono', monospace;
}

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

html {
    scroll-behavior: smooth;
    scroll-padding-top: 80px;
}

body {
    font-family: var(--font-main);
    background: var(--bg-primary);
    background-image:
        radial-gradient(ellipse at 20% 50%, rgba(255, 42, 109, 0.04) 0%, transparent 50%),
        radial-gradient(ellipse at 80% 20%, rgba(5, 217, 232, 0.04) 0%, transparent 50%);
    color: var(--text-primary);
    line-height: 1.7;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    position: relative;
}

body::after {
    content: '';
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 9998;
    background: repeating-linear-gradient(
        0deg,
        transparent,
        transparent 2px,
        rgba(0, 0, 0, 0.03) 2px,
        rgba(0, 0, 0, 0.03) 4px
    );
    opacity: 0.4;
}

a {
    text-decoration: none;
    color: inherit;
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    display: block;
}

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

/* ============================================
   CERTIFICATES
   ============================================ */
.cert-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 24px;
    margin-top: 40px;
}

.cert-card {
    background: var(--glass-bg);
    backdrop-filter: blur(16px) saturate(1.3);
    -webkit-backdrop-filter: blur(16px) saturate(1.3);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    cursor: pointer;
    transition: var(--transition);
}

.cert-card:hover {
    border-color: rgba(5, 217, 232, 0.3);
    transform: translateY(-6px);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.25), 0 0 20px rgba(5, 217, 232, 0.06);
}

.cert-image {
    width: 100%;
    height: 200px;
    overflow: hidden;
    background: var(--bg-secondary);
    display: flex;
    align-items: center;
    justify-content: center;
}

.cert-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.cert-card:hover .cert-image img {
    transform: scale(1.05);
}

.cert-info {
    padding: 20px;
}

.cert-date {
    font-family: var(--font-mono);
    font-size: 0.75rem;
    color: var(--accent);
    letter-spacing: 1px;
}

.cert-title {
    font-size: 1rem;
    font-weight: 700;
    margin: 8px 0 6px;
    line-height: 1.4;
}

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

.cert-grade {
    display: inline-block;
    font-family: var(--font-mono);
    font-size: 0.72rem;
    color: var(--accent);
    background: var(--accent-bg);
    border: 1px solid var(--accent-border);
    padding: 3px 10px;
    border-radius: 20px;
    letter-spacing: 0.5px;
}

/* Lightbox */
.lightbox {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(5, 5, 16, 0.94);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    z-index: 9999;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

.lightbox.active {
    display: flex;
}

.lightbox-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    max-width: 90vw;
    max-height: 90vh;
    cursor: default;
}

.lightbox-img {
    max-width: 90vw;
    max-height: 65vh;
    border-radius: var(--radius);
    box-shadow: 0 0 60px rgba(0, 0, 0, 0.5), 0 0 40px rgba(255, 42, 109, 0.1), 0 0 80px rgba(5, 217, 232, 0.05);
    object-fit: contain;
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.lightbox-detail {
    text-align: center;
    margin-top: 20px;
    padding: 20px 30px;
    background: var(--glass-bg);
    backdrop-filter: blur(16px) saturate(1.3);
    -webkit-backdrop-filter: blur(16px) saturate(1.3);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: var(--radius);
    max-width: 600px;
    width: 100%;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
}

.lightbox-cert-date {
    font-family: var(--font-mono);
    font-size: 0.75rem;
    color: var(--accent);
    letter-spacing: 1px;
    text-transform: uppercase;
}

.lightbox-cert-title {
    font-size: 1.2rem;
    font-weight: 700;
    margin: 8px 0;
    color: var(--text);
}

.lightbox-cert-desc {
    font-size: 0.9rem;
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 10px;
}

.lightbox-cert-grade {
    display: inline-block;
    font-family: var(--font-mono);
    font-size: 0.72rem;
    color: var(--accent);
    background: var(--accent-bg);
    border: 1px solid var(--accent-border);
    padding: 3px 12px;
    border-radius: 20px;
    letter-spacing: 0.5px;
}

.lightbox-close {
    position: absolute;
    top: 24px;
    right: 32px;
    color: #fff;
    font-size: 2.5rem;
    font-weight: 300;
    cursor: pointer;
    line-height: 1;
    transition: color 0.2s;
    z-index: 10000;
}

.lightbox-close:hover {
    color: var(--accent);
}

@media (max-width: 480px) {
    .cert-grid {
        grid-template-columns: 1fr;
    }
}

/* ============================================
   TIMELINE
   ============================================ */
.timeline {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
    padding: 20px 0;
}

.timeline-line {
    position: absolute;
    left: 50%;
    top: 0;
    bottom: 0;
    width: 2px;
    background: var(--border);
    transform: translateX(-50%);
}

.timeline-item {
    position: relative;
    width: 50%;
    padding: 0 40px 60px;
}

.timeline-item.left {
    left: 0;
    text-align: right;
}

.timeline-item.right {
    left: 50%;
    text-align: left;
}

.timeline-dot {
    position: absolute;
    width: 14px;
    height: 14px;
    background: var(--accent);
    border-radius: 50%;
    top: 6px;
    box-shadow: 0 0 12px var(--accent-glow), 0 0 24px var(--accent-glow);
    z-index: 1;
}

.timeline-item.left .timeline-dot {
    right: -7px;
}

.timeline-item.right .timeline-dot {
    left: -7px;
}

.timeline-card {
    background: var(--glass-bg);
    backdrop-filter: blur(16px) saturate(1.3);
    -webkit-backdrop-filter: blur(16px) saturate(1.3);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: var(--radius);
    padding: 24px;
    transition: var(--transition);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

.timeline-card:hover {
    border-color: rgba(5, 217, 232, 0.3);
    transform: translateY(-4px);
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.3), 0 0 20px rgba(5, 217, 232, 0.05);
}

.timeline-year {
    font-family: var(--font-mono);
    font-size: 0.78rem;
    color: var(--accent);
    letter-spacing: 1px;
    text-transform: uppercase;
}

.timeline-title {
    font-size: 1.15rem;
    font-weight: 700;
    margin: 8px 0 4px;
}

.timeline-place {
    font-size: 0.9rem;
    color: var(--text-secondary);
    margin-bottom: 8px;
}

.timeline-desc {
    font-size: 0.85rem;
    color: var(--text-muted);
    line-height: 1.6;
}

/* Timeline certificate links */
.timeline-certs {
    margin-top: 14px;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.timeline-cert-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 14px;
    background: rgba(5, 217, 232, 0.06);
    border: 1px solid rgba(5, 217, 232, 0.2);
    border-radius: 8px;
    color: #05d9e8;
    font-family: var(--font-mono);
    font-size: 0.75rem;
    cursor: pointer;
    transition: var(--transition);
    text-align: left;
    line-height: 1.3;
}

.timeline-cert-link:hover {
    background: var(--accent-2);
    color: var(--bg);
    border-color: var(--accent-2);
    transform: translateX(4px);
    box-shadow: 0 4px 16px var(--accent-2-glow), 0 0 30px rgba(5, 217, 232, 0.15);
}

.timeline-cert-link svg {
    flex-shrink: 0;
}

/* Timeline responsive */
@media (max-width: 768px) {
    .timeline-line {
        left: 20px;
    }

    .timeline-item {
        width: 100%;
        padding: 0 0 40px 50px;
        text-align: left !important;
    }

    .timeline-item.left,
    .timeline-item.right {
        left: 0;
    }

    .timeline-item.left .timeline-dot,
    .timeline-item.right .timeline-dot {
        left: 13px;
        right: auto;
    }
}

/* ============================================
   NAVBAR
   ============================================ */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: 16px 0;
    transition: var(--transition);
    background: transparent;
}

.navbar.scrolled {
    background: rgba(5, 5, 16, 0.7);
    backdrop-filter: blur(24px) saturate(1.4);
    -webkit-backdrop-filter: blur(24px) saturate(1.4);
    border-bottom: 1px solid rgba(255, 42, 109, 0.15);
    padding: 10px 0;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.03);
}

.nav-container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.nav-logo {
    font-family: var(--font-mono);
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--accent-2);
    transition: var(--transition);
    text-shadow: 0 0 12px rgba(5, 217, 232, 0.3);
}

.nav-logo:hover {
    text-shadow: 0 0 20px rgba(5, 217, 232, 0.5), 0 0 40px rgba(5, 217, 232, 0.2);
}

.logo-bracket {
    color: var(--accent-2);
}

.nav-links {
    display: flex;
    gap: 8px;
}

.nav-link {
    padding: 8px 16px;
    font-size: 0.88rem;
    font-weight: 500;
    color: var(--text-secondary);
    border-radius: var(--radius-sm);
    transition: var(--transition);
    position: relative;
}

.nav-link:hover,
.nav-link.active {
    color: var(--accent);
    background: rgba(255, 42, 109, 0.1);
    text-shadow: 0 0 10px rgba(255, 42, 109, 0.3);
}

/* Mobile Nav Toggle */
.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
}

.nav-toggle span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--text-primary);
    border-radius: 2px;
    transition: var(--transition);
}

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

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

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

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

.hero-bg {
    position: absolute;
    inset: 0;
    pointer-events: none;
}

.grid-overlay {
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(5, 217, 232, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(5, 217, 232, 0.03) 1px, transparent 1px);
    background-size: 60px 60px;
    mask-image: radial-gradient(ellipse at center, black 30%, transparent 70%);
    -webkit-mask-image: radial-gradient(ellipse at center, black 30%, transparent 70%);
}

.gradient-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(100px);
    opacity: 0.4;
}

.orb-1 {
    width: 500px;
    height: 500px;
    background: var(--accent);
    top: -150px;
    right: -100px;
    animation: float 8s ease-in-out infinite;
    opacity: 0.35;
}

.orb-2 {
    width: 400px;
    height: 400px;
    background: var(--accent-2);
    bottom: -100px;
    left: -100px;
    animation: float 10s ease-in-out infinite reverse;
    opacity: 0.3;
}

.orb-3 {
    width: 300px;
    height: 300px;
    background: var(--accent-3);
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    animation: float 12s ease-in-out infinite;
    opacity: 0.25;
}

@keyframes float {
    0%, 100% { transform: translateY(0) scale(1); }
    50% { transform: translateY(-30px) scale(1.05); }
}

.hero-content {
    text-align: center;
    z-index: 1;
    padding: 80px 24px 0;
}

.hero-greeting {
    font-family: var(--font-mono);
    font-size: 1rem;
    color: var(--accent);
    margin-bottom: 16px;
    letter-spacing: 2px;
    text-transform: uppercase;
}

.hero-name {
    font-size: clamp(3rem, 8vw, 5.5rem);
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 16px;
    background: linear-gradient(135deg, var(--text-primary) 0%, var(--accent) 40%, var(--accent-3) 60%, var(--accent-2) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-title {
    font-size: clamp(1.2rem, 3vw, 1.8rem);
    font-weight: 400;
    color: var(--text-secondary);
    margin-bottom: 24px;
    min-height: 2.5rem;
    font-family: var(--font-mono);
}

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

.cursor {
    color: var(--accent);
    animation: blink 1s step-end infinite;
}

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

.hero-description {
    max-width: 540px;
    margin: 0 auto 36px;
    font-size: 1.05rem;
    color: var(--text-secondary);
    line-height: 1.8;
}

.hero-cta {
    display: flex;
    gap: 16px;
    justify-content: center;
    margin-bottom: 60px;
    flex-wrap: wrap;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 28px;
    font-size: 0.92rem;
    font-weight: 600;
    border-radius: var(--radius);
    transition: var(--transition);
    cursor: pointer;
    border: none;
    font-family: var(--font-main);
}

.btn-primary {
    background: var(--accent);
    color: #fff;
    box-shadow: 0 4px 20px var(--accent-glow), 0 0 40px rgba(255, 42, 109, 0.15);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px var(--accent-glow), 0 0 60px rgba(255, 42, 109, 0.2);
    background: #ff4488;
}

.btn-secondary {
    background: transparent;
    color: var(--accent-2);
    border: 1.5px solid var(--accent-2);
    box-shadow: 0 0 15px rgba(5, 217, 232, 0.1);
}

.btn-secondary:hover {
    background: rgba(5, 217, 232, 0.1);
    transform: translateY(-2px);
    box-shadow: 0 0 25px rgba(5, 217, 232, 0.15);
    border-color: var(--accent-2);
}

.btn-large {
    padding: 18px 40px;
    font-size: 1rem;
}

/* Hero Stats */
.hero-stats {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 32px;
}

.stat {
    text-align: center;
}

.stat-number {
    font-size: 2rem;
    font-weight: 800;
    color: var(--text-primary);
}

.stat-suffix {
    font-size: 2rem;
    font-weight: 800;
    color: var(--accent);
}

.stat-label {
    display: block;
    font-size: 0.8rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-top: 4px;
}

.stat-divider {
    width: 1px;
    height: 40px;
    background: var(--border);
}

/* Scroll Indicator */
.scroll-indicator {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 2;
}

.mouse {
    width: 26px;
    height: 40px;
    border: 2px solid var(--text-muted);
    border-radius: 14px;
    display: flex;
    justify-content: center;
    padding-top: 8px;
    transition: var(--transition);
}

.mouse:hover {
    border-color: var(--accent);
}

.wheel {
    width: 3px;
    height: 8px;
    background: var(--accent);
    border-radius: 3px;
    animation: scroll-wheel 2s ease-in-out infinite;
}

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

/* ============================================
   SECTIONS
   ============================================ */
.section {
    padding: 120px 0;
}

.section-title {
    font-size: clamp(1.8rem, 4vw, 2.2rem);
    font-weight: 700;
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.title-number {
    font-family: var(--font-mono);
    font-size: 1rem;
    color: var(--accent-2);
    font-weight: 400;
    text-shadow: 0 0 12px rgba(5, 217, 232, 0.4);
}

.section-subtitle {
    color: var(--text-secondary);
    font-size: 1.05rem;
    max-width: 600px;
    margin-bottom: 48px;
}

/* ============================================
   ABOUT
   ============================================ */
.about-grid {
    display: grid;
    grid-template-columns: 1fr 280px;
    gap: 60px;
    align-items: center;
}

.about-text p {
    color: var(--text-secondary);
    margin-bottom: 16px;
    font-size: 1rem;
}

.about-text p:last-of-type {
    margin-bottom: 28px;
}

.highlight {
    color: var(--accent);
    font-weight: 600;
}

.about-highlights {
    display: flex;
    gap: 24px;
    flex-wrap: wrap;
}

.highlight-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.88rem;
    font-weight: 500;
    color: var(--text-primary);
}

.highlight-icon {
    width: 20px;
    height: 20px;
    color: var(--accent);
}

.about-image-wrapper {
    display: flex;
    justify-content: center;
}

.about-image {
    position: relative;
    width: 240px;
    height: 280px;
}

.image-placeholder {
    width: 100%;
    height: 100%;
    background: var(--glass-bg);
    backdrop-filter: blur(16px) saturate(1.3);
    -webkit-backdrop-filter: blur(16px) saturate(1.3);
    border-radius: var(--radius);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.06);
}

.image-placeholder svg {
    width: 80px;
    height: 80px;
    color: var(--text-muted);
    opacity: 0.5;
}

.image-border {
    position: absolute;
    inset: 12px;
    border: 2px solid var(--accent-2);
    border-radius: var(--radius);
    opacity: 0.3;
    transition: var(--transition);
    transform: translate(8px, 8px);
    box-shadow: 0 0 15px rgba(5, 217, 232, 0.1);
}

.about-image:hover .image-border {
    transform: translate(4px, 4px);
    opacity: 0.6;
    box-shadow: 0 0 25px rgba(5, 217, 232, 0.2);
}

/* ============================================
   PROJECTS
   ============================================ */
.projects-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 24px;
}

.project-card {
    display: grid;
    grid-template-columns: 1fr 1fr;
    background: var(--glass-bg);
    backdrop-filter: blur(16px) saturate(1.3);
    -webkit-backdrop-filter: blur(16px) saturate(1.3);
    border-radius: var(--radius);
    border: 1px solid rgba(255, 255, 255, 0.06);
    overflow: hidden;
    transition: var(--transition);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

.project-card:hover {
    border-color: rgba(5, 217, 232, 0.3);
    transform: translateY(-4px);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3), 0 0 20px rgba(5, 217, 232, 0.05);
}

.project-card:nth-child(even) {
    direction: rtl;
}

.project-card:nth-child(even) > * {
    direction: ltr;
}

.project-image {
    position: relative;
    min-height: 280px;
    overflow: hidden;
}

.project-placeholder {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(10, 10, 30, 0.8) 0%, rgba(20, 10, 40, 0.6) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
}

.project-placeholder svg {
    width: 64px;
    height: 64px;
    color: var(--text-muted);
    opacity: 0.3;
}

.project-overlay {
    position: absolute;
    inset: 0;
    background: rgba(255, 42, 109, 0.2);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: var(--transition);
}

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

.project-link {
    width: 50px;
    height: 50px;
    background: var(--accent);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    transition: var(--transition);
    transform: scale(0.8);
    box-shadow: 0 0 20px var(--accent-glow);
}

.project-card:hover .project-link {
    transform: scale(1);
    box-shadow: 0 0 30px var(--accent-glow), 0 0 60px rgba(255, 42, 109, 0.15);
}

.project-link svg {
    width: 20px;
    height: 20px;
}

.project-info {
    padding: 36px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.project-label {
    font-family: var(--font-mono);
    font-size: 0.8rem;
    color: var(--accent);
    margin-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.project-title {
    font-size: 1.4rem;
    font-weight: 700;
    margin-bottom: 12px;
}

.project-description {
    color: var(--text-secondary);
    font-size: 0.92rem;
    line-height: 1.7;
    margin-bottom: 20px;
}

.project-tech {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 20px;
}

.project-tech span {
    font-family: var(--font-mono);
    font-size: 0.75rem;
    padding: 4px 12px;
    background: rgba(255, 42, 109, 0.1);
    color: var(--accent);
    border-radius: 20px;
    border: 1px solid rgba(255, 42, 109, 0.15);
}

.project-links {
    display: flex;
    gap: 12px;
}

.project-links a {
    color: var(--text-muted);
    transition: var(--transition);
}

.project-links a:hover {
    color: var(--accent);
}

.project-links svg {
    width: 20px;
    height: 20px;
}

/* ============================================
   SKILLS
   ============================================ */
.skills-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
}

.skill-category {
    background: var(--glass-bg);
    backdrop-filter: blur(16px) saturate(1.3);
    -webkit-backdrop-filter: blur(16px) saturate(1.3);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: var(--radius);
    padding: 32px;
    transition: var(--transition);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

.skill-category:hover {
    border-color: rgba(5, 217, 232, 0.3);
    transform: translateY(-4px);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.2), 0 0 20px rgba(5, 217, 232, 0.05);
}

.skill-category-title {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 20px;
    color: var(--text-primary);
}

.skill-category-title svg {
    width: 20px;
    height: 20px;
    color: var(--accent);
}

.skill-list li {
    padding: 6px 0;
    font-family: var(--font-mono);
    font-size: 0.88rem;
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    gap: 8px;
}

.skill-list li::before {
    content: '';
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--accent-2);
    flex-shrink: 0;
    box-shadow: 0 0 8px var(--accent-2-glow);
}

/* ============================================
   CONTACT
   ============================================ */
.contact {
    text-align: center;
}

.contact .section-title {
    justify-content: center;
}

.contact .section-subtitle {
    margin-left: auto;
    margin-right: auto;
}

.contact-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 40px;
}

.social-link:hover {
    color: var(--accent);
    border-color: var(--accent);
    transform: translateY(-3px);
    box-shadow: 0 8px 20px var(--accent-glow), 0 0 15px rgba(255, 42, 109, 0.1);
}

.social-link svg {
    width: 20px;
    height: 20px;
}

/* ============================================
   FOOTER
   ============================================ */
.footer {
    padding: 32px 0;
    border-top: 1px solid var(--border);
}

.footer-content {
    text-align: center;
}

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

.footer-code {
    font-family: var(--font-mono);
    color: var(--text-secondary);
}

.footer-heart {
    color: var(--accent);
    animation: heartbeat 2s ease-in-out infinite;
    display: inline-block;
    filter: drop-shadow(0 0 6px var(--accent-glow));
}

@keyframes heartbeat {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.2); }
}

/* ── Scanline Sweep ──────────────────── */
@keyframes scanlineSweep {
    0% { transform: translateY(-100%); }
    100% { transform: translateY(100vh); }
}

/* ── Neon Flicker ────────────────────── */
@keyframes neonFlicker {
    0%, 19%, 21%, 23%, 25%, 54%, 56%, 100% {
        text-shadow: 0 0 7px var(--accent), 0 0 20px var(--accent), 0 0 40px var(--accent);
        opacity: 1;
    }
    20%, 24%, 55% {
        text-shadow: none;
        opacity: 0.8;
    }
}

/* ── Rotate Scale In ─────────────────── */
@keyframes rotateScaleIn {
    0% {
        opacity: 0;
        transform: scale(0.5) rotate(-10deg);
    }
    100% {
        opacity: 1;
        transform: scale(1) rotate(0deg);
    }
}

/* ── Slide Reveal Diagonal ───────────── */
@keyframes slideRevealDiag {
    0% {
        opacity: 0;
        transform: translate(-40px, 40px) skewX(3deg);
    }
    100% {
        opacity: 1;
        transform: translate(0, 0) skewX(0);
    }
}

/* ============================================
   ANIMATIONS — Enhanced Cyberpunk System
   ============================================ */

/* ── Hero Stagger Entrance ────────────── */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    animation: heroFadeIn 0.9s cubic-bezier(0.22, 1, 0.36, 1) forwards;
    animation-delay: var(--delay, 0s);
}

.hero-greeting.fade-in  { --delay: 0.1s; }
.hero-name.fade-in      { 
    --delay: 0.25s; 
    animation: 
        heroFadeIn 0.9s cubic-bezier(0.22, 1, 0.36, 1) forwards,
        neonShimmer 6s ease-in-out 1.2s infinite;
}
.hero-title.fade-in     { --delay: 0.45s; }
.hero-description.fade-in { --delay: 0.6s; }
.hero-cta.fade-in       { --delay: 0.8s; }

@keyframes heroFadeIn {
    0% {
        opacity: 0;
        transform: translateY(40px) scale(0.97);
        filter: blur(6px);
    }
    100% {
        opacity: 1;
        transform: translateY(0) scale(1);
        filter: blur(0);
    }
}

/* ── Hero Name Neon Shimmer (combined in .hero-name.fade-in above) ── */

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

/* ── Typing Cursor Neon Glow ──────────── */
.typing-cursor {
    display: inline-block;
    width: 3px;
    height: 1em;
    background: var(--accent);
    margin-left: 2px;
    animation: cursorBlink 1s step-end infinite, cursorGlow 2s ease-in-out infinite;
    vertical-align: text-bottom;
}

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

@keyframes cursorGlow {
    0%, 100% { box-shadow: 0 0 4px var(--accent), 0 0 8px var(--accent); }
    50% { box-shadow: 0 0 8px var(--accent), 0 0 20px var(--accent), 0 0 40px rgba(255, 42, 109, 0.3); }
}

/* ════════════════════════════════════════════
   SCROLL REVEAL — Cyberpunk Animation System
   ════════════════════════════════════════════ */

/* ── Scroll Progress Bar ─────────────── */
.scroll-progress {
    position: fixed;
    top: 0;
    left: 0;
    height: 3px;
    width: 0%;
    background: linear-gradient(90deg, var(--accent), var(--accent-2), var(--accent-3));
    z-index: 10000;
    transition: width 0.1s linear;
    box-shadow: 0 0 10px var(--accent), 0 0 20px rgba(255, 42, 109, 0.3);
}

/* ── Section Divider Line Reveal ─────── */
.section-divider {
    width: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--accent-2), transparent);
    margin: 0 auto;
    transition: width 1.2s cubic-bezier(0.22, 1, 0.36, 1);
    box-shadow: 0 0 8px rgba(5, 217, 232, 0.3);
}

.section-divider.visible {
    width: 100%;
}

/* ── Base Reveal — Fade Up + Blur ────── */
.reveal {
    opacity: 0;
    transform: translateY(60px);
    filter: blur(4px);
    transition:
        opacity 1s cubic-bezier(0.16, 1, 0.3, 1),
        transform 1s cubic-bezier(0.16, 1, 0.3, 1),
        filter 1s cubic-bezier(0.16, 1, 0.3, 1);
    transition-delay: var(--reveal-delay, 0s);
    will-change: transform, opacity, filter;
}

.reveal.visible {
    opacity: 1;
    transform: translateY(0);
    filter: blur(0);
}

/* ── Slide From Left ─────────────────── */
.reveal-left {
    opacity: 0;
    transform: translateX(-80px) rotate(-1deg);
    filter: blur(3px);
    transition:
        opacity 1s cubic-bezier(0.16, 1, 0.3, 1),
        transform 1s cubic-bezier(0.16, 1, 0.3, 1),
        filter 0.8s cubic-bezier(0.16, 1, 0.3, 1);
    transition-delay: var(--reveal-delay, 0s);
    will-change: transform, opacity, filter;
}

/* ── Slide From Right ────────────────── */
.reveal-right {
    opacity: 0;
    transform: translateX(80px) rotate(1deg);
    filter: blur(3px);
    transition:
        opacity 1s cubic-bezier(0.16, 1, 0.3, 1),
        transform 1s cubic-bezier(0.16, 1, 0.3, 1),
        filter 0.8s cubic-bezier(0.16, 1, 0.3, 1);
    transition-delay: var(--reveal-delay, 0s);
    will-change: transform, opacity, filter;
}

/* ── Scale Pop In ────────────────────── */
.reveal-scale {
    opacity: 0;
    transform: scale(0.7);
    filter: blur(6px);
    transition:
        opacity 1s cubic-bezier(0.34, 1.56, 0.64, 1),
        transform 1s cubic-bezier(0.34, 1.56, 0.64, 1),
        filter 0.8s cubic-bezier(0.16, 1, 0.3, 1);
    transition-delay: var(--reveal-delay, 0s);
    will-change: transform, opacity, filter;
}

/* ── Blur Dream In ───────────────────── */
.reveal-blur {
    opacity: 0;
    filter: blur(20px);
    transform: translateY(30px) scale(1.03);
    transition:
        opacity 1.2s cubic-bezier(0.16, 1, 0.3, 1),
        filter 1.2s cubic-bezier(0.16, 1, 0.3, 1),
        transform 1.2s cubic-bezier(0.16, 1, 0.3, 1);
    transition-delay: var(--reveal-delay, 0s);
    will-change: transform, opacity, filter;
}

/* ── Clip Path Reveal (Center Expand) ── */
.reveal-clip {
    clip-path: inset(0 50% 0 50%);
    transition:
        clip-path 1.2s cubic-bezier(0.77, 0, 0.175, 1),
        opacity 0.8s ease;
    transition-delay: var(--reveal-delay, 0s);
    will-change: clip-path;
}

.reveal-clip.visible {
    clip-path: inset(0 0% 0 0%);
}

/* ── Clip Path Reveal (Vertical Wipe) ── */
.reveal-wipe {
    clip-path: inset(0 0 100% 0);
    transition:
        clip-path 1s cubic-bezier(0.77, 0, 0.175, 1),
        opacity 0.6s ease;
    transition-delay: var(--reveal-delay, 0s);
    will-change: clip-path;
}

.reveal-wipe.visible {
    clip-path: inset(0 0 0% 0%);
}

/* ── Flip In (3D) ────────────────────── */
.reveal-flip {
    opacity: 0;
    transform: perspective(800px) rotateY(-15deg) translateX(-40px);
    transition:
        opacity 0.9s cubic-bezier(0.16, 1, 0.3, 1),
        transform 1.1s cubic-bezier(0.16, 1, 0.3, 1);
    transition-delay: var(--reveal-delay, 0s);
    will-change: transform, opacity;
}

/* ── Flip In Right (3D) ──────────────── */
.reveal-flip-right {
    opacity: 0;
    transform: perspective(800px) rotateY(15deg) translateX(40px);
    transition:
        opacity 0.9s cubic-bezier(0.16, 1, 0.3, 1),
        transform 1.1s cubic-bezier(0.16, 1, 0.3, 1);
    transition-delay: var(--reveal-delay, 0s);
    will-change: transform, opacity;
}

/* ── Bounce In ───────────────────────── */
.reveal-bounce {
    opacity: 0;
    transform: scale(0.3) translateY(40px);
    transition:
        opacity 0.6s cubic-bezier(0.16, 1, 0.3, 1),
        transform 0.8s cubic-bezier(0.34, 1.56, 0.64, 1);
    transition-delay: var(--reveal-delay, 0s);
    will-change: transform, opacity;
}

/* ── All Visibles ────────────────────── */
.reveal-left.visible,
.reveal-right.visible,
.reveal-scale.visible,
.reveal-blur.visible,
.reveal-flip.visible,
.reveal-flip-right.visible,
.reveal-bounce.visible {
    opacity: 1;
    transform: translateX(0) translateY(0) scale(1) rotate(0deg) rotateY(0deg);
    filter: blur(0);
}

/* ── Stagger Delays — Up to 12 Children ─ */
.stagger-children > *:nth-child(1)  { --reveal-delay: 0s; }
.stagger-children > *:nth-child(2)  { --reveal-delay: 0.07s; }
.stagger-children > *:nth-child(3)  { --reveal-delay: 0.14s; }
.stagger-children > *:nth-child(4)  { --reveal-delay: 0.21s; }
.stagger-children > *:nth-child(5)  { --reveal-delay: 0.28s; }
.stagger-children > *:nth-child(6)  { --reveal-delay: 0.35s; }
.stagger-children > *:nth-child(7)  { --reveal-delay: 0.42s; }
.stagger-children > *:nth-child(8)  { --reveal-delay: 0.49s; }
.stagger-children > *:nth-child(9)  { --reveal-delay: 0.56s; }
.stagger-children > *:nth-child(10) { --reveal-delay: 0.63s; }
.stagger-children > *:nth-child(11) { --reveal-delay: 0.7s; }
.stagger-children > *:nth-child(12) { --reveal-delay: 0.77s; }

/* ── Section Title Text Split Animation ─ */
.split-text .char {
    display: inline-block;
    opacity: 0;
    transform: translateY(20px) rotateX(-40deg);
    transition:
        opacity 0.5s cubic-bezier(0.16, 1, 0.3, 1),
        transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
    transition-delay: var(--char-delay, 0s);
}

.split-text.visible .char {
    opacity: 1;
    transform: translateY(0) rotateX(0deg);
}

/* ── Glow Trail Reveal ───────────────── */
.reveal-glow {
    opacity: 0;
    transform: translateY(40px);
    position: relative;
    transition:
        opacity 0.9s cubic-bezier(0.16, 1, 0.3, 1),
        transform 0.9s cubic-bezier(0.16, 1, 0.3, 1);
    transition-delay: var(--reveal-delay, 0s);
}

.reveal-glow::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--accent), var(--accent-2));
    transition: width 0.8s cubic-bezier(0.16, 1, 0.3, 1), left 0.8s cubic-bezier(0.16, 1, 0.3, 1);
    transition-delay: calc(var(--reveal-delay, 0s) + 0.4s);
    box-shadow: 0 0 12px var(--accent);
}

.reveal-glow.visible {
    opacity: 1;
    transform: translateY(0);
}

.reveal-glow.visible::after {
    width: 60%;
    left: 20%;
}

/* ── Parallax Scroll Depth Layers ────── */
[data-parallax] {
    transition: transform 0.1s linear;
    will-change: transform;
}

/* ── Card Hover Tilt ──────────────────── */
.tilt-card {
    transition: transform 0.4s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.4s ease;
    transform-style: preserve-3d;
    perspective: 1000px;
}

.tilt-card:hover {
    box-shadow:
        0 20px 60px rgba(0, 0, 0, 0.4),
        0 0 30px rgba(255, 42, 109, 0.08),
        0 0 60px rgba(5, 217, 232, 0.04);
}

/* ── Neon Border Crawl ────────────────── */
.neon-border {
    position: relative;
    overflow: hidden;
}

.neon-border::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: inherit;
    padding: 1px;
    background: linear-gradient(
        var(--border-angle, 0deg),
        var(--accent),
        transparent 40%,
        transparent 60%,
        var(--accent-2)
    );
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    opacity: 0;
    transition: opacity 0.5s ease;
    pointer-events: none;
}

.neon-border:hover::before {
    opacity: 1;
    animation: borderCrawl 3s linear infinite;
}

@keyframes borderCrawl {
    to { --border-angle: 360deg; }
}

@property --border-angle {
    syntax: '<angle>';
    initial-value: 0deg;
    inherits: false;
}

/* ── Skill Bar Fill Animation ─────────── */
.skill-fill {
    transform-origin: left;
    transform: scaleX(0);
    transition: transform 1.2s cubic-bezier(0.22, 1, 0.36, 1);
    transition-delay: var(--reveal-delay, 0s);
}

.skill-fill.visible {
    transform: scaleX(1);
}

/* ── Timeline Glow Pulse ──────────────── */
.timeline-dot {
    transition: box-shadow 0.4s ease, transform 0.4s ease;
}

.timeline-item:hover .timeline-dot {
    box-shadow: 0 0 12px var(--accent), 0 0 24px rgba(255, 42, 109, 0.3);
    transform: scale(1.3);
}

/* ── Section Title Accent Glow ────────── */
.section-title {
    position: relative;
}

.section-title .title-number {
    transition: text-shadow 0.4s ease, transform 0.4s ease;
}

.section-title:hover .title-number {
    text-shadow: 0 0 15px var(--accent-2), 0 0 30px rgba(5, 217, 232, 0.3);
    transform: scale(1.1);
}

/* ── Magnetic Button Effect ───────────── */
.btn-magnetic {
    transition: transform 0.3s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.3s ease;
}

.btn-magnetic:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 8px 30px rgba(255, 42, 109, 0.3), 0 0 60px rgba(255, 42, 109, 0.1);
}

.btn-magnetic:active {
    transform: translateY(-1px) scale(0.98);
    transition-duration: 0.1s;
}

/* ── Contact Grid Pop-In ──────────────── */
.contact-grid .contact-card {
    opacity: 0;
    transform: scale(0.85) translateY(20px);
    transition:
        opacity 0.7s cubic-bezier(0.22, 1, 0.36, 1),
        transform 0.7s cubic-bezier(0.22, 1, 0.36, 1),
        box-shadow 0.4s ease,
        border-color 0.4s ease;
    transition-delay: var(--reveal-delay, 0s);
}

.contact-grid .contact-card.visible {
    opacity: 1;
    transform: scale(1) translateY(0);
}

.contact-card:hover {
    transform: translateY(-6px) scale(1.03) !important;
}

/* ── Parallax Orb Mouse Follow ────────── */
.parallax-layer {
    transition: transform 0.15s ease-out;
    will-change: transform;
}

/* ── Nav Active Link Underline ────────── */
.nav-link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 50%;
    width: 0;
    height: 2px;
    background: var(--accent);
    transition: width 0.3s ease, left 0.3s ease;
    box-shadow: 0 0 8px var(--accent);
    border-radius: 1px;
}

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

/* ── Floating Particles ───────────────── */
.particle {
    position: absolute;
    width: 2px;
    height: 2px;
    background: var(--accent-2);
    border-radius: 50%;
    opacity: 0;
    pointer-events: none;
    animation: particleFloat var(--duration, 8s) ease-in-out infinite;
    animation-delay: var(--p-delay, 0s);
}

@keyframes particleFloat {
    0% {
        opacity: 0;
        transform: translateY(0) translateX(0);
    }
    10% { opacity: 0.6; }
    90% { opacity: 0.6; }
    100% {
        opacity: 0;
        transform: translateY(-100vh) translateX(var(--drift, 20px));
    }
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 768px) {
    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        width: 280px;
        height: 100vh;
        background: rgba(5, 5, 16, 0.9);
        backdrop-filter: blur(24px) saturate(1.4);
        -webkit-backdrop-filter: blur(24px) saturate(1.4);
        flex-direction: column;
        padding: 80px 40px;
        gap: 4px;
        transition: var(--transition);
        border-left: 1px solid rgba(255, 42, 109, 0.15);
    }

    .nav-links.active {
        right: 0;
    }

    .nav-link {
        padding: 12px 16px;
        font-size: 1rem;
    }

    .nav-toggle {
        display: flex;
        z-index: 1001;
    }

    .hero-stats {
        gap: 20px;
    }

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

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

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

    .about-image-wrapper {
        order: -1;
    }

    .project-card {
        grid-template-columns: 1fr;
    }

    .project-card:nth-child(even) {
        direction: ltr;
    }

    .project-image {
        min-height: 200px;
    }

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

    .section {
        padding: 80px 0;
    }
}

@media (max-width: 480px) {
    .hero-stats {
        flex-direction: column;
        gap: 16px;
    }

    .stat-divider {
        width: 40px;
        height: 1px;
    }

    .project-info {
        padding: 24px;
    }

    .skill-category {
        padding: 24px;
    }
}

/* ===== CONTACT GRID ===== */
.contact-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
    max-width: 700px;
    margin: 0 auto;
}

.contact-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 1.5rem 1rem;
    background: rgba(15, 15, 40, 0.6);
    border: 1px solid rgba(5, 217, 232, 0.1);
    border-radius: var(--radius);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    transition: var(--transition);
    text-decoration: none;
    color: var(--text-secondary);
    position: relative;
    overflow: hidden;
}

.contact-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 50% 0%, rgba(255, 42, 109, 0.06) 0%, transparent 60%);
    opacity: 0;
    transition: var(--transition);
}

.contact-card:hover::before {
    opacity: 1;
}

.contact-card-icon {
    width: 28px;
    height: 28px;
    color: var(--text-tertiary);
    transition: var(--transition);
    flex-shrink: 0;
}

.contact-card-platform {
    font-family: var(--font-mono);
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: var(--text-tertiary);
    transition: var(--transition);
}

.contact-card-handle {
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--text-secondary);
    transition: var(--transition);
    word-break: break-all;
    text-align: center;
}

.contact-card:hover {
    border-color: rgba(5, 217, 232, 0.35);
    transform: translateY(-4px);
    box-shadow: 0 8px 30px rgba(5, 217, 232, 0.08), 0 0 60px rgba(255, 42, 109, 0.05);
    color: var(--text-primary);
}

.contact-card:hover .contact-card-icon {
    color: var(--accent);
    filter: drop-shadow(0 0 6px rgba(255, 42, 109, 0.4));
}

.contact-card:hover .contact-card-platform {
    color: var(--accent);
}

.contact-card:hover .contact-card-handle {
    color: var(--text-primary);
}

