@import url("https://fonts.googleapis.com/css2?family=Poppins:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900&display=swap");

:root {
  --primary-color: #151414;
  --primary-color-dark: #151414;
  --primary-color-light: #a3a3a3;
  --white: #ffffff;
  --max-width: 900px;
  --gradient-1: linear-gradient(to right bottom, #f77d6b, #9e1fdb);
  --gradient-2: linear-gradient(
    to right bottom,
    var(--white) 25%,
    var(--primary-color)
  );
}

* {
  padding: 0;
  margin: 0;
  box-sizing: border-box;
}

.section__container {
  max-width: var(--max-width);
  margin: auto;
  padding: 5rem 1rem;
}

img {
  display: flex;
  width: 100%;
}

a {
  text-decoration: none;
  transition: 0.3s;
}

ul {
  list-style: none;
}

html,
body {
  scroll-behavior: smooth;
}

body {
  font-family: "Poppins", sans-serif;
  background-color: var(--primary-color-dark);
}
/*----------------- nav bar -----------------*/
.nav__bar {
  position: fixed;
  width: 100%;
  max-width: var(--max-width);
  margin-inline: auto;
  z-index: 9;
}

.nav__header {
  padding: 1rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background-color: var(--primary-color);
}

.nav__logo a {
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--white);
}

.nav__menu__btn {
  font-size: 1.5rem;
  color: var(--white);
  cursor: pointer;
}

.nav__links {
  position: absolute;
  top: 100%;
  left: 0;
  width: 100%;
  padding: 2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 2rem;
  background-color: var(--primary-color);
  transition: 0.5s;
  z-index: -1;
  transform: translateY(-100%);
}

.nav__links.open {
  transform: translateY(0);
}

.nav__links a {
  color: var(--primary-color-light);
}

.nav__links a:hover {
  color: rgb(235, 233, 229);
}
.nav__links a.btn {
  color: rgb(245, 243, 241);
}

.header__container img {
  max-width: 200px;
  margin-inline: auto;
  margin-bottom: 2rem;
}

.header__container h1 {
  margin-bottom: 2rem;
  font-size: 3.5rem;
  line-height: 4rem;
  color: var(--white);
  text-align: center;
}

.header__container h1 span {
  background-image: var(--gradient-1);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.header__container p {
  margin-bottom: 2rem;
  max-width: 600px;
  margin-inline: auto;
  color: var(--primary-color-light);
  text-align: center;
}

.header__btns {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
}

.header__btns .btn {
  padding: 0.75rem 1.5rem;
  outline: none;
  border: none;
  font-size: 1rem;
  color: var(--primary-color-dark);
  background-color: var(--white);
  border-radius: 5rem;
  transition: 0.3s;
  cursor: pointer;
}

.header__btns a {
  padding: calc(0.75rem - 2px) calc(1.5rem - 2px);
  font-size: 1rem;
  line-height: 1.125rem;
  color: var(--white);
  background-color: transparent;
  border-radius: 5rem;
  border: 2px solid var(--white);
}

.header__btns a:hover {
  color: var(--primary-color-dark);
  background-color: var(--white);
}

/*----------------- nav bar Media Queries -----------------*/
@media (width > 768px) {
  nav {
    background-color: var(--primary-color);
  }

  .nav__bar {
    position: static;
    padding: 1.75rem 1rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
  }

  .nav__header {
    padding: 0;
    background-color: transparent;
  }

  .nav__menu__btn {
    display: none;
  }

  .nav__links {
    position: static;
    padding: 1rem;
    flex-direction: row;
    justify-content: flex-end;
    gap: 3rem;
    background-color: transparent;
    transform: none;
    z-index: 1;
  }
}

/*----------------- header Section -----------------*/
.section__header {
  margin: auto;
  padding-bottom: 0.75rem;
  width: fit-content;
  position: relative;
  font-size: 2rem;
  font-weight: 600;
  background-image: var(--gradient-1);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}
.section__header::before {
  position: absolute;
  content: "";
  bottom: 0;
  left: 0;
  height: 2px;
  width: 80px;
  background-color: #dc2626;;
}


.story__container .section__header {
  margin-bottom: 4rem;
}

.story__container p {
  margin-bottom: 2rem;
  color: #a3a3a3;
}

/*----------------- Skills Section -----------------*/
.skills-section {
  max-width: 1200px;
  margin: 0 auto;
  padding: 2rem;
}
.skills-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
}
.skill-category {
  background-color: #323130;
  border-radius: 15px;
  padding: 1.5rem;
  box-shadow: 0 4px 6px rgba(0,0,0,0.1);
  display: flex;
  flex-direction: column;
  height: 100%;
}
.skill-category h3 {
  margin-bottom: 1rem;
  color: #f7f7f7;
  font-size: 1.5rem;
}
.skill-list {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: center;
  align-items: center;
  flex-grow: 1;
}
.skill-item {
  width: 80px;
  height: 80px;
  display: flex;
  justify-content: center;
  align-items: center;
  background-color: white;
  border-radius: 12px;
  padding: 0.5rem;
  box-shadow: 0 2px 5px rgba(0,0,0,0.1);
  transition: transform 0.3s ease;
}
.skill-item:hover {
  transform: scale(1.1);
}
.skill-item img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}
.skill-description {
  margin-top: auto;
  padding-top: 1rem;
  font-size: 0.9rem;
  color: #7f8c8d;
  text-align: center;
}
@media (max-width: 768px) {
  .skills-grid {
      grid-template-columns: 1fr;
  }
  .skill-item {
      width: 60px;
      height: 60px;
  }
}

