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

:root {
    --bg: #0a0a0f;
    --bg2: #111118;
    --bg3: #1a1a24;
    --accent: #6c63ff;
    --accent2: #ff6584;
    --accent3: #43e97b;
    --text: #f0f0f8;
    --muted: #7a7a9a;
    --border: #2a2a3a;
    --card: #16161f;
}

html {
    scroll-behavior: smooth
}

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

/* ===== PAGE LOADER ===== */
#loader {
    position: fixed;
    inset: 0;
    z-index: 10000;
    background: var(--bg);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2rem;
    transition: opacity 0.6s ease, visibility 0.6s ease;
}

#loader.hidden {
    opacity: 0;
    visibility: hidden
}

.loader-logo {
    font-size: 2.5rem;
    font-weight: 800;
    background: linear-gradient(135deg, var(--accent), var(--accent2));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: logoPulse 1s ease-in-out infinite alternate;
}

@keyframes logoPulse {
    from {
        opacity: 0.4;
        transform: scale(0.97)
    }

    to {
        opacity: 1;
        transform: scale(1)
    }
}

.loader-bar-wrap {
    width: 200px;
    height: 2px;
    background: var(--border);
    border-radius: 100px;
    overflow: hidden
}

.loader-bar {
    height: 100%;
    width: 0;
    background: linear-gradient(90deg, var(--accent), var(--accent2));
    border-radius: 100px;
    transition: width 0.05s linear
}

.loader-pct {
    font-family: 'DM Mono', monospace;
    font-size: 0.75rem;
    color: var(--muted)
}

/* ===== CUSTOM CURSOR ===== */
.cursor {
    position: fixed;
    width: 10px;
    height: 10px;
    background: var(--accent);
    border-radius: 50%;
    pointer-events: none;
    z-index: 9999;
    transform: translate(-50%, -50%);
    transition: transform 0.15s, width 0.2s, height 0.2s, background 0.2s;
    mix-blend-mode: difference
}

.cursor-ring {
    position: fixed;
    width: 38px;
    height: 38px;
    border: 1.5px solid rgba(108, 99, 255, 0.6);
    border-radius: 50%;
    pointer-events: none;
    z-index: 9998;
    transform: translate(-50%, -50%);
    transition: width 0.3s, height 0.3s, border-color 0.3s;
    opacity: 0.8
}

.cursor.hovered {
    width: 6px;
    height: 6px;
    background: var(--accent2)
}

.cursor-ring.hovered {
    width: 52px;
    height: 52px;
    border-color: var(--accent2)
}

.cursor.clicked {
    transform: translate(-50%, -50%) scale(0.7)
}

/* ===== NAV ===== */
nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    padding: 1.2rem 4rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: background 0.4s, padding 0.4s, box-shadow 0.4s;
}

nav.scrolled {
    background: rgba(10, 10, 15, 0.92);
    backdrop-filter: blur(24px);
    padding: 0.9rem 4rem;
    box-shadow: 0 1px 0 var(--border);
}

.logo {
    font-size: 1.3rem;
    font-weight: 800;
    letter-spacing: -0.02em;
    background: linear-gradient(135deg, var(--accent), var(--accent2));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    position: relative;
}

.logo::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--accent), var(--accent2));
    transition: width 0.4s ease;
}

.logo:hover::after {
    width: 100%
}

.nav-links {
    display: flex;
    gap: 2.5rem;
    list-style: none
}

.nav-links a {
    color: var(--muted);
    font-size: 0.82rem;
    font-weight: 500;
    text-decoration: none;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    transition: color 0.25s;
    position: relative;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--accent);
    transition: width 0.3s cubic-bezier(.4, 0, .2, 1)
}

.nav-links a:hover {
    color: var(--text)
}

.nav-links a:hover::after,
.nav-links a.active::after {
    width: 100%
}

.nav-links a.active {
    color: var(--text)
}

