@import url('https://fonts.googleapis.com/css2?family=Montserrat:ital,wght@0,100..900;1,100..900&display=swap');

* {
    padding: 0;
    margin: 0;
    text-align: center;
    cursor: default;
    scroll-behavior: smooth;
}

*::selection{
    background-color: #B17457;
    color: black;
}

body {
    background-color: #faf7f0;
}

button {
    cursor: pointer;
}

a,
i {
    text-decoration: none;
    cursor: pointer;
}

nav {
    width: 100%;
    padding: 20px 0;
    background-color: #faf7f0;
}

#name {
    font-family: "Montserrat", sans-serif;
    font-weight: 500;
    font-size: 2.5rem;
    color: #b17457;
    text-decoration: underline 3px;
    text-underline-offset: 10px;
}

nav ul {
    list-style-type: none;
    width: 80vw;
    margin: 15px auto 0;
    display: flex;
    font-weight: 600;
    flex-direction: row;
    justify-content: space-around;
}

nav ul li a {
    font-size: 1.2rem;
    color: #b17457;
    display: inline-block;
    position: relative;
}

nav ul li a:after {
    background: none repeat scroll 0 0 transparent;
    bottom: 0;
    content: "";
    display: block;
    height: 2px;
    left: 50%;
    position: absolute;
    background: #b17457;
    transition: width 0.3s ease 0s, left 0.3s ease 0s;
    width: 0;
}

nav ul li a:hover:after {
    width: 100%;
    left: 0;
}

#pc-mode {
    display: inline-flex;
}

#mobile-mode {
    display: none;
}

#mobile-mode i {
    color: #b17457;
    font-size: 1.5em;
    margin-left: 80%;
}

#mobile-mode ul {
    background-color: #faf7f0;
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding: 4px 0 0px 0;
    width: 100%;
    z-index: 3;
}

.hero-section {
    padding: 75px 10px;
    background-color: #d8d2c2;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
}

.hero-img .img {
    height: 300px;
    width: 300px;
    border-radius: 50%;
    object-fit: cover;
    background-image: url(/Photos/omeePhoto.jpg);
    background-position: center;
    background-size: cover;
    border: 4px solid #b17457;
}

#quotes {
    color: #494747;
    line-height: 1.5;
}

.hero-bio {
    line-height: 2.5;
}


.hero-bio h2 {
    font-size: 1.8rem;
}

.hero-bio h3 {
    font-size: 1.5rem;
}

.hero-bio p {
    font-size: 1rem;
    color: #494747;
}

.about-me {
    padding: 50px 15px;
    background-color: #b17457;
    color: white;
}

.about-me p {
    margin: 15px 10px;
    font-size: 1rem;
    color: #faf7f0;
    line-height: 1.7;
}

.about-me h2 {
    margin: 20px 0 10px 0;
    font-size: 1.5rem;
    color: #faf7f0;
}

.skills ul {
    width: 77vw;
    margin: auto;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px 50px;
}

.skills ul li {
    list-style-type: none;
    border: 1.5px solid;
    padding: 7px 20px;
    border-radius: 25px;
    background-color: #d8d2c2;
    cursor: pointer;
    color: #494747;
}

#Digital-skills {
    margin: 50px 0 20px 0;
}

.myProjects {
    padding: 50px 0 18px 0;
    text-align: center;
    background-color: #faf7f0;
}

.myProjects h1 {
    margin-bottom: 50px;
    color: #b17457;
    font-size: 2rem;
}

.project-cart {
    border: 2px solid #b17457;
    width: fit-content;
    padding: 1px 10px 30px 10px;
    border-radius: 20px;
    text-align: center;
    width: 290px;
    transition: all 0.3s;
    background-color: #ffffff;
}

.project-carts-group img {
    max-height: 150px;
    margin: 25px 0 10px 0;
}

.project-carts-group {
    padding: 20px 0;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 30px;
}


.project-cart:hover {
    transform: translateY(-10px);
}

.project-bio p {
    height: 149px;
    margin: 10px;
    line-height: 1.5;
    overflow: hidden;
}

