/* =========================================
   LARGE SCREENS
========================================= */

@media screen and (max-width: 1400px){

  section{
    max-width: 1200px;
    padding-left: 2rem;
    padding-right: 2rem;
  }

  .white-box{
    max-width: 1100px;
  }
}

/* =========================================
   LAPTOPS
========================================= */

@media screen and (max-width: 1200px){

  nav{
    padding: 0 2rem;
  }

  section{
    max-width: 100%;
    padding-left: 1.5rem;
    padding-right: 1.5rem;
  }

  .white-box{
    gap: 2rem;
    padding: 2rem;
  }

  .contact-left-card h2{
    font-size: 2.4rem;
  }
}

/* =========================================
   TABLET RESPONSIVE
========================================= */

@media screen and (max-width: 1024px){

  body{
    width: 100%;
  }

  section{

    width: 100%;

    max-width: 100%;

    min-height: auto;

    height: auto;

    padding-left: 1rem;

    padding-right: 1rem;

    margin: 0 auto;
  }

  /* NAVBAR */

  #desktop-nav{
    display: none;
  }

  #hamburger-nav {
  display:flex;
  justify-content:space-between;
  align-items:center;
  padding:1rem;
  width:100%;
}

  /* HOME */

  #home{
    justify-content: center;
    padding-top: 1rem;
  }

  .white-box{

    width: 100%;

    max-width: 100%;

    height: auto;

    flex-direction: column;

    gap: 2rem;

    padding: 2rem 1rem;

    border-radius: 25px;
  }

  .section__pic-container{

    width: 100%;

    height: auto;

    justify-content: center;
  }

  .section__text{
    text-align: center;
    width: 100%;
  }

  .title{
    font-size: 2.4rem;
  }

  .section__text__p2{
    font-size: 1.2rem;
  }

  .hero-tagline{
    font-size: 0.95rem;
  }

  .btn-container{
    flex-wrap: wrap;
  }

  /* ABOUT */

  .section-container{

    flex-direction: column;

    gap: 2rem;
  }

  .about-containers{

    flex-direction: column;

    width: 100%;
  }

  .about-details-container{
    width: 100%;
  }

  .about-pic{

    max-width: 300px;

    height: auto;
  }

  .details-container{
    width: 100%;
  }

  /* SKILLS */

.article-container{

    flex-wrap: wrap;

    justify-content: center;

    gap: 1.5rem;
  }

  /* PROJECTS */

  .project-img{

    width: 100%;

    height: auto;
  }

  .project-details-container{
    flex-direction:column;
    align-items: center;
    gap: 2rem;
  }

  

  /* CONTACT */

  .modern-contact-container{

    flex-direction: column;

    gap: 1.5rem;
  }

  .contact-left-card,
  .contact-right-card{

    width: 100%;

    max-width: 100%;
  }

  /* FOOTER */

  .footer-bottom{

    flex-direction: column;

    text-align: center;

    gap: 1rem;
  }

  .footer-right{
    justify-content: center;
  }

  /* REMOVE ARROWS */

  .scroll-down{
    display: none !important;
  }
}

/* =========================================
   MOBILE DEVICES
========================================= */

@media screen and (max-width: 768px){

  section{
    padding-left: 0.8rem;
    padding-right: 0.8rem;
  }

  .title{
    font-size: 2rem;
  }

  .section__text__p2{
    font-size: 1rem;
  }

  .hero-tagline{
    font-size: 1.1rem;
  }

  /* HOME */

  .white-box{

    padding: 1.5rem 1rem;

    gap: 1.5rem;
  }

 

  .btn{

    min-width:120px;

    padding: 0.8rem;

    font-size: 0.8rem;
  }

  /* ABOUT */

  .details-container{
    padding: 1.2rem;
  }

  /* SKILLS */

  .skill-sub-title{
    font-size: 1.5rem;
  }

  /* CONTACT */

  .contact-left-card,
  .contact-right-card{

    padding: 1.2rem;

    border-radius: 22px;
  }

  .contact-left-card h2{

    font-size: 2rem;
  }

  .contact-desc{

    font-size: 0.9rem;

    line-height: 1.7;
  }

  .modern-contact-item{

    width: 100%;

    padding: 0.9rem;
  }

  .modern-contact-item span{

    font-size: 0.72rem;

    overflow-wrap: break-word;
  }

  .modern-socials{

    display: grid;

    grid-template-columns: repeat(auto-fit,minmax(45px,1fr));

    gap: 0.5rem;

    justify-items: center;
  }

  .modern-socials a{

    width: 42px;

    height: 42px;
  }

  /* FORM */

  .input-row{

    flex-direction: column;
  }

  .modern-contact-form{

    gap: 1rem;
  }

  .modern-contact-form input,
  .modern-contact-form textarea,
  .modern-contact-form button{

    width: 100%;
  }

  .modern-contact-form textarea{

    min-height: 140px;
  }

  /* FOOTER */

  .footer-left p,
  .footer-right a,
  .footer-right p {
     font-size: 0.9rem;
}
  .footer-bottom {

    flex-direction: column;

    text-align: center;

    gap: 0.7rem;
  }

  .footer-right {

    justify-content: center;
  }

}


/* =========================================
   SMALL MOBILES
========================================= */

@media screen and (max-width: 480px){

  section{
    padding-left: 0.7rem;
    padding-right: 0.7rem;
  }

  html{
  font-size:14px;
}

  .title{
    font-size: 1.8rem;
  }

  .white-box{

    padding: 1.2rem 0.8rem;
  }

  .btn{

    min-width:120px;

    font-size: 0.75rem;
  }

  .modern-socials a{

    width: 38px;

    height: 38px;
  }

  .contact-left-card h2{

    font-size: 1.7rem;
  }

  .contact-desc{

    font-size: 0.82rem;
  }

  .modern-contact-item span{

    font-size: 0.62rem;
  }

  .footer-left p,
  .footer-right a,
  .footer-right p{

    font-size: 0.75rem;
  }
}