/* Reset and tokens */
*,
*::before,
*::after {
    box-sizing: border-box;
}

:root {
    --brand: #8935e0;
    --brand-600: #7b2bd9;
    --brand-500: #9d53eb;
    --brand-400: #b77cf2;
    --bg: #0b0b10;
    --surface: #11121a;
    --text: #101114;
    --muted: #6b7280;
    --card: #ffffff;
    --ring: 32, 7, 59;
    /* base for shadows from #8935e0 */
    --shadow-lg: 0 20px 50px rgba(var(--ring), .18), 0 10px 25px rgba(0, 0, 0, .06);
    --shadow-md: 0 10px 25px rgba(var(--ring), .15), 0 4px 12px rgba(0, 0, 0, .05);
    --radius: 14px;
}

html,
body {
    margin: 0;
    font-family: Inter, system-ui, -apple-system, Segoe UI, Roboto, "Helvetica Neue", Arial, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", sans-serif;
    color: #0f1222;
    background: #f7f8fc;
    scroll-behavior: smooth;
}

img {
    max-width: 100%;
    display: block;
}

/* Layout */
.container {
    width: min(1120px, 92vw);
    margin: 0 auto;
}

.section {
    padding: clamp(52px, 8vw, 96px) 0;
}

.section-head {
    margin-bottom: 28px;
}

.title {
    font-size: clamp(28px, 6vw, 44px);
    margin: 0 0 6px;
}

.display {
    font-size: clamp(36px, 8vw, 72px);
    letter-spacing: -0.02em;
    margin: 0 0 12px;
}

.lead {
    font-size: clamp(16px, 3.3vw, 20px);
    line-height: 1.6;
}

.muted {
    color: var(--muted);
}

.accent {
    color: var(--brand);
}

/* Header */
.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: rgba(255, 255, 255, .8);
    backdrop-filter: saturate(140%) blur(8px);
    border-bottom: 1px solid rgba(17, 24, 39, .06);
}

.nav {
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: 14px;
    padding: 14px 0;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-weight: 800;
    text-decoration: none;
    color: #1f2437;
    letter-spacing: -0.02em;
}

.brand .dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--brand) 0%, var(--brand-400) 100%);
    box-shadow: 0 0 0 3px rgba(137, 53, 224, .15);
}

.primary-nav {
    display: flex;
    gap: 22px;
    justify-content: center;
    align-items: center;
}

.primary-nav a {
    text-decoration: none;
    color: #2d3448;
    font-weight: 500;
    padding: 8px 6px;
    border-radius: 8px;
}

.primary-nav a:hover {
    color: var(--brand);
    background: rgba(137, 53, 224, .08);
}

/* Mobile nav */
.nav-toggle {
    display: none;
    width: 42px;
    height: 38px;
    border: 0;
    background: transparent;
    padding: 0;
}

.nav-toggle span {
    display: block;
    height: 2px;
    background: #2d3448;
    margin: 7px 0;
    transition: .25s;
}

/* Buttons */
.btn {
    --bg: #fff;
    --fg: #111321;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 16px;
    border-radius: 10px;
    border: 1px solid rgba(17, 24, 39, .08);
    text-decoration: none;
    color: var(--fg);
    background: var(--bg);
    font-weight: 600;
    transition: transform .15s ease, box-shadow .2s ease, background .2s ease;
}

.btn:hover {
    transform: translateY(-1px);
    box-shadow: var(--shadow-md);
}

.btn.primary {
    --bg: linear-gradient(135deg, var(--brand), var(--brand-400));
    --fg: #fff;
    border: 0;
    box-shadow: 0 10px 20px rgba(137, 53, 224, .25);
}

.btn.ghost {
    background: #fff;
    border: 1px solid rgba(137, 53, 224, .25);
    color: var(--brand);
}

/* Hero */
.hero {
    position: relative;
    overflow: hidden;
    padding-top: clamp(40px, 8vw, 64px);
}

.aurora {
    position: absolute;
    inset: -20% -10% auto -10%;
    height: 120%;
    background:
        radial-gradient(30% 40% at 20% 10%, rgba(137, 53, 224, .35), transparent 60%),
        radial-gradient(35% 40% at 80% 0%, rgba(183, 124, 242, .35), transparent 60%),
        radial-gradient(50% 55% at 60% 80%, rgba(157, 83, 235, .35), transparent 60%);
    filter: blur(30px) saturate(120%);
    animation: float-aurora 22s ease-in-out infinite alternate;
    pointer-events: none;
}

