/* =========================================================
   SUYOG BHANDARI — PORTFOLIO
   Complete stylesheet
========================================================= */


/* =========================================================
   ROOT / THEME
========================================================= */

:root {

    --lime: #c6ff00;
    --lime-dark: #9dca00;
    --lime-rgb: 198, 255, 0;

    --font-display: "Space Grotesk", sans-serif;
    --font-body: "Inter", sans-serif;
    --font-mono: "DM Mono", monospace;

    --header-height: 78px;

    --radius-small: 4px;
    --radius-medium: 8px;

    --transition: 0.25s ease;

    /* Motion system */
    --ease-out-expo: cubic-bezier(0.16, 1, 0.3, 1);
    --ease-spring:   cubic-bezier(0.34, 1.4, 0.64, 1);

    --dur-fast:   180ms;
    --dur-base:   320ms;
    --dur-slow:   620ms;

    --reveal-shift: 26px;
}


/* DARK THEME */

[data-theme="dark"] {

    color-scheme: dark;

    --black: #080808;
    --black-2: #0e0e0e;
    --black-3: #151515;

    --white: #f4f4ef;
    --white-2: #d8d8d2;

    --gray: #929292;
    --gray-2: #626262;

    --border: rgba(255, 255, 255, 0.10);
    --border-hover: rgba(198, 255, 0, 0.55);

    --header-bg: rgba(8, 8, 8, 0.88);

    --grid-color: rgba(255, 255, 255, 0.035);

    --image-bg: #deded8;

    --shadow: rgba(0, 0, 0, 0.45);

    --shine: rgba(255, 255, 255, 0.28);

    /* Same as --lime here — full contrast already on this background. */
    --accent: var(--lime);
}


/* LIGHT THEME */

[data-theme="light"] {

    color-scheme: light;

    --black: #f4f4ef;
    --black-2: #ffffff;
    --black-3: #eaeae4;

    --white: #101010;
    --white-2: #303030;

    --gray: #646464;
    --gray-2: #8a8a8a;

    --border: rgba(16, 16, 16, 0.12);
    --border-hover: rgba(120, 155, 0, 0.55);

    --header-bg: rgba(244, 244, 239, 0.90);

    --grid-color: rgba(16, 16, 16, 0.045);

    --image-bg: #e5e5df;

    --shadow: rgba(0, 0, 0, 0.10);

    --shine: rgba(16, 16, 16, 0.14);

    /* Darkened, same-hue green — #c6ff00 fails contrast on this
       background; this measures ~5.5:1 against --black. */
    --accent: #4f6c00;
}


/* =========================================================
   RESET
========================================================= */

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


html {
    scroll-behavior: smooth;
    scroll-padding-top: var(--header-height);
}


body {
    min-height: 100vh;
    min-height: 100svh;

    background-color: var(--black);
    color: var(--white);

    font-family: var(--font-body);

    line-height: 1.6;

    overflow-x: hidden;

    transition:
        background-color 0.3s ease,
        color 0.3s ease;
}


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


a {
    color: inherit;
}


button,
input,
textarea {
    font: inherit;
}


button {
    cursor: pointer;
}


/* =========================================================
   SELECTION
========================================================= */

::selection {
    background: var(--lime);
    color: #080808;
}


/* =========================================================
   SCROLLBAR
========================================================= */

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


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


::-webkit-scrollbar-thumb {
    background: var(--gray-2);
}


::-webkit-scrollbar-thumb:hover {
    background: var(--accent);
}


/* =========================================================
   HEADER
========================================================= */

.site-header {

    position: fixed;

    top: 0;
    left: 0;

    width: 100%;

    height: var(--header-height);

    z-index: 1000;

    background: var(--header-bg);

    border-bottom: 1px solid var(--border);

    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);

    transition:
        background-color 0.3s ease,
        border-color 0.3s ease;
}


.navbar {

    width: min(1400px, calc(100% - 64px));

    height: 100%;

    margin: 0 auto;

    display: flex;

    align-items: center;

    justify-content: space-between;
}


/* Brand */

.navbar-brand {

    display: flex;

    align-items: center;

    gap: 11px;

    color: var(--white);

    text-decoration: none;

    font-family: var(--font-display);

    font-size: 17px;

    font-weight: 700;

    letter-spacing: -0.04em;
}


.navbar-brand img {

    width: 32px;
    height: 32px;

    object-fit: cover;

    border-radius: 50%;
}


/* Navigation */

.nav-links {

    display: flex;

    align-items: center;

    gap: 34px;

    margin-left: auto;

    margin-right: 26px;
}


.nav-links a {

    position: relative;

    color: var(--gray);

    text-decoration: none;

    font-family: var(--font-mono);

    font-size: 11px;

    text-transform: uppercase;

    letter-spacing: 0.10em;

    transition: color var(--transition);
}


.nav-links a::after {

    content: "";

    position: absolute;

    left: 0;
    bottom: -7px;

    width: 0;
    height: 1px;

    background: var(--accent);

    transition: width var(--transition);
}


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


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


/* Header actions */

.header-actions {

    display: flex;

    align-items: center;

    gap: 10px;
}


/* =========================================================
   THEME TOGGLE
========================================================= */

.theme-toggle {

    position: relative;

    width: 40px;
    height: 40px;

    display: flex;

    align-items: center;
    justify-content: center;

    border: 1px solid var(--border);

    border-radius: 50%;

    background: transparent;

    color: var(--white);

    overflow: hidden;

    transition:
        border-color var(--transition),
        background-color var(--transition),
        color var(--transition);
}


