@import url("https://fonts.googleapis.com/css2?family=Cascadia+Code:ital,wght@0,200..700;1,200..700&display=swap");

:root {
  --bg: #2e3440;
  --bgoverlay: #2e3440b3;
  --surface: #3b4252;
  --overlay: #434c5e;
  --brightbg: #4c566a;
  --text: #d8dee9;
  --red: #bf616a;
  --orange: #d08770;
  --yellow: #ebcb8b;
  --green: #a3be8c;
  --blue: #88c0d0;
  --purple: #b48ead;

  --accent: var(--blue);
  --accent2: var(--green);

  --shadow-sm: 4px 4px 0 var(--overlay);
  --shadow-md: 4px 4px 0 var(--brightbg);
  --shadow-lg: 6px 6px 0 var(--accent);

  --shadow-hover: 6px 6px 0 var(--accent2);
  --shadow-active: 2px 2px 0 var(--accent2);
}

* {
  padding: 0;
  margin: 0;
  box-sizing: border-box;
  color: var(--text);
  font-family: "Cascadia Code", "Courier New", "Courier", monospace;
  scroll-behavior: smooth;
}

html,
body {
  width: 100%;
  min-height: 100vh;
}

body {
  background: var(--bg);
  color: var(--text);
}

.cover {
  width: 100%;
  height: 100vh;
  background:
    linear-gradient(var(--bgoverlay), var(--bgoverlay)), url("assets/bg.jpg");
  background-size: cover;
  background-repeat: no-repeat;
  background-attachment: fixed;
  -webkit-mask-image: linear-gradient(to bottom, black 80%, transparent 100%);
  mask-image: linear-gradient(to bottom, black 80%, transparent 100%);
}

.covercenter {
  position: absolute;
  top: 45%;
  left: 50%;
  transform: translate(-50%, -50%);
  text-align: center;
  width: 90%;
  max-width: 450px;
}

.covercenter img {
  width: 100%;
}

.title {
  -webkit-text-fill-color: transparent;
  background: linear-gradient(var(--text), var(--accent));
  -webkit-background-clip: text;
  background-clip: text;
  color: var(--text);
  font-size: 80px;
  font-weight: 300;
  margin-bottom: 30px;
  /* text-shadow: 4px 4px var(--surface); */
}

button {
  padding: 12px;
  border-radius: 0;
  outline: none;
  border: none;
  cursor: pointer;
  background: transparent;
  /* background: var(--surface); */
  border: 2px solid var(--text);
  box-shadow: var(--shadow-sm);
  transition:
    box-shadow 0.2s,
    transform 0.2s;
}

button:hover {
  box-shadow: var(--shadow-md);
}

button:active {
  transform: translate(2px, 2px);
  box-shadow: var(--shadow-active);
}

.content {
  padding: 80px 10%;
  text-align: left;
}

.cta {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 11px 33px;
  text-decoration: none;
  font-size: 25px;
  color: white;
  background: var(--surface);
  transition: 1s;
  box-shadow: 6px 6px 0 var(--accent);
  border: none;
  cursor: pointer;
  padding-right: 10px;
}

.cta:focus {
  outline: none;
}

.cta:hover {
  box-shadow: var(--shadow-hover);
  background: var(--overlay);
}

.cta:active {
  transform: translate(2px, 2px);
  box-shadow: var(--shadow-active);
}

.cta .second {
  transition: 0.5s;
  margin-right: 45px;
}

.cta:hover .second {
  transition: 0.5s;
  margin-right: 52px;
}

.second {
  width: 20px;
  margin-left: 30px;
  position: relative;
  top: 12%;
}

.one {
  transition: 0.4s;
  transform: translateX(-60%);
}

.two {
  transition: 0.5s;
  transform: translateX(-30%);
}

.cta:hover .three {
  animation: color_anim 1s infinite 0.2s;
}

.cta:hover .one {
  transform: translateX(0%);
  animation: color_anim 1s infinite 0.6s;
}

.cta:hover .two {
  transform: translateX(0%);
  animation: color_anim 1s infinite 0.4s;
}

@keyframes color_anim {
  0% {
    fill: white;
  }

  50% {
    fill: var(--green);
  }

  100% {
    fill: white;
  }
}

.center {
  text-align: center;
}

h1:not(.title) {
  margin-bottom: 15px;
  text-shadow: var(--shadow-sm)
}

