:root {
  --container-width: 125rem;
  --boys: 2rem;

  --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-36: 3.6rem;
  --font-size-34: 3.4rem;
  --font-size-32: 3.2rem;
  --font-size-30: 3rem;
  --font-size-28: 2.8rem;
  --font-size-26: 2.6rem;
  --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;
}

a {
  color: inherit;
  display: inline-block;
}

button {
  background-color: transparent;
  border: none;
  cursor: pointer;
}

ul,
ol {
  list-style: none;
}
/* End CSS Reset */

html {
  font-size: 65%;
  scroll-behavior: smooth;
  scroll-padding-top: 11rem;
}

body,
[type="submit"] {
  font-size: 1.8rem;
  font-family: var(--font-family-raleway);
  background-color: var(--color-background);
  color: var(--color-text);
  border: 0;
}

.container {
  position: relative;
  display: grid;
  row-gap: 10rem;
  margin: 0 auto;
  max-width: var(--container-width);
  padding-inline: var(--gutter);
}
/* Global Styles */
.section {
  position: relative;
  display: grid;
  grid-template-columns: repeat(2, auto);
  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 {
  font-size: var(--font-size-65);
  font-weight: var(--font-weight-bold);
  grid-column: 1/-1;
  margin-bottom: 8.7rem;
  text-transform: uppercase;
}
.h3-heading {
  font-size: var(--font-size-38);
  font-weight: var(--font-weight-bold);
  margin-bottom: 2.5rem;
}

/* End Global Styles */

.header {
  position: sticky;
  top: 0;
  background-color: var(--color-background);
  padding: 2.5rem 0;
  display: flex;
  justify-content: center;
  z-index: 1;
}

.header::before {
  content: "";
  position: absolute;
  height: 100%;
  width: 100vw;
  border-bottom: 0.1rem solid var(--color-input-border);
  top: 0;
  z-index: -1;
  background-color: var(--color-background);
}

.navigation {
  transition: var(--transition-timing);
}

.navigation__list {
  display: flex;
  gap: 2rem;
}

.navigation__link:link,
.navigation__link:visited {
  text-decoration: none;
  font-weight: var(--font-weight-medium);
}

.navigation__link:hover,
.navigation__link:active {
  text-decoration: underline;
  color: var(--color-text);
}

.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 {
  color: var(--color-blue);
  text-decoration: underline;
  font-weight: var(--font-weight-bold);
}

.burger-menu__checkbox {
  display: none;
}

/* Toggle */
.toggle {
  display: flex;
  gap: 1rem;
  margin-left: auto;
}

.toggle__title {
  font-weight: var(--font-weight-medium);
  font-size: var(--font-size-18);
}

.toggle__checkbox {
  display: none;
}

.toggle__label {
  display: block;
  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;
}

.toggle__label::after {
  content: "";
  width: 1.6rem;
  height: 1.6rem;
  border-radius: 50%;
  display: block;
  background-color: var(--color-white);
  transition: 0.3s;
}

.toggle__checkbox:checked + .toggle__label {
  background-color: var(--color-white);
}

.toggle__checkbox:checked + .toggle__label::after {
  transform: translateX(2.1rem);
  background-color: var(--color-green);
}
/* End Toggle */

/* Bio */
.bio {
  column-gap: 7.4rem;
  grid-template-columns: repeat(2, 1fr);
}

.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-24);
  margin: 3rem 0 6rem;
}

.bio__name {
  font-weight: var(--font-weight-semi-bold);
}

.bio__almdrasa {
  color: var(--color-dark-green);
}

.bio__almdrasa:link,
.bio__almdrasa:visited {
  text-decoration: none;
  font-weight: var(--font-weight-semi-bold);
}

.bio__almdrasa:hover,
.bio__almdrasa:active {
  text-decoration: underline;
}

.bio__links {
  font-size: 2.4rem;
  font-weight: var(--font-weight-semi-bold);
  text-decoration: none;
}

.say-hi-link {
  background-color: var(--color-link-bg);
  color: var(--color-white);
  padding: 0.7rem 4.7rem;
}

.find-out-link {
  padding: 0.7rem 0;
  margin-inline-start: 1.4rem;
}

@keyframes jump {
  0% {
    transform: translateY(0.5rem);
  }
  35% {
    transform: translateY(-0.5rem);
  }
  70% {
    transform: translateY(0);
  }
  100% {
    transform: translateY(0);
  }
}

.bio__arrow {
  font-size: 2.5rem;
  display: inline-block;
  animation: jump 1s infinite alternate;
}

.bio__pic-content {
  display: flex;
  position: relative;
  align-items: flex-end;
  justify-self: end;
}
.bio__pic-content::before {
  content: "";
  position: absolute;
  background-color: var(--color-box-img);
  width: 100%;
  height: 53rem;
  z-index: -1;
  border-radius: 1.5rem;
  box-shadow: 2.17543px 8.7017px 38.0699px rgba(0, 0, 0, 0.15);
}

.bio__pic {
  width: 44.7rem;
  padding: 1.1rem;
  border-radius: 2rem;
}

/* End Bio */

/* Skills */
.skills__list {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  row-gap: 5rem;
  grid-column: 1/-1;
}

.skills__item {
  transition: var(--transition-timing);
  user-select: none;
}

.skills__title {
  font-size: var(--font-size-38);
  font-weight: var(--font-weight-semi-bold);
  margin-bottom: 2rem;
}

