:root {
    --bg: #0f1724;
    --card: #0b1220;
    --muted: #9aa8c3;
    --accent: #6dd3d9;
    --accent-2: #7b61ff;
    --glass: rgba(255, 255, 255, 0.04);
    --glass-2: rgba(255, 255, 255, 0.02);
    --maxw: 1100px;
    --radius: 14px;
    --mono: 'Inter', system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial;
}

* {
    box-sizing: border-box
}

html,
body {
    height: 100%
}

body {
    margin: 0;
    background: radial-gradient(1200px 600px at 10% 10%, rgba(123, 97, 255, 0.07), transparent 6%),
        radial-gradient(900px 400px at 90% 90%, rgba(109, 211, 217, 0.03), transparent 10%),
        var(--bg);
    color: #e6eef8;
    font-family: var(--mono);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    line-height: 1.45;
    padding: 40px 20px;
    display: flex;
    justify-content: center;
}

.wrap {
    width: 100%;
    max-width: var(--maxw);
}

header {
    display: flex;
    gap: 20px;
    align-items: center;
    margin-bottom: 28px;
}

.brand {
    display: flex;
    gap: 14px;
    align-items: center;
}

.logo {
    width: 64px;
    height: 64px;
    border-radius: 12px;
    background: linear-gradient(135deg, var(--accent), var(--accent-2));
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    color: rgba(10, 12, 18, 0.06);
    box-shadow: 0 6px 20px rgba(11, 18, 32, 0.6), inset 0 -6px 18px rgba(255, 255, 255, 0.02);
    transform-origin: center;
}

.intro {
    display: flex;
    flex-direction: column;
}

.name {
    font-size: 20px;
    font-weight: 700;
    letter-spacing: 0.2px;
}

.sub {
    color: var(--muted);
    font-size: 13px;
    margin-top: 2px;
}

/* Main canvas */
main {
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.02), transparent 20%), var(--card);
    border-radius: var(--radius);
    padding: 28px;
    box-shadow: 0 10px 40px rgba(2, 6, 23, 0.6);
    overflow: hidden;
}

/* Hero */
.hero {
    display: grid;
    grid-template-columns: 1fr 360px;
    gap: 28px;
    align-items: stretch;
}

.hero-left {
    padding: 20px;
}

h1 {
    margin: 0 0 8px 0;
    font-size: 34px;
    letter-spacing: -0.6px;
    line-height: 1.03;
}

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

.cta-row {
    display: flex;
    gap: 12px;
    flex-wrap: wrap
}

.btn {
    padding: 10px 14px;
    border-radius: 10px;
    background: linear-gradient(90deg, var(--accent), var(--accent-2));
    color: #081224;
    font-weight: 700;
    cursor: pointer;
    text-decoration: none;
    box-shadow: 0 6px 18px rgba(123, 97, 255, 0.12);
    transition: transform .22s ease, box-shadow .22s ease;
    display: inline-flex;
    gap: 10px;
    align-items: center;
}

.btn:active {
    transform: translateY(1px)
}

.ghost {
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.06);
    color: var(--muted);
    padding: 10px 14px;
    border-radius: 10px;
    text-decoration: none;
}

/* hero-right card */
.profile-card {
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.02), rgba(255, 255, 255, 0.01));
    border-radius: 12px;
    padding: 18px;
    min-height: 220px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 12px;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.02);
}

.meta-row {
    display: flex;
    gap: 12px;
    align-items: center
}

.meta-row .dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--accent)
}

.contact a {
    display: block;
    color: var(--muted);
    text-decoration: none;
    font-size: 14px;
    margin-bottom: 6px
}

.contact a:hover {
    text-decoration: underline;
    color: #fff;
}

/* Narrative strip */
.narrative {
    margin-top: 20px;
    padding: 16px;
    border-radius: 10px;
    background: linear-gradient(90deg, rgba(123, 97, 255, 0.04), rgba(109, 211, 217, 0.02));
    color: var(--muted);
    font-size: 14px;
}

/* Sections */
section {
    margin-top: 28px
}

.section-title {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 14px;
}

.section-title h3 {
    margin: 0;
    font-size: 16px
}

.section-sub {
    color: var(--muted);
    font-size: 13px
}

/* timeline */
.timeline {
    display: flex;
    gap: 18px;
    align-items: flex-start;
}

.timeline .rail {
    width: 4px;
    background: linear-gradient(180deg, var(--accent), var(--accent-2));
    border-radius: 4px;
    margin-right: 10px;
    position: relative;
    min-height: 220px;
}

.timeline .items {
    flex: 1
}

.entry {
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.012), rgba(255, 255, 255, 0.01));
    padding: 12px;
    margin-bottom: 14px;
    border-radius: 10px;
    position: relative;
    transition: transform .22s ease, box-shadow .22s ease;
    overflow: hidden;
}

.entry:hover {
    transform: translateY(-6px);
    box-shadow: 0 18px 40px rgba(2, 6, 23, 0.5)
}

.entry .date {
    font-size: 12px;
    color: var(--muted);
    margin-bottom: 6px
}

.entry h4 {
    margin: 0 0 6px 0
}

.bullet {
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: #0b1220;
    border: 4px solid var(--accent);
    position: absolute;
    left: -28px;
    top: 14px;
}

/* skills */
.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 12px
}

.skill {
    background: var(--glass);
    padding: 12px;
    border-radius: 10px;
}

.skill h5 {
    margin: 0 0 8px 0;
    font-size: 13px
}

.bar {
    height: 10px;
    background: var(--glass-2);
    border-radius: 999px;
    overflow: hidden;
}

.bar-inner {
    height: 100%;
    width: 0%;
    background: linear-gradient(90deg, var(--accent), var(--accent-2));
    border-radius: 999px;
}

.skill .meta {
    color: var(--muted);
    font-size: 12px;
    margin-top: 8px
}

/* projects */
.proj-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 12px
}

.proj {
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.01), rgba(255, 255, 255, 0.02));
    padding: 14px;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.02);
    transition: transform .18s ease, box-shadow .18s ease;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.proj:hover {
    transform: translateY(-8px);
    box-shadow: 0 26px 60px rgba(3, 8, 20, 0.6)
}

.proj .tags {
    display: flex;
    gap: 8px;
    flex-wrap: wrap
}

.tag {
    font-size: 12px;
    padding: 6px 8px;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.03);
    color: var(--muted)
}

/* contact */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px
}

.contact-card {
    background: var(--glass);
    padding: 16px;
    border-radius: 12px;
}

footer {
    margin-top: 22px;
    color: var(--muted);
    font-size: 13px;
    text-align: center
}

/* responsive */
@media (max-width:980px) {
    .hero {
        grid-template-columns: 1fr
    }

    .profile-card {
        order: -1
    }

    .contact-grid {
        grid-template-columns: 1fr
    }

    header {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px
    }

    .logo {
        width: 54px;
        height: 54px
    }
}