.nav-btn {
    padding: 0.5rem 1.2rem;
    border: 1px solid var(--accent);
    border-radius: 6px;
    color: var(--accent);
    font-size: 0.78rem;
    font-weight: 600;
    text-decoration: none;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    transition: background 0.25s, color 0.25s, transform 0.2s, box-shadow 0.2s;
    position: relative;
    overflow: hidden;
}

.nav-btn::before {
    content: '';
    position: absolute;
    inset: 0;
    background: var(--accent);
    transform: translateX(-100%);
    transition: transform 0.3s ease;
    z-index: -1;
}

.nav-btn:hover::before {
    transform: translateX(0)
}

.nav-btn:hover {
    color: #fff;
    transform: translateY(-1px);
    box-shadow: 0 4px 16px rgba(108, 99, 255, 0.3)
}

/* ===== HAMBURGER ===== */
.hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    padding: 4px;
    background: none;
    border: none;
    z-index: 200
}

.hamburger span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--text);
    border-radius: 2px;
    transition: transform 0.35s cubic-bezier(.4, 0, .2, 1), opacity 0.2s
}

.hamburger.open span:nth-child(1) {
    transform: translateY(7px) rotate(45deg)
}

.hamburger.open span:nth-child(2) {
    opacity: 0;
    transform: scaleX(0)
}

.hamburger.open span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg)
}

/* ===== MOBILE MENU ===== */
.mobile-menu {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 150;
    background: rgba(10, 10, 15, 0.98);
    backdrop-filter: blur(24px);
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2.5rem;
    display: flex;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.4s ease, visibility 0.4s ease;
}

.mobile-menu.open {
    opacity: 1;
    visibility: visible
}

.mobile-menu a {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--muted);
    text-decoration: none;
    letter-spacing: -0.02em;
    transition: color 0.2s, transform 0.2s;
    transform: translateY(20px);
}

.mobile-menu.open a {
    transform: translateY(0)
}

.mobile-menu a:hover {
    color: var(--text)
}

.mobile-menu .nav-btn {
    font-size: 1rem;
    padding: 0.8rem 2rem
}

/* ===== PARTICLE CANVAS ===== */
#particles-canvas {
    position: absolute;
    inset: 0;
    z-index: 0;
    pointer-events: none
}

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

.hero-bg {
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse 80% 60% at 60% 40%, rgba(108, 99, 255, 0.13) 0%, transparent 70%),
        radial-gradient(ellipse 50% 50% at 20% 80%, rgba(255, 101, 132, 0.09) 0%, transparent 60%);
    animation: heroBgPulse 8s ease-in-out infinite alternate;
}

@keyframes heroBgPulse {
    from {
        background: radial-gradient(ellipse 80% 60% at 60% 40%, rgba(108, 99, 255, 0.13) 0%, transparent 70%), radial-gradient(ellipse 50% 50% at 20% 80%, rgba(255, 101, 132, 0.09) 0%, transparent 60%)
    }

    to {
        background: radial-gradient(ellipse 80% 60% at 65% 35%, rgba(108, 99, 255, 0.18) 0%, transparent 70%), radial-gradient(ellipse 50% 50% at 25% 75%, rgba(255, 101, 132, 0.13) 0%, transparent 60%)
    }
}

.grid-overlay {
    position: absolute;
    inset: 0;
    background-image: linear-gradient(rgba(108, 99, 255, 0.05) 1px, transparent 1px), linear-gradient(90deg, rgba(108, 99, 255, 0.05) 1px, transparent 1px);
    background-size: 60px 60px;
    animation: gridShift 20s linear infinite;
}

@keyframes gridShift {
    from {
        background-position: 0 0
    }

    to {
        background-position: 60px 60px
    }
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 700px
}

/* Hero entrance animations */
.hero-tag {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 0.4rem 1rem;
    border: 1px solid var(--border);
    border-radius: 100px;
    font-size: 0.75rem;
    color: var(--muted);
    letter-spacing: 0.1em;
    text-transform: uppercase;
    margin-bottom: 2rem;
    font-family: 'DM Mono', monospace;
    opacity: 0;
    transform: translateY(20px);
    animation: fadeUp 0.7s 0.3s cubic-bezier(.4, 0, .2, 1) forwards;
}

