/* base.css */

#dev {
  position: fixed;
  left: 0;
  top: 0;
  background: green;
  color: white;
}

:root {
  scroll-behavior: smooth;
  --white: #FFFFFF;
  --bg-dark: #030303;
  --bg-dark50: #03030380;
  --dark-red: #710707;
  --font-gold: #9D8665;
  --text-gold: #CAAA7D;
  --font-gold-dimmed: #7E6C51;
  --golden: #D2B183;
  --carbon: #333333;
  --gray: #666666;
  --silver: #C4C4C4;
}

body {
  font-family: "Roboto", sans-serif;
  font-weight: 100;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.header {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

header nav ul {
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-weight: 100;
}

.nav-list-link:link,
.nav-list-link:visited {
  color: var(--white);
  transition: color 0.5s ease;
  -webkit-transition: color 0.5s ease;
  -moz-transition: color 0.5s ease;
  -ms-transition: color 0.5s ease;
  -o-transition: color 0.5s ease;
}

.nav-list-link:hover {
  color: var(--font-gold);
}

.nav-list-link:active {
  color: var(--font-gold-dimmed);
}

header,
main,
footer {
  width: 100%;
}

h1, h2, h3, h4, h5, h6 {
  margin: 0;
  font-family: "Forum", serif;
  font-weight: 400;
  text-transform: uppercase;
}

p {
  margin: 0;
}

a {
  text-decoration: none;
}

.content {
  width: 100%;
  margin-inline: auto;
}

header,
#welcome,
#explore,
#gallery,
footer {
  background: var(--bg-dark);
  color: var(--white);
}

.cta {
  position: relative;
}

.cta p {
  position: relative;
  font-weight: 300;
}

.cta a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 300;
  background: var(--dark-red);
  color: var(--white);
  transition: background 0.5s ease;
  -webkit-transition: background 0.5s ease;
  -moz-transition: background 0.5s ease;
  -ms-transition: background 0.5s ease;
  -o-transition: background 0.5s ease;
}

.cta a:hover {
  background: var(--font-gold);
}

.content {
  position: relative;
  height: 100%;
}

#welcome-slider {
  position: absolute;
  right: 0;
  top: 0;
  overflow: hidden;
}

#welcome-slider::after {
  width: 100%;
  height: 100%;
  content: "";
  position: absolute;
  left: 0;
  top: 0;
}

.slider-view {
  display: flex;
  /* position: relative; */
  width: 100%;
  transition: transform 0.5s ease;
  -webkit-transition: transform 0.5s ease;
  -moz-transition: transform 0.5s ease;
  -ms-transition: transform 0.5s ease;
  -o-transition: transform 0.5s ease;
}

.slider-view-slide {
  flex-shrink: 0;
  width: 1000px;
  height: 750px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.slider-view-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
}

.slider-navigation {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 56px;
  position: absolute;
  z-index: 1;
  bottom: 0;
  right: 0;
  background: var(--bg-dark);
}

.slider-navigation .count {
  font-size: 22px;
  font-weight: 400;
}

.slider-navigation .thumbs {
  display: flex;
  gap: 24px;
}

.thumbs span {
  display: inline-block;
  width: 16px;
  height: 16px;
  background: var(--white);
  margin: 0 4px;
  cursor: pointer;
  transition: background 0.5s ease;
  -webkit-transition: background 0.5s ease;
  -moz-transition: background 0.5s ease;
  -ms-transition: background 0.5s ease;
  -o-transition: background 0.5s ease;
}

.thumbs span.active {
  background: var(--golden);
}

.thumbs span:hover {
  background: var(--font-gold);
}

.arrows button {
  background: none;
  border: none;
  cursor: pointer;
}

.arrows button svg {
  width: 30px;
  height: 8px;
}

.slider-navigation .arrows {
  display: flex;
  justify-content: space-between;
  height: 8px;
  width: 80px;
}

.arrows button svg path {
  fill: var(--white);
  transition: fill 0.5s ease;
  -webkit-transition: fill 0.5s ease;
  -moz-transition: fill 0.5s ease;
  -ms-transition: fill 0.5s ease;
  -o-transition: fill 0.5s ease;
}

