/*===== GOOGLE FONTS =====*/
@import url("https://fonts.googleapis.com/css2?family=Montserrat:wght@500;600;700&display=swap");

/*===== VARIABLES CSS =====*/
:root{
    --header-height: 3rem;
    --font-medium: 500;
}

/*===== Colores =====*/
:root{
    --first-color:#00A1E0;
    --white-color: #FAFAFF;
    --dark-color: #00A1E0;
    --text-color: #697477;
}

/*===== Fuente y tipografia =====*/
:root{
    --body-font: 'Montserrat', sans-serif;
    --big-font-size: 6.25rem;
    --h2-font-size: 1.25rem;
    --normal-font-size: .938rem;
    --small-font-size: .813rem;
}
@media screen and (min-width: 768px){
    :root{
        --big-font-size: 10.5rem;
        --h2-font-size: 2rem;
        --normal-font-size: 1rem;
        --small-font-size: .875rem;
    }
}

/*===== Margenes =====*/
:root{
    --mb-1: .5rem;
    --mb-2: 1rem;
    --mb-3: 1.5rem;
    --mb-4: 2rem;
}

/*===== z index =====*/
:root{
    --z-fixed: 100;
}

/*===== BASE =====*/
*,::before,::after{
    box-sizing: border-box;
}
html{
    scroll-behavior: smooth;
}
body{
    margin: var(--header-height) 0 0 0;
    font-family: var(--body-font);
    font-size: var(--normal-font-size);
    font-weight: var(--font-medium);
    color: var(--text-color);
    line-height: 1.6;
}
h1,h2,p{
    margin: 0;
}
ul{
    margin: 0;
    padding: 0;
    list-style: none;
}
a{
    text-decoration: none;
    color: var(--text-color);
}
img{
    max-width: 100%;
    height: auto;
    display: block;
}

/*===== CLASS CSS ===== */
.section{
    padding: 3rem 0;
}
.section-title{
    position: relative;
    font-size: var(--h2-font-size);
    color: var(--dark-color);
    margin: var(--mb-4) 0;
    text-align: center;
}
.section-title::after{
    position: absolute;
    content: "";
    width: 32px;
    height: .18rem;
    left: 0;
    right: 0;
    margin: auto;
    top: 2rem;
    background-color: var(--first-color);
}

/*===== LAYOUT =====*/
.bd-grid{
    max-width: 1024px;
    display: grid;
    grid-template-columns: 100%;
    grid-column-gap: 2rem;
    width: calc(100% - 2rem);
    margin-left: var(--mb-2);
    margin-right: var(--mb-2);
}
.l-header{
    width: 100%;
    position: fixed;
    top: 0;
    left: 0;
    z-index: var(--z-fixed);
    background-color: var(--first-color);
}

/*===== NAV =====*/
.nav{
    height: var(--header-height);
    display: flex;
    justify-content: space-between;
    align-items: center;
}
@media screen and (max-width: 768px){
   
}
.nav__item{
    margin-bottom: var(--mb-4);
}
.nav__link{
    position: relative;
    color: var(--dark-color);
}
.nav__link:hover{
    color: var(--first-color);
}
.nav__logo{
    color: var(--white-color);
}
.nav__toggle{
    color: var(--white-color);
    font-size: 1.5rem;
    cursor: pointer;
}

/*=== Show menu ===*/
.show{
    right: 0;
}

/*Active menu*/
.active::after{
    position: absolute;
    content: "";
    width: 100%;
    height: .18rem;
    left: 0;
    top: 2rem;
    background-color: var(--first-color);
}

/*===== HOME =====*/
.home{
    position: relative;
    background-color: var(--first-color);
    overflow: hidden;
}
.home__container{
    height: calc(100vh - var(--header-height));
    row-gap: 5rem;
}
.home__title {
        font-size: 18px;
        line-height: 1.6;
        color: white;
        max-width: 600px;
        text-align: justify;
        position:relative;
        left:-50px;
        top:120px;
        
}
.home__title2 {
    font-size: 18px;
    line-height: 1.6;
    color: white;
    max-width: 600px;
    text-align: justify;
    position:relative;
    left:-50px;
    
}

