/* ════════════════════════════════════════════
   DESIGN TOKENS
   ════════════════════════════════════════════ */
:root {
    /* Colors — Professional light-dark palette */
    --bg: #0f172a;
    --bg-card: rgba(30, 41, 59, 0.65);
    --bg-card-hover: rgba(51, 65, 85, 0.7);
    --surface: #1e293b;
    --border: rgba(148, 163, 184, 0.12);
    --text: #f1f5f9;
    --text-muted: #94a3b8;
    --accent: #10b981;
    --accent-glow: rgba(16, 185, 129, 0.2);
    --accent-2: #06b6d4;
    --gradient: linear-gradient(135deg, var(--accent), var(--accent-2));
    /* Typography */
    --font: 'Inter', system-ui, sans-serif;
    --mono: 'JetBrains Mono', monospace;
    /* Spacing */
    --section-pad: 100px 0;
    --radius: 16px;
    --radius-sm: 8px;
    /* Transitions */
    --ease: cubic-bezier(.4, 0, .2, 1);
}

/* ════════════════════════════════════════════
   RESET & BASE
   ════════════════════════════════════════════ */
*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 80px;
}

body {
    font-family: var(--font);
    background: var(--bg);
    color: var(--text);
    line-height: 1.7;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

/* Animated background gradient blobs */
body::before,
body::after {
    content: '';
    position: fixed;
    border-radius: 50%;
    filter: blur(120px);
    z-index: -1;
    pointer-events: none;
}

body::before {
    width: 600px;
    height: 600px;
    top: -10%;
    left: -5%;
    background: rgba(16, 185, 129, 0.08);
    animation: blobMove1 20s ease-in-out infinite alternate;
}

body::after {
    width: 500px;
    height: 500px;
    bottom: -10%;
    right: -5%;
    background: rgba(6, 182, 212, 0.06);
    animation: blobMove2 18s ease-in-out infinite alternate;
}

@keyframes blobMove1 {
    0% {
        transform: translate(0, 0) scale(1);
    }

    50% {
        transform: translate(15vw, 20vh) scale(1.1);
    }

    100% {
        transform: translate(5vw, 40vh) scale(0.95);
    }
}

@keyframes blobMove2 {
    0% {
        transform: translate(0, 0) scale(1);
    }

    50% {
        transform: translate(-10vw, -15vh) scale(1.15);
    }

    100% {
        transform: translate(-5vw, -30vh) scale(0.9);
    }
}

a {
    color: inherit;
    text-decoration: none;
}

img {
    max-width: 100%;
    display: block;
}

input,
textarea,
button {
    font-family: inherit;
}

.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 24px;
}

.accent {
    color: var(--accent);
}

/* ════════════════════════════════════════════
   NAVBAR
   ════════════════════════════════════════════ */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 100;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 40px;
    height: 70px;
    background: rgba(15, 23, 42, 0.6);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border);
    transition: background 0.4s var(--ease), box-shadow 0.4s var(--ease);
}

.navbar.scrolled {
    background: rgba(15, 23, 42, 0.95);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.3);
}

.nav-logo {
    font-size: 1.6rem;
    font-weight: 800;
    letter-spacing: -1px;
    transition: transform 0.3s var(--ease);
    display: flex;
    align-items: center;
    overflow: hidden;
    position: relative;
}

.nav-logo:hover {
    transform: scale(1.08);
}

.logo-full,
.logo-short {
    transition: opacity 0.5s var(--ease), transform 0.5s var(--ease);
    white-space: nowrap;
}

.logo-full {
    opacity: 0;
    transform: translateY(-10px);
    position: absolute;
    pointer-events: none;
}

.logo-full.show {
    opacity: 1;
    transform: translateY(0);
    position: relative;
    pointer-events: auto;
}

.logo-short {
    opacity: 1;
    transform: translateY(0);
    position: relative;
}

.logo-short.hide {
    opacity: 0;
    transform: translateY(10px);
    position: absolute;
}

.nav-links {
    list-style: none;
    display: flex;
    gap: 8px;
}

