/* ========== RESET ========== */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  height: 100%;
  font-family: system-ui, sans-serif;
  color: #fff;
  overflow-x: hidden;
  padding-bottom: 20px;
}

/* ========== CUSTOM CURSOR ==========*/
.custom-cursor {
  position: fixed;
  width: 0px;
  height: 0px;
  background: #ff4da6;
  border-radius: 50%;
  pointer-events: none;
  transform: translate(-50%, -50%);
  z-index: 10000;
  box-shadow: 0 0 15px #ff4da6, 0 0 30px #e91e63;
}

#custom-cursor-canvas {
  position: fixed;
  top: 0;
  left: 0;
  pointer-events: none;
}

/* ========== VIDEO BACKGROUND ========== */
#bg-video {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: blur(1px) brightness(1);
  z-index: -2;
}

#bg {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;

  background-size: cover;
  background-position: center;

  z-index: -1;

  transition: opacity 1s ease;
}

/* ========== OVERLAY ========== */
.overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.3);
  z-index: -1;
}

/* ========== HEADER ========== */
.header {
  position: sticky;
  top: 20px;
  z-index: 1000;
  width: 98%;
  margin: 0px auto;
  background: rgba(120, 46, 67, 0.75);
  border-radius: 25px;
  backdrop-filter: blur(5px);
  box-shadow: 0 6px 20px rgba(0,0,0,0.35);
  font-family: 'Bungee', cursive;
  transition: 
    padding 0.35s ease,
    box-shadow 0.35s ease;
}

/* ========== NAV ========== */
.nav {
  max-width: 1500px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 2rem;

  padding: 1rem 2.5rem;
  transition: padding 0.35s ease, gap 0.35s ease;
}

/* ========== LOGO ========== */
.logo img {
  max-height: 120px;
  max-width: 120px;
  border-radius: 50%;
  border: 3px solid #000;
  transition: transform 0.35s ease, height 0.3s ease, width 0.3s ease;
}

/* ========== NAV LINKS ========== */
.desktop-nav {
  list-style: none;
  display: flex;
  gap: 2.4rem;
}

.desktop-nav a {
  display: inline-block;
  font-family: 'Bungee', cursive;
  font-size: 2rem;
  color: #fff;
  text-decoration: none;
  transition: color 0.35s ease, transform 0.35s ease, font-size 0.35s ease;
  transform-origin: center;
}

.desktop-nav a.active {
  color: #f39c12;
  font-weight: bold;
  text-decoration: underline;
  transform: scale(1.2);
}

.desktop-nav a:hover {
  color: #f39c12;
  transform: scale(1.2);
}

/* ========== HEADER SHRINK ========== */

.header.shrink {
  box-shadow: 0 4px 14px rgba(0,0,0,0.3);
}

.header.shrink .nav {
  font-size: 1.3rem;
  padding: 0.05rem 2.5rem;
  transform: translateY(-2px);
  /* gap: 2rem; */
}

.header.shrink .desktop-nav a {
  font-size: 1.5rem;
}

.header.shrink .logo img {
  transform: scale(0.75);
}

/* ========== SECTIONS ========== */
section {
  padding: 2rem 2rem 2rem 2rem;
  text-align: center;
  text-shadow: 2px 2px 4px black;
}

/* ========== FOOTER ========== */
footer {
  background-color: #222;
  color: #fff;
  text-align: center;
  padding: 12px 0;
  font-family: Arial, sans-serif;
  font-size: 12px;
  position: fixed;
  bottom: 0;
  width: 100%;
}

.back-to-top {
  position: fixed;
  right: 20px;
  bottom: 20px;
  width: 45px;
  height: 45px;
  background-color: #f39c12;
  color: #fff;
  display: flex;
  justify-content: center;
  align-items: center;
  text-decoration: none;
  font-size: 22px;
  border-radius: 50%;
  box-shadow: 0 4px 6px rgba(0,0,0,0.3);
  transition: background-color 0.3s, transform 0.2s, opacity 0.4s, bottom 0.3s;
  opacity: 0;
  pointer-events: none;
  z-index: 1000;
}

.back-to-top.visible {
  opacity: 1;
  pointer-events: auto;
}

.back-to-top:hover {
  background-color: #e67e22;
  transform: translateY(-3px);
}