@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800;900&family=Space+Grotesk:wght@400;500;600;700&display=swap');

* {
    margin: 0; padding: 0;
    box-sizing: border-box;
    text-decoration: none;
    border: none; outline: none;
    scroll-behavior: smooth;
}

:root {
    --bg: #0a0a0f;
    --bg2: #0f0f1a;
    --card: rgba(255,255,255,0.04);
    --border: rgba(255,255,255,0.08);
    --text: #e8eaf6;
    --muted: rgba(232,234,246,0.55);
    --purple: #7c3aed;
    --cyan: #06b6d4;
    --amber: #f59e0b;
    --grad: linear-gradient(135deg, #7c3aed, #06b6d4);
    --glow: 0 0 40px rgba(124,58,237,0.35);
    --shadow: 0 8px 32px rgba(0,0,0,0.45);
    --r: 16px;
    --rl: 24px;
    --ease: cubic-bezier(0.25,0.8,0.25,1);
}

html { font-size: 62.5%; overflow-x: hidden; }

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

/* ── Noise overlay ── */
body::before {
    content: '';
    position: fixed; inset: 0;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.03'/%3E%3C/svg%3E");
    pointer-events: none; z-index: 1; opacity: 0.35;
}

/* ── Particles ── */
#particles-bg {
    position: fixed; inset: 0;
    z-index: 0; pointer-events: none; overflow: hidden;
}
.particle {
    position: absolute; border-radius: 50%;
    animation: drift linear infinite; opacity: 0;
}
@keyframes drift {
    0%   { transform: translateY(100vh) scale(0); opacity: 0; }
    10%  { opacity: 1; }
    90%  { opacity: 0.5; }
    100% { transform: translateY(-10vh) scale(1); opacity: 0; }
}

/* ── Back button ── */
.back-btn {
    position: fixed;
    top: 2rem; left: 2.4rem;
    z-index: 200;
    display: inline-flex;
    align-items: center;
    gap: 0.8rem;
    padding: 0.9rem 1.8rem;
    background: rgba(255,255,255,0.06);
    border: 1px solid var(--border);
    border-radius: 100px;
    font-size: 1.4rem;
    font-weight: 500;
    color: var(--text);
    backdrop-filter: blur(12px);
    transition: all 0.35s var(--ease);
}
.back-btn:hover {
    background: var(--purple);
    border-color: var(--purple);
    box-shadow: var(--glow);
    transform: translateX(-4px);
}

/* ── Shared utils ── */
.reveal {
    opacity: 0;
    transform: translateY(36px);
    transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}
.reveal.visible { opacity: 1; transform: translateY(0); }

.section-title {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 4.4rem;
    font-weight: 800;
    text-align: center;
    letter-spacing: -1px;
    margin-bottom: 5.6rem;
}
.section-title span {
    background: var(--grad);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* ══════════════════════
   HERO
══════════════════════ */
.hero-section {
    position: relative;
    z-index: 2;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 7rem;
    padding: 12rem 9% 6rem;
}

.hero-content { max-width: 58rem; }

.badge {
    display: inline-flex;
    align-items: center;
    gap: 0.8rem;
    background: rgba(124,58,237,0.12);
    border: 1px solid rgba(124,58,237,0.3);
    color: #a78bfa;
    font-size: 1.3rem;
    font-weight: 600;
    padding: 0.6rem 1.6rem;
    border-radius: 100px;
    margin-bottom: 2.4rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    animation: fadeDown 0.8s ease both;
}
.dot {
    width: 7px; height: 7px;
    background: #a78bfa; border-radius: 50%;
    animation: pulse-dot 1.5s ease infinite;
}
@keyframes pulse-dot {
    0%,100% { opacity:1; transform:scale(1); }
    50%     { opacity:.4; transform:scale(.7); }
}

.hero-content h1 {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 6.8rem;
    font-weight: 800;
    line-height: 1.05;
    letter-spacing: -2px;
    animation: fadeUp 0.9s 0.1s ease both;
}
.grad {
    background: var(--grad);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}
.hero-sub {
    font-size: 1.7rem;
    color: var(--muted);
    margin-top: 1.4rem;
    margin-bottom: 3.6rem;
    animation: fadeUp 0.9s 0.2s ease both;
}

.hero-stats {
    display: flex;
    gap: 2rem;
    animation: fadeUp 0.9s 0.3s ease both;
}
.stat-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--r);
    padding: 2rem 2.8rem;
    backdrop-filter: blur(10px);
    transition: all 0.35s var(--ease);
    min-width: 10rem;
}
.stat-card:hover {
    border-color: rgba(124,58,237,0.4);
    transform: translateY(-5px);
    box-shadow: var(--glow);
}
.stat-num {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 3rem;
    font-weight: 800;
    background: var(--grad);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}
