*,
*::before,
*::after {
  box-sizing: border-box;
}
/* custom proprities */
html {
  scroll-behavior: smooth;
}
:root {
  --ff-primary: "inter Regular", sans-serif;
  --ff-secondary: "Source Code Pro", monospace;

  --fw-reg: 300;
  --fw-bold: 900;

  --clr-light: #fff;
  --clr-dark: #303030;

  --fs-h1: 1.5rem;
  --fs-h2: 1.25rem;
  --fs-h3: 0.9rem;
  --fs-body: 1rem;
}
@media (min-width: 1100px) {
  :root {
    --fs-h1: 2rem;
    --fs-h2: 2.5rem;
    --fs-h3: 1.125rem;
    --fs-body: 1rem;
  }
}
@media (max-width: 1100px) {
  img {
    max-width: 350px;
    max-height: 450px;
  }
  .grad_img {
    min-width: 250px;
    max-width: 450px;
  }
}

/* General Styles*/
body {
  background: black;
  color: var(--clr-light);
  margin: 0;
  font-family: var(--ff-primary);
  font-size: var(--fs-body);
  line-height: 1.6;
}
section {
  padding: 5em 2em;
}
/* Typoghraphy */
h1,
h2,
h3 {
  line-height: 1.1;
  margin: 0;
}
h1 {
  font-size: var(--fs-h1);
}
h2 {
  font-size: var(--fs-h2);
}
h3 {
  font-size: var(--fs-h3);
}
img {
  display: block;
}

.top_bar {
  font-size: 1rem;
  position: fixed;
  z-index: 1;
  width: 100%;
  background-color: #111827;
}
.header__nav {
  display: flex;
  justify-content: space-between;
  max-width: 1300px;
  margin: 0 auto;
  min-height: 6vh;
}
#navbar_logo {
  display: flex;
  align-items: center;
  font-size: 1.5rem;
}
.nav_menu {
  display: flex;
  align-items: center;
}
.nav_item {
  padding: 0 1rem;
  display: flex;
}

@media (min-width: 1100px) {
  .intro {
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    margin: auto;
  }

  .intro_content {
    display: grid;
    grid-template-areas:
      "img title"
      "img subtitle"
      "img subtitle2"
      "img description";
    gap: 1rem;
    width: 60%;
    padding: 20px;
  }

  .intro_img {
    grid-area: img;
    margin: auto auto;
    max-height: 400px;
    max-width: 600px;
    border-radius: 10%;
    box-shadow: rgba(26, 24, 24, 0.25) 0px 5px 10px 2px;
  }

  .intro_subtitle {
    grid-area: subtitle;
    color: rgb(193, 207, 61);
  }

  .intro_subtitle2 {
    grid-area: subtitle2;
    color: rgb(71, 112, 145);
  }

  .description {
    grid-area: description;
  }

  .studium_element {
    margin: auto;
    width: 100%;
    padding: 10px 0px 0px 10px;
    text-align: center;
  }

  .cover {
    position: relative;
    width: 50%;
    padding: 0px 40px;
    margin-left: auto;
    margin-right: auto;
  }

  .studium_card,
  .studium_card_master {
    height: 400px;
    width: 100%;
  }

  .layout2 {
    margin: auto;
    width: 90%;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    column-gap: 1cm;
  }

  .container {
    margin: auto;
    width: 90%;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    column-gap: 1cm;
    row-gap: 1cm;
  }
}
.studium_element {
  text-align: center;
  padding-bottom: 10px;
}
.skill_card {
  text-align: center;
  margin: 2rem auto;
  width: 100%;
  padding: 10px;
}
.about_me_container {
  padding: 2rem;
  width: 60%;
  margin: auto;
}

.studium {
  margin: auto;
  width: 80%;
}

.experience {
  margin: auto;
  width: 80%;
}

.section_title {
  text-align: center;
}
.education_title {
  text-align: center;
  padding-top: 2rem;
}
.experience_title {
  text-align: center;
  padding-bottom: 1cm;
}

a:hover {
  color: rgba(255, 255, 255, 0.329);
}
a {
  color: white;
  text-decoration: none;
}
.logo {
  position: fixed;
  left: 1cm;
}

.IT_Skills {
  margin: auto;
  width: 90%;
  padding: 10px;
}
.work {
  text-align: center;
  margin-top: 0.5cm;
}

/* Timeline Container */
.timeline {
  margin: auto;
  padding: 10px;
  width: 70%;
}

/* Outer Layer with the timeline border */
.outer {
  border-left: 2px solid #333;
}

/* Card container */
.card {
  margin: 0 0 20px 20px;
  padding: 10px;
  border-radius: 8px;
  position: relative;
}
.card:hover {
  transform: translateY(-5px) scale(1.005) translateZ(0);
}