.theme-toggle:hover {

    border-color: var(--accent);

    background: var(--black-3);

    color: var(--accent);
}


.theme-icon {

    position: absolute;

    font-size: 19px;

    line-height: 1;

    transition:
        opacity 0.25s ease,
        transform 0.25s ease;
}


/* Dark = show sun */

[data-theme="dark"] .theme-icon-sun {

    opacity: 1;

    transform:
        scale(1)
        rotate(0deg);
}


[data-theme="dark"] .theme-icon-moon {

    opacity: 0;

    transform:
        scale(0.5)
        rotate(-90deg);
}


/* Light = show moon */

[data-theme="light"] .theme-icon-sun {

    opacity: 0;

    transform:
        scale(0.5)
        rotate(90deg);
}


[data-theme="light"] .theme-icon-moon {

    opacity: 1;

    transform:
        scale(1)
        rotate(0deg);
}


/* =========================================================
   MOBILE MENU BUTTON
========================================================= */

.menu-toggle {

    display: none;

    width: 40px;
    height: 40px;

    padding: 9px;

    border: 1px solid var(--border);

    background: transparent;

    border-radius: var(--radius-small);
}


.menu-toggle span {

    display: block;

    width: 100%;
    height: 1px;

    margin: 5px 0;

    background: var(--white);

    transition: transform var(--transition);
}


/* =========================================================
   HERO
========================================================= */

.hero {

    position: relative;

    min-height: 100vh;
    min-height: 100svh;

    display: flex;

    align-items: center;

    padding:
        calc(var(--header-height) + 80px)
        0
        100px;

    background-color: var(--black);

    background-image:
        linear-gradient(
            var(--grid-color) 1px,
            transparent 1px
        ),
        linear-gradient(
            90deg,
            var(--grid-color) 1px,
            transparent 1px
        );

    background-size: 55px 55px;
}


.hero-grid {

    width: min(1400px, calc(100% - 64px));

    margin: 0 auto;

    display: grid;

    grid-template-columns:
        minmax(0, 1.05fr)
        minmax(360px, 0.75fr);

    align-items: center;

    gap: 100px;
}


.hero-content {
    max-width: 720px;
}


/* Eyebrow */

.eyebrow {

    margin-bottom: 22px;

    color: var(--accent);

    font-family: var(--font-mono);

    font-size: 11px;

    font-weight: 500;

    letter-spacing: 0.16em;
}


/* Hero title */

.hero h1 {

    margin-bottom: 28px;

    font-family: var(--font-display);

    font-size: clamp(64px, 9vw, 132px);

    font-weight: 600;

    line-height: 0.86;

    letter-spacing: -0.075em;

    color: var(--white);
}


.hero h1 span {

    display: block;

    color: var(--gray);

    font-weight: 400;
}


.hero-description {

    max-width: 570px;

    margin-bottom: 38px;

    color: var(--gray);

    font-size: 17px;

    line-height: 1.8;
}


/* Hero buttons */

.hero-buttons {

    display: flex;

    flex-wrap: wrap;

    gap: 12px;
}


.button {

    display: inline-flex;

    align-items: center;

    justify-content: center;

    gap: 18px;

    min-height: 50px;

    padding: 0 22px;

    border: 1px solid transparent;

    font-family: var(--font-mono);

    font-size: 11px;

    font-weight: 500;

    letter-spacing: 0.06em;

    text-transform: uppercase;

    text-decoration: none;

    transition:
        background-color var(--transition),
        color var(--transition),
        border-color var(--transition),
        transform var(--transition);
}


.button:hover {
    transform: translateY(-2px);
}


.button-primary {

    background: var(--lime);

    color: #080808;
}


.button-primary:hover {
    background: var(--white);
}


.button-secondary {

    border-color: var(--border);

    color: var(--white);

    background: transparent;
}


.button-secondary:hover {

    border-color: var(--accent);

    color: var(--accent);
}


/* =========================================================
   PROFILE CARD
========================================================= */

.hero-image-area {

    display: flex;

    justify-content: flex-end;
}


.profile-card {

    width: min(100%, 450px);

    background: var(--black-2);

    border: 1px solid var(--border);

    box-shadow:
        0 30px 70px var(--shadow);
}


.profile-card-top {

    display: flex;

    justify-content: space-between;

    padding: 15px 18px;

    border-bottom: 1px solid var(--border);

    color: var(--gray-2);

    font-family: var(--font-mono);

    font-size: 9px;

    letter-spacing: 0.12em;
}


.profile-image-wrapper {

    padding: 22px;

    background: var(--image-bg);
}


.profile-image {

    width: 100%;

    aspect-ratio: 1 / 1;

    object-fit: cover;

    filter: grayscale(100%);

    transition: filter 0.4s ease;
}


.profile-card:hover .profile-image {
    filter: grayscale(0%);
}


.profile-card-bottom {

    display: flex;

    align-items: center;

    justify-content: space-between;

    gap: 20px;

    padding: 18px;
}


.profile-name,
.profile-role {

    display: block;
}


.profile-name {

    margin-bottom: 3px;

    color: var(--white);

    font-family: var(--font-mono);

    font-size: 10px;

    font-weight: 500;

    letter-spacing: 0.08em;
}


.profile-role {

    color: var(--gray-2);

    font-family: var(--font-mono);

    font-size: 9px;

    letter-spacing: 0.08em;
}


.availability {

    display: flex;

    align-items: center;

    gap: 7px;

    color: var(--gray);

    font-family: var(--font-mono);

    font-size: 8px;

    letter-spacing: 0.1em;
}


