@import url('https://fonts.googleapis.com/css2?family=Lexend:wght@400;500;600;700&display=swap');

*{
  margin:0;
  padding:0;
  box-sizing:border-box;
  scroll-behavior:smooth;
}
a{
  text-decoration: none ;
  color:#fff;
  transition:0.3s; 
}
ul{
  list-style:none;
}
img{
  max-width: 100%;
}
body{
  font-family: 'Lexend', sans-serif;
  font-size:16px;
  line-height:24px; 
  background-color:#000000;
}
.container{
  width: min(1170px, 92%);
  margin:auto;
}




      /*---------------------------Header---------------------------*/

      .signature {
        width: 100px; /* Adjust size as needed */
        animation: flicker 0.1ms infinite; /* Apply flicker animation */
      }
      
      @keyframes flicker {
        0% {
          opacity: 1;
        }
        20% {
          opacity: 0.8;
        }
        40% {
          opacity: 0.3;
        }
        60% {
          opacity: 0.5;
        }
        80% {
          opacity: 1;
        }
        100% {
          opacity: 0.9;
        }
      }

.header-area{
  padding:25px 0;
  transition: padding .3s;
}

.header-area.sticky {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 99;
  background-color: #202020;
  padding: 5px;
}

.header{
  display:flex;
  justify-content: space-between;
  align-items: center;
  position: relative;
  /* padding-bottom: 2rem; */
} 
.logo {
  display: flex;
  align-items: center;
  position: relative; 
  text-transform: uppercase;
  font-size: 26px;
  font-weight: 700;
}

.logo .fa-bolt {
  color: #1cbac8;
  font-size: 19.5px;
  position: absolute; 
  top: 60%;
  left: 100%; 
  transform: translate(-50%, -50%); 
  z-index: 1; 
}

.signature {
  width: 100px; 
  height:auto; 
  margin-right: 10px; 
}

.header ul li:first-child {
  margin-right: auto; 
}  

.header ul{
  display: flex;
  align-items: center; 
}
.header ul li{
  margin: 0 15px;
}
.header ul li a{
  text-transform: capitalize;
  display: block;
}
.header ul li a.active{
  color:  aqua;;
} 
.header ul li a:hover{
  color: aqua;;
}
.header .menu_icon{
  color:#00eeff;
  font-size: 18px;
  cursor: pointer;
  display: none;
}

.animated-name {
  font-size: 50px;
  font-family: 'Arial', sans-serif;
  color: aqua;
}

@keyframes fadeInColorChange {
  0% {
    opacity: 0;
    color: #3498db;
  }
  50% {
    opacity: 1;
    color: #00ffee;
  }
  100% {
    opacity: 0;
    color: #00ffc3;
  }
}



/*---------------------------HomePage--------------------------*/

.FirstElement{
   display:flex;
   justify-content: space-around;
   align-items: center;
  gap: 2rem;
   padding-top: 5rem; 
} 

.FirstElement.adjusted-padding {
  padding-top: 40px; 
}

.FirstElement .profile-photo{
  display: inline-block;
  padding: 10px;
  border: 5px solid aqua;
  border-radius: 50%; /* Optional: for a circular image */
  width: 200px;
  height: 200px;
  border-radius: 50%;
  overflow: hidden;
  margin: 0; /* Remove margins */
  padding: 0

}
@keyframes borderAnimation {
  0% {
    border-color: #004471;
  }
  50% {
    border-color: #00eeff;
  }
  100% {
    border-color: #0061a1;
  }
}
profile-photo .img{
  height: 100%;
  width: 100%;
  transition: 0.5s;
  object-fit: fill;
  margin: 0; /* Remove margins */
  padding: 0
}
.FirstElement .profile-photo img:hover{
  transform: scale(1.2);
}
.profile-text{
  max-width: 750px;
  width: 100%;
  display: flex;
  flex-direction: column;
}
.profile-text h5{
  color: #e5e5e5;
  font-size: 14px;
}
.profile-text h1{
  color: aqua;
  font-size: 3rem; 
}
.profile-text p{
  color:#e5e5e5;
}
.profile-text .social i{
  color : #e5e5e5;
  font-size: 18px;
  margin-right: 10px;
  transition: 0.5s;
}
.profile-text .social i:hover{
  color: aqua;;
  transform: rotate(360deg);
}



 /*---------------------------About---------------------------*/