.card-header {
  display: grid;
  grid-template-areas:
    "logo title"
    "logo date";
  justify-content: left;
}

.info {
  display: flex;
  flex-direction: column;
  color: rgb(209, 185, 185);
}

.title {
  color: white;
  grid-area: title;
}

.logo-container {
  grid-area: logo;
  width: 80px;
  margin: 0 1rem;
}

.logo-container img {
  width: 68px;
  height: 68px;
  border-radius: 4px;
}

.date-range {
  grid-area: date;
  font-size: 0.85rem;
  color: #ccc;
}

/* Timeline dot  */
.title::before {
  content: "";
  position: absolute;
  width: 10px;
  height: 10px;
  background: white;
  border-radius: 999px;
  left: -39px;
  border: 3px solid orangered;
}
footer {
  position: absolute;
  height: auto;
  width: 100%;
  padding-top: 100px;
  color: white;
  background-color: #111827;
}
.footer-content {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  text-align: center;
}

.footer-content h3 {
  font-size: 1.8rem;
  font-weight: 400;
  text-transform: capitalize;
  line-height: 3rem;
}
.footer-content p {
  max-width: 500px;
  margin: 10px auto;
  line-height: 25x;
}
.socials {
  list-style: none;
  display: flex;
  padding: 0;
}
.socials li {
  margin: 0 8px;
}

.socials a i {
  font-size: 1.2rem;
  transition: color 0.7s ease;
}
.socials a:hover i {
  color: darkgreen;
}
.footer-bottom {
  margin-bottom: 2cm;
  text-align: center;
}
.footer-bottom p {
  font-size: 15px;
  word-spacing: 2px;
}

.grad_img_container {
  margin: 2rem;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 20px;
}

.grad_img {
  max-height: 400px;
  max-width: 600px;
  height: auto;
  border-radius: 2%;
  box-shadow: rgba(26, 24, 24, 0.25) 0px 5px 10px 2px;
}

.workcard {
  background-color: #1f2937;
  border-radius: 5px;
  display: flex;
  flex-direction: column;
  align-items: center;
  box-shadow: rgba(0, 0, 0, 0.7);
  color: white;
}

.navigation {
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  max-width: 100%; /* Prevents overflow */
}

/* Style for arrow buttons */
.arrow-btn {
  background: none;
  border: none;
  font-size: 2rem;
  cursor: pointer;
  color: white;
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  padding: 10px;
}

/* Position arrows on larger screens */
.arrow-btn.left {
  left: -50px; /* Moves it outside the card */
}

.arrow-btn.right {
  right: -50px;
}

.slider-container {
  width: 100%;
  overflow: hidden;
  position: relative;
  text-align: center;
}

.slider-container h4 {
  margin: 2rem 2rem;
}

.slider {
  position: relative;
  height: auto;
}

.slide img {
  width: 50%;
  margin: 0 auto;
  display: block;
}

.navigation button {
  position: absolute;
  top: 50%;
  background-color: rgba(0, 0, 0, 0.6);
  color: white;
  font-size: 24px;
  padding: 8px 12px;
  cursor: pointer;
  border: none;
  border-radius: 4px;
  transform: translateY(-50%);
  user-select: none;
}

.prev {
  left: 10px;
}

.next {
  right: 10px;
}

.dots {
  text-align: center;
  padding: 15px 0;
}

.dots span {
  display: inline-block;
  height: 12px;
  width: 12px;
  margin: 0 4px;
  background-color: #bbb;
  border-radius: 50%;
  cursor: pointer;
}

.dots span.active {
  background-color: #333;
}

/* On small screens, keep arrows closer but outside the project */
@media (max-width: 1100px) {
  .arrow-btn.left {
    left: -30px; /* Moves closer */
  }

  .arrow-btn.right {
    right: -30px;
  }
}

.arrow-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.button-container {
  display: flex;
  justify-content: center;
  gap: 1rem;
  margin: 2rem;
}

.github-link {
  text-decoration: none;
  transition: color 0.3s ease;
}

.workcard:hover {
  transform: translateY(-5px) scale(1.005) translateZ(0);
}

.card__name {
  margin-top: 15px;
}

.card__image {
  height: 200px;
  width: 300px;
  margin-top: 20px;
}

.btn {
  background: none;
  cursor: pointer;
  line-height: 1.5;
  font: 700 1.2rem "Roboto Slab", sans-serif;
  padding: 0.75em 2em;
  letter-spacing: 0.05rem;
  margin: 1em;
  width: 13rem;
}

.btn:focus {
  outline: 2px dotted #55d7dc;
}

