/* Mobile & Tablet */
@media (max-width: 1300px) {

  /* Navbar layout */
  .navbar{
    justify-content: space-between;
    padding: 0 20px;
  }

  .navbar .nav-links{
    position: fixed;
    top: 0;
    left: -260px;
    width: 260px;
    height: 100%;
    background: #0c0f1a;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: 0.4s;
    z-index: 1000;
  }

  .navbar .nav-links ul{
    flex-direction: column;
    gap: 22px;
  }

  .navbar .nav-links ul li{
    font-size: 16px;
  }

  /* Jab active ho */
  .navbar .nav-links.active{
    left: 0;
  }

  /* Hamburger icon */
  .menu-icon{
    width: 32px;
    cursor: pointer;
    display: block;
    z-index: 1100;
  }

  .menu-icon span{
    display: block;
    height: 4px;
    width: 100%;
    background: white;
    margin: 6px 0;
    border-radius: 2px;
    transition: 0.4s;
  }

  /* Cross animation */
  .menu-icon.active span:nth-child(1){
    transform: rotate(45deg) translate(7px,7px);
  }
  .menu-icon.active span:nth-child(2){
    opacity: 0;
  }
  .menu-icon.active span:nth-child(3){
    transform: rotate(-45deg) translate(7px,-7px);
  }

.navbar .logo{
    width: 70%;
    justify-content: start;
    align-items: center;
    
}

  /* hero */

.hero-wrapper{
    flex-direction: column;
    height: auto;
    padding: 40px 16px;
    
    gap: 40px;
  }

  .hero-wrapper .left,
  .hero-wrapper .right{
    width: 100%;
    height: auto;
  }

  .hero-wrapper .right{
    justify-content: center;
    align-items: center;
  }

  .hero-wrapper .right img{
    width: 90%;
    max-width: 350px;
  }



/* starts */

.stats-container{
flex-direction: column;
}

.stats-section{
    margin: 80px 0;
    padding: 0 16px;
  }

  .stats-container{
    width: 100%;
    flex-direction: column;
    gap: 30px;
  }

  .stat-card{
    width: 100%;
    padding: 30px 20px;
  }

  .stat-card h2{
    font-size: 40px;
  }

  .stat-card p{
    font-size: 14px;
    letter-spacing: 0.5px;
  }


/* about */

.about-stack{
    margin: 100px 0;
    justify-content: center;
  }

  .stack-wrapper{
    flex-direction: column;
    align-items: center;   /* horizontal center */
    text-align: center;
    gap: 40px;
  }

  .photo-stack{
    margin: 0 auto;        /* force center */
    display: flex;
    justify-content: center;
    align-items: center;
  }

  .stack-text{
    text-align: center;
    padding: 0 20px;
  }

  .stack-text h2{
    font-size: 32px;
  }

  .stack-text p{
    font-size: 16px;
    line-height: 1.6;
  }



  /* project */

.projects-section{
    margin: 120px 0;
    padding: 0 16px;
  }

  .projects-title{
    font-size: 32px;
    margin-bottom: 40px;
  }

  .projects-title::after{
    width: 100px;
  }

  .projects-grid{
    max-width: 100%;
    grid-template-columns: 1fr;
    gap: 28px;
    padding: 15px;
  }

  .project-card{
    border-radius: 18px;
  }

  .project-card img{
    height: 180px;
  }

  .project-body{
    padding: 18px;
    text-align: center;
  }

  .project-body h3{
    font-size: 20px;
  }

  .project-body .desc{
    font-size: 14px;
  }

  .tech-pills{
    justify-content: center;
  }

  .project-buttons{
    margin-top: 18px;
  }

  .btn_p{
    padding: 14px 20px;
    font-size: 13px;
    letter-spacing: 1px;
  }


}

/* Desktop par icon hide */
@media (min-width: 1301px){
  .menu-icon{
    display: none;
  }
}

@media (max-width: 900px){
    .navbar .logo{
        width: 60%;
    }
}

