:root {
  --bg: #0a0d2e; 
  --glass: rgba(255,255,255,0.08);
  --border: rgba(255,255,255,0.15);
  --primary: #ff0055;
}

* {
  box-sizing: border-box;
  -webkit-tap-highlight-color: transparent;
}

body {
  margin: 0;
  background: var(--bg);
  font-family: 'Poppins', sans-serif;
  color: white;
  overflow-x: hidden;
  overflow-y: auto; 
  -webkit-overflow-scrolling: touch; 
}

/* --- Intro / Lock Screen --- */
#intro {
  position: fixed; inset: 0; background: #000; z-index: 999;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  transition: opacity 0.8s;
}

/* Styles for the Countdown */
#lockContainer {
    text-align: center;
    animation: fadeIn 1s ease;
}

.lock-title {
    font-size: 18px;
    letter-spacing: 2px;
    opacity: 0.7;
    margin-bottom: 20px;
    text-transform: uppercase;
}

.lock-timer {
    font-size: clamp(30px, 8vw, 60px);
    font-weight: 800;
    color: #ff0055;
    text-shadow: 0 0 20px rgba(255, 0, 85, 0.5);
    font-family: 'Courier New', Courier, monospace; /* Digital clock look */
}

/* Unlock Container (Hidden by default) */
#unlockContainer {
    display: flex;
    flex-direction: column;
    align-items: center;
    animation: popIn 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.hidden { display: none !important; }

@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes popIn { from { transform: scale(0); opacity: 0; } to { transform: scale(1); opacity: 1; } }

.btn {
  font-size: 80px; cursor: pointer;
  filter: drop-shadow(0 0 30px #ff0055);
  animation: pulse-heart 1s infinite;
}
.intro-text {
  margin-top: 20px; letter-spacing: 4px; font-size: 12px; opacity: 0.7;
}
@keyframes pulse-heart { 0%,100%{transform:scale(1)} 50%{transform:scale(1.15)} }


/* --- Long Container Layout --- */
.long-page {
  position: relative;
  width: 100%;
  min-height: 200vh; 
  display: flex;
  flex-direction: column;
  justify-content: space-between; 
  opacity: 0; 
  transition: opacity 1.5s ease;
}
.long-page.show { opacity: 1; }

/* --- Canvas Positioning --- */
canvas {
  position: absolute;
  top: 0; left: 0; width: 100%; height: 100%; z-index: 0; pointer-events: none;
}

/* --- Top Banner Section --- */
.banner-section {
  position: relative; z-index: 10; width: 100%; height: 100vh; 
  display: flex; justify-content: center; align-items: center; 
}

.card {
  background: var(--glass);
  border: 1px solid var(--border);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-radius: 20px;
  padding: 25px;
  width: 90%; max-width: 500px;
  box-shadow: 0 10px 40px rgba(0,0,0,0.5);
  text-align: center;
  transform: translateY(-50px); 
}

h1 {
  font-size: clamp(24px, 6vw, 32px);
  line-height: 1.2; margin: 0 0 10px 0;
  background: linear-gradient(to right, #ff9a9e, #fecfef);
  background-clip: text;
  -webkit-background-clip: text; color: transparent;
}
.subtitle { font-size: 12px; opacity: 0.8; margin: 0; }

/* --- Inner Timer Styling --- */
.timer { 
  margin-top: 20px; display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; 
}
.t-box { background: rgba(255,255,255,0.05); padding: 8px 4px; border-radius: 8px; }
.val { font-size: clamp(16px, 5vw, 22px); font-weight: 700; display: block; height: 1.2em; }
.pulse { display: inline-block; animation: digital-pulse 0.4s ease-out; }
@keyframes digital-pulse { 
  0% { transform: scale(1.0); opacity: 0.5; }
  50% { transform: scale(1.3); opacity: 1.0; }
  100% { transform: scale(1.0); opacity: 1.0; }
}
.lbl { font-size: 9px; opacity: 0.6; text-transform: uppercase; margin-top: 4px; display: block;}

/* --- Footer --- */
.footer-section {
  position: relative; z-index: 10; width: 100%;
  display: flex; justify-content: center; padding-bottom: 80px; 
}

.celebrate-btn {
  background: linear-gradient(45deg, #ff0055, #ff0080);
  border: none; padding: 16px 32px; color: white;
  font-family: 'Poppins', sans-serif; font-weight: 700; font-size: 16px;
  border-radius: 50px; cursor: pointer;
  box-shadow: 0 5px 20px rgba(255, 0, 85, 0.4);
  transition: transform 0.2s;
  animation: float-btn 3s ease-in-out infinite;
  user-select: none; width: 80%; max-width: 300px;
}
@keyframes float-btn { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-5px); } }
.celebrate-btn:active { transform: scale(0.95); }

/* --- Scroll Arrow --- */
.scroll-indicator {
  position: fixed; bottom: 20px; right: 20px; width: 50px; height: 50px;
  background: rgba(255, 255, 255, 0.1); border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 50%; display: flex; align-items: center; justify-content: center;
  font-size: 24px; color: white; z-index: 100;
  animation: bounceArrow 2s infinite; transition: opacity 0.5s ease;
  cursor: pointer; backdrop-filter: blur(5px);
  opacity: 0; pointer-events: none;
}
.scroll-indicator.visible { opacity: 1; pointer-events: auto; }
.scroll-indicator.fade-out { opacity: 0; pointer-events: none; }
@keyframes bounceArrow {
  0%, 20%, 50%, 80%, 100% {transform: translateY(0);}
  40% {transform: translateY(-10px);}
  60% {transform: translateY(-5px);}
}