.home__scroll{
    align-self: flex-end;
    padding-bottom: var(--mb-4);
}
.home__scroll-link{
    writing-mode: vertical-lr;
    transform: rotate(-180deg);
    color: var(--white-color);
}
.home__img{
    position: absolute;
    right: 0;
    bottom: 0;
    width: 295px;
    top:250px;
}
.home__img3{
    position: absolute;
    left: 900px;
    bottom: 0;
    width: 60px;
    height: 500px;
    bottom:80px;
}
.home__img2{
    width: 295px;
    height: auto;
    display: block;
    margin: 0 auto;
  
    
}

/* ===== ABOUT =====*/
.about__container{
    justify-items: center;
    row-gap: 2rem;
    text-align: center;
}
.about__img{
    display: flex;
    justify-content: center;
    padding-top: 1rem;
    width: 120px;
    height: 120px;
    background-color: var(--first-color);
    border-radius: 50%;
    overflow: hidden;
}
.about__img img{
    width: 100px;
}
.about__subtitle{
    font-size: var(--h2-font-size);
    color: var(--first-color);
    margin-bottom: var(--mb-1);
}
.about__text{
    margin-bottom: var(--mb-4);
}
.about__profession{
    display: block;
    margin-bottom: var(--mb-4);
}
.about__social-icon{
    font-size: 1.4rem;
    margin: 0 var(--mb-1);
}
.about__social-icon:hover{
    color: var(--first-color);
}


/* ===== SKILLS =====*/
.skills__container{
    row-gap: 2rem;
}
.skills__subtitle{
    color: var(--first-color);
    margin-bottom: var(--mb-3);
}
.skills__name{
    display: inline-block;
    font-size: var(--small-font-size);
    margin-right: var(--mb-2);
    margin-bottom: var(--mb-3);
    padding: .25rem .5rem;
    background-color: var(--white-color);
    border-radius: .25rem;
    color:black;
}
.skills__name:hover{
    background-color: var(--first-color);
    color: var(--white-color);
}
.skills__img img{
    border-radius: .5rem;
}


/* ===== PORTFOLIO =====*/
.portfolio{
    background-color: var(--white-color);
}
.portfolio__container{
    justify-items: center;
    row-gap: 2rem;
}
.portfolio__img{
    position: relative;
    overflow: hidden;
}
.portfolio__img img{
    border-radius: .5rem;
}
.portfolio__link{
    position: absolute;
    bottom: -100%;
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: rgba(255,255,255,.3);
    border-radius: .5rem;
    cursor: pointer;
    backdrop-filter: blur(10px);
    transition: .3s;
}
.portfolio__img:hover .portfolio__link{
    bottom: 0;
}
.portfolio__link-name{
    color: var(--dark-color);
}

/* ===== CONTACT =====*/
.contact__container{
    row-gap: 2rem;
}
.contact__subtitle{
    font-size: var(--normal-font-size);
    color: var(--first-color);
}
.contact__text{
    display: inline-block;
    margin-bottom: var(--mb-2);
}
.contact__inputs{
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    column-gap: 1rem;
}
.contact__input{
    width: 100%;
    padding: .8rem;
    outline: none;
    border: 1.5px solid var(--dark-color);
    font-size: var(--normal-font-size);
    margin-bottom: var(--mb-4);
    border-radius: .5rem;
}
.contact__button{
    display: block;
    background-color: var(--first-color);
    color: var(--white-color);
    padding: .75rem 2.5rem;
    margin-left: auto;
    border-radius: .5rem;
    border: none;
    outline: none;
    font-size: var(--normal-font-size);
    cursor: pointer;
}

/* ===== FOOTER=====*/
.footer{
    background-color: var(--dark-color);
}
.footer__container{
    row-gap: 2rem;
}
.footer__title{
    font-size: var(--normal-font-size);
    color: var(--white-color);
    margin-bottom: var(--mb-2);
}
.footer__link{
    padding: .25rem 0;
}
.footer__link:hover{
    color: var(--first-color);
}
.footer__social{
    font-size: 1.4rem;
    margin-right: var(--mb-1);
}
.footer__social:hover{
    color: var(--first-color);
}

/* ===== MEDIA QUERIES =====*/
/* For small devices */
@media screen and (max-width: 320px) {
  .home__img {
    width: 230px;
  }
  .home__img3{
    width: 230px;
  }
}

