/* ============================================================
       CSS VARIABLES — tweak colours, fonts, sizes here
       ============================================================ */
:root {
    --accent: #00e5a0;
    /* green teal highlight */
    --accent-dim: rgba(0, 229, 160, .15);
    --bg: #000000;
    /* dark background */
    --bg2: #111621;
    /* card / section background */
    --bg3: #181d28;
    /* subtle surface */
    --text: #7c85a9;
    /* primary text */
    --muted: #8892a4;
    /* secondary text */
    --border: rgba(255, 255, 255, .07);
    --font-head: 'Syne', sans-serif;
    --font-body: 'DM Sans', sans-serif;
    --radius: 14px;
    --transition: .35s cubic-bezier(.4, 0, .2, 1);
    --nav-h: 68px;
}

/* ── Custom Crosshair Cursor ── */
* {
    cursor: none !important;
}

#cursor-crosshair {
    position: fixed;
    pointer-events: none;
    z-index: 99999;
    top: 0;
    left: 0;
    transform: translate(-50%, -50%);
    will-change: left, top;
}

#cursor-ring {
    position: fixed;
    pointer-events: none;
    z-index: 99998;
    top: 0;
    left: 0;
    width: 36px;
    height: 36px;
    border: 1.5px solid rgba(0, 229, 160, .5);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: width .22s ease, height .22s ease, border-color .22s ease;
    will-change: left, top;
}

body.cursor-hover #cursor-ring {
    width: 54px;
    height: 54px;
    border-color: rgba(0, 229, 160, .95);
}

body.cursor-click #cursor-crosshair {
    transform: translate(-50%, -50%) scale(.7);
}

@media (hover: none) {
    * {
        cursor: auto !important;
    }

    #cursor-crosshair,
    #cursor-ring {
        display: none !important;
    }
}

.skill-desc {
    margin: 4px 0 20px 0;
    font-size: 0.9rem;
    color: var(--muted);
    /* uses your existing muted color variable */
    line-height: 1.6;
}

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

html {
    scroll-behavior: smooth;
}


body {
    font-family: var(--font-body);
    background: var(--bg);
    color: var(--text);
    line-height: 1.65;
    overflow-x: hidden;
}

.fablab-img {
    width: 40px;
    height: 40px;
}

a {
    text-decoration: none;
    color: inherit;
}

ul {
    list-style: none;
}

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

/* ── Scrollbar ── */
::-webkit-scrollbar {
    width: 5px;
}

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

::-webkit-scrollbar-thumb {
    background: var(--accent);
    border-radius: 99px;
}

/* ── Utility ── */
.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 24px;
}

.accent {
    color: var(--accent);
}

.tag {
    display: inline-block;
    background: var(--accent-dim);
    color: var(--accent);
    font-size: .72rem;
    font-weight: 600;
    letter-spacing: .08em;
    text-transform: uppercase;
    padding: 4px 12px;
    border-radius: 99px;
    border: 1px solid var(--accent);
}

.section-title {
    font-family: var(--font-head);
    font-size: clamp(1.8rem, 4vw, 2.6rem);
    font-weight: 800;
    letter-spacing: -.02em;
    line-height: 1.15;
    margin-bottom: 40px;
}

.section-title span {
    color: var(--accent);
}

.card {
    background: var(--bg2);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 28px 32px;
    transition: border-color var(--transition), transform var(--transition), box-shadow var(--transition);
}

.card:hover {
    border-color: rgba(229, 0, 0, 0.35);
    transform: translateY(-3px);
    box-shadow: 0 16px 40px rgba(0, 0, 0, .35);
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 28px;
    border-radius: 99px;
    font-family: var(--font-head);
    font-weight: 700;
    font-size: .9rem;
    letter-spacing: .04em;
    cursor: pointer;
    border: none;
    transition: all var(--transition);
}

.btn-primary {
    background: var(--accent);
    color: #0b0e14;
}

.btn-primary:hover {
    background: #00ffb2;
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0, 229, 160, .3);
}

.btn-outline {
    background: transparent;
    color: var(--accent);
    border: 1.5px solid var(--accent);
}

.btn-outline:hover {
    background: var(--accent-dim);
}

