/*=============== GOOGLE FONTS ===============*/
@import url("https://fonts.googleapis.com/css2?family=Unbounded:wght@200..900&display=swap");

/*=============== VARIABLES CSS ===============*/
:root {
  --header-height: 3.5rem;

  /*========== Colors ==========*/
  /* 
      Color mode HSL(hue, saturation, lightness)

      Change favorite color:

      Default Cyan: hsl(180, 80%, 48%)
      Blue: hsl(220, 90%, 64%) - Pink: hsl(300, 70%, 64%)
      Green: hsl(110, 70%, 64%) - Purple: hsl(255, 70%, 64%)
      Orange: hsl(15, 80%, 64%) - Red: hsl(358, 80%, 64%)

      For more colors visit: https://htmlcolorcodes.com/
      -> Choose any color 
      -> Copy the color mode (HSL)
  */
  --hue: 180;
  --first-color: hsl(var(--hue), 80%, 48%);
  --first-color-alt: hsl(var(--hue), 80%, 44%);
  --white-color: hsl(var(--hue), 8%, 92%);
  --black-color: hsl(var(--hue), 4%, 8%);
  --gray-color: hsl(var(--hue), 4%, 50%);
  --body-color: hsl(var(--hue), 8%, 8%);
  --container-color: hsl(var(--hue), 8%, 12%);

  /*========== Font and typography ==========*/
  /*.5rem = 8px | 1rem = 16px ...*/
  --body-font: "Unbounded", sans-serif;
  --bigger-font-size: 2rem;
  --h1-font-size: 1.5rem;
  --h2-font-size: 1.25rem;
  --h3-font-size: 1rem;
  --normal-font-size: .938rem;
  --small-font-size: .813rem;

  /*========== Font weight ==========*/
  --font-light: 300;
  --font-regular: 400;
  --font-medium: 500;
  --font-semi-bold: 600;

  /*========== z index ==========*/
  --z-tooltip: 10;
  --z-fixed: 100;
}

/*========== Responsive typography ==========*/
@media screen and (min-width: 1150px) {
  :root {
    --bigger-font-size: 3rem;
    --h1-font-size: 2.25rem;
    --h2-font-size: 1.5rem;
    --h3-font-size: 1.25rem;
    --normal-font-size: 1rem;
    --small-font-size: .875rem;
  }
}

/*=============== BASE ===============*/
* {
  box-sizing: border-box;
  padding: 0;
  margin: 0;
}

html {
  scroll-behavior: smooth;
}

body,
button,
input,
textarea {
  font: var(--font-light) var(--normal-font-size) var(--body-font);
}

body {
  background-color: var(--body-color);
  color: var(--white-color);
}

button {
  outline: none;
  border: none;
}

h1,
h2,
h3,
h4 {
  font-weight: var(--font-semi-bold);
}

ul {
  list-style: none;
}

a {
  text-decoration: none;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

/*=============== REUSABLE CSS CLASSES ===============*/
.container {
  max-width: 1120px;
  margin-inline: auto;
  padding-inline: 1.5rem;
}

.grid {
  display: grid;
  gap: 1.5rem;
}

.section {
  padding-top: calc(var(--header-height) + 2rem);
}

.section__title {
  text-align: center;
  font-size: var(--h1-font-size);
  color: var(--first-color);
  margin-bottom: 1.5rem;
}

.main {
  overflow: hidden;
}

/*=============== HEADER & NAV ===============*/
/* ===== HEADER ===== */
.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: var(--header-height);
  background-color: transparent;
  z-index: var(--z-fixed);
}

.nav {
  height: var(--header-height);
  display: flex;
  justify-content: space-between;
  align-items: center;
}


.nav__logo {
  color: white;
  font-weight: 600;
  font-size: 1.2rem;
}

.nav__menu {
  display: flex;
  gap: 2.5rem;
}

.nav__link {
  color: #bfbfbf;
  font-size: 0.95rem;
  transition: 0.3s;
}

.nav__link:hover,
.active-link {
  color: #00f7ff;
}

.nav__icon {
  font-size: 1.2rem;
  cursor: pointer;
  display: none;
  position: relative;
  z-index: 1000;
}

/* Navigation for mobile devices */


/* Show menu */


/* Header shadow on scroll */
.scroll-header {
  background-color: var(--body-color);
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.35);
}


/* Active link */
.active-link {
  color: var(--first-color);
}

/*=============== HOME ===============*/
/* ===== HOME ===== */
.section {
  padding: 6rem 0 2rem;
}

.home {
  min-height: 100vh;
  display: flex;
  align-items: center;
}

.home__data {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.home__container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 4rem;
}

