:root {
    --bg: #0f0f14;
    --card: #111216;
    --accent: #ff6b6b;
    --muted: #9aa0a6;
    --glass: rgba(255, 255, 255, 0.04);
}

* {
    box-sizing: border-box
}

html,
body {
    height: 100%
}

body {
    margin: 0;
    font-family: Inter, system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', Arial;
    background: linear-gradient(180deg, #07070a 0%, #0b0b10 100%);
    color: #e6eef0;
    -webkit-font-smoothing: antialiased;
}

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

.site-header {
    position: sticky;
    top: 0;
    background: transparent;
    padding: 1rem 0;
    z-index: 20
}

.site-header .container {
    display: flex;
    align-items: center;
    justify-content: space-between
}

.logo {
    font-weight: 700;
    color: var(--accent);
    text-decoration: none
}

.nav {
    display: flex;
    gap: 1rem
}

.nav a {
    color: var(--muted);
    text-decoration: none
}

.menu-btn {
    display: none;
    background: transparent;
    border: 0;
    color: var(--muted);
    font-size: 1.6rem
}

.hero {
    position: relative;
    padding: 4rem 0;
    overflow: hidden
}

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

.hero h1 {
    font-size: clamp(2rem, 4vw, 3rem);
    margin: 0
}

.hero p {
    color: var(--muted);
    max-width: 40ch
}

.cta {
    display: inline-block;
    margin-top: 1rem;
    padding: .8rem 1.2rem;
    background: var(--accent);
    color: #111;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600
}

.hero-bg {
    position: absolute;
    right: -10%;
    top: -10%;
    width: 60vw;
    height: 120%;
    background: radial-gradient(circle at 30% 30%, rgba(255, 107, 107, 0.12), transparent 20%), conic-gradient(from 120deg at 50% 50%, rgba(0, 0, 0, 0.06), rgba(255, 255, 255, 0.02));
    transform: rotate(8deg);
    filter: blur(40px);
}

.about {
    padding-top: 2rem;
    padding-bottom: 2rem
}

.about-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 1.5rem
}

.about-card {
    background: var(--card);
    padding: 1.2rem;
    border-radius: 12px
}

.skills {
    background: var(--glass);
    padding: 1rem;
    border-radius: 12px
}

.projects {
    padding-top: 1rem;
    padding-bottom: 2rem
}

.grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1rem;
    margin-top: 1rem
}

.card {
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.02), rgba(255, 255, 255, 0.01));
    padding: 1rem;
    border-radius: 12px;
    cursor: pointer;
    transition: transform .25s, box-shadow .25s
}

.card:hover {
    transform: translateY(-6px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.6)
}

.thumb {
    height: 140px;
    border-radius: 8px;
    margin-bottom: .75rem;
    background-size: cover;
    background-position: center
}

.thumb-1 {
    background: linear-gradient(135deg, #ff9a9e, #fecfef)
}

.thumb-2 {
    background: linear-gradient(135deg, #a18cd1, #fbc2eb)
}

.thumb-3 {
    background: linear-gradient(135deg, #fbc2eb, #a6c1ee)
}

.tag {
    color: var(--muted);
    font-size: .9rem
}

.contact {
    padding: 2rem 0
}

.site-footer {
    padding: 2rem 0;
    color: var(--muted);
    text-align: center
}

.modal {
    position: fixed;
    inset: 0;
    background: rgba(2, 6, 23, 0.6);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity .2s
}

.modal[aria-hidden="false"] {
    opacity: 1;
    pointer-events: auto
}

.modal-content {
    background: linear-gradient(180deg, #0b0b0f, #0f1114);
    padding: 1.5rem;
    border-radius: 12px;
    max-width: 520px;
    width: 90%;
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.6)
}

.close {
    background: transparent;
    border: 0;
    color: var(--muted);
    font-size: 1.2rem;
    float: right
}

@media(max-width:800px) {
    .about-grid {
        grid-template-columns: 1fr
    }

    .menu-btn {
        display: block
    }

    .nav {
        display: none;
        position: absolute;
        right: 1rem;
        top: 60px;
        background: var(--card);
        padding: .8rem;
        border-radius: 8px;
        flex-direction: column
    }
}