.nav-link {
    position: relative;
    padding: 8px 18px;
    border-radius: 999px;
    font-size: 0.88rem;
    font-weight: 500;
    color: var(--text-muted);
    transition: color 0.3s, background 0.3s;
}

.nav-link:hover,
.nav-link.active {
    color: var(--accent);
    background: var(--accent-glow);
}

.nav-link.active::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 50%;
    transform: translateX(-50%);
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--accent);
    box-shadow: 0 0 8px var(--accent);
}

/* Mobile menu toggle */
.menu-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
}

.menu-toggle span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--text);
    border-radius: 2px;
    transition: transform 0.3s, opacity 0.3s;
}

.menu-toggle.open span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}

.menu-toggle.open span:nth-child(2) {
    opacity: 0;
}

.menu-toggle.open span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

/* ════════════════════════════════════════════
   HERO
   ════════════════════════════════════════════ */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 120px 24px 80px;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(ellipse at 25% 30%, rgba(16, 185, 129, 0.1) 0%, transparent 50%),
        radial-gradient(ellipse at 75% 70%, rgba(6, 182, 212, 0.07) 0%, transparent 50%);
    animation: heroGlow 12s ease-in-out infinite alternate;
}

@keyframes heroGlow {
    0% {
        transform: translate(0, 0) rotate(0deg);
    }

    100% {
        transform: translate(-3%, 3%) rotate(5deg);
    }
}

/* ─── Floating professional icons ─── */
.hero-floating-icons {
    position: absolute;
    inset: 0;
    overflow: hidden;
    pointer-events: none;
}

.float-icon {
    position: absolute;
    color: var(--accent);
    opacity: 0.06;
    animation: iconFloat 18s ease-in-out infinite;
}

.fi-1 {
    top: 12%;
    left: 5%;
    animation-duration: 20s;
    animation-delay: 0s;
}

.fi-2 {
    top: 8%;
    left: 80%;
    animation-duration: 22s;
    animation-delay: -3s;
}

.fi-3 {
    top: 30%;
    left: 90%;
    animation-duration: 17s;
    animation-delay: -6s;
}

.fi-4 {
    top: 60%;
    left: 3%;
    animation-duration: 19s;
    animation-delay: -2s;
}

.fi-5 {
    top: 75%;
    left: 85%;
    animation-duration: 21s;
    animation-delay: -8s;
}

.fi-6 {
    top: 45%;
    left: 10%;
    animation-duration: 23s;
    animation-delay: -4s;
}

.fi-7 {
    top: 20%;
    left: 45%;
    animation-duration: 18s;
    animation-delay: -10s;
}

.fi-8 {
    top: 85%;
    left: 40%;
    animation-duration: 20s;
    animation-delay: -5s;
}

.fi-9 {
    top: 50%;
    left: 70%;
    animation-duration: 16s;
    animation-delay: -7s;
}

.fi-10 {
    top: 90%;
    left: 15%;
    animation-duration: 24s;
    animation-delay: -1s;
}

@keyframes iconFloat {

    0%,
    100% {
        transform: translateY(0) rotate(0deg);
        opacity: 0.05;
    }

    25% {
        transform: translateY(-20px) rotate(8deg);
        opacity: 0.1;
    }

    50% {
        transform: translateY(-10px) rotate(-5deg);
        opacity: 0.07;
    }

    75% {
        transform: translateY(-25px) rotate(3deg);
        opacity: 0.12;
    }
}

/* ─── Split layout ─── */
.hero-split {
    position: relative;
    z-index: 2;
    display: flex;
    align-items: center;
    gap: 64px;
    max-width: 1280px;
    width: 100%;
    margin: 0 auto;
}

.hero-content {
    flex: 1;
    text-align: left;
}

/* Badge */
.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 18px;
    border-radius: 999px;
    font-size: 0.78rem;
    font-weight: 500;
    letter-spacing: 0.5px;
    color: var(--accent);
    background: var(--accent-glow);
    border: 1px solid rgba(16, 185, 129, 0.2);
    margin-bottom: 28px;
    animation: fadeDown 0.8s 0.2s both;
}

