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

:root {
    --ink: #0b1b24;
    --ocean: #0e5669;
    --teal: #14a4a6;
    --sun: #f4b942;
    --clay: #f26b4f;
    --mist: #f4f1ea;
    --card: #ffffff;
    --muted: #5c6a72;
    --shadow: 0 18px 50px rgba(11, 27, 36, 0.12);
}

body {
    font-family: "Space Grotesk", "Segoe UI", sans-serif;
    line-height: 1.6;
    color: var(--ink);
    background: linear-gradient(135deg, #fef5e7 0%, #edf7f5 40%, #f8f0ea 100%);
    min-height: 100vh;
}

body::before,
body::after {
    content: "";
    position: fixed;
    width: 380px;
    height: 380px;
    border-radius: 50%;
    filter: blur(0);
    z-index: -1;
    opacity: 0.25;
}

body::before {
    top: -120px;
    right: -120px;
    background: radial-gradient(circle at center, var(--teal), transparent 70%);
}

body::after {
    bottom: -140px;
    left: -120px;
    background: radial-gradient(circle at center, var(--sun), transparent 70%);
}

.container {
    max-width: 1120px;
    margin: 0 auto;
    padding: 0 24px;
}

h1, h2, h3, h4 {
    font-family: "Fraunces", "Georgia", serif;
    letter-spacing: -0.02em;
}

h2 {
    font-size: 2.4rem;
    margin-bottom: 1.5rem;
}

p {
    color: var(--muted);
}

section {
    padding: 4.5rem 0;
}

/* Navbar */
.navbar {
    position: sticky;
    top: 0;
    z-index: 100;
    backdrop-filter: blur(16px);
    background: rgba(255, 255, 255, 0.72);
    border-bottom: 1px solid rgba(11, 27, 36, 0.08);
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 24px;
}

.logo {
    font-weight: 700;
    font-size: 1.3rem;
    color: var(--ink);
}

.nav-links {
    display: flex;
    flex-wrap: wrap;
    list-style: none;
    gap: 1.2rem;
}

.nav-links a {
    color: var(--ink);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.95rem;
    padding-bottom: 0.25rem;
    border-bottom: 2px solid transparent;
    transition: border-color 0.3s ease, color 0.3s ease;
}

.nav-links a:hover {
    color: var(--ocean);
    border-color: var(--sun);
}

/* Hero */
.hero {
    padding: 6rem 0 5rem;
}

.hero-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 2.5rem;
    align-items: center;
}

.eyebrow {
    text-transform: uppercase;
    letter-spacing: 0.3em;
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--ocean);
    margin-bottom: 1rem;
}

.hero h1 {
    font-size: 3.8rem;
    color: var(--ink);
    margin-bottom: 1rem;
}

.subtitle {
    font-size: 1.25rem;
    color: var(--muted);
    margin-bottom: 1.5rem;
}

.hero-links {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem 1rem;
    margin-bottom: 1.2rem;
}

.hero-links a {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--ocean);
    text-decoration: none;
    padding-bottom: 0.15rem;
    border-bottom: 2px solid rgba(14, 86, 105, 0.2);
}

.hero-links a:hover {
    border-bottom-color: var(--sun);
}

.hero-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem 1.5rem;
    font-size: 0.95rem;
    color: var(--ink);
    margin-bottom: 2rem;
}

.hero-actions {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.hero-visual {
    display: flex;
    justify-content: center;
    align-items: center;
}

.hero-visual img {
    width: min(360px, 80vw);
    border-radius: 28px;
    box-shadow: var(--shadow);
    border: 6px solid rgba(255, 255, 255, 0.8);
    object-fit: cover;
}

.hero-panel {
    background: var(--card);
    padding: 2.5rem;
    border-radius: 24px;
    box-shadow: var(--shadow);
    border: 1px solid rgba(11, 27, 36, 0.08);
    animation: floatIn 0.8s ease forwards;
    margin-top: 2.5rem;
}

.hero-panel h2 {
    font-size: 1.6rem;
    margin-bottom: 1rem;
}

.summary-text {
    color: var(--muted);
    font-size: 1.05rem;
}

.hero-panel ul {
    list-style: none;
    display: grid;
    gap: 1rem;
    color: var(--muted);
}

.hero-panel li {
    padding-left: 1.2rem;
    position: relative;
}

.hero-panel li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0.45rem;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--clay);
}

/* Skills */
.skills-intro {
    margin-bottom: 1.5rem;
}

.domain-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
}

