/* Define a custom property for border opacity, used in the .frame animation */
@property --border-opacity {
  syntax: "<number>";
  inherits: true;
  initial-value: 1;
}

/* Import custom font Magnetar */
@font-face {
  font-family: "Magnetar";
  src: url("fonts/Magnetar.ttf") format("truetype");
}

/* Import Orbitron font from Google Fonts */
@import url("https://fonts.googleapis.com/css2?family=Orbitron:wght@400;700&display=swap");

/* Root variables for consistent theming */
:root {
  --main-font: "Magnetar", "Orbitron", sans-serif;
  --slogan-font: "Impact", "Haettenschweiler", "Arial Narrow Bold", sans-serif;
  --primary-color: #ffffff;
  --accent-color: #fbfd3a;
  --background-black: #131313;
  --border-opacity: 0.95; /* Used in the .frame animation */
}

/* Reset default margins and paddings */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* Style for the body, including background and layout */
body {
  border: 20px solid rgba(255, 255, 255, var(--border-opacity));
  animation: holographic 3s infinite alternate ease-in-out;
  font-family: var(--main-font);
  color: var(--primary-color);
  background-color: var(--background-black);
  background-image: linear-gradient(
      to right,
      #000000 0%,
      transparent 15%,
      transparent 85%,
      #000000 100%
    ),
    linear-gradient(rgba(0, 0, 0, 1) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0, 0, 0, 1) 1px, transparent 1px),
    linear-gradient(rgba(255, 255, 255, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.05) 1px, transparent 1px);
  background-size: 100% 100%, 40px 40px, 40px 40px, 40px 40px, 40px 40px;
  background-position: 0 0, -6px -6px, -6px -6px, -1px -1px, -1px -1px;
  background-attachment: fixed;
  overflow-x: hidden;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: center;
  min-height: 100vh;
}

/* Main container for centering content */
main {
  width: 100%;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: center;
  min-height: 0;
}

/* WhatsApp button styles */
.whatsapp-button {
  position: fixed;
  top: 40px;
  right: 45px;
  z-index: 20;
  color: var(--primary-color);
  border-radius: 50%;
  width: 60px;
  height: 60px;
  display: flex;
  justify-content: center;
  align-items: center;
  box-shadow: 2px 2px 5px #000;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  animation: whatsapp-timer 30s infinite linear;
}

/* Hover effect for WhatsApp button */
.whatsapp-button:hover {
  animation: whatsapp-pulse 1s ease-out;
}

/* WhatsApp button icon size */
.whatsapp-button svg {
  width: 40px;
  height: 40px;
}

/* Language switcher button */
.language-switcher {
  position: fixed;
  top: 40px;
  left: 40px;
  z-index: 20;
  color: var(--primary-color);
  background: transparent;
  border: none;
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--main-font);
  font-size: 1.4rem;
  font-weight: 700;
  text-decoration: none;
  transition: transform 0.3s ease, opacity 0.3s ease;
}

.language-switcher:hover {
  transform: scale(1.1);
  opacity: 0.8;
}

.language-switcher svg {
  width: 24px;
  height: 24px;
}

.language-switcher .language-text {
  line-height: 1;
}

.hero {
  text-align: center;
  border-bottom: 10px solid rgba(255, 255, 255, var(--border-opacity));
  padding-bottom: 20px;
  width: 100%;
  height: 63vh;
  box-sizing: border-box;
  margin-bottom: 12px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  position: relative;
  overflow: hidden;
}

/* Wrapper for glitch effect */
.glitch-wrapper {
  position: relative;
}

/* Logo with glitch animation */
.logo {
  position: relative;
  font-size: 5rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  margin-bottom: 20px;
  text-shadow: 2px 2px 5px #000;
  z-index: 2;
}

/* This targets the main text */
.logo span {
  animation: paths 5s step-end infinite;
}

/* This creates and animates the two glitch layers */
.logo::before,
.logo::after {
  content: attr(data-text);
  position: absolute;
  width: 100%;
  left: 0;
  top: 0;
  z-index: -1;
  line-height: 1;
}

/* Defines the first glitch layer (magenta-ish color) */
.logo::before {
  color: var(--accent-color);
  animation: paths 5s step-end infinite, opacity 5s step-end infinite,
    font 8s step-end infinite, movement 10s step-end infinite;
}