.availability-dot {

    width: 6px;
    height: 6px;

    border-radius: 50%;

    background: var(--accent);

    box-shadow: 0 0 12px rgba(198, 255, 0, 0.65);
}


/* =========================================================
   SECTIONS
========================================================= */

.section {

    width: min(1400px, calc(100% - 64px));

    margin: 0 auto;

    padding: 130px 0;
}


.section-heading {

    margin-bottom: 65px;

    max-width: 850px;
}


.section-title {

    color: var(--white);

    font-family: var(--font-display);

    font-size: clamp(42px, 6vw, 80px);

    font-weight: 500;

    line-height: 0.95;

    letter-spacing: -0.065em;
}


/* =========================================================
   ABOUT
========================================================= */

.about-grid {

    display: grid;

    grid-template-columns:
        minmax(0, 1fr)
        minmax(0, 0.9fr);

    gap: 100px;
}


.about-copy {

    max-width: 680px;
}


.about-copy p {

    margin-bottom: 24px;

    color: var(--gray);

    font-size: 18px;

    line-height: 1.85;
}


.about-copy p:last-child {
    margin-bottom: 0;
}


/* Skills */

.skills-area {

    display: flex;

    flex-direction: column;
}


.skill-block {

    padding: 25px 0;

    border-top: 1px solid var(--border);
}


.skill-block:last-child {
    border-bottom: 1px solid var(--border);
}


.skill-title {

    margin-bottom: 17px;

    color: var(--white);

    font-family: var(--font-mono);

    font-size: 11px;

    font-weight: 500;

    letter-spacing: 0.10em;

    text-transform: uppercase;
}


.skill-tags {

    display: flex;

    flex-wrap: wrap;

    gap: 8px;
}


.skill-tags span {

    padding: 8px 11px;

    border: 1px solid var(--border);

    color: var(--gray);

    font-family: var(--font-mono);

    font-size: 10px;

    transition:
        border-color var(--transition),
        color var(--transition);
}


.skill-tags span:hover {

    border-color: var(--accent);

    color: var(--accent);
}


/* =========================================================
   PROJECTS
========================================================= */

.project-list {

    border-top: 1px solid var(--border);
}


.project-card {

    display: grid;

    grid-template-columns: 100px 1fr;

    gap: 30px;

    padding: 48px 0;

    border-bottom: 1px solid var(--border);

    transition:
        padding-left var(--transition),
        border-color var(--transition);
}


.project-card:hover {

    padding-left: 14px;

    border-color: var(--border-hover);
}


.project-index {

    padding-top: 5px;

    color: var(--gray-2);

    font-family: var(--font-mono);

    font-size: 12px;

    letter-spacing: 0.08em;
}


.project-main {
    min-width: 0;
}


.project-heading {

    display: flex;

    align-items: flex-start;

    justify-content: space-between;

    gap: 30px;

    margin-bottom: 22px;
}


.project-category {

    margin-bottom: 9px;

    color: var(--accent);

    font-family: var(--font-mono);

    font-size: 9px;

    font-weight: 500;

    letter-spacing: 0.14em;
}


.project-heading h3 {

    color: var(--white);

    font-family: var(--font-display);

    font-size: clamp(32px, 4vw, 55px);

    font-weight: 500;

    line-height: 1;

    letter-spacing: -0.05em;
}


.project-icon {

    display: flex;

    align-items: center;

    justify-content: center;

    width: 46px;
    height: 46px;

    flex-shrink: 0;

    border: 1px solid var(--border);

    color: var(--gray);

    font-size: 18px;

    transition:
        border-color var(--transition),
        color var(--transition),
        transform var(--transition);
}


.project-card:hover .project-icon {

    border-color: var(--accent);

    color: var(--accent);

    transform: translate(3px, -3px);
}


.project-description {

    max-width: 760px;

    margin-bottom: 24px;

    color: var(--gray);

    font-size: 16px;

    line-height: 1.8;
}


.project-technologies {

    display: flex;

    flex-wrap: wrap;

    gap: 8px;

    margin-bottom: 26px;
}


.project-technologies span {

    color: var(--gray-2);

    font-family: var(--font-mono);

    font-size: 10px;

    letter-spacing: 0.03em;
}


.project-technologies span:not(:last-child)::after {

    content: "/";

    margin-left: 8px;

    color: var(--gray-2);
}


.project-link {

    display: inline-flex;

    align-items: center;

    gap: 10px;

    color: var(--white);

    font-family: var(--font-mono);

    font-size: 10px;

    font-weight: 500;

    letter-spacing: 0.08em;

    text-decoration: none;

    text-transform: uppercase;
}


.project-link span {

    color: var(--accent);

    transition: transform var(--transition);
}


.project-link:hover span {
    transform: translate(3px, -3px);
}


.project-link:hover {
    color: var(--accent);
}


/* =========================================================
   EDUCATION
========================================================= */

.education-list {

    border-top: 1px solid var(--border);
}


.education-card {

    display: grid;

    grid-template-columns: 100px 1fr;

    gap: 35px;

    padding: 42px 0;

    border-bottom: 1px solid var(--border);
}


.education-logo {

    width: 78px;
    height: 78px;

    display: flex;

    align-items: center;
    justify-content: center;

    padding: 10px;

    background: var(--white);

    border: 1px solid var(--border);
}


.education-logo img {

    width: 100%;
    height: 100%;

    object-fit: contain;
}


.education-content {
    min-width: 0;
}


