:root {
    --bg: #05010a;
    --bg-alt: #0b0316;
    --purple: #a855ff;
    --purple-soft: #7c3aed;
    --pink: #ff2fd0;
    --text: #f9f5ff;
    --muted: #b3a6d6;
    --border: #2a103f;
    --shadow-neon: 0 0 18px rgba(255, 47, 208, 0.9);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: system-ui, -apple-system, "Segoe UI", sans-serif;
}

body {
    min-height: 100vh;
    background: radial-gradient(circle at top, #1b0734 0, #05010a 55%, #000 100%);
    color: var(--text);
    line-height: 1.6;
    overflow-x: hidden;
}

/* Animated background glow */
body::before {
    content: "";
    position: fixed;
    inset: -30%;
    background:
        radial-gradient(circle at 0% 0%, rgba(168, 85, 255, .28), transparent 55%),
        radial-gradient(circle at 100% 0%, rgba(255, 47, 208, .24), transparent 55%),
        radial-gradient(circle at 50% 100%, rgba(168, 85, 255, .2), transparent 60%);
    opacity: .9;
    z-index: -2;
    animation: bgFloat 26s infinite alternate ease-in-out;
}

@keyframes bgFloat {
    0%   { transform: translate3d(0,0,0) scale(1); }
    50%  { transform: translate3d(-2%,2%,0) scale(1.05); }
    100% { transform: translate3d(2%,-2%,0) scale(1.02); }
}

/* Layout wrapper */
.page {
    max-width: 1120px;
    margin: 0 auto;
    padding: 24px 20px 60px;
}

/* ---------- HEADER / NAV ---------- */

header {
    position: sticky;
    top: 0;
    z-index: 50;
    backdrop-filter: blur(18px);
    background: linear-gradient(to right, rgba(5, 1, 10, .96), rgba(20, 7, 35, .88));
    border-bottom: 1px solid rgba(255, 47, 208, 0.4);
    box-shadow: 0 14px 40px rgba(0, 0, 0, .75);
}

.nav-inner {
    max-width: 1120px;
    margin: 0 auto;
    padding: 10px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
}

.brand {
    display: flex;
    align-items: center;
    gap: 10px;
}

.brand img {
    height: 46px;
    width: auto;
    filter: drop-shadow(0 0 18px rgba(168, 255, 181, 0.8));
}

.brand-text {
    display: flex;
    flex-direction: column;
}

.brand-text span {
    font-size: 12px;
    letter-spacing: .16em;
    text-transform: uppercase;
    color: var(--muted);
}

.brand-text strong {
    font-size: 16px;
    color: var(--text);
}

/* nav links */
nav {
    display: flex;
    align-items: center;
    gap: 22px;
}

nav a {
    position: relative;
    text-decoration: none;
    color: var(--muted);
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: .12em;
    padding-bottom: 4px;
    transition: color .2s ease;
}

nav a::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    height: 2px;
    width: 0;
    background: linear-gradient(90deg, var(--pink), var(--purple));
    box-shadow: var(--shadow-neon);
    transition: width .25s ease-out;
}

nav a:hover {
    color: var(--text);
}

nav a:hover::after,
nav a.active::after {
    width: 100%;
}

nav a.active {
    color: #fff;
}

/* mobile nav toggle */
.nav-toggle {
    display: none;
    cursor: pointer;
    width: 28px;
    height: 20px;
    flex-direction: column;
    justify-content: space-between;
}

.nav-toggle span {
    height: 2px;
    border-radius: 999px;
    background: var(--text);
    transition: transform .2s ease, opacity .2s ease;
}

/* ---------- HERO + CONTENT ---------- */

.section {
    margin-top: 40px;
}

.section-header {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 26px;
}

.section-title {
    font-size: 24px;
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

.section-title::before {
    content: "";
    height: 18px;
    width: 4px;
    border-radius: 999px;
    background: linear-gradient(to bottom, var(--pink), var(--purple));
    box-shadow: 0 0 10px rgba(255, 47, 208, 0.9);
}

.section-subtitle {
    font-size: 14px;
    color: var(--muted);
}

/* hero */
.hero {
    display: grid;
    grid-template-columns: minmax(0, 3fr) minmax(0, 2.4fr);
    gap: 40px;
    align-items: center;
    margin-top: 32px;
}

.hero-heading {
    font-size: clamp(32px, 3.2vw, 40px);
    margin-bottom: 14px;
}

.hero-gradient {
    background: linear-gradient(120deg, var(--pink), var(--purple), #f9f5ff);
    -webkit-background-clip: text;
    color: transparent;
    text-shadow: 0 0 18px rgba(255, 47, 208, 0.6);
}

.hero-tagline {
    color: var(--muted);
    max-width: 520px;
}

.hero-actions {
    margin-top: 26px;
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
}

.hero-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 24px;
    margin-top: 30px;
    color: var(--muted);
    font-size: 13px;
}

.hero-meta span {
    position: relative;
    padding-left: 14px;
}

.hero-meta span::before {
    content: "◆";
    font-size: 9px;
    position: absolute;
    left: 0;
    top: 1px;
    color: var(--pink);
}

/* glowing info block */
.hero-panel {
    border-radius: 18px;
    padding: 18px 18px 20px;
    background: radial-gradient(circle at top left, rgba(255, 47, 208, .16), transparent 55%),
                radial-gradient(circle at bottom right, rgba(168, 85, 255, .18), transparent 60%),
                rgba(9, 3, 20, .95);
    border: 1px solid rgba(255, 255, 255, .06);
    box-shadow: 0 0 25px rgba(36, 9, 68, .9);
}

.hero-panel h2 {
    font-size: 16px;
    margin-bottom: 12px;
}

.hero-panel ul {
    list-style: none;
    font-size: 14px;
    color: var(--muted);
}

.hero-panel li + li {
    margin-top: 8px;
}

/* ---------- GRID / CARDS ---------- */

.grid {
    display: grid;
    gap: 18px;
}

.grid-2 {
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}

/* cards */
.card {
    position: relative;
    border-radius: 16px;
    padding: 18px 18px 20px;
    background: linear-gradient(135deg, rgba(15, 6, 30,.95), rgba(12, 4, 27,.98));
    border: 1px solid var(--border);
    box-shadow: 0 18px 40px rgba(0,0,0,.9);
    overflow: hidden;
}

.card::before {
    content: "";
    position: absolute;
    inset: -60%;
    background:
        radial-gradient(circle at 0 0, rgba(255, 47, 208, .20), transparent 60%),
        radial-gradient(circle at 100% 100%, rgba(168, 85, 255, .23), transparent 60%);
    opacity: 0;
    transition: opacity .35s ease-out, transform .35s ease-out;
    z-index: -1;
}

.card:hover::before {
    opacity: 1;
    transform: translate3d(0,-4%,0);
}

.card h3 {
    font-size: 17px;
    margin-bottom: 6px;
}

.card p {
    font-size: 14px;
    color: var(--muted);
}

/* achievement list, skills list */
.tag-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 10px;
}