h1,
h2,
h3,
p {
  margin: 10px;
}

.mtop {
  margin-top: 20px;
}

.w50 {
  width: 50%;
  max-width: 1000px;
  margin: auto;
}

hr {
  margin: 50px 0;
}

.carousel-container {
  position: relative;
  width: 100%;
  max-width: 800px;
  margin: auto;
  overflow: hidden; /* Hides the images outside the box */
}

.carousel-container::before,
.carousel-container::after {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  width: 15%; /* Adjust width to control how much "fade" you see */
  z-index: 2; /* Ensures it sits on top of the images */
  pointer-events: none; /* Allows clicks to pass through to the buttons/images */
}

/* Left side fade (from background color to transparent) */
.carousel-container::before {
  left: 0;
  background: linear-gradient(to right, var(--bg) 0%, transparent 100%);
}

/* Right side fade (from transparent to background color) */
.carousel-container::after {
  right: 0;
  background: linear-gradient(to left, var(--bg) 0%, transparent 100%);
}

.carousel-track {
  display: flex;
  transition: transform 0.5s ease-in-out; /* Smooth animation */
  gap: 20px;
  padding: 20px 0;
}

.card {
  min-width: 60%; /* This allows the side images to peek in */
  transform: scale(0.9);
  transition: transform 0.5s;
  opacity: 0.5;
  backface-visibility: hidden;
  -webkit-font-smoothing: antialiased;
}

.card.active {
  transform: scale(1.1); /* Makes the center image pop */
  opacity: 1;
}

.card img {
  width: 100%;
  border-radius: 10px;
}

.btn {
  position: absolute;
  top: 50%;           /* Move to the vertical middle */
  transform: translateY(-50%); /* Perfectly center them vertically */
  z-index: 10;        /* Ensure they stay above the fading overlays */
  background: var(--brightbg);
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

/* Update the base class */
.btn {
  position: absolute;
  top: 50%;
  /* Combine the centering and the reset */
  transform: translateY(-50%) !important; 
  z-index: 10;
  background: var(--brightbg);
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  /* Reset the global button styles */
  box-shadow: none !important; 
}

/* Force the active state to stay centered */
.btn:active {
  transform: translateY(-50%) scale(0.95) !important; /* Slightly shrink instead of moving down */
  box-shadow: none !important;
}
/* Specific side placement */
.prev {
  left: 50px;
}

.next {
  right: 50px;
}

.mbot {
  margin-bottom: 20px;
}

.s3 {
  display: flex;
  align-items: center; /* Vertically centers the text against the image */
  gap: 50px;           /* Creates space between text and image */
  margin-top: 50px;
}

.text-content {
  flex: 1;             /* Takes up all available space on the left */
  text-align: left;    /* Ensures text stays left-aligned */
}

.s3 img {
  flex: 0 0 auto;      /* Prevents the image from shrinking */
  max-width: 400px;    /* Keeps image size consistent */
  border-radius: 10px;
  box-shadow: var(--shadow-lg); /* Using your existing blue shadow! */
}

/* Responsive fix: Stack them on mobile */
@media (max-width: 768px) {
  .s3 {
    flex-direction: column;
    text-align: center;
  }
  .s3 img {
    width: 100%;
    max-width: none;
  }
}

#arrow {
  position: absolute;
  left: 50%;
  top: 88%;
  transform: translate(-50%, -50%);
  cursor: pointer;
  z-index: 100;
}

summary {
  cursor: pointer;
  color: var(--accent);
  margin-bottom: 6px;
}

::selection {
  color: var(--bg);
  background: var(--accent);
}

.mmtop {
  margin-top: 80px;
}

@media (max-width: 768px) {
  .title {
    font-size: 45px;
  }

  .w50 {
    width: 90%;
  }

  .content {
    padding: 40px 5%;
  }

  .cta {
    font-size: 18px;
    padding: 10px 20px;
  }

  .cta .second {
    margin-right: 20px;
  }

  .cta:hover .second {
    margin-right: 25px;
  }

  .prev {
    left: 10px;
  }

  .next {
    right: 10px;
  }

  .mmtop.center {
    display: flex;
    flex-direction: column;
    gap: 15px;
  }

  .contact {
    width: 100%;
  }
}

a {
  color: var(--accent);
}

a:hover {
  color: var(--accent2);
}