.domain-card {
    background: var(--card);
    border-radius: 20px;
    padding: 2rem;
    border: 1px solid rgba(11, 27, 36, 0.1);
    box-shadow: 0 12px 24px rgba(14, 86, 105, 0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.domain-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 24px 40px rgba(14, 86, 105, 0.14);
}

.domain-card h3 {
    margin-bottom: 0.6rem;
    min-height: 2.6rem;
    line-height: 1.2;
}

.domain-card p {
    min-height: 3.2rem;
    line-height: 1.5;
}

.skill-chip-list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
    margin-top: 1.2rem;
}

.skill-chip {
    display: inline-flex;
    align-items: center;
    border-radius: 999px;
    padding: 0.35rem 0.8rem;
    border: 1px solid rgba(14, 86, 105, 0.18);
    background: rgba(20, 164, 166, 0.12);
    color: var(--ink);
    font-size: 0.8rem;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.skill-chip:hover {
    transform: translateY(-1px);
    box-shadow: 0 8px 14px rgba(14, 86, 105, 0.18);
}

.skill-chip.active {
    background: var(--sun);
    border-color: rgba(244, 185, 66, 0.6);
    color: #2b1a00;
}

/* Evidence Modal */
.evidence-modal {
    position: fixed;
    inset: 0;
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 200;
}

.evidence-modal.active {
    display: flex;
}

.evidence-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(7, 19, 26, 0.72);
}

.evidence-dialog {
    position: relative;
    z-index: 1;
    background: var(--card);
    border-radius: 28px;
    padding: 2.5rem;
    width: min(720px, 90vw);
    max-height: 80vh;
    overflow-y: auto;
    box-shadow: var(--shadow);
}

.evidence-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    flex-wrap: wrap;
}

.evidence-label {
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    font-size: 0.7rem;
    color: var(--ocean);
}

.evidence-close {
    border: none;
    background: rgba(11, 27, 36, 0.08);
    color: var(--ink);
    border-radius: 999px;
    padding: 0.4rem 1rem;
    font-weight: 600;
    cursor: pointer;
}

.evidence-list {
    display: grid;
    gap: 1rem;
    margin-top: 1.5rem;
}

.evidence-card {
    background: #ffffff;
    border-radius: 18px;
    border: 1px solid rgba(11, 27, 36, 0.08);
    padding: 1.25rem 1.5rem;
    box-shadow: 0 10px 24px rgba(11, 27, 36, 0.08);
}

.evidence-meta {
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--muted);
    margin-bottom: 0.6rem;
}

.evidence-time {
    margin-top: 0.6rem;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.16em;
    color: rgba(92, 106, 114, 0.8);
}

.evidence-empty {
    margin-top: 1rem;
    color: var(--muted);
    display: none;
}

.evidence-empty.visible {
    display: block;
}

.no-scroll {
    overflow: hidden;
}

.domain-card ul {
    list-style: none;
    display: grid;
    gap: 0.75rem;
    color: var(--muted);
}

/* Skills */
.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 1.5rem;
}

.skills-card {
    background: var(--card);
    padding: 2rem;
    border-radius: 18px;
    border: 1px solid rgba(11, 27, 36, 0.08);
}

.skills-card h3 {
    color: var(--ocean);
    margin-bottom: 0.8rem;
}

.skills-card ul {
    list-style: none;
    display: grid;
    gap: 0.6rem;
    color: var(--muted);
}

/* Experience */
.timeline {
    display: grid;
    gap: 2rem;
}

.timeline-item {
    background: var(--card);
    padding: 2rem;
    border-radius: 20px;
    border-left: 4px solid var(--teal);
    box-shadow: 0 12px 30px rgba(11, 27, 36, 0.08);
}

.timeline-header {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    flex-wrap: wrap;
    margin-bottom: 1rem;
}

.timeline h4 {
    margin-top: 1rem;
    margin-bottom: 0.75rem;
    font-size: 1.1rem;
}

.timeline ul {
    list-style: none;
    display: grid;
    gap: 0.6rem;
    color: var(--muted);
}

.timeline li {
    position: relative;
    padding-left: 1.1rem;
}

.timeline li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0.5rem;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--sun);
}

/* Projects */
.project-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 1.5rem;
}

.project-card {
    background: var(--card);
    padding: 2rem;
    border-radius: 20px;
    border: 1px solid rgba(11, 27, 36, 0.08);
    box-shadow: 0 12px 30px rgba(11, 27, 36, 0.06);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.project-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 24px 40px rgba(11, 27, 36, 0.12);
}

.project-card p {
    margin: 1rem 0 1.2rem;
}

