*{
    margin: 0;
    padding: 0;
    font-family: sans-serif;
    font-size: medium;
    box-sizing: border-box;
}

body{
    background: #080808;
    color: #fff;
    
}

#header{
    width: 100%;
    height: 100vh;
    /* background-image: url(images/background.png); */
    background-size: cover;
    background-position: center;

}

.container{
    padding: 10px 5%;
}

nav{
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
}

/* .logo{
    
} */

nav ul li{
    display: inline-block;
    list-style: none;
    margin: 10px 20px;
    

}

nav ul li a{
    color: #fff;
    text-decoration: none;
    font-size: 18px;
    position: relative;
    
}
/* nav ul li a position relative and nav ul li a::after and hover ar code not
not perfect another hover code is good from my previos code */
nav ul li a::after{
    content: "";
    width: 0;
    height: 3px;
    background: #ff004f;
    position: absolute;
    left: 0;
    bottom: -6px;
    transition: 0.5s;
}
nav ul li a:hover::after{
   width: 100%;

}

.profile-icon {
    width: 3rem;
    height: 3rem;
    margin-top: 7px;
    border-radius: 50%;
    border: white 1px solid;
    filter: saturate(0);
    transition: var(--transition);
  }
  .profile-icon:hover {
    filter: saturate(1);
  }

.body-text{
    /* margin-top: 20%; */
    font-size: 15px;
   
}
.home-img{
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}
.body-text h1{
    font-size: 33px;
    
    
}

.body-text h1 span{
    color: #ff004f;
    font-size: 30px;
}
.body-text h2{
    font-size: 22px;
    line-height: 5px;
}
.multiple-text{
    color: #0691e2;
    font-size: 20px;
}

.home-img img{
    width: 25vw;
    animation: floatImage 4s ease-in-out infinite;
}

@keyframes floatImage{
    0%{
        transform: translateY(0);
    }
    50%{
        transform: translateY(-2.4rem);
    }
    100%{
        transform: translateY(0);
    }
}


/* About section */

#about{
    padding: 80px 0;
    color: #ababab;
    
}

.row{
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
}

.about-col-1{
    flex-basis: 35%;

}

.about-col-1 img{
    width: 100%;
    border-radius: 15px;
    border-color: #ff004f;
    background-color: #ababab2b;;
}

.about-col-2{
    flex-basis: 60%;
}

.sub-title{
    font-size: 60px;
    font-weight: 600;
    color: #fff;
}
.tab-titles{
    display: flex;
    margin: 20px 0 40px;
}

.tab-links{
    margin-right: 50px;
    font-size: 18px;
    font-weight: 500;
    cursor: pointer;
    position: relative;
}

.tab-links::after{
    content: "";
    width: 0;
    height: 3px;
    background: #ff004f;
    position: absolute;
    left: 0;
    bottom: -8px;
    transition: 0.5s;
}

.tab-links.active-link::after{
    width: 50%;


}
.tab-contents ul li{
    list-style: none;
    margin: 10px 0;
}
.tab-contents ul li span{
    color: #b54;
    font-size: 14px;

}

.tab-contents{
    display: none;
} 
.tab-contents.active-tab{
    display: block;
}

#skills, #experiance, #education{
    line-height: 20px;
    
}
/* services section */
#services{
    padding: 30px 0;

}

.services-list{
    display: grid;
    /* grid-template-columns: repeat(auto-fit,minmax(250px, 1fr)); */
    grid-template-columns: repeat(3, 1fr);
    grid-gap: 40px;
    margin-top: 50px;

}

.services-list div{
    background: #262626;
    padding: 40px;
    font-size: 13px;
    font-weight: 300;
    border-radius: 10px;
    transition: background 0.5s, transform 0.5s;
}

.services-list div i{
    font-size: 50px;
    margin-bottom: 30px;

}

.services-list div h2{
    font-size: 30px;
    font-weight: 500;
    margin-bottom: 15px;

}

.services-list div a{
    text-decoration: none;
    color:#fff;
    font-size: 12px;
    margin-top: 20px;
    display: inline-block;

}

.services-list div:hover{
   background: #ff004f;
   transform: translateY(-10px);
}

/* portfolio section  is start here  */
#portfolio{
    padding: 50px 0;

}

.work-list{
    display: grid;
    /* grid-template-columns: repeat(auto-fit,minmax(250px, 1fr)); */
    grid-template-columns: repeat(3, 1fr);
    grid-gap: 40px;
    margin-top: 50px;

}

#portfolio p{
    /* margin-top: 40px; */
    font-size: 26px;
   
}

.work{
    border-radius: 10px;
    position: relative;
    overflow: hidden;
    width: 385px;
    height: 405px;
    border: #0691e2;
    /* margin: 20px; */
    background: url('images/E-Commerce\ 2.png');
    background-size: 100% auto !important;
    background-position: top;
    transition: 10s;
    /* transition: all 0.5s ease */


}


