/* =========================================
   ✅ HERO SECTION WITH FADE LAYERS
========================================= */
header#hero {
  position: relative;
  height: 90vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  color: white;
  text-shadow: 1px 1px 4px black;
  text-align: center;
  overflow: hidden;
}

/* background layers */
#hero::before,
#hero::after {
  content: "";
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  transition: opacity 1s ease-in-out;
}

#hero::before {
  z-index: 1;
  opacity: 1;
  background-image: var(--bg-before);
}

#hero::after {
  z-index: 2;
  opacity: 0;
  background-image: var(--bg-after);
}

/* fade animation */
#hero.fade::before { opacity: 0; }
#hero.fade::after { opacity: 1; }

header h1 {
  font-size: 3rem;
  z-index: 3;
  position: relative;
}

/* fallback hero styling */
.hero {
  height: 100vh;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

/* =========================================
   ✅ FONT AWESOME SELF-HOSTED
========================================= */
@font-face {
  font-family: 'Font Awesome 6 Brands';
  font-style: normal;
  font-weight: 400;
  src: url('../webfonts/fa-brands-400.woff2') format('woff2');
}

@font-face {
  font-family: 'Font Awesome 6 Free';
  font-style: normal;
  font-weight: 900;
  src: url('../webfonts/fa-solid-900.woff2') format('woff2');
}

.fab {
  font-family: 'Font Awesome 6 Brands';
  font-weight: 400;
}

.fas {
  font-family: 'Font Awesome 6 Free';
  font-weight: 900;
}

.fa-facebook::before { content: "\f09a"; }
.fa-instagram::before { content: "\f16d"; }
.fa-whatsapp::before { content: "\f232"; }
.fa-envelope::before { content: "\f0e0"; }

/* =========================================
   ✅ LANGUAGE SWITCHER
========================================= */
.lang-switch {
  position: absolute; 
  top: 20px;
  right: 20px;
  display: flex;
  gap: 8px;
}

.lang-switch button {
  background: rgba(255,255,255,0.8);
  border: 1px solid #ccc;
  border-radius: 5px;
  padding: 5px 10px;
  cursor: pointer;
  font-size: 14px;
  transition: background 0.3s;
}

.lang-switch button:hover {
  background: #f0f0f0;
}

.lang-content { display: none; }
.lang-content.active { display: block; }

/* ✅ Surf Video Section (centered within page width) */
#surf-video-section {
  padding: 2rem 1rem;
  max-width: 1000px;   /* same as other sections */
  margin: 0 auto;
  text-align: center;
  background: transparent;
}

#surf-video {
  width: 100%;
  max-width: 100%;
  height: auto;
  object-fit: contain;
  border-radius: 8px;
  display: block;
  margin: 0 auto;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.15);
}

/* ✅ Responsive scaling for tablets */
@media (max-width: 768px) {
  #surf-video-section {
    padding: 1.5rem 0.5rem;
    max-width: 95%;
  }

  #surf-video {
    width: 90%;       /* slightly smaller */
    height: auto;
  }
}

/* ✅ Extra small screens (phones) */
@media (max-width: 480px) {
  #surf-video-section {
    padding: 1rem 0.5rem;
  }

  #surf-video {
    width: 80%;        /* make video smaller on mobile */
    height: auto;
    border-radius: 4px; /* gentler rounding */
    box-shadow: none;   /* optional: remove shadow for cleaner look */
  }
}

