/* Minimal git-inspired portfolio */

:root {
    --bg: #000000;            /* PURE BLACK */
    --bg-muted: #000000;      /* slight elevation */
    --bg-soft: #111111;       /* cards */

    --border: #1f1f1f;
    --border-subtle: #141414;

    --text: #ffffff;
    --text-muted: #a1a1aa;

    --accent: #4f9cff;
    --accent-hover: #2f7df6;

    --mono: "JetBrains Mono", monospace;
    --sans: "Inter", sans-serif;

    --header-h: 64px;
    --radius: 10px;
    --shadow: 0 8px 30px rgba(0,0,0,0.6);
    --transition: 0.2s ease;
}

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

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

body {
    font-family: var(--sans);
    background: var(--bg);
    color: var(--text);
    line-height: 1.6;
    overflow-x: hidden;
    padding-top: var(--header-h);
}

.wrap {
    max-width: 720px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

.projects-section .wrap {
    max-width: 800px;
}

/* ---------- Header ---------- */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    height: var(--header-h);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 0 1.25rem;
    background: rgba(0, 0, 0, 0.85); /* ✅ only change */
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid transparent;
    transition: border-color var(--transition), box-shadow var(--transition);
}

.site-header.is-scrolled {
    border-bottom-color: var(--border-subtle);
    box-shadow: 0 1px 0 rgba(31, 35, 40, 0.04);
}

.site-logo {
    font-weight: 700;
    font-size: 1rem;
    letter-spacing: -0.02em;
    color: var(--text);
    text-decoration: none;
    flex-shrink: 0;
}

.site-logo:hover {
    color: var(--accent);
}

.site-nav {
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.site-nav a {
    font-size: 0.8125rem;
    font-weight: 500;
    color: var(--text-muted);
    text-decoration: none;
    padding: 0.4rem 0.65rem;
    border-radius: 6px;
    transition: color var(--transition), background var(--transition);
}

.site-nav a:hover {
    color: var(--text);
    background: var(--bg-muted);
}

.site-header__actions {
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.icon-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 6px;
    color: var(--text-muted);
    transition: color var(--transition), background var(--transition);
}

.icon-btn:hover {
    color: var(--accent);
    background: var(--bg-muted);
}

.nav-toggle {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 40px;
    height: 40px;
    padding: 0;
    border: none;
    background: transparent;
    cursor: pointer;
    border-radius: 6px;
}

.nav-toggle span {
    display: block;
    width: 20px;
    height: 2px;
    background: var(--text);
    margin: 0 auto;
    transition: transform var(--transition), opacity var(--transition);
}

.nav-toggle.is-open span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}

.nav-toggle.is-open span:nth-child(2) {
    opacity: 0;
}

.nav-toggle.is-open span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

.nav-backdrop {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 90;
    background: rgba(31, 35, 40, 0.35);
}

body.menu-open .nav-backdrop {
    display: block;
}

/* ---------- Sections ---------- */
.section {
    padding: 4rem 0;
}

.intro-hero {
    padding: 3rem 0 4.5rem;
    border-bottom: 1px solid var(--border-subtle);
}

.intro-hero__inner {
    max-width: 560px;
}

.intro-hero__eyebrow {
    font-family: var(--mono);
    font-size: 0.75rem;
    font-weight: 500;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.06em;
    margin-bottom: 1rem;
}

.intro-hero__title {
    font-size: clamp(2rem, 5vw, 2.75rem);
    font-weight: 700;
    letter-spacing: -0.03em;
    line-height: 1.15;
    margin-bottom: 0.35rem;
}

.intro-hero__role {
    font-size: 1.05rem;
    color: var(--text-muted);
    margin-bottom: 1.5rem;
}

.intro-hero__text {
    font-family: var(--mono);
    font-size: 0.9375rem;
    font-weight: 500;
    letter-spacing: 0.04em;
    color: var(--text);
    line-height: 1.75;
}

.section-head {
    margin-bottom: 2rem;
}

.section-head__title {
    font-size: 1.25rem;
    font-weight: 600;
    letter-spacing: -0.02em;
    margin-bottom: 0.35rem;
}

.section-head__sub {
    font-size: 0.875rem;
    color: var(--text-muted);
}

/* ---------- Experience: commits ---------- */
.experience-section {
    background: var(--bg-muted);
}

.commit-feed {
    display: flex;
    flex-direction: column;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
    background: var(--bg);
    box-shadow: var(--shadow);
}

.commit-row {
    display: grid;
    grid-template-columns: 52px 1fr;
    gap: 0;
    border-bottom: 1px solid var(--border-subtle);
}

.commit-row:last-child {
    border-bottom: none;
}

.commit-row__gutter {
    display: flex;
    align-items: flex-start;
    justify-content: center;
    padding: 1rem 0.5rem;
    background: var(--bg-muted);
    border-right: 1px solid var(--border-subtle);
}

.commit-avatar {
    width: 32px;
    height: 32px;
    border-radius: 4px;
    background: var(--text);
    color: var(--bg);
    font-size: 0.75rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--mono);
}

