/* Reset */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Base */
:root {
    --bg: #0b0d12;
    --ink: #f2f3f7;
    --muted: #9aa1b1;
    --accent-a: #7c5cff;
    --accent-b: #4da3ff;
    --line: rgba(255, 255, 255, 0.09);
}

html, body {
    margin: 0;
    height: 100%;
}

body {
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 400;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    background-color: var(--bg);
    color: var(--ink);
    line-height: 1.6;
    display: flex;
    flex-direction: column;
    overflow-x: hidden;
}

/* Animated background blobs */
.blob {
    position: fixed;
    border-radius: 50%;
    filter: blur(130px);
    opacity: 0.5;
    pointer-events: none;
    z-index: 0;
}

.blob-a {
    width: 560px;
    height: 560px;
    top: -200px;
    left: -160px;
    background: radial-gradient(circle, #2c2355 0%, rgba(44, 35, 85, 0) 70%);
    animation: drift-a 42s ease-in-out infinite alternate;
}

.blob-b {
    width: 480px;
    height: 480px;
    bottom: -180px;
    right: -140px;
    background: radial-gradient(circle, #122a4d 0%, rgba(18, 42, 77, 0) 70%);
    animation: drift-b 56s ease-in-out infinite alternate;
}

.blob-c {
    width: 380px;
    height: 380px;
    top: 45%;
    left: 55%;
    background: radial-gradient(circle, #14323a 0%, rgba(20, 50, 58, 0) 70%);
    animation: drift-c 68s ease-in-out infinite alternate;
}

@keyframes drift-a {
    from {
        transform: translate(0, 0) scale(1);
        filter: blur(130px) hue-rotate(0deg);
    }
    to {
        transform: translate(70px, 50px) scale(1.2);
        filter: blur(130px) hue-rotate(18deg);
    }
}

@keyframes drift-b {
    from {
        transform: translate(0, 0) scale(1.1);
        filter: blur(130px) hue-rotate(0deg);
    }
    to {
        transform: translate(-60px, -40px) scale(0.9);
        filter: blur(130px) hue-rotate(-20deg);
    }
}

@keyframes drift-c {
    from {
        transform: translate(0, 0) scale(0.95);
        filter: blur(130px) hue-rotate(0deg);
    }
    to {
        transform: translate(-90px, 60px) scale(1.25);
        filter: blur(130px) hue-rotate(22deg);
    }
}

/* Container */
.container {
    position: relative;
    z-index: 1;
    max-width: 760px;
    margin: 0 auto;
    padding: 3rem 2rem;
    flex: 1;
    width: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    animation: fade-up 0.8s ease both;
}

@keyframes fade-up {
    from {
        opacity: 0;
        transform: translateY(16px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Header */
header {
    text-align: center;
    margin-bottom: 2.5rem;
}

.portrait-wrap {
    width: 184px;
    height: 184px;
    margin: 0 auto 2.5rem;
    border-radius: 50%;
    padding: 4px;
    background: linear-gradient(135deg, var(--accent-a), var(--accent-b));
    box-shadow: 0 0 20px rgba(124, 92, 255, 0.175);
}

.portrait {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    display: block;
    background-color: #1a1e2a;
    background-image: url('assets/photo.png');
    background-size: cover;
    background-position: top center;
    background-repeat: no-repeat;
    border: 4px solid var(--bg);
}

h1 {
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 700;
    font-size: 2.4rem;
    line-height: 1.25;
    margin-bottom: 1rem;
    letter-spacing: -0.02em;
    text-align: center;
}

h1 .accent {
    background: linear-gradient(90deg, var(--accent-a), var(--accent-b));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
}

.position {
    font-size: 1.2rem;
    color: var(--muted);
    text-align: center;
}

/* Contact */
.contact {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 1.2rem;
    padding: 1rem 0 2.5rem;
}

.chip {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.6rem;
    font-size: 1.05rem;
    color: var(--ink);
    text-decoration: none;
    padding: 0.7rem 1.3rem;
    border-radius: 999px;
    background-color: rgba(255, 255, 255, 0.09);
    -webkit-backdrop-filter: blur(14px) saturate(160%);
    backdrop-filter: blur(14px) saturate(160%);
    box-shadow:
        inset 0 1px 1px rgba(255, 255, 255, 0.22),
        inset 0 -1px 1px rgba(255, 255, 255, 0.05),
        0 2px 8px rgba(0, 0, 0, 0.25);
    transition: box-shadow 0.2s ease, background-color 0.2s ease, background-size 0.6s ease;
}

.chip .icon {
    height: 20px;
    width: 20px;
}

.chip:hover {
    background-color: rgba(255, 255, 255, 0.14);
    box-shadow:
        inset 0 1px 1px rgba(255, 255, 255, 0.28),
        inset 0 -1px 1px rgba(255, 255, 255, 0.05),
        0 10px 30px rgba(0, 0, 0, 0.35);
}

.chip-primary {
    background: linear-gradient(135deg, var(--accent-a) 0%, var(--accent-b) 100%);
    background-size: 100% 100%;
    background-position: 0% 0%;
    font-weight: 400;
    box-shadow:
        inset 0 1px 1px rgba(255, 255, 255, 0.3),
        inset 0 -1px 1px rgba(255, 255, 255, 0.08),
        0 2px 10px rgba(124, 92, 255, 0.175);
}

.chip-primary:hover {
    background-size: 300% 300%;
    background-position: 0% 0%;
    box-shadow:
        inset 0 1px 1px rgba(255, 255, 255, 0.36),
        inset 0 -1px 1px rgba(255, 255, 255, 0.08),
        0 5px 14px rgba(124, 92, 255, 0.225);
}

/* Footer */
footer {
    position: relative;
    z-index: 1;
    text-align: center;
    padding: 0.75rem 0 1.75rem;
    color: #6b7280;
    font-size: 0.8125rem;
}

/* Responsive */
@media (max-width: 600px) {
    .container {
        padding: 2.5rem 1.25rem;
    }

    .portrait-wrap {
        width: 144px;
        height: 144px;
        margin-bottom: 2rem;
    }

    h1 {
        font-size: 1.7rem;
        margin-bottom: 0.9rem;
    }

    .position {
        font-size: 1rem;
    }

    .contact {
        flex-direction: column;
        gap: 0.8rem;
    }

    .chip {
        font-size: 0.95rem;
    }
}

@media (prefers-reduced-motion: reduce) {
    .container {
        animation: none;
    }

    .blob {
        animation: none;
        opacity: 0.3;
    }
}
