:root {
    --bg: #070707;
    --bg-soft: #111111;
    --panel: rgba(15, 15, 15, 0.96);
    --panel-strong: #151515;
    --text: #ffffff;
    --muted: #b8b8b8;
    --accent: #c5b608;
    --accent-soft: #e0d43a;
    --line: rgba(255, 255, 255, 0.08);
    --shadow: 0 22px 50px rgba(0, 0, 0, 0.45);
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    position: relative;
    margin: 0;
    min-height: 100vh;
    color: var(--text);
    font-family: "Trebuchet MS", "Segoe UI", sans-serif;
    background:
        radial-gradient(circle at top center, rgba(197, 182, 8, 0.18), transparent 28%),
        linear-gradient(180deg, #050505 0%, #090909 50%, #0d0d0d 100%);
}

.battle-bg {
    position: fixed;
    inset: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    pointer-events: none;
    opacity: 1;
}

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

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

.page-shell {
    position: relative;
    z-index: 1;
    width: min(1180px, calc(100% - 2rem));
    margin: 0 auto;
    padding-top: 0.5rem;
    padding-bottom: 4rem;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 1.15rem 0;
    backdrop-filter: blur(18px);
    background: rgba(7, 7, 7, 0.62);
}

.brand,
h1,
h2,
h3 {
    font-family: Georgia, "Times New Roman", serif;
}

.brand {
    font-size: 1.4rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    color: var(--accent);
}

.site-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    justify-content: flex-end;
}

.site-nav a {
    color: var(--muted);
    transition: color 0.25s ease;
}

.site-nav a:hover,
.site-nav a:focus-visible {
    color: var(--accent-soft);
}

.hero,
.section-grid,
.section-stack,
.contact-banner {
    background: rgba(15, 15, 15, 0.82);
    border: 1px solid var(--line);
    border-radius: 28px;
    box-shadow: var(--shadow);
    backdrop-filter: blur(10px);
}

.hero {
    display: grid;
    grid-template-columns: 1.25fr 0.95fr;
    gap: 2rem;
    align-items: center;
    margin-top: 2rem;
    padding: 3.5rem;
    overflow: hidden;
    min-height: 82vh;
}

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

.hero h1 {
    margin: 0;
    font-size: clamp(3rem, 7vw, 5rem);
    line-height: 1.02;
}

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

.hero-subtitle {
    margin: 1rem 0 0;
    font-size: clamp(1.5rem, 3vw, 2.25rem);
    font-family: "Trebuchet MS", "Segoe UI", sans-serif;
    font-weight: 700;
}

.intro,
.section-body p,
.project-card p,
.skill-card p {
    color: var(--muted);
    line-height: 1.7;
}

.intro {
    max-width: 42rem;
    margin: 1.5rem 0 0;
    font-size: 1.05rem;
}

.hero-actions,
.social-links {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
}

.hero-actions {
    margin-top: 2rem;
}

.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 10rem;
    padding: 0.95rem 1.4rem;
    border-radius: 999px;
    font-weight: 700;
    transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
}

.button:hover,
.button:focus-visible,
.social-links a:hover,
.social-links a:focus-visible {
    transform: translateY(-3px);
}

.button-primary {
    color: #ffffff;
    background: var(--accent);
    box-shadow: 0 10px 24px rgba(197, 182, 8, 0.32);
}

.button-secondary {
    border: 1px solid var(--line);
    background: transparent;
}

.social-links {
    margin-top: 1.75rem;
}

.social-links a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 3rem;
    height: 3rem;
    border: 1px solid var(--line);
    border-radius: 50%;
    color: var(--accent);
    background: transparent;
    transition: transform 0.25s ease, border-color 0.25s ease;
}

.social-links a:hover,
.social-links a:focus-visible {
    border-color: var(--accent);
    box-shadow: 0 0 18px rgba(197, 182, 8, 0.3);
}

.hero-visual {
    position: relative;
    display: grid;
    place-items: center;
    min-width: 0;
}