.work:hover {
    background-position: bottom !important;
    cursor: pointer;
    

}

.work:nth-of-type(2){
    background: url();
 
}


.work:nth-of-type(3){
    /* background: url('images/E-commerce\ 1.jpg'); */

}


.work:nth-of-type(4){
    /* background: url(''); */
   
}


.work:nth-of-type(5){
    /* background: url('images/University\ 1.jpg'); */

}

.layer{
    display: flex;
    justify-content: space-between;
    /* font-size: larger; */
}

.layer h3{
    font-size: 25px;
   

}

.layer a{
    /* margin-top: 20px;
    color: #ff004f;
    text-decoration: none;
    line-height: 70px;
    background: #fff;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    text-align: center;
    position: absolute;
    top: 340px;
    left: 210px; */

}

.layer a i{
    font-size: 25px;
    color: #fff;
    padding-right: 80px;

}

.layer .just-text{
  
    padding-left: 30px;
    margin-top: 15px;
    
}

.layer .text-icon{
  
    padding-left: 30px;
    margin-top: 15px;
    
}
.python{
    border-radius: 10px;
}
.python video{
    height: 100%;
    /* width: 100%; */
}

.btn{
    display: block;
    margin: 50px 0;
    width: fit-content;
    border: 1px solid #ff004f;
    padding: 14px 50px;
    border-radius: 6px;
    text-decoration: none;
    color: #0691e2;
    font-weight: bold;

}
.btn:hover{
    background: #ff004f;
}
/* Contact section */

.contact-left{
    flex-basis: 35%;

}
.contact-right{
    flex-basis: 60%;
    
}
.contact-left p{
   margin-top: 30px;
    
}

.contact-left p i{
    color: #ff004f;
    margin-right: 15px;
    font-size: 25px;
}

.social-icons{
    margin-top: 30px;
}

.social-icons a{
    text-decoration: none;
    font-size: 30px;
    margin-right: 15px;
    color: #ababab;
    display: inline-block;
    transition: transform 0.5s;
}

.social-icons a i{
    font-size: 28px;
}

.social-icons a:hover{
    color: #ff004f;
    transform: translateY(-5px);

}

.btn .btn2{
    display: inline-block;
    background: #ff004f;
   

}

.contact-right form{
    width: 100%;
}

form input, form textarea{
    width: 100%;
    border: 0;
    outline: none;
    background: #262626;
    padding: 15px;
    margin: 15px 0;
    color: #fff;
    font-size: 18px;
    border-radius: 6px;

}

form btn2{
    padding: 14px 60px;
    font-size: 18px;
    margin-top: 20px;
    cursor: pointer;
}

/* .copyrite{
    width: 100%;
    text-align: center;
    padding: 25px 0;
    background-color: #262626;
    font-weight: 300;
    margin-top: 20px;

} */

.copyrite {
    width: 100%;
    text-align: center;
    padding: 18px 0;
    background: linear-gradient(90deg, #262626 60%, #ff004f 100%);
    font-weight: 400;
    margin-top: 40px;
    color: #fff;
    font-size: 18px;
    letter-spacing: 1px;
    border-top: 2px solid #ff004f;
    box-shadow: 0 -2px 8px rgba(0,0,0,0.15);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.work-list img{
    height: 600px;
    width:  400px;
}

/* ------ Responsive */

/* ----------------------
   Base Mobile First Reset
-------------------------- */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}
img {
  max-width: 100%;
  height: auto;
}

/* Default Styles – Mobile First */

body {
  font-family: 'Helvetica', sans-serif;
  line-height: 1.6;
  padding: 0;
  margin: 0;
}

/* ----------------------
   Responsive Design
-------------------------- */

/* Small Devices (phones) */
@media (max-width: 576px) {
  .navbar {
    flex-direction: column;
    align-items: flex-start;
  }

  .navbar ul {
    flex-direction: column;
    width: 100%;
  }

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

  .home-content h1 {
    font-size: 1.8rem;
  }

  .home-content p {
    font-size: 1rem;
  }

  .about, .services, .projects, .contact {
    padding: 20px;
  }

  .about-content, .services-container, .project-container {
    flex-direction: column;
    align-items: center;
  }

  .service-box, .project-box {
    width: 100%;
    margin-bottom: 20px;
  }

  .contact form {
    width: 100%;
  }

  .footer {
    text-align: center;
    font-size: 14px;
  }
}

/* Medium Devices (Tablets) */
@media only screen and (min-width: 577px) and (max-width: 768px) {
  .navbar {
    flex-wrap: wrap;
    justify-content: space-between;
  }

  .navbar ul {
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
  }

  .home {
    padding: 40px;
    text-align: center;
  }

  .about-content, .services-container, .project-container {
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
  }

  .service-box, .project-box {
    width: 45%;
    margin: 10px;
  }

  .contact {
    padding: 30px;
  }

  .contact form {
    width: 100%;
  }

  .footer {
    text-align: center;
    font-size: 15px;
  }
}

/* Large Devices (Desktop & up) */
@media only screen and (min-width: 769px) and (max-width: 1024px) {
    .container {
    width: 90%;
    max-width: 1000px;
    margin: 0 auto;
    padding-left: 20px;
    padding-right: 20px;
  }
  .project-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
  }
  .project-box {
    width: 30%;
    margin: 15px;
    padding: 15px;
    box-sizing: border-box;
    background: #fff;
    border-radius: 8px;
  }
  .project-box img {
    display: block;
    margin-left: auto;
    margin-right: auto;
    max-width: 100%;
    height: auto;
  }
}

    .home-content h1 {
    font-size: 2.2rem;
  }

  .home-content p {
    font-size: 1.2rem;
  }

  .service-box, .project-box {
    width: 30%;
    margin: 15px;
  }

  .contact form {
    width: 80%;
  }

  .footer {
    font-size: 1rem;
  }