.about-area{
  padding-top: 130px;
  background-color: #000000;
}
.about{
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom:50px;
}
.about-content{
  flex-basis: 60%;
}
.about-content h4{
  color:  aqua;;
  font-size: 40px;
  line-height: 70px;
  text-transform: capitalize;
}
.about-content ul {
  color:#fff;
  text-align: justify;
}

.about-content ul li {
  list-style-type: disc;
  margin-bottom: 10px;
}

.about-skills{
  flex-basis: 35%;
}
.about-skills ul li{
  border-bottom: 1px dashed  aqua;;
  padding-bottom: 10px;
  margin-bottom: 10px;
  color: #fff;
  font-size: 18px;
}
.about-skills ul li:last-child{
  border-bottom: 0;
  padding-bottom: 0;
  margin-bottom: 0;
}



/*---------------------------Button---------------------------*/

.btn-group{
  margin: 45px 0;
}
.btn-group .btn{
  border-color: #d5d5d5;
  color: #fff;
  background-color: #000000;
  padding:12px 25px;
  margin: 5px 0;
  margin-right: 7px;
  border-radius: 30px;
  border: 2px solid aqua;
  box-shadow: 0 10px 10px -8px rgb(0 0 0 / 78%);
}
.btn.active{
  border-color: aqua;
}


/*---------------------------Education & Internship---------------------------*/

.education-content .row{
  display: flex;
  border-radius: 5px;
  height: 400px;
  margin-bottom: 250px;
}

.education-content .title{
  color: aqua;;
}
.education-content .row .education,
.education-content .row .internship
{
  color: #e1e1e1;
  flex:0 0 50%;
  max-width: 50%;
  margin-top: 30px;
} 
.education-content  h3.title{
  font-size:24px;
  margin-bottom: 30px;
  font-weight: 700;
}
.education-content .row.timeline-box{
  flex:0 0 100%;
  max-width: 100%;  
}
.education-content .row .timeline{
  /* background-color:#e5e5e5; */
  padding: 30px 15px;
  border: 1px solid aqua;
  border-radius: 10px;
  width: 100%;
  position: relative;
}
.education-content .row .timeline-item{
  position:relative;
  padding-left: 37px;
  padding-bottom: 50px; 
}
.education-content .row  .internship .timeline-item{
  position:relative;
  padding-left: 37px;
  padding-bottom: 30px; 
}
.education-content .row .timeline-item:last-child{
  padding-bottom: 0;
}
.education-content .row .timeline-item::before{
  content: "";
  width: 1px;
  position: absolute;
  height: 100%;
  left: 7px;
  top: 0;
  background-color: aqua;;  
}
.education-content .row .circle-dot{
  position: absolute;
  left: 0;
  top: 0;
  height: 15px;
  width: 15px;
  border-radius: 50%;
  background-color: #000000;
}
.education-content .row .timeline-title  {
  font-weight: 700;
  font-size: 18px;
  margin-bottom: 12px;
}
.education-content .row .internship .timeline-title  {
  font-weight: 700;
  font-size: 18px;
  margin-bottom: 8px;
}
.education-content .row .timeline-text{
  line-height: 25px;
  font-size: 16px;
  text-align: justify;
}

/*---------------------------Certifications---------------------------*/
.certifications-section {
  padding: 90px 0;
  text-align: center;
}

.section-title {
  text-transform: uppercase;
  font-size: 40px;
  line-height: 40px;
  color: aqua;
  margin-bottom: 60px;
  text-align: center;
}

.certifications-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 40px;
  max-width: 900px;
  margin: 0 auto;
  padding: 0 20px;
}

.certificate-card {
  background: rgba(0, 255, 255, 0.1);
  border: 2px solid aqua;
  border-radius: 10px;
  padding: 20px;
  transition: all 0.3s ease;
  text-align: center;
}

.certificate-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 10px 30px rgba(0, 255, 255, 0.3);
}

.certificate-image {
  width: 100%;
  height: 250px;
  margin-bottom: 20px;
  border-radius: 8px;
  overflow: hidden;
  background: #000;
}

.certificate-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.certificate-title {
  color: aqua;
  font-size: 18px;
  font-weight: 600;
  margin-top: 15px;
  margin-bottom: 10px;
}