.commit-row__body {
    padding: 1rem 1.15rem;
}

.commit-meta {
    font-size: 0.75rem;
    color: var(--text-muted);
    margin-bottom: 0.35rem;
    font-family: var(--mono);
}

.commit-sep {
    margin: 0 0.25rem;
}

.commit-subject {
    font-size: 0.9375rem;
    font-weight: 600;
    margin-bottom: 0.35rem;
    line-height: 1.35;
}

.commit-body {
    font-size: 0.875rem;
    color: var(--text-muted);
    line-height: 1.6;
}

/* ---------- Projects: git branch ---------- */
.projects-section {
    background: var(--bg);
}

.git-branch {
    position: relative;
    padding-left: 1.5rem;
}

.git-branch__line {
    position: absolute;
    left: 7px;
    top: 0;
    bottom: 0;
    width: 2px;
    background: linear-gradient(180deg, var(--border) 0%, var(--border) 100%);
    border-radius: 1px;
}

.git-node {
    position: relative;
    display: grid;
    grid-template-columns: 16px 1fr;
    gap: 1rem;
    padding-bottom: 1.75rem;
}

.git-node:last-child {
    padding-bottom: 0;
}

.git-node__marker {
    position: relative;
    z-index: 1;
    width: 16px;
    height: 16px;
    margin-top: 0.35rem;
    border-radius: 50%;
    background: var(--bg);
    border: 2px solid var(--accent);
    box-shadow: 0 0 0 3px var(--bg);
}

.git-node__card {
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1rem 1.15rem;
    background: var(--bg);
    transition: border-color var(--transition), box-shadow var(--transition);
}

.git-node__card:hover {
    border-color: #afb8c1;
    box-shadow: var(--shadow);
}

.git-node__hash {
    font-family: var(--mono);
    font-size: 0.6875rem;
    color: var(--accent);
    display: block;
    margin-bottom: 0.35rem;
}

.git-node__title {
    font-size: 1.0625rem;
    font-weight: 600;
    letter-spacing: -0.02em;
    margin-bottom: 0.35rem;
}

.git-node__desc {
    font-size: 0.875rem;
    color: var(--text-muted);
    margin-bottom: 0.5rem;
    line-height: 1.55;
}

.git-node__tech {
    font-family: var(--mono);
    font-size: 0.6875rem;
    color: var(--text-muted);
    margin-bottom: 0.65rem;
}

.git-node__link {
    font-size: 0.8125rem;
    font-weight: 500;
    color: var(--accent);
    text-decoration: none;
}

.git-node__link:hover {
    text-decoration: underline;
}

.projects-more {
    margin-top: 2rem;
    text-align: center;
}

.projects-more__link {
    font-size: 0.875rem;
    color: var(--text-muted);
}

.projects-more__link:hover {
    color: var(--accent);
}



body.show-all-projects .git-node {
    display: grid;
}

/* ---------- Skills marquee ---------- */
.skills-section {
    background: var(--bg-muted);
    overflow: hidden;
}

.skills-marquee {
    margin-bottom: 1rem;
    mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
    -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}

.skills-marquee:last-child {
    margin-bottom: 0;
}

.skills-marquee__track {
    display: flex;
    width: max-content;
    animation: marquee-ltr 45s linear infinite;
}

.skills-marquee--reverse .skills-marquee__track {
    animation-name: marquee-rtl;
}

.skills-marquee:hover .skills-marquee__track,
.skills-marquee:focus-within .skills-marquee__track {
    animation-play-state: paused;
}

@keyframes marquee-ltr {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

@keyframes marquee-rtl {
    0% { transform: translateX(-50%); }
    100% { transform: translateX(0); }
}

.skills-marquee__row {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    list-style: none;
    padding: 0.5rem 0.75rem;
    flex-shrink: 0;
}

.skills-marquee__row li {
    flex-shrink: 0;
    font-family: var(--mono);
    font-size: 0.8125rem;
    font-weight: 500;
    padding: 0.45rem 0.85rem;
    border-radius: 999px;
    background: var(--bg);
    border: 1px solid var(--border);
    color: var(--text);
    white-space: nowrap;
}

/* ---------- Contact + footer ---------- */
.contact-section {
    padding: 3.5rem 0;
    border-top: 1px solid var(--border-subtle);
}

.contact-block {
    text-align: center;
}

.contact-block__title {
    font-size: 1.35rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.contact-block__lead {
    font-size: 0.9375rem;
    color: var(--text-muted);
    margin-bottom: 1.5rem;
}

.contact-block__cta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.65rem;
    justify-content: center;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.55rem 1.1rem;
    font-size: 0.875rem;
    font-weight: 500;
    border-radius: 6px;
    text-decoration: none;
    transition: background var(--transition), color var(--transition), border-color var(--transition);
}

.btn-primary {
    background: var(--accent);
    color: #fff;
    border: 1px solid var(--accent);
}

.btn-primary:hover {
    background: var(--accent-hover);
    border-color: var(--accent-hover);
}

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

.btn-ghost:hover {
    background: var(--bg-muted);
    border-color: #afb8c1;
}

.site-footer {
    padding: 2rem 0 2.5rem;
    border-top: 1px solid var(--border-subtle);
    background: var(--bg-muted);
}

.site-footer__inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.25rem;
    text-align: center;
}

