/* ========================================
   DESIGN SYSTEM — CYBERPUNK DARK PURPLE
   ======================================== */

/* --- CSS Custom Properties --- */
:root {
    /* Colors — Deep Dark Purple */
    --bg-primary: #080010;
    --bg-secondary: #0d001a;
    --bg-card: rgba(15, 3, 40, 0.55);
    --bg-card-hover: rgba(30, 8, 60, 0.6);
    --bg-nav: rgba(8, 0, 16, 0.92);

    --text-primary: #ddd4ee;
    --text-secondary: #9585b5;
    --text-muted: #5e4e7e;

    --accent-purple: #7c3aed;
    --accent-violet: #a78bfa;
    --accent-magenta: #d946ef;
    --accent-cyan: #22d3ee;
    --accent-pink: #ec4899;
    --accent-blue: #6366f1;

    --gradient-primary: linear-gradient(135deg, #7c3aed, #d946ef, #22d3ee);
    --gradient-hero: linear-gradient(135deg, #5b21b6 0%, #7c3aed 30%, #d946ef 60%, #22d3ee 100%);
    --gradient-glow: linear-gradient(135deg, rgba(124, 58, 237, 0.2), rgba(217, 70, 239, 0.1));
    --gradient-bar: linear-gradient(90deg, #5b21b6, #7c3aed, #d946ef, #22d3ee);

    --glass-bg: rgba(15, 3, 40, 0.45);
    --glass-border: rgba(124, 58, 237, 0.12);
    --glass-border-hover: rgba(124, 58, 237, 0.4);

    /* Neon Glows */
    --neon-purple: 0 0 15px rgba(124, 58, 237, 0.4), 0 0 45px rgba(124, 58, 237, 0.1);
    --neon-purple-strong: 0 0 20px rgba(124, 58, 237, 0.5), 0 0 60px rgba(124, 58, 237, 0.2), 0 0 100px rgba(124, 58, 237, 0.1);
    --neon-cyan: 0 0 15px rgba(34, 211, 238, 0.4), 0 0 45px rgba(34, 211, 238, 0.1);

    /* Typography */
    --font-heading: 'Space Grotesk', sans-serif;
    --font-body: 'Inter', sans-serif;

    /* Spacing */
    --section-padding: 120px 0;
    --container-max: 1200px;
    --container-padding: 0 24px;

    /* Borders */
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 20px;
    --radius-xl: 28px;
    --radius-full: 9999px;

    /* Transitions */
    --transition-fast: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-base: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-slow: 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

/* --- Reset & Base --- */
*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
    scrollbar-width: thin;
    scrollbar-color: var(--accent-purple) var(--bg-primary);
}

::-webkit-scrollbar {
    width: 6px;
}

::-webkit-scrollbar-track {
    background: var(--bg-primary);
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(to bottom, var(--accent-purple), var(--accent-magenta));
    border-radius: var(--radius-full);
}

body {
    font-family: var(--font-body);
    background-color: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.7;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Futuristic grid overlay */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image:
        linear-gradient(rgba(124, 58, 237, 0.025) 1px, transparent 1px),
        linear-gradient(90deg, rgba(124, 58, 237, 0.025) 1px, transparent 1px);
    background-size: 60px 60px;
    z-index: 0;
    pointer-events: none;
}

/* Ambient glow orbs */
body::after {
    content: '';
    position: fixed;
    top: -30%;
    right: -20%;
    width: 700px;
    height: 700px;
    background: radial-gradient(circle, rgba(124, 58, 237, 0.07), transparent 60%);
    border-radius: 50%;
    z-index: 0;
    pointer-events: none;
    animation: float-orb 15s ease-in-out infinite alternate;
}

@keyframes float-orb {
    0% {
        transform: translate(0, 0) scale(1);
    }

    100% {
        transform: translate(-100px, 80px) scale(1.2);
    }
}

a {
    text-decoration: none;
    color: inherit;
    transition: color var(--transition-fast);
}

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

.container {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: var(--container-padding);
}

/* --- Particle Canvas --- */
#particleCanvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    pointer-events: none;
}

/* --- Navigation --- */
#navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    padding: 16px 0;
    transition: all var(--transition-base);
    background: transparent;
}

#navbar.scrolled {
    background: var(--bg-nav);
    backdrop-filter: blur(24px) saturate(1.5);
    -webkit-backdrop-filter: blur(24px) saturate(1.5);
    border-bottom: 1px solid var(--glass-border);
    padding: 10px 0;
    box-shadow: 0 4px 30px rgba(168, 85, 247, 0.08);
}

