@import url('https://fonts.googleapis.com/css2?family=Quicksand:wght@300;400;500;600;700&display=swap');

/* ─── Animations ──────────────────────────────────────────── */

.focus-in {
    -webkit-animation: focus-in 0.9s cubic-bezier(0.550, 0.085, 0.680, 0.530) both;
            animation: focus-in 0.9s cubic-bezier(0.550, 0.085, 0.680, 0.530) both;
}

@keyframes focus-in {
    0%   { filter: blur(12px); opacity: 0; }
    100% { filter: blur(0px);  opacity: 1; }
}

/* ─── Design Tokens ───────────────────────────────────────── */

:root {
    --lighttext:  #fef1fb;
    --darktext:   #373e53;
    --primary:    #4988f4;
    --secondary:  #1867be;
    --accent:     #2cdd08;
    --glass-bg:   rgba(255, 255, 255, 0.08);
    --glass-border: rgba(255, 255, 255, 0.18);
    --glass-blur: 18px;
    --radius-lg:  20px;
    --radius-md:  12px;
    --radius-sm:  8px;
    --shadow:     0 8px 32px rgba(0, 0, 0, 0.22);
}

/* ─── Reset / Base ────────────────────────────────────────── */

*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

* {
    font-family: 'Quicksand', sans-serif;
}

a {
    text-decoration: none;
    color: #fff;
}

/* ─── Background ──────────────────────────────────────────── */

body {
    color: var(--lighttext);
    background-color: #e9ff99;
    background-image:
        radial-gradient(at 9%  89%, hsla(215, 90%, 73%, 1) 0px, transparent 50%),
        radial-gradient(at 72%  6%, hsla(331, 74%, 64%, 1) 0px, transparent 50%),
        radial-gradient(at 24% 19%, hsla(14,  90%, 74%, 1) 0px, transparent 50%),
        radial-gradient(at 65%  6%, hsla(6,   79%, 76%, 1) 0px, transparent 50%),
        radial-gradient(at 20% 98%, hsla(316, 72%, 64%, 1) 0px, transparent 50%),
        radial-gradient(at 44%  9%, hsla(40,  96%, 77%, 1) 0px, transparent 50%),
        radial-gradient(at 10%  9%, hsla(76,  65%, 63%, 1) 0px, transparent 50%);
    min-height: 100vh;
    padding: 0 16px;
}

/* ─── Layout ──────────────────────────────────────────────── */

.container {
    display: flex;
    justify-content: center;
    align-items: flex-start;
    min-height: 100vh;
    padding: 8vh 0 40px;
}

.glass-container {
    width: 100%;
    max-width: 860px;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
    backdrop-filter: blur(var(--glass-blur));
    -webkit-backdrop-filter: blur(var(--glass-blur));
    padding: 36px 44px 48px;
}

/* ─── Navbar ──────────────────────────────────────────────── */

.navbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 48px;
}

.logo {
    font-size: 22px;
    font-weight: 700;
    letter-spacing: 0.05em;
    color: #fff;
    background: rgba(255, 255, 255, 0.15);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-sm);
    padding: 6px 14px;
}

ul.nav-links {
    list-style: none;
    display: flex;
    align-items: center;
    gap: 8px;
}

li.nav-link {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 6px 10px;
    border-radius: 100vh;
    transition: background 0.25s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

li.nav-link:hover {
    background: rgba(255, 255, 255, 0.15);
    transform: translateY(-2px);
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.18);
}

li.nav-link:active {
    transform: translateY(0);
}

button {
    all: unset;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* ─── Main Content ────────────────────────────────────────── */

.main {
    display: flex;
    flex-direction: column;
    gap: 40px;
}

/* ─── Profile Row ─────────────────────────────────────────── */

.profile-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 40px;
}

.profile-text {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.eyebrow {
    font-size: 14px;
    font-weight: 500;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.6);
}

.profile-text h1 {
    font-size: 44px;
    font-weight: 700;
    line-height: 1.1;
    color: #fff;
}

.subtitle {
    font-size: 16px;
    font-weight: 400;
    color: rgba(255, 255, 255, 0.75);
    line-height: 1.5;
    max-width: 340px;
}

/* ─── Profile Image ───────────────────────────────────────── */

.image-wrapper {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.profile-img {
    width: 220px;
    height: 220px;
    object-fit: cover;
    border-radius: var(--radius-lg);
    border: 2px solid var(--glass-border);
    box-shadow: var(--shadow);
}

/* ─── Divider ─────────────────────────────────────────────── */

.divider {
    height: 1px;
    background: linear-gradient(
        to right,
        transparent,
        rgba(255, 255, 255, 0.25) 30%,
        rgba(255, 255, 255, 0.25) 70%,
        transparent
    );
}

/* ─── Projects Section ────────────────────────────────────── */

.project-wrapper {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.section-title {
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.5);
}

.project-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 16px;
}

.project-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 24px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-md);
    color: #fff;
    font-weight: 600;
    font-size: 15px;
    transition: background 0.25s ease, transform 0.2s ease, box-shadow 0.2s ease;
    cursor: pointer;
}

.project-card:hover {
    background: rgba(255, 255, 255, 0.16);
    transform: translateY(-3px);
    box-shadow: 0 10px 28px rgba(0, 0, 0, 0.2);
}

.project-arrow {
    font-size: 18px;
    opacity: 0.7;
    transition: transform 0.2s ease;
}

.project-card:hover .project-arrow {
    transform: translateX(4px);
    opacity: 1;
}

.project-badge {
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.5);
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 100vh;
    padding: 3px 10px;
}

.ghost {
    cursor: default;
}

/* ─── Resume heading ─────────────────────────────────────── */

.resume-heading {
    font-size: 28px;
    font-weight: 700;
    text-align: center;
    color: #fff;
    margin-bottom: 24px;
}

/* ─── Resume / PDF page ───────────────────────────────────── */

.pdf-main {
    width: 100%;
    height: 1280px;
    border-radius: var(--radius-md);
    border: none;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.pdf-main:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25);
}

/* ─── Legacy / Shared Utilities ───────────────────────────── */

.center {
    text-align: center;
}

.img-shadow {
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
}

/* ─── Responsive ──────────────────────────────────────────── */

@media screen and (max-width: 720px) {
    .glass-container {
        padding: 28px 24px 36px;
    }

    .navbar {
        margin-bottom: 36px;
    }

    .logo {
        font-size: 18px;
    }

    .profile-row {
        flex-direction: column-reverse;
        align-items: center;
        text-align: center;
    }

    .profile-text {
        align-items: center;
    }

    .subtitle {
        max-width: 100%;
    }

    .profile-img {
        width: 160px;
        height: 160px;
    }

    .profile-text h1 {
        font-size: 32px;
    }

    .project-grid {
        grid-template-columns: 1fr;
    }
}
