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

body {
    height: 100vh;
    font-family: "Quattrocento", serif;
    background-color: #EFEFEE;
    color: #303030;
}

h1, h2, h3 {
    font-family: "Oswald", sans-serif;
    color: #303030;
}

a {
    color: #303030;
    text-decoration: none;
}

a:hover {
    cursor: pointer;
    color: #007bff;
}

nav {
    height: 80px;
    width: 100%;
    box-shadow: 0 0 20px 0 rgba(50, 50, 50, 0.2);
}

.menu {
    height: 80px;
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-inline: 4rem;
    box-shadow: 0 0 20px 0 rgba(50, 50, 50, 0.2);
}

.nav-links ul{
    list-style-type: none;
    display: flex;
    gap: 1.5rem;
    font-family: Quattrocento;
    font-weight: 400;
    font-size: 1rem;
}

.socials {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.socials a img {
    width: 24px;
    height: 24px;
    transition: transform 0.3s;
}

.socials a img:hover {
    transform: scale(1.2);
}

.logo h1 {
    font-family: Oswald;
    font-weight: 500;
    font-size: 32px;
}

#open-btn, #close-btn {
    display: none;
}

.services-section {
    padding-top: 2rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

main {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 3rem; 
    padding: 3rem;
}

.service p {
    margin-top: -1rem;
}

.service-title {
    display: flex;
    align-items: center;
}

.service-title img {
    width: 60px;
    padding-top: 1.2rem;
}

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

.profile img {
    width: 80%;
}

.description {
    display: flex;
    flex-direction: column;
    gap: 1.75rem;
}

.btn {
    width: 40%;
    padding-block: .75rem;
    border: 0;
    background-color: #303030;
    color: white;
    font-family: "Quattrocento", serif;
    font-weight: 400;
    font-size: 1.15rem;
}

.btn:hover {
    cursor: pointer;
    opacity: .75;
}

.info-section {
    display: flex;
    gap: 2rem;
}

@media (max-width: 900px) {
    .menu {
        padding-inline: 1rem;
    }

    .logo h1{
        font-size: 22px;
    }

    .socials img {
        width: 20px;
    }

    .nav-links ul, .socials {
        gap: 1rem;
    }
}

@media (max-width: 600px) {
    main {
        grid-template-columns: 1fr;
    }
    
    #open-btn {
        display: block;
    }

    #open-btn, #close-btn{
        width: 40px;
        border: none;
    }

    #open-btn img, #close-btn img {
        width: 100%;
    }

    #open-btn:hover,  #close-btn:hover{
        cursor: pointer;
        background: rgba(0, 0, 0, 0.05); /* subtle background highlight */
        transform: scale(1.1);           /* slightly grow on hover */
    }

     #open-btn:active,  #close-btn:active {
        transform: scale(0.95);          /* small press effect */
    }

    .menu {
        position: fixed;         /* overlay on top of content */
        top: 0;
        left: 0;
        width: 100%;
        height: 100vh;           /* full screen height */
        background-color: #EFEFEE;  /* menu background */
        display: none;           /* hidden by default */
        flex-direction: column;
        align-items: center;
        justify-content: center;
        z-index: 999;            /* on top of everything */
        padding: 20px;
        box-sizing: border-box;
        text-align: center;
    }

    .menu .nav-links ul {
        padding: 0;
        margin: 60px 0 30px 0;
        display: flex;
        flex-direction: column;
        gap: 1rem;
    }

    .menu .nav-links ul li {
        margin: 15px 0;
    }

    .menu .logo p {
        margin-bottom: 70px;
    }

    .menu .socials {
        display: flex;
        gap: 15px;
        justify-content: center;
    }

    /* Buttons positioning */
    #close-btn, #open-btn {
        position: absolute;
        top: 20px;
        right: 20px;
    }
}