.nav-container {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: var(--container-padding);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.nav-logo {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-primary);
    letter-spacing: -0.5px;
    transition: var(--transition-base);
    text-shadow: 0 0 20px rgba(168, 85, 247, 0.3);
}

.nav-logo:hover {
    transform: scale(1.05);
    text-shadow: 0 0 30px rgba(168, 85, 247, 0.6);
}

.logo-bracket {
    color: var(--accent-magenta);
    font-weight: 400;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 4px;
    list-style: none;
}

.nav-link {
    padding: 8px 18px;
    font-size: 0.88rem;
    font-weight: 500;
    color: var(--text-secondary);
    border-radius: var(--radius-full);
    transition: all var(--transition-fast);
    position: relative;
    letter-spacing: 0.3px;
}

.nav-link:hover,
.nav-link.active {
    color: var(--text-primary);
    background: rgba(168, 85, 247, 0.1);
}

.nav-link.active {
    color: var(--accent-magenta);
    text-shadow: 0 0 12px rgba(232, 121, 249, 0.4);
}

.hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    z-index: 1001;
}

.hamburger span {
    width: 24px;
    height: 2px;
    background: var(--text-primary);
    border-radius: 2px;
    transition: all var(--transition-base);
}

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

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

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

/* --- Section Common --- */
section {
    position: relative;
    z-index: 1;
    padding: var(--section-padding);
}

.section-header {
    text-align: center;
    margin-bottom: 64px;
}

.section-tag {
    display: inline-block;
    font-family: 'Courier New', monospace;
    font-size: 0.85rem;
    color: var(--accent-cyan);
    margin-bottom: 12px;
    letter-spacing: 2px;
    opacity: 0.7;
    text-shadow: 0 0 10px rgba(34, 211, 238, 0.3);
}

.section-title {
    font-family: var(--font-heading);
    font-size: clamp(2rem, 5vw, 3rem);
    font-weight: 700;
    color: var(--text-primary);
    letter-spacing: -1px;
}

.section-description {
    font-size: 1.1rem;
    color: var(--text-secondary);
    max-width: 550px;
    margin: 16px auto 0;
    line-height: 1.8;
}

.gradient-text {
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: none;
}

/* --- Glass Card --- */
.glass-card {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-lg);
    backdrop-filter: blur(16px) saturate(1.3);
    -webkit-backdrop-filter: blur(16px) saturate(1.3);
    transition: all var(--transition-base);
    position: relative;
    overflow: hidden;
}

.glass-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--accent-magenta), transparent);
    transition: left 0.6s ease;
}

.glass-card:hover::before {
    left: 100%;
}

.glass-card:hover {
    border-color: var(--glass-border-hover);
    box-shadow: var(--neon-purple);
    background: var(--bg-card-hover);
}

/* --- Reveal Animations --- */
.reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

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

/* ========================================
   HERO SECTION
   ======================================== */
#hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 0 24px;
    position: relative;
}

/* Radial glow behind hero */
#hero::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 800px;
    height: 600px;
    background: radial-gradient(ellipse, rgba(168, 85, 247, 0.08) 0%, rgba(232, 121, 249, 0.04) 40%, transparent 70%);
    pointer-events: none;
    z-index: -1;
}

.hero-content {
    max-width: 800px;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 20px;
    background: rgba(232, 121, 249, 0.06);
    border: 1px solid rgba(232, 121, 249, 0.2);
    border-radius: var(--radius-full);
    font-size: 0.85rem;
    color: var(--accent-magenta);
    margin-bottom: 32px;
    font-weight: 500;
}