@media (max-width: 768px){
  .main-text{
    font-size: 50px;
  }
    .navbar .logo{
        width: 50%;
    }

  .timeline{
    max-width: 95%;
    padding-left: 20px;
  }

  /* Line ko left side le jao */
  .line{
    left: 20px;
    transform: none;
  }

  /* Sab items ek jaise behave karenge */
  .timeline-item{
    flex-direction: row;
    justify-content: flex-start !important;
    margin: 50px 0;
  }

  /* Content full width le */
  .content{
    width: 100%;
    margin-left: 40px;   /* line se gap */
    transform: translateX(0) !important;
  }

  /* Dot line ke upar fit ho */
  .dot{
    left: 20px;
    transform: scale(0);
  }

  .timeline-item.show .dot{
    transform: scale(1);
  }

  /* Title size chhota */
  .timeline-title{
    font-size: 32px;
    margin-bottom: 50px;
  }



  .site-footer{
    padding: 40px 20px 20px;
  }

  .footer-container{
    grid-template-columns: 1fr;
    gap: 30px;
    text-align: center;
  }

  .footer-brand h2{
    font-size: 22px;
  }

  .footer-brand p{
    font-size: 13px;
  }

  .footer-links .links{
    justify-content: center;
    flex-wrap: wrap;
    gap: 12px;
  }

  .footer-links a{
    display: inline-block;
    margin: 6px;
  }

  .footer-social .social-icons,
  .footer-social .social-links{
    justify-content: center;
  }

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

  .footer-bottom{
    font-size: 12px;
    margin-top: 25px;
  }



  .achievement-section{
    margin: 120px 0;
    padding: 0 16px;
  }

  .achievement-title{
    font-size: 32px;
    margin-bottom: 40px;
  }

  .achievement-title::after{
    width: 100px;
  }

  .achievement-card{
    max-width: 100%;
    flex-direction: column;
    padding: 25px;
    gap: 25px;
    text-align: center;
  }

  .achievement-card img{
    width: 100%;
    max-height: 260px;
    object-fit: cover;
  }

  .achievement-text{
    text-align: center;
    align-items: center;
  }

  .achievement-text h3{
    font-size: 22px;
  }

  .achievement-text p{
    font-size: 14px;
  }

  .tag{
    margin: 0 auto;
  }



  /* contact  */

  .contact-section{
    margin: 120px 0;
    padding: 0 16px;
  }

  .contact-title{
    font-size: 32px;
    margin-bottom: 50px;
  }

  .contact-title::after{
    width: 110px;
  }

  .contact-wrapper{
    flex-direction: column;
    gap: 40px;
  }

  .contact-left{
    text-align: center;
  }

  .contact-left h3{
    font-size: 24px;
  }

  .contact-left p{
    font-size: 14px;
  }

  .contact-form{
    width: 100%;
    padding: 25px 20px;
  }

  .contact-form input,
  .contact-form textarea{
    font-size: 13px;
    padding: 12px 14px;
  }

  .contact-form button{
    font-size: 13px;
    padding: 12px;
  }

  .image img{
    max-width: 300px;
  }

}

@media (max-width: 500px){
    .navbar .logo{
        width: 75%;
    }

}



/* Small Desktop / Laptop View */
@media (min-width: 900px) and (max-width: 1300px){

  /* Navbar */
  .navbar{
    padding: 0 30px;
  }

  .navbar .logo img{
    width: 30%;
  }

  .navbar .nav-links ul{
    gap: 20px;
    font-size: 12px;
  }

  /* Hero */
  .hero-wrapper{
    padding: 60px 40px;
    gap: 30px;
  }

  .hero-wrapper .left{
    width: 100%;
  }

  .hero-wrapper .right{
    width: 100%;
  }

  .hero-wrapper .right img{
    max-width: 420px;
  }

  /* Stats */
  .stats-container{
    width: 90%;
    gap: 40px;
  }

  .stat-card h2{
    font-size: 46px;
  }

  /* About */
  .stack-wrapper{
    gap: 50px;
  }

  .photo-stack{
    width: 220px;
    height: 280px;
  }

  .stack-text h2{
    font-size: 36px;
  }

  .stack-text p{
    font-size: 16px;
  }

  /* Projects */
  .projects-grid{
    grid-template-columns: repeat(2, 1fr);
    max-width: 900px;
  }

  .projects-title{
    font-size: 38px;
  }

  /* Timeline */
  .timeline{
    max-width: 700px;
  }

  .content{
    width: 42%;
  }

  /* Achievement */
  .achievement-card{
    max-width: 800px;
    gap: 30px;
  }

  .achievement-card img{
    width: 260px;
  }

  .achievement-title{
    font-size: 36px;
  }

  /* Contact */
  .contact-wrapper{
    max-width: 800px;
    gap: 40px;
  }

  .contact-title{
    font-size: 36px;
  }

  /* Footer */
  .site-footer{
    padding: 50px 6% 25px;
  }

  .footer-brand h2{
    font-size: 24px;
  }

}




/* Mobile Landscape Mode */
@media (max-width: 900px) and (orientation: landscape){

  /* Navbar */
  .navbar{
    height: auto;
    padding: 10px 20px;
  }

  .navbar .logo img{
    width: 40%;
  }

  .navbar .nav-links{
    width: 240px;
  }

  /* Hero */
  .hero-wrapper{
    flex-direction: row;
    padding: 30px 20px;
    gap: 20px;
  }

  .hero-wrapper .left,
  .hero-wrapper .right{
    width: 50%;
  }

  .hero-wrapper .right img{
    max-width: 260px;
  }

  .main-text{
    font-size: 34px;
  }

  .hi-text{
    font-size: 14px;
  }

  .hero-buttons{
    flex-direction: row;
    gap: 14px;
  }

  /* Stats */
  .stats-container{
    flex-direction: row;
    gap: 20px;
  }

  .stat-card{
    padding: 20px 12px;
  }

  .stat-card h2{
    font-size: 28px;
  }

  /* About */
  .stack-wrapper{
    flex-direction: row;
    gap: 30px;
  }

  .photo-stack{
    width: 180px;
    height: 220px;
  }

  .stack-text h2{
    font-size: 26px;
  }

  /* Projects */
  .projects-grid{
    grid-template-columns: repeat(2, 1fr);
  }

  /* Timeline */
  .timeline{
    max-width: 700px;
  }

  .content{
    width: 42%;
  }

  /* Achievement */
  .achievement-card{
    flex-direction: row;
  }

  .achievement-card img{
    width: 220px;
  }

  /* Contact */
  .contact-wrapper{
    flex-direction: row;
    gap: 30px;
  }

  .contact-form{
    padding: 20px;
  }

  .image img{
    max-width: 220px;
  }

  /* Footer */
  .footer-container{
    grid-template-columns: repeat(2,1fr);
  }

}