.stat-label {
    font-size: 1.2rem;
    color: var(--muted);
    font-weight: 500;
    margin-top: 0.4rem;
    text-align: center;
}

/* Hero image */
.hero-img-wrap { flex-shrink: 0; }
.ring-wrap {
    position: relative;
    width: 32rem; height: 32rem;
}
.ring-wrap::before {
    content: '';
    position: absolute; inset: -3px;
    background: var(--grad);
    border-radius: 50%;
    animation: spin 6s linear infinite;
    z-index: 0;
}
.ring-wrap::after {
    content: '';
    position: absolute; inset: 4px;
    background: var(--bg);
    border-radius: 50%;
    z-index: 1;
}
@keyframes spin { to { transform: rotate(360deg); } }
.ring-wrap img {
    width: 100%; height: 100%;
    object-fit: cover;
    border-radius: 50%;
    position: relative; z-index: 2;
    padding: 6px;
    animation: float 5s ease-in-out infinite;
}
@keyframes float {
    0%,100% { transform: translateY(0); }
    50%     { transform: translateY(-14px); }
}

/* ══════════════════════
   BIO CARDS
══════════════════════ */
.bio-section {
    position: relative; z-index: 2;
    padding: 6rem 9%;
    background: var(--bg2);
}

.bio-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2.4rem;
    max-width: 1100px;
    margin: 0 auto;
}

.bio-card {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--rl);
    padding: 3.6rem 3.2rem;
    backdrop-filter: blur(12px);
    transition: all 0.4s var(--ease);
    position: relative;
    overflow: hidden;
}
.bio-card::before {
    content: '';
    position: absolute; inset: 0;
    background: var(--grad);
    opacity: 0;
    transition: opacity 0.4s;
}
.bio-card:hover::before { opacity: 0.06; }
.bio-card:hover {
    border-color: rgba(124,58,237,0.45);
    transform: translateY(-6px);
    box-shadow: var(--glow), var(--shadow);
}
.bio-card > * { position: relative; z-index: 1; }

.bio-icon-wrap {
    display: inline-flex;
    align-items: center; justify-content: center;
    width: 5.6rem; height: 5.6rem;
    background: rgba(124,58,237,0.12);
    border: 1px solid rgba(124,58,237,0.25);
    border-radius: 14px;
    margin-bottom: 2rem;
    transition: all 0.35s var(--ease);
}
.bio-card:hover .bio-icon-wrap {
    background: rgba(124,58,237,0.25);
    transform: rotate(-5deg) scale(1.1);
}
.bio-icon-wrap i {
    font-size: 2.4rem;
    background: var(--grad);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}
.bio-card h3 {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 2.2rem;
    font-weight: 700;
    margin-bottom: 1.4rem;
}
.bio-card p {
    font-size: 1.5rem;
    color: var(--muted);
    line-height: 1.8;
    margin-bottom: 1.2rem;
}
.bio-card p:last-child { margin-bottom: 0; }
.bio-card strong { color: var(--text); font-weight: 600; }

/* ══════════════════════
   SKILLS
══════════════════════ */
.skills-section {
    position: relative; z-index: 2;
    padding: 7rem 9%;
    background: var(--bg);
}

.skills-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3.2rem;
    max-width: 1100px;
    margin: 0 auto;
}

.skills-block {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--rl);
    padding: 3.6rem 3.2rem;
    backdrop-filter: blur(12px);
}