.education-top {

    display: flex;

    align-items: flex-start;

    justify-content: space-between;

    gap: 30px;

    margin-bottom: 15px;
}


.education-school {

    margin-bottom: 6px;

    color: var(--accent);

    font-family: var(--font-mono);

    font-size: 10px;

    letter-spacing: 0.08em;

    text-transform: uppercase;
}


.degree {

    color: var(--white);

    font-family: var(--font-display);

    font-size: 26px;

    font-weight: 500;

    line-height: 1.2;

    letter-spacing: -0.035em;
}


.education-year {

    flex-shrink: 0;

    padding-top: 3px;

    color: var(--gray-2);

    font-family: var(--font-mono);

    font-size: 9px;

    letter-spacing: 0.07em;

    white-space: nowrap;
}


.education-description {

    margin-bottom: 7px;

    color: var(--gray);

    font-size: 15px;

    line-height: 1.7;
}


.education-affiliation {

    color: var(--gray-2);

    font-family: var(--font-mono);

    font-size: 10px;

    letter-spacing: 0.04em;
}


/* =========================================================
   CONTACT
========================================================= */

.contact-section {
    padding-bottom: 140px;
}


.contact-box {

    border: 1px solid var(--border);

    background: var(--black-2);

    box-shadow: 0 20px 60px var(--shadow);
}


.contact-grid {

    display: grid;

    grid-template-columns:
        0.9fr
        1.1fr;

    gap: 70px;

    padding: 60px;
}


.contact-text {
    max-width: 460px;
}


.contact-lead {

    margin: 0;

    color: var(--gray);

    font-size: 18px;

    line-height: 1.8;
}


/* Contact items */

.contact-info {

    display: flex;

    flex-direction: column;
}


.contact-item {

    position: relative;

    display: flex;

    flex-direction: column;

    gap: 12px;

    padding: 24px 0;

    border-bottom: 1px solid var(--border);

    color: var(--white);

    text-decoration: none;

    transition:
        padding-left var(--transition),
        border-color var(--transition);
}


.contact-item:first-child {
    border-top: 1px solid var(--border);
}


.contact-item:hover {

    padding-left: 12px;

    border-color: var(--accent);
}


.contact-item-label {

    font-size: 10px;

    font-weight: 700;

    letter-spacing: 0.18em;

    color: var(--gray-2);
}


.contact-item-content {

    display: flex;

    align-items: center;

    justify-content: space-between;

    gap: 20px;
}


.contact-item-value {

    font-size: 17px;

    font-weight: 500;

    color: var(--white);

    word-break: break-word;
}


.contact-item-arrow {

    flex-shrink: 0;

    color: var(--gray-2);

    font-size: 22px;

    transition:
        transform var(--transition),
        color var(--transition);
}


.contact-item:hover .contact-item-arrow {

    color: var(--accent);

    transform: translate(4px, -4px);
}


/* Location */

.contact-item-static {

    cursor: default;
}


.contact-item-static:hover {

    padding-left: 0;

    border-color: var(--border);
}


.contact-item-static .contact-item-value {
    color: var(--gray);
}


/* =========================================================
   SOCIAL LINKS
========================================================= */

.social-list {

    display: flex;

    flex-wrap: wrap;

    border-top: 1px solid var(--border);
}


.social-list a {

    flex: 1;

    min-width: 140px;

    padding: 22px 28px;

    border-right: 1px solid var(--border);

    color: var(--gray);

    text-decoration: none;

    font-family: var(--font-mono);

    font-size: 11px;

    font-weight: 500;

    letter-spacing: 0.04em;

    transition:
        color var(--transition),
        background-color var(--transition);
}


.social-list a:last-child {
    border-right: none;
}


.social-list a:hover {

    color: #080808;

    background: var(--lime);
}


/* =========================================================
   FOOTER
========================================================= */

.footer {

    border-top: 1px solid var(--border);

    background: var(--black);
}


.footer-inner {

    width: min(1400px, calc(100% - 64px));

    min-height: 100px;

    margin: 0 auto;

    display: flex;

    align-items: center;

    justify-content: space-between;

    gap: 30px;
}


.footer-logo {

    color: var(--white);

    font-family: var(--font-display);

    font-size: 16px;

    font-weight: 700;

    text-decoration: none;

    letter-spacing: -0.04em;
}


.footer-inner p {

    color: var(--gray-2);

    font-family: var(--font-mono);

    font-size: 9px;

    letter-spacing: 0.04em;
}


.back-to-top {

    color: var(--gray);

    font-family: var(--font-mono);

    font-size: 9px;

    letter-spacing: 0.08em;

    text-decoration: none;

    text-transform: uppercase;

    transition: color var(--transition);
}


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


/* =========================================================
   FOCUS ACCESSIBILITY
========================================================= */

a:focus-visible,
button:focus-visible {

    outline: 2px solid var(--accent);

    outline-offset: 4px;
}


/* =========================================================
   LARGE TABLET
========================================================= */

@media (max-width: 1000px) {

    .hero-grid {

        grid-template-columns: 1fr;

        gap: 65px;
    }


    .hero-image-area {
        justify-content: flex-start;
    }


    .profile-card {
        max-width: 420px;
    }


    .about-grid {

        grid-template-columns: 1fr;

        gap: 60px;
    }

}


/* =========================================================
   TABLET
========================================================= */