/* ======================================================
       NAVBAR
       ====================================================== */
#navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: var(--nav-h);
    z-index: 1000;
    opacity: 0.9;

    transition: background var(--transition), box-shadow var(--transition);
}

#navbar.scrolled {
    background: rgba(11, 14, 20, .92);
    backdrop-filter: blur(14px);
    background-color: #0b0e14;
    box-shadow: 0 2px 24px rgba(0, 0, 0, .4);
}

.nav-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 100%;
}

.nav-logo {
    font-family: var(--font-head);
    font-size: 1.3rem;
    font-weight: 800;
    letter-spacing: -.02em;
}

.nav-logo span {
    color: var(--accent);
}

.nav-links {
    display: flex;
    gap: 32px;
    align-items: center;
}

.nav-links a {
    font-size: .88rem;
    font-weight: 500;
    color: var(--muted);
    letter-spacing: .02em;
    transition: color var(--transition);
    position: relative;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    right: 0;
    height: 2px;
    background: var(--accent);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform var(--transition);
    border-radius: 99px;
}

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

.nav-links a:hover::after {
    transform: scaleX(1);
}

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

.nav-links a.active::after {
    transform: scaleX(1);
}

.samosa {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    background: none;
    border: none;
}

.samosa span {
    width: 24px;
    height: 2px;
    background: var(--text);
    border-radius: 99px;
    transition: all var(--transition);
    display: block;
}

/* ======================================================
       HERO
       ====================================================== */
#home {
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
    padding-top: var(--nav-h);
}

.hero-bg {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse 60% 50% at 70% 40%, rgba(0, 229, 160, .08) 0%, transparent 70%),
        radial-gradient(ellipse 40% 60% at 20% 70%, rgba(0, 100, 200, .06) 0%, transparent 70%);
    pointer-events: none;
}

/* subtle grid */
.hero-bg::after {
    content: '';
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(255, 255, 255, .025) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, .025) 1px, transparent 1px);
    background-size: 60px 60px;
}

.hero-inner {
    display: flex;
    flex-direction: column;
    justify-content: center;
    width: 100%;
    position: relative;
    z-index: 1;
    max-width: 760px;
}

.hero-greeting {
    font-size: .9rem;
    font-weight: 500;
    color: var(--accent);
    letter-spacing: .1em;
    text-transform: uppercase;
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.hero-greeting::before {
    content: '';
    width: 32px;
    height: 2px;
    background: var(--accent);
    border-radius: 99px;
}

.hero-name {
    font-family: var(--font-head);
    font-size: clamp(2.8rem, 7vw, 5.5rem);
    font-weight: 800;
    letter-spacing: -.04em;
    line-height: 1.05;
    margin-bottom: 16px;
}

/* ── EDIT: Replace YOUR_NAME in the HTML below ── */
.hero-role {
    font-size: clamp(1rem, 2.5vw, 1.4rem);
    color: var(--muted);
    font-weight: 300;
    margin-bottom: 32px;
}

.hero-role strong {
    color: var(--text);
    font-weight: 500;
    font-style: italic;
}

.hero-cta {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

.hero-stats {
    display: flex;
    gap: 40px;
    margin-top: 56px;
}

.stat-num {
    font-family: var(--font-head);
    font-size: 2.2rem;
    font-weight: 800;
    color: var(--accent);
    line-height: 1;
}

.stat-label {
    font-size: .8rem;
    color: var(--muted);
    margin-top: 4px;
}

/* ── Avatar ── */
.hero-avatar-wrap {
    position: relative;
    width: 300px;
    flex-shrink: 0;
}

.hero-avatar-ring {
    width: 280px;
    height: 280px;
    border-radius: 50%;
    border: 2px solid rgba(0, 229, 160, .3);
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    animation: spin 18s linear infinite;
}

.hero-avatar-ring::before {
    content: '';
    position: absolute;
    width: 10px;
    height: 10px;
    background: var(--accent);
    border-radius: 50%;
    top: -5px;
    left: 50%;
    transform: translateX(-50%);
}

@keyframes spin {
    to {
        transform: translate(-50%, -50%) rotate(360deg);
    }
}

.hero-avatar {
    width: 240px;
    height: 240px;
    border-radius: 50%;
    object-fit: cover;
    border: 4px solid var(--bg2);
    margin: 0 auto;
    position: relative;
    z-index: 1;
    box-shadow: 0 0 60px rgba(0, 229, 160, .2);
    /* ── EDIT: Replace the src below with your photo ── */
    background: var(--bg3);
    display: flex;
    align-items: center;
    justify-content: center;
}

.avatar-placeholder {
    width: 240px;
    height: 240px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--bg2) 0%, var(--bg3) 100%);
    border: 4px solid rgba(0, 229, 160, .3);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: var(--muted);
    font-size: .8rem;
    gap: 8px;
    position: relative;
    z-index: 1;
    margin: 0 auto;
    box-shadow: 0 0 60px rgba(0, 229, 160, .15);
}