.portrait-frame {
    position: relative;
    width: min(100%, 420px);
    aspect-ratio: 1 / 1;
    padding: 0.45rem;
    border-radius: 50%;
    border: 0.22rem solid var(--accent);
    box-shadow: 0 0 30px rgba(197, 182, 8, 0.24);
    background: radial-gradient(circle at center, rgba(197, 182, 8, 0.14), rgba(197, 182, 8, 0.03));
}

.portrait-frame img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center center;
    border-radius: 50%;
    background: transparent;
    filter: drop-shadow(0 10px 24px rgba(0, 0, 0, 0.48));
}

.stat-card {
    position: absolute;
    right: 0;
    bottom: 1.5rem;
    display: grid;
    gap: 0.25rem;
    padding: 1rem 1.2rem;
    border: 1px solid var(--line);
    border-radius: 18px;
    background: rgba(10, 10, 10, 0.92);
}

.stat-number {
    font-size: 1.7rem;
    font-weight: 700;
}

.stat-label {
    color: var(--muted);
    font-size: 0.92rem;
}

.section-grid,
.section-stack,
.contact-banner {
    margin-top: 1.75rem;
    padding: 2.5rem;
}

.section-grid {
    display: grid;
    grid-template-columns: 0.9fr 1.1fr;
    gap: 2rem;
}

.section-heading h2,
.contact-banner h2 {
    margin: 0;
    font-size: clamp(1.9rem, 4vw, 3rem);
    line-height: 1.05;
}

.section-body {
    display: grid;
    gap: 0.75rem;
}

.skill-grid,
.project-grid {
    display: grid;
    gap: 1.2rem;
    margin-top: 1.75rem;
}

.skill-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.project-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.skill-card,
.project-card {
    padding: 1.4rem;
    border: 1px solid var(--line);
    border-radius: 22px;
    background: var(--panel-strong);
}

.skill-card h3,
.project-card h3 {
    margin-top: 0;
    margin-bottom: 0.8rem;
}

.project-tag {
    display: inline-block;
    margin-bottom: 0.9rem;
    padding: 0.35rem 0.7rem;
    border-radius: 999px;
    color: #ffffff;
    font-size: 0.82rem;
    font-weight: 700;
    background: linear-gradient(120deg, var(--accent), var(--accent-soft));
}

.contact-banner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
}

.contact-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.85rem;
    justify-content: flex-end;
}

@media (max-width: 960px) {
    .hero,
    .section-grid {
        grid-template-columns: 1fr;
    }

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

    .hero,
    .section-grid,
    .section-stack,
    .contact-banner {
        padding: 2.25rem;
    }

    .hero {
        min-height: auto;
    }

    .hero-copy,
    .section-heading,
    .section-body {
        min-width: 0;
    }

    .contact-banner {
        display: grid;
        justify-items: start;
    }

    .contact-actions {
        justify-content: flex-start;
    }

    .stat-card {
        position: static;
        margin-top: 1rem;
        width: 100%;
        max-width: 16rem;
    }
}

@media (max-width: 700px) {
    .site-header {
        position: static;
        flex-direction: column;
        align-items: flex-start;
        padding-top: 1.25rem;
    }

    .page-shell {
        width: min(100%, 1180px);
        padding-left: 0.75rem;
        padding-right: 0.75rem;
    }

    .hero,
    .section-grid,
    .section-stack,
    .contact-banner {
        padding: 1.5rem;
        border-radius: 22px;
    }

    .hero h1 {
        font-size: clamp(2.4rem, 12vw, 3.6rem);
    }

    .hero-subtitle {
        font-size: 1.3rem;
    }

    .site-nav {
        width: 100%;
        gap: 0.75rem;
        justify-content: flex-start;
    }

    .site-nav a {
        font-size: 0.95rem;
    }

    .portrait-frame {
        width: min(100%, 290px);
    }

    .stat-card {
        max-width: none;
    }

    .button {
        width: 100%;
    }

    .hero-actions {
        width: 100%;
    }

    .contact-actions {
        width: 100%;
    }
}