@media screen and (min-width: 768px){
    body{
        margin: 0;
    }
    .section{
        padding-top: 4rem;
    }
    .section-title{
        margin-bottom: 3rem;
    }
    .section-title::after{
        width: 64px;
        top: 3rem;
    }

    .nav{
        height: calc(var(--header-height) + 1rem);
    }
    .nav__list{
        display: flex;
    }
    .nav__item{
        margin-left: var(--mb-4);
        margin-bottom: 0;
    }
    .nav__toggle{
        display: none;
    }
    .nav__link{
        color: var(--white-color);
    }
    .nav__link:hover{
        color: var(--white-color);
    }
    .active::after{
        background-color: var(--white-color);
    }

    .home__container{
        height: 100vh;
        grid-template-rows: 1.7fr 1fr;
        row-gap: 0;
    }
    .home__img{
        width: 524px;
        right: 10%;
    }
    .home__img3{
        width: 524px;
        right: 10%;
    }

    .about__container{
        grid-template-columns: repeat(2, 1fr);
        align-items: center;
        text-align: initial;
        padding: 4rem 0;
    }
    .about__img{
        width: 200px;
        height: 200px;
    }
    .about__img img{
        width: 165px;
    }

    .skills__container{
        grid-template-columns: repeat(2, 1fr);
        align-items: center;
    }

    .portfolio__container{
        grid-template-columns: repeat(3, 1fr);
        grid-template-rows: repeat(2, 1fr);
        column-gap: 2rem;
    }

    .contact__container{
        grid-template-columns: repeat(2, 1fr);
        justify-items: center;
    }
    .contact__form{
        width: 380px;
    }

    .footer__container{
        grid-template-columns: repeat(3, 1fr);
        justify-items: center;
    }
}

@media screen and (min-width: 1024px){
    .bd-grid{
        margin-left: auto;
        margin-right: auto;
    }
}

