@import url('https://fonts.googleapis.com/css2?family=DM+Serif+Display&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Bodoni+Moda:ital,wght@0,400;0,700;1,400;1,700&display=swap');


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

body {
    font-family: 'Bodoni Moda', serif;
    font-size: 1rem;
    background-color: rgba(236, 236, 236, 0.5);
}

/* -------------------  NAVBAR */

header {
    width: 100%;
    /* background-color: rgba(154, 190, 249, 0.5); */
    background-color: rgba(197, 205, 200, 0.7);
    position: fixed;
    top: 0;
    /* left: 1%; */
    height: 70px;
    margin-bottom: 50px;
    display: flex;
    justify-content: center;
    align-items: center;
    /* width: 98%; */
}

.navbar {
    display: flex;
    justify-content:space-around;
    align-items: center;
    padding: 20px;
}

.navbar-left, .navbar-center, .navbar-right {
    display: flex;
    align-items: center;
}

.brand {
    font-size: 24px;
    font-weight: bold;
    text-decoration: none;
    color: #ffffff;
}

.nav-link {
    margin: 0 10px;
    text-decoration: none;
    color: #ffffff;
    font-size: 1.1rem;
    line-height: 0.87;
}

.icon {
    display: none;
    font-size: 30px;
    cursor: pointer;
}

.nav-item-selected {
    color: rgba(85, 85, 85);
}

/* @media screen and (max-width: 768px) {
    .navbar-center {
        display: none;
        width: 100%;
    }
    .navbar-right {
        display: flex;
        align-items: center;
    }
    .icon {
        display: block;
    }
    .navbar-center.responsive {
        display: flex;
        flex-direction: column;
        position: absolute;
        top: 50px;
        left: 0;
        width: 100%;
        background-color: white;
        border-top: 1px solid #ccc;
        padding-top: 10px;
    }
    .navbar-center.responsive .nav-link {
        margin: 10px 0;
    }
} */


/* -------------------  MAIN CONTAINER */

main {
    margin-top: 70px;
}

/* -------------------  HERO */

.hero {
    margin: 0 auto;
    display: flex;
    justify-content: center;
    align-items: center;
    /* width: 98%; */
    height: 80vh;
    min-height: 450px;
    /* max-height: 590px; */
    /* background-color: #fbf6fa; */
    margin-bottom: 20px;
    /* background-color: rgb(114, 178, 244); */
    background-image: url("hero.jpg");
    background-size: cover;
    background-position: center;
}

.hero-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-direction: column;
    width: 90%;
    max-width: 1200px;
    margin-top: -60px;
}

.hero-left {
    flex: 1;
}

.hero-right {
    flex: 1;
}

.hero-title {
    font-size: 10vw;
    /* color: white; */
    color: rgb(189, 157, 142);
    margin: 0;
}

.hero-title-2 {
    margin-top: -70px;
}

@media screen and (min-width: 1300px) {
    .hero-title {font-size: 8rem;}
}

.hero-description-container {
    /* max-width: 50%; */
    display: flex;
    justify-content: center;
    align-items: center;
}

.hero-description {
    width: 100%;
    font-size: 1.5rem;
    text-transform: uppercase;
    color: rgba(0, 0, 0, 0.5);
    margin-top: -20px;
}

/* -------------------  ABOUT ME */

.aboutme {
    padding-top: 20px;
    padding-bottom: 20px;
    width: 75%;
    margin: 0 auto;
    margin-bottom: 20px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.about-title {
    padding-bottom: 20px;
    font-size: 2rem;
    color: rgb(189, 157, 142)
}

.about-text {
    padding-top: 10px;
    width: 75%;
    /* text-transform: uppercase; */
    font-size: 1.1rem;
    color: rgb(91, 91, 91);
    text-align: center;
}


/* -------------------  PORTFOLIO */

.portfolio-title {
    color: rgb(189, 157, 142);
    width: 100%;
    text-align: center;
    font-size: 2rem;
    padding: 10px;
    padding-bottom: 20px;
}

.portfolio {
    width: 80%;
    max-width: 1250px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    /* grid-template-columns: repeat(auto-fit, minmax(calc(33.33% - 20px), 1fr)); */
    /* grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 1fr)); */
    gap: 20px;
}

.portfolio-item {
    text-align: center;
}

.portfolio-item img {
    width: 100%;
    height: auto;
    display: block;
    margin-bottom: 10px;
}

.portfolio-item p {
    font-size: 16px;
    color: #333;
}

/* -------------------  MODAL */

.modal {
    display: none;
    position: fixed;
    z-index: 1;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0,0,0,0.8);
}