/* Defines the second glitch layer (cyan color) */
.logo::after {
  color: #1bc7fb;
  animation: paths 5s step-end infinite, opacity 5s step-end infinite,
    font 7s step-end infinite, movement 8s step-end infinite;
}

/* Slogan text */
.slogan {
  font-family: var(--slogan-font);
  font-size: 2rem;
  color: var(--accent-color);
  height: 3rem; /* To prevent layout shift */
  text-shadow: 2px 2px 5px #000;
}

/* Cursor animation */
.cursor {
  display: inline-block;
  width: 5px;
  height: 2rem;
  background-color: var(--accent-color);
  animation: blink 0.7s infinite;
  margin-left: 10px; /* Adds space before the cursor */
}

/* Mobile Contact Button */
.mobile-contact-button {
  display: none; /* Hidden by default on desktop */
  background: var(--primary-color);
  color: black;
  border: none;
  border-radius: 0;
  padding: 15px 25px;
  font-size: 1.2rem;
  font-weight: 700;
  font-family: var(--main-font);
  text-transform: lowercase;
  text-decoration: none;
  cursor: pointer;
  margin-top: 70px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.mobile-contact-button:hover {
  transform: scale(1.05);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.4);
}

.mobile-contact-button:active {
  transform: scale(0.98);
}

.carousel-section {
  width: 100%;
  overflow: visible;
  position: relative;
  background-color: black;
  height: 31.5vh;
}

.section-title {
  font-size: 2.5rem;
  text-align: left;
  display: flex;
  align-items: center;
  height: 50px;
  color: black;
  background-color: rgba(255, 255, 255, var(--border-opacity));
  padding-left: 20px;
  padding-right: 20px;
  position: relative;
  overflow: hidden;
}

.section-title h2 {
  font-size: 2.5rem;
  margin: 0;
  font-weight: normal;
}

.section-title::after {
  content: "";
  position: absolute;
  top: 0;
  right: 50px;
  height: 100%;
  width: 200px;
  background: repeating-linear-gradient(-45deg, #000 0 20px, #fff 0px 40px);
  background-color: #000;
  clip-path: polygon(26% 0, 95% 0, 72% 100%, 1% 100%);
}

.carousel {
  margin: 0 auto;
  padding: 25px 0;
  width: 100%;
  max-width: none;
  overflow: hidden;
  position: relative;
}

/* Carousel Navigation Buttons */
.carousel-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(251, 253, 58, 0.3);
  color: var(--accent-color);
  width: 50px;
  height: 50px;
  border-radius: 0;
  cursor: pointer;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  opacity: 0;
  pointer-events: none;
}

.carousel:hover .carousel-nav {
  opacity: 0.7;
  pointer-events: auto;
}

.carousel-nav:hover {
  background: rgba(0, 0, 0, 0.8);
  border-color: var(--accent-color);
  opacity: 1 !important;
  box-shadow: 0 0 20px rgba(251, 253, 58, 0.3);
}

.carousel-nav:active {
  transform: translateY(-50%) scale(0.95);
}

.carousel-nav-prev {
  left: 10px;
}

.carousel-nav-next {
  right: 10px;
}

.carousel-nav svg {
  filter: drop-shadow(0 0 3px rgba(251, 253, 58, 0.5));
}

.carousel::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  bottom: 0;
  z-index: 2;
  pointer-events: none;
  background: linear-gradient(
    to right,
    rgba(0, 0, 0, 0.8) 0%,
    /* Darker shadow on the left */ transparent 15%,
    /* Fades out quicker, like the body */ transparent 85%,
    /* Stays clear across the middle 70% */ rgba(0, 0, 0, 0.8) 100%
      /* Darker shadow on the right */
  );
}

.card {
  color: white;
  box-shadow: rgba(0, 0, 0, 0.1) 5px 5px 20px 0;
  padding: 0;
  font-size: xx-large;
  justify-content: center;
  align-items: center;
  height: 200px;
  aspect-ratio: 16 / 9;
  display: flex;
  overflow: visible;
  position: relative;
  flex-shrink: 0;
  cursor: pointer;
  transition: transform 0.3s ease, box-shadow 0.3s ease, filter 0.3s ease;
  filter: brightness(0.85);
  background: #2a2a2a;
}

.card:hover {
  transform: scale(1.08);
  box-shadow: rgba(0, 0, 0, 0.3) 8px 8px 30px 0;
  z-index: 10;
  filter: brightness(1.1);
}

.card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
}