.arrows button:hover svg path {
  fill: var(--font-gold);
}

h2 {
  font-weight: 400;
}

#visiting h2,
#video h2,
#tickets h2,
#contacts h2 {
  color: var(--font-gold);
}

#explore h2,
#gallery h2 {
  color: var(--white);
}

#visiting h2,
#explore h2,
#tickets h2,
#contacts h2 {
  position: relative;
}

#visiting h2::after,
#explore h2::after,
#tickets h2::after,
#contacts h2::after {
  position: absolute;
  content: "";
  width: 100%;
  height: 3px;
  background: var(--dark-red);
  left: 0;
}

.visiting-grid {
  display: grid;
  width: 100%;
}

.visiting-grid .visual-item img {
  width: 100%;
}

.visual-item h3 {
  position: relative;
}

.visual-item h3::after {
  position: absolute;
  content: "";
  width: 67.5%;
  height: 3px;
  background: var(--dark-red);
  left: 0;
  bottom: -10px;
  transition: none;
  animation-fill-mode: forwards;
}

/* Hover animation (forward motion) */
@keyframes stratching-in {
  0% { width: 67.5%; }
  16.75% { width: 100%; }
  67.5% { width: 0; }
  100% { width: 67.5%; }
}

/* Leave animation (return to base state) */
@keyframes stratching-out {
  from { width: 0; }
  to { width: 67.5%; }
}

.visual-item:hover h3::after {
  animation: stratching-in 2s infinite linear;
  -webkit-animation: stratching-in 2s infinite linear;
}

.visual-item:not(:hover) h3::after {
  animation: stratching-out 0.5s linear;
  -webkit-animation: stratching-out 0.5s linear;
}

h3.in::after {
  animation: stratching-in 2s linear forwards;
}

h3.out::after {
  animation: stratching-out 0.5s ease forwards;
}

#explore .picture {
  position: relative;
}

#explore .picture .ace {
  position: absolute;
  top: 0;
  left: 0;
  display: flex;
  width: 100%;
}

#explore .picture .ace #sliding {
  width: 62%;
  overflow: hidden;
  position: relative;
  transition: width 0.5s ease;
  pointer-events: none; /* Prevent blocking mouse events */
}

#explore .picture .ace #sliding::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  background-image: url('./../assets/images/explore/las-meninas.png');
  background-position: center;
  background-size: cover;
  height: 100%;
  width: 720px;
  filter: hue-rotate(15deg) contrast(1.1) brightness(2) saturate(1.5);
  -webkit-filter: hue-rotate(15deg) contrast(1.1) brightness(2) saturate(1.5);
}

#explore .picture .ace .slide {
  margin-inline: -19px;
  z-index: 1;
}

#video .head p {
  display: none;
}

#video-slider {
  width: 100%;
  padding-top: 75px;
}

#video-tiles {
  width: 100%;
  position: relative;
  aspect-ratio: 1.301 !important;
  overflow: hidden;
}

.video {
  position: absolute;
  transition: width 0.5s ease, transform 0.5s ease;
  -webkit-transition: width 0.5s ease, transform 0.5s ease;
  -moz-transition: width 0.5s ease, transform 0.5s ease;
  -ms-transition: width 0.5s ease, transform 0.5s ease;
  -o-transition: width 0.5s ease, transform 0.5s ease;
  overflow: hidden;
  cursor: pointer;
}

.video .controls {
  position: absolute;
  bottom: 0;
  background: var(--bg-dark);
  color: var(--white);
  width: 100%;
  height: 6%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  opacity: 1;
  transform: translateY(0);
  transition: opacity 0.3s ease, transform 0.3s ease;
}


[data-action="toggle-play"] svg {
  width: 23px;
  height: 31px;
}

.timeline {}

[data-action="mute"] svg {
  width: 38px;
  height: 31px;
}

.volume-indicator{}
.volume {}

[data-action="fullscreen"] svg {
  width: 35px;
  height: 35px;
}

[data-action="toggle-play"],
.timeline,
[data-action="mute"],
.volume,
[data-action="fullscreen"] {
  cursor: pointer;
}