@media only screen and (min-width: 1600px) {

  /* --- Web Projects Section Fix --- */
  .work-list {
    grid-template-columns: repeat(3, 1fr);
    grid-gap: 30px;
    justify-content: center;
  }

  .work {
    width: 100%;
    height: 450px;
    background-size: cover !important;
    margin: auto;
  }

  .layer {
    flex-direction: column;
    justify-content: space-between;
    height: 100%;
    padding: 20px;
  }



  /* Python Projects Section Fix */
  /* .python-projects {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 40px;
    padding: 20px 0;
  }

  .python-projects .project {
    flex: 0 0 45%;
    max-width: 45%;
    text-align: center;
  }

  .python-projects iframe {
    width: 100%;
    height: 315px;
    max-width: 640px;
    margin: 0 auto;
    display: block;
  }


  /* Python Projects section fix */
  #python-projects .work-list {
    grid-template-columns: repeat(2, 1fr);
    justify-content: center;
    gap: 40px;
  
  }

  #python-projects .work img, 
  #python-projects .work iframe {
    width: 100%;
    height: auto;
    display: block;
    margin: 0 auto;
  }

  #python-projects .work {
    display: flex;
    flex-direction: column;
    align-items: center;
  }

  /* Mobile Applications section fix */
  #mobile-projects .work-list {
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
  }

  #mobile-projects .work img {
    width: 100%;
    height: auto;
    display: block;
    margin: 0 auto;
  }

  #mobile-projects .work {
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;
    gap: 10px;
  }

  #mobile-projects .github-icon {
    position: absolute;
    bottom: 10px;
    right: 10px;
    width: 24px;
    height: 24px;
  }
}

/* Universal work-list improvements for consistent spacing */
.work-list {
  display: grid;
  gap: 30px;
}

/* GitHub icon visibility fix */
/* .github-icon {
  display: block;
} */
  /* Mobile Application Projects Fix */
  /* .mobile-projects {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 40px;
    padding: 30px 0;
  }

  .mobile-projects .project {
    width: 300px;
    position: relative;
  }

  .mobile-projects img {
    width: 100%;
    height: auto;
    display: block;
  }

  .mobile-projects .project-text {
    margin-top: 10px;
    text-align: center;
  }

  .mobile-projects .github-link {
    position: absolute;
    bottom: 10px;
    right: 10px;
    width: 30px;
    height: 30px;
  }

  .mobile-projects .github-link img {
    width: 100%;
    height: auto;
  }
}  */

  /* --- Python Projects Section Fix --- */
  /* .python {
    display: flex;
    justify-content: center;
    gap: 40px;
    flex-wrap: wrap;
    margin-bottom: 40px;
  }

  .python video {
    width: 45%;
    max-height: 400px;
    object-fit: cover;
  } */

  /* --- Mobile App Project Section Fix --- */
  /* .mobile-apps-section {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 40px;
    padding-bottom: 50px;
  }

  .mobile-apps-section .app {
    width: 22%;
    position: relative;
  }

  .mobile-apps-section img {
    width: 100%;
    height: auto;
    display: block;
    margin: 0 auto;
  }

  .mobile-apps-section .app-description {
    margin-top: 10px;
    text-align: center;
  }

  .mobile-apps-section .github-icon {
    position: absolute;
    bottom: 10px;
    right: 10px;
  }
} */
/* Extra large devices (large desktops, 1200px and up) */
/* 
@media only screen and (min-width: 1200px) {
  .container {
    width: 1140px;
    margin: auto;
  }

  .home {
    padding: 60px;
  }

  .about-content, .services-container, .project-container {
    justify-content: space-between;
  }

  .footer {
    text-align: right;
  }


}




 */