/* Optional: Add overlay text on hover */
.card::after {
  content: attr(data-project-name);
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.9), transparent);
  color: var(--accent-color);
  font-size: 1.2rem;
  font-family: var(--main-font);
  text-align: center;
  padding: 20px 10px 10px;
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.3s ease, transform 0.3s ease;
  pointer-events: none;
  z-index: 2;
}

.card:hover::after {
  opacity: 1;
  transform: translateY(0);
}

/* Group layout inside carousel */
.group {
  display: flex;
  gap: 20px;
  will-change: transform;
}

/* Project Backdrop */
.project-backdrop {
  display: none;
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: transparent;
  z-index: 50;
  cursor: default;
}

/* Project Display Styles */
.project-display {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  width: auto;
  max-width: 90%;
  height: auto;
  max-height: 90%;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  opacity: 0;
  z-index: 100;
}

.project-display.active {
  animation: tvGlitch 0.6s ease forwards;
}

.project-display.active .project-image {
  animation: tvImageGlitch 0.6s ease;
}

.close-project {
  position: absolute;
  top: 10px;
  right: 11px;
  background: white;
  color: black;
  border: none;
  width: 26px;
  height: 26px;
  border-radius: 0;
  font-size: 1.3rem;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  z-index: 100;
  font-weight: 900;
  font-family: var(--main-font);
  padding: 0;
  box-shadow: 0 0 0 3px black;
}

/* Project Navigation Buttons */
.project-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(251, 253, 58, 0.3);
  color: var(--accent-color);
  width: 50px;
  height: 50px;
  border-radius: 0;
  cursor: pointer;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  opacity: 0;
  pointer-events: none;
}

.project-display:hover .project-nav {
  opacity: 0.7;
  pointer-events: auto;
}

.project-nav:hover {
  background: rgba(0, 0, 0, 0.8);
  border-color: var(--accent-color);
  opacity: 1 !important;
  box-shadow: 0 0 20px rgba(251, 253, 58, 0.3);
}

.project-nav:active {
  transform: translateY(-50%) scale(0.95);
}

.project-nav-prev {
  left: 10px;
}

.project-nav-next {
  right: 10px;
}

.project-nav svg {
  filter: drop-shadow(0 0 3px rgba(251, 253, 58, 0.5));
}

.close-project:hover {
  transform: scale(1.1);
  box-shadow: 0 0 0 3px black;
}

.project-image-container {
  position: relative;
  max-width: 100%;
  max-height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.project-image {
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
  box-shadow: 0 0 30px rgba(251, 253, 58, 0.3);
  display: block;
}

.project-description-overlay {
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  height: 33.33%;
  background: rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  color: white;
  padding: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.4s ease;
  z-index: 1;
}

.project-description-overlay p {
  font-size: 18px;
  line-height: 1.6;
  margin: 0;
  text-align: left;
  font-family: sans-serif;
}

.project-image-container:hover .project-description-overlay {
  opacity: 1;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translate(-50%, -50%) scale(0.95);
  }
  to {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
  }
}

/* TV Glitch Effect for Project Display */
@keyframes tvGlitch {
  0% {
    opacity: 0;
    transform: translate(-50%, -50%) scaleY(0.01) scaleX(1.5);
    filter: brightness(3) contrast(5) saturate(2);
  }
  10% {
    opacity: 1;
    transform: translate(-50%, -50%) scaleY(0.05) scaleX(1.3);
    filter: brightness(2) contrast(4) saturate(1.5);
  }
  20% {
    transform: translate(-50%, -50%) scaleY(0.5) scaleX(1.1);
    filter: brightness(1.5) contrast(3) saturate(1.2);
  }
  30% {
    transform: translate(-50%, -50%) scaleY(0.8) scaleX(0.95);
    filter: brightness(1.2) contrast(2) saturate(1);
  }
  50% {
    transform: translate(-50%, -50%) scaleY(1.05) scaleX(1.02);
    filter: brightness(1.1) contrast(1.5) saturate(1);
  }
  70% {
    transform: translate(-50%, -50%) scaleY(0.98) scaleX(1.01);
    filter: brightness(1.05) contrast(1.2) saturate(1);
  }
  100% {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
    filter: brightness(1) contrast(1) saturate(1);
  }
}