.badge-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--accent);
    animation: pulse 2s infinite;
}

@keyframes pulse {

    0%,
    100% {
        box-shadow: 0 0 0 0 var(--accent-glow);
    }

    50% {
        box-shadow: 0 0 0 8px transparent;
    }
}

.hero-title {
    font-size: clamp(2.4rem, 5vw, 3.8rem);
    font-weight: 900;
    line-height: 1.1;
    letter-spacing: -2px;
    animation: fadeDown 0.8s 0.35s both;
}

.hero-subtitle {
    font-family: var(--mono);
    font-size: clamp(1rem, 2.5vw, 1.35rem);
    font-weight: 400;
    color: var(--accent);
    margin-top: 16px;
    min-height: 2em;
    animation: fadeDown 0.8s 0.5s both;
}

.cursor {
    animation: blink 0.8s step-end infinite;
    color: var(--accent);
}

@keyframes blink {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0;
    }
}

.hero-desc {
    font-size: 1.05rem;
    color: var(--text-muted);
    max-width: 480px;
    margin: 20px 0 0;
    animation: fadeDown 0.8s 0.65s both;
}

/* CTA Buttons */
.hero-cta {
    display: flex;
    gap: 16px;
    margin-top: 36px;
    animation: fadeDown 0.8s 0.8s both;
}

/* ─── Profile picture ─── */
.hero-profile {
    position: relative;
    flex-shrink: 0;
    width: 340px;
    height: 440px;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: fadeDown 0.8s 0.5s both;
}

.profile-ring {
    position: relative;
    width: 310px;
    height: 410px;
    border-radius: 28px;
    padding: 5px;
    background: var(--gradient);
    box-shadow: 0 0 50px var(--accent-glow), 0 0 100px rgba(16, 185, 129, 0.12);
    animation: ringPulse 4s ease-in-out infinite;
}

@keyframes ringPulse {

    0%,
    100% {
        box-shadow: 0 0 40px var(--accent-glow), 0 0 80px rgba(16, 185, 129, 0.1);
    }

    50% {
        box-shadow: 0 0 60px var(--accent-glow), 0 0 120px rgba(16, 185, 129, 0.15);
    }
}

.profile-img-wrap {
    width: 100%;
    height: 100%;
    border-radius: 20px;
    overflow: hidden;
    background: var(--bg);
    display: flex;
    align-items: center;
    justify-content: center;
}

.profile-img-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.profile-avatar {
    width: 70%;
    height: 70%;
}

/* Orbiting dots */
.orbit-dot {
    position: absolute;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--accent);
    box-shadow: 0 0 10px var(--accent-glow);
}

.od-1 {
    top: 10%;
    left: 5%;
    animation: orbit1 8s linear infinite;
}

.od-2 {
    bottom: 8%;
    right: 10%;
    animation: orbit2 10s linear infinite;
    width: 7px;
    height: 7px;
    background: var(--accent-2);
    box-shadow: 0 0 10px rgba(6, 182, 212, 0.4);
}

.od-3 {
    top: 50%;
    right: -5%;
    animation: orbit3 12s linear infinite;
    width: 5px;
    height: 5px;
}

@keyframes orbit1 {
    0% {
        transform: translate(0, 0);
    }

    25% {
        transform: translate(15px, -20px);
    }

    50% {
        transform: translate(-10px, -30px);
    }

    75% {
        transform: translate(-20px, -5px);
    }

    100% {
        transform: translate(0, 0);
    }
}

@keyframes orbit2 {
    0% {
        transform: translate(0, 0);
    }

    25% {
        transform: translate(-15px, 10px);
    }

    50% {
        transform: translate(10px, 20px);
    }

    75% {
        transform: translate(20px, -10px);
    }

    100% {
        transform: translate(0, 0);
    }
}

@keyframes orbit3 {
    0% {
        transform: translate(0, 0);
    }

    25% {
        transform: translate(-10px, -15px);
    }

    50% {
        transform: translate(15px, 5px);
    }

    75% {
        transform: translate(5px, 15px);
    }

    100% {
        transform: translate(0, 0);
    }
}