/*------------------------Projects--------------------------*/
.projects-section {
  max-width: 1200px;
  margin: 0 auto;
  padding: 2rem;
}
h1 {
  text-align: center;
  color: #fff;
  margin-bottom: 2rem;
  font-size: 2.5rem;
}
.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
}
.project-card {
  background-color:  #323130;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 4px 6px rgba(0,0,0,0.1);
  transition: transform 0.3s ease;
}
.project-card:hover {
  transform: translateY(-5px);
}
.project-image {
  width: 100%;
  height: 200px;
  object-fit: cover;
}
.project-content {
  padding: 1.5rem;
}
.project-title {
  font-size: 1.25rem;
  margin-bottom: 0.5rem;
  color: #e7ecf0;
}
.project-description {
  font-size: 0.9rem;
  color: #a3a3a3;
  margin-bottom: 1rem;
}
.project-tech {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 1rem;
}
.tech-icon {
  width: 24px;
  height: 24px;
}
.project-link {
  display: inline-block;
  padding: 0.5rem 1rem;
  background-image: var(--gradient-1);
  color: #fff;
  text-decoration: none;
  border-radius: 5px;
  transition: background-color 0.3s ease;
}
.project-link:hover {
  background-color: #b3b7ba;
}
.see-more-container {
  text-align: center;
  margin-top: 2rem;
}

@media (max-width: 768px) {
  .projects-grid {
      grid-template-columns: 1fr;
  }
}

/*--certificates--*/
.gallery {
  display: flex;
  flex-direction: column;
  align-items: center;
}
.gallery .images {
  gap: 15px;
  max-width: 85%;
  margin: 40px 0;
  columns: 5 310px;
  list-style: none;
}
.gallery .images .img {
  display: flex;
  cursor: pointer;
  overflow: hidden;
  position: relative;
  margin-bottom: 14px;
  border-radius: 4px;
}
.gallery .images img {
  width: 100%;
  transition: transform 0.2s ease;
}
.gallery .images .img:hover img {
  transform: scale(1.1);
}