/* Additional glitch effect for the image itself */
@keyframes tvImageGlitch {
  0%,
  10% {
    clip-path: inset(0 0 0 0);
    transform: translateX(0);
  }
  15% {
    clip-path: inset(30% 0 40% 0);
    transform: translateX(-10px);
  }
  20% {
    clip-path: inset(60% 0 10% 0);
    transform: translateX(10px);
  }
  25% {
    clip-path: inset(10% 0 70% 0);
    transform: translateX(-5px);
  }
  30% {
    clip-path: inset(50% 0 20% 0);
    transform: translateX(5px);
  }
  35%,
  100% {
    clip-path: inset(0 0 0 0);
    transform: translateX(0);
  }
}

/* TV Turn Off Effect */
@keyframes tvTurnOff {
  0% {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
    filter: brightness(1) contrast(1);
  }
  20% {
    transform: translate(-50%, -50%) scale(1.02, 1);
    filter: brightness(1.2) contrast(1.5);
  }
  40% {
    transform: translate(-50%, -50%) scale(1.05, 0.8);
    filter: brightness(1.5) contrast(2);
  }
  60% {
    transform: translate(-50%, -50%) scale(1.1, 0.3);
    filter: brightness(2) contrast(3);
    opacity: 0.8;
  }
  75% {
    transform: translate(-50%, -50%) scale(1.3, 0.05);
    filter: brightness(3) contrast(5);
    opacity: 0.5;
  }
  85% {
    transform: translate(-50%, -50%) scale(1.5, 0.01);
    filter: brightness(5) contrast(8);
    opacity: 0.2;
  }
  100% {
    opacity: 0;
    transform: translate(-50%, -50%) scale(0, 0.01);
    filter: brightness(10) contrast(10);
  }
}

.project-display.closing {
  animation: tvTurnOff 0.25s ease forwards;
  pointer-events: none;
}

.project-display.closing .project-image {
  animation: none;
}

/*
==============================================
           ANIMATION KEYFRAMES
==============================================
*/

/* Holographic animation for the frame */
@keyframes holographic {
  0%,
  100% {
    --border-opacity: 0.95;
    box-shadow: 0 0 15px rgba(200, 200, 200, 0.7),
      0 0 25px rgba(200, 200, 200, 0.7), inset 0 0 10px rgba(255, 255, 255, 0.5);
  }
  50% {
    --border-opacity: 1;
    box-shadow: 0 0 25px rgba(255, 255, 255, 1), 0 0 40px rgba(220, 220, 220, 1),
      inset 0 0 15px rgba(255, 255, 255, 0.7);
  }
}

/* Blink animation for cursor */
@keyframes blink {
  0%,
  100% {
    opacity: 1;
  }
  50% {
    opacity: 0;
  }
}

/* Timer animation to trigger flicker every 30 seconds */
@keyframes whatsapp-timer {
  0%,
  90% {
    transform: scale(1);
    box-shadow: 2px 2px 5px #000;
  }
  92% {
    transform: scale(1.05);
    box-shadow: 0 0 0 4px rgba(251, 253, 58, 0.6), 2px 2px 10px #000;
  }
  94% {
    transform: scale(1.1);
    box-shadow: 0 0 0 8px rgba(251, 253, 58, 0.4), 2px 2px 15px #000;
  }
  96% {
    transform: scale(1.05);
    box-shadow: 0 0 0 12px rgba(251, 253, 58, 0.2), 2px 2px 10px #000;
  }
  98%,
  100% {
    transform: scale(1);
    box-shadow: 2px 2px 5px #000;
  }
}

@keyframes whatsapp-pulse {
  0% {
    transform: scale(1);
    box-shadow: 2px 2px 5px #000;
  }
  20% {
    transform: scale(1.05);
    box-shadow: 0 0 0 4px rgba(251, 253, 58, 0.6), 2px 2px 10px #000;
  }
  40% {
    transform: scale(1.1);
    box-shadow: 0 0 0 8px rgba(251, 253, 58, 0.4), 2px 2px 15px #000;
  }
  60% {
    transform: scale(1.05);
    box-shadow: 0 0 0 12px rgba(251, 253, 58, 0.2), 2px 2px 10px #000;
  }
  80%,
  100% {
    transform: scale(1);
    box-shadow: 2px 2px 5px #000;
  }
}

