@view-transition {
  navigation: auto;
}
/* Reset y estilos base */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html,
body {
  background: #111;
  overflow-x: hidden;
  overscroll-behavior: none;
  color: white;
  font-family: Arial, sans-serif;
  width: 100%;
}

/* Animación de bounce-pulse */
@keyframes bounce-pulse {
  0% {
    transform: translateY(0);
    scale: 0.8;
    opacity: 0.8;
  }
  50% {
    transform: translateY(-5px);
    opacity: 1;
    scale: 1;
  }
  100% {
    transform: translateY(0);
    scale: 0.8;
    opacity: 0.8;
  }
}

/* Fondo principal */
#main-background {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  background-color: #000;
}

/* Contenido principal - Añadir padding-top para compensar el header fijo */
#main-content {
  position: relative;
  z-index: 10;
  width: 100%;
  padding-top: 100px;
}

@media (max-width: 768px) {
  #main-content {
    padding-top: 80px;
  }
}

@media (max-width: 480px) {
  #main-content {
    padding-top: 60px;
  }
}

.hero-section {
  height: 100vh;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-content {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 4rem;
  font-weight: bold;
  text-align: center;
  color: white;
  text-shadow: 0 0 20px rgba(255, 255, 255, 0.5);
}

/* Estilo para la máscara */
#logo-mask {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: #ff6b00;
  mask-image: url("/assets/britannia-logo-mask.svg");
  mask-position: center 25%;
  mask-repeat: no-repeat;
  mask-size: clamp(5000vh, 8500%, 1vh);
  -webkit-mask-image: url("../assets/britannia-logo-mask.svg");
  -webkit-mask-position: center 25%;
  -webkit-mask-repeat: no-repeat;
  -webkit-mask-size: clamp(8000vh, 8500%, 0vh);
  pointer-events: none;
  z-index: 20;
  will-change: mask-size, -webkit-mask-size, opacity;
  backface-visibility: hidden;
  transform: translateZ(0);
  transition: opacity 0.8s ease-in-out;
}

/* Contenido de la segunda timeline */
#second-timeline-content {
  position: relative;
  width: 100%;
  min-height: 100vh;
  z-index: 100;
  pointer-events: auto;
  visibility: hidden;
}

/* Contenido sobrepuesto (UI) */
#overlay-content {
  position: relative;
  width: 100%;
  height: 100%;
  padding: 2rem 1.5rem;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  gap: 2rem;
  pointer-events: auto;
}

@media (min-width: 768px) {
  #overlay-content {
    padding: 4rem 5rem;
  }
}

/* Header */
.header {
  position: fixed;
  top: 2rem;
  left: 1.5rem;
  z-index: 200;
  pointer-events: auto;
  opacity: 0;
  visibility: hidden;
}

@media (min-width: 768px) {
  .header {
    top: 4rem;
    left: 5rem;
  }
}

.logo-text-link {
  text-decoration: none;
  color: inherit;
}

.logo-text {
  font-size: 2rem;
  font-weight: bold;
  color: white;
  text-shadow: 0 0 15px rgba(255, 255, 255, 0.4);
  letter-spacing: 3px;
  font-family: "Arial", sans-serif;
  text-transform: uppercase;
  transition: color 0.3s ease, text-shadow 0.3s ease;
}

.logo-text:hover {
  color: #ff6b00;
  text-shadow: 0 0 20px rgba(255, 107, 0, 0.8);
}

.main-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  pointer-events: auto;
  gap: 2rem;
  max-width: 800px;
  margin: 0 auto;
}

.main-content h1 {
  font-size: 3.5rem;
  font-weight: bold;
  color: #ff6b00;
  text-shadow: 0 0 30px rgba(255, 107, 0, 0.6);
  z-index: 101;
  position: relative;
  line-height: 1.2;
  margin-bottom: 0;
}

.main-content p {
  font-size: 1.4rem;
  color: white;
  opacity: 0.95;
  max-width: 600px;
  line-height: 1.7;
  z-index: 101;
  position: relative;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
  font-weight: 300;
}

/*sections */
.servidores {
  display: flex;
  flex-direction: row;
  background: rgba(128, 116, 116, 0.07);
  border-radius: 16px;
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
  backdrop-filter: blur(7.3px);
  -webkit-backdrop-filter: blur(7.3px);
  border: 1px solid rgba(128, 116, 116, 0.19);
  padding: 1rem;
  gap: 1rem;
  overflow: hidden;
}

.servidores img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.two-column-layout {
  display: flex;
  justify-content: space-around;
  align-items: flex-start;
  padding: 20px;
}

.left-column {
  flex: 1;
  padding-right: 20px;
}

.right-column {
  flex: 1;
  padding-left: 20px;
}

.right-column img {
  max-height: 500px;
  object-fit: contain;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.35);
}

.skin-component {
  margin-top: 20px;
  margin-left: 0;
  padding-left: 20px;
  width: fit-content;
}

/* Ícono de scroll */
.keep-scrolling {
  position: fixed;
  bottom: 0.75rem;
  left: 50%;
  transform: translateX(-50%);
  color: #ff6b00;
  filter: drop-shadow(0 25px 25px rgb(0 0 0 / 0.15));
  animation: bounce-pulse 2s ease-in-out infinite;
  z-index: 40;
}

.keep-scrolling svg {
  width: 34px;
  height: 14px;
}

/* Utilidades */
.relative {
  position: relative;
}

.pointer-events-auto {
  pointer-events: auto;
}

/* Frames Animation */
#frames-animation {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 5;
  pointer-events: none;
  opacity: 1;
  background-color: #000;
  will-change: opacity;
  backface-visibility: hidden;
  transform: translateZ(0);
}

#frames-animation img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  will-change: opacity;
  backface-visibility: hidden;
  transform: translateZ(0);
  image-rendering: -webkit-optimize-contrast;
  image-rendering: crisp-edges;
}

/* Responsive */
@media (max-width: 768px) {
  .logo-text {
    font-size: 1.5rem;
    letter-spacing: 2px;
  }

  .hero-content {
    font-size: 2.5rem;
  }

  .main-content h1 {
    font-size: 2.5rem;
  }

  .main-content p {
    font-size: 1.2rem;
    line-height: 1.6;
  }

  #overlay-content {
    padding: 1.5rem 1rem;
  }

  .main-content {
    gap: 1.5rem;
  }
}

@media (max-width: 480px) {
  .main-content h1 {
    font-size: 2rem;
  }

  .main-content p {
    font-size: 1.1rem;
  }

  .logo-text {
    font-size: 1.3rem;
  }
}