:root {
    --bg-deep:    #03020f;
    --bg:         #06041a;
    --bg-card:    rgba(255, 255, 255, 0.04);
    --bg-card-hv: rgba(255, 255, 255, 0.07);

    --purple:      #7c3aed;
    --purple-lt:   #a855f7;
    --purple-glow: rgba(124, 58, 237, 0.30);

    --cyan:        #06b6d4;
    --cyan-bright: #00f5ff;
    --cyan-glow:   rgba(0, 245, 255, 0.20);

    --white:   #f8fafc;
    --gray-200:#e2e8f0;
    --gray-300:#cbd5e1;
    --gray-400:#94a3b8;
    --gray-500:#64748b;

    --border:    rgba(0, 245, 255, 0.10);
    --border-hv: rgba(0, 245, 255, 0.35);

    --grad-main: linear-gradient(135deg, #7c3aed, #00f5ff);
    --grad-text: linear-gradient(135deg, #a855f7 0%, #00f5ff 100%);

    --font: 'Space Grotesk', system-ui, sans-serif;
    --mono: 'JetBrains Mono', 'Courier New', monospace;

    --r-sm: 8px;
    --r-md: 16px;
    --r-lg: 24px;

    --ease:      0.4s cubic-bezier(0.4, 0, 0.2, 1);
    --ease-slow: 0.7s cubic-bezier(0.4, 0, 0.2, 1);
}

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

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

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

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
strong { font-weight: 600; color: var(--white); }

::-webkit-scrollbar { width: 5px; }
::-webkit-scrollbar-track { background: var(--bg-deep); }
::-webkit-scrollbar-thumb { background: var(--purple); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: var(--purple-lt); }

#starfield {
    position: fixed;
    inset: 0;
    z-index: 0;
    pointer-events: none;
}

#loader {
    position: fixed;
    inset: 0;
    z-index: 9999;
    background: var(--bg-deep);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.5s ease, visibility 0.5s ease;
}

#loader.hidden {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.loader-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 18px;
    text-align: center;
}

.loader-logo {
    position: relative;
    width: 88px;
    height: 88px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.loader-k {
    font-family: var(--mono);
    font-size: 2.8rem;
    font-weight: 700;
    background: var(--grad-text);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    position: relative;
    z-index: 2;
    user-select: none;
}

.loader-ring {
    position: absolute;
    inset: 0;
    border-radius: 50%;
    border: 2px solid transparent;
    border-top-color: var(--cyan-bright);
    border-right-color: var(--purple-lt);
    animation: spin 3s linear infinite;
}

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

.loader-name {
    font-family: var(--mono);
    font-size: 1.5rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    background: var(--grad-text);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.loader-bar-track {
    width: 220px;
    height: 3px;
    background: rgba(255,255,255,0.08);
    border-radius: 2px;
    overflow: hidden;
}

.loader-bar-fill {
    height: 100%;
    width: 0;
    background: var(--grad-main);
    border-radius: 2px;
    animation: barFill 0.72s cubic-bezier(0.4,0,0.2,1) forwards;
}

@keyframes barFill { to { width: 100%; } }

.loader-status {
    font-family: var(--mono);
    font-size: 0.72rem;
    color: var(--gray-500);
    letter-spacing: 0.12em;
    opacity: 0.7;
}

#navbar {
    position: fixed;
    top: 0; left: 0; right: 0;
    z-index: 500;
    padding: 22px 0;
    transition: var(--ease);
}

#navbar.scrolled {
    padding: 14px 0;
    background: rgba(3, 2, 15, 0.88);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border-bottom: 1px solid var(--border);
}

.nav-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 28px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.nav-logo {
    font-family: var(--mono);
    font-size: 1.1rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    transition: var(--ease);
}
.nav-logo:hover { filter: brightness(1.25); }

.bracket { color: var(--cyan-bright); }

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

.nav-link {
    padding: 8px 16px;
    border-radius: var(--r-sm);
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--gray-400);
    transition: var(--ease);
}