.tag {
    font-size: 11px;
    padding: 4px 9px;
    text-transform: uppercase;
    letter-spacing: .11em;
    border-radius: 999px;
    border: 1px solid rgba(255,255,255,.16);
    color: var(--muted);
    background: radial-gradient(circle at top left, rgba(255,47,208,.22), transparent 60%);
}

/* ---------- BUTTONS ---------- */

.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, .18);
    padding: 10px 20px;
    font-size: 14px;
    cursor: pointer;
    text-decoration: none;
    transition: transform .15s ease-out, box-shadow .15s ease-out, background .2s, border-color .2s;
}

.btn-primary {
    background: radial-gradient(circle at top left, var(--pink), var(--purple));
    box-shadow: var(--shadow-neon);
    color: #05010a;
    font-weight: 600;
}

.btn-primary:hover {
    transform: translateY(-1px) scale(1.01);
    box-shadow: 0 0 26px rgba(255, 47, 208, 0.95);
}

.btn-ghost {
    color: var(--muted);
    background: rgba(12, 4, 27, .9);
}

.btn-ghost:hover {
    background: rgba(24, 10, 53, .95);
    border-color: rgba(255, 47, 208, .65);
    box-shadow: 0 0 16px rgba(168, 85, 255, .9);
}

/* ---------- CONTACT FORM ---------- */

form {
    max-width: 520px;
}

form label {
    display: block;
    font-size: 13px;
    margin-bottom: 5px;
    color: var(--muted);
}

input,
textarea {
    width: 100%;
    background: rgba(8, 2, 18, .95);
    border-radius: 10px;
    border: 1px solid var(--border);
    padding: 10px 12px;
    color: var(--text);
    font-size: 14px;
    outline: none;
    transition: border-color .2s, box-shadow .2s, background .2s;
}

input:focus,
textarea:focus {
    border-color: var(--pink);
    box-shadow: 0 0 18px rgba(255, 47, 208, .7);
    background: rgba(8, 2, 18, 1);
}

textarea {
    resize: vertical;
    min-height: 120px;
}

/* ---------- FOOTER ---------- */

footer {
    margin-top: 40px;
    font-size: 12px;
    color: var(--muted);
    text-align: center;
    opacity: .8;
}

/* ---------- SCROLL REVEAL ANIMATIONS ---------- */

.reveal {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity .6s ease-out, transform .6s ease-out;
}

.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

.reveal.delay-1 { transition-delay: .12s; }
.reveal.delay-2 { transition-delay: .22s; }
.reveal.delay-3 { transition-delay: .32s; }

/* ---------- RESPONSIVE ---------- */

@media (max-width: 768px) {
    .nav-inner {
        padding-inline: 14px;
    }

    .nav-toggle {
        display: flex;
    }

    nav {
        position: absolute;
        inset-inline: 0;
        top: 100%;
        padding: 10px 18px 16px;
        flex-direction: column;
        align-items: flex-start;
        background: linear-gradient(to bottom, rgba(5,1,10,.98), rgba(12,4,27,.98));
        border-bottom: 1px solid rgba(255,255,255,.08);
        transform-origin: top;
        transform: scaleY(0);
        opacity: 0;
        pointer-events: none;
        transition: transform .18s ease-out, opacity .18s ease-out;
    }

    nav.open {
        transform: scaleY(1);
        opacity: 1;
        pointer-events: auto;
    }

    nav a {
        padding: 6px 0;
    }

    .nav-toggle.open span:nth-child(1) {
        transform: translateY(9px) rotate(45deg);
    }
    .nav-toggle.open span:nth-child(2) {
        opacity: 0;
    }
    .nav-toggle.open span:nth-child(3) {
        transform: translateY(-9px) rotate(-45deg);
    }

    .hero {
        grid-template-columns: minmax(0, 1fr);
    }

    .page {
        padding-inline: 16px;
    }
}