/* For tall screens on mobiles y desktop*/
@media screen and (min-height: 721px) {
    .home__container {
        height: 640px;
    }
    .home__img {
        width: 500px;
        right: 24%;
    }
    .home__img3 {
        width: 500px;
        right: 24%;
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(50px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}
/* Fixing navbar for small screens */
@media screen and (max-width: 768px) {
    .nav__menu {
        display: none;
        position: absolute;
        top: 60px;
        right: 0;
        background: #333;
        width: 100%;
        text-align: center;
        transition: all 0.3s ease-in-out;
        padding: 10px 0;
    }

    .nav__menu.show {
        display: block;
    }

    .nav__list {
        flex-direction: column;
        list-style: none;
        padding: 0;
        margin: 0;
    }

    .nav__item {
        margin: 10px 0;
    }

    .nav__toggle {
        display: block; /* Ensure toggle button is visible */
        font-size: 24px;
        cursor: pointer;
        color: #fff;
        position: absolute;
        right: 50px;
        top: 8px;
        z-index: 1000;
    }
    
}

/* Ensure images don't overlap and are properly aligned */
.home__img,.home__img3, .about__img img, .portfolio__img  {
   
    
    display: block;
    margin: 0 auto;
}



/* Adjust spacing for sections */
.section {
    padding: 2rem 1rem;
}

/* Prevent text overlap with images */
.about__container, .portfolio__container, .skills__container {
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* Fix portfolio grid for different screen sizes */
@media screen and (max-width: 600px) {
    .portfolio__container {
        display: grid;
        grid-template-columns: 1fr;
        gap: 1rem;
    }
}

@media screen and (min-width: 1024px) {
    .portfolio__container {
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        gap: 1.5rem;
    }
}

/* Adjust footer alignment */
.footer__container {
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* Fix overlapping images in skills section */
.skills__container img {
    max-width: 100%;
    height: auto;
    margin-top: 1rem;
    position: relative;
    z-index: 1;
}
nav {
    background-color: #00A1E0;
    color: white;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 20px;
  }
  
  .logo {
    font-size: 1.5rem;
  }
  
  .topbar {
    display: flex;
    list-style: none;
    padding: 0;
    margin: 0;

  }
  
  .topbar li {
    margin-right: 20px;
  }
  
  .topbar li a {
    color: white;
    text-decoration: none;
    transition: color 0.3s;
  }
  
  .topbar li a:hover {
    color: #80b5ca;
  }
  
  .checkbtn {
    font-size: 30px;
    color: white;
    cursor: pointer;
    display: none;
  }
  
  #check {
    display: none;
  }
  
  @media (max-width: 768px) {
    .home__title{
        font-size: 15px;
        line-height: 1.6;
        color: white;
        max-width: 600px;
        text-align: justify;
        position: relative;
        top:60px;
        left:5px;
        padding: 10px;
    }
    .home__title2{
        font-size: 15px;
        line-height: 1.6;
        color: white;
        max-width: 600px;
        text-align: justify;
        position: relative;
        top: -40px;
        left:5px;
        padding: 10px;
    }
    
    .checkbtn {
      display: block;
      order: 1;
      margin-right: 80px;
    }
  .section{
    width: 100%;
    
  }
    .topbar {
      position: fixed;
      top: 50px;
      right: -100%;
      background-color: #fbfbfbc7;
      width: 100%;
      height: 100vh;
      display: flex;
      flex-direction: column;
      justify-content: center;
      align-items: center;
      transition: all 0.3s;
    }
  
    .topbar li {
      margin: 20px 0;
     
    }
  
    .topbar li a {
      font-size: 20px;
      color: #00A1E0;
    }
    .home{
        width:100%;
        background-color: var(--first-color);
      
    }
    #check:checked ~ .topbar {
      right: 0;
    }
    .whatsapp{
        position:fixed;      
       
        top:350px;
        right: 50px;
        
        
    }
    .wt-link{
        
        width: 40px;
        height:40px;
    }
    .home__img{
        
        height: auto;
        display: block;
        margin: 0 auto;
        position: absolute;
        top:300px;
        right: 30px;
        width: 230px;
        
        
    }
    .home__img3{
        
        height: auto;
        display: block;
        margin: 0 auto;
        position: absolute;
        top:360px;
        left: 150px;
        width: 250px;
        display: flex; 
        align-items: center; 
        justify-content: center;
        
        
    }
    .wt-title{
        color: black;
        position: fixed;
        bottom: 350px;
        left: -125px;
        font-weight: bold;
        white-space: nowrap;
        display:none;
           
      }
  }
  @media (max-width: 460px) {
    .home__title{
        font-size: 15px;
        line-height: 1.6;
        color: white;
        max-width: 600px;
        text-align: justify;
        position: relative;
        top:60px;
        padding: 10px;
    }
    .home__title2{
        font-size: 15px;
        line-height: 1.6;
        color: white;
        max-width: 600px;
        text-align: justify;
        position: relative;
        top: -40px;
        padding: 10px;
    }
    
    .checkbtn {
      display: block;
      order: 1;
      margin-right: 70px;
    }
  .section{
    width: 100%;
   
  }
    .topbar {
      position: fixed;
      top: 50px;
      right: -100%;
      background-color: #fbfbfbc7;
      width: 100%;
      height: 100vh;
      display: flex;
      flex-direction: column;
      justify-content: center;
      align-items: center;
      transition: all 0.3s;
    }
  
    .topbar li {
      margin: 20px 0;
     
    }
  
    .topbar li a {
      font-size: 20px;
      color: #00A1E0;
    }
    .home{
        width:100%;
        background-color: var(--first-color);
      
    }
    #check:checked ~ .topbar {
      right: 0;
    }
    .whatsapp{
        position:fixed;      
       
        top:370px;
        right: 60px;
        
        
    }
    .wt-link{
        
        width: 40px;
        height:40px;
    }
    .home__img{
        
        height: auto;
        display: block;
        margin: 0 auto;
        position: absolute;
        top:300px;
        right: 30px;
        width: 230px;
        
        
    }
    .home__img3{
        
        height: auto;
        display: block;
        margin: 0 auto;
        position: absolute;
        top:360px;
        right: 80px;
        width: 250px;
        display: flex; 
        align-items: center; 
        justify-content: center;
        
        
    }
    .wt-title{
        color: black;
        position: fixed;
        bottom: 350px;
        left: -125px;
        font-weight: bold;
        white-space: nowrap;
        display: none;
           
      }
  }
  .wt-title{
    color: black;
    position: relative;
    right: 15px; 
    font-weight: bold;
       
  }
 