.timeline {
  width: 65%;
  margin-inline: 15px;
}

.volume-container {
  display: flex;
  align-items: center;
  margin-inline: 15px;
  width: 10.75%;
  position: relative;
}

.volume {
  width: 100%;
}

input[type="range"].volume,
input[type="range"].timeline {
  -webkit-appearance: none;
  appearance: none;
  height: 8px;
  background: linear-gradient(to right, var(--dark-red) 50%, var(--silver) 50%);
  outline: none;
  cursor: pointer;
}

input[type="range"].volume::-webkit-slider-thumb,
input[type="range"].timeline::-webkit-slider-thumb {
  -webkit-appearance: none;
  height: 15px;
  width: 15px;
  background: var(--white);
  border-radius: 50%;
  border: none;
}

input[type="range"].volume::-moz-range-thumb,
input[type="range"].timeline::-moz-range-thumb {
  height: 15px;
  width: 15px;
  background: var(--white);
  border-radius: 50%;
  border: none;
}

input[type="range"].volume::-moz-range-track,
input[type="range"].timeline::-moz-range-track {
  height: 8px;
  background: var(--silver);
}

input[type="range"].volume::-moz-range-progress,
input[type="range"].timeline::-moz-range-progress {
  height: 8px;
  background: var(--dark-red);
}


.volume-indicator {
  position: absolute;
  top: -30px;
  transform: translateX(-50%);
  transition: left 0.15s ease, opacity 0.5s;
  opacity: 0;
  z-index: 10;
  pointer-events: none;
  font-size: 14px;
  padding: 2px 6px;
  border-radius: 4px;
  border: 1px solid var(--silver);
}

.volume-indicator.visible {
  opacity: 1;
}


[data-action="toggle-play"],
[data-action="mute"],
[data-action="fullscreen"] {
  border: none;
  background: none;
  padding-inline: 30px;
}


.controls.hidden {
  opacity: 0;
  pointer-events: none;
  transform: translateY(100%);
  -webkit-transform: translateY(100%);
  -moz-transform: translateY(100%);
  -ms-transform: translateY(100%);
  -o-transform: translateY(100%);
}

.video:not(.video-0) .controls {
  display: none;
}

.video-0::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 15.2777%;
  aspect-ratio: 1;
  background: url('/assets/icons/play.svg') no-repeat center center;
  background-size: contain;
  pointer-events: none;
  opacity: 1;
  transition: opacity 0.4s ease, transform 0.4s ease;
  transform: translate(-50%, -50%) scale(1);
  -webkit-transform: translate(-50%, -50%) scale(1);
  -moz-transform: translate(-50%, -50%) scale(1);
  -ms-transform: translate(-50%, -50%) scale(1);
  -o-transform: translate(-50%, -50%) scale(1);
}

/* Hide when playing */
.video-0[data-paused="false"]::after {
  opacity: 0;
  transform: translate(-50%, -50%) scale(3.5);
  -webkit-transform: translate(-50%, -50%) scale(3.5);
  -moz-transform: translate(-50%, -50%) scale(3.5);
  -ms-transform: translate(-50%, -50%) scale(3.5);
  -o-transform: translate(-50%, -50%) scale(3.5);
}

#video-navigation {
  width: 200px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 40px auto 0;
}

#video-navigation span {
  display: inline-block;
  width: 32px;
  height: 32px;
  cursor: pointer;
  position: relative;
  background: none;
}

#video-navigation span::after {
  content: "";
  background: gray;
  border-radius: 50%;
  display: inline-block;
  width: 12px;
  height: 12px;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  transition: background 0.5s ease;
  -webkit-transition: background 0.5s ease;
  -moz-transition: background 0.5s ease;
  -ms-transition: background 0.5s ease;
  -o-transition: background 0.5s ease;
  -webkit-border-radius: 50%;
  -moz-border-radius: 50%;
  -ms-border-radius: 50%;
  -o-border-radius: 50%;
  -webkit-transform: translate(-50%, -50%);
  -moz-transform: translate(-50%, -50%);
  -ms-transform: translate(-50%, -50%);
  -o-transform: translate(-50%, -50%);
}