.badge-dot {
    width: 8px;
    height: 8px;
    background: var(--accent-magenta);
    border-radius: 50%;
    box-shadow: 0 0 8px rgba(232, 121, 249, 0.6);
    animation: pulse-dot 2s ease-in-out infinite;
}

@keyframes pulse-dot {

    0%,
    100% {
        opacity: 1;
        transform: scale(1);
        box-shadow: 0 0 8px rgba(232, 121, 249, 0.6);
    }

    50% {
        opacity: 0.6;
        transform: scale(1.4);
        box-shadow: 0 0 16px rgba(232, 121, 249, 0.8);
    }
}

.hero-title {
    font-family: var(--font-heading);
    font-size: clamp(3rem, 10vw, 6.5rem);
    font-weight: 700;
    line-height: 1.05;
    letter-spacing: -3px;
    margin-bottom: 16px;
    color: var(--text-primary);
    text-shadow: 0 0 60px rgba(168, 85, 247, 0.15);
}

.hero-subtitle {
    font-family: var(--font-heading);
    font-size: clamp(1.1rem, 3vw, 1.6rem);
    color: var(--text-secondary);
    margin-bottom: 24px;
    min-height: 2.5rem;
    font-weight: 400;
}

.cursor {
    animation: blink 1s step-end infinite;
    color: var(--accent-magenta);
    font-weight: 300;
    text-shadow: 0 0 8px rgba(232, 121, 249, 0.6);
}

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

.hero-description {
    font-size: 1.1rem;
    color: var(--text-muted);
    max-width: 600px;
    margin: 0 auto 40px;
    line-height: 1.8;
}

.hero-actions {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    margin-bottom: 48px;
}

/* --- Buttons --- */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 32px;
    border-radius: var(--radius-full);
    font-size: 0.95rem;
    font-weight: 600;
    transition: all var(--transition-base);
    cursor: pointer;
    border: none;
    font-family: var(--font-body);
    position: relative;
    overflow: hidden;
}

.btn-primary {
    background: linear-gradient(135deg, #7c3aed, #a855f7, #e879f9);
    color: #fff;
    box-shadow: 0 4px 25px rgba(168, 85, 247, 0.35);
}

.btn-primary:hover {
    box-shadow: var(--neon-purple-strong);
    transform: translateY(-3px);
}

.btn-secondary {
    background: transparent;
    color: var(--text-primary);
    border: 1px solid rgba(168, 85, 247, 0.3);
}

.btn-secondary:hover {
    border-color: var(--accent-magenta);
    background: rgba(168, 85, 247, 0.06);
    transform: translateY(-3px);
    box-shadow: 0 0 20px rgba(232, 121, 249, 0.15);
}

/* --- Hero Social --- */
.hero-social {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
}

.social-icon {
    width: 46px;
    height: 46px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    border: 1px solid rgba(168, 85, 247, 0.2);
    color: var(--text-secondary);
    transition: all var(--transition-base);
}

.social-icon:hover {
    color: var(--accent-magenta);
    border-color: var(--accent-magenta);
    transform: translateY(-4px);
    box-shadow: 0 0 25px rgba(232, 121, 249, 0.3);
}

/* --- Scroll Indicator --- */
.hero-scroll-indicator {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    color: var(--text-muted);
    font-size: 0.7rem;
    letter-spacing: 3px;
    text-transform: uppercase;
}

.scroll-line {
    width: 1px;
    height: 40px;
    background: linear-gradient(to bottom, var(--accent-purple), var(--accent-magenta));
    animation: scroll-anim 2s ease-in-out infinite;
    box-shadow: 0 0 10px rgba(168, 85, 247, 0.3);
}

@keyframes scroll-anim {
    0% {
        opacity: 1;
        transform: scaleY(1);
    }

    50% {
        opacity: 0.3;
        transform: scaleY(0.4);
    }

    100% {
        opacity: 1;
        transform: scaleY(1);
    }
}

/* ========================================
   ABOUT SECTION
   ======================================== */
#about::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: -30%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(232, 121, 249, 0.05), transparent 60%);
    border-radius: 50%;
    pointer-events: none;
}

