@font-face {
  font-family: "bitcount";
  src: url("../font/Bitcount/static/Bitcount-Light.ttf");
  src: url("../font/Bitcount/static/Bitcount-Regular.ttf");
}
@font-face {
  font-family: "urban-l";
  src: url("../font/Urbanist/static/Urbanist-Light.ttf");
  font-weight: 300;
}
@font-face {
  font-family: "urban-b";
  src: url("../font/Urbanist/static/Urbanist-ExtraBold.ttf");
  font-weight: 800;
}
@font-face {
  font-family: "rubick-m";
  src: url("../font/Rubik/static/Rubik-Medium.ttf");
  src: url("../font/Rubik/static/Rubik-Regular.ttf");
}
@font-face {
  font-family: "rubick-b";
  src: url("../font/Rubik/static/Rubik-ExtraBold.ttf");
}
:root {
  --text-color: #2c2c2c;
  --body-bg: #f6f6f6;
  --content-bg: #ffffff;
  --header: #264653;
  --links: #0d9488;
  --link-hover: #38bdf8;
  --gray: #f4f4f4;
  --white: #ffffff;
  --gray-2: #bdbdbd;
  --black: #222222;
}
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}
body,
html {
  perspective: 1000px;
  scroll-behavior: smooth;
}

body {
  font-family: "urban-l ", "rubick-m";
  font-size: 18px;
  background-color: var(--body-bg);
  color: var(--text-color);
  line-height: 1.6;
  position: relative;
  line-height: 1.6;
  text-align: justify;
}
header {
  padding: 20px 15px;
  margin: 10 auto;
  display: flex;
  flex-flow: row nowrap;
  align-items: flex-start;
  gap: 20px;
  direction: ltr !important;
}
main {
  padding: 20px 15px;
  margin: 10 auto;
}
p {
  font-family: "urban-l", "rubick-m";
  font-size: 18px;
}
ul {
  list-style: none;
}
li {
  font-family: "urban-l", "rubick-m";
  font-size: 18px;
  text-align: justify;
  padding: 10px;
}
span {
  color: var(--header);
  font-size: 24px;
  font-family: "urban-b", "rubick-b";
}
h1 {
  color: rgb(202, 130, 48);
  text-shadow: 0px 0px 6px #ffffff;
  text-shadow: 0px 0px -4px #d89a26;
  text-shadow: 0px 0px 8px #ffffff;
  font-family: "bitcount";
  font-size: calc(4vw + 3vh + 4vmin);
  z-index: 30;
}
h2,
h3,
h4 {
  color: var(--header);
  font-family: "urban-b", "rubick-b";
  font-weight: 800;
  font-size: calc(3vw + 2vh + 1vmin);
  white-space: nowrap;
  margin-bottom: 10px;
  border-bottom: 2px solid var(--black);
}
footer {
  display: flex;
  flex-flow: row nowrap;
  justify-content: center;
  align-items: center;
  margin-top: 60px;
  text-align: center;
  font-size: 18px;
  border-top: 2px solid black;
  padding-top: 20px;
  p {
    color: black;
  }
}
.navbar {
  font-family: "urban-l";
  display: flex;
  flex-flow: row nowrap;
  justify-content: space-evenly;
  align-items: center;
  padding: 0px 10px;
  gap: 15px;
  background-color: var(--content-bg);
  position: sticky;
  top: 0;
  z-index: 1000;
  direction: ltr !important;
  color: var(--text-color);
}
.cl {
  background-color: var(--content-bg);
}

.landing {
  width: 100%;
  height: 100vh;
  background-color: rgb(172, 172, 172);
  background-image: url("../media/landing.jpg");
  background-size: cover;
  background-position: top;
}
.landing-container {
  background-color: rgba(0, 0, 0, 0.308);
  backdrop-filter: blur(4px);
  padding: 0px 30px;
  margin-bottom: 300px;
  z-index: 20;
  h1 {
    text-align: center;
  }
}
.header-container {
  width: 99%;
  display: flex;
  flex-flow: column wrap;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
  gap: 20px;
  padding: 30px;
  border-radius: 8px;
  box-shadow: 5px 5px 0px rgba(255, 255, 255, 0.651);
  background-color: var(--content-background);
}
.header-backdrop {
  width: 100%;
  height: auto;
  background-color: var(--content-bg);
  display: flex;
  flex-direction: row nowrap;
  justify-content: space-between;
  align-items: center;
  border-radius: 8px;
  box-shadow: 2px 2px 8px rgba(0, 0, 0, 0.1);
}