.tag-dot {
    width: 8px;
    height: 8px;
    background: var(--accent3);
    border-radius: 50%;
    animation: pulse 2s infinite
}

@keyframes pulse {

    0%,
    100% {
        opacity: 1;
        box-shadow: 0 0 0 0 rgba(67, 233, 123, 0.4)
    }

    50% {
        opacity: 0.5;
        box-shadow: 0 0 0 6px rgba(67, 233, 123, 0)
    }
}

.hero h1 {
    font-size: clamp(3rem, 6vw, 5.5rem);
    font-weight: 800;
    line-height: 1.0;
    letter-spacing: -0.04em;
    margin-bottom: 1.5rem;
    opacity: 0;
    transform: translateY(30px);
    animation: fadeUp 0.8s 0.5s cubic-bezier(.4, 0, .2, 1) forwards;
}

.hero h1 span {
    display: block;
    background: linear-gradient(135deg, var(--accent) 0%, var(--accent2) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-size: 200% auto;
    animation: gradientShift 4s linear infinite;
}

@keyframes gradientShift {
    0% {
        background-position: 0% center
    }

    100% {
        background-position: 200% center
    }
}

.hero-sub {
    font-size: 1.1rem;
    color: var(--muted);
    line-height: 1.7;
    margin-bottom: 2.5rem;
    font-weight: 400;
    max-width: 520px;
    opacity: 0;
    transform: translateY(20px);
    animation: fadeUp 0.7s 0.7s cubic-bezier(.4, 0, .2, 1) forwards;
}

.hero-sub em {
    color: var(--text);
    font-style: normal;
    font-weight: 600
}

.typed-wrapper {
    display: inline;
    color: var(--accent)
}

.typed-cursor {
    display: inline-block;
    width: 2px;
    height: 1em;
    background: var(--accent);
    vertical-align: text-bottom;
    margin-left: 2px;
    animation: blink 0.8s infinite
}

@keyframes blink {

    0%,
    100% {
        opacity: 1
    }

    50% {
        opacity: 0
    }
}

.hero-actions {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    opacity: 0;
    transform: translateY(20px);
    animation: fadeUp 0.7s 0.9s cubic-bezier(.4, 0, .2, 1) forwards;
}

@keyframes fadeUp {
    to {
        opacity: 1;
        transform: translateY(0)
    }
}

/* Magnetic buttons */
.btn-primary {
    padding: 0.85rem 2rem;
    background: var(--accent);
    color: #fff;
    border: none;
    border-radius: 8px;
    font-size: 0.9rem;
    font-weight: 700;
    text-decoration: none;
    font-family: 'Syne', sans-serif;
    transition: box-shadow 0.2s;
    box-shadow: 0 4px 24px rgba(108, 99, 255, 0.3);
    cursor: none;
    position: relative;
    overflow: hidden;
    display: inline-block;
}

.btn-primary::after {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(255, 255, 255, 0.15);
    transform: translateX(-100%) skewX(-15deg);
    transition: transform 0.4s ease;
}

.btn-primary:hover::after {
    transform: translateX(150%) skewX(-15deg)
}

.btn-primary:hover {
    box-shadow: 0 8px 32px rgba(108, 99, 255, 0.45)
}

.btn-secondary {
    padding: 0.85rem 2rem;
    background: transparent;
    color: var(--text);
    border: 1px solid var(--border);
    border-radius: 8px;
    font-size: 0.9rem;
    font-weight: 600;
    text-decoration: none;
    font-family: 'Syne', sans-serif;
    transition: border-color 0.25s, background 0.25s;
    cursor: none;
    display: inline-block;
}

.btn-secondary:hover {
    border-color: var(--accent);
    background: rgba(108, 99, 255, 0.06)
}

.hero-stats {
    display: flex;
    gap: 3rem;
    margin-top: 3.5rem;
    padding-top: 2.5rem;
    border-top: 1px solid var(--border);
    opacity: 0;
    transform: translateY(20px);
    animation: fadeUp 0.7s 1.1s cubic-bezier(.4, 0, .2, 1) forwards;
}

.stat-item {
    position: relative
}

.stat-num {
    font-size: 2rem;
    font-weight: 800;
    color: var(--text);
    letter-spacing: -0.03em
}

.stat-num span {
    color: var(--accent);
    font-size: 1.5rem
}

.stat-label {
    font-size: 0.75rem;
    color: var(--muted);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-top: 2px
}

/* ===== HERO VISUAL (floating code) ===== */
.hero-visual {
    position: absolute;
    right: 4rem;
    top: 50%;
    transform: translateY(-50%);
    width: 380px;
    z-index: 1;
    opacity: 0;
    animation: floatIn 1s 1.2s cubic-bezier(.4, 0, .2, 1) forwards;
}

@keyframes floatIn {
    to {
        opacity: 1
    }
}

.code-card {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 1.5rem;
    font-family: 'DM Mono', monospace;
    font-size: 0.78rem;
    line-height: 1.8;
    box-shadow: 0 24px 64px rgba(0, 0, 0, 0.5);
    animation: floatCard 6s ease-in-out infinite;
}

@keyframes floatCard {

    0%,
    100% {
        transform: translateY(0) rotate(0deg)
    }

    50% {
        transform: translateY(-12px) rotate(0.5deg)
    }
}

.code-header {
    display: flex;
    gap: 6px;
    margin-bottom: 1rem
}

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

.dot.r {
    background: #ff5f57
}

.dot.y {
    background: #febc2e
}

.dot.g {
    background: #28c840
}

.kw {
    color: #c792ea
}

.fn {
    color: #82aaff
}

.str {
    color: #c3e88d
}

.num {
    color: #f78c6c
}

.cm {
    color: #546e7a;
    font-style: italic
}

.op {
    color: #89ddff
}

.var {
    color: var(--text)
}

/* Typing line in code card */
.code-line {
    opacity: 0
}

.code-line.visible {
    animation: codeFadeIn 0.3s forwards
}

@keyframes codeFadeIn {
    to {
        opacity: 1
    }
}

/* ===== SECTION SHARED ===== */
section {
    padding: 6rem 4rem
}

.section-label {
    display: inline-block;
    font-family: 'DM Mono', monospace;
    font-size: 0.72rem;
    color: var(--accent);
    letter-spacing: 0.15em;
    text-transform: uppercase;
    margin-bottom: 1rem;
}

.section-title {
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 800;
    letter-spacing: -0.03em;
    margin-bottom: 0.5rem
}

.section-sub {
    color: var(--muted);
    font-size: 1rem;
    margin-bottom: 3.5rem;
    font-weight: 400
}

/* ===== SCROLL REVEAL VARIANTS ===== */
.reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.7s cubic-bezier(.4, 0, .2, 1), transform 0.7s cubic-bezier(.4, 0, .2, 1)
}

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