.about-grid {
    display: grid;
    grid-template-columns: 280px 1fr;
    grid-template-rows: auto auto;
    gap: 48px;
    align-items: start;
}

.about-image {
    grid-row: 1 / 2;
}

.image-wrapper {
    position: relative;
    width: 250px;
    height: 250px;
    margin: 0 auto;
}

.image-placeholder {
    width: 100%;
    height: 100%;
    border-radius: var(--radius-xl);
    background: linear-gradient(135deg, rgba(168, 85, 247, 0.1), rgba(232, 121, 249, 0.05));
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--glass-border);
    position: relative;
    overflow: hidden;
    box-shadow: inset 0 0 40px rgba(168, 85, 247, 0.05);
}

/* Scanline effect on avatar */
.image-placeholder::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: repeating-linear-gradient(0deg,
            transparent,
            transparent 2px,
            rgba(168, 85, 247, 0.02) 2px,
            rgba(168, 85, 247, 0.02) 4px);
    pointer-events: none;
}

.placeholder-icon {
    font-family: var(--font-heading);
    font-size: 4rem;
    font-weight: 700;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    filter: drop-shadow(0 0 20px rgba(168, 85, 247, 0.3));
}

.image-border {
    position: absolute;
    inset: -4px;
    border-radius: calc(var(--radius-xl) + 4px);
    border: 2px solid transparent;
    background: var(--gradient-primary) border-box;
    -webkit-mask: linear-gradient(#fff 0 0) padding-box, linear-gradient(#fff 0 0);
    mask: linear-gradient(#fff 0 0) padding-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: destination-out;
    mask-composite: exclude;
    animation: rotate-border 6s linear infinite;
}

@keyframes rotate-border {
    0% {
        filter: hue-rotate(0deg);
    }

    100% {
        filter: hue-rotate(360deg);
    }
}

.about-text {
    grid-column: 2;
    grid-row: 1;
}

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

.about-text strong {
    color: var(--accent-violet);
    font-weight: 600;
}

.about-stats {
    grid-column: 1 / -1;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.stat-card {
    text-align: center;
    padding: 32px 24px;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-lg);
    transition: all var(--transition-base);
    position: relative;
    overflow: hidden;
}

/* Animated corner accent */
.stat-card::before {
    content: '';
    position: absolute;
    top: -1px;
    left: -1px;
    width: 30px;
    height: 30px;
    border-top: 2px solid var(--accent-purple);
    border-left: 2px solid var(--accent-purple);
    border-radius: var(--radius-lg) 0 0 0;
    opacity: 0;
    transition: opacity var(--transition-base);
}

.stat-card::after {
    content: '';
    position: absolute;
    bottom: -1px;
    right: -1px;
    width: 30px;
    height: 30px;
    border-bottom: 2px solid var(--accent-magenta);
    border-right: 2px solid var(--accent-magenta);
    border-radius: 0 0 var(--radius-lg) 0;
    opacity: 0;
    transition: opacity var(--transition-base);
}

.stat-card:hover::before,
.stat-card:hover::after {
    opacity: 1;
}

.stat-card:hover {
    border-color: var(--accent-purple);
    box-shadow: var(--neon-purple);
    transform: translateY(-4px);
}

.stat-number {
    font-family: var(--font-heading);
    font-size: 2.5rem;
    font-weight: 700;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    filter: drop-shadow(0 0 10px rgba(168, 85, 247, 0.3));
}

.stat-suffix {
    font-family: var(--font-heading);
    font-size: 2rem;
    font-weight: 700;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

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

/* ========================================
   EXPERIENCE SECTION
   ======================================== */
#experience {
    background: radial-gradient(ellipse at top, rgba(168, 85, 247, 0.04), transparent 60%);
}

.timeline {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
    padding-left: 40px;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 15px;
    top: 0;
    bottom: 0;
    width: 2px;
    background: linear-gradient(to bottom, var(--accent-purple), var(--accent-magenta), var(--accent-cyan), transparent);
    box-shadow: 0 0 12px rgba(168, 85, 247, 0.2);
}

.timeline-item {
    position: relative;
    margin-bottom: 48px;
}

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

.timeline-dot {
    position: absolute;
    left: -33px;
    top: 28px;
    width: 14px;
    height: 14px;
    background: var(--accent-magenta);
    border-radius: 50%;
    border: 3px solid var(--bg-primary);
    box-shadow: 0 0 20px rgba(232, 121, 249, 0.6), 0 0 40px rgba(232, 121, 249, 0.2);
    z-index: 2;
}

.timeline-content {
    padding: 32px;
}

.timeline-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
}

.timeline-date {
    font-size: 0.85rem;
    color: var(--accent-cyan);
    font-weight: 500;
    letter-spacing: 0.5px;
    text-shadow: 0 0 8px rgba(34, 211, 238, 0.2);
}

.timeline-badge {
    padding: 3px 12px;
    background: rgba(232, 121, 249, 0.08);
    color: var(--accent-magenta);
    border-radius: var(--radius-full);
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    border: 1px solid rgba(232, 121, 249, 0.2);
    text-shadow: 0 0 8px rgba(232, 121, 249, 0.3);
}

.timeline-title {
    font-family: var(--font-heading);
    font-size: 1.3rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 4px;
}

.timeline-company {
    font-size: 0.95rem;
    color: var(--accent-violet);
    font-weight: 500;
    margin-bottom: 12px;
}

.timeline-description {
    font-size: 0.95rem;
    color: var(--text-secondary);
    line-height: 1.7;
    margin-bottom: 16px;
}

.timeline-tags,
.project-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.tag {
    padding: 4px 14px;
    background: rgba(168, 85, 247, 0.06);
    border: 1px solid rgba(168, 85, 247, 0.15);
    border-radius: var(--radius-full);
    font-size: 0.8rem;
    color: var(--accent-violet);
    font-weight: 500;
    transition: all var(--transition-fast);
}

.tag:hover {
    border-color: var(--accent-magenta);
    box-shadow: 0 0 10px rgba(232, 121, 249, 0.15);
}

/* ========================================
   PROJECTS SECTION
   ======================================== */
.projects-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 28px;
}