@keyframes fadeDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Scroll indicator */
.scroll-indicator {
    position: absolute;
    bottom: 32px;
    left: 50%;
    transform: translateX(-50%);
    animation: fadeDown 0.8s 1.2s both;
}

.mouse {
    width: 26px;
    height: 42px;
    border: 2px solid var(--text-muted);
    border-radius: 14px;
    display: flex;
    justify-content: center;
    padding-top: 8px;
}

.mouse-wheel {
    width: 3px;
    height: 8px;
    border-radius: 3px;
    background: var(--accent);
    animation: scroll 2s infinite;
}

@keyframes scroll {
    0% {
        opacity: 1;
        transform: translateY(0);
    }

    100% {
        opacity: 0;
        transform: translateY(12px);
    }
}

/* ════════════════════════════════════════════
   BUTTONS
   ════════════════════════════════════════════ */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 28px;
    border-radius: 999px;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.35s var(--ease);
    border: none;
}

.btn-primary {
    background: var(--gradient);
    color: #fff;
    box-shadow: 0 4px 20px var(--accent-glow);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px var(--accent-glow);
}

.btn-outline {
    background: transparent;
    color: var(--text);
    border: 1px solid var(--border);
}

.btn-outline:hover {
    border-color: var(--accent);
    color: var(--accent);
    background: var(--accent-glow);
    transform: translateY(-2px);
}

.btn-github {
    background: rgba(255, 255, 255, 0.05);
    color: var(--text);
    border: 1px solid var(--border);
    padding: 10px 22px;
    border-radius: var(--radius-sm);
    font-size: 0.85rem;
}

.btn-github:hover {
    background: var(--accent-glow);
    border-color: var(--accent);
    color: var(--accent);
    transform: translateY(-2px);
}

.btn-lg {
    padding: 16px 36px;
    font-size: 1rem;
}

.btn-full {
    width: 100%;
    justify-content: center;
}

/* ════════════════════════════════════════════
   SECTIONS (shared)
   ════════════════════════════════════════════ */
.section {
    padding: var(--section-pad);
}

.section-title {
    font-size: clamp(1.8rem, 4vw, 2.6rem);
    font-weight: 800;
    text-align: center;
    letter-spacing: -1px;
    margin-bottom: 60px;
}

/* Reveal animation */
.reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}

.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ════════════════════════════════════════════
   ABOUT
   ════════════════════════════════════════════ */
.about {
    background: var(--surface);
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 48px;
    align-items: start;
}

.about-text p {
    font-size: 1.02rem;
    color: var(--text-muted);
    margin-bottom: 18px;
}

.about-text strong {
    color: var(--text);
    font-weight: 600;
}

.resume-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin-top: 8px;
    font-weight: 600;
}

.resume-btn svg {
    transition: transform 0.3s var(--ease);
}

.resume-btn:hover svg {
    transform: translateY(3px);
}