.grid-container {
  margin: 10px;
  margin-bottom: auto;
}

.thesis-box {
  border-radius: 8px;
  border: 1px solid rgb(71, 112, 145);
  padding: 20px;
  margin-top: 30px;
  text-align: center;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}
.thesis-links {
  display: flex;
  justify-content: center;
  gap: 20px;
}
.thesis-link i {
  margin-right: 5px;
}
@media screen and (max-width: 1100px) {
  .nav_menu {
    display: grid;
    grid-template-columns: auto;
    margin: 0;
    width: 100%;
    position: absolute;
    top: -1000px;
    opacity: 0;
    transition: all 0.5s ease;
    height: 50vh;
    z-index: -1;
  }

  .nav_menu.active {
    top: 100%;
    opacity: 100%;
    transition: all 0.5s ease;
    z-index: 99;
    height: 40vh;
    font-size: 1.3rem;
    background-color: black;
  }

  #navbar_logo {
    padding-left: 25px;
  }

  .nav_toggle .bar {
    width: 25px;
    height: 3px;
    margin: 5px auto;
    transition: all 0.3s ease-in-out;
  }
  .nav_item {
    width: 100%;
    text-align: center;
    display: table;
  }
  #mobile_menu {
    position: relative;
    top: 20%;
    right: 5%;
    transform: translate(5%, 20%);
  }
  .nav_toggle .bar {
    display: block;
    cursor: pointer;
    background-color: #fff;
  }
  #mobile_menu.is-active .bar:nth-child(2) {
    opacity: 0;
  }
  #mobile_menu.is-active .bar:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
  }
  #mobile_menu.is-active .bar:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
  }
  .intro {
    height: 100vh;
    align-items: center;
    justify-content: center;
    text-align: center;
  }

  .intro_content {
    display: grid;
    grid-template-areas:
      "title"
      "subtitle"
      "subtitle2"
      "img"
      "description";
  }

  .intro_img {
    margin: auto;
    grid-area: img;
    min-width: 250px;
    max-width: 250px;
    margin-top: 20px;
    border-radius: 10%;
    box-shadow: rgba(26, 24, 24, 0.25) 0px 5px 10px 2px;
  }
  .intro_subtitle {
    grid-area: subtitle;
    color: rgb(193, 207, 61);
  }
  .intro_subtitle2 {
    grid-area: subtitle2;
    color: rgb(71, 112, 145);
  }

  .descritpion {
    grid-area: description;
  }
  .timeline {
    display: inline;
    width: 100%;
  }

  .logo-container {
    width: 50px;
    margin: 0 0.5rem;
  }

  .logo-container img {
    width: 48px;
    height: 48px;
    border-radius: 4px;
  }

  .container {
    margin: auto;
    width: 90%;
    display: grid;
    grid-template-columns: repeat(1, 1fr);
    row-gap: 1cm;
    font-family: monospace;
  }

  .studium_card,
  .studium_card_master {
    height: 400px;
    width: 100%;
  }
  .cover {
    width: 100%;
  }

  .skill_card {
    margin: 2rem auto;
  }

  .slide img {
    width: 80%;
  }

  .about_me_container {
    width: 100%;
    margin: auto;
  }
}
.cover {
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
}

.layout {
  width: 100%;
  padding: 10px 10px;
  display: flex;
  flex-wrap: nowrap;
  overflow-x: hidden;
  overflow-y: hidden;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
}

.studium_card,
.studium_card_master {
  display: none; /* Hide all cards by default */
  border-radius: 8px;
  border: 1px solid rgb(71, 112, 145);
  color: #e0e0e0;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
  text-align: center;
  transition: opacity 0.5s ease, transform 0.5s ease;
}

.studium_card.active,
.studium_card_master.active {
  display: block;
  opacity: 1;
  transform: scale(1);
}

button {
  background-color: #444;
  color: white;
  border: none;
  padding: 10px;
  cursor: pointer;
}

.intro_title {
  font-family: "Courier New", Courier, monospace;
  color: #00ff00;
  border-radius: 8px;
}

.terminal i {
  margin-right: 10px;
}

.name {
  font-family: "Courier New", Courier, monospace;
  color: white;
  margin-left: 30px;
}

.name::after {
  content: "";
  display: inline-block;
  width: 10px;
  height: 2px;
  background-color: white;
  animation: blink 1s infinite;
  margin-left: 5px;
}

@keyframes blink {
  0% {
    opacity: 1;
  }
  50% {
    opacity: 0;
  }
  100% {
    opacity: 1;
  }
}

.studium_logo {
  max-width: fit-content;
  margin: auto;
  margin-top: 1rem;
  img {
    width: 5rem;
    height: 5rem;
  }
}
