:root {
    --bg: #151218;
    --bg-soft: #201a24;
    --surface: #2b2331;
    --text: #f5edf8;
    --muted: #c8b6d0;
    --accent: #ff8f70;
    --accent-2: #b984ff;
    --border: rgba(255, 255, 255, 0.12);
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: "Inter", "Segoe UI", Roboto, sans-serif;
    background: radial-gradient(circle at top right, #33253b 0%, var(--bg) 50%);
    color: var(--text);
    line-height: 1.6;
}

a {
    color: var(--accent);
    text-decoration: none;
}

a:hover {
    color: #ffc8b8;
}

.container {
    width: min(1080px, 92%);
    margin: 0 auto;
}

.topbar {
    position: sticky;
    top: 0;
    z-index: 20;
    backdrop-filter: blur(8px);
    background: rgba(21, 18, 24, 0.82);
    border-bottom: 1px solid var(--border);
}

.nav-wrap {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    padding: 0.85rem 0;
}

.brand {
    font-weight: 700;
    color: var(--text);
    letter-spacing: 0.2px;
}

nav {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

nav a {
    color: var(--muted);
    font-size: 0.95rem;
}

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

main {
    padding: 2.2rem 0 3rem;
}

.card {
    background: linear-gradient(160deg, var(--surface), var(--bg-soft));
    border: 1px solid var(--border);
    border-radius: 18px;
    padding: 1.6rem;
    margin-bottom: 1.15rem;
    box-shadow: 0 10px 28px rgba(0, 0, 0, 0.25);
}

.hero {
    display: grid;
    grid-template-columns: 220px 1fr;
    gap: 1.5rem;
    align-items: center;
}

.profile-img {
    width: 220px;
    height: 220px;
    border-radius: 20px;
    object-fit: cover;
    border: 2px solid rgba(255, 143, 112, 0.5);
    box-shadow: 0 8px 22px rgba(0, 0, 0, 0.35);
}

.eyebrow {
    color: var(--accent-2);
    font-weight: 600;
    margin: 0 0 0.5rem;
}

h1 {
    margin: 0;
    font-size: clamp(1.9rem, 3vw, 2.8rem);
    line-height: 1.2;
}

.subtitle {
    margin: 0.7rem 0;
    color: var(--muted);
    max-width: 700px;
}

.meta {
    margin: 0 0 0.8rem;
    color: #e2d6e8;
    font-size: 0.95rem;
}

.hero-links {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
}

.hero-links a {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid var(--border);
    padding: 0.48rem 0.78rem;
    border-radius: 999px;
    color: var(--text);
    font-size: 0.9rem;
}

.hero-links a:hover {
    border-color: rgba(255, 143, 112, 0.75);
    color: #fff;
}

h2 {
    margin-top: 0;
    margin-bottom: 0.85rem;
    font-size: 1.5rem;
}

h3 {
    margin: 0 0 0.3rem;
    font-size: 1.06rem;
}

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

.two-col {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

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

ul {
    margin: 0.45rem 0 0;
    padding-left: 1.1rem;
}

.timeline article {
    padding: 0.9rem 1rem;
    border-left: 3px solid rgba(185, 132, 255, 0.75);
    background: rgba(255, 255, 255, 0.03);
    border-radius: 10px;
    margin-bottom: 0.9rem;
}

.timeline article:last-child {
    margin-bottom: 0;
}

.role-meta {
    margin: 0 0 0.45rem;
    color: var(--muted);
    font-size: 0.94rem;
}

.project-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.95rem;
}

.project-card {
    padding: 0.95rem 1rem;
    border-radius: 12px;
    border: 1px solid var(--border);
    background: rgba(255, 255, 255, 0.04);
}

.project-card p {
    margin: 0.45rem 0;
    color: #e8dded;
}

.tech {
    color: #d8c4e2;
    font-size: 0.94rem;
}

@media (max-width: 860px) {
    .hero {
        grid-template-columns: 1fr;
        text-align: left;
    }

    .profile-img {
        width: 170px;
        height: 170px;
    }

    .two-col,
    .three-col,
    .project-grid {
        grid-template-columns: 1fr;
    }
}