@media (max-width: 800px) {

    :root {
        --header-height: 70px;
    }


    .navbar,
    .hero-grid,
    .section,
    .footer-inner {

        width: min(100% - 44px, 1400px);
    }


    .nav-links {

        position: absolute;

        top: var(--header-height);

        left: 0;

        width: 100%;

        margin: 0;

        padding: 20px 22px;

        display: flex;

        flex-direction: column;

        align-items: flex-start;

        gap: 0;

        background: var(--black-2);

        border-bottom: 1px solid var(--border);

        opacity: 0;

        visibility: hidden;

        transform: translateY(-10px);

        transition:
            opacity var(--transition),
            visibility var(--transition),
            transform var(--transition);
    }


    .nav-links.active {

        opacity: 1;

        visibility: visible;

        transform: translateY(0);
    }


    .nav-links a {

        width: 100%;

        padding: 15px 0;

        border-bottom: 1px solid var(--border);
    }


    .nav-links a:last-child {
        border-bottom: none;
    }


    .nav-links a::after {
        display: none;
    }


    .menu-toggle {
        display: block;
    }


    .hero {

        padding-top: 130px;

        padding-bottom: 80px;
    }


    .section {
        padding: 100px 0;
    }


    .section-heading {
        margin-bottom: 45px;
    }


    .contact-grid {

        grid-template-columns: 1fr;

        gap: 40px;

        padding: 40px 30px;
    }


    .footer-inner {

        flex-wrap: wrap;

        padding: 25px 0;
    }

}


/* =========================================================
   MOBILE
========================================================= */

@media (max-width: 600px) {

    .navbar,
    .hero-grid,
    .section,
    .footer-inner {

        width: calc(100% - 36px);
    }


    .navbar-brand span {
        display: none;
    }


    .hero h1 {

        font-size: clamp(58px, 17vw, 90px);
    }


    .hero-description {
        font-size: 15px;
    }


    .hero-buttons {

        flex-direction: column;

        align-items: stretch;
    }


    .button {
        width: 100%;
    }


    .profile-card {
        width: 100%;
    }


    .profile-card-bottom {

        align-items: flex-start;

        flex-direction: column;
    }


    .section {
        padding: 85px 0;
    }


    .section-title {

        font-size: clamp(40px, 13vw, 62px);
    }


    .about-copy p {
        font-size: 16px;
    }


    .project-card {

        grid-template-columns: 1fr;

        gap: 12px;

        padding: 38px 0;
    }


    .project-index {
        padding-top: 0;
    }


    .project-heading h3 {
        font-size: 38px;
    }


    .project-description {
        font-size: 15px;
    }


    .education-card {

        grid-template-columns: 1fr;

        gap: 22px;

        padding: 35px 0;
    }


    .education-logo {

        width: 70px;
        height: 70px;
    }


    .education-top {

        flex-direction: column;

        gap: 12px;
    }


    .degree {
        font-size: 23px;
    }


    .contact-grid {
        padding: 30px 22px;
    }


    .contact-lead {
        font-size: 16px;
    }


    .contact-item-value {
        font-size: 15px;
    }


    .social-list {
        flex-direction: column;
    }


    .social-list a {

        width: 100%;

        border-right: none;

        border-bottom: 1px solid var(--border);
    }


    .social-list a:last-child {
        border-bottom: none;
    }


    .footer-inner {

        flex-direction: column;

        align-items: flex-start;

        justify-content: center;

        gap: 15px;

        padding: 30px 0;
    }

}


/* =========================================================
   VERY SMALL DEVICES
========================================================= */

@media (max-width: 400px) {

    .header-actions {
        gap: 6px;
    }


    .theme-toggle,
    .menu-toggle {

        width: 36px;
        height: 36px;
    }


    .hero h1 {
        font-size: 54px;
    }


    .project-heading {
        gap: 15px;
    }


    .project-icon {

        width: 40px;
        height: 40px;
    }


    .contact-item-content {

        align-items: flex-start;

        flex-direction: column;

        gap: 8px;
    }

}


/* =========================================================
   REDUCED MOTION
========================================================= */

@media (prefers-reduced-motion: reduce) {

    html {
        scroll-behavior: auto;
    }


    *,
    *::before,
    *::after {

        animation-duration: 0.01ms !important;

        animation-iteration-count: 1 !important;

        transition-duration: 0.01ms !important;

        scroll-behavior: auto !important;
    }

}


/* =========================================================
   =========================================================
   ENHANCEMENT LAYER
   Everything below is additive. It overrides only where
   intentional, so the base stylesheet above stays readable.
   =========================================================
========================================================= */


/* =========================================================
   SKIP LINK
========================================================= */

.skip-link {

    position: fixed;

    top: 10px;
    left: 10px;

    z-index: 2000;

    padding: 12px 18px;

    background: var(--lime);

    color: #080808;

    font-family: var(--font-mono);

    font-size: 11px;

    font-weight: 500;

    letter-spacing: 0.08em;

    text-transform: uppercase;

    text-decoration: none;

    border-radius: var(--radius-small);

    transform: translateY(-160%);

    transition: transform var(--dur-base) var(--ease-out-expo);
}


.skip-link:focus-visible {

    transform: translateY(0);

    outline: 2px solid var(--white);

    outline-offset: 3px;
}


/* =========================================================
   SCROLL PROGRESS
========================================================= */

.scroll-progress {

    position: fixed;

    top: 0;
    left: 0;

    width: 100%;
    height: 2px;

    z-index: 1100;

    background: transparent;

    pointer-events: none;
}


.scroll-progress-bar {

    display: block;

    width: 100%;
    height: 100%;

    background: var(--accent);

    transform: scaleX(0);
    transform-origin: 0 50%;

    box-shadow: 0 0 14px rgba(var(--lime-rgb), 0.5);

    /* JS writes --progress; no layout thrash */
    transform: scaleX(var(--progress, 0));
}