.certificate-description {
  color: #fff;
  font-size: 14px;
  line-height: 22px;
  text-align: justify;
  margin-top: 10px;
  min-height: 70px;
}

/* Certificate Modal */
.certificate-image {
  cursor: pointer;
}

.certificate-modal {
  display: none;
  position: fixed;
  z-index: 1000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.8);
  backdrop-filter: blur(5px);
  -webkit-backdrop-filter: blur(5px);
  animation: fadeIn 0.3s ease-in;
}

.certificate-modal.show {
  display: flex;
  align-items: center;
  justify-content: center;
}

.modal-content {
  position: relative;
  max-width: 90%;
  max-height: 90vh;
  background: #000;
  border: 2px solid aqua;
  border-radius: 10px;
  animation: zoomIn 0.3s ease-in;
}

.modal-content img {
  width: 100%;
  height: auto;
  max-height: 85vh;
  display: block;
  border-radius: 8px;
}

.close-btn {
  position: absolute;
  top: -40px;
  right: 0;
  font-size: 40px;
  font-weight: bold;
  color: aqua;
  cursor: pointer;
  transition: all 0.3s ease;
  z-index: 1001;
}

.close-btn:hover {
  color: #fff;
  transform: scale(1.2);
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@keyframes zoomIn {
  from {
    transform: scale(0.8);
    opacity: 0;
  }
  to {
    transform: scale(1);
    opacity: 1;
  }
}

/* Responsive Design */
@media (max-width: 768px) {
  .certifications-grid {
    grid-template-columns: 1fr;
    gap: 30px;
    max-height: var(--mobile-cert-visible-height, none);
    overflow-y: auto;
    padding-right: 8px;
    scroll-snap-type: y proximity;
    scrollbar-width: thin;
    scrollbar-color: rgba(0, 255, 255, 0.7) rgba(255, 255, 255, 0.08);
  }

  .certifications-grid::-webkit-scrollbar {
    width: 7px;
  }

  .certifications-grid::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.08);
    border-radius: 999px;
  }

  .certifications-grid::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, rgba(0, 255, 255, 0.95), rgba(0, 170, 170, 0.9));
    border-radius: 999px;
  }

  .certifications-grid::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(180deg, rgba(0, 255, 255, 1), rgba(0, 190, 190, 0.95));
  }

  .certificate-card {
    scroll-snap-align: start;
  }

  .certificate-image {
    height: 220px;
  }

  .certificate-title {
    font-size: 16px;
  }

  .certificate-description {
    font-size: 13px;
    min-height: 60px;
  }

  .section-title {
    font-size: 32px;
    margin-bottom: 40px;
  }

  .project {
    flex-basis: 48%;
  }

  .project-image {
    height: 180px;
  }

  .image-icon {
    font-size: 32px;
  }

  .github-link {
    font-size: 14px;
    padding: 8px 16px;
  }
}

@media (max-width: 480px) {
  .certifications-section {
    padding: 60px 0;
  }

  .certifications-grid {
    grid-template-columns: 1fr;
    gap: 20px;
    padding: 0 15px;
    padding-right: 8px;
  }

  .certificate-card {
    padding: 15px;
  }

  .certificate-image {
    height: 180px;
    margin-bottom: 15px;
  }

  .certificate-title {
    font-size: 14px;
    margin-top: 10px;
  }

  .certificate-description {
    font-size: 12px;
    line-height: 20px;
    min-height: 50px;
  }

  .section-title {
    font-size: 24px;
    margin-bottom: 30px;
  }

  .project {
    flex-basis: 100%;
    padding: 20px;
  }

  .project i {
    width: 50px;
    height: 50px;
    font-size: 22px;
    line-height: 50px;
  }

  .project h4 {
    font-size: 18px;
    margin: 15px 0;
  }

  .project p {
    font-size: 13px;
  }

  .project-image {
    height: 150px;
    margin: 15px 0;
  }

  .image-icon {
    font-size: 28px;
  }

  .github-link {
    font-size: 12px;
    padding: 8px 15px;
    margin-top: 12px;
  }
}