.nav-link:hover,
.nav-link.active {
    color: var(--white);
    background: rgba(255,255,255,0.06);
}

.nav-hire {
    background: var(--grad-main) !important;
    color: var(--white) !important;
    font-weight: 600;
    padding: 8px 20px;
    border-radius: var(--r-sm);
}

.nav-hire:hover {
    opacity: 0.85;
    transform: translateY(-1px);
    box-shadow: 0 4px 20px var(--purple-glow);
}

.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 6px;
}

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

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 28px;
    position: relative;
    z-index: 1;
}

.section { padding: 120px 0; }

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

.section-tag {
    display: block;
    font-family: var(--mono);
    font-size: 0.78rem;
    color: var(--cyan-bright);
    letter-spacing: 0.16em;
    text-transform: uppercase;
    margin-bottom: 14px;
}

.section-title {
    font-size: clamp(1.9rem, 4vw, 2.8rem);
    font-weight: 700;
    letter-spacing: -0.02em;
    margin-bottom: 14px;
}

.section-sub {
    color: var(--gray-400);
    font-size: 1.05rem;
}

.grad-text {
    background: var(--grad-text);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.glass-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--r-md);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    transition: background 0.4s cubic-bezier(0.4, 0, 0.2, 1),
                border-color 0.4s cubic-bezier(0.4, 0, 0.2, 1),
                box-shadow 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.glass-card:hover {
    background: var(--bg-card-hv);
    border-color: var(--border-hv);
    box-shadow: 0 0 40px var(--purple-glow), 0 0 80px var(--cyan-glow);
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 14px 28px;
    border-radius: var(--r-sm);
    font-family: var(--font);
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    border: none;
    transition: var(--ease);
}

.btn-primary {
    background: var(--grad-main);
    color: var(--white);
    box-shadow: 0 4px 24px var(--purple-glow);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 32px var(--purple-glow), 0 0 60px var(--cyan-glow);
}

.btn-ghost {
    background: transparent;
    color: var(--white);
    border: 1px solid var(--border-hv);
}

.btn-ghost:hover {
    background: rgba(0,245,255,0.07);
    border-color: var(--cyan-bright);
    transform: translateY(-2px);
    box-shadow: 0 0 24px var(--cyan-glow);
}

.reveal-up,
.reveal-left,
.reveal-right {
    opacity: 0;
    transition: opacity 0.45s cubic-bezier(0.22, 1, 0.36, 1), transform 0.4s cubic-bezier(0.22, 1, 0.36, 1);
}

.reveal-up    { transform: translateY(14px); }
.reveal-left  { transform: translateX(-14px); }
.reveal-right { transform: translateX(14px); }

.reveal-up.visible,
.reveal-left.visible,
.reveal-right.visible {
    opacity: 1;
    transform: translate(0, 0);
}


#hero {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 120px 28px 80px;
    position: relative;
    z-index: 1;
}

.orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(90px);
    pointer-events: none;
    z-index: 0;
}

.orb-1 {
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(124,58,237,0.18) 0%, transparent 70%);
    top: -80px; left: -200px;
    animation: orbDrift 14s ease-in-out infinite;
}

.orb-2 {
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(0,245,255,0.12) 0%, transparent 70%);
    top: 20%; right: -180px;
    animation: orbDrift 18s ease-in-out infinite reverse;
}

.orb-3 {
    width: 350px;
    height: 350px;
    background: radial-gradient(circle, rgba(168,85,247,0.14) 0%, transparent 70%);
    bottom: 5%; left: 25%;
    animation: orbDrift 11s ease-in-out infinite 4s;
}

@keyframes orbDrift {
    0%,100% { transform: translate(0,0) scale(1); }
    33%     { transform: translate(24px,-24px) scale(1.06); }
    66%     { transform: translate(-18px,18px) scale(0.94); }
}

