@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: #202020;
  color: #e5e5e5;
}

.container {
  width: 1170px;
  margin: auto;
}

/* Scroll Progress Bar */
.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 4px;
  background-color: #fed700;
  z-index: 1000;
  transition: width 0.3s ease;
}

/*---------------------------Header---------------------------*/
.header-area {
  padding: 25px 0;
  transition: padding 0.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;
}

.logo {
  display: flex;
  align-items: center;
  position: relative;
  text-transform: uppercase;
  font-size: 26px;
  font-weight: 700;
}

.logo .fa-bolt {
  color: #fed700;
  font-size: 19.5px;
  position: absolute;
  top: 60%;
  left: 100%;
  transform: translate(-50%, -50%);
  z-index: 1;
}

.header ul {
  display: flex;
  align-items: center;
}

.header ul li {
  margin: 0 15px;
}

.header ul li a {
  text-transform: capitalize;
  display: block;
  position: relative;
}

.header ul li a::after {
  content: '';
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 0;
  height: 2px;
  background-color: #fed700;
  transition: width 0.3s ease;
}

.header ul li a.active::after,
.header ul li a:hover::after {
  width: 100%;
}

.header .menu_icon {
  color: #fff;
  font-size: 18px;
  cursor: pointer;
  display: none;
}

/*---------------------------HomePage--------------------------*/
.FirstElement {
  display: flex;
  justify-content: space-around;
  align-items: center;
  padding-top: 5rem;
}

.FirstElement.adjusted-padding {
  padding-top: 40px;
}

.FirstElement .profile-photo {
  width: 300px;
  height: 300px;
  border-radius: 50%;
  overflow: hidden;
  border: 15px solid #444444;
  box-shadow: 5px 7px 25px rgba(0, 0, 0, 0.5);
  transition: transform 0.5s ease;
}

.FirstElement .profile-photo img:hover {
  transform: scale(1.1);
}

.profile-text {
  max-width: 750px;
  display: flex;
  flex-direction: column;
}

.profile-text h5 {
  color: #e5e5e5;
  font-size: 14px;
}

.profile-text h1 {
  color: #fed700;
  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: #fed700;
  transform: rotate(360deg);
}

/*---------------------------About---------------------------*/
/*---------------------------About---------------------------*/
.about-area {
  padding: 100px 0;
  background-color: #202020;
}

.about {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 40px;
}

.about-content {
  flex-basis: 60%;
}

.about-content h4 {
  color: #fed700;
  font-size: 40px;
  line-height: 70px;
  text-transform: capitalize;
  margin-bottom: 20px;
}

.about-text p {
  color: #e5e5e5;
  font-size: 16px;
  line-height: 1.8;
  margin-bottom: 20px;
}

.coding-profiles {
  flex-basis: 35%;
  background-color: rgba(255, 255, 255, 0.05);
  padding: 20px;
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.coding-profiles h4 {
  color: #fed700;
  font-size: 20px;
  margin-bottom: 20px;
  text-transform: capitalize;
}

.profiles-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
}

.profile-item {
  background-color: rgba(255, 255, 255, 0.1);
  padding: 20px;
  border-radius: 10px;
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.profile-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 20px rgba(254, 215, 0, 0.2);
}

.profile-icon i {
  font-size: 30px;
  color: #fed700;
  margin-bottom: 10px;
}

.profile-item h3 {
  color: #fed700;
  font-size: 18px;
  margin-bottom: 10px;
}

.profile-item p {
  color: #e5e5e5;
  font-size: 14px;
  margin-bottom: 10px;
}

.profile-item .btn {
  background-color: #fed700;
  color: #202020;
  padding: 8px 16px;
  border-radius: 20px;
  text-decoration: none;
  transition: background-color 0.3s ease;
}

.profile-item .btn:hover {
  background-color: #e5b800;
}

/* Responsive Design */
@media (max-width: 767px) {
  .about {
    flex-direction: column;
  }

  .about-content,
  .coding-profiles {
    flex-basis: 100%;
  }
}

/*---------------------------Button---------------------------*/
.btn-group {
  margin: 45px 0;
}

.btn-group .btn {
  border-color: #d5d5d5;
  color: #fff;
  background-color: #333;
  padding: 12px 25px;
  margin: 5px 0;
  margin-right: 7px;
  border-radius: 30px;
  border: 2px solid #e5e5e5;
  box-shadow: 0 10px 10px -8px rgba(0, 0, 0, 0.78);
  transition: all 0.3s ease;
}

