@import url('https://fonts.googleapis.com/css2?family=Fraunces:wght@400;600;700&family=Space+Grotesk:wght@400;500;600&display=swap');

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --bg-base: #f5f5f5;
    --bg-alt: #ebebeb;
    --bg-elev: rgba(255, 255, 255, 0.7);
    --ink: #111111;
    --ink-muted: #4b4b4b;
    --accent: #9aa0a6;
    --accent-strong: #2b2b2b;
    --line: rgba(0, 0, 0, 0.08);
    --shadow-soft: 0 12px 40px rgba(0, 0, 0, 0.08);
    --shadow-tight: 0 6px 18px rgba(0, 0, 0, 0.08);
    --bg-light: var(--bg-alt);
    --text-light: var(--ink-muted);
    --primary-color: var(--ink);
    --primary-dark: var(--accent-strong);
    --secondary-color: #ffffff;
    --white: #ffffff;
    --shadow: var(--shadow-tight);
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Space Grotesk', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: var(--ink);
    background: radial-gradient(circle at 20% 20%, #ffffff 0%, var(--bg-base) 45%, var(--bg-alt) 100%);
    min-height: 100vh;
    position: relative;
    overflow-x: hidden;
}

body::before,
body::after {
    content: "";
    position: fixed;
    width: 520px;
    height: 520px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.7), rgba(255, 255, 255, 0));
    filter: blur(6px);
    z-index: -1;
    animation: floatSlow 18s ease-in-out infinite;
}

body::before {
    top: -120px;
    right: -140px;
}

body::after {
    bottom: -160px;
    left: -120px;
    animation-delay: 2s;
}

/* Navigation */
nav {
    background: var(--bg-elev);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--line);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
}

nav .container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 1rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

nav .logo {
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--ink);
}

nav ul {
    list-style: none;
    display: flex;
    gap: 2rem;
}

nav a {
    text-decoration: none;
    color: var(--ink-muted);
    transition: color 0.3s;
}

nav a:hover {
    color: var(--ink);
}

/* Hero Section */
.hero {
    background: radial-gradient(circle at top left, rgba(255, 255, 255, 0.9), rgba(245, 245, 245, 0.6)),
        linear-gradient(135deg, rgba(255, 255, 255, 0.3), rgba(235, 235, 235, 0.9));
    color: var(--ink);
    padding: 120px 2rem 80px;
    text-align: center;
    margin-top: 60px;
}

.hero-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
}

.hero-photo {
    width: 180px;
    height: 180px;
    border-radius: 50%;
    border: 4px solid rgba(17, 17, 17, 0.08);
    object-fit: cover;
    box-shadow: var(--shadow-soft);
}

.hero-photo-placeholder {
    width: 180px;
    height: 180px;
    border-radius: 50%;
    background: linear-gradient(135deg, #ffffff, var(--bg-alt));
    border: 4px solid rgba(17, 17, 17, 0.08);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 4rem;
    color: var(--ink);
    box-shadow: var(--shadow-soft);
}

.hero h1 {
    font-family: 'Fraunces', 'Times New Roman', serif;
    font-size: 3rem;
    margin-bottom: 0.5rem;
    animation: fadeInUp 1s;
}

.hero .tagline {
    font-size: 1.3rem;
    margin-bottom: 2rem;
    color: var(--ink-muted);
    animation: fadeInUp 1s 0.2s backwards;
}

.hero .cta-button {
    display: inline-block;
    padding: 12px 30px;
    background: var(--ink);
    color: #ffffff;
    text-decoration: none;
    border-radius: 25px;
    font-weight: bold;
    transition: transform 0.3s, box-shadow 0.3s;
    animation: fadeInUp 1s 0.4s backwards;
}

.hero .cta-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

/* Section Styles */
section {
    padding: 80px 2rem;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
}

h2 {
    font-family: 'Fraunces', 'Times New Roman', serif;
    font-size: 2.6rem;
    margin-bottom: 3rem;
    text-align: center;
    color: var(--ink);
}

/* About Section */
#about {
    background: transparent;
}

.about-content {
    display: flex;
    gap: 3rem;
    align-items: center;
    flex-wrap: wrap;
}

.about-image {
    flex: 1;
    min-width: 250px;
    display: flex;
    justify-content: flex-start;
}

.profile-placeholder {
    width: 250px;
    height: 250px;
    background: linear-gradient(135deg, #ffffff, var(--bg-alt));
    border-radius: 50%;
    margin: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--ink);
    font-size: 5rem;
    font-weight: bold;
    box-shadow: var(--shadow-soft);
}

.profile-image {
    width: 250px;
    height: 250px;
    border-radius: 50%;
    object-fit: cover;
    margin: 0;
    box-shadow: var(--shadow-soft);
    border: 4px solid rgba(17, 17, 17, 0.08);
}

.about-text {
    flex: 2;
    min-width: 300px;
}

.about-text p {
    font-size: 1.1rem;
    color: var(--ink-muted);
    margin-bottom: 1rem;
}

/* Skills Section */
.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.skill-card {
    background: var(--bg-elev);
    padding: 2rem;
    border-radius: 16px;
    box-shadow: var(--shadow-tight);
    border: 1px solid var(--line);
    backdrop-filter: blur(10px);
    transition: transform 0.3s;
    text-align: center;
}

.skill-card:hover {
    transform: translateY(-5px);
}

.skill-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.skill-logo {
    width: 48px;
    height: 48px;
    margin-bottom: 0.75rem;
}

