:root {
    --bg: #0b1224;
    --panel: rgba(15, 23, 42, 0.75);
    --card: rgba(255, 255, 255, 0.04);
    --accent: #34d399;
    --accent-2: #0ea5e9;
    --text: #e5e7eb;
    --muted: #a5b4c4;
    --border: rgba(255, 255, 255, 0.08);
    --shadow: 0 25px 60px rgba(0, 0, 0, 0.35);
}

* { box-sizing: border-box; }

body {
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    line-height: 1.7;
    margin: 0;
    padding: 0;
    background: radial-gradient(circle at 20% 20%, rgba(52, 152, 219, 0.1), transparent 25%),
                radial-gradient(circle at 80% 0%, rgba(52, 211, 153, 0.12), transparent 20%),
                linear-gradient(135deg, #0f172a 0%, #0b1224 40%, #0b1b36 100%);
    color: var(--text);
    min-height: 100vh;
    overflow-x: hidden;
}

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

canvas#backgroundCanvas {
    position: fixed;
    inset: 0;
    z-index: 0;
    opacity: 0.35;
}

.hero {
    position: relative;
    padding: 48px 0 28px;
    overflow: hidden;
    z-index: 1;
}

.hero::after {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 20% 10%, rgba(52, 211, 153, 0.18), transparent 35%),
                radial-gradient(circle at 80% 0%, rgba(14, 165, 233, 0.16), transparent 30%);
    pointer-events: none;
}

.hero__content {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 32px;
    align-items: center;
}

.hero__text h1 {
    font-family: 'Playfair Display', serif;
    font-size: clamp(2.2rem, 3vw, 3rem);
    margin: 6px 0 10px;
    letter-spacing: 0.5px;
}

.hero .subtitle {
    color: var(--muted);
    margin-bottom: 18px;
}

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

.hero__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin: 18px 0 14px;
}

.btn {
    border: 1px solid var(--border);
    color: var(--text);
    padding: 10px 16px;
    border-radius: 999px;
    text-decoration: none;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.3s ease, color 0.3s ease;
}

.btn.primary {
    background: linear-gradient(135deg, var(--accent-2), var(--accent));
    color: #0b1224;
    box-shadow: 0 10px 30px rgba(52, 211, 153, 0.35);
}

.btn.ghost { background: rgba(255, 255, 255, 0.06); }
.btn.full { width: 100%; text-align: center; justify-content: center; }

.btn:hover { transform: translateY(-2px); box-shadow: 0 10px 40px rgba(14, 165, 233, 0.35); }

.hero__highlights {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-top: 8px;
}

.chip {
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid var(--border);
    padding: 8px 12px;
    border-radius: 10px;
    font-size: 0.95rem;
    color: var(--muted);
}

.portrait-card { 
    position: relative; 
    background: var(--card); 
    border: 1px solid var(--border);
    border-radius: 18px;
    padding: 14px; 
    box-shadow: var(--shadow); 
    backdrop-filter: blur(12px); 
    text-align: center; 
}

.portrait-card img { 
    width: 100%; 
    border-radius: 12px; 
    object-fit: cover; 
}

.portrait-card .badge {
    position: absolute;
    bottom: 14px;
    right: 14px;
    background: linear-gradient(135deg, var(--accent-2), var(--accent));
    color: #0b1224;
    padding: 8px 12px;
    border-radius: 999px;
    font-weight: 700;
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.25);
}

.navbar {
    position: sticky;
    top: 0;
    z-index: 10;
    background: rgba(11, 18, 36, 0.9);
    backdrop-filter: blur(14px);
    border-bottom: 1px solid var(--border);
}

.nav-wrapper {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 0;
}

.navbar ul {
    list-style: none;
    display: flex;
    gap: 10px;
    padding: 0;
    margin: 0;
}