/* =========================================================
   HEADER — SCROLLED STATE
========================================================= */

.site-header {

    transition:
        background-color var(--dur-base) ease,
        border-color var(--dur-base) ease,
        box-shadow var(--dur-base) ease,
        height var(--dur-base) var(--ease-out-expo);
}


.site-header.is-scrolled {

    height: calc(var(--header-height) - 10px);

    box-shadow: 0 12px 34px -20px var(--shadow);

    border-bottom-color: var(--border-hover);
}


.navbar-brand img {

    transition:
        transform var(--dur-base) var(--ease-spring),
        box-shadow var(--dur-base) ease;
}


.navbar-brand:hover img {

    transform: rotate(-8deg) scale(1.08);

    box-shadow: 0 0 0 2px rgba(var(--lime-rgb), 0.45);
}


/* =========================================================
   NAV — ACTIVE SECTION (scrollspy)
========================================================= */

.nav-links a[aria-current="true"] {

    color: var(--white);
}


.nav-links a[aria-current="true"]::after {

    width: 100%;
}


.nav-links a::after {

    transition: width var(--dur-base) var(--ease-out-expo);
}


/* =========================================================
   MOBILE MENU — ANIMATED BURGER
========================================================= */

.menu-toggle span {

    transform-origin: center;

    transition:
        transform var(--dur-base) var(--ease-out-expo),
        opacity var(--dur-fast) ease,
        background-color var(--transition);
}


.menu-toggle[aria-expanded="true"] span:nth-child(1) {

    transform: translateY(6px) rotate(45deg);
}


.menu-toggle[aria-expanded="true"] span:nth-child(2) {

    opacity: 0;

    transform: scaleX(0.2);
}


.menu-toggle[aria-expanded="true"] span:nth-child(3) {

    transform: translateY(-6px) rotate(-45deg);
}


.menu-toggle:hover span {

    background: var(--accent);
}


/* Lock the page behind the open drawer */

body.nav-open {

    overflow: hidden;
}


/* =========================================================
   HERO — POINTER SPOTLIGHT
   JS writes --mx / --my as percentages.
========================================================= */

.hero::before {

    content: "";

    position: absolute;

    inset: 0;

    z-index: 0;

    pointer-events: none;

    background: radial-gradient(
        520px circle at var(--mx, 50%) var(--my, 40%),
        rgba(var(--lime-rgb), 0.09),
        transparent 62%
    );

    opacity: 0;

    transition: opacity var(--dur-slow) ease;
}


.hero.is-lit::before {

    opacity: 1;
}


.hero-grid {

    position: relative;

    z-index: 1;
}


/* Soften the grid toward the edges */

.hero::after {

    content: "";

    position: absolute;

    inset: 0;

    z-index: 0;

    pointer-events: none;

    background: radial-gradient(
        ellipse 90% 70% at 50% 45%,
        transparent 40%,
        var(--black) 100%
    );
}


/* =========================================================
   HERO — ROLE ROTATOR
========================================================= */

.hero-role {

    display: flex;

    align-items: baseline;

    flex-wrap: wrap;

    gap: 9px;

    margin-bottom: 26px;

    font-family: var(--font-mono);

    font-size: 12px;

    letter-spacing: 0.08em;
}


.hero-role-static {

    color: var(--gray-2);
}


.hero-role-rotator {

    position: relative;

    display: inline-block;

    min-height: 1.4em;

    color: var(--accent);

    font-weight: 500;
}


.hero-role-word {

    display: inline-block;

    animation: role-in var(--dur-slow) var(--ease-out-expo) both;
}


.hero-role-word.is-leaving {

    animation: role-out var(--dur-base) ease both;
}


@keyframes role-in {

    from {
        opacity: 0;
        transform: translateY(0.65em) rotateX(-55deg);
        filter: blur(3px);
    }

    to {
        opacity: 1;
        transform: none;
        filter: blur(0);
    }
}


@keyframes role-out {

    from {
        opacity: 1;
        transform: none;
    }

    to {
        opacity: 0;
        transform: translateY(-0.55em);
        filter: blur(3px);
    }
}


/* =========================================================
   HERO — STATS STRIP
========================================================= */

.hero-stats {

    display: flex;

    flex-wrap: wrap;

    gap: 0;

    margin-top: 46px;

    border-top: 1px solid var(--border);
}


.hero-stat {

    flex: 1 1 140px;

    padding: 18px 22px 18px 0;

    border-right: 1px solid var(--border);
}


.hero-stat:last-child {

    border-right: none;
}


.hero-stat:not(:first-child) {

    padding-left: 22px;
}


.hero-stat dt {

    margin-bottom: 7px;

    color: var(--gray-2);

    font-family: var(--font-mono);

    font-size: 9px;

    letter-spacing: 0.16em;

    text-transform: uppercase;
}


.hero-stat dd {

    color: var(--white);

    font-family: var(--font-display);

    font-size: 15px;

    font-weight: 500;

    letter-spacing: -0.02em;
}


/* =========================================================
   BUTTONS — SHINE + GHOST VARIANT
========================================================= */

.button {

    position: relative;

    overflow: hidden;

    isolation: isolate;

    transition:
        background-color var(--transition),
        color var(--transition),
        border-color var(--transition),
        transform var(--dur-base) var(--ease-spring),
        box-shadow var(--dur-base) ease;
}