.block-title {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 3.2rem;
    display: flex;
    align-items: center;
    gap: 1rem;
}
.block-title i {
    background: var(--grad);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Skill bars */
.skill-bars { display: flex; flex-direction: column; gap: 2.4rem; }

.skill-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.8rem;
}
.skill-name {
    font-size: 1.5rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.6rem;
}
.skill-pct {
    font-size: 1.3rem;
    font-weight: 700;
    color: #a78bfa;
}
.bar-track {
    width: 100%;
    height: 8px;
    background: rgba(255,255,255,0.07);
    border-radius: 100px;
    overflow: hidden;
}
.bar-fill {
    height: 100%;
    width: 0;
    border-radius: 100px;
    background: var(--grad);
    transition: width 1.2s cubic-bezier(0.25,0.8,0.25,1);
    box-shadow: 0 0 12px rgba(124,58,237,0.5);
}

/* Radial charts */
.radial-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2.4rem;
}
.radial-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}
.radial-item p {
    font-size: 1.4rem;
    font-weight: 600;
    color: var(--muted);
    text-align: center;
}
.radial-wrap {
    position: relative;
    width: 10rem; height: 10rem;
}
.radial-wrap svg {
    width: 100%; height: 100%;
    transform: rotate(-90deg);
}
.radial-wrap .track {
    fill: none;
    stroke: rgba(255,255,255,0.07);
    stroke-width: 8;
}
.radial-wrap .fill {
    fill: none;
    stroke: url(#grad);
    stroke-width: 8;
    stroke-linecap: round;
    stroke-dasharray: 314;
    stroke-dashoffset: 314;
    transition: stroke-dashoffset 1.4s cubic-bezier(0.25,0.8,0.25,1);
}
/* inline gradient for SVG */
.radial-wrap .fill { stroke: #7c3aed; }
.path-1 { animation: radial1 1.4s 0.3s ease forwards; }
.path-2 { animation: radial2 1.4s 0.4s ease forwards; }
.path-3 { animation: radial3 1.4s 0.5s ease forwards; }
.path-4 { animation: radial4 1.4s 0.6s ease forwards; }

@keyframes radial1 { to { stroke-dashoffset: 31; } }   /* 90% */
@keyframes radial2 { to { stroke-dashoffset: 78; } }   /* 75% */
@keyframes radial3 { to { stroke-dashoffset: 62; } }   /* 80% */
@keyframes radial4 { to { stroke-dashoffset: 47; } }   /* 85% */

.radial-pct {
    position: absolute;
    top: 50%; left: 50%;
    transform: translate(-50%, -50%);
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1.8rem;
    font-weight: 700;
    background: var(--grad);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* ══════════════════════
   TIMELINE
══════════════════════ */
.timeline-section {
    position: relative; z-index: 2;
    padding: 7rem 9%;
    background: var(--bg2);
}

.timeline {
    position: relative;
    max-width: 780px;
    margin: 0 auto;
    padding-left: 4rem;
}
.timeline::before {
    content: '';
    position: absolute;
    left: 1.6rem; top: 0; bottom: 0;
    width: 2px;
    background: linear-gradient(to bottom, var(--purple), var(--cyan));
    border-radius: 2px;
}

.timeline-item {
    position: relative;
    margin-bottom: 3.6rem;
}
.timeline-item:last-child { margin-bottom: 0; }

.tl-dot {
    position: absolute;
    left: -3.1rem; top: 2.2rem;
    width: 1.4rem; height: 1.4rem;
    background: var(--grad);
    border-radius: 50%;
    box-shadow: 0 0 12px rgba(124,58,237,0.6);
    flex-shrink: 0;
}

.tl-card {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--r);
    padding: 2.6rem 2.8rem;
    backdrop-filter: blur(10px);
    transition: all 0.35s var(--ease);
}
.tl-card:hover {
    border-color: rgba(124,58,237,0.4);
    transform: translateX(6px);
    box-shadow: var(--glow);
}
.tl-year {
    display: inline-block;
    font-size: 1.2rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    color: #a78bfa;
    background: rgba(124,58,237,0.12);
    border: 1px solid rgba(124,58,237,0.25);
    padding: 0.3rem 1rem;
    border-radius: 100px;
    margin-bottom: 1rem;
    text-transform: uppercase;
}
.tl-card h4 {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 0.8rem;
}
.tl-card p {
    font-size: 1.5rem;
    color: var(--muted);
    line-height: 1.75;
}

/* ══════════════════════
   CTA
══════════════════════ */
.cta-section {
    position: relative; z-index: 2;
    padding: 7rem 9%;
    background: var(--bg);
}
.cta-card {
    max-width: 780px;
    margin: 0 auto;
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--rl);
    padding: 5.6rem 4.8rem;
    text-align: center;
    backdrop-filter: blur(12px);
    position: relative;
    overflow: hidden;
}
.cta-card::before {
    content: '';
    position: absolute; inset: 0;
    background: radial-gradient(ellipse at center, rgba(124,58,237,0.12) 0%, transparent 70%);
    pointer-events: none;
}
.cta-card h2 {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 4rem;
    font-weight: 800;
    letter-spacing: -1px;
    margin-bottom: 1.6rem;
    position: relative;
}
.cta-card h2 span {
    background: var(--grad);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}
.cta-card p {
    font-size: 1.65rem;
    color: var(--muted);
    line-height: 1.75;
    margin-bottom: 3.6rem;
    position: relative;
}
.cta-btns {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1.6rem;
    flex-wrap: wrap;
    position: relative;
}
.btn-primary {
    display: inline-flex;
    align-items: center;
    gap: 0.8rem;
    padding: 1.4rem 3rem;
    background: var(--grad);
    border-radius: 100px;
    font-size: 1.5rem;
    font-weight: 600;
    color: #fff;
    transition: all 0.35s var(--ease);
    box-shadow: 0 4px 24px rgba(124,58,237,0.4);
}
.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 32px rgba(124,58,237,0.6);
}
.btn-outline {
    display: inline-flex;
    align-items: center;
    gap: 0.8rem;
    padding: 1.4rem 3rem;
    background: transparent;
    border: 1.5px solid rgba(124,58,237,0.5);
    border-radius: 100px;
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--text);
    transition: all 0.35s var(--ease);
}
.btn-outline:hover {
    background: rgba(124,58,237,0.12);
    border-color: var(--purple);
    transform: translateY(-3px);
}

