/* ========== Base Reset ========== */
:root {
	background: rgb(26, 26, 26);
}

html, body {
	margin: 0;
	padding: 0;
	height: 100%;
	color: rgb(255, 255, 255);
	overflow: auto;
	text-align: center;
    font-family: "Quicksand", sans-serif;
    font-optical-sizing: auto;
    font-weight: 300;
    font-style: normal;
	justify-content: center;
	align-items: center;
	align-content: center;
}

body::before {
	content: '';
	position: fixed;
	inset: 0;
	background: rgba(10, 0, 25, 0.5);
	z-index: 1;
}

a {
    font-family: "Quicksand", sans-serif;
    font-weight: 500;
	text-decoration: none;
	color: #913ff5;
}

/* ========== Video Background ========== */
video {
	position: fixed;
	top: 0;
	left: 0;
	width: 100vw;
	height: 100vh;
	object-fit: cover;
	z-index: 0;
	animation: fade 0.6s forwards;
}

video#bg-video-muted {
	filter: blur(5px) saturate(40%);
}

.music-toggle {
    position: fixed;
    top: -1.5rem;
	left: calc(50% - 26px);
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: rgba(26, 26, 26, 0.658);
	backdrop-filter: blur(10px) !important;
    border: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 0 8px rgba(255, 255, 255, 0.12);
    z-index: 5;
    cursor: pointer;
	opacity: 0;
	animation: fade 1s 1s forwards;
}

.music-toggle img {
    width: 21px;
    height: 21px;
    margin-left: -3px;
    pointer-events: none;
}

/* ========== Main Container ========== */
.container {
	position: relative;
	margin-top: 2rem;
	z-index: 2;
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 1.2rem;
}

/* ========== Header & Countdown ========== */
h3 {
	font-size: 1.8rem;
	margin-bottom: 0rem;
}

#countdown {
	font-size: 2rem;
	font-weight: bold;
	margin-top: 0rem;
	margin-bottom: 0.5rem;
	text-shadow: 
	0 0 4px #1f1c5398,
	0 0 12px #201a6e75;
	color: #9d82ff;
}

/* ========== Email Input & Subscribe Button Inside Field ========== */
.input-wrapper {
	position: relative;
	width: 300px;
	opacity: 0;
	animation: slide_in_bottom_fade 1s 2.5s forwards;
}

.input-wrapper input {
	width: 100%;
	padding: 0.8rem 7rem 0.8rem 1.2rem;
	height: 48px;
	border: none;
	border-radius: 50px;
	background: rgba(255, 255, 255, 0.15);
	color: white;
	backdrop-filter: blur(2px);
	box-sizing: border-box;
	
	font-size: 1rem;
    font-family: "Quicksand", sans-serif;
    font-optical-sizing: auto;
    font-weight: 300;
    font-style: normal;
}

.input-wrapper input:focus {
	color: #ffffff;
	border: none;
	outline: none;
	background: rgba(31, 31, 31, 0.55);
	backdrop-filter: blur(15px);
}

.input-wrapper input::placeholder {
	color: #bebebe;
}