/* IMAGE */
.home__img {
  width: 340px;
  height: 340px;
  border-radius: 50%;
  border: 4px solid var(--first-color);
  display: flex;
  justify-content: center;
  align-items: center;

  /* SOFT BOTTOM-LEFT GLOW */
  box-shadow:
    0px 10px 18px hsla(var(--hue), 80%, 48%, 0.2),
    0px 22px 35px hsla(var(--hue), 80%, 48%, 0.1);
}


.home__img img {
  width: 100%;
  border-radius: 50%;
}

/* TEXT */
.home__subtitle {
  font-size: 0.9rem;
  color: #bfbfbf;
}

.home__subtitle span {
  color: #00f7ff;
}

.home__title {
  font-size: 3rem;
  margin: 0.5rem 0;
}

.home__description {
  max-width: 400px;
  margin-bottom: 2rem;
  color: #cfcfcf;
}

/* BUTTONS */
.home__buttons {
  display: flex;
  gap: 1rem;
}

.button {
  display: inline-flex;
  background-color: #00f7ff;
  color: #0b0f0f;
  padding: 0.75rem 1.8rem;
  border-radius: 0.5rem;
  font-weight: 500;
  transition: 
    transform 0.1s ease,
    box-shadow 0.2s ease,
    background-color 0.5s ease;
}

.button:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 247, 255, 0.35);
}

.button--ghost {
  background: transparent;
  border: 1px solid #00f7ff;
  color: #00f7ff;
}


.home__img-wrapper {
  position: relative;
  display: flex;
  align-items: center;
}

/* SOCIAL ICONS */
.home__social {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-right: 1.5rem;
}

.home__social-link {
  color: var(--white-color);
  font-size: 1.2rem;
  transition: 0.3s;
}

.home__social-link:hover {
  color: var(--first-color);
  transform: translateY(-3px);
}

.contact__message {
  margin-top: 1rem;
  font-size: 0.9rem;
  text-align: center;
  opacity: 0;
  transition: opacity 0.4s ease;
}

.contact__message.success {
  color: #4caf50;
  opacity: 1;
}

.contact__message.error {
  color: #f44336;
  opacity: 1;
}


/*=============== BUTTON ===============*/
.scrollup {
  position: fixed;
  right: 1.5rem;
  bottom: -50%;
  background-color: var(--first-color);
  padding: 0.6rem;
  border-radius: 0.5rem;
  display: inline-flex;
  color: var(--black-color);
  font-size: 1.2rem;
  z-index: 100;
  transition: 0.4s;
}

.show-scroll {
  bottom: 3rem;
}


/*=============== ABOUT ===============*/
.about__container {
  grid-template-columns: 1fr 1fr;
  align-items: center;
  justify-content: center;
  gap: 7rem;
}

.about .section__title {
  text-align: left;
  padding-top: 3rem;
}

/* TEXT */
.about__description {
  max-width: 500px;
  margin-bottom: 4rem;
  color: var(--gray-color);
}

.about__skills-title {
  margin-top: 4rem;
  margin-bottom: 1rem;
}


/* SKILLS */
.about__skills {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  margin-top: 1.5rem;
}

.about__skills span {
  background-color: var(--container-color);
  color: var(--first-color);
  padding: 0.4rem 0.9rem;
  border-radius: 1rem;
  font-size: var(--small-font-size);
}

.about__work {
  max-width: 420px;
}

.about__work-title {
  font-size: 2rem;
  color: var(--first-color);
  margin-bottom: 2rem;
  position: relative;
}

.about__work-title::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -0.6rem;
  width: 40px;
  height: 2px;
  background-color: var(--first-color);
}

.about__work-item {
  margin-bottom: 1.6rem;
}

.about__work-item h4 {
  color: var(--white-color);
  font-size: 1rem;
  margin-bottom: 0.3rem;
}

.about__work-item p {
  color: var(--gray-color);
  font-size: 0.9rem;
  line-height: 1.6;
}


/*=============== PROJECTS ===============*/
.projects__container {

  grid-template-columns: repeat(2, 1fr);
  gap: 2.5rem;
  margin-top: 3rem;
}

.project__card {
  position: relative;
  overflow: hidden;
  border-radius: 1.2rem;
  background-color: var(--container-color);
  transition: transform 0.4s ease;
}

.project__card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 1.2rem;
  transition: filter 0.4s ease, transform 0.4s ease;
}

.project__card:hover img {
  filter: blur(4px) brightness(0.5);
  transform: scale(1.05);
}

.project__card:hover {
  transform: translateY(-8px);
}

.project__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to top,
    rgba(0, 0, 0, 0.85),
    rgba(0, 0, 0, 0.3)
  );
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 1.5rem;

  opacity: 0;
  transform: translateY(10px);
  transition: opacity 0.4s ease, transform 0.4s ease;
}

