@charset "UTF-8";
:root {
  --container-width: 119rem;
  --gutter: 2rem; /* gutter means gap */
  --color-black: #000;
  --color-white: #fff;
  --color-blue: #2374e1;
  --color-light-blue: #1d9bf0;
  --color-dark-blue: #0a66c2;
  --color-darker-blue: #143ce8;
  --color-red: #ff0000;
  --color-green: #03a696;
  --color-grey: #f6f6f6;
  --color-dark-green: #42959b;
  --color-background: var(--color-white);
  --color-text: var(--color-black);
  --color-box-img: var(--color-black);
  --color-link-bg: var(--color-black);
  --color-input-border: var(--color-black);
  --font-family-raleway: "Raleway", sans-serif;
  --font-family-poppins: "Poppins", sans-serif;
  --font-weight-regular: 400;
  --font-weight-medium: 500;
  --font-weight-semi-bold: 600;
  --font-weight-bold: 700;
  --font-size-70: 7rem;
  --font-size-65: 6.5rem;
  --font-size-40: 4rem;
  --font-size-38: 3.8rem;
  --font-size-24: 2.4rem;
  --font-size-22: 2.2rem;
  --font-size-20: 2rem;
  --font-size-18: 1.8rem;
  --font-size-15: 1.5rem;
  --transition-timing: 0.3s;
}

/* CSS Reset */
* {
  margin: 0;
  padding: 0;
  font: inherit;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  font-size: 10px;
}

a {
  color: inherit; /* Cuz it's blue by default */
  display: inline-block; /* to give it margin & padding */
}

button {
  background-color: transparent;
  border: none;
  cursor: pointer;
  border: 0;
}

ul,
ol {
  list-style: none; /* To remove the default bullet points */
}

/* End CSS Reset */
html {
  scroll-behavior: smooth; /* to make the top nav move to the section smoothly */
  scroll-padding-top: 11rem; /* to fix the issue of scrolling to a destination a little bit above the titles of the sections */
}

body {
  font-size: 1.6rem; /* 16px */
  font-family: var(--font-family-raleway);
  background-color: var(--color-background);
  color: var(--color-text);
}

.video-loop {
  position: fixed;
  top: 0;
  left: 0;
  min-width: 100%;
  min-height: 100%;
  opacity: 0.08; /* 0 to 1, 1 = 100%*/
  z-index: -1;
}

.container {
  display: grid;
  row-gap: 11rem;
  margin: 0 auto;
  /* max-width: var(--container-width); */
  max-width: calc(var(--container-width) + var(--gutter) * 2);
  /* مش عارف السبب الصراحة بس في منطق من وراه */
  padding-inline: var(--gutter);
}

/* Global Styles */
.section {
  position: relative;
  display: grid;
  grid-template-columns: repeat(2, auto); /* Notice auto, not 1fr, because we need them to take the size of the content -- this issue confused me before, because i was putting effort to make the columns match the size of the design but turns out its easy*/
  align-items: start;
}

.section--with-bg {
  padding: 11rem 0;
}

.section--with-bg::before {
  content: "";
  position: absolute;
  height: 100%;
  width: 100vw;
  background-color: var(--color-grey);
  justify-self: center;
  z-index: -1;
}

.h2-heading { /* We moved it from the Skills part to here because its more of a Global Styling not Specific  to the Skills part. */
  font-size: var(--font-size-65);
  font-weight: var(--font-weight-bold);
  grid-column: 1/-1; /* To Make the h2 take the full row */
  margin-bottom: 8.7rem;
}

.h3-heading { /* same here but from the projects section */
  font-size: var(--font-size-38);
  font-weight: var(--font-bold);
  margin-bottom: 2.5rem;
}

/* End Global Styles */
.header {
  padding: 3rem 0;
  /* position: relative; Important */
  position: sticky;
  top: 0;
  z-index: 1;
  display: flex;
  justify-content: center; /* Important - without it you'll see the line as if it didnt take the full width, that was becacuse it wasn't centered. */
}