.project-link {
    display: inline-flex;
    margin-top: 1rem;
    padding: 0.45rem 1.1rem;
    border-radius: 999px;
    border: 1px solid rgba(11, 27, 36, 0.18);
    color: var(--ink);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.85rem;
}

.project-link:hover {
    border-color: var(--sun);
    color: var(--ocean);
}

/* Recommendations */
.recommendations .container {
    --rec-media-height: auto;
}

.recommendation-shell {
    position: relative;
}

.recommendation-controls {
    position: absolute;
    left: 0;
    right: 0;
    top: 0;
    bottom: 0;
    pointer-events: none;
}

.recommendation-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    border: 1px solid rgba(11, 27, 36, 0.12);
    background: rgba(255, 255, 255, 0.78);
    color: var(--ink);
    border-radius: 50%;
    width: 48px;
    height: 48px;
    font-weight: 600;
    font-size: 1.2rem;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    z-index: 2;
    pointer-events: auto;
    box-shadow: 0 12px 24px rgba(11, 27, 36, 0.12);
    backdrop-filter: blur(6px);
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.recommendation-btn:hover {
    border-color: var(--sun);
    color: var(--ocean);
    box-shadow: 0 16px 30px rgba(11, 27, 36, 0.16);
}

.recommendation-btn.prev {
    left: 0;
    transform: translate(-10%, -50%);
}

.recommendation-btn.next {
    right: 0;
    transform: translate(10%, -50%);
}

.recommendation-grid {
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: 100%;
    gap: 0;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    border-radius: 24px;
    scrollbar-width: none;
    position: relative;
    min-height: 60vh;
}

.recommendation-grid::-webkit-scrollbar {
    display: none;
}

.recommendation-card {
    scroll-snap-align: start;
    border-radius: 0;
    border: none;
    box-shadow: none;
    overflow: hidden;
    background: transparent;
    display: flex;
    align-items: center;
    justify-content: center;
}

.recommendation-media {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    width: 100%;
    height: 100%;
}

.recommendation-card.flash {
    animation: flashGlow 0.6s ease;
}

.recommendation-card img {
    width: auto;
    display: block;
    height: auto;
    object-fit: contain;
    border-radius: 18px;
    max-width: 100%;
}

.recommendation-card figcaption {
    display: none;
}

@keyframes flashGlow {
    0% {
        opacity: 0.7;
        box-shadow: 0 0 0 rgba(244, 185, 66, 0.0);
    }
    60% {
        opacity: 1;
        box-shadow: 0 0 24px rgba(244, 185, 66, 0.35);
    }
    100% {
        opacity: 1;
        box-shadow: 0 18px 40px rgba(11, 27, 36, 0.12);
    }
}

.footer a {
    color: #ffffff;
    text-decoration: underline;
}

.tag {
    display: inline-flex;
    align-items: center;
    padding: 0.25rem 0.7rem;
    margin-right: 0.4rem;
    border-radius: 999px;
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--ink);
    background: rgba(244, 185, 66, 0.2);
}

/* Education */
.education-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
}

.education-card {
    background: var(--card);
    padding: 2rem;
    border-radius: 18px;
    border: 1px solid rgba(11, 27, 36, 0.08);
    box-shadow: 0 12px 24px rgba(14, 86, 105, 0.06);
}

.education-card span {
    color: var(--muted);
    font-size: 0.95rem;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.75rem 1.8rem;
    background: var(--clay);
    color: #ffffff;
    text-decoration: none;
    border-radius: 999px;
    font-weight: 600;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    box-shadow: 0 12px 20px rgba(242, 107, 79, 0.25);
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 18px 24px rgba(242, 107, 79, 0.35);
}

.btn.ghost {
    background: transparent;
    color: var(--ink);
    border: 2px solid rgba(11, 27, 36, 0.3);
    box-shadow: none;
}

/* Footer */
.footer {
    background: #07131a;
    color: #ffffff;
    text-align: center;
    padding: 2rem 0 2.5rem;
}

@keyframes floatIn {
    from {
        opacity: 0;
        transform: translateY(12px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

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

    .navbar .container {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.8rem;
    }
}

@media (max-width: 600px) {
    h2 {
        font-size: 2rem;
    }

    .hero h1 {
        font-size: 2.8rem;
    }

    .summary .container {
        padding: 2.2rem;
    }

    .contact-links {
        justify-content: flex-start;
    }

    section {
        padding: 2.6rem 0;
    }

    .hero {
        padding: 4rem 0 3rem;
    }
}
