:root {
    --bg: #0b1120;
    --bg-alt: #111827;
    --card-bg: #151823;
    --accent: #4ade80;
    --accent-soft: rgba(74, 222, 128, 0.12);
    --text: #f9fafb;
    --text-muted: #9ca3af;
    --border-subtle: #272b38;
    --radius-lg: 18px;
    --shadow-soft: 0 18px 40px rgba(0, 0, 0, 0.45);
    --max-width: 960px;
}

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

html,
body {
    height: 100%;
    scroll-behavior: smooth;
}


body {
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    color: var(--text);
    line-height: 1.6;

    /* smooth dark gray -> navy gradient, no bands */
    background: linear-gradient(to bottom,
            #0a0f1b 0%,
            #0d1421 30%,
            #101827 65%,
            #151c2b 100%);
    background-attachment: fixed;

    background-attachment: fixed;
    background-blend-mode: normal;
}


/* Make all inline links readable (no purple) */
a {
    color: var(--accent);
    text-decoration-color: rgba(74, 222, 128, 0.8);
}

a:visited {
    color: var(--accent);
    text-decoration-color: rgba(74, 222, 128, 0.8);
}

a:hover {
    color: #bbf7d0;
    text-decoration-color: #bbf7d0;
}

/* Utility */
.container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 1.5rem;
}

.section {
    padding: 4.5rem 0;
}

.section h2 {
    font-size: 1.9rem;
    margin-bottom: 0.75rem;
}

.section-subtitle {
    color: var(--text-muted);
    margin-bottom: 2rem;
}

.grid {
    display: grid;
    gap: 1.5rem;
}

.two-column {
    display: grid;
    gap: 2rem;
}

@media (min-width: 768px) {
    .two-column {
        grid-template-columns: 3fr 2fr;
    }
}

/* Header / nav */
.site-header {
    position: sticky;
    top: 0;
    z-index: 10;

    backdrop-filter: blur(14px);

    /* smooth fade into page background */
    background: linear-gradient(to bottom,
            rgba(11, 17, 32, 0.90) 0%,
            rgba(11, 17, 32, 0.75) 40%,
            rgba(11, 17, 32, 0.45) 70%,
            rgba(11, 17, 32, 0) 100%);

    border-bottom: 1px solid rgba(39, 43, 56, 0.5);
}


.nav-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.9rem 1.5rem;
}

.logo {
    font-weight: 700;
    letter-spacing: 0.12em;
    font-size: 0.95rem;
    color: var(--text);
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    cursor: default;
    transition: transform 150ms ease-out, filter 150ms ease-out;
}

.logo span {
    color: var(--accent);
    transition: color 150ms ease-out, text-shadow 150ms ease-out;
}

.logo:hover {
    transform: translateY(-1px);
    filter: brightness(1.03);
}

.logo:hover span {
    color: #6ff39a;
    text-shadow: 0 0 12px rgba(74, 222, 128, 0.6);
}

.nav a {
    position: relative;
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.95rem;
    padding: 0.25rem 0;
    transition: color 150ms ease-out;
}

.nav a::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -2px;
    width: 100%;
    height: 2px;
    background: var(--accent);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 140ms ease-out;
    opacity: 0.85;
}

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

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

@media (max-width: 640px) {
    .nav {
        display: flex;
        flex-wrap: wrap;
        gap: 0.6rem;
        justify-content: flex-end;
    }

    .nav a {
        margin-left: 0;
    }
}

/* Hero */
.hero {
    padding: 4.5rem 0 3.5rem;
}

.hero-inner {
    display: flex;
    flex-direction: column;
    gap: 2.5rem;
}

.hero-text {
    max-width: 650px;
}

.eyebrow {
    text-transform: uppercase;
    letter-spacing: 0.18em;
    font-size: 0.75rem;
    color: var(--accent);
    margin-bottom: 0.5rem;
}

.hero h1 {
    font-size: 2.4rem;
    margin-bottom: 0.75rem;
}

.hero h1 span {
    color: var(--accent);
}

.hero-subtitle {
    color: var(--text-muted);
    max-width: 32rem;
    margin-bottom: 1.5rem;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.project-card a,
.btn,
.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.5rem 0.9rem;
    border-radius: 999px;
    border: 1px solid var(--border-subtle);
    text-decoration: none;
    font-size: 0.85rem;
    gap: 0.35rem;
    transition:
        background-color 160ms ease-out,
        border-color 160ms ease-out,
        transform 90ms ease-out,
        box-shadow 160ms ease-out;
}

.project-card a:hover,
.btn:hover,
.button:hover {
    background: var(--accent-soft);
    border-color: var(--accent);
    box-shadow: 0 0 0 1px rgba(74, 222, 128, 0.15);
}

.project-card a:active,
.btn:active,
.button:active {
    transform: scale(0.97);
}


.hero-links {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    font-size: 0.85rem;
    color: var(--text-muted);
}

.hero-links a {
    color: var(--accent);
    text-decoration: underline;
}

.hero-links a:hover {
    text-decoration: underline;
}

/* About */
.about-highlight {
    background: radial-gradient(circle at top left, rgba(74, 222, 128, 0.12), transparent 55%);
    border-radius: var(--radius-lg);
    padding: 1.4rem 1.5rem;
    border: 1px solid var(--border-subtle);
    box-shadow: var(--shadow-soft);
}

.about-highlight h3 {
    margin-bottom: 0.8rem;
    font-size: 1.1rem;
}

.about-highlight ul {
    list-style: none;
}