#video-navigation span.active::after {
  background: var(--carbon);
}

#video-navigation span:hover::after {
  background: var(--dark-red);
}

#video-navigation button {
  padding: 10px;
  background: none;
  border: none;
  cursor: pointer;
}

#video-navigation button svg {
  width: 10px;
  height: 12px;
}

#video-navigation button svg path {
  transition: fill 0.5s ease;
  -webkit-transition: fill 0.5s ease;
  -moz-transition: fill 0.5s ease;
  -ms-transition: fill 0.5s ease;
  -o-transition: fill 0.5s ease;
}

#video-navigation button:hover svg path {
  fill: var(--dark-red);
}

.video,
.video video {
  aspect-ratio: 1.77777 !important;
}

.video video {
  width: 100%;
}

.video-0, .video-4 {
  width: 100%;
  top: 0;
  left: 0;
}

.video-0 {
  z-index: 1;
  transform: translate(0, 0);
  -webkit-transform: translate(0, 0);
  -moz-transform: translate(0, 0);
  -ms-transform: translate(0, 0);
  -o-transform: translate(0, 0);
}

.video-4 {
  transform: translate(calc(100% + 40px), 0);
  -webkit-transform: translate(calc(100% + 40px), 0);
  -moz-transform: translate(calc(100% + 40px), 0);
  -ms-transform: translate(calc(100% + 40px), 0);
  -o-transform: translate(calc(100% + 40px), 0);
}

.video-1,
.video-2,
.video-3 {
  top: 0;
  left: 0;
  width: 31.5%;
}

.video-1 {
  transform: translate(0, calc(318% + 40px));
  -webkit-transform: translate(0, calc(318% + 40px));
  -moz-transform: translate(0, calc(318% + 40px));
  -ms-transform: translate(0, calc(318% + 40px));
  -o-transform: translate(0, calc(318% + 40px));
}

.video-2 {
  transform: translate(calc(100% + 40px), calc(318% + 40px));
  -webkit-transform: translate(calc(100% + 40px), calc(318% + 40px));
  -moz-transform: translate(calc(100% + 40px), calc(318% + 40px));
  -ms-transform: translate(calc(100% + 40px), calc(318% + 40px));
  -o-transform: translate(calc(100% + 40px), calc(318% + 40px));
}

.video-3 {
  transform: translate(calc(200% + 80px), calc(318% + 40px));
  -webkit-transform: translate(calc(200% + 80px), calc(318% + 40px));
  -moz-transform: translate(calc(200% + 80px), calc(318% + 40px));
  -ms-transform: translate(calc(200% + 80px), calc(318% + 40px));
  -o-transform: translate(calc(200% + 80px), calc(318% + 40px));
}

footer {
  position: relative;
  font-size: 22px;
  letter-spacing: 2px;
}

footer .top {
  display: flex;
  gap: 100px;
  padding: 75px 0 50px;
  justify-content: space-between;
}

footer .top .links {
  flex-grow: 1;
  display: flex;
  justify-content: space-between;
}

footer .top .nav-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  align-content: center;
  justify-items: center;
  gap: 150px;
}

footer .top .nav-list li .sub-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

footer .top .social-media {
  display: flex;
  align-items: end;
  gap: 25px;
}

footer .top .social-media a svg * {
  transition: stroke 0.5s ease, fill 0.5s ease;
  -webkit-transition: stroke 0.5s ease, fill 0.5s ease;
  -moz-transition: stroke 0.5s ease, fill 0.5s ease;
  -ms-transition: stroke 0.5s ease, fill 0.5s ease;
  -o-transition: stroke 0.5s ease, fill 0.5s ease;
}

footer .top .social-media a:hover svg path {
  fill: var(--font-gold);
}

footer .top .social-media a:hover svg rect {
  stroke: var(--font-gold-dimmed);
}

footer::after {
  content: "";
  position: absolute;
  bottom: 124px;
  height: 3px;
  width: 100%;
  left: 0;
  right: 0;
  background: var(--gray);
}

footer .bottom {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.text-gold {
  color: var(--text-gold);
}
