body {
    margin: 0;
    font-family: 'Science Gothic', sans-serif;
    background-color: #f9f9f9;
}

/* NAV */
.topnav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background-color: #333;
    padding: 10px 20px;
    width: 100%;
    box-sizing: border-box;
}

#person {
    display: flex;
    align-items: center;
    text-decoration: none;
    color: white;
}

#logo_personal {
    border: 3px solid orangered;
    border-radius: 15px;
    margin-right: 10px;
}

#title_name {
    font-size: 20px;
    color: white;
}

.nav-links {
    display: flex;
    gap: 25px;
}

.nav-links a {
    color: white;
    text-decoration: none;
    font-size: 18px;
    padding: 6px 8px;
    border-radius: 5px;
    transition: 0.2s;
}

.nav-links a:hover {
    background-color: white;
    color: black;
}

/* HAMBURGER */
.hamburger {
    display: none;
    width: 34px;
    height: 28px;
    background: none;
    border: none;
    cursor: pointer;
    position: relative;
}

.hamburger span {
    position: absolute;
    left: 0;
    width: 100%;
    height: 3px;
    background: white;
}

.hamburger span:nth-child(1) { top: 0; }
.hamburger span:nth-child(2) { top: 12px; }
.hamburger span:nth-child(3) { bottom: 0; }

/* MOBILE */
@media(max-width:700px) {
    .nav-links {
        position: absolute;
        top: 70px;
        left: 0;
        width: 100%;
        background-color: #333;
        flex-direction: column;
        text-align: center;
        display: none;
        padding: 15px 0;
    }

    .nav-links.show {
        display: flex;
    }

    .hamburger {
        display: block;
    }

    #title_name {
        display: none;
    }
}

/* ===== GRID FIX ===== */
main {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    padding: 20px;
    justify-items: center;
}

/* IMPORTANT FIX: remove section breaking layout */
main section {
    display: contents;
}

/* anchor becomes grid item */
.samples {
    display: block;
    width: 100%;
    margin: 0;
    text-decoration: none;
    color: black;
}

/* CARD */
.card {
    background-color: white;
    padding: 15px;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    transition: transform 0.2s;
    text-align: center;
    width: 100%;
    max-width: 320px;
}

.card:hover {
    transform: translateY(-5px);
}

/* IMAGE OVERLAY */
.image-container {
    position: relative;
    width: 100%;
}

.image-container img {
    width: 100%;
    border-radius: 10px;
}

.overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.75);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    opacity: 0;
    transition: 0.3s;
    border-radius: 10px;
    padding: 15px;
    box-sizing: border-box;
}

.image-container:hover .overlay {
    opacity: 1;
}

/* FOOTER */
footer {
    background-color: #333;
    color: white;
    text-align: center;
    padding: 15px;
}

#foot {
    display: flex;
    justify-content: space-around;
    flex-wrap: wrap;
}