.intro {
  max-width: 600px;
}
.intro-rtl {
  direction: rtl !important;
}

.info {
  display: flex;
  flex-flow: column nowrap;
  justify-content: center;
  align-items: flex-start;
  padding: 10px;
  border: 1px solid var(--gray-2);
  border-radius: 8px;
  box-shadow: 2px 2px 8px rgba(0, 0, 0, 0.1);
  h2 {
    color: var(--header);
    display: inline-block;
    padding: 4px;
    place-self: center;
  }
  a:hover {
    color: var(--link-hover);
  }
}
.photo-slot {
  display: none;
  width: 240px;
  height: auto;
  background-color: var(--content-bg);
  border-radius: 6px;
  box-shadow: 2px 2px 8px rgba(0, 0, 0, 0.1);
  object-fit: cover;
  img {
    width: 100%;
    height: auto;
    object-fit: cover;
    border-radius: 6px;
  }
}

.photo-slot:hover {
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.15);
}
.edu,
.int {
  border-left: 2px solid rgb(175, 175, 175);
  padding-left: 15px;
}

.skills {
  display: flex;
  flex-flow: row wrap;
  justify-content: space-evenly;
  align-items: center;
  gap: 10px;
  li {
    border-bottom: 1px solid var(--gray-2);
  }
}
.projects-container {
  justify-items: center;
}
.projects {
  padding: 10px;
  max-width: 600px;
  width: 90%;
  height: auto;
  display: flex;
  flex-flow: column nowrap;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
  border-radius: 16px;
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  transform-style: preserve-3d;
  background-color: var(--content-bg);
  a {
    font-weight: 700;
    transition: all 0.3s ease;
    padding: 5px;
    border-radius: 8px;
    text-decoration: underline;
    color: var(--links);
  }
  a:hover {
    color: var(--link-hover);
    border-radius: 8px;
    background-color: var(--text-color);
  }
  img {
    width: 100%;
    border-radius: 16px 16px 0px 0px;
    padding-bottom: 15px;
  }
}
.projects:hover {
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.438);
}

section {
  margin-bottom: 60px;
  padding: 20px;
  background-color: var(--content-bg);
  border-radius: 12px;
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  transform-style: preserve-3d;
}

section:hover {
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.438);
}
.h-p {
  place-self: center;
}

.education li,
.interests li,
.projects li {
  margin-bottom: 10px;
}

.direction {
  direction: rtl;
}

.btn-1 {
  color: var(--text-color);
  padding: 5px 10px;
  background-color: var(--content-bg);
  justify-self: center;
  align-self: center;
  font-family: "urban-l", "rubick-m";
}
@media (min-width: 768px) {
  .landing {
    display: flex;
    flex-flow: row nowrap;
    justify-content: center;
    align-items: center;
    width: 100%;
    height: 100vh;
  }
  .landing-container {
    background-color: rgba(0, 0, 0, 0.308);
    border-radius: 12px;
    padding: 0px 30px;
    margin-bottom: 300px;
    z-index: 20;
  }
  header {
    margin: 0 auto;
    max-width: 1600px;
    flex-flow: row;
    justify-content: space-between;
    align-items: center;
  }
  main {
    max-width: 1600px;
    margin: 0 auto;
  }
  .header-container {
    width: 99.3%;
    display: flex;
    flex-flow: row nowrap;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
    gap: 20px;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 5px 5px 0px rgba(255, 255, 255, 0.651);
    background-color: var(--content-background);
  }
  .header-backdrop {
    width: 100%;
    height: auto;
    background-color: #222222;
    display: flex;
    flex-direction: row nowrap;
    justify-content: space-between;
    align-items: center;
    border-radius: 8px;
    box-shadow: 2px 2px 8px rgba(0, 0, 0, 0.1);
    background-color: var(--content-bg);
  }
  .photo-slot {
    display: block;
  }
  h2,
  h3,
  h4 {
    font-family: "urban-b", "rubick-b";
    font-weight: 800;
    font-size: calc(1vw + 2vh + 1vmin);
    white-space: nowrap;
    border-bottom: 2px solid var(--black);
  }
  .projects {
    padding: 10px;
    max-width: 400px;
    height: auto;
    img {
      width: 100%;
      border-radius: 16px 16px 0px 0px;
      padding-bottom: 15px;
    }
  }
}