.about-highlights {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.highlight-card {
    padding: 24px;
    border-radius: var(--radius);
    background: var(--bg-card);
    border: 1px solid var(--border);
    transition: border-color 0.3s, transform 0.3s var(--ease);
}

.highlight-card:hover {
    border-color: rgba(16, 185, 129, 0.3);
    transform: translateY(-4px);
}

.highlight-icon {
    font-size: 1.6rem;
    margin-bottom: 10px;
}

.highlight-card h3 {
    font-size: 1.05rem;
    font-weight: 700;
    margin-bottom: 6px;
}

.highlight-card p {
    font-size: 0.88rem;
    color: var(--text-muted);
}

/* ════════════════════════════════════════════
   SKILLS
   ════════════════════════════════════════════ */
.skills-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.skill-card {
    padding: 28px 20px;
    border-radius: var(--radius);
    background: var(--bg-card);
    border: 1px solid var(--border);
    text-align: center;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    transition: transform 0.4s var(--ease), border-color 0.4s, box-shadow 0.4s;
}

.skill-card:hover {
    transform: translateY(-8px);
    border-color: rgba(16, 185, 129, 0.3);
    box-shadow: 0 12px 40px rgba(16, 185, 129, 0.1);
}

.skill-icon {
    font-size: 2rem;
    margin-bottom: 12px;
}

.skill-card h3 {
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 6px;
}

.skill-card p {
    font-size: 0.78rem;
    color: var(--text-muted);
    margin-bottom: 16px;
}

/* Skill bar */
.skill-bar {
    width: 100%;
    height: 4px;
    border-radius: 4px;
    background: rgba(255, 255, 255, 0.06);
    overflow: hidden;
}

.skill-fill {
    height: 100%;
    width: 0;
    border-radius: 4px;
    background: var(--gradient);
    transition: width 1.2s var(--ease);
}

.skill-fill.animate {
    /* width set via JS */
}

/* ════════════════════════════════════════════
   PROJECTS
   ════════════════════════════════════════════ */
.projects {
    background: var(--surface);
}

.projects-grid {
    display: flex;
    flex-direction: column;
    gap: 28px;
}

.project-card {
    position: relative;
    display: flex;
    align-items: flex-start;
    gap: 28px;
    padding: 36px;
    border-radius: var(--radius);
    background: var(--bg-card);
    border: 1px solid var(--border);
    overflow: hidden;
    transition: border-color 0.4s, transform 0.4s var(--ease), box-shadow 0.4s;
}

.project-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.03) 0%, transparent 60%);
    opacity: 0;
    transition: opacity 0.4s;
}

.project-card:hover {
    border-color: rgba(16, 185, 129, 0.3);
    transform: translateY(-4px);
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.3);
}

.project-card:hover::before {
    opacity: 1;
}

.project-number {
    font-size: 3.2rem;
    font-weight: 900;
    line-height: 1;
    background: var(--gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    opacity: 0.25;
    flex-shrink: 0;
}

.project-info {
    position: relative;
    z-index: 1;
}

.project-info h3 {
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 10px;
}

.project-info p {
    font-size: 0.92rem;
    color: var(--text-muted);
    margin-bottom: 16px;
}

.project-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 20px;
}

.project-tags span {
    padding: 4px 12px;
    border-radius: 999px;
    font-size: 0.72rem;
    font-weight: 500;
    background: var(--accent-glow);
    color: var(--accent);
    border: 1px solid rgba(16, 185, 129, 0.15);
}

.projects-cta {
    text-align: center;
    margin-top: 48px;
}

.projects-cta p {
    font-size: 1rem;
    color: var(--text-muted);
    margin-bottom: 20px;
}

/* ════════════════════════════════════════════
   EDUCATION
   ════════════════════════════════════════════ */
.education {
    background: var(--surface);
}

.education-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 56px;
    align-items: start;
}

/* ─── Timeline ─── */
.edu-timeline {
    position: relative;
    padding-left: 32px;
}

.edu-timeline::before {
    content: '';
    position: absolute;
    left: 7px;
    top: 8px;
    bottom: 8px;
    width: 2px;
    background: var(--border);
}

.edu-item {
    position: relative;
    margin-bottom: 32px;
}

.edu-item:last-child {
    margin-bottom: 0;
}

.edu-dot {
    position: absolute;
    left: -32px;
    top: 8px;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: var(--bg);
    border: 3px solid var(--text-muted);
    z-index: 1;
    transition: border-color 0.3s, box-shadow 0.3s;
}

.edu-item:hover .edu-dot {
    border-color: var(--accent);
    box-shadow: 0 0 12px var(--accent-glow);
}

.edu-dot-active {
    border-color: var(--accent) !important;
    background: var(--accent);
    box-shadow: 0 0 12px var(--accent-glow);
    animation: pulse 2s infinite;
}

.edu-card {
    padding: 24px;
    border-radius: var(--radius);
    background: var(--bg-card);
    border: 1px solid var(--border);
    transition: border-color 0.3s, transform 0.3s var(--ease);
}

.edu-card:hover {
    border-color: rgba(16, 185, 129, 0.3);
    transform: translateX(6px);
}