.button::before {

    content: "";

    position: absolute;

    inset: 0;

    z-index: -1;

    background: linear-gradient(
        110deg,
        transparent 20%,
        var(--shine) 50%,
        transparent 80%
    );

    transform: translateX(-120%);

    transition: transform var(--dur-slow) var(--ease-out-expo);
}


.button:hover::before {

    transform: translateX(120%);
}


.button span {

    display: inline-block;

    transition: transform var(--dur-base) var(--ease-spring);
}


.button-primary:hover {

    box-shadow: 0 10px 30px -10px rgba(var(--lime-rgb), 0.55);
}


.button-primary:hover span {

    transform: translate(3px, -3px);
}


.button-ghost {

    border-color: var(--border);

    color: var(--gray);

    background: transparent;
}


.button-ghost:hover {

    border-color: var(--accent);

    color: var(--accent);
}


.button-ghost:hover span {

    transform: translateY(3px);
}


.button:active {

    transform: translateY(0) scale(0.98);
}


/* =========================================================
   AVAILABILITY DOT — PULSE
========================================================= */

.availability-dot {

    position: relative;
}


.availability-dot::after {

    content: "";

    position: absolute;

    inset: -3px;

    border-radius: 50%;

    border: 1px solid var(--accent);

    animation: dot-pulse 2.4s var(--ease-out-expo) infinite;
}


@keyframes dot-pulse {

    0%   { transform: scale(0.7); opacity: 0.9; }
    70%  { transform: scale(2.1); opacity: 0; }
    100% { transform: scale(2.1); opacity: 0; }
}


/* =========================================================
   PROFILE CARD — LIFT + SCAN LINE
========================================================= */

.profile-card {

    position: relative;

    overflow: hidden;

    transition:
        transform var(--dur-slow) var(--ease-out-expo),
        border-color var(--dur-base) ease,
        box-shadow var(--dur-slow) ease;
}


.profile-card:hover {

    transform: translateY(-6px);

    border-color: var(--border-hover);

    box-shadow: 0 42px 90px -30px var(--shadow);
}


.profile-image-wrapper {

    position: relative;

    overflow: hidden;
}


.profile-image-wrapper::after {

    content: "";

    position: absolute;

    left: 0;

    top: 0;

    width: 100%;
    height: 34%;

    pointer-events: none;

    background: linear-gradient(
        180deg,
        transparent,
        rgba(var(--lime-rgb), 0.22),
        transparent
    );

    opacity: 0;

    transform: translateY(-120%);
}


.profile-card:hover .profile-image-wrapper::after {

    opacity: 1;

    animation: scan 1.5s var(--ease-out-expo);
}


@keyframes scan {

    from { transform: translateY(-120%); }
    to   { transform: translateY(420%); }
}


/* =========================================================
   MARQUEE
========================================================= */

.marquee {

    position: relative;

    overflow: hidden;

    padding: 26px 0;

    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);

    user-select: none;

    -webkit-mask-image: linear-gradient(
        90deg,
        transparent,
        #000 12%,
        #000 88%,
        transparent
    );

    mask-image: linear-gradient(
        90deg,
        transparent,
        #000 12%,
        #000 88%,
        transparent
    );
}


.marquee-track {

    display: flex;

    width: max-content;

    animation: marquee 34s linear infinite;
}


.marquee:hover .marquee-track {

    animation-play-state: paused;
}


.marquee-group {

    display: flex;

    align-items: center;

    gap: 34px;

    padding-right: 34px;

    font-family: var(--font-display);

    font-size: clamp(20px, 3vw, 34px);

    font-weight: 500;

    letter-spacing: -0.04em;

    color: var(--white-2);

    white-space: nowrap;
}


.marquee-group span:nth-child(even) {

    color: var(--accent);

    font-size: 0.5em;
}


@keyframes marquee {

    from { transform: translateX(0); }
    to   { transform: translateX(-50%); }
}


/* =========================================================
   SECTION HEADINGS — RULE
========================================================= */

.section-heading {

    position: relative;
}


.section-title {

    text-wrap: balance;
}


/* =========================================================
   SKILL TAGS — LIFT
========================================================= */

.skill-tags span {

    border-radius: var(--radius-small);

    transition:
        border-color var(--transition),
        color var(--transition),
        transform var(--dur-base) var(--ease-spring),
        background-color var(--transition);
}


.skill-tags span:hover {

    transform: translateY(-3px);

    background: rgba(var(--lime-rgb), 0.06);
}


/* =========================================================
   PROJECT CARDS
========================================================= */

.project-card {

    position: relative;

    transition:
        padding-left var(--dur-base) var(--ease-out-expo),
        border-color var(--transition);
}


/* Lime rail that grows on hover */

.project-card::before {

    content: "";

    position: absolute;

    left: 0;

    top: 12%;

    width: 2px;
    height: 0;

    background: var(--accent);

    transition: height var(--dur-slow) var(--ease-out-expo);
}


.project-card:hover::before,
.project-card:focus-within::before {

    height: 76%;
}


.project-card:hover,
.project-card:focus-within {

    padding-left: 22px;
}


.project-index {

    transition:
        color var(--dur-base) ease,
        transform var(--dur-base) var(--ease-out-expo);
}


.project-card:hover .project-index {

    color: var(--accent);

    transform: translateX(4px);
}


.project-heading h3 {

    text-wrap: balance;

    transition: color var(--dur-base) ease;
}


.project-card:hover .project-heading h3 {

    color: var(--accent);
}


.project-icon {

    border-radius: var(--radius-small);
}


.project-link {

    position: relative;

    padding-bottom: 3px;
}


