/* Global Styles */
@font-face {
  font-family: roboto-light;
  src: url('../assets/Fonts/Roboto/Roboto-Light.ttf');
}

@font-face {
  font-family: roboto-bold;
  src: url('../assets/Fonts/Roboto/Roboto-Bold.ttf');
}

@font-face {
  font-family: signature;
  src: url('../assets/Fonts/Style_Script/StyleScript-Regular.ttf');
}

/* Font styles */
#about-signature {
  font-family: 'signature';
}

#h2-about-services-title,
#h2-about-hobbies-title,
#h2-about-front-end-title {
  text-align: center;
  font-size: var(--fs-md);
  margin-bottom: 60px;
}

#main-content {
  margin-bottom: 2.5em;
}

.d-about-wrapper {
  display: flex;
  flex-direction: column;
  margin-bottom: 70px;
}

/* Left content */
.d-about-left {
  flex: 0.7;
  margin-bottom: 2em;
}

.p-about-content {
  font-size: var(--fs-xs);
  color: var(text-color);
  font-weight: var(--fw-normal);
  width: 90%;
  max-width: 90%;
  margin-bottom: 0.8em;
  line-height: 1.5em;
}

.a-cv-download {
  cursor: pointer;
  border: 2px solid var(--color-primary-text);
  background-color: var(--color-primary-text);
  padding: 0.5em 0.8em;
  color: var(--color-light-text);
  text-decoration: none;
  transition: all 200ms ease-in;
}

.a-cv-download:hover {
  background-color: var(--color-primary-text);
  border: 2px solid var(--color-light-text);
}

/* Right content */
.d-about-right {
  flex: 0.3;
}

.bold-text {
  font-family: 'roboto-bold', 'Courier New', Courier, monospace;
  font-weight: var(--fw-bold);
  font-size: var(--fs-xs);
  border-bottom: 2px solid var(--color-primary-text);
}

.thin-text {
  font-weight: var(--fw-thin);
  font-size: var(--fs-);
}

ul {
  list-style-type: none;
  margin-bottom: 1.6em;
}

li {
  margin-bottom: 1em;
  margin-right: 1em;
  margin-left: 1em;
  display: inline-block;
}

/* Service section */
.d-services-container {
  margin-bottom: 40px;
}
.d-flex-wrapper {
  display: flex;
  flex-wrap: wrap;
}
.d-card {
  flex: 1 1 100%;
  text-align: center;
  padding: 1.2em;
}

.d-card img {
  margin-bottom: 0em;
}

.d-card h4 {
  margin-bottom: 0.6;
}

/* hobbie Slider */
.d-hobbies-container,
.d-front-end-container,
.d-back-end-container {
  overflow: hidden; /* Hide overflowing content */
  position: relative;
  width: 100%; /* Ensure the container takes full width */
  margin-top: 5em;
}

.slider-outer {
  position: relative;
  width: 100%; /* Ensure it takes full width of its container */
}

.slider {
  display: flex;
  transition: transform 0.5s ease-in-out; /* Smooth transition */
  white-space: nowrap;
  list-style-type: none;
  padding: 0;
  width: auto;
}

.border-arrow {
  opacity: 0;
  z-index: 1000;
  position: absolute;
  top: -80px;
  right: 0;
  left: 0;
  margin: auto;
  background-color: red;
  border-radius: 5px;
  padding: 2em;
  width: fit-content;
  height: fit-content;
}

.border-arrow::after {
  content: "";
  position: absolute;
  bottom: 0;
  width: 0;
  height: 0;
  z-index: 100;
  background-color: transparent;
  border-top: 10px solid red;
  border-left: 10px solid transparent;
  border-right: 10px solid transparent;
  border-bottom: 10px solid transparent;
  border-radius: 5px;
  transform: translate(-10px,15px);
}

.showMessage {
  opacity: 1;
}

.slide {
  box-sizing: border-box; /* Include padding in width calculation */
  flex: 0 0 auto;
  /*margin: 0; /* Remove margin to ensure proper spacing */
  text-align: center;
  position: relative;
  z-index: 1000;
}

.slide img{
  width: 80px; /* Ensure the image takes full width of the li element */
  height: auto; /* Maintain aspect ratio */
  display: inline-block; /* Remove any default inline spacing */
  margin: 0 auto;
}

.slide a{
  display: inline-block;
  width: 100%;
  height: 100%;
}

@media only screen and (min-width: 767px) {
  .d-card {
    flex: 0 0 50%;
    text-align: center;
    padding: 1.2em;
  }
  .d-about-wrapper {
    flex-direction: column;
  }

  .slide {
    box-sizing: border-box; /* Include padding in width calculation */
    margin: 0; /* Remove margin to ensure proper spacing */
  }

  li {
    display: block;
  }

  .d-card h4 {
    margin-bottom: 0.6;
  }
}

@media only screen and (min-width: 992px) {
  .d-card {
    flex: 1 1 0;
    text-align: center;
    padding: 1.2em;
  }
  .d-about-wrapper {
    flex-direction: row;
  }

  .slide {
    margin-bottom: 0.8em;
    margin-right: 0em;
    margin-left: 0em;
    width: calc(100% / 4);
  }

  .d-about-left {
    margin-bottom: 0;
  }
}

@media only screen and (min-width: 1200px) {
  .d-card {
    flex: 1 1 0;
    text-align: center;
    padding: 1.2em;
  }
  .d-about-wrapper {
    flex-direction: row;
  }

  .slide {
    margin-bottom: 0.8em;
    margin-right: 0em;
    margin-left: 0em;
    width: calc(100% / 6);
  }

  .d-about-left {
    margin-bottom: 0;
  }
}