/*---------------------------Projects---------------------------*/
.project-content{
  padding: 90px 0;
  /* color:#fff;  */
}
.project-title{
  margin-bottom: 60px;
  text-align: center;
}
.project-title h4{
  text-transform: uppercase;
  font-size: 40px;
  line-height: 40px;
  color: aqua;;
  margin-bottom: 20px;
}
.project-title p{
  color: #e5e5e5;
}
.projects{
  display: flex;
  justify-content:space-between;
  flex-wrap: wrap;
}
.project{
    /* padding: 30px 15px; */
    color: #e5e5e5;
    border: 2px solid #e5e5e5;
    border-radius: 10px;
    width: 100%;
    position: relative;
    padding: 25px;
    text-align: center;
    flex-basis: 32%;
    transition: .3s;
}

.project:nth-child(n + 4) {
  display: none;
}

.project-content.projects-expanded {
  position: fixed;
  top: 5vh;
  left: 5%;
  right: 5%;
  max-height: 90vh;
  overflow-y: auto;
  overflow-x: hidden;
  z-index: 1001;
  background-color: #000;
  border-radius: 10px;
}

.project-content.projects-expanded .project:nth-child(n + 4) {
  display: block;
}

.projects-backdrop {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 1000;
  background: rgba(0, 0, 0, 0.55);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}

.projects-backdrop.show {
  display: block;
  animation: fadeIn 0.25s ease-in;
}

.load-more-projects {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin: 35px auto 0;
  padding: 12px 24px;
  border: 2px solid aqua;
  border-radius: 5px;
  background: transparent;
  color: aqua;
  cursor: pointer;
  font: inherit;
  font-weight: 600;
  transition: all 0.3s ease;
}

.load-more-projects:hover,
.load-more-projects:focus-visible {
  background: aqua;
  color: #000;
  outline: none;
  transform: translateY(-3px);
  box-shadow: 0 5px 15px rgba(0, 255, 255, 0.4);
}

.load-more-projects i {
  width: auto;
  height: auto;
  background: none;
  color: inherit;
  font-size: 16px;
  line-height: normal;
}
.project i{
  background-color: aqua;;
  width: 60px;
  height: 60px;
  color: #333;
  font-size: 26px;
  line-height: 60px;
  border-radius: 50%;
}
.project h4{
  font-size: 26px;
  text-transform: capitalize;
  margin: 20px 0;
}
.project p{
  text-align: justify;
}
.project:hover{
  border-color: aqua;
}

.project-image {
  width: 100%;
  height: 200px;
  margin: 20px 0;
  border-radius: 8px;
  overflow: hidden;
  background: #1a1a1a;
  cursor: pointer;
  position: relative;
  transition: all 0.3s ease;
}

.project-image:hover {
  transform: scale(1.05);
  box-shadow: 0 5px 20px rgba(0, 255, 255, 0.3);
}

.project-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: all 0.3s ease;
}

.image-icon {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: 40px;
  color: aqua;
  opacity: 0;
  transition: all 0.3s ease;
}

.project-image:hover .image-icon {
  opacity: 1;
}

.github-link {
  display: inline-block;
  margin-top: 15px;
  padding: 10px 20px;
  background-color: transparent;
  border: 2px solid aqua;
  color: aqua;
  text-decoration: none;
  border-radius: 5px;
  transition: all 0.3s ease;
  font-weight: 600;
}

.github-link:hover {
  background-color: aqua;
  color: #000;
  transform: translateY(-3px);
  box-shadow: 0 5px 15px rgba(0, 255, 255, 0.4);
}

.github-link i {
  margin-right: 8px;
  background: none;
  width: auto;
  height: auto;
  font-size: 16px;
  line-height: normal;
  border-radius: 0;
}

/* Project Modal */
.project-modal {
  display: none;
  position: fixed;
  z-index: 1000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.8);
  backdrop-filter: blur(5px);
  -webkit-backdrop-filter: blur(5px);
  animation: fadeIn 0.3s ease-in;
}

.project-modal.show {
  display: flex;
  align-items: center;
  justify-content: center;
}

.project-modal-content {
  position: relative;
  max-width: 90%;
  max-height: 90vh;
  background: #000;
  border: 2px solid aqua;
  border-radius: 10px;
  animation: zoomIn 0.3s ease-in;
}

.project-modal-content img {
  width: 100%;
  height: auto;
  max-height: 85vh;
  display: block;
  border-radius: 8px;
}

