@import url('https://fonts.googleapis.com/css2?family=Varela+Round&display=swap');

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: "Varela Round", sans-serif;
  min-height: 100vh;
  overflow: hidden; /* ✅ Default: no scroll on home/timer */
  position: relative;
  background-image: url(https://cdnb.artstation.com/p/assets/images/images/049/953/491/large/diana-baltezar-room2-recuperado2.jpg?1653695448);
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  background-attachment: fixed;
  padding-top: 60px; /* room for nav bar */
}

/* ✅ Scrollable pages */
body.scrollable {
  overflow-y: auto;
}

/* Subtle texture overlay */
body::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle at 20% 50%, rgba(120, 119, 198, 0.1) 0%, transparent 50%),
              radial-gradient(circle at 80% 20%, rgba(255, 119, 198, 0.1) 0%, transparent 50%),
              radial-gradient(circle at 40% 80%, rgba(120, 219, 255, 0.1) 0%, transparent 50%);
  pointer-events: none;
  z-index: 0;
}

/* ✅ TOP NAV BAR */
.top-nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  display: flex;
  justify-content: flex-end;
  align-items: center;
  padding: 10px 20px;
  background: rgba(0, 0, 0, 0.4);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  z-index: 1000;
}

.nav-icons {
  display: flex;
  gap: 20px;
}

.nav-icon {
  font-size: 1.5rem;
  color: white;
  cursor: pointer;
  transition: transform 0.15s ease, color 0.15s ease;
  display: flex;
  align-items: center;
}

.nav-icon:hover {
  transform: scale(1.2);
  color: #ffd966;
}

/* Home arrows */
.home-arrow {
  text-decoration: none;
  position: fixed;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(0, 0, 0, 0.4);
  color: rgba(255, 255, 255, 0.8);
  padding: 20px 25px;
  cursor: pointer;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  font-size: 1.2rem;
  backdrop-filter: blur(5px);
  z-index: 15;
  display: flex;
  align-items: center;
  gap: 15px;
  border-radius: 20px;
  white-space: nowrap;
}

.home-arrow.left { left: 40px; flex-direction: row; }
.home-arrow.right { right: 40px; flex-direction: row-reverse; }

.arrow-icon {
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  flex-shrink: 0;
  line-height: 1;
  font-weight: bold;
  font-size: 2.5rem;
}

.arrow-text {
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  font-weight: 300;
  letter-spacing: 1px;
  white-space: nowrap;
}

.home-arrow:hover { color: rgba(255, 255, 255, 0.9); }

.home-arrow.left:hover {
  transform: translateY(-50%) translateX(15px) scale(1.2);
  box-shadow: 0 15px 50px rgba(137, 102, 234, 0.3);
}

.home-arrow.right:hover {
  transform: translateY(-50%) translateX(-15px) scale(1.2);
  box-shadow: 0 15px 50px rgba(192, 102, 234, 0.3);
}

.home-arrow:hover .arrow-icon { font-size: 2rem; }

/* Main content pages */
.page {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.5s ease;
  pointer-events: none;
}

.page.active {
  opacity: 1;
  transform: translateY(0);
  pointer-events: all;
}

/* Home content */
.home-content {
  text-align: center;
  color: white;
}

.title {
  font-size: 5.5rem;
  font-weight: 500;
  margin-bottom: 20px;
  background: linear-gradient(135deg, #a2b3ff 0%, #9265c0 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.subtitle {
  font-size: 1.2rem;
  color: rgba(255, 255, 255, 0.8);
  margin-bottom: 60px;
  font-weight: 300;
}


.main-timer-btn {
  background: linear-gradient(135deg, rgba(102, 126, 234, 0.2) 0%, rgba(118, 75, 162, 0.2) 100%);
  border: 2px solid rgba(255, 255, 255, 0.2);
  color: white;
  padding: 20px 40px;
  font-size: 1.3rem;
  border-radius: 50px;
  cursor: pointer;
  transition: all 0.3s ease;
  backdrop-filter: blur(10px);
  letter-spacing: 1px;
}

.main-timer-btn:hover {
  background: linear-gradient(135deg, rgba(102, 126, 234, 0.3) 0%, rgba(118, 75, 162, 0.3) 100%);
  border-color: rgba(255, 255, 255, 0.4);
  transform: translateY(-2px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}