/* KEYFRAMES FOR THE LOGO GLITCH EFFECT */
@keyframes paths {
  0% {
    clip-path: polygon(
      0% 43%,
      83% 43%,
      83% 22%,
      23% 22%,
      23% 24%,
      91% 24%,
      91% 26%,
      18% 26%,
      18% 83%,
      29% 83%,
      29% 17%,
      41% 17%,
      41% 39%,
      18% 39%,
      18% 82%,
      54% 82%,
      54% 88%,
      19% 88%,
      19% 4%,
      39% 4%,
      39% 14%,
      76% 14%,
      76% 52%,
      23% 52%,
      23% 35%,
      19% 35%,
      19% 8%,
      36% 8%,
      36% 31%,
      73% 31%,
      73% 16%,
      1% 16%,
      1% 56%,
      50% 56%,
      50% 8%
    );
  }
  5% {
    clip-path: polygon(
      0% 29%,
      44% 29%,
      44% 83%,
      94% 83%,
      94% 56%,
      11% 56%,
      11% 64%,
      94% 64%,
      94% 70%,
      88% 70%,
      88% 32%,
      18% 32%,
      18% 96%,
      10% 96%,
      10% 62%,
      9% 62%,
      9% 84%,
      68% 84%,
      68% 50%,
      52% 50%,
      52% 55%,
      35% 55%,
      35% 87%,
      25% 87%,
      25% 39%,
      15% 39%,
      15% 88%,
      52% 88%
    );
  }
  30% {
    clip-path: polygon(
      0% 53%,
      93% 53%,
      93% 62%,
      68% 62%,
      68% 37%,
      97% 37%,
      97% 89%,
      13% 89%,
      13% 45%,
      51% 45%,
      51% 88%,
      17% 88%,
      17% 54%,
      81% 54%,
      81% 75%,
      79% 75%,
      79% 76%,
      38% 76%,
      38% 28%,
      61% 28%,
      61% 12%,
      55% 12%,
      55% 62%,
      68% 62%,
      68% 51%,
      0% 51%,
      0% 92%,
      63% 92%,
      63% 4%,
      65% 4%
    );
  }
  45% {
    clip-path: polygon(
      0% 33%,
      2% 33%,
      2% 69%,
      58% 69%,
      58% 94%,
      55% 94%,
      55% 25%,
      33% 25%,
      33% 85%,
      16% 85%,
      16% 19%,
      5% 19%,
      5% 20%,
      79% 20%,
      79% 96%,
      93% 96%,
      93% 50%,
      5% 50%,
      5% 74%,
      55% 74%,
      55% 57%,
      96% 57%,
      96% 59%,
      87% 59%,
      87% 65%,
      82% 65%,
      82% 39%,
      63% 39%,
      63% 92%,
      4% 92%,
      4% 36%,
      24% 36%,
      24% 70%,
      1% 70%,
      1% 43%,
      15% 43%,
      15% 28%,
      23% 28%,
      23% 71%,
      90% 71%,
      90% 86%,
      97% 86%,
      97% 1%,
      60% 1%,
      60% 67%,
      71% 67%,
      71% 91%,
      17% 91%,
      17% 14%,
      39% 14%,
      39% 30%,
      58% 30%,
      58% 11%,
      52% 11%,
      52% 83%,
      68% 83%
    );
  }
  76% {
    clip-path: polygon(
      0% 26%,
      15% 26%,
      15% 73%,
      72% 73%,
      72% 70%,
      77% 70%,
      77% 75%,
      8% 75%,
      8% 42%,
      4% 42%,
      4% 61%,
      17% 61%,
      17% 12%,
      26% 12%,
      26% 63%,
      73% 63%,
      73% 43%,
      90% 43%,
      90% 67%,
      50% 67%,
      50% 41%,
      42% 41%,
      42% 46%,
      50% 46%,
      50% 84%,
      96% 84%,
      96% 78%,
      49% 78%,
      49% 25%,
      63% 25%,
      63% 14%
    );
  }
  90% {
    clip-path: polygon(
      0% 41%,
      13% 41%,
      13% 6%,
      87% 6%,
      87% 93%,
      10% 93%,
      10% 13%,
      89% 13%,
      89% 6%,
      3% 6%,
      3% 8%,
      16% 8%,
      16% 79%,
      0% 79%,
      0% 99%,
      92% 99%,
      92% 90%,
      5% 90%,
      5% 60%,
      0% 60%,
      0% 48%,
      89% 48%,
      89% 13%,
      80% 13%,
      80% 43%,
      95% 43%,
      95% 19%,
      80% 19%,
      80% 85%,
      38% 85%,
      38% 62%
    );
  }
  1%,
  7%,
  33%,
  47%,
  78%,
  93% {
    clip-path: none;
  }
}