.site-footer__copy {
    font-size: 0.8125rem;
    color: var(--text-muted);
}

.site-footer__nav {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-content: center;
    gap: 0.5rem 1rem;
    /* Full row width so links center on narrow screens (column flex + align-items:center shrink-wraps children otherwise) */
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
}

.site-footer__nav a {
    font-size: 0.8125rem;
    color: var(--text-muted);
    text-decoration: none;
}

.site-footer__nav a:hover {
    color: var(--accent);
}

/* ---------- Scroll animation ---------- */
.animate-on-scroll {
    opacity: 0;
    transform: translateY(14px);
    transition: opacity 0.55s ease, transform 0.55s ease;
}

.animate-on-scroll.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
    .site-nav {
        position: fixed;
        top: var(--header-h);
        right: 0;
        z-index: 101;
        width: min(300px, 100vw);
        height: calc(100dvh - var(--header-h));
        flex-direction: column;
        align-items: stretch;
        gap: 0;
        padding: 1rem;
        background: var(--bg);
        border-left: 1px solid var(--border-subtle);
        box-shadow: -8px 0 24px rgba(31, 35, 40, 0.08);
        transform: translateX(100%);
        transition: transform 0.25s ease;
        overflow-y: auto;
    }

    body.menu-open .site-nav {
        transform: translateX(0);
    }

    .site-nav a {
        padding: 0.85rem 1rem;
        border-radius: 6px;
    }

    .nav-toggle {
        display: flex;
    }

    .site-header__actions {
        margin-left: auto;
    }
}

@media (max-width: 480px) {
    .site-header__actions .icon-btn:nth-child(3) {
        display: none;
    }

.contact-block__cta {
        display: flex;
        flex-direction: column;
        align-items: center;    /* This centers the flex items horizontally */
        gap: 0.75rem;           /* Adds space between stacked buttons */
        width: 100%;
    }

    .btn {
        width: 100%;
        max-width: 280px;
        margin-left: auto;      /* Explicit centering */
        margin-right: auto;     /* Explicit centering */
    }



    .site-footer__inner {
        align-items: stretch;
        text-align: center;
    }

    .site-footer__nav {
        justify-content: center;
        padding-inline: 0.5rem;
    }
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    .skills-marquee__track {
        animation: none !important;
        justify-content: center;
        flex-wrap: wrap;
        width: 100%;
    }

    .skills-marquee {
        mask-image: none;
        -webkit-mask-image: none;
    }

    .animate-on-scroll {
        opacity: 1;
        transform: none;
        transition: none;
    }
}
/* Updated Theme Variables */
:root {
    /* The New Gradient Background */
    --bg-gradient: linear-gradient(135deg, #e8f5e9 0%, #ffffff 50%, #e3f2fd 100%);
    
    /* UI Element Colors - Adjusted for light background */
    --bg: #ffffff; 
    --bg-muted: rgba(255, 255, 255, 0.5);
    --bg-soft: rgba(255, 255, 255, 0.8); 

    --border: #d1d5db;
    --border-subtle: #e5e7eb;

    --text: #1f2937;        /* Dark gray for better readability */
    --text-muted: #6b7280;

    --accent: #2e7d32;      /* A deep green for links/actions */
    --accent-hover: #1565c0; /* A blue for hover states */

    --mono: "JetBrains Mono", monospace;
    --sans: "Inter", sans-serif;

    --header-h: 64px;
    --radius: 10px;
    --shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
    --transition: 0.2s ease;
}

body {
    font-family: var(--sans);
    background: var(--bg-gradient); /* Applied the gradient */
    background-attachment: fixed;   /* Keeps the gradient still while scrolling */
    color: var(--text);
    line-height: 1.6;
    overflow-x: hidden;
    padding-top: var(--header-h);
}

/* ---------- Header Adjustment ---------- */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    height: var(--header-h);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 0 1.25rem;
    background: rgba(255, 255, 255, 0.7); /* Translucent white */
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border-subtle);
}

/* ---------- Experience/Project Card Tweaks ---------- */
.commit-feed, .git-node__card {
    background: rgba(255, 255, 255, 0.6);
    backdrop-filter: blur(4px);
    border: 1px solid var(--border-subtle);
    box-shadow: var(--shadow);
}

.commit-row__gutter {
    background: rgba(0, 0, 0, 0.03); /* Subtle contrast for the avatar column */
}

.commit-avatar {
    background: var(--text);
    color: #ffffff;
}

/* ---------- Section Backgrounds ---------- */
/* Removing solid backgrounds so the main gradient shows through */
.experience-section, .skills-section, .projects-section {
    background: transparent;
}

/* Skills Marquee li */
.skills-marquee__row li {
    background: #ffffff;
    border: 1px solid var(--border-subtle);
    color: var(--text);
}