.avatar-placeholder i {
    font-size: 2.5rem;
    color: rgba(0, 229, 160, .4);
}

/* socials sidebar */
.hero-socials {
    position: fixed;
    left: 24px;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    flex-direction: column;
    gap: 18px;
    z-index: 100;
}

.hero-socials a {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--muted);
    font-size: 1rem;
    border: 1px solid var(--border);
    border-radius: 8px;
    background: var(--bg2);
    transition: all var(--transition);
}

.hero-socials a:hover {
    color: var(--accent);
    border-color: var(--accent);
    transform: translateX(3px);
}

/* ── scroll indicator ── */
.scroll-indicator {
    position: absolute;
    bottom: 32px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    color: var(--muted);
    font-size: .75rem;
    letter-spacing: .1em;
    text-transform: uppercase;
    animation: bounce 2s ease-in-out infinite;
}

@keyframes bounce {

    0%,
    100% {
        transform: translateX(-50%) translateY(0);
    }

    50% {
        transform: translateX(-50%) translateY(8px);
    }
}

.scroll-indicator i {
    font-size: 1.1rem;
}

/* ======================================================
       ABOUT
       ====================================================== */
#about {
    padding: 100px 0;
}

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

.about-bio {
    font-size: 1rem;
    color: var(--muted);
    line-height: 1.8;
    margin-bottom: 28px;
}

.about-bio strong {
    color: var(--text);
}

.personal-info {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
    margin-top: 28px;
}

.info-item {
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.info-item .label {
    font-size: .74rem;
    color: var(--muted);
    text-transform: uppercase;
    letter-spacing: .08em;
}

.info-item .value {
    font-size: .92rem;
    color: var(--text);
    font-weight: 500;
}

.info-item .value a {
    color: var(--accent);
}

.expertise-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.expertise-card {
    background: var(--bg2);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 22px 24px;
    position: relative;
    overflow: hidden;
    transition: border-color var(--transition), transform var(--transition);
}

.expertise-card::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 3px;
    background: var(--accent);
}

.expertise-card:hover {
    border-color: rgba(0, 229, 160, .35);
    transform: translateX(4px);
}

.expertise-card h4 {
    font-family: var(--font-head);
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 6px;
}

.expertise-card p {
    font-size: .88rem;
    color: var(--muted);
    line-height: 1.6;
}

/* ======================================================
       RESUME
       ====================================================== */
#resume {
    padding: 100px 0;
    background: var(--bg2);
}

.resume-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 60px;
}

.timeline {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.timeline-item {
    display: grid;
    grid-template-columns: 20px 1fr;
    gap: 20px;
    padding-bottom: 36px;
    position: relative;
}

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

.timeline-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--accent);
    margin-top: 6px;
    box-shadow: 0 0 12px rgba(0, 229, 160, .5);
    flex-shrink: 0;
    position: relative;
    z-index: 1;
}

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

.timeline-item:last-child::before {
    display: none;
}

.tl-year {
    font-size: .76rem;
    color: var(--accent);
    font-weight: 600;
    letter-spacing: .06em;
    text-transform: uppercase;
    margin-bottom: 4px;
}

.tl-title {
    font-family: var(--font-head);
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 4px;
}

.tl-subtitle {
    font-size: .85rem;
    color: var(--muted);
    margin-bottom: 8px;
}

.tl-desc {
    font-size: .84rem;
    color: var(--muted);
    line-height: 1.6;
}