.project-card {
    padding: 36px;
    position: relative;
    overflow: hidden;
    cursor: default;
}

/* Animated top bar */
.project-card>.project-icon~* {
    position: relative;
    z-index: 1;
}

.project-card::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: var(--gradient-primary);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform var(--transition-slow);
    box-shadow: 0 0 15px rgba(168, 85, 247, 0.4);
}

.project-card:hover::after {
    transform: scaleX(1);
}

.project-icon {
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(168, 85, 247, 0.06);
    border-radius: var(--radius-md);
    color: var(--accent-violet);
    margin-bottom: 24px;
    transition: all var(--transition-base);
    border: 1px solid rgba(168, 85, 247, 0.1);
}

.project-card:hover .project-icon {
    background: rgba(168, 85, 247, 0.12);
    transform: scale(1.05);
    box-shadow: 0 0 20px rgba(168, 85, 247, 0.2);
    color: var(--accent-magenta);
}

.project-title {
    font-family: var(--font-heading);
    font-size: 1.3rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 4px;
}

.project-subtitle {
    font-size: 0.9rem;
    color: var(--accent-magenta);
    margin-bottom: 16px;
    font-weight: 500;
}

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

.project-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--accent-violet);
    font-weight: 600;
    font-size: 0.9rem;
    margin-top: auto;
    transition: all var(--transition-fast);
}

.project-link:hover {
    color: var(--accent-magenta);
    gap: 10px;
    text-shadow: 0 0 10px rgba(232, 121, 249, 0.3);
}

/* ========================================
   SKILLS SECTION
   ======================================== */