@keyframes movement {
  0% {
    top: 0px;
    left: -20px;
  }
  15% {
    top: 10px;
    left: 10px;
  }
  60% {
    top: 5px;
    left: -10px;
  }
  75% {
    top: -5px;
    left: 20px;
  }
  100% {
    top: 10px;
    left: 5px;
  }
}

@keyframes opacity {
  0% {
    opacity: 0.1;
  }
  5% {
    opacity: 0.7;
  }
  30% {
    opacity: 0.4;
  }
  45% {
    opacity: 0.6;
  }
  76% {
    opacity: 0.4;
  }
  90% {
    opacity: 0.8;
  }
  1%,
  7%,
  33%,
  47%,
  78%,
  93% {
    opacity: 0;
  }
}

@keyframes font {
  0% {
    font-weight: 100;
    color: var(--accent-color);
    filter: blur(3px);
  }
  20% {
    font-weight: 500;
    color: #fff;
    filter: blur(0);
  }
  50% {
    font-weight: 300;
    color: #1bc7fb;
    filter: blur(2px);
  }
  60% {
    font-weight: 700;
    color: #fff;
    filter: blur(0);
  }
  90% {
    font-weight: 500;
    color: var(--accent-color);
    filter: blur(6px);
  }
}

/*
==============================================
           RESPONSIVE STYLES
==============================================
*/

@media (max-width: 768px) {
  body {
    border-width: 15px;
    animation: none;
    box-shadow: none;
  }

  .logo {
    font-size: 3.5rem;
  }
  .slogan {
    font-size: 1.5rem;
    height: 2.5rem;
  }
  .cursor {
    height: 1.5rem;
  }

  /* Hide WhatsApp floating button on mobile */
  .whatsapp-button {
    display: none;
  }

  /* Show mobile contact button */
  .mobile-contact-button {
    display: inline-block;
  }

  /* Reduce hero section height on mobile */
  .hero {
    flex-grow: 0.61;
    flex-basis: 0;
    padding-bottom: 0;
    margin-bottom: 0;
    border-bottom: none;
  }

  /* Adjust carousel section height on mobile */
  .carousel-section {
    flex-grow: 0.39;
    flex-basis: 0;
    background-color: black;
    display: flex;
    flex-direction: column;
  }

  /* Add extra top padding to carousel on mobile */
  .carousel {
    padding-top: 0;
    padding-bottom: 0;
    flex-grow: 1;
    display: flex;
    align-items: center;
    min-height: 0;
  }

  /* Move section title decoration to the right on mobile */
  .section-title::after {
    right: 0px;
  }

  /* Make section title padding smaller on mobile */
  .section-title {
    font-size: 1.5rem;
    flex-shrink: 0;
  }

  .section-title h2 {
    font-size: 1.5rem;
  }

  .language-switcher {
    top: 25px;
    left: 25px;
    font-size: 1.2rem;
    gap: 6px;
  }

  .language-switcher svg {
    width: 20px;
    height: 20px;
  }

  /* Disable card hover effects on mobile */
  .card {
    pointer-events: none;
    cursor: default;
  }

  .card:hover {
    transform: none;
    box-shadow: rgba(0, 0, 0, 0.1) 5px 5px 20px 0;
    filter: brightness(0.85);
  }

  .card::after {
    display: none;
  }

  .card:hover::after {
    display: none;
  }

  /* Hide carousel navigation arrows on mobile */
  .carousel-nav {
    display: none !important;
  }
}

@media (max-width: 480px) {
  body {
    /* The .frame is inside the body now, so target body */
    border-width: 10px;
  }

  .logo {
    font-size: 2.5rem;
    letter-spacing: 0.1em;
  }
  .slogan {
    font-size: 1.2rem;
    height: 2rem;
  }
  .cursor {
    height: 1.2rem;
  }

  .whatsapp-button {
    width: 45px;
    height: 45px;
    top: 20px;
    right: 20px;
  }

  .whatsapp-button svg {
    width: 22px;
    height: 22px;
  }

  .language-switcher {
    top: 20px;
    left: 20px;
    font-size: 1rem;
    gap: 5px;
  }

  .language-switcher svg {
    width: 18px;
    height: 18px;
  }

  /* Further disable card interactions on very small screens */
  .card {
    pointer-events: none;
  }
}