/* ── Skills ── */
.skills-section h3 {
    font-family: var(--font-head);
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 20px;
}

.skill-bar {
    margin-bottom: 18px;
}

.skill-bar-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 7px;
}

.skill-name {
    font-size: .88em;
    font-weight: 900;
    color: var(--accent);
}

.skill-pct {
    font-size: .82rem;
    color: var(--accent);
    font-weight: 600;
}

.skill-track {
    height: 6px;
    background: var(--border);
    border-radius: 99px;
    overflow: hidden;
}

.skill-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--accent), #00b4d8);
    border-radius: 99px;
    transition: transform 1.2s cubic-bezier(.4, 0, .2, 1);
}

body.js-ready .skill-fill {
    transform: scaleX(0);
    transform-origin: left;
}

body.js-ready .skill-fill.animated {
    transform: scaleX(1);
}

.lang-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 12px;
}

.lang-chip {
    padding: 7px 18px;
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: 99px;
    font-size: .82rem;
    color: var(--muted);
}

/* ======================================================
       PORTFOLIO / FABLAB
       ====================================================== */
#portfolio {
    padding: 100px 0;
}

.portfolio-tabs {
    display: flex;
    gap: 12px;
    margin-bottom: 40px;
    flex-wrap: wrap;
}

.tab-btn {
    padding: 9px 24px;
    border-radius: 99px;
    font-size: .85rem;
    font-weight: 600;
    border: 1.5px solid var(--border);
    background: transparent;
    color: var(--muted);
    cursor: pointer;
    transition: all var(--transition);
    font-family: var(--font-body);
}

.tab-btn.active,
.tab-btn:hover {
    background: var(--accent-dim);
    border-color: var(--accent);
    color: var(--accent);
}

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

.portfolio-card {
    border-radius: var(--radius);
    overflow: hidden;
    border: 1px solid var(--border);
    background: var(--bg2);
    transition: all var(--transition);
    position: relative;
}

.portfolio-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 24px 48px rgba(0, 0, 0, .4);
    border-color: rgba(0, 229, 160, .3);
}

.portfolio-thumb {
    width: 100%;
    aspect-ratio: 16/10;
    object-fit: cover;
    background: var(--bg3);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--muted);
    font-size: .8rem;
    flex-direction: column;
    gap: 8px;
}

.portfolio-thumb i {
    font-size: 2rem;
    color: rgba(0, 229, 160, .3);
}

.portfolio-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--transition);
}

.portfolio-card:hover .portfolio-thumb img {
    transform: scale(1.05);
}

.portfolio-info {
    padding: 18px 20px;
}

.portfolio-tag {
    font-size: .7rem;
    color: var(--accent);
    font-weight: 600;
    letter-spacing: .1em;
    text-transform: uppercase;
    margin-bottom: 6px;
}

.portfolio-info h4 {
    font-family: var(--font-head);
    font-size: .98rem;
    font-weight: 700;
}

.portfolio-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 229, 160, .12);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity var(--transition);
}

.portfolio-card:hover .portfolio-overlay {
    opacity: 1;
}

.portfolio-overlay a {
    width: 44px;
    height: 44px;
    background: var(--accent);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #0b0e14;
    font-size: 1.1rem;
}

/* ======================================================
       PROJECTS / BLOG
       ====================================================== */
#blog {
    padding: 100px 0;
    background: var(--bg2);
}

.projects-list {
    display: flex;
    flex-direction: column;
    gap: 32px;
}

.project-card {
    display: grid;
    grid-template-columns: 260px 1fr;
    gap: 32px;
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
    transition: all var(--transition);
}

.project-card:hover {
    border-color: rgba(0, 229, 160, .3);
    transform: translateY(-3px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, .3);
}

.project-img {
    aspect-ratio: 4/3;
    object-fit: cover;
    background: var(--bg3);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    color: var(--muted);
    font-size: .8rem;
    gap: 8px;
}

.project-img i {
    font-size: 2rem;
    color: rgba(0, 229, 160, .25);
}