.project-close-btn {
  position: absolute;
  top: -40px;
  right: 0;
  font-size: 40px;
  font-weight: bold;
  color: aqua;
  cursor: pointer;
  transition: all 0.3s ease;
  z-index: 1001;
}

.project-close-btn:hover {
  color: #fff;
  transform: scale(1.2);
}

/* */





/*---------------------------Contact Me---------------------------*/
.contact-content{
  padding: 100px 0;
  color: #fff;
  text-align: center;
}
.contact-content .contact-title h4{
  font-size: 40px;
  text-transform: capitalize;
  color: #fed700;
  padding-bottom: 10px;
}
.contact-content .contact-title p{
  padding-bottom: 20px;
}
.contact{
  max-width: 700px;
  margin: auto;
}
.contact input,.contact textarea{
  width: 100%;
  padding: 15px;
  border: 0;
  margin-bottom: 10px;
}

.contact .submit{
  width: auto;
  background-color: #fed700;
  padding: 10px 40px;
  font-weight:bold ;
  font-size: 18px;
}
.contact .submit:hover{
  transform: scale(1.1);
  cursor: pointer;
}
#msg{
  color: #fff;
  font-size: 20px;
  margin-top: -8px;
  display: block;
}






/*---------------------------Footer---------------------------*/
.footer {
    max-width: 950px;
    margin: 0 auto;
    padding: 15px 0 26px;
    border-top: 1px solid rgba(0, 229, 255, 0.1); 
    color: rgba(255, 255, 255, 0.4);
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
  }
  .footer .message {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.4);
    margin-bottom: 10px;
  }
  
  .copyright {
    font-size: 12px;
  }




 /*------------------- Responsive Design on small screen -------------------*/

/* Medium layout */
@media only screen and (min-width:1000px) and (max-width:1200px){
  .container{
    width: 970px;
  }
}

@media(max-width:1050px){
  .FirstElement{ 
    flex-direction: column;
    padding-top: 2rem;
  }
  .profile-text{
    padding: 40px 0px;
  }
}



/* tablet layout */
@media only screen and (min-width:768px) and (max-width:999px){
  .container{
    width: 750px;
  } 
}  


/* Mobile Layout */
@media only screen and (max-width:767px){
  .container{
    width: min(100%, 88%);
  }

  .FirstElement {
    padding-top: 1.5rem;
    gap: 1.2rem;
  }

  .header .menu_icon {
    display: block;
  }
  .header ul{
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
    position: absolute;
    top: calc(100% + 10px);
    right: 0;
    width: 220px;
    padding: 0;
    border: 0;
    border-radius: 10px;
    background: #111;
    z-index: 120;
    overflow: hidden;
    max-height: 0;
    opacity: 0;
    transform: translateY(-8px);
    pointer-events: none;
    transition: max-height 0.35s ease, opacity 0.25s ease, transform 0.25s ease;
  }

  .header ul.open {
    padding: 12px;
    border: 1px solid aqua;
    max-height: 280px;
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
  }

  .header ul.open li {
    margin: 0;
    width: 100%;
  }

  .header ul.open li a {
    display: block;
    width: 100%;
    padding: 8px 10px;
  }
  .header i{
    color: #e5e5e5;
  }

  .profile-text{
    width: 100%;
    padding: 20px 8px;
  }

  .profile-text h1 {
    font-size: 2.2rem;
    line-height: 1.2;
  }

  .btn-group {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin: 30px 0;
  }

  .btn-group .btn {
    margin: 0;
  }
  .FirstElement .profile-text p{
    text-align: justify;
    padding: 0 4px;
  }

  .about-content,
  .about-skills {
    padding: 0 8px;
  }

  .about-content ul,
  .about-skills ul,
  .project p,
  .certificate-description {
    padding: 0 4px;
  }

  .project {
    padding: 20px 16px;
  }
  .about{
    flex-direction: column;
    flex-basis: 100%;
    margin-bottom: 30px;
  }
  .about-skills{
    width: 100%;
    margin-top: 30px;
  }
  .education-content .row {
    flex-direction: column;
    height: auto;
    margin-bottom: 50px;
  }

  .education-content .row .education,
  .education-content .row .internship {
    flex-basis: 100%;
    max-width: 100%;
    margin-top: 30px;
  }
  .project{
    flex-basis: 100%;
    margin-bottom: 30px;
  }

}