/* ================================
   RESET
   ================================ */

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


/* ================================
   BASE
   ================================ */

body {
    font-family: 'Helvetica', 'Arial', sans-serif;
    line-height: 1.6;
    color: #222;
    background-color: #fff;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

main {
    flex: 1;
    display: flex;
    flex-direction: column;
}


/* ================================
   HEADER & NAV
   ================================ */

header {
    padding: 1.5rem 2rem;
    border-bottom: 1px solid #eee;
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1600px;
    margin: 0 auto;
}

.logo {
    font-size: 1.25rem;
    font-weight: bold;
    text-decoration: none;
    color: #222;
}

nav ul {
    display: flex;
    gap: 2rem;
    list-style: none;
}

nav ul li a {
    text-decoration: none;
    color: #222;
}

nav ul li a:hover {
    color: #888;
}


/* ================================
   FOOTER
   ================================ */

footer {
    width: 100%;
    max-width: 1600px;
    margin: 0 auto;
    padding: 2rem;
    border-top: 1px solid #eee;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.socials {
    display: flex;
    gap: 1.5rem;
    list-style: none;
}

.socials a {
    text-decoration: none;
    color: #222;
}

.socials a:hover {
    color: #888;
}


/* ================================
   HOME
   ================================ */

.hero {
    flex: 1;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.hero img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-text {
    position: relative;
    z-index: 1;
    text-align: center;
    color: #fff;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.5);
}

.hero-text h1 {
    font-size: 3rem;
    margin-bottom: 0.5rem;
}

.hero-text p {
    font-size: 1.25rem;
}


/* ================================
   GALLERY
   ================================ */


.gallery-centered {
    max-width: 1600px;
    margin: 0 auto;
    padding: 2rem;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 500px), 500px));
    justify-content: center;
    gap: 1rem;
}

.gallery-intro {
    max-width: 1600px;
    margin: 0 auto;
    padding: 4rem 2rem 2rem;
    text-align: center;
}

.gallery-intro h1 {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
}

.gallery-intro p {
    color: #666;
}

.gallery {
    max-width: 1600px;
    margin: 0 auto;
    padding: 2rem;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
}

.gallery-item a {
    text-decoration: none;
    color: inherit;
    display: block;
}

.gallery-item img {
    display: block;
    width: 100%;
    height: auto;
    transition: transform 0.2s ease;
}

.gallery-item img:hover {
    transform: scale(1.02);
}

.gallery-caption {
    padding: 1rem 0;
}

.gallery-caption h2 {
    font-size: 1.25rem;
    margin-bottom: 0.25rem;
}

.gallery-caption p {
    color: #666;
    font-size: 0.9rem;
}


/* ================================
   ABOUT
   ================================ */

main.centered {
    display: flex;
    align-items: center;
    justify-content: center;
}

.about {
    max-width: 900px;
    margin: auto;
    padding: 2rem;
    display: flex;
    gap: 3rem;
    align-items: flex-start;
}

.about-portrait {
    width: 280px;
    height: 280px;
    object-fit: cover;
    flex-shrink: 0;
}

.about-text h1 {
    font-size: 2rem;
    margin-bottom: 1rem;
}

.about-text p {
    color: #444;
    margin-bottom: 1rem;
}


/* ================================
   RESUME
   ================================ */

.resume-page {
    max-width: 800px;
    margin: 4rem auto;
    padding: 0 2rem;
}

.resume-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 3rem;
}

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

.pdf-button {
    text-decoration: none;
    color: #222;
    border: 1px solid #222;
    padding: 0.5rem 1.25rem;
    font-size: 0.9rem;
}

.pdf-button:hover {
    background-color: #222;
    color: #fff;
}

.resume-pdf {
    width: 100%;
    display: block;
    border: 1px solid #eee;
    margin-bottom: 3rem;
}

.resume-section {
    margin-bottom: 2.5rem;
}

.resume-section h2 {
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: #888;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid #eee;
}

.resume-item {
    display: flex;
    gap: 2rem;
    margin-bottom: 1.25rem;
}

.resume-year {
    width: 110px;
    flex-shrink: 0;
    color: #888;
    font-size: 0.9rem;
    padding-top: 0.1rem;
}

.resume-item h3 {
    font-size: 1rem;
    margin-bottom: 0.2rem;
}

.resume-item p {
    color: #666;
    font-size: 0.9rem;
}

.resume-list {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem 1.5rem;
}

.resume-list li {
    color: #444;
    font-size: 0.95rem;
}


/* ================================
   CONTACT
   ================================ */

.contact-links {
    max-width: 600px;
    margin: 4rem auto;
    padding: 0 2rem;
    text-align: center;
}

.contact-links h1 {
    font-size: 2rem;
    margin-bottom: 0.5rem;
}

.contact-links p {
    color: #666;
    margin-bottom: 2rem;
}

.contact-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.contact-btn {
    text-decoration: none;
    color: #222;
    border: 1px solid #222;
    padding: 0.6rem 1.5rem;
    font-size: 0.95rem;
}

.contact-btn:hover {
    background-color: #222;
    color: #fff;
}


/* ================================
   RESPONSIVE
   ================================ */

@media (max-width: 900px) {
    .gallery {
        grid-template-columns: repeat(2, 1fr);
    }

    .about {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
}

@media (max-width: 600px) {
    nav {
        flex-direction: column;
        gap: 1rem;
    }

    nav ul {
        gap: 1rem;
        flex-wrap: wrap;
        justify-content: center;
    }

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

    .gallery {
        grid-template-columns: 1fr;
    }

    footer {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }
}