.project-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.project-body {
    padding: 28px 32px 28px 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.project-meta {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-bottom: 14px;
}

.project-body h3 {
    font-family: var(--font-head);
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 10px;
}

.project-body p {
    font-size: .9rem;
    color: var(--muted);
    line-height: 1.7;
    margin-bottom: 16px;
}

.tech-stack {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.tech-pill {
    padding: 4px 12px;
    background: var(--bg2);
    border: 1px solid var(--border);
    border-radius: 99px;
    font-size: .76rem;
    color: var(--muted);
    font-weight: 500;
}

/* ======================================================
       CONTACT
       ====================================================== */
#contact {
    padding: 100px 0;
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
}

.contact-info-list {
    display: flex;
    flex-direction: column;
    gap: 24px;
    margin-top: 28px;
}

.contact-item {
    display: flex;
    align-items: flex-start;
    gap: 16px;
}

.contact-icon {
    width: 44px;
    height: 44px;
    border-radius: 10px;
    background: var(--accent-dim);
    border: 1px solid var(--accent);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--accent);
    font-size: 1rem;
    flex-shrink: 0;
}

.contact-item .label {
    font-size: .76rem;
    color: var(--muted);
    text-transform: uppercase;
    letter-spacing: .08em;
}

.contact-item .value {
    font-size: .95rem;
    color: var(--text);
    font-weight: 500;
}

.contact-item .value a {
    color: var(--accent);
}

/* ── Form ── */
.contact-form {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 18px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 7px;
}

.form-group label {
    font-size: .78rem;
    color: var(--muted);
    text-transform: uppercase;
    letter-spacing: .07em;
}

.form-group input,
.form-group textarea,
.form-group select {
    background: var(--bg2);
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 13px 16px;
    color: var(--text);
    font-family: var(--font-body);
    font-size: .92rem;
    outline: none;
    transition: border-color var(--transition), box-shadow var(--transition);
    resize: none;
}

.form-group input:focus,
.form-group textarea:focus {
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(0, 229, 160, .1);
}

.form-group textarea {
    height: 130px;
}

.form-success {
    display: none;
    padding: 14px 20px;
    background: var(--accent-dim);
    border: 1px solid var(--accent);
    border-radius: 10px;
    color: var(--accent);
    font-size: .9rem;
    font-weight: 500;
}

/* ======================================================
       FOOTER
       ====================================================== */
footer {
    background: var(--bg2);
    border-top: 1px solid var(--border);
    padding: 36px 0;
    text-align: center;
}

.footer-inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
}

.footer-logo {
    font-family: var(--font-head);
    font-size: 1.4rem;
    font-weight: 800;
}

.footer-logo span {
    color: var(--accent);
}

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

.footer-links a {
    font-size: .85rem;
    color: var(--muted);
    transition: color var(--transition);
}

.footer-links a:hover {
    color: var(--accent);
}

.footer-copy {
    font-size: .78rem;
    color: var(--muted);
}

/* ── back-to-top ── */
#btt {
    position: fixed;
    bottom: 28px;
    right: 28px;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: var(--accent);
    color: #0b0e14;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    opacity: 0;
    pointer-events: none;
    transition: opacity var(--transition), transform var(--transition);
    cursor: pointer;
    border: none;
    z-index: 999;
}

#btt.show {
    opacity: 1;
    pointer-events: auto;
}

#btt:hover {
    transform: translateY(-3px);
    background: #00ffb2;
}

/* ── page load animation ──
       Content is always visible by default.
       JS adds .js-ready to <body> which enables the hidden
       state so animations only run when scripting is available.
    ── */
body.js-ready .fade-up {
    opacity: 0;
    transform: translateY(28px);
    transition: opacity .7s ease, transform .7s ease;
}

body.js-ready .fade-up.visible {
    opacity: 1;
    transform: none;
}

/* ======================================================
       RESPONSIVE
       ====================================================== */
