:root {
    --bg: #1a1d22;
    --fg: #e5e7eb;
    --muted: #a1a1aa;
    --card: #24272d;
    --border: #32363e;
    --link: #e5e7eb;
    --link-hover: #ffffff;
}

a {
    color: var(--link);
    text-decoration: none;
    /* smooth fade in/out */
    transition: color 0.3s ease, text-shadow 0.4s ease;
}

a:hover {
    color: #ffffff;
    text-shadow:
        /* core bright glow */
        0 0 6px rgba(147, 197, 253, 0.9),
        /* middle halo */
        0 0 12px rgba(147, 197, 253, 0.8),
        /* outer glow */
        0 0 24px rgba(147, 197, 253, 0.6),
        /* far fade */
        0 0 48px rgba(147, 197, 253, 0.4);
}

/* Pulsing animation for link hover
@keyframes link-pulse {
from {
text-shadow: 0 0 6px rgba(147, 197, 253, 0.5);
}

to {
text-shadow: 0 0 14px rgba(147, 197, 253, 0.9);
}
}
*/

* {
    box-sizing: border-box;
}

html,
body {
    min-height: 100%;
    min-height: 100dvh;
}

/* --- Base layout --- */
body {
    margin: 0;
    font: 14px/1.6 system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, sans-serif;
    color: var(--fg);
    background:
        /* top-left */
        radial-gradient(800px 600px at 0% 0%,
            rgb(35 134 159 / 20%),
            transparent 60%),
        /* top-right */
        radial-gradient(1200px 800px at 80% -10%,
            rgb(147 72 63 / 35%),
            transparent 60%),
        /* bottom-left */
        radial-gradient(1000px 600px at -10% 110%,
            rgb(79 101 74 / 50%),
            transparent 60%),
        /* bottom-left */
        radial-gradient(1000px 1300px at 120% 120%,
            rgb(132 123 154 / 50%),
            transparent 70%),
        var(--bg);
    background-attachment: fixed;
    background-size: cover;
    background-repeat: no-repeat;
}

.page {
    min-height: 100dvh;
    display: grid;
    place-items: center;
    padding: 24px;
}

.wrap {
    width: 100%;
    max-width: 720px;
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 28px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.06);
}

header {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 12px;
    margin-bottom: 24px;
}

.avatar {
    width: 56px;
    height: 56px;
    border-radius: 12px;
    border: 0px solid var(--border);
    object-fit: cover;
    object-position: center;
    background: var(--bg);
    padding: 1px;
}

h1 {
    font-size: 28px;
    line-height: 1.2;
    margin: 0;
}

.tagline {
    color: var(--muted);
    margin: 4px 0 0;
}

.grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 14px;
    margin: 20px 0 12px;
}

.card.full {
    grid-column: 1 / -1;
}

.card {
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 14px;
    background: var(--bg);
}

.card h2 {
    font-size: 16px;
    margin: 0 0 8px 0;
    letter-spacing: .2px;
}

.muted {
    color: var(--muted);
    margin: 0;
}

.links {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 14px;
    justify-content: center;
}

a.button {
    display: inline-block;
    padding: 10px 14px;
    border-radius: 10px;
    border: 1px solid var(--border);
    background: var(--bg);
    text-decoration: none;
    color: var(--link);
    font-weight: 600;
    cursor: pointer;
}

a.button:hover {
    color: var(--link-hover);
}

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

/* --- Responsive adjustments --- */
@media (max-width: 640px) {
    .grid {
        grid-template-columns: 1fr;
    }

    .links {
        flex-direction: column;
        align-items: stretch;
        gap: 12px;
    }

    a.button {
        text-align: center;
        width: 100%;
    }

}

/* --- Resume page --- */
.resume-page {
    margin: 0;
    padding: 0;
    height: 100dvh;
    background-color: #111;
}

.resume-container {
    position: relative;
    width: 100%;
    height: 100vh;
    overflow: hidden;
}

.resume-container iframe {
    width: 100%;
    height: 100%;
    border: none;
}

.resume-fallback {
    display: none;
    color: #ccc;
    text-align: center;
    font-family: system-ui, sans-serif;
    padding: 1rem;
}

@media (max-width: 768px) {
    .resume-container {
        display: none;
    }

    .resume-fallback {
        display: block;
    }
}