.skill-card h3 {
    color: var(--ink);
    margin-bottom: 1rem;
}

/* Projects Section */
#projects {
    background: transparent;
}

.projects-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    list-style: none;
    padding: 0;
    margin: 0 auto;
    max-width: 900px;
}

.project-card {
    background: var(--bg-elev);
    border-radius: 18px;
    overflow: hidden;
    box-shadow: var(--shadow-tight);
    border: 1px solid var(--line);
    backdrop-filter: blur(10px);
    transition: transform 0.3s;
    width: 100%;
    display: flex;
    flex-direction: row;
}

.project-card.is-clickable {
    cursor: pointer;
}

.project-card:focus-visible {
    outline: 2px solid var(--ink);
    outline-offset: 4px;
}

.project-card-link {
    text-decoration: none;
    color: inherit;
    display: block;
}

.project-card-link:focus-visible {
    outline: 2px solid var(--ink);
    outline-offset: 4px;
    border-radius: 18px;
}

.project-card:hover {
    transform: translateY(-5px);
}

.project-image {
    width: 260px;
    min-width: 260px;
    min-height: 180px;
    background: linear-gradient(135deg, #ffffff, var(--bg-alt));
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--ink);
    font-size: 3rem;
}

.project-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.project-content {
    padding: 1.5rem;
}

.project-tags {
    margin-top: 1rem;
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.project-links {
    margin-top: 0.75rem;
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.project-link {
    color: var(--primary-color);
    font-weight: 600;
    text-decoration: none;
}

.easter-egg {
    position: fixed;
    top: -80px;
    width: 64px;
    height: 80px;
    border-radius: 50% 50% 45% 45%;
    background-color: #f2f2f2;
    background-size: cover;
    background-repeat: no-repeat;
    box-shadow: var(--shadow-tight);
    pointer-events: none;
    z-index: 2000;
    animation: eggFall 4s linear forwards;
}

.project-card h3 {
    color: var(--ink);
    margin-bottom: 0.5rem;
}

.project-card p {
    color: var(--ink-muted);
    margin-bottom: 1rem;
}

/* Experience Section */
.experience-grid {
    display: grid;
    gap: 2rem;
}

.experience-card {
    background: var(--bg-elev);
    border-radius: 18px;
    padding: 2rem;
    box-shadow: var(--shadow-tight);
    border: 1px solid var(--line);
    backdrop-filter: blur(10px);
}

.experience-header {
    display: flex;
    justify-content: space-between;
    gap: 1.5rem;
    flex-wrap: wrap;
    align-items: baseline;
    margin-bottom: 1rem;
}

.experience-card h3 {
    font-size: 1.25rem;
    margin-bottom: 0.25rem;
}

.experience-org {
    color: var(--ink-muted);
    font-size: 0.95rem;
}

.experience-dates {
    color: var(--ink-muted);
    font-size: 0.95rem;
    white-space: nowrap;
}

.experience-summary {
    color: var(--ink-muted);
    margin-bottom: 1rem;
}

.experience-skills {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.tag {
    background: var(--bg-alt);
    padding: 0.25rem 0.75rem;
    border-radius: 999px;
    font-size: 0.85rem;
    color: var(--ink-muted);
}

/* Contact Section */
.contact-content {
    max-width: 600px;
    margin: 0 auto;
    text-align: center;
}

.contact-links {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin-top: 2rem;
    flex-wrap: wrap;
}

.contact-link {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-decoration: none;
    color: var(--ink);
    padding: 1.5rem;
    background: var(--bg-elev);
    border-radius: 16px;
    box-shadow: var(--shadow-tight);
    border: 1px solid var(--line);
    backdrop-filter: blur(10px);
    transition: all 0.3s;
    min-width: 150px;
}

.contact-link:hover {
    transform: translateY(-5px);
    color: var(--ink);
}

.contact-icon {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
}

/* Footer */
footer {
    background: rgba(17, 17, 17, 0.9);
    color: #ffffff;
    text-align: center;
    padding: 2rem;
}

.btn {
    display: inline-block;
    padding: 12px 30px;
    background: var(--ink);
    color: #ffffff;
    text-decoration: none;
    border-radius: 25px;
    font-weight: 600;
    transition: transform 0.3s, box-shadow 0.3s;
}

.btn:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-tight);
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes floatSlow {
    0%, 100% {
        transform: translate3d(0, 0, 0);
    }
    50% {
        transform: translate3d(12px, -18px, 0);
    }
}

@keyframes eggFall {
    0% {
        transform: translateY(0) rotate(0deg);
        opacity: 0.9;
    }
    100% {
        transform: translateY(110vh) rotate(24deg);
        opacity: 0.6;
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    nav ul {
        gap: 1rem;
    }

    .hero h1 {
        font-size: 2.3rem;
    }

    .hero .tagline {
        font-size: 1rem;
    }

    h2 {
        font-size: 2.1rem;
    }

    .about-content {
        flex-direction: column;
        text-align: center;
    }

    .about-image {
        justify-content: center;
    }

    .profile-placeholder,
    .profile-image {
        margin: 0 auto;
    }

    .experience-header {
        flex-direction: column;
        align-items: flex-start;
    }

    .contact-links {
        flex-direction: column;
        align-items: center;
    }

    .project-card {
        flex-direction: column;
    }

    .project-image {
        width: 100%;
        min-width: unset;
        height: 180px;
    }
}