@media (max-width: 900px) {
    .hero-inner {
        text-align: center;
    }

    .hero-greeting {
        justify-content: center;
    }

    .hero-cta {
        justify-content: center;
    }

    .hero-stats {
        justify-content: center;
    }

    .hero-socials {
        display: none;
    }

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

    .resume-grid>div {
        grid-template-columns: 1fr !important;
    }

    .contact-grid {
        grid-template-columns: 1fr;
    }

    .project-card {
        grid-template-columns: 1fr;
    }

    .project-img {
        height: 220px;
    }

    .project-body {
        padding: 24px;
    }

    .form-row {
        grid-template-columns: 1fr;
    }

    .nav-links {
        display: none;
        position: absolute;
        top: var(--nav-h);
        left: 0;
        right: 0;
        background: var(--bg);
        flex-direction: column;
        gap: 0;
        padding: 12px 0;
        border-bottom: 1px solid var(--border);
    }

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

    .nav-links a {
        padding: 14px 24px;
    }

    .samosa {
        display: flex;
    }
}

@media (max-width: 560px) {
    .personal-info {
        grid-template-columns: 1fr;
    }

    .hero-stats {
        flex-wrap: wrap;
        gap: 24px;
    }
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    background: var(--bg);
    color: var(--text);
    line-height: 1.65;
    min-height: 100vh;
}

a {
    text-decoration: none;
    color: inherit;
}

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

::-webkit-scrollbar-thumb {
    background: var(--accent);
    border-radius: 99px;
}

.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 24px;
}

/* ─── NAVBAR (same as portfolio) ─── */
#navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: var(--nav-h);
    z-index: 1000;
    transition: background var(--tr), box-shadow var(--tr);
}

#navbar.scrolled {
    background: rgba(11, 14, 20, .93);
    backdrop-filter: blur(14px);
    box-shadow: 0 2px 24px rgba(0, 0, 0, .4);
}

.nav-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 100%;
}

.nav-logo {
    font-family: var(--font-head);
    font-size: 1.3rem;
    font-weight: 800;
    letter-spacing: -.02em;
}

.nav-logo span {
    color: var(--accent);
}

.nav-back {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: .85rem;
    color: var(--muted);
    border: 1px solid var(--border);
    padding: 7px 18px;
    border-radius: 99px;
    background: var(--bg2);
    transition: all var(--tr);
}

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

/* ─── BREADCRUMB HERO ─── */
.page-hero {
    padding: calc(var(--nav-h) + 60px) 0 60px;
    position: relative;
    overflow: hidden;
}

.page-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse 55% 60% at 80% 30%, rgba(0, 229, 160, .07) 0%, transparent 65%),
        radial-gradient(ellipse 45% 50% at 10% 80%, rgba(0, 180, 216, .05) 0%, transparent 65%);
    pointer-events: none;
}

.page-hero::after {
    content: '';
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(255, 255, 255, .02) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, .02) 1px, transparent 1px);
    background-size: 60px 60px;
}

.hero-inner {
    position: relative;
    z-index: 1;
}

.hero-chip {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    background: var(--accent-dim);
    border: 1px solid var(--accent);
    color: var(--accent);
    font-size: .72rem;
    font-weight: 700;
    letter-spacing: .1em;
    text-transform: uppercase;
    padding: 5px 14px;
    border-radius: 99px;
    margin-bottom: 20px;
}

.page-title {
    font-family: var(--font-head);
    font-size: clamp(2.4rem, 6vw, 4rem);
    font-weight: 800;
    letter-spacing: -.04em;
    line-height: 1.05;
    margin-bottom: 14px;
}

.page-title span {
    color: var(--accent);
}

.page-sub {
    font-size: 1rem;
    color: var(--muted);
}

/* ─── MAIN AGREEMENT SECTION ─── */
#agreement {
    padding: 0 0 100px;
}

/* document header card */
.doc-header {
    background: var(--bg2);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 30px 32px;
    display: flex;
    align-items: center;
    gap: 22px;
    margin-bottom: 28px;
    position: relative;
    overflow: hidden;
}

.doc-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--accent), var(--accent2));
}

.doc-icon {
    width: 60px;
    height: 60px;
    border-radius: 14px;
    background: var(--accent-dim);
    border: 1px solid rgba(0, 229, 160, .3);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.7rem;
    flex-shrink: 0;
    color: var(--accent);
}

.doc-meta h2 {
    font-family: var(--font-head);
    font-size: 1.35rem;
    font-weight: 800;
    margin-bottom: 4px;
}

.doc-meta p {
    font-size: .86rem;
    color: var(--muted);
}