.logo__img {
  justify-content: center;
  margin-right: 1rem;
}

.skills__item:hover {
  text-shadow: 0 0 2px var(--color-green);
}

/* End Skills */

/* Media */
.media__list {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-column: 1/-1;
  row-gap: 5rem;
}

.media__img {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border-radius: 1.8rem;
}

.media__img:hover {
  box-shadow: 0 0 15px rgba(0, 0, 0, 0.2);
  transform: scale(1.1);
}

@keyframes typing {
  from {
    width: 0%;
  }
  to {
    width: 100%;
  }
}

.future__video {
  font-size: var(--font-size-26);
  width: 85%;
  font-style: italic;
  margin-top: 5rem;
  font-weight: var(--font-weight-medium);
  overflow: hidden;
  animation: typing 2s steps(20) infinite alternate-reverse;
}

.tight-background {
  background-color: var(--color-grey);
  padding: 0.4rem;
  font-style: italic;
  display: inline;
}

/* End Media */

/* Projects */
.projects__main {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  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__img:hover {
  box-shadow: 0 0 1rem rgba(0, 0, 0, 0.4);
}

.projects__data {
  align-self: center;
}

.projects__description {
  line-height: 1.5;
}

.projects__link {
  color: var(--color-darker-blue);
  font-family: var(--font-family-poppins);
  font-weight: var(--font-weight-medium);
  margin-top: 2.3rem;
}

.projects__link::after {
  content: "";
  display: inline-block;
  width: 1.4rem;
  height: 1.4rem;
  background-image: url(./img/external-icon.png);
  background-size: contain;
}

/* End Projects */

/* Clients */
.clients__opinions {
  grid-column: 1/-1;
  font-size: var(--font-size-28);
  line-height: 1.7;
  padding: 2rem;
  max-width: 850px;
  margin: 0 auto;
}

.clients__wrapper ul {
  list-style-type: disc;
  padding-left: 1.5rem;
}

.clients__list {
  margin-left: 3rem;
}

.start__line {
  font-weight: var(--font-weight-semi-bold);
}

.clients__opinion:first-child {
  margin-bottom: 2.5rem;
}

.clients__opinion:last-child {
  margin-top: 2.5rem;
  font-style: italic;
}

.clients__list li {
  margin-bottom: 1.5rem;
  position: relative;
  padding-left: 2rem;
}

.clients__list li::before {
  content: "";
  font-size: 2.5rem;
  position: absolute;
  left: 0;
  top: -0.5rem;
}

.start__line {
  display: inline-block;
  font-weight: var(--font-weight-bold);
  margin-right: 0.5rem;
}

.clients.section {
  background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
  border-radius: 3rem;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.Dream {
  margin-left: 2rem;
  margin-top: 2rem;
  margin-bottom: 4rem;
}

/* End Clients */

/* Contact */
.contact {
  grid-template-columns: repeat(2, 1fr);
  column-gap: 20rem;
  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__socials {
  display: flex;
  gap: 1rem;
  align-items: center;
}

.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;
  background: transparent;
  border-bottom: 0.1rem solid var(--color-input-border);
  flex: 1;
}

.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;
  border-radius: 0.3rem;
}

.contact__button:active {
  transform: scale(0.95);
  background-color: var(--color-dark-blue);
}

form:invalid::after {
  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);
}

html:has(.toggle__checkbox:checked) .clients.section {
  background: linear-gradient(135deg, #222 0%, #000 100%);
  box-shadow: 0 5px 15px rgba(255, 255, 255, 0.05);
}

html:has(.toggle__checkbox:checked) .contact__social {
  filter: invert(99%) sepia(0%) saturate(0%) hue-rotate(310deg) brightness(113%)
    contrast(102%);
}

html:has(.toggle__checkbox:checked) .media__img {
  filter: invert(99%) sepia(0%) saturate(0%) hue-rotate(310deg) brightness(113%)
    contrast(102%);
}

html:has(.toggle__checkbox:checked) .skills__item {
  color: var(--color-white);
}

html:has(.toggle__checkbox:checked) .skills__item:hover {
  text-shadow: 0 0 10px var(--color-green);
}

html:has(.toggle__checkbox:checked) .projects__img:hover {
  /* transform: scale(1.05);
  opacity: 0.9; */
  box-shadow: 0 0 3rem rgba(255, 255, 255, 0.4);
}

/* End Theme */

/* Responsive */
@media (max-width: 1000px) {
  html {
    font-size: 8px;
  }
}

@media (max-width: 800px) {
  .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__formContact {
    order: -1;
  }
}

@media (max-width: 500px) {
  .header {
    padding: 0;
  }

  .header::before {
    z-index: 0;
  }

  .bio__pic {
    width: 100%;
  }

  .burger-menu {
    display: flex;
    flex-direction: column;
    cursor: pointer;
    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;
    border-bottom: 0.1rem solid var(--color-text);
    z-index: -1;
  }

  .navigation__list {
    justify-content: center;
  }

  .toggle {
    padding: 3rem 0;
    z-index: 1;
  }

    .bio__pic-content::before {
    height: 100%;
    width: 100%;
    top: 0;
    border-radius: 1.5rem; 
  }
  
  .bio__pic {
    width: 100%;
    max-width: 35rem; 
    padding: 0.75rem;
  }

}

/* End Responsive */