/* ══════════════════════
   FOOTER
══════════════════════ */
.read-footer {
    position: relative; z-index: 2;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 2.4rem 9%;
    background: var(--bg2);
    border-top: 1px solid var(--border);
}
.read-footer p {
    font-size: 1.4rem;
    color: var(--muted);
}
.read-footer p span {
    background: var(--grad);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: 600;
}
.footer-top {
    display: inline-flex;
    align-items: center; justify-content: center;
    width: 4.2rem; height: 4.2rem;
    background: var(--grad);
    border-radius: 12px;
    color: #fff;
    font-size: 1.8rem;
    transition: all 0.35s var(--ease);
}
.footer-top:hover {
    transform: translateY(-4px);
    box-shadow: var(--glow);
}

/* ══════════════════════
   KEYFRAMES
══════════════════════ */
@keyframes fadeDown {
    from { opacity:0; transform:translateY(-18px); }
    to   { opacity:1; transform:translateY(0); }
}
@keyframes fadeUp {
    from { opacity:0; transform:translateY(28px); }
    to   { opacity:1; transform:translateY(0); }
}

/* ══════════════════════
   RESPONSIVE
══════════════════════ */
@media (max-width: 1024px) {
    html { font-size: 55%; }
    .hero-section { gap: 4rem; }
    .bio-grid { grid-template-columns: 1fr; }
    .skills-wrapper { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
    .hero-section {
        flex-direction: column-reverse;
        text-align: center;
        padding-top: 11rem;
    }
    .ring-wrap { width: 24rem; height: 24rem; }
    .hero-content h1 { font-size: 5rem; letter-spacing: -1px; }
    .hero-stats { justify-content: center; flex-wrap: wrap; }
    .timeline { padding-left: 3rem; }
    .tl-dot { left: -2.4rem; }
    .cta-card { padding: 4rem 2.8rem; }
    .cta-card h2 { font-size: 3.2rem; }
    .read-footer { flex-direction: column; gap: 1.4rem; text-align: center; }
}

@media (max-width: 480px) {
    html { font-size: 50%; }
    .section-title { font-size: 3.8rem; }
    .radial-grid { grid-template-columns: 1fr 1fr; gap: 1.4rem; }
    .back-btn span { display: none; }
}