.reveal-left {
    opacity: 0;
    transform: translateX(-50px);
    transition: opacity 0.7s, transform 0.7s
}

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

.reveal-right {
    opacity: 0;
    transform: translateX(50px);
    transition: opacity 0.7s, transform 0.7s
}

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

.reveal-scale {
    opacity: 0;
    transform: scale(0.88);
    transition: opacity 0.6s, transform 0.6s
}

.reveal-scale.visible {
    opacity: 1;
    transform: scale(1)
}

/* Stagger delays */
.d1 {
    transition-delay: 0.1s
}

.d2 {
    transition-delay: 0.2s
}

.d3 {
    transition-delay: 0.3s
}

.d4 {
    transition-delay: 0.4s
}

/* ===== SKILLS ===== */
.skills-section {
    background: var(--bg2)
}

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

.skill-card {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 1.5rem;
    transition: border-color 0.3s;
    position: relative;
    overflow: hidden;
    transform-style: preserve-3d;
}

.skill-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    opacity: 0;
    transition: opacity 0.3s
}

.skill-card.c1::before {
    background: linear-gradient(90deg, var(--accent), #a78bfa)
}

.skill-card.c2::before {
    background: linear-gradient(90deg, var(--accent2), #fb7185)
}

.skill-card.c3::before {
    background: linear-gradient(90deg, var(--accent3), #4ade80)
}

.skill-card.c4::before {
    background: linear-gradient(90deg, #fbbf24, #f59e0b)
}

.skill-card:hover {
    border-color: #3a3a4a
}

.skill-card:hover::before {
    opacity: 1
}

/* Tilt card glow */
.skill-card::after {
    content: '';
    position: absolute;
    inset: 0;
    opacity: 0;
    background: radial-gradient(circle at var(--mx, 50%) var(--my, 50%), rgba(108, 99, 255, 0.08) 0%, transparent 60%);
    transition: opacity 0.3s;
    pointer-events: none;
}

.skill-card:hover::after {
    opacity: 1
}

.skill-icon {
    font-size: 2rem;
    margin-bottom: 1rem
}

.skill-name {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 0.5rem
}

.skill-desc {
    font-size: 0.82rem;
    color: var(--muted);
    line-height: 1.6;
    margin-bottom: 1.2rem
}

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

.tag {
    font-size: 0.7rem;
    font-family: 'DM Mono', monospace;
    padding: 3px 10px;
    border: 1px solid var(--border);
    border-radius: 100px;
    color: var(--muted);
    transition: border-color 0.2s, color 0.2s
}

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

.skill-bar-wrap {
    margin-top: 0.8rem
}

.skill-bar {
    height: 3px;
    background: var(--border);
    border-radius: 100px;
    overflow: hidden
}

.skill-bar-fill {
    height: 100%;
    border-radius: 100px;
    width: 0;
    transition: width 1.4s cubic-bezier(.4, 0, .2, 1)
}

.c1 .skill-bar-fill {
    background: linear-gradient(90deg, var(--accent), #a78bfa)
}

.c2 .skill-bar-fill {
    background: linear-gradient(90deg, var(--accent2), #fb7185)
}

.c3 .skill-bar-fill {
    background: linear-gradient(90deg, var(--accent3), #4ade80)
}

.c4 .skill-bar-fill {
    background: linear-gradient(90deg, #fbbf24, #f59e0b)
}

.skill-pct {
    font-family: 'DM Mono', monospace;
    font-size: 0.7rem;
    color: var(--muted);
    float: right;
    margin-top: -1.1rem
}

/* ===== PROJECTS ===== */
.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
    gap: 2rem
}

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

.project-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(108, 99, 255, 0.04), transparent);
    opacity: 0;
    transition: opacity 0.3s;
    z-index: 0;
}

.project-card:hover {
    border-color: #3a3a4a
}

.project-card:hover::before {
    opacity: 1
}

.project-thumb {
    height: 200px;
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.p1 .project-thumb {
    background: linear-gradient(135deg, #1a1a3e, #2d1b69)
}

.p2 .project-thumb {
    background: linear-gradient(135deg, #1a1f2e, #1e3a5f)
}

.p3 .project-thumb {
    background: linear-gradient(135deg, #1a2e1f, #1e5f3a)
}

.p4 .project-thumb {
    background: linear-gradient(135deg, #2e1a1a, #5f1e1e)
}

.thumb-icon {
    /* font-size: 4rem; */
    opacity: 0.8;
    transition: transform 0.4s cubic-bezier(.4, 0, .2, 1)
}

.project_img{
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s cubic-bezier(.4, 0, .2, 1);
}

.project-card:hover .thumb-icon {
    transform: scale(1.15) rotate(5deg)
}

.thumb-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, transparent 40%, rgba(0, 0, 0, 0.5));
}

.project-badge {
    position: absolute;
    top: 1rem;
    right: 1rem;
    font-size: 0.65rem;
    font-family: 'DM Mono', monospace;
    letter-spacing: 0.1em;
    padding: 4px 10px;
    border-radius: 100px;
    text-transform: uppercase;
    font-weight: 500;
}

.badge-live {
    background: rgba(67, 233, 123, 0.15);
    color: var(--accent3);
    border: 1px solid rgba(67, 233, 123, 0.3)
}

.badge-wip {
    background: rgba(251, 191, 36, 0.15);
    color: #fbbf24;
    border: 1px solid rgba(251, 191, 36, 0.3)
}

.project-body {
    padding: 1.5rem;
    position: relative;
    z-index: 1
}

.project-name {
    font-size: 1.15rem;
    font-weight: 700;
    margin-bottom: 0.5rem
}

.project-desc {
    font-size: 0.83rem;
    color: var(--muted);
    line-height: 1.6;
    margin-bottom: 1.2rem
}

.project-stack {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 1.2rem
}

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

.plink {
    font-size: 0.78rem;
    color: var(--accent);
    text-decoration: none;
    font-weight: 600;
    letter-spacing: 0.05em;
    transition: color 0.2s, transform 0.2s;
    display: inline-block
}

.plink:hover {
    color: var(--accent2);
    transform: translateX(3px)
}

/* ===== TIMELINE ===== */
.timeline-section {
    background: var(--bg2)
}

.timeline {
    max-width: 700px;
    position: relative;
    padding-left: 2rem
}

.timeline::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 1px;
    background: var(--border)
}

.timeline-progress {
    position: absolute;
    left: 0;
    top: 0;
    width: 1px;
    height: 0;
    background: linear-gradient(to bottom, var(--accent), var(--accent2));
    transition: height 0.05s linear;
    z-index: 1
}

.t-item {
    position: relative;
    padding: 0 0 2.5rem 2.5rem
}

.t-dot {
    position: absolute;
    left: -6px;
    top: 6px;
    width: 13px;
    height: 13px;
    border-radius: 50%;
    background: var(--border);
    border: 2px solid var(--bg2);
    transition: background 0.4s, box-shadow 0.4s;
    z-index: 2;
}

.t-item.active .t-dot {
    background: var(--accent);
    box-shadow: 0 0 0 4px rgba(108, 99, 255, 0.2)
}

.t-date {
    font-family: 'DM Mono', monospace;
    font-size: 0.72rem;
    color: var(--accent);
    letter-spacing: 0.1em;
    margin-bottom: 0.4rem
}

.t-title {
    font-size: 1.05rem;
    font-weight: 700;
    margin-bottom: 0.2rem
}

.t-place {
    font-size: 0.82rem;
    color: var(--accent2);
    font-weight: 600;
    margin-bottom: 0.5rem
}

.t-desc {
    font-size: 0.83rem;
    color: var(--muted);
    line-height: 1.7
}

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

.contact-card {
    max-width: 600px;
    margin: 0 auto;
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 20px;
    padding: 3rem;
    position: relative;
    overflow: hidden;
}

.contact-card::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: conic-gradient(from 0deg, transparent 0deg, rgba(108, 99, 255, 0.04) 60deg, transparent 120deg);
    animation: contactSpin 8s linear infinite;
    pointer-events: none;
}

@keyframes contactSpin {
    to {
        transform: rotate(360deg)
    }
}

.contact-text {
    color: var(--muted);
    font-size: 1rem;
    line-height: 1.7;
    margin-bottom: 2rem;
    position: relative;
    z-index: 1
}

.contact-links {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
    position: relative;
    z-index: 1
}

.c-link {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 0.6rem 1.2rem;
    background: var(--bg3);
    border: 1px solid var(--border);
    border-radius: 8px;
    font-size: 0.82rem;
    color: var(--text);
    text-decoration: none;
    transition: border-color 0.25s, color 0.25s, transform 0.2s, box-shadow 0.2s;
    font-weight: 500;
    cursor: none;
}

.c-link:hover {
    border-color: var(--accent);
    color: var(--accent);
    transform: translateY(-3px);
    box-shadow: 0 8px 24px rgba(108, 99, 255, 0.15)
}

.c-link span {
    font-size: 1.1rem
}

/* ===== SCROLL PROGRESS ===== */
.scroll-progress {
    position: fixed;
    top: 0;
    left: 0;
    height: 2px;
    width: 0;
    background: linear-gradient(90deg, var(--accent), var(--accent2));
    z-index: 9997;
    transition: width 0.1s linear
}

/* ===== BACK TO TOP ===== */
.back-top {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    width: 42px;
    height: 42px;
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: none;
    z-index: 500;
    opacity: 0;
    transform: translateY(20px);
    pointer-events: none;
    transition: opacity 0.3s, transform 0.3s, border-color 0.2s;
    font-size: 1rem;
}

.back-top.visible {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto
}

.back-top:hover {
    border-color: var(--accent)
}

/* ===== FOOTER ===== */
footer {
    padding: 2rem 4rem;
    border-top: 1px solid var(--border);
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: var(--bg);
}

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

.footer-text em {
    color: var(--accent);
    font-style: normal
}

.footer-hearts {
    animation: heartBeat 1.5s ease-in-out infinite
}

@keyframes heartBeat {

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

    50% {
        transform: scale(1.2)
    }
}

/* ===== RIPPLE ===== */
.ripple {
    position: absolute;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.25);
    transform: scale(0);
    animation: rippleAnim 0.6s linear;
    pointer-events: none;
}

@keyframes rippleAnim {
    to {
        transform: scale(4);
        opacity: 0
    }
}

/* ===== RESPONSIVE ===== */
@media(max-width:1024px) {
    nav {
        padding: 1.2rem 2rem
    }

    nav.scrolled {
        padding: 0.9rem 2rem
    }

    .hero {
        padding: 8rem 2rem 4rem
    }

    .hero-visual {
        display: none
    }

    .hero-content {
        max-width: 100%
    }

    section {
        padding: 5rem 2rem
    }

    footer {
        padding: 2rem
    }
}

@media(max-width:768px) {
    body {
        cursor: auto
    }

    .cursor,
    .cursor-ring {
        display: none
    }

    nav {
        padding: 1rem 1.5rem
    }

    nav.scrolled {
        padding: 0.85rem 1.5rem
    }

    .nav-links,
    .nav-btn {
        display: none
    }

    .hamburger {
        display: flex
    }

    .hero {
        padding: 7rem 1.5rem 3rem;
        min-height: 100svh
    }

    .hero-tag {
        font-size: 0.65rem;
        padding: 0.35rem 0.8rem
    }

    .hero h1 {
        font-size: clamp(2.4rem, 10vw, 3.5rem)
    }

    .hero-sub {
        font-size: 0.95rem
    }

    .hero-stats {
        gap: 1.5rem;
        flex-wrap: wrap
    }

    .stat-num {
        font-size: 1.6rem
    }

    .hero-visual {
        display: none
    }

    .btn-primary,
    .btn-secondary {
        width: 100%;
        text-align: center;
        padding: 0.9rem 1rem
    }

    .hero-actions {
        flex-direction: column
    }

    section {
        padding: 4rem 1.5rem
    }

    .section-title {
        font-size: clamp(1.6rem, 7vw, 2.2rem)
    }

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

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

    .contact-card {
        padding: 2rem 1.5rem
    }

    .contact-links {
        flex-direction: column;
        align-items: stretch
    }

    .c-link {
        justify-content: center
    }

    footer {
        flex-direction: column;
        gap: 0.5rem;
        text-align: center;
        padding: 1.5rem
    }

    .timeline {
        padding-left: 1.5rem
    }

    .t-item {
        padding: 0 0 2rem 2rem
    }

    .back-top {
        bottom: 1.2rem;
        right: 1.2rem
    }
}

@media(max-width:480px) {
    .hero-tag {
        font-size: 0.6rem
    }

    .hero h1 {
        font-size: clamp(2rem, 9vw, 2.8rem)
    }

    .hero-stats {
        gap: 1rem
    }

    .stat-num {
        font-size: 1.4rem
    }

    .stat-label {
        font-size: 0.65rem
    }

    .skill-card {
        padding: 1.2rem
    }

    .project-thumb {
        height: 160px
    }
}