#skills {
    background: radial-gradient(ellipse at bottom, rgba(232, 121, 249, 0.03), transparent 60%);
}

.skills-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 28px;
    margin-bottom: 48px;
}

.skill-category {
    padding: 32px;
}

.skill-category-header {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 24px;
}

.skill-icon-wrapper {
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(168, 85, 247, 0.08);
    border-radius: var(--radius-md);
    color: var(--accent-violet);
    border: 1px solid rgba(168, 85, 247, 0.12);
}

.skill-category h3 {
    font-family: var(--font-heading);
    font-size: 1.15rem;
    font-weight: 600;
    color: var(--text-primary);
}

.skill-bars {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.skill-bar-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 6px;
    font-size: 0.85rem;
}

.skill-bar-info span:first-child {
    color: var(--text-secondary);
    font-weight: 500;
}

.skill-bar-info span:last-child {
    color: var(--accent-magenta);
    font-weight: 600;
    font-size: 0.8rem;
    text-shadow: 0 0 6px rgba(232, 121, 249, 0.3);
}

.skill-bar-track {
    width: 100%;
    height: 5px;
    background: rgba(168, 85, 247, 0.06);
    border-radius: var(--radius-full);
    overflow: hidden;
}

.skill-bar-fill {
    height: 100%;
    width: 0%;
    background: var(--gradient-bar);
    border-radius: var(--radius-full);
    transition: width 1.5s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    box-shadow: 0 0 12px rgba(168, 85, 247, 0.4), 0 0 4px rgba(232, 121, 249, 0.6);
}

/* Extra Skills Pills */
.extra-skills {
    text-align: center;
}

.extra-skills-title {
    font-family: var(--font-heading);
    font-size: 1.1rem;
    color: var(--text-secondary);
    margin-bottom: 20px;
    font-weight: 500;
}

.skill-pills {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px;
}

.skill-pill {
    padding: 10px 24px;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-full);
    font-size: 0.9rem;
    color: var(--text-secondary);
    font-weight: 500;
    transition: all var(--transition-base);
}

.skill-pill:hover {
    color: var(--accent-magenta);
    border-color: var(--accent-purple);
    background: rgba(168, 85, 247, 0.06);
    transform: translateY(-2px);
    box-shadow: 0 0 15px rgba(168, 85, 247, 0.15);
}

/* ========================================
   EDUCATION SECTION
   ======================================== */
#education {
    background: radial-gradient(ellipse at top right, rgba(129, 140, 248, 0.04), transparent 60%);
}

/* ========================================
   CERTIFICATIONS SECTION
   ======================================== */
#certifications {
    background: radial-gradient(ellipse at bottom left, rgba(168, 85, 247, 0.04), transparent 60%);
}

.certifications-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    max-width: 1000px;
    margin: 0 auto;
}

.cert-card {
    padding: 28px 24px;
    text-align: center;
    transition: all var(--transition-base);
}

.cert-card:hover {
    transform: translateY(-4px);
}

.cert-icon {
    font-size: 2rem;
    margin-bottom: 12px;
    filter: drop-shadow(0 0 8px rgba(168, 85, 247, 0.3));
}

.cert-card h4 {
    font-family: var(--font-heading);
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 6px;
    line-height: 1.4;
}

.cert-card p {
    font-size: 0.8rem;
    color: var(--text-muted);
    font-weight: 500;
}

/* ========================================
   CONTACT SECTION
   ======================================== */
#contact {
    background: radial-gradient(ellipse at center, rgba(168, 85, 247, 0.05), transparent 50%);
}

.contact-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
    max-width: 900px;
    margin: 0 auto;
}

.contact-card {
    padding: 36px 24px;
    text-align: center;
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.contact-card::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: var(--gradient-primary);
    transform: scaleX(0);
    transition: transform var(--transition-base);
    box-shadow: 0 0 10px rgba(168, 85, 247, 0.4);
}

.contact-card:hover::after {
    transform: scaleX(1);
}