@keyframes float-aurora {
    from {
        transform: translateY(-10px) scale(1.02);
    }

    to {
        transform: translateY(10px) scale(1.08);
    }
}

.hero-grid {
    display: grid;
    grid-template-columns: 1.1fr .9fr;
    gap: 36px;
    align-items: center;
}

.cta {
    display: flex;
    gap: 12px;
    margin-top: 18px;
}

.hero-right {
    display: grid;
    gap: 16px;
    justify-items: start;
}

.avatar-wrap {
    --ring: linear-gradient(135deg, var(--brand), var(--brand-400));
    padding: 6px;
    border-radius: 999px;
    background: var(--ring);
    box-shadow: 0 10px 30px rgba(137, 53, 224, .35);
}

.avatar {
    border-radius: 999px;
    display: block;
    background: #111;
    border: 6px solid #f3eaff;
}

.card {
    background: var(--card);
    border: 1px solid rgba(17, 24, 39, .08);
    border-radius: var(--radius);
    padding: 18px 18px;
    box-shadow: 0 1px 0 rgba(17, 24, 39, .04);
}

.card.glass {
    background: rgba(255, 255, 255, .72);
    backdrop-filter: blur(10px);
    box-shadow: var(--shadow-md);
}

.highlights h3 {
    margin: 4px 0 8px;
}

.highlights ul {
    margin: 0;
    padding: 0 0 0 18px;
    display: grid;
    gap: 6px;
}

/* Cards grid */
.grid.cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.card.lift {
    transition: transform .18s ease, box-shadow .2s ease;
}

.card.lift:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-lg);
}

.card h3 {
    margin: 4px 0 8px;
}

.card p {
    margin: 0 0 10px;
    color: #475069;
}

.tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 12px 0 4px;
}

.tag {
    display: inline-block;
    padding: 6px 10px;
    font-size: 12px;
    border-radius: 999px;
    background: #f1ecfb;
    color: #4b2b86;
    border: 1px solid #e3d8fb;
}

.link {
    display: inline-block;
    margin-top: 6px;
    font-weight: 600;
    color: #1c2237;
    text-decoration: none;
}

.link:hover {
    color: var(--brand);
}

/* Skills */
.grid.skills {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
}

.skill .skill-head {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    margin-bottom: 10px;
}

.skill .level {
    color: var(--muted);
    font-size: 12px;
    font-weight: 600;
}

.bar {
    height: 8px;
    border-radius: 999px;
    background: #eef0f6;
    position: relative;
    overflow: hidden;
}

.bar span {
    position: absolute;
    inset: 0 auto 0 0;
    width: 0%;
    background: linear-gradient(90deg, var(--brand) 0%, var(--brand-400) 100%);
    border-radius: inherit;
    box-shadow: 0 0 0 1px rgba(137, 53, 224, .25) inset, 0 6px 14px rgba(137, 53, 224, .25);
    transition: width 1.2s cubic-bezier(.2, .7, .2, 1);
}

/* Achievements */
.achievements {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
}

.achievements .emoji {
    margin-right: 8px;
    font-size: 20px;
}

/* Experience timeline */
.timeline {
    position: relative;
    padding-left: 24px;
    display: grid;
    gap: 14px;
}

.timeline .line {
    position: absolute;
    left: 12px;
    top: 0;
    bottom: 0;
    width: 2px;
    background: #e9eaf3;
}

.timeline .node {
    position: relative;
    display: grid;
    grid-template-columns: 132px 1fr auto;
    gap: 60px;
    align-items: start;
}

.timeline .node .dot {
    position: absolute;
    left: -21px;
    top: 18px;
    width: 12px;
    height: 12px;
    border-radius: 999px;
    background: var(--brand);
    box-shadow: 0 0 0 4px rgba(137, 53, 224, .18);
}

.timeline .when {
    color: #5b6276;
    font-weight: 600;
}

.timeline .where {
    color: #5b6276;
    font-weight: 600;
}