.edu-badge {
    display: inline-block;
    padding: 3px 12px;
    border-radius: 999px;
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    color: var(--text-muted);
    background: rgba(148, 163, 184, 0.1);
    border: 1px solid var(--border);
    margin-bottom: 10px;
}

.edu-badge-active {
    color: var(--accent);
    background: var(--accent-glow);
    border-color: rgba(16, 185, 129, 0.2);
}

.edu-card h3 {
    font-size: 1.05rem;
    font-weight: 700;
    margin-bottom: 6px;
}

.edu-meta {
    font-size: 0.88rem;
    color: var(--text-muted);
}

/* ─── Growth Chart ─── */
.edu-chart {
    padding: 32px;
    border-radius: var(--radius);
    background: var(--bg-card);
    border: 1px solid var(--border);
    text-align: center;
}

.chart-title {
    font-size: 1.15rem;
    font-weight: 700;
    margin-bottom: 32px;
}

.chart-container {
    display: flex;
    align-items: flex-end;
    justify-content: center;
    gap: 24px;
    height: 220px;
    padding: 0 8px;
}

.chart-bar-group {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    flex: 1;
}

.chart-bar {
    position: relative;
    width: 100%;
    max-width: 60px;
    height: 200px;
    border-radius: 8px 8px 4px 4px;
    background: rgba(148, 163, 184, 0.08);
    display: flex;
    align-items: flex-end;
}

.chart-fill {
    width: 100%;
    height: 0;
    border-radius: 8px 8px 4px 4px;
    transition: height 1.5s var(--ease);
}