.contact-icon {
    width: 56px;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(168, 85, 247, 0.06);
    border-radius: 50%;
    color: var(--accent-violet);
    margin: 0 auto 16px;
    transition: all var(--transition-base);
    border: 1px solid rgba(168, 85, 247, 0.1);
}

.contact-card:hover .contact-icon {
    background: rgba(168, 85, 247, 0.12);
    transform: scale(1.1);
    color: var(--accent-magenta);
    box-shadow: 0 0 20px rgba(232, 121, 249, 0.25);
}

.contact-card h3 {
    font-family: var(--font-heading);
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 6px;
}

.contact-card p {
    font-size: 0.8rem;
    color: var(--text-muted);
    word-break: break-all;
}

/* ========================================
   FOOTER
   ======================================== */
#footer {
    position: relative;
    z-index: 1;
    padding: 48px 0;
    border-top: 1px solid var(--glass-border);
}

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

.footer-logo {
    font-family: var(--font-heading);
    font-size: 1.3rem;
    font-weight: 700;
    display: inline-block;
    margin-bottom: 12px;
    text-shadow: 0 0 15px rgba(168, 85, 247, 0.3);
}

.footer-text {
    font-size: 0.9rem;
    color: var(--text-secondary);
    margin-bottom: 4px;
}

.heart {
    color: var(--accent-magenta);
    animation: heartbeat 1.5s ease-in-out infinite;
    display: inline-block;
    filter: drop-shadow(0 0 6px rgba(232, 121, 249, 0.5));
}

@keyframes heartbeat {

    0%,
    100% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.2);
    }
}

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

/* ========================================
   BACK TO TOP BUTTON
   ======================================== */
.back-to-top {
    position: fixed;
    bottom: 32px;
    right: 32px;
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(124, 58, 237, 0.15);
    border: 1px solid rgba(124, 58, 237, 0.3);
    border-radius: 50%;
    color: var(--accent-violet);
    z-index: 999;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: all var(--transition-base);
    backdrop-filter: blur(12px);
    cursor: pointer;
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.back-to-top:hover {
    background: rgba(124, 58, 237, 0.3);
    border-color: var(--accent-magenta);
    color: var(--accent-magenta);
    box-shadow: 0 0 25px rgba(217, 70, 239, 0.3);
    transform: translateY(-4px);
}

/* ========================================
   RESPONSIVE
   ======================================== */
@media (max-width: 1024px) {
    .skills-grid {
        grid-template-columns: repeat(2, 1fr);
    }

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

@media (max-width: 768px) {
    :root {
        --section-padding: 80px 0;
    }

    /* Hamburger */
    .hamburger {
        display: flex;
    }

    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        width: 280px;
        height: 100vh;
        background: var(--bg-secondary);
        flex-direction: column;
        align-items: flex-start;
        padding: 100px 32px 32px;
        gap: 4px;
        transition: right var(--transition-base);
        border-left: 1px solid var(--glass-border);
        box-shadow: -10px 0 40px rgba(168, 85, 247, 0.1);
    }

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

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

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

    .about-text {
        grid-column: 1;
        grid-row: 2;
    }

    .about-stats {
        grid-column: 1;
    }

    .image-wrapper {
        width: 200px;
        height: 200px;
    }

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

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

    /* Contact */
    .contact-grid {
        grid-template-columns: 1fr;
        max-width: 400px;
    }

    /* Timeline */
    .timeline {
        padding-left: 30px;
    }

    .timeline::before {
        left: 10px;
    }

    .timeline-dot {
        left: -28px;
    }

    .timeline-content {
        padding: 24px;
    }

    /* Hero */
    .hero-title {
        letter-spacing: -1px;
    }

    .hero-actions {
        flex-direction: column;
        gap: 12px;
    }

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

    body::before {
        background-size: 40px 40px;
    }

    .back-to-top {
        bottom: 20px;
        right: 20px;
        width: 42px;
        height: 42px;
    }
}

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

    .stat-card {
        padding: 24px 16px;
    }

    .hero-title {
        font-size: 2.5rem;
    }
}