.doc-badge {
    margin-left: auto;
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: var(--accent-dim);
    border: 1px solid rgba(0, 229, 160, .4);
    color: var(--accent);
    font-size: .7rem;
    font-weight: 700;
    letter-spacing: .1em;
    text-transform: uppercase;
    padding: 6px 14px;
    border-radius: 99px;
}

/* two-column grid */
.resp-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 22px;
    margin-bottom: 22px;
}

/* responsibility cards */
.resp-card {
    background: var(--bg2);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 26px 26px;
    position: relative;
    overflow: hidden;
}

.resp-card.card-fablab::after {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 3px;
    background: var(--accent);
}

.resp-card.card-student::after {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 3px;
    background: var(--accent2);
}

.resp-card-title {
    font-family: var(--font-head);
    font-size: .74rem;
    font-weight: 700;
    letter-spacing: .1em;
    text-transform: uppercase;
    margin-bottom: 22px;
    display: flex;
    align-items: center;
    gap: 9px;
    padding-left: 10px;
}

.card-fablab .resp-card-title {
    color: var(--accent);
}

.card-student .resp-card-title {
    color: var(--accent2);
}

.resp-list {
    display: flex;
    flex-direction: column;
    padding-left: 10px;
}

.resp-item {
    display: flex;
    align-items: flex-start;
    gap: 11px;
    padding: 11px 0;
    border-bottom: 1px solid var(--border);
    font-size: .875rem;
    color: var(--muted);
    line-height: 1.6;
}

.resp-item:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.resp-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    margin-top: 8px;
    flex-shrink: 0;
}

.card-fablab .resp-dot {
    background: var(--accent);
}

.card-student .resp-dot {
    background: var(--accent2);
}

/* declaration card */
.declaration-card {
    background: var(--bg2);
    border: 1px solid rgba(0, 229, 160, .2);
    border-radius: var(--radius);
    padding: 28px 32px;
    position: relative;
    overflow: hidden;
}

.declaration-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--accent), var(--accent2));
}

.declaration-card::after {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse 70% 80% at 95% 50%, rgba(0, 229, 160, .04) 0%, transparent 65%);
    pointer-events: none;
}

.decl-title {
    font-family: var(--font-head);
    font-size: .98rem;
    font-weight: 700;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 9px;
    color: var(--text);
}

.decl-title i {
    color: var(--accent);
}

.decl-body {
    font-size: .9rem;
    color: var(--muted);
    line-height: 1.7;
}

.decl-divider {
    margin: 20px 0;
    border: none;
    border-top: 1px dashed rgba(0, 229, 160, .3);
}

.decl-sig {
    display: flex;
    align-items: center;
    gap: 10px;
}

.decl-sig-label {
    font-size: .9rem;
    color: var(--muted);
    font-weight: 500;
}

.decl-sig-name {
    font-family: var(--font-head);
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--accent);
}

/* ─── FOOTER ─── */
footer {
    background: var(--bg2);
    border-top: 1px solid var(--border);
    padding: 32px 0;
    text-align: center;
}

.footer-logo {
    font-family: var(--font-head);
    font-size: 1.3rem;
    font-weight: 800;
    margin-bottom: 14px;
}

.footer-logo span {
    color: var(--accent);
}

.footer-nav {
    display: flex;
    gap: 24px;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 12px;
}

.footer-nav a {
    font-size: .84rem;
    color: var(--muted);
    transition: color var(--tr);
}

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

.footer-copy {
    font-size: .76rem;
    color: var(--muted);
}

/* back to top */
#btt {
    position: fixed;
    bottom: 28px;
    right: 28px;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: var(--accent);
    color: #0b0e14;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    opacity: 0;
    pointer-events: none;
    transition: opacity var(--tr), transform var(--tr);
    cursor: pointer;
    border: none;
    z-index: 999;
}

#btt.show {
    opacity: 1;
    pointer-events: auto;
}

#btt:hover {
    transform: translateY(-3px);
}

/* ─── RESPONSIVE ─── */
@media (max-width: 720px) {
    .resp-grid {
        grid-template-columns: 1fr;
    }

    .doc-header {
        flex-wrap: wrap;
    }

    .doc-badge {
        margin-left: 0;
    }
}