.hero-inner {
    max-width: 900px;
    width: 100%;
    position: relative;
    z-index: 1;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 8px 20px;
    background: rgba(0,245,255,0.07);
    border: 1px solid rgba(0,245,255,0.22);
    border-radius: 100px;
    font-size: 0.86rem;
    font-weight: 500;
    color: var(--cyan-bright);
    margin-bottom: 28px;
    letter-spacing: 0.04em;
}

.badge-pulse {
    width: 8px;
    height: 8px;
    background: #22c55e;
    border-radius: 50%;
    box-shadow: 0 0 5px #22c55e55;
    animation: pulse 5s ease-in-out infinite;
}

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

.hero-name {
    font-size: clamp(3.8rem, 10vw, 7.5rem);
    font-weight: 800;
    letter-spacing: -0.04em;
    line-height: 0.95;
    margin-bottom: 20px;
}

.hero-typed {
    font-family: var(--mono);
    font-size: clamp(0.95rem, 2.5vw, 1.25rem);
    color: var(--gray-400);
    margin-bottom: 26px;
    min-height: 2em;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
}

.typed-prefix { color: var(--cyan-bright); }

.typed-cursor {
    color: var(--cyan-bright);
    animation: blink 2s ease-in-out infinite;
}

@keyframes blink {
    0%,100% { opacity: 0.5; }
    50%     { opacity: 0.4; }
}

.hero-tagline {
    font-size: clamp(0.95rem, 2vw, 1.1rem);
    color: var(--gray-300);
    line-height: 1.75;
    max-width: 600px;
    margin: 0 auto 44px;
}

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

.hero-stats {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 0;
    padding: 24px 40px;
    background: rgba(255,255,255,0.025);
    border: 1px solid var(--border);
    border-radius: var(--r-lg);
    backdrop-filter: blur(10px);
}

.stat {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 0 36px;
}

.stat-val {
    display: flex;
    align-items: baseline;
    gap: 1px;
    line-height: 1;
}

.stat-num {
    font-size: clamp(1.8rem, 3.5vw, 2.5rem);
    font-weight: 800;
    background: var(--grad-text);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1;
}

.stat-suffix {
    font-size: clamp(1.2rem, 2vw, 1.6rem);
    font-weight: 800;
    background: var(--grad-text);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1;
}

.stat-label {
    font-size: 0.78rem;
    color: var(--gray-500);
    font-weight: 500;
    margin-top: 6px;
    white-space: nowrap;
}

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

.scroll-hint {
    position: absolute;
    bottom: 36px;
    left: 50%;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    color: var(--gray-500);
    font-size: 0.7rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    opacity: 0.5;
    will-change: transform;
}


.scroll-chevron {
    width: 18px;
    height: 18px;
    border-right: 2px solid var(--cyan-bright);
    border-bottom: 2px solid var(--cyan-bright);
    transform: rotate(45deg);
    opacity: 0.5;
}

.about-grid {
    display: grid;
    grid-template-columns: 1.35fr 1fr;
    gap: 28px;
    align-items: start;
}

.about-main { padding: 36px; }

.about-greeting {
    display: flex;
    align-items: center;
    gap: 14px;
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--cyan-bright);
    margin-bottom: 22px;
}

.about-main p {
    color: var(--gray-300);
    line-height: 1.8;
    margin-bottom: 16px;
    font-size: 0.97rem;
}

.about-meta {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-top: 26px;
    padding-top: 26px;
    border-top: 1px solid var(--border);
}

.meta-row {
    display: flex;
    align-items: center;
    gap: 12px;
    color: var(--gray-400);
    font-size: 0.9rem;
}

.meta-row i {
    color: var(--cyan-bright);
    width: 18px;
    text-align: center;
}

.about-side { display: flex; flex-direction: column; gap: 20px; }

.info-card { padding: 24px; }

.info-icon {
    width: 42px;
    height: 42px;
    border-radius: 10px;
    background: var(--grad-main);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    margin-bottom: 14px;
    color: var(--white);
}