/* Image lightbox styling 
.lightbox {
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  z-index: 5;
  position: fixed;
  visibility: hidden;
  background: rgba(0,0,0,0.65);
}
.lightbox.show {
  visibility: visible;
}
.lightbox .wrapper {
  position: fixed;
  left: 50%;
  top: 50%;
  width: 100%;
  padding: 20px;
  max-width: 850px;
  background: #fff;
  border-radius: 6px;
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, -50%) scale(0.9);
  transition: transform 0.1s ease;
}
.lightbox.show .wrapper {
  opacity: 1;
  pointer-events: auto;
  transform: translate(-50%, -50%) scale(1);
}
.wrapper :where(header, .details) {
  display: flex;
  align-items: center;
}
.wrapper header {
  justify-content: space-between;
}
header .details i {
  font-size: 1.7rem;
}
header .details span {
  font-size: 1.2rem;
  margin-left: 10px;
}
header .buttons i {
  height: 40px;
  width: 40px;
  cursor: pointer;
  display: inline-block;
  color: #fff;
  margin-left: 10px;
  background: #6C757D;
  font-size: 1.25rem;
  line-height: 40px;
  text-align: center;
  border-radius: 4px;
  transition: 0.2s ease;
}
header .buttons i:hover {
  background: #5f666d;
}
.wrapper .preview-img {
  display: flex;
  justify-content: center;
  margin-top: 25px;
}
.preview-img .img {
  max-height: 65vh;
}
.preview-img img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}*/
/* Responsive media query code */
@media screen and (max-width: 688px) {
  .lightbox .wrapper {
    padding: 12px;
    max-width: calc(100% - 26px);
  }
  .wrapper .preview-img {
    margin-top: 15px;
  }
  .gallery .images {
    max-width: 100%;
    padding: 0 13px;
    margin-top: 20px;
  }
}

.contact__container {
  max-width: 600px;
}

.contact__container .section__subheader {
  margin-inline: auto;
}

.contact__container .section__header {
  margin-bottom: 1rem;
  margin-inline: auto;
  text-align: center;
}

.contact__container .section__description {
  margin-bottom: 2rem;
  margin-inline: auto;
  text-align: center;
  color: #a3a3a3;
}

.contact__container form {
  display: grid;
  gap: 1rem;
}

.contact__container :is(input, textarea) {
  padding: 1rem 0.75rem;
  outline: none;
  border: 1px solid var(--extra-light);
  font-size: 1rem;
  font-family: "Roboto", sans-serif;
  color: #a3a3a3;
  border-radius: 5px;
}

.contact__container .btn {
  max-width: fit-content;
  margin-inline: auto;
}


.btn {
  padding: calc(0.75rem + 2px) 1.5rem;
  outline: none;
  border: none;
  font-size: 1rem;
  color: black;
  background-color: rgb(138, 134, 134);
  border-radius: 10px;
  transition: 0.3s;
  cursor: pointer;
}
 
.btn:hover {
  background-color: rgb(219, 212, 212);
}




.footer-content {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  max-width: 1200px;
  margin: 0 auto;
}
.footer-left {
  flex: 1;
  margin-bottom: 1rem;
}
.footer-right {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
} 
.footer-links {
  display: flex;
  gap: 2rem;
}
.footer-links a {
  color: #ffffff;
  text-decoration: none;
  font-size: 0.9rem;
  margin-left: 15px;
}
.footer-links a:hover {
  text-decoration: underline;
}
.logo {
  font-size: 2rem;
  font-weight: bold;
  margin-bottom: 0.5rem;
  color: white;
}
.logo span {
  color: #b721ff;
}
.tagline {
  font-size: 0.9rem;
  color: #a0a0a0;
  max-width: 300px;
  margin-bottom: 1rem;
}
.copyright {
  font-size: 0.8rem;
  color: #a0a0a0;
}
@media (max-width: 768px) {
  .footer-content {
      flex-direction: column;
      align-items: flex-start;
  }
  .footer-right {
      flex-direction: column;
      align-items: flex-start;
      width: 100%;
  }
  .footer-links {
      margin-top: 1rem;
  }
}




.contact__container {
  position: relative;
  isolation: isolate;
  overflow: hidden;
}

.contact__details {
  padding: 4rem ;
  text-align: center;
  border-radius: 10px;
  background-color: var(--primary-color);
}

.contact__details h3 {
  margin-bottom: 2rem;
  font-size: 1.5rem;
  font-weight: 500;
  color: white;}

.contact__details h2 a {
  font-size: 1.4rem;
  font-weight: 500;
  color: var(--white);
  word-wrap: break-word;
  background-image: var(--gradient-1);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.contact__container img:nth-child(1) {
  position: absolute;
  top: 1rem;
  left: -4rem;
  width: 200px;
  z-index: -1;
}

.contact__container img:nth-child(2) {
  position: absolute;
  bottom: 2rem;
  right: -2rem;
  width: 200px;
  z-index: -1;
}