/* Contact */
.contact-card {
    display: grid;
    grid-template-columns: 1.15fr .85fr;
    gap: 20px;
    align-items: start;
}

.contact-form .field {
    display: grid;
    gap: 6px;
    margin-bottom: 12px;
}

.contact-form label {
    font-weight: 600;
    color: #2d3448;
}

.contact-form input,
.contact-form textarea {
    background: #fff;
    border: 1px solid rgba(17, 24, 39, .12);
    border-radius: 10px;
    padding: 10px 12px;
    font: inherit;
    color: #1a1f33;
}

.contact-form input:focus,
.contact-form textarea:focus {
    outline: 2px solid rgba(137, 53, 224, .25);
    border-color: var(--brand-400);
}

.contact-form .actions {
    display: flex;
    gap: 12px;
    align-items: center;
}

.contact-aside h3 {
    margin: 4px 0 6px;
}

.socials {
    display: flex;
    gap: 10px;
    margin-top: 8px;
}

.icon {
    --bg: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 10px;
    background: var(--bg);
    color: #232a44;
    border: 1px solid rgba(17, 24, 39, .08);
    text-decoration: none;
    transition: transform .15s ease, box-shadow .2s ease, color .2s ease;
}

.icon:hover {
    color: var(--brand);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

/* Footer */
.site-footer {
    padding: 28px 0 38px;
    color: #535a6e;
}

.site-footer .container {
    display: flex;
    justify-content: center;
}

/* Reveal on scroll */
.reveal {
    opacity: 0;
    transform: translateY(12px);
    transition: opacity .6s ease, transform .6s ease;
}

.reveal.in {
    opacity: 1;
    transform: translateY(0);
}

/* Responsive */
@media (max-width: 1024px) {
    .grid.cards {
        grid-template-columns: repeat(2, 1fr);
    }

    .grid.skills {
        grid-template-columns: repeat(2, 1fr);
    }

    .achievements {
        grid-template-columns: repeat(2, 1fr);
    }

    .hero-grid {
        grid-template-columns: 1fr;
    }

    .hero-right {
        grid-template-columns: 1fr 1fr;
        align-items: start;
    }
}

@media (max-width: 720px) {
    .nav {
        grid-template-columns: auto auto auto;
    }

    .primary-nav {
        position: fixed;
        inset: 60px 12px auto 12px;
        background: rgba(255, 255, 255, .95);
        border: 1px solid rgba(17, 24, 39, .1);
        border-radius: 12px;
        padding: 10px;
        display: none;
        flex-direction: column;
        gap: 2px;
        box-shadow: var(--shadow-md);
    }

    .primary-nav a {
        padding: 10px 8px;
        border-radius: 8px;
    }

    .nav-toggle {
        display: inline-block;
    }

    .nav.open #primary-nav {
        display: flex;
    }

    .grid.cards {
        grid-template-columns: 1fr;
    }

    .grid.skills {
        grid-template-columns: 1fr;
    }

    .achievements {
        grid-template-columns: 1fr;
    }

    .contact-card {
        grid-template-columns: 1fr;
    }

    .hero-right {
        grid-template-columns: 1fr;
    }
}

/* Social icon sizing — makes all glyphs the same visual size */
.socials .icon {
    --icon-size: 22px;
    /* matches LinkedIn glyph scale */
    width: 40px;
    height: 40px;
    border-radius: 10px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    line-height: 0;
}

.socials .icon svg {
    width: var(--icon-size);
    height: var(--icon-size);
}

/* Optional: slightly smaller on narrow screens */
@media (max-width: 480px) {
    .socials .icon {
        --icon-size: 20px;
        width: 38px;
        height: 38px;
    }
}

/* Disable selection everywhere */
html,
body,
* {
    -webkit-user-select: none;
    /* Safari */
    -ms-user-select: none;
    /* old IE/Edge */
    user-select: none;
    /* modern browsers */
    -webkit-touch-callout: none;
    /* iOS long-press menu */
}

/* Allow selection where it’s needed (forms, editable areas, code blocks, etc.) */
input,
textarea,
[contenteditable="true"],
.selectable {
    -webkit-user-select: text;
    -ms-user-select: text;
    user-select: text;
}

/* Optional: make images harder to drag */
img,
svg {
    -webkit-user-drag: none;
    user-drag: none;
}
