/* Base Styles */
@font-face {
  font-family: "JetBrains-Mono";
  src: url("assets/fonts/JetBrainsMono-Regular.ttf") format("truetype");
  font-weight: normal;
  font-style: normal;
}

body {
  margin: 0;
  background-color: #171421;
  font-family: "JetBrains-Mono";
}

html {
  scroll-behavior: smooth;
}

h1 {
  color: #239965;
  font-family: "JetBrains-Mono";
  text-align: center;
  margin: 0;
}

.home,
.project-section,
.certificate-section,
.about-section {
  scroll-snap-align: start;
}

/* Typewriter Section */
.home {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 100vh;
}

.full-line {
  color: #239965;
  margin-right: 0.3ch;
}

.linux-command {
  display: inline-block;
  overflow: hidden;
  border-right: 0.5em solid #d0cfcc;
  white-space: nowrap;
  color: #d0cfcc;
  width: 0;
  animation: typing 1.2s steps(7, end) forwards,
    blink-caret 1.2s step-end infinite 1.2s;
  vertical-align: bottom;
}

.output {
  color: #d0cfcc;
  opacity: 0;
  margin: 20px;
  margin-bottom: 50px;
  animation: showOutput 0.5s forwards;
  animation-delay: 1.9s;
}

/* Buttons */
.button-row {
  display: flex;
  justify-content: center;
  gap: 50px;
  margin-top: 20px;
  opacity: 0;
  animation: fadeIn 0.5s forwards;
  animation-delay: 2.5s;
  flex-wrap: wrap;
}

.learn-more {
  padding: 10px 30px;
  font-size: 1rem;
  font-family: "JetBrains-Mono";
  background-color: #239965;
  color: #171421;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  opacity: 0;
  animation: fadeIn 0.5s forwards;
  animation-delay: 2.5s;
  transition: background-color 0.3s ease;
}

.learn-more:hover {
  background-color: #1e7f4f;
}

/* Sections */
.project-section,
.certificate-section,
.about-section {
  min-height: 40vh;
  padding: 2rem 1rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  font-size: 2rem;
  font-family: "JetBrains-Mono";
  color: #d0cfcc;
  box-sizing: border-box;
}
.home {
  background-color: #171421;
}
.project-section {
  background-color: #171421;
}

.certificate-section,
.about-section {
  background-color: #1e1b29;
}

.about-container {
  display: flex;
  justify-content: center;
  align-items: flex-start;
  gap: 5rem;
  margin-top: 2rem;
  flex-wrap: wrap;
}

.details,
.currently-reading {
  text-align: center;
}

.details h2,
.currently-reading h2 {
  margin-bottom: 1rem;
  color: #ffffff;
}

.details ul {
  list-style-type: disc;
  text-align: left;
  padding-left: 3rem;
  color: #d0cfcc;
  font-size: 1.5rem;
  /* padding: 3.5rem; */
}

.reading-image {
  width: 400px;
  height: 400px;
  object-fit: contain;
  padding: 1rem;
}

/* Animations */
@keyframes typing {
  from {
    width: 0;
  }
  to {
    width: 7ch;
  }
}

@keyframes blink-caret {
  0%,
  100% {
    border-color: transparent;
  }
  50% {
    border-color: #d0cfcc;
  }
}

@keyframes showOutput {
  to {
    opacity: 1;
  }
}

@keyframes fadeIn {
  to {
    opacity: 1;
  }
}

/* min-height: configure vh */

.tech-box {
  position: relative;
  overflow: hidden;
  border-radius: 10px;
}

.placeholder-box {
  width: 100%;
  aspect-ratio: 16 / 9;
  background-color: #2c2a3b;
  border-radius: 10px;
  overflow: hidden;
  position: relative;
  transition: transform 0.3s ease;
}

.placeholder-box img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.tech-box:hover .placeholder-box {
  transform: scale(1.02);
  filter: blur(2px) brightness(0.7);
}

.overlay {
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  width: 100%;
  background-color: rgba(23, 20, 33, 0.85);
  opacity: 0;
  transition: opacity 0.3s ease;
  border-radius: 10px;
}

.tech-box:hover .overlay {
  opacity: 1;
}

.tech-icon {
  width: 40px;
  height: 40px;
  margin: 10px;
}

/* Ensure the prev/next buttons float above all card components */
.carousel-control-prev,
.carousel-control-next {
  z-index: 9999 !important;
  opacity: 1 !important; /* ensure they are visible */
}

/* Ensure carousel items do not block touch input on the edges */
.carousel-item {
  position: relative;
}

.carousel-item > * {
  pointer-events: none;
}

.carousel-item a,
.carousel-item button,
.carousel-item img {
  pointer-events: auto;
}

/* .about-section {
  min-height: 65vh;
  background-color: #1e1b29;

  color: #d0cfcc;
  padding: 3rem 1rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  font-family: "JetBrains-Mono";
} */