.info-card h3 {
    font-size: 0.95rem;
    font-weight: 700;
    margin-bottom: 14px;
    color: var(--white);
}

.avail-list { display: flex; flex-direction: column; gap: 10px; }

.avail-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.875rem;
    color: var(--gray-400);
}

.avail-time {
    font-family: var(--mono);
    font-size: 0.78rem;
    color: var(--cyan-bright);
}

.spec-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 9px;
}

.spec-list li {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--gray-300);
    font-size: 0.9rem;
}

.spec-list li i {
    color: var(--purple-lt);
    font-size: 0.65rem;
}

.ign {
    font-family: var(--mono);
    font-size: 0.9rem;
    color: var(--gray-300);
    margin-bottom: 8px;
}

.ign-pre {
    color: var(--cyan-bright);
    margin-right: 6px;
}

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

.skill-card {
    padding: 28px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    transition:
        opacity 0.5s cubic-bezier(0.22, 1, 0.36, 1),
        transform 0.4s cubic-bezier(0.22, 1, 0.36, 1),
        background 0.4s cubic-bezier(0.4, 0, 0.2, 1),
        border-color 0.4s cubic-bezier(0.4, 0, 0.2, 1),
        box-shadow 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.sk-icon {
    width: 50px;
    height: 50px;
    border-radius: 12px;
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.09);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    color: var(--c, var(--cyan-bright));
    transition: var(--ease);
}

.skill-card:hover .sk-icon {
    background: rgba(255,255,255,0.1);
    transform: scale(1.08);
}

.skill-card h3 {
    font-size: 1rem;
    font-weight: 700;
    color: var(--white);
}

.skill-card p {
    font-size: 0.855rem;
    color: var(--gray-400);
    line-height: 1.65;
    flex: 1;
}

.sk-bar {
    height: 4px;
    background: rgba(255,255,255,0.07);
    border-radius: 2px;
    overflow: hidden;
}

.sk-fill {
    height: 100%;
    width: 0;
    background: linear-gradient(90deg, var(--purple), var(--c, var(--cyan-bright)));
    border-radius: 2px;
    transition: width 1.3s cubic-bezier(0.25, 0.46, 0.45, 0.94) 0.2s;
}

.skill-card.visible .sk-fill { width: var(--w, 80%); }

.sk-lvl {
    font-family: var(--mono);
    font-size: 0.72rem;
    color: var(--gray-500);
    align-self: flex-end;
    letter-spacing: 0.05em;
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
    gap: 24px;
}

.proj-card {
    padding: 28px;
    display: flex;
    flex-direction: column;
    gap: 18px;
    position: relative;
    overflow: hidden;
    transition: var(--ease);
}

.proj-card::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: var(--r-md);
    background: var(--grad-main);
    opacity: 0;
    transition: opacity 0.35s ease;
    z-index: -1;
    padding: 1px;
    -webkit-mask:
        linear-gradient(#fff 0 0) content-box,
        linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
}

.proj-card:hover::after { opacity: 1; }

.proj-featured {
    grid-column: 1 / -1;
    background: linear-gradient(135deg, rgba(124,58,237,0.09), rgba(0,245,255,0.04));
}

.proj-badge {
    position: absolute;
    top: 18px; right: 18px;
    padding: 5px 14px;
    background: var(--grad-main);
    border-radius: 100px;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    color: var(--white);
}

.proj-head {
    display: flex;
    align-items: center;
    gap: 16px;
}

.proj-icon {
    width: 54px;
    height: 54px;
    border-radius: 14px;
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.09);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    color: var(--c, var(--purple-lt));
    flex-shrink: 0;
    transition: var(--ease);
}

.proj-card:hover .proj-icon { transform: scale(1.1) rotate(-4deg); }

.proj-name {
    font-size: 1.15rem;
    font-weight: 800;
    color: var(--white);
    margin-bottom: 4px;
}