.modal-content {
    /* margin: 15% auto; */
    margin: 50px auto;
    padding: 20px;
    width: 80%;
    /* max-width: 1000px; */
    position: relative;
    text-align: center;
}

.close-modal {
    position: absolute;
    top: 10px;
    right: 25px;
    color: white;
    font-size: 35px;
    font-weight: bold;
    cursor: pointer;
}

.carousel img {
    width: 90%;
    height: auto;
}

.prev, .next {
    cursor: pointer;
    position: absolute;
    top: 50%;
    width: auto;
    padding: 16px;
    margin-top: -22px;
    color: white;
    background-color: transparent;
    border: none;
    font-weight: bold;
    font-size: 40px;
    transition: 0.6s ease;
    user-select: none;
}

.prev {
    left: 0;
    margin-right: 30px;
}

.next {
    right: 0;
}


/* -------------------  PERSONAL PROJECTS */

.projects-carousel-container {
    position: relative;
    display: flex;
    align-items: center;
    width: 80%;
    max-width: 800px;
    overflow: hidden;
}

.projects-carousel {
    overflow: hidden;
    flex-grow: 1;
    border: 2px solid #ddd;
    background: white;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.projects-carousel-track {
    display: flex;
    transition: transform 0.5s;
    /* Eliminamos la animación automática para la navegación manual */
}

.projects-carousel-item {
    min-width: 100%;
}

.projects-carousel-item img {
    width: 100px;
    display: block;
}

.projects-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-color: rgba(255, 255, 255, 0.8);
    border: none;
    padding: 1rem;
    cursor: pointer;
    z-index: 10;
    font-size: 2rem;
}

.projects-left-arrow {
    left: 0;
}

.projects-right-arrow {
    right: 0;
}

/* -------------------  CONTACT FORM */

#contact {
    /* font-family: 'DM Serif Display', serif; */
    padding-top: 50px;
    width: 90%;
    margin: 0 auto;
}

.contact-section {
    display: flex;
    justify-content: center;
    align-items: center;
    max-width: 1000px;
    margin: 0 auto;
    padding: 20px;
    margin-top: 30px;
    border-top: 1px solid rgba(85, 85, 85, 0.5);
}

.contact-image {
    display: flex;
    flex-direction: column;
    justify-content: center;
    margin-right: 40px;
}

.social {
    display: flex;
    justify-content: center;
}

.contact-image img {
    border-radius: 50%;
    width: 200px;
    height: 200px;
    object-fit: cover;
    
}

.contact-form-container {
    padding-top: 40px;
    flex: 1;
}

.contact-form-container h2 {
    margin-bottom: 20px;
    font-size: 24px;
}

.form-group {
    margin-bottom: 15px;
    text-align: left;
}

.form-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: bold;
}

.form-group input,
.form-group textarea {
    width: 100%;
    max-width: 900px;
    padding: 10px;
    border: 1px solid #cccccc;
    border-radius: 3px;
    font-size: 0.8rem;
    background-color: rgba(222, 182, 164, 0.826);
    font-family: 'Bodoni Moda', serif;
}

button[type="submit"] {
    background-color: rgb(189, 157, 142);
    color: white;
    padding: 10px 20px;
    border: none;
    border-radius: 5px;
    font-size: 16px;
    cursor: pointer;
}

button[type="submit"]:hover {
    background-color: rgb(159, 131, 119);
}

@media screen and (max-width: 768px) {

    .contact-image img {
        width: 90px;
        height: 90px;
    }

}

/* -------------------  FOOTER */

.foot {
    position: relative;
    bottom: 0;
    display: flex;
    justify-content: center;
    width: 100%;
    padding-top: 10px;
    padding-bottom: 10px;
    margin: 0 auto;
    margin-top: 10px;
    /* border-top: 1px solid rgba(85, 85, 85, 0.5); */
    color: rgba(85, 85, 85, 0.5);
    /* -webkit-box-shadow: 0px -4px 3px rgba(50, 50, 50, 0.75);
  -moz-box-shadow: 0px -4px 3px rgba(50, 50, 50, 0.75); */
  box-shadow: 0px -2px 3px rgba(189, 189, 189, 0.4);
}

.fa {  
    padding: 10px;  
    text-align: center;  
    font-size: 1.7rem;  
    width: 50px;  
    text-decoration: none;
    color: rgba(85, 85, 85, 0.5);
}  

.fa:hover {
    color: rgb(154, 190, 249);   
}