.project__card:hover .project__overlay {
  opacity: 1;
  transform: translateY(0);
}
.project__card {
  min-height: 260px;
}

.project__title {
  font-size: 1.1rem;
  color: var(--white-color);
  margin-bottom: 0.4rem;
}

.project__description {
  font-size: 0.85rem;
  color: var(--white-color);
  line-height: 1.5;
}


.project__tech {
  margin-top: 0.6rem;
  font-size: 0.75rem;
  color: var(--first-color);
  font-weight: 500;
  letter-spacing: 0.5px;
}

/*btns*/
.project__buttons {
  display: flex;
  gap: 0.8rem;
  margin-top: 1rem;

}

.project__btn {
  font-size: 0.75rem;
  padding: 0.45rem 0.9rem;
  border-radius: 0.6rem;
  background-color: var(--first-color);
  color: var(--black-color);
  font-weight: var(--font-medium);
  transition: 0.3s ease;
}

.project__btn:hover {
  opacity: 0.85;
}

.project__btn--ghost {
  background: transparent;
  border: 1px solid var(--first-color);
  color: var(--first-color);
}

.project__buttons {
  transform: translateY(6px);
  transition: transform 0.3s ease;
}

.project__card:hover .project__buttons {
  transform: translateY(0);
}




/*=============== RESUME ===============*/


/*=============== CONTACT ===============*/
.contact__container {
  grid-template-columns: 1fr 1.2fr;
  gap: 4rem;
  margin-top: 3rem;
}

.contact__info {
  display: flex;
  flex-direction: column;
  gap: 1.4rem;
}

.contact__item {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  color: var(--gray-color);
  font-size: 0.9rem;
}

.contact__item i {
  color: var(--first-color);
  font-size: 1.1rem;
}

.contact__socials {
  display: flex;
  gap: 1rem;
  margin-top: 1.5rem;
}

.contact__socials a {
  color: var(--first-color);
  font-size: 1.3rem;
  transition: 0.3s;
}

.contact__socials a:hover {
  transform: translateY(-3px);
}

.contact__form {
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
}

.contact__form input,
.contact__form textarea {
  background: transparent;
  border: 1px solid var(--first-color);
  border-radius: 0.6rem;
  padding: 0.9rem 1rem;
  color: var(--white-color);
  font-family: var(--body-font);
}

.contact__form textarea {
  height: 140px;
  resize: none;
}

.contact__button {
  align-self: flex-start;
  background-color: var(--first-color);
  color: var(--black-color);
  padding: 0.7rem 1.6rem;
  border-radius: 0.6rem;
  font-weight: var(--font-medium);
  cursor: pointer;
  transition: 0.3s;
}

.contact__button:hover {
  opacity: 0.85;
}


/*=============== FOOTER ===============*/
.footer {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding: 2rem 0;
  margin-top: 4rem;
}

.footer__container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.footer__copy {
  font-size: 0.85rem;
  color: var(--gray-color);
}

.footer__socials {
  display: flex;
  gap: 1rem;
}

.footer__socials a {
  color: var(--gray-color);
  font-size: 1.2rem;
  transition: 0.3s;
}

.footer__socials a:hover {
  color: var(--first-color);
  transform: translateY(-2px);
}


/*=============== SCROLL BAR ===============*/
.scroll-header {
  background-color: var(--body-color);
  box-shadow: 0 2px 10px rgba(0,0,0,0.3);
}

/*=============== SCROLL UP ===============*/


/* Show Scroll Up */


/*=============== BREAKPOINTS ===============*/

@media screen and (max-width: 1024px) {
  .about__container {
    grid-template-columns: 1fr;
    gap: 3rem;
  }

  .about__visual {
    justify-self: center;
  }

  /*projet section*/
  .projects__container {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* For small devices */
@media screen and (max-width: 768px) {
  .nav__menu {
    position: fixed;
    top: 0;
    right: -100%; 
    width: 70%;
    height: 100vh;
    background-color: var(--body-color);
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 2rem;
    transition: right 0.4s ease;
  }

  /*  class show-menu */
  .show-menu {
    right: 0;
  }

  .nav__icon {
    display: block; /* icon كيبان فالموبايل */
    font-size: 1.5rem;
    cursor: pointer;
  }

  /*Home page*/
  .home__container {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 2.5rem;
  }

  .home__img {
    margin: 0 auto;
  }

  .home__buttons {
    justify-content: center;
  }

  /*projet section*/
  .projects__container {
    grid-template-columns: 1fr;
  }


  .contact__container {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }

  .contact__button {
    align-self: center;
  }

  .footer__container {
    flex-direction: column;
    text-align: center;
    gap: 1rem;
  }
}

/* For medium devices */


/* For large devices */


/* For 2K resolutions (2048 x 1152, 2048 x 1536) */