.proj-sub {
    font-family: var(--mono);
    font-size: 0.76rem;
    color: var(--gray-500);
}

.proj-desc {
    color: var(--gray-300);
    font-size: 0.9rem;
    line-height: 1.72;
}

.proj-features {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 9px;
}

.feat-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.84rem;
    color: var(--gray-300);
}

.feat-item i {
    color: var(--cyan-bright);
    font-size: 0.65rem;
    flex-shrink: 0;
}

.proj-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.tag {
    padding: 4px 12px;
    background: rgba(124,58,237,0.13);
    border: 1px solid rgba(124,58,237,0.28);
    border-radius: 100px;
    font-family: var(--mono);
    font-size: 0.76rem;
    color: var(--purple-lt);
    font-weight: 500;
}

.proj-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: auto;
    padding-top: 14px;
    border-top: 1px solid var(--border);
}

.proj-date {
    display: flex;
    align-items: center;
    gap: 7px;
    font-family: var(--mono);
    font-size: 0.78rem;
    color: var(--gray-500);
}

.proj-date i { color: var(--cyan-bright); }

.proj-link {
    display: flex;
    align-items: center;
    gap: 7px;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--cyan-bright);
    transition: var(--ease);
}

.proj-link:hover {
    color: var(--white);
    text-shadow: 0 0 12px var(--cyan-glow);
}

.timeline {
    position: relative;
    max-width: 920px;
    margin: 0 auto;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 50%;
    top: 0; bottom: 0;
    width: 2px;
    transform: translateX(-50%);
    background: linear-gradient(to bottom,
        transparent 0%,
        var(--purple) 15%,
        var(--cyan-bright) 85%,
        transparent 100%);
}

.tl-item {
    display: flex;
    justify-content: flex-end;
    padding-right: calc(50% + 44px);
    margin-bottom: 36px;
    position: relative;
}

.tl-item:nth-child(even) {
    justify-content: flex-start;
    padding-right: 0;
    padding-left: calc(50% + 44px);
}

.tl-dot {
    position: absolute;
    left: 50%;
    top: 26px;
    width: 14px;
    height: 14px;
    background: var(--grad-main);
    border-radius: 50%;
    border: 3px solid var(--bg-deep);
    transform: translateX(-50%);
    z-index: 2;
    box-shadow: 0 0 18px var(--purple-glow);
}

.tl-card {
    width: 100%;
    max-width: 420px;
    padding: 24px;
}

.tl-head { margin-bottom: 12px; }

.tl-company {
    font-size: 1.05rem;
    font-weight: 800;
    color: var(--white);
    margin-bottom: 4px;
}

.tl-role {
    display: block;
    font-size: 0.85rem;
    color: var(--cyan-bright);
    font-weight: 500;
    margin-bottom: 4px;
}

.tl-date {
    display: block;
    font-family: var(--mono);
    font-size: 0.73rem;
    color: var(--gray-500);
}

.tl-desc {
    font-size: 0.875rem;
    color: var(--gray-400);
    line-height: 1.72;
    margin-bottom: 14px;
}

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

.tl-tag {
    padding: 3px 10px;
    background: rgba(0,245,255,0.07);
    border: 1px solid rgba(0,245,255,0.14);
    border-radius: 100px;
    font-family: var(--mono);
    font-size: 0.72rem;
    color: var(--cyan-bright);
}

.tl-current {
    background: rgba(34,197,94,0.12);
    border-color: rgba(34,197,94,0.3);
    color: #22c55e;
}

.contact-wrap {
    max-width: 680px;
    margin: 0 auto;
}

.contact-card { padding: 48px; }

.contact-intro {
    color: var(--gray-300);
    font-size: 1rem;
    line-height: 1.78;
    margin-bottom: 40px;
    text-align: center;
}

.contact-btns {
    display: flex;
    flex-direction: column;
    gap: 14px;
    margin-bottom: 32px;
}