.project-bio button {
    background-color: #b17457;
    color: #faf7f0;
    padding: 10px 0;
    width: 90%;
    outline: none;
    border: 1px solid #494747;
    border-radius: 5px;
    transition: all 0.3s;
}

.project-bio button:hover {
    transform: translateY(-6px);
    box-shadow: 0px 8px 12px -3px black;
}

.contact {
    text-align: center;
    line-height: 1.7;
    font-size: 1rem;
    background-color: #d8d2c2;
    color: #494747;
    padding: 10px;
}

#contactForm {
    display: flex;
    flex-direction: column;
    gap: 15px;
    width: 90%;
    max-width: 500px;
    margin: 50px auto;
    padding: 25px;
    border: 2px solid #b17457;
    background-color: #faf7f0;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    font-family: 'Montserrat', sans-serif;
}

#contactForm input[type="text"],
#contactForm input[type="email"],
#contactForm input[type="tel"],
#contactForm textarea {
    width: 90%;
    margin: auto;
    padding: 12px;
    border: 1px solid #d8d2c2;
    border-radius: 4px;
    background-color: #ffffff;
    color: #494747;
    resize: vertical;
    font-size: 1rem;
    font-family: inherit;
}

#contactForm input::placeholder,
#contactForm textarea::placeholder {
    color: #a0a4a8;
}

#contactForm button[type="submit"] {
    padding: 12px;
    border: none;
    border-radius: 4px;
    background-color: #b17457;
    color: #faf7f0;
    font-weight: bold;
    font-size: 1rem;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

#contactForm button[type="submit"]:hover {
    background-color: #a56b4b;
}

.social-icons * {
    margin: 10px 7px;
    color: #b17457;
    font-size: 1.5rem;
    transition: transform .3s;
}

.social-icons i:hover {
    transform: scale(1.2);
}

footer {
    padding: 25px 0;
    background-color: #b17457;
    color: #faf7f0;
}

@media screen and (max-width: 768px) {
    #contactForm {
        padding: 35px 15px;
    }

    #contactForm input[type="text"],
    #contactForm input[type="email"],
    #contactForm input[type="tel"],
    #contactForm textarea {
        font-size: 0.95rem;
    }

    #contactForm button[type="submit"] {
        font-size: 0.95rem;
    }
}

@media screen and (max-width: 525px) {
    nav ul {
        width: 90vw;
    }

    #pc-mode {
        display: none;
    }

    #mobile-mode {
        display: block;
    }

    #cross,
    #mobile-mode ul {
        display: none;
    }

    .hero-bio p {
        font-size: 0.9rem;
    }

    .about-me h2 {
        font-size: 1.4rem;
    }

    .myProjects h1 {
        font-size: 1.8rem;
    }

    .project-bio button {
        font-size: 0.9rem;
    }

    #contactForm {
        padding: 45px 15px;
    }

    #contactForm input[type="text"],
    #contactForm input[type="email"],
    #contactForm input[type="tel"],
    #contactForm textarea {
        font-size: 0.9rem;
    }

    #contactForm button[type="submit"] {
        font-size: 0.9rem;
    }

    footer {
        padding-left: 10px;
        padding-right: 10px;
        line-height: 1.5;
    }
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}


#BlackBackground {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 1000%;
    background-color: rgba(0, 0, 0, 0.73);
    z-index: 55;
}

.popup-container {
    display: none;
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 80%;
    max-width: 400px;
    padding: 20px;
    background-color: #faf7f0;
    border: 3px solid #b17457;
    box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.2);
    z-index: 555;
    border-radius: 10px;
    text-align: center;
}

.popup-container h2 {
    color: #b17457;
    margin: 0 0 10px;
    font-weight: bold;
}

.popup-container p {
    color: #494747;
    line-height: 1.7;
    margin: 10px;
}

.popup-container button {
    background-color: #b17457;
    color: #faf7f0;
    padding: 10px 20px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    margin-top: 15px;
    font-weight: bold;
}

.popup-container button:hover {
    background-color: #a56b4b;
    cursor: pointer;
}