.about-highlight li {
    position: relative;
    padding-left: 1rem;
    margin-bottom: 0.4rem;
    font-size: 0.95rem;
}

.about-highlight li::before {
    content: "•";
    position: absolute;
    left: 0;
    top: 0;
    color: var(--accent);
}

/* Experience */
#experience .experience-list {
    display: flex;
    flex-direction: column;
    gap: 24px;
    max-width: 900px;
    margin: 0;
    padding: 0;
}

#experience .experience-card {
    margin: 0;
    padding: 18px;
    border-radius: 8px;
    background: var(--card-bg, #ffffff);
    box-shadow: 0 1px 6px rgba(0, 0, 0, 0.06);
}

/* Slightly larger gap on wider screens */
@media (min-width: 900px) {
    #experience .experience-list {
        gap: 32px;
    }
}

/* Experience – use same card visual language as Projects */
.experience-grid {
    margin-top: 2rem;
    display: grid;
    gap: 1.5rem;
}

@media (min-width: 768px) {
    .experience-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

.experience-card .muted {
    font-size: 0.8rem;
    color: var(--text-muted);
}

.experience-points {
    margin-top: 0.75rem;
    padding-left: 1.1rem;
    color: var(--text-muted);
    font-size: 0.9rem;
}

.experience-points li+li {
    margin-top: 0.25rem;
}

/* Projects */
.project-card {
    background: var(--card-bg);
    border-radius: var(--radius-lg);
    padding: 1.5rem;
    border: 1px solid var(--border-subtle);
    box-shadow: var(--shadow-soft);
    transition:
        transform 180ms ease,
        box-shadow 180ms ease,
        border-color 180ms ease;
    position: relative;
    overflow: hidden;
}

.project-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 22px 55px rgba(0, 0, 0, 0.7);
    border-color: var(--accent);
}

.projects-grid {
    margin-top: 2rem;
}

@media (min-width: 768px) {
    .projects-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

.card {
    background: var(--card-bg);
    border-radius: var(--radius-lg);
    padding: 1.4rem 1.5rem;
    border: 1px solid var(--border-subtle);
    box-shadow: var(--shadow-soft);
    display: flex;
    flex-direction: column;
    gap: 0.7rem;
}

.card h3 {
    font-size: 1.2rem;
}

.card p {
    color: var(--text-muted);
    font-size: 0.9rem;
}

.tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
    list-style: none;
}

.tags li {
    font-size: 0.75rem;
    padding: 0.2rem 0.5rem;
    border-radius: 999px;
    background: var(--accent-soft);
    color: var(--accent);
}

.card-link {
    margin-top: 0.3rem;
    font-size: 0.85rem;
    color: var(--accent);
    text-decoration: underline;
}

.card-link:hover {
    text-decoration: underline;
}

/* Resume */
.nav-resume {
    margin-left: 1.5rem;
    padding: 0.35rem 0.9rem;
    border-radius: 999px;
    border: 1px solid rgba(74, 222, 128, 0.6);
    color: var(--accent);
    font-size: 0.85rem;
}

.nav-resume:hover {
    background: rgba(34, 197, 94, 0.09);
    color: #bbf7d0;
    border-color: rgba(74, 222, 128, 0.9);
}

/* Skills */
.skills-grid {
    margin-top: 1.5rem;
}

@media (min-width: 768px) {
    .skills-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

.skills-grid h3 {
    margin-bottom: 0.5rem;
    font-size: 1.05rem;
}

.skills-grid ul {
    list-style: none;
    color: var(--text-muted);
    font-size: 0.9rem;
}

.skills-grid li {
    margin-bottom: 0.3rem;
}

/* Contact */
.contact-email a {
    font-size: 1.05rem;
    color: var(--accent);
    text-decoration: underline;
}

.contact-email a:hover {
    text-decoration: underline;
}

.contact-note {
    margin-top: 0.5rem;
    color: var(--text-muted);
    font-size: 0.9rem;
}

/* Footer */
.site-footer {
    padding: 1.2rem 0 1.6rem;
    margin-top: 2rem;
    border-top: none;
    background: transparent;
}

.footer-inner {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    justify-content: center;
    font-size: 0.8rem;
    color: var(--text-muted);
}

.footer-separator {
    opacity: 0.6;
}

.skills-section {
    padding: 4rem 0;
}

.skills-grid {
    display: grid;
    gap: 1.75rem;
}

@media (min-width: 768px) {
    .skills-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

.skill-group h3 {
    margin-bottom: 0.5rem;
}

.skill-group ul {
    list-style: none;
}

.skill-group li+li {
    margin-top: 0.25rem;
}


/* Smooth scrolling */
html {
    scroll-behavior: smooth;
}

section,
.section,
.site-header,
.site-footer,
.card,
.about-highlight,
.skills-section,
.hero,
.projects-grid,
.two-column,
.skills-grid {
    background: transparent !important;
}

.skills-grid .skill-item,
.skills-grid .skill-pill {
    transition: transform 100ms ease-out, box-shadow 120ms ease-out, border-color 120ms ease-out;
}

.skills-grid .skill-item:hover,
.skills-grid .skill-pill:hover {
    transform: scale(1.04);
    box-shadow: 0 0 0 1px rgba(74, 222, 128, 0.35);
    border-color: var(--accent);
}

/* If you’re using icons (svg/img) inside */
.skills-grid svg,
.skills-grid img {
    transition: transform 100ms ease-out;
}

.skills-grid svg:hover,
.skills-grid img:hover {
    transform: scale(1.04);
}