.header::after {
  content: ""; /* Must Write It */
  position: absolute; /* Important */
  background-color: var(--color-background);
  width: 100vw; /* Important - Without it the line won't be able to take a width greater than that of the header. */
  bottom: 0;
  /* Either this line - by me */
  /* height: 0.1rem; */
  /* Or these lines */
  height: 100%;
  border-bottom: 0.1rem solid var(--color-input-border);
  z-index: -1; /* Important - without it the links are unclickable because of the ::after */
}

.navigation {
  transition: var(--transition-timing); /* For the transition of the nav bar in the mobile phones when burger menu is pressed */
}

.navigation__list {
  display: flex;
  gap: 2rem;
}

.navigation__link:link,
.navigation__link:visited {
  text-decoration: none;
  font-weight: var(--font-weight-medium);
}

.navigation__link:link:hover,
.navigation__link:active {
  text-decoration: underline;
  /* color: var(--color-text); not sure of the need of this */
}

.container:has(#bio:target) .navigation__bio,
.container:has(#skills:target) .navigation__skills,
.container:has(#media:target) .navigation__media,
.container:has(#projects:target) .navigation__projects,
.container:has(#clients:target) .navigation__clients,
.container:has(#contact:target) .navigation__contact { /* Very Nice.. the target, bio here, is the value written in your search bar after the # character.. very nice */
  color: var(--color-blue);
  text-decoration: underline;
  font-weight: var(--font-weight-bold);
}

.burger-menu__checkbox {
  display: none; /* cuz we only want it for the mobile version */
}

/* Toggle */
.toggle {
  display: flex;
  gap: 1rem;
  margin-left: auto; /* Important - Very Nice Idea to Make the toggle class elements at Far Right */
}

.toggle__title {
  font-weight: var(--font-weight-medium);
  font-size: var(--font-size-18);
}

.toggle__checkbox {
  display: none; /* Important - we won't need the checkbox itself because we can't style it! */
}

.toggle__label {
  display: block; /* Because probably it's inline and we want to give it a Width and Height (Remember this Concept inline elements dont get to be specified a width and heigh and ~marg..) - and I see commenting it does nothing */
  position: relative;
  background-color: var(--color-black);
  border-radius: 1.5rem;
  width: 4.5rem;
  height: 2.2rem;
  cursor: pointer;
  padding: 0.3rem 0.4rem;
  transition: 0.3s; /* Important */
}

.toggle__label::after {
  content: "";
  position: absolute;
  width: 1.6rem;
  height: 1.6rem;
  border-radius: 50%;
  display: block; /* Same reason as above display: block */
  background-color: var(--color-white);
  transition: 0.3s; /* Important */
}

.toggle__checkbox:checked + .toggle__label { /* Important */
  background-color: var(--color-white);
}

.toggle__checkbox:checked + .toggle__label::after { /* Important */
  transform: translateX(2.1rem);
  background-color: var(--color-green);
}

/* End Toggle */
/* Bio */
.bio {
  -moz-column-gap: 7.4rem;
       column-gap: 7.4rem;
  row-gap: 0;
  grid-template-columns: repeat(2, 1fr);
  /* We want them to be equal, and by writing this we're Overriding the top one in .section (The Generic One we Made) */
}

.bio__heading {
  font-size: var(--font-size-70);
  font-weight: var(--font-weight-bold);
}

.bio__objective {
  font-family: var(--font-family-poppins);
  font-weight: var(--font-weight-regular);
  font-size: var(--font-size-20);
  margin: 3rem 0 8rem;
}

.bio__name {
  font-weight: var(--font-weight-semi-bold);
}

.bio__almdrasa {
  color: var(--color-green);
}

.bio__facebook {
  color: var(--color-blue);
}

.bio__twitter {
  color: var(--color-light-blue);
}

.bio__linkedin {
  color: var(--color-dark-blue);
}

.bio__youtube {
  color: var(--color-red);
}

.bio__links {
  font-size: 2.4rem;
  font-weight: var(--font-weight-semi-bold);
  text-decoration: none;
}

.bio__say-hi-link {
  background-color: var(--color-link-bg);
  color: var(--color-white);
  padding: 0.7rem 4.7rem;
}

.bio__find-out-link {
  padding: 0.7rem 0;
  margin-inline-start: 1.4rem;
}

@keyframes jump {
  0% {
    transform: translateY(0.5rem); /* go up */
  }
  35% {
    transform: translateY(-0.5rem); /* go down */
  }
  70% {
    transform: translateY(0); /* go up */
  }
  100% {
    transform: translateY(0); /* stay there */
  }
}
.bio__arrow {
  display: inline-block; /* Highly Important - when I removed inline-block the arrow didn't move! */
  /* the span is inline so we made it like this to be able to control it (width, height, marg, etc) */
  animation: jump 1s infinite alternate ease-in-out;
}

.bio__pic-content {
  display: flex;
  position: relative;
  align-items: flex-end;
  justify-self: end; /* Important - justify-self only applies to the element it's declared on—not its pseudo-elements like ::after 

default, that property would take stretch, that's why removing that line widens the container and so the black background becomes wide as well, since its taking 100% of the width.
*/
}

.bio__pic-content::before {
  content: "";
  position: absolute;
  background-color: var(--color-box-img);
  width: 100%;
  height: 46rem; /* put a height value close to that of the image */
  z-index: -1;
  border-radius: 1.8rem;
  box-shadow: 2.17543px 8.7017px 38.0699px rgba(0, 0, 0, 0.15); /* Gotten from the Designer */
}

.bio__pic {
  width: 42.7rem;
}

/* End Bio */
/* Skills */
.skills__list {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  row-gap: 5rem;
}

.skills__item {
  transition: var(--transition-timing);
  -webkit-user-select: none;
     -moz-user-select: none;
          user-select: none;
}

.skills__title {
  font-size: var(--font-size-38);
  font-weight: var(--font-weight-semi-bold);
}

.skills__years {
  display: inline-block;
  font-size: var(--font-size-20);
  margin-top: 1rem;
}

.skills__item:hover {
  text-shadow: 0 0 2px var(--color-green);
}

/* End Skills */
/* Media */
.media {
  align-items: center;
  justify-content: center;
}

.media__video {
  max-width: 100%; /* Notice max-width, so that it increases & decreases with the parent.. used usually both with images and videos*/
}

/* End Media */
/* Projects */
.projects__main {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  -moz-column-gap: 7.4rem;
       column-gap: 7.4rem;
  row-gap: 7.5rem;
}

.projects__img {
  box-shadow: 0 0 0.5rem rgba(0, 0, 0, 0.2);
  max-width: 100%;
}

.projects__data {
  align-self: center;
}

.project__description {
  line-height: 1.5;
}

.projects__links {
  color: var(--color-darker-blue);
  font-family: var(--font-family-poppins);
  font-weight: var(--font-weight-medium);
  margin-top: 2.3rem;
}

.projects__links::after {
  content: "";
  display: inline-block;
  width: 1.4rem;
  height: 1.4rem;
  background-image: url(images/external-icon.png);
  background-size: contain; /* means whatever the size of its container, stretch or do whatever it takes to show the background-image */
  margin-left: 0.6rem;
}

/* End Projects */
/* Clients Opinions */
.clients__opinions {
  grid-column: 1/-1;
  font-size: var(--font-size-40);
  line-height: 1.7;
}

.clients__wrapper {
  display: flex;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
}

.clients__opinion {
  flex-basis: 100%; /* basis = width */
  flex-shrink: 0;
  scroll-snap-align: start;
}

/* End Clients Opinions */
/* Contact */
.contact {
  -moz-column-gap: 20rem;
       column-gap: 20rem;
  row-gap: 0;
  grid-template-columns: repeat(2, 1fr);
  align-items: center;
}

.contact__description {
  font-size: var(--font-size-20);
  line-height: 1.9;
}

.contact__email {
  font-weight: var(--font-weight-bold);
  margin: 2.5rem 0;
}

.contact__social {
  transition: var(--transition-timing);
}

.contact__social:hover {
  transform: scale(1.2);
}

.contact__inputs {
  display: flex;
  gap: 3rem;
}

.contact__input {
  border: 0;
  outline: 0; /* not sure why it was reset here although, You must explicitly apply it to each element.*/
  border-bottom: 0.1rem solid var(--color-input-border);
  background: transparent;
  flex: 1; /* so that both take up equal extra area (extra area split among them equally) */
}

.contact__textarea {
  width: 100%;
  margin-top: 4rem;
}

.contact__button {
  background-color: var(--color-link-bg);
  color: var(--color-white);
  padding: 1.7rem 1.8rem;
  font-weight: var(--font-weight-medium);
  font-size: var(--font-size-24);
  margin-top: 3.4rem;
}

form:invalid::after { /* Very Nice.. other things include empty (but mostly used with input not form), etc. */
  content: "*";
  font-size: var(--font-size-38);
  color: var(--color-red);
}

/* End Contact */
/* Footer */
.footer {
  padding: 1rem 0;
  font-size: var(--font-size-15);
  border-top: 0.1rem solid var(--color-black);
}

/* End Footer */
/* Theme */
html:has(.toggle__checkbox:checked) {
  --color-background: var(--color-black);
  --color-text: var(--color-white);
  --color-box-img: var(--color-green);
  --color-link-bg: var(--color-green);
  --color-grey: #080808;
  --color-input-border: var(--color-white);
}

/* End Theme */
/* Responsive Design */
@media (max-width: 1000px) { /* refers to phones and tablets, either in portrait and landscape */
  html {
    font-size: 8px;
  }
}
/* Tablet / Ipad */
@media (max-width: 800px) { /* refers to tablets, either in portrait and landscape */
  .container {
    row-gap: 8rem;
  }
  .section {
    grid-template-columns: 1fr;
  }
  .bio__pic-content {
    grid-row: 1;
    justify-self: center;
    margin-bottom: 4rem;
  }
  .skills__list {
    grid-template-columns: repeat(2, 1fr);
  }
  .projects__main {
    grid-template-columns: 1fr;
    row-gap: 6rem;
    justify-items: center;
  }
  .projects__data:nth-of-type(2) {
    order: 1;
  }
  .clients__opinions {
    font-size: var(--font-size-24);
  }
  .contact {
    row-gap: 6rem;
  }
  .contact__formContent {
    order: -1;
  }
}
/* Mobile */
@media (max-width: 500px) { /* refers to phones, either in portrait and landscape */
  .header {
    padding: 0;
  }
  .header::before {
    z-index: 0;
  }
  .bio__pic {
    width: 100%;
  }
  .burger-menu {
    display: flex;
    flex-direction: column;
    cursor: pointer; /* good practice */
    gap: 0.75rem;
    z-index: 0;
    align-self: center;
  }
  .burger-menu__bar {
    height: 0.3rem;
    width: 4.375rem;
    background-color: var(--color-text);
    transition: var(--transition-timing);
  }
  .header:has(.burger-menu__checkbox:checked) .burger-menu__bar:nth-child(1) {
    transform: translateY(10px) rotate(40deg);
  }
  .header:has(.burger-menu__checkbox:checked) .burger-menu__bar:nth-child(2) {
    opacity: 0;
    visibility: hidden;
  }
  .header:has(.burger-menu__checkbox:checked) .burger-menu__bar:nth-child(3) {
    transform: translateY(-7px) rotate(-40deg);
  }
  .burger-menu__checkbox:checked + .navigation {
    top: 100%;
  }
  .navigation {
    position: absolute;
    width: 100vw;
    background-color: var(--color-background);
    top: 0;
    padding: 3rem 0; /* eng. mohamed: to have the same width as the header */
    border-bottom: 0.1rem solid var(--color-text);
    z-index: -1;
  }
  .navigation__list {
    justify-content: center;
  }
  .toggle {
    padding: 3rem 0;
    z-index: 1;
  }
}
/* End Responsive Design *//*# sourceMappingURL=style.css.map */