.project-link::after {

    content: "";

    position: absolute;

    left: 0;
    bottom: 0;

    width: 0;
    height: 1px;

    background: var(--accent);

    transition: width var(--dur-base) var(--ease-out-expo);
}


.project-link:hover::after {

    width: 100%;
}


/* =========================================================
   EDUCATION
========================================================= */

.education-card {

    transition:
        padding-left var(--dur-base) var(--ease-out-expo),
        border-color var(--transition);
}


.education-card:hover {

    padding-left: 14px;

    border-color: var(--border-hover);
}


.education-logo {

    border-radius: var(--radius-small);

    transition:
        transform var(--dur-base) var(--ease-spring),
        box-shadow var(--dur-base) ease;
}


.education-card:hover .education-logo {

    transform: translateY(-4px) rotate(-3deg);

    box-shadow: 0 16px 30px -14px var(--shadow);
}


.degree {

    text-wrap: balance;
}


/* =========================================================
   CONTACT
========================================================= */

.contact-box {

    position: relative;

    overflow: hidden;
}


.contact-box::before {

    content: "";

    position: absolute;

    top: 0;
    left: 0;

    width: 100%;
    height: 1px;

    background: linear-gradient(
        90deg,
        transparent,
        var(--accent),
        transparent
    );

    opacity: 0.6;
}


.social-list a {

    position: relative;

    overflow: hidden;

    isolation: isolate;
}


/* Lime wipe instead of a flat background swap */

.social-list a::before {

    content: "";

    position: absolute;

    inset: 0;

    z-index: -1;

    background: var(--lime);

    transform: translateY(101%);

    transition: transform var(--dur-base) var(--ease-out-expo);
}


.social-list a:hover::before {

    transform: translateY(0);
}


.social-list a:hover {

    background: transparent;
}


/* =========================================================
   FOOTER
========================================================= */

.back-to-top {

    display: inline-flex;

    align-items: center;

    gap: 8px;

    transition:
        color var(--transition),
        gap var(--dur-base) var(--ease-out-expo);
}


.back-to-top:hover {

    gap: 12px;
}


/* =========================================================
   SCROLL REVEAL
   Applied by main.js. Guarded by .no-js so content is
   always visible if JavaScript fails to load.
========================================================= */

html:not(.no-js) [data-reveal] {

    opacity: 0;

    transform: translateY(var(--reveal-shift));

    transition:
        opacity var(--dur-slow) var(--ease-out-expo),
        transform var(--dur-slow) var(--ease-out-expo);

    transition-delay: var(--reveal-delay, 0ms);

    will-change: opacity, transform;
}


html:not(.no-js) [data-reveal].is-visible {

    opacity: 1;

    transform: none;

    will-change: auto;
}


/* Variant: slide in from the left for list rows */

html:not(.no-js) [data-reveal="slide"] {

    transform: translateX(calc(var(--reveal-shift) * -1));
}


/* =========================================================
   TOUCH DEVICES
   Hover effects that rely on a pointer are pointless on
   touch and can leave sticky states after a tap.
========================================================= */

@media (hover: none) {

    .project-card:hover,
    .education-card:hover,
    .contact-item:hover {

        padding-left: 0;
    }


    .project-card:hover::before {

        height: 0;
    }


    .profile-card:hover {

        transform: none;
    }


    .button:hover {

        transform: none;
    }

}


/* =========================================================
   ENHANCEMENT LAYER — RESPONSIVE
========================================================= */

@media (max-width: 800px) {

    .hero-stats {

        margin-top: 36px;
    }


    .hero-stat {

        flex: 1 1 100%;

        padding: 14px 0;

        border-right: none;

        border-bottom: 1px solid var(--border);
    }


    .hero-stat:not(:first-child) {

        padding-left: 0;
    }


    .hero-stat:last-child {

        border-bottom: none;
    }


    .marquee {

        padding: 20px 0;
    }


    .marquee-track {

        animation-duration: 24s;
    }

}


@media (max-width: 600px) {

    .hero-role {

        font-size: 11px;
    }


    .project-card:hover,
    .project-card:focus-within {

        padding-left: 14px;
    }

}


/* =========================================================
   REDUCED MOTION — ENHANCEMENT OVERRIDES
   The base rule already kills durations. These make sure
   nothing is left mid-animation or permanently hidden.
========================================================= */

@media (prefers-reduced-motion: reduce) {

    html:not(.no-js) [data-reveal] {

        opacity: 1 !important;

        transform: none !important;
    }


    .marquee-track {

        animation: none !important;

        transform: none !important;
    }


    .availability-dot::after {

        animation: none !important;

        opacity: 0 !important;
    }


    .hero::before {

        display: none;
    }


    .hero-role-word {

        animation: none !important;
    }


    .button::before {

        display: none;
    }

}


/* =========================================================
   PRINT
   A portfolio gets printed to PDF more often than you'd
   think. This makes that version readable.
========================================================= */

@media print {

    .site-header,
    .scroll-progress,
    .skip-link,
    .marquee,
    .hero-buttons,
    .theme-toggle,
    .menu-toggle,
    .back-to-top,
    .project-icon {

        display: none !important;
    }


    html,
    body {

        background: #fff !important;

        color: #000 !important;
    }


    .hero {

        min-height: auto;

        padding: 0 0 30px;

        background-image: none;
    }


    .section {

        padding: 24px 0;

        break-inside: avoid;
    }


    .project-card,
    .education-card {

        break-inside: avoid;
    }


    a[href^="http"]::after {

        content: " (" attr(href) ")";

        font-size: 10px;

        word-break: break-all;
    }

}