.cta-btn {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 20px 24px;
    border-radius: var(--r-md);
    border: 1px solid var(--border);
    background: rgba(255,255,255,0.025);
    transition: var(--ease);
    position: relative;
    overflow: hidden;
}

.cta-btn:hover { transform: translateX(8px); }

.cta-btn > i:first-child {
    font-size: 1.6rem;
    width: 44px;
    text-align: center;
    flex-shrink: 0;
}

.cta-btn div {
    display: flex;
    flex-direction: column;
    gap: 3px;
    flex: 1;
}

.cta-label {
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--gray-500);
    font-weight: 600;
}

.cta-value {
    font-family: var(--mono);
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--white);
}

.cta-arrow {
    font-size: 0.85rem;
    color: var(--gray-500);
    transition: var(--ease);
}

.cta-btn:hover .cta-arrow {
    color: var(--white);
    transform: translateX(4px);
}

.discord-btn > i:first-child { color: #5865f2; }
.discord-btn:hover { border-color: #5865f2; box-shadow: 0 0 24px rgba(88,101,242,0.22); }

.email-btn > i:first-child { color: var(--cyan-bright); }
.email-btn:hover { border-color: var(--cyan-bright); box-shadow: 0 0 24px var(--cyan-glow); }

.github-btn > i:first-child { color: var(--gray-300); }
.github-btn:hover { border-color: var(--gray-300); box-shadow: 0 0 24px rgba(203,213,225,0.1); }

.contact-status {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    font-size: 0.86rem;
    color: var(--gray-400);
    padding-top: 24px;
    border-top: 1px solid var(--border);
}

.status-dot {
    width: 8px;
    height: 8px;
    background: #22c55e;
    border-radius: 50%;
    box-shadow: 0 0 5px #22c55e55;
    flex-shrink: 0;
    animation: pulse 5s ease-in-out infinite;
}

footer {
    padding: 44px 0;
    border-top: 1px solid var(--border);
    position: relative;
    z-index: 1;
}

.footer-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 16px;
}

.footer-logo {
    font-family: var(--mono);
    font-size: 1rem;
    font-weight: 700;
}

.footer-copy {
    color: var(--gray-500);
    font-size: 0.85rem;
}

.footer-nav {
    display: flex;
    gap: 24px;
}

.footer-nav a {
    color: var(--gray-500);
    font-size: 0.85rem;
    transition: var(--ease);
}

.footer-nav a:hover { color: var(--cyan-bright); }

@media (max-width: 900px) {
    .about-grid { grid-template-columns: 1fr; }
    .projects-grid { grid-template-columns: 1fr; }
    .proj-featured { grid-column: 1; }
    .proj-features { grid-template-columns: 1fr; }
}

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

    .nav-toggle { display: flex; }

    .nav-links {
        display: none;
        position: absolute;
        top: 100%;
        left: 0; right: 0;
        flex-direction: column;
        background: rgba(3,2,15,0.97);
        backdrop-filter: blur(24px);
        border-bottom: 1px solid var(--border);
        padding: 16px;
        gap: 4px;
    }

    .nav-links.open { display: flex; }

    .nav-link { width: 100%; text-align: center; padding: 12px 16px; }

    .hero-stats {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 20px;
        padding: 24px;
    }

    .stat { padding: 0; }
    .stat-sep { display: none; }

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

    .tl-item,
    .tl-item:nth-child(even) {
        justify-content: flex-start;
        padding-right: 0;
        padding-left: 52px;
    }

    .tl-dot { left: 18px; }
    .tl-card { max-width: 100%; }
    .tl-head { gap: 6px; }

    .contact-card { padding: 28px 20px; }

    .footer-inner { flex-direction: column; text-align: center; }
    .footer-nav { justify-content: center; }
}

@media (max-width: 480px) {
    .hero-cta { flex-direction: column; align-items: stretch; }
    .btn { justify-content: center; }
    .skills-grid { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        transition-duration: 0.01ms !important;
    }
}
