/*
  Resume Styles — Amareya Allen-Dabney
  Demonstrates CSS layout, typography, color, and link formatting
*/

:root {
    --ink: #e8f0ff;
    --muted: #9aafc8;
    --accent: #5eb0ff;
    --accent-dark: #00f0ff;
    --line: rgba(94, 176, 255, 0.35);
    --paper: transparent;
    --skill-bg: rgba(59, 158, 255, 0.15);
    --neon-blue: #3b9eff;
    --neon-cyan: #00f0ff;
    --neon-indigo: #6b5cff;
    --void: #050810;
}

* {
    box-sizing: border-box;
}

html {
    background-color: var(--void);
    min-height: 100%;
}

body {
    margin: 0;
    padding: 32px 16px 48px;
    color: var(--ink);
    font-family: "Source Sans 3", "Segoe UI", sans-serif;
    font-size: 16px;
    line-height: 1.55;
    background: transparent;
    min-height: 100vh;
    position: relative;
    overflow-x: hidden;
    isolation: isolate;
}

/* Neon glow orbs behind the resume */
body::before,
body::after {
    content: "";
    position: fixed;
    border-radius: 50%;
    filter: blur(80px);
    pointer-events: none;
    z-index: -1;
}

body::before {
    width: 55vw;
    height: 55vw;
    max-width: 520px;
    max-height: 520px;
    top: -10%;
    left: -5%;
    background: radial-gradient(circle, var(--neon-cyan) 0%, var(--neon-blue) 40%, transparent 70%);
    opacity: 0.55;
    animation: neon-drift-a 14s ease-in-out infinite;
}

body::after {
    width: 60vw;
    height: 60vw;
    max-width: 580px;
    max-height: 580px;
    bottom: -15%;
    right: -8%;
    background: radial-gradient(circle, var(--neon-indigo) 0%, var(--neon-blue) 45%, transparent 70%);
    opacity: 0.5;
    animation: neon-drift-b 18s ease-in-out infinite;
}

@keyframes neon-drift-a {
    0%,
    100% {
        transform: translate(0, 0) scale(1);
        opacity: 0.5;
    }
    33% {
        transform: translate(18vw, 22vh) scale(1.15);
        opacity: 0.7;
    }
    66% {
        transform: translate(8vw, 40vh) scale(0.9);
        opacity: 0.45;
    }
}

@keyframes neon-drift-b {
    0%,
    100% {
        transform: translate(0, 0) scale(1);
        opacity: 0.45;
    }
    40% {
        transform: translate(-20vw, -25vh) scale(1.2);
        opacity: 0.65;
    }
    70% {
        transform: translate(-10vw, -10vh) scale(0.95);
        opacity: 0.5;
    }
}

@media (prefers-reduced-motion: reduce) {
    body::before,
    body::after {
        animation: none;
    }
}

.page {
    max-width: 820px;
    margin: 0 auto;
    padding: 40px 48px 48px;
    background-color: transparent;
    border-radius: 4px;
    border-top: 6px solid var(--accent);
    box-shadow: none;
}

.back-link {
    margin: 0 0 28px;
    font-size: 0.9rem;
}

.back-link a {
    color: var(--accent);
    text-decoration: none;
    font-weight: 600;
}

.back-link a:hover {
    color: var(--accent-dark);
    text-decoration: underline;
    text-shadow: 0 0 10px rgba(0, 240, 255, 0.6);
}

/* Header */
.resume-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 28px;
    padding-bottom: 24px;
    margin-bottom: 28px;
    border-bottom: 2px solid var(--accent);
}

.resume-header h1 {
    margin: 0 0 6px;
    font-family: "Syne", sans-serif;
    font-size: 2.35rem;
    font-weight: 700;
    letter-spacing: -0.03em;
    line-height: 1.15;
    color: var(--ink);
    text-shadow: 0 0 24px rgba(59, 158, 255, 0.45);
}

.role {
    margin: 0;
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--accent);
}

.contact {
    text-align: right;
    color: var(--muted);
    font-size: 0.95rem;
    flex-shrink: 0;
}

.contact p {
    margin: 0 0 4px;
}

.contact a {
    color: var(--accent-dark);
    text-decoration: none;
    border-bottom: 1px solid transparent;
    transition: border-color 0.2s ease, color 0.2s ease;
}

.contact a:hover {
    color: var(--accent);
    border-bottom-color: var(--accent);
}

/* Sections */
section {
    margin: 0 0 28px;
}

section:last-child {
    margin-bottom: 0;
}

h2 {
    margin: 0 0 12px;
    padding-bottom: 6px;
    font-family: "Syne", sans-serif;
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--accent);
    border-bottom: 1px solid var(--line);
}

h3 {
    margin: 0;
    font-size: 1.1rem;
    font-weight: 700;
}

.meta {
    margin: 2px 0 8px;
    color: var(--muted);
    font-size: 0.92rem;
    font-style: italic;
}

p {
    margin: 0 0 10px;
}

/* Jobs */
.job {
    margin-bottom: 20px;
}

.job:last-child {
    margin-bottom: 0;
}

.job ul {
    margin: 6px 0 0;
    padding-left: 1.25rem;
}

.job li {
    margin: 4px 0;
}

/* Projects */
.project {
    margin-bottom: 14px;
}

.project:last-child {
    margin-bottom: 0;
}

.project strong {
    color: var(--accent-dark);
}

.project a {
    color: var(--accent);
    font-weight: 600;
    text-decoration: none;
    border-bottom: 1px solid var(--line);
}

.project a:hover {
    border-bottom-color: var(--accent);
}

/* Skills as styled tags */
.skills {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.skills li {
    margin: 0;
    padding: 6px 12px;
    background-color: var(--skill-bg);
    color: var(--accent-dark);
    font-size: 0.9rem;
    font-weight: 600;
    border-radius: 3px;
    border: 1px solid var(--line);
    box-shadow: 0 0 12px rgba(0, 240, 255, 0.12);
}

/* Responsive */
@media (max-width: 640px) {
    body {
        padding: 16px 10px 32px;
    }

    .page {
        padding: 28px 22px 36px;
    }

    .resume-header {
        flex-direction: column;
        gap: 16px;
    }

    .resume-header h1 {
        font-size: 1.85rem;
    }

    .contact {
        text-align: left;
    }
}

@media print {
    html {
        background: #fff;
    }

    body {
        background: #fff;
        padding: 0;
    }

    body::before,
    body::after {
        display: none;
    }

    .page {
        box-shadow: none;
        max-width: none;
        border-radius: 0;
    }

    .back-link {
        display: none;
    }

    a {
        color: inherit;
        text-decoration: none;
        border: none;
    }
}