.btn-group .btn:hover {
  background-color: #fed700;
  color: #202020;
  border-color: #fed700;
  transform: translateY(-3px);
  box-shadow: 0 15px 20px -10px rgba(0, 0, 0, 0.78);
}

.btn.active {
  border-color: #fed700;
  background-color: #fed700;
  color: #202020;
}

/*---------------------------Education & Internship---------------------------*/
/*---------------------------Education & Certification---------------------------*/
.education-certification {
  padding: 100px 0;
  background-color: #202020;
}

.education-certification .section-title {
  text-align: center;
  margin-bottom: 60px;
}

.section-title h4 {
  color: #fed700;
  font-size: 40px;
  line-height: 40px;
  text-transform: capitalize;
  margin-bottom: 10px;
}

.education-certification .section-title h4 {
  color: #fed700;
  font-size: 40px;
  line-height: 40px;
  text-transform: uppercase;
  margin-bottom: 10px;
}

.education-certification .section-title p {
  color: #e5e5e5;
  font-size: 16px;
}

.education-certification-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
}

.education,
.certification {
  background-color: rgba(255, 255, 255, 0.05);
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.education .title,
.certification .title {
  color: #fed700;
  font-size: 24px;
  margin-bottom: 30px;
  text-transform: capitalize;
}

.timeline {
  position: relative;
  padding-left: 30px;
}

.timeline::before {
  content: '';
  position: absolute;
  left: 7px;
  top: 0;
  height: 100%;
  width: 2px;
  background-color: #fed700;
}

.timeline-item {
  position: relative;
  padding-left: 30px;
  margin-bottom: 40px;
}

.timeline-item:last-child {
  margin-bottom: 0;
}

.circle-dot {
  position: absolute;
  left: 0;
  top: 0;
  width: 15px;
  height: 15px;
  border-radius: 50%;
  background-color: #fed700;
  z-index: 1;
}

.timeline-title {
  color: #fed700;
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 5px;
}

.timeline-subtitle {
  color: #e5e5e5;
  font-size: 16px;
  margin-bottom: 5px;
}

.timeline-date {
  color: #e5e5e5;
  font-size: 14px;
  margin-bottom: 10px;
}

.certification-list {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.certification-item {
  background-color: rgba(255, 255, 255, 0.1);
  padding: 20px;
  border-radius: 10px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.certification-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 20px rgba(254, 215, 0, 0.2);
}

.certification-item h4 {
  color: #fed700;
  font-size: 18px;
  margin-bottom: 5px;
}

.certification-item p {
  color: #e5e5e5;
  font-size: 14px;
  margin-bottom: 10px;
}

.view-certificate {
  background-color: #fed700;
  color: #202020;
  border: none;
  padding: 8px 16px;
  border-radius: 20px;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.view-certificate:hover {
  background-color: #e5b800;
}

/* Certificate Modal */
.modal {
  display: none;
  position: fixed;
  z-index: 1000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.8);
}

.modal-content {
  position: relative;
  margin: 5% auto;
  padding: 20px;
  width: 80%;
  max-width: 800px;
  background-color: #202020;
  border-radius: 10px;
  text-align: center;
}

.modal-content img {
  width: 100%;
  border-radius: 10px;
}

.close {
  position: absolute;
  top: 10px;
  right: 20px;
  color: #fed700;
  font-size: 30px;
  font-weight: bold;
  cursor: pointer;
}

.close:hover {
  color: #e5b800;
}

/* Responsive Design */
@media (max-width: 767px) {
  .education-certification-grid {
    grid-template-columns: 1fr;
  }
}

/*---------------------------Internship---------------------------*/
.internship {
  padding: 100px 0;
  background-color: #202020;
}

.internship .section-title {
  text-align: center;
  margin-bottom: 60px;
}

.internship .section-title h4 {
  color: #fed700;
  font-size: 40px;
  line-height: 40px;
  text-transform: uppercase;
  margin-bottom: 10px;
}

.internship .section-title p {
  color: #e5e5e5;
  font-size: 16px;
}

.timeline {
  position: relative;
  padding-left: 30px;
}

.timeline::before {
  content: '';
  position: absolute;
  left: 7px;
  top: 0;
  height: 100%;
  width: 2px;
  background-color: #fed700;
}

.timeline-item {
  position: relative;
  padding-left: 30px;
  margin-bottom: 40px;
}

.timeline-item:last-child {
  margin-bottom: 0;
}

.circle-dot {
  position: absolute;
  left: 0;
  top: 0;
  width: 15px;
  height: 15px;
  border-radius: 50%;
  background-color: #fed700;
  z-index: 1;
}

.timeline-title {
  color: #fed700;
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 5px;
}

.timeline-subtitle {
  color: #e5e5e5;
  font-size: 16px;
  margin-bottom: 5px;
}

.timeline-date {
  color: #e5e5e5;
  font-size: 14px;
  margin-bottom: 10px;
}

.timeline-text {
  color: #e5e5e5;
  font-size: 14px;
  line-height: 1.6;
  text-align: justify;
  padding-left: 20px;
}

.timeline-text li {
  margin-bottom: 10px;
}

.timeline-text li:last-child {
  margin-bottom: 0;
}

/* Responsive Design */
@media (max-width: 767px) {
  .timeline {
    padding-left: 20px;
  }

  .timeline-item {
    padding-left: 20px;
  }
}

/*---------------------------Skills---------------------------*/
.skills {
  padding: 100px 0;
  background-color: #202020;
}

.skills .section-title {
  text-align: center;
  margin-bottom: 60px;
}

.skills .section-title h4 {
  color: #fed700;
  font-size: 40px;
  line-height: 40px;
  text-transform: uppercase;
  margin-bottom: 10px;
}

.skills .section-title p {
  color: #e5e5e5;
  font-size: 16px;
}

.skills-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 40px;
}

.skill-category {
  background-color: rgba(255, 255, 255, 0.05);
  padding: 20px;
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.skill-category:hover {
  transform: translateY(-10px);
  box-shadow: 0 10px 30px rgba(254, 215, 0, 0.2);
}

.skill-category h3 {
  color: #fed700;
  font-size: 24px;
  margin-bottom: 20px;
  text-transform: capitalize;
}

.skill-items {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
  gap: 20px;
}

.skill-item {
  text-align: center;
  transition: transform 0.3s ease;
}

.skill-item:hover {
  transform: scale(1.1);
}

.skill-item img {
  width: 60px;
  height: 60px;
  margin-bottom: 10px;
}

.skill-item p {
  color: #e5e5e5;
  font-size: 14px;
}

/* Responsive Design */
@media (max-width: 767px) {
  .skills-grid {
    grid-template-columns: 1fr;
  }

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

/*---------------------------Projects---------------------------*/
/*---------------------------Projects---------------------------*/
.projects {
  padding: 100px 0;
  background-color: #202020;
}

.projects .section-title {
  text-align: center;
  margin-bottom: 60px;
}

.projects .section-title h4 {
  color: #fed700;
  font-size: 40px;
  line-height: 40px;
  text-transform: uppercase;
  margin-bottom: 10px;
}

.projects .section-title p {
  color: #e5e5e5;
  font-size: 16px;
}

.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
}

.project-item {
  background-color: rgba(255, 255, 255, 0.05);
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.project-item:hover {
  transform: translateY(-10px);
  box-shadow: 0 10px 30px rgba(254, 215, 0, 0.2);
}

.project-icon {
  text-align: center;
  margin-bottom: 20px;
}

.project-icon i {
  font-size: 40px;
  color: #fed700;
}

.project-item h3 {
  color: #fed700;
  font-size: 20px;
  margin-bottom: 15px;
  text-align: center;
}

.project-item p {
  color: #e5e5e5;
  font-size: 14px;
  line-height: 1.6;
  text-align: justify;
  margin-bottom: 20px;
}

.project-tech {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
}

.project-tech span {
  background-color: rgba(254, 215, 0, 0.1);
  color: #fed700;
  font-size: 12px;
  padding: 5px 10px;
  border-radius: 20px;
}

/* Responsive Design */
@media (max-width: 767px) {
  .projects-grid {
    grid-template-columns: 1fr;
  }
}

/*---------------------------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;
  background-color: rgba(255, 255, 255, 0.1);
  color: #fff;
  border-radius: 5px;
  transition: background-color 0.3s ease;
}

.contact input:focus,
.contact textarea:focus {
  background-color: rgba(255, 255, 255, 0.2);
  outline: none;
}

.contact .submit {
  width: auto;
  background-color: #fed700;
  padding: 10px 40px;
  font-weight: bold;
  font-size: 18px;
  border-radius: 30px;
  transition: transform 0.3s ease;
}

.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(255, 255, 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: 350px;
  }

  .header .menu_icon {
    display: block;
  }

  .header ul {
    display: none;
  }

  .header i {
    color: #e5e5e5;
  }

  .profile-text {
    width: 350px;
  }

  .FirstElement .profile-text p {
    text-align: justify;
  }

  .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;
  }
}