.navbar a {
    color: var(--text);
    text-decoration: none;
    padding: 10px 12px;
    border-radius: 12px;
    font-weight: 600;
    transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.navbar a:hover {
    background: rgba(52, 211, 153, 0.16);
    color: #d1fae5;
    transform: translateY(-1px);
}

.brand { font-weight: 800; letter-spacing: 0.04em; }

.hamburger { display: none; flex-direction: column; gap: 4px; cursor: pointer; }
.hamburger div { width: 24px; height: 3px; background: var(--text); transition: all 0.3s ease; }

.navbar ul.active { display: flex; }
.navbar-overlay { display: none; }

.layout {
    display: grid;
    grid-template-columns: 320px 1fr;
    gap: 24px;
    margin: 30px auto 60px;
    position: relative;
    z-index: 1;
}

.profile-card {
    position: sticky;
    top: 96px;
    align-self: start;
    background: var(--panel);
    border: 1px solid var(--border);
    border-radius: 18px;
    padding: 18px;
    box-shadow: var(--shadow);
    backdrop-filter: blur(14px);
}

.profile-card__header h2 { margin: 0 0 6px; }
.profile-card__header p { margin: 0 0 12px; color: var(--muted); }

.profile-card__details { display: grid; gap: 10px; margin: 12px 0; }
.detail { color: var(--muted); display: flex; gap: 8px; align-items: center; }

.profile-card__links {
    display: grid;
    gap: 8px;
    margin: 14px 0;
}

.profile-card__links a {
    color: var(--text);
    text-decoration: none;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--border);
    padding: 10px 12px;
    border-radius: 12px;
    font-weight: 600;
    transition: background 0.2s ease, transform 0.2s ease;
}
.profile-card__links a:hover { background: rgba(52, 211, 153, 0.12); transform: translateY(-1px); }

.profile-card__cta {
    margin-top: 8px;
    padding-top: 10px;
    border-top: 1px solid var(--border);
}
.profile-card__cta p { margin: 0 0 8px; color: var(--muted); }

.content { display: grid; gap: 16px; }

.card {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 18px;
    padding: 20px 22px;
    box-shadow: var(--shadow);
    backdrop-filter: blur(12px);
}

.card__header h2 { margin: 4px 0 8px; }
.card__header p { margin: 0; }

.pill-list { display: flex; flex-wrap: wrap; gap: 10px; margin: 10px 0 14px; }
.pill { background: rgba(255, 255, 255, 0.06); padding: 8px 12px; border-radius: 10px; color: var(--muted); border: 1px solid var(--border); }

.grid.two-cols { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 14px; }

.styled-list { color: var(--text); }
.styled-list li { margin-bottom: 10px; }

.timeline { list-style: none; margin: 0; padding: 0; border-left: 2px solid rgba(255, 255, 255, 0.1); }
.timeline li { position: relative; padding: 0 0 18px 18px; }
.timeline__dot { width: 12px; height: 12px; background: linear-gradient(135deg, var(--accent-2), var(--accent)); border-radius: 50%; position: absolute; left: -7px; top: 4px; box-shadow: 0 0 0 6px rgba(52, 211, 153, 0.12); }
.timeline__content h3 { margin: 0 0 4px; }
.timeline__content p { margin: 2px 0; }

.skills-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 12px; }
.skill { padding: 12px; background: rgba(255, 255, 255, 0.05); border-radius: 12px; border: 1px solid var(--border); }
.skill h3 { margin: 0 0 6px; }
.skill p { margin: 0; color: var(--muted); }

.muted { color: var(--muted); }

#scrollToTopBtn {
    position: fixed;
    bottom: 22px;
    right: 22px;
    z-index: 15;
    background: linear-gradient(135deg, var(--accent-2), var(--accent));
    color: #0b1224;
    border: none;
    padding: 12px 14px;
    border-radius: 50%;
    box-shadow: 0 18px 36px rgba(0, 0, 0, 0.35);
    cursor: pointer;
    display: none;
    transition: transform 0.2s ease;
}

#scrollToTopBtn:hover { transform: translateY(-2px); }

footer {
    padding: 26px 0;
    background: rgba(11, 18, 36, 0.92);
    border-top: 1px solid var(--border);
    text-align: center;
}
.footer-content { display: flex; justify-content: center; gap: 14px; align-items: center; }
.footer-content a { color: var(--text); text-decoration: none; }

@media (max-width: 960px) {
    .hero__content { grid-template-columns: 1fr; }
    .portrait-card { max-width: 360px; margin: 0 auto; }
    .layout { grid-template-columns: 1fr; }
    .profile-card { position: relative; top: 0; }
}

@media (max-width: 768px) {
    .nav-wrapper { padding: 12px 4px; }
    .navbar ul { position: absolute; top: 56px; right: 0; left: 0; background: rgba(11, 18, 36, 0.95); flex-direction: column; padding: 12px; display: none; }
    .navbar ul.active { display: flex; }
    .navbar-overlay { display: none; }
    .hamburger { display: flex; }
    .layout { margin-top: 16px; }
}