.input-wrapper .subscribe {
	position: absolute;
	top: calc(50% - 36px / 2);
	right: 0.4rem;
	height: 36px;
	padding: 0 1rem;
	border: none;
	border-radius: 50px;
    background: linear-gradient(to right, #5562d8, #8f65df);
	color: white;
	font-size: 0.9rem;
	cursor: pointer;
	transition: transform 0.2s ease, box-shadow 0.2s ease;
	margin-top: 0;
    
    font-family: "Quicksand", sans-serif;
    font-optical-sizing: auto;
    font-weight: 300;
    font-style: normal;
}

.input-wrapper .subscribe:hover {
	box-shadow: 0 0 10px #913ff5;
}

/* ========== Bubbles with Images ========== */
.bubbles {
	display: flex;
	gap: 1.5rem;
	margin: 2rem;

	justify-content: center;
	opacity: 0;
	animation: slide_in_bottom_fade 2s 6s forwards;
}

.bubble {
	width: 60px;
	height: 60px;
	border-radius: 25%;
	overflow: hidden;
	background: rgba(14, 14, 14, 0.274);
	backdrop-filter: blur(10px);
	transition: transform 0.3s ease;
	display: flex;
	align-items: center;
	justify-content: center;
	box-shadow: 0 0 8px rgba(15, 15, 15, 0.2);
}

.bubble img {
	width: 80%;
	height: 80%;
	object-fit: cover;
	border-radius: 20%;
	transition: transform 0.3s ease;
    pointer-events: none;
}

/* ========== About Glass Box ========== */
.about-text {
	opacity: 0;
	animation: slide_in_top_fade 2s 2.6s forwards;
}

.about-box {
	max-width: 600px;
	margin-top: 1rem;
	padding: 1rem 1.5rem;
	background: rgba(37, 37, 37, 0.144);
	border-radius: 16px;
	backdrop-filter: blur(10px) !important;
	color: #f0f0f0;
	font-size: 0.95rem;
	line-height: 1.6;
	box-shadow: 0 0 12px rgba(0, 0, 0, 0.397);
	text-align: center;
	border: 1px solid rgba(255, 255, 255, 0.1);
	opacity: 0;
	animation: slide_in_top_fade 1.5s 2.2s forwards;
}

/* ========== Footer ========== */
.footer-bar {
	position: fixed;
	top: 0;
	left: 0;
	width: 100%;
	padding: 0.7rem;
	text-align: center;
	font-size: 0.8rem;
	color: rgba(255, 255, 255, 0.7);
	background: rgba(0, 0, 0, 0.075);
	backdrop-filter: blur(6px);
	z-index: 3;
	letter-spacing: 0.5px;
	font-weight: 300;
	opacity: 0;
	animation: slide_in_top_fade 1s 1s forwards;
}

/* ========== Responsive Mobile Adjustments ========== */
@media (max-width: 600px) {
	.container {
		padding: 0 1rem;
		gap: 1rem;
	}

	h1 {
		font-size: 1.6rem;
	}

	#countdown {
		font-size: 2rem;
	}

	.input-wrapper {
		width: 100%;
		max-width: 320px;
		backdrop-filter: blur(10px) !important;
	}

	.about-box {
		font-size: 0.85rem;
		padding: 0.8rem 1rem;
	}

	.bubble {
		width: 44px;
		height: 44px;
	}

	.bubble img {
		width: 100%;
		height: 100%;
	}

	.footer-bar {
		font-size: 0.7rem;
		padding: 0.5rem;
	}
}

.sale-note {
	font-size: 0.75rem;
	color: rgba(255, 255, 255, 0.6);
	margin-top: -1rem;
	margin-bottom: -0.5rem;
	max-width: 280px;
	line-height: 1.4;
	
	opacity: 0;
	animation: slide_in_bottom_fade 2s 4s forwards;
}

.note {
	font-size: 0.75rem;
	color: rgba(255, 255, 255, 0.6);
	margin-bottom: -0.5rem;
}

/* ===== Notifications ===== */
/* notification container (top center) */
#notif-root {
    position: fixed;
    top: 18px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 9999;
    display: flex;
    flex-direction: column;
    gap: 10px;
    pointer-events: none; /* click-through except children */
    width: min(720px, calc(100% - 40px));
    align-items: center;
  }

  .notif {
    pointer-events: auto;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border-radius: 12px;
    padding: 12px 16px;
    color: #fff;
    box-shadow: 0 8px 30px rgba(8, 12, 20, 0.25);
    display: inline-flex;
    align-items: center;
    gap: 12px;
    width: 100%;
    max-width: 640px;
    box-sizing: border-box;
    border: 1px solid rgba(255,255,255,0.08);
    transform-origin: top center;
    animation: slideIn 0.4s ease-out forwards;
  }

  .notif[data-duration="auto"] {
    animation: slideIn 0.4s ease-out forwards;
  }

  .notif .msg {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .notif .close {
    background: transparent;
    border: none;
    color: inherit;
    cursor: pointer;
    padding: 6px;
    border-radius: 8px;
    font-size: 14px;
    opacity: .9;
  }

  @keyframes slideIn {
    from { transform: translateY(-8px) scale(.995); opacity: 0; }
    to   { transform: translateY(0) scale(1); opacity: 1; }
  }

  @keyframes fadeOut {
    to { opacity: 0; transform: translateY(-6px) scale(.995); height: 0; margin: 0; padding: 0; }
  }