.cf-1 {
    background: linear-gradient(180deg, #10b981, #047857);
}

.cf-2 {
    background: linear-gradient(180deg, #14b8a6, #0d9488);
}

.cf-3 {
    background: linear-gradient(180deg, #06b6d4, #0891b2);
}

.cf-4 {
    background: linear-gradient(180deg, #10b981, #06b6d4);
}

.chart-value {
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    font-size: 0.82rem;
    font-weight: 700;
    color: var(--accent);
    opacity: 0;
    transition: bottom 1.5s var(--ease), opacity 0.5s 1.2s;
    white-space: nowrap;
}

.chart-fill.animated~.chart-value {
    opacity: 1;
}

.chart-label {
    font-size: 0.78rem;
    font-weight: 600;
    color: var(--text-muted);
    letter-spacing: 0.3px;
}

.chart-footnote {
    font-size: 0.82rem;
    color: var(--text-muted);
    margin-top: 24px;
}

/* ════════════════════════════════════════════
   CONTACT
   ════════════════════════════════════════════ */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 48px;
    align-items: start;
}

.contact-info h3 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 14px;
}

.contact-info>p {
    font-size: 0.95rem;
    color: var(--text-muted);
    margin-bottom: 28px;
}

.contact-links {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 20px;
    border-radius: var(--radius-sm);
    background: var(--bg-card);
    border: 1px solid var(--border);
    font-size: 0.9rem;
    color: var(--text-muted);
    transition: border-color 0.3s, color 0.3s, transform 0.3s var(--ease);
}

.contact-item:hover {
    border-color: var(--accent);
    color: var(--accent);
    transform: translateX(6px);
}

.contact-icon {
    font-size: 1.2rem;
    display: flex;
}

/* Form */
.contact-form {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 16px;
    overflow: hidden;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 14px 18px;
    font-size: 0.9rem;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    background: var(--bg-card);
    color: var(--text);
    outline: none;
    transition: border-color 0.3s, box-shadow 0.3s;
    resize: vertical;
}

.form-group input:focus,
.form-group textarea:focus {
    border-color: var(--accent);
    box-shadow: 0 0 0 3px var(--accent-glow);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: var(--text-muted);
}

/* Send button interactive */
.btn-full {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.btn-icon {
    display: inline-block;
    transition: transform 0.3s var(--ease);
}

.btn-full:hover .btn-icon {
    transform: translateX(4px);
}

/* ─── Send Overlay ─── */
.send-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(15, 23, 42, 0.92);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-radius: var(--radius);
    z-index: 10;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.4s var(--ease);
}

.send-overlay.active {
    opacity: 1;
    pointer-events: auto;
}

.send-stage {
    position: absolute;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
    opacity: 0;
    transform: scale(0.8) translateY(10px);
    transition: opacity 0.4s, transform 0.4s var(--ease);
}

.send-stage.show {
    opacity: 1;
    transform: scale(1) translateY(0);
}

/* Stage 1: Tip */
.tip-icon {
    font-size: 2.5rem;
    animation: tipBounce 1s ease-in-out infinite alternate;
}

@keyframes tipBounce {
    0% {
        transform: translateY(0);
    }

    100% {
        transform: translateY(-6px);
    }
}

.tip-text {
    font-size: 1.05rem;
    font-weight: 600;
    color: var(--text);
    text-align: center;
    max-width: 280px;
    line-height: 1.5;
}

/* Stage 2: Spinner */
.send-spinner {
    width: 44px;
    height: 44px;
    border: 3px solid var(--border);
    border-top-color: var(--accent);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

.send-label {
    font-size: 0.92rem;
    color: var(--text-muted);
    letter-spacing: 0.3px;
}

/* Stage 3: Success checkmark */
.success-check {
    color: var(--accent);
}

.check-circle {
    stroke-dasharray: 166;
    stroke-dashoffset: 166;
    animation: drawCircle 0.6s ease forwards;
}

.check-mark {
    stroke-dasharray: 48;
    stroke-dashoffset: 48;
    animation: drawCheck 0.4s 0.4s ease forwards;
}

@keyframes drawCircle {
    to {
        stroke-dashoffset: 0;
    }
}

@keyframes drawCheck {
    to {
        stroke-dashoffset: 0;
    }
}

.success-text {
    font-size: 1.05rem;
    font-weight: 600;
    color: var(--accent);
}

/* ════════════════════════════════════════════
   FOOTER
   ════════════════════════════════════════════ */
.footer {
    text-align: center;
    padding: 32px 24px;
    font-size: 0.82rem;
    color: var(--text-muted);
    border-top: 1px solid var(--border);
}

/* ════════════════════════════════════════════
   RESPONSIVE
   ════════════════════════════════════════════ */
@media (max-width: 900px) {
    .skills-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .about-grid {
        grid-template-columns: 1fr;
    }

    .contact-grid {
        grid-template-columns: 1fr;
    }

    .education-grid {
        grid-template-columns: 1fr;
    }

    .hero-split {
        flex-direction: column;
        text-align: center;
        gap: 40px;
    }

    .hero-content {
        text-align: center;
    }

    .hero-cta {
        justify-content: center;
    }

    .hero-desc {
        margin: 20px auto 0;
    }

    .hero-profile {
        width: 300px;
        height: 390px;
    }

    .profile-ring {
        width: 270px;
        height: 360px;
    }
}

@media (max-width: 640px) {
    .navbar {
        padding: 0 20px;
    }

    .nav-links {
        position: fixed;
        top: 70px;
        left: 0;
        width: 100%;
        flex-direction: column;
        align-items: center;
        gap: 0;
        background: rgba(10, 10, 15, 0.96);
        backdrop-filter: blur(20px);
        border-bottom: 1px solid var(--border);
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.4s var(--ease);
    }

    .nav-links.open {
        max-height: 280px;
    }

    .nav-link {
        padding: 16px;
        width: 100%;
        text-align: center;
        border-radius: 0;
    }

    .menu-toggle {
        display: flex;
    }

    .skills-grid {
        grid-template-columns: 1fr 1fr;
        gap: 12px;
    }

    .hero-profile {
        width: 240px;
        height: 320px;
    }

    .profile-ring {
        width: 220px;
        height: 300px;
    }

    .project-card {
        flex-direction: column;
        padding: 24px;
    }

    .project-number {
        font-size: 2.2rem;
    }

    .hero-cta {
        flex-direction: column;
        align-items: center;
    }

    .section {
        padding: 64px 0;
    }
}