:root {
	--primary: #7e9d82;
	--primary-dark: #69836d;
	--soft: #f2f6f0;
	--soft-2: #e8efe5;
	--dark: #445246;
}

html {
	height: -webkit-fill-available;
	scroll-behavior: smooth;
}

body {
	font-family: "Poppins", sans-serif;
	color: var(--dark);
	overflow-x: hidden;
	position: relative;
	background: transparent;
}

html.cover-lock,
body.cover-lock {
	overflow: hidden !important;
	height: 100%;
	/* touch-action: none; */
}

/* =========================
   FLOATING NAV BOTTOM
========================= */

.floating-nav {
	position: fixed;
	left: 50%;
	bottom: 20px;
	transform: translateX(-50%);

	display: flex;
	align-items: center;
	justify-content: center;
	gap: 2px;

	padding: 6px;

	background: rgba(255, 255, 255, 0.5);
	backdrop-filter: blur(18px);
	-webkit-backdrop-filter: blur(18px);

	border: 1px solid rgba(255, 255, 255, 0.35);
	border-radius: 999px;

	box-shadow:
		0 10px 30px rgba(0, 0, 0, 0.12),
		inset 0 1px 1px rgba(255, 255, 255, 0.5);

	z-index: 9999;
}

.floating-nav a {
	width: 42px;
	height: 42px;

	display: flex;
	align-items: center;
	justify-content: center;

	line-height: 1; /* tambah */

	color: var(--dark);
	text-decoration: none;

	border-radius: 50%;
	position: relative;

	transition:
		transform 0.3s ease,
		color 0.3s ease;
	z-index: 2;
}

.floating-nav a i {
	display: flex;
	align-items: center;
	justify-content: center;

	width: 100%;
	height: 100%;

	font-size: 18px;
	line-height: 1;

	transition: transform 0.3s ease;
}

.floating-nav a:hover {
	color: var(--primary);
	transform: translateY(-2px);
}

/* ACTIVE */

.floating-nav a.active {
	color: #fff;
}

.floating-nav a.active i {
	transform: scale(1.1);
}

.nav-indicator {
	position: absolute;

	width: 42px;
	height: 42px;

	left: 1px;
	top: 6px;

	background: var(--primary);
	border-radius: 999px;

	z-index: 0;

	box-shadow: 0 8px 20px rgba(126, 157, 130, 0.35);

	transition:
		left 0.45s cubic-bezier(0.22, 1, 0.36, 1),
		width 0.45s cubic-bezier(0.22, 1, 0.36, 1);
}

/* Mobile */

@media (max-width: 768px) {
	.floating-nav a {
		width: 42px;
		height: 42px;
	}

	.floating-nav a i {
		font-size: 15px;
	}
}
/* floating nav end */

.page-bg {
	height: 100vh;
	position: fixed;
	inset: 0;
	z-index: -1;

	background: url("bg.webp") center center no-repeat;
	background-size: cover;

	pointer-events: none;
}

.title-font {
	font-family: "Cinzel", sans-serif !important;
	font-size: 56px;
	font-weight: 400;
	line-height: 40px;
	letter-spacing: 0px;
	word-spacing: 0px;
}

.f-primary {
	color: var(--primary) !important;
}

.f-white {
	color: white !important;
}

#coverScreen {
	position: fixed;
	inset: 0;
	overflow: hidden;
	z-index: 99999;

	background: #455243; /* fallback saat bg belum load */
}

.cover-flower {
	position: absolute;
	z-index: 1;
	pointer-events: none;
	transform-origin: bottom center;
}

.flower1 {
	left: -20px;
	bottom: -20px;
	width: 220px;
}

.flower2 {
	left: 80px;
	bottom: -10px;
	width: 160px;
}

.flower3 {
	right: -20px;
	bottom: -20px;
	width: 220px;
}

.flower4 {
	right: 90px;
	bottom: -10px;
	width: 160px;
}

.flower1 {
	animation: swayLeft 5s ease-in-out infinite alternate;
}

.flower2 {
	animation-delay: -2s;
	animation: swayLeft 7s ease-in-out infinite alternate;
}

.flower3 {
	animation-delay: -1s;
	animation: swayRight 6s ease-in-out infinite alternate;
}

.flower4 {
	animation-delay: -3s;
	animation: swayRight 8s ease-in-out infinite alternate;
}

@keyframes swayLeft {
	from {
		transform: rotate(-3deg) translateY(0);
	}

	to {
		transform: rotate(3deg) translateY(-8px);
	}
}

@keyframes swayRight {
	from {
		transform: rotate(3deg) translateY(0);
	}

	to {
		transform: rotate(-3deg) translateY(-8px);
	}
}

.hero {
	min-height: 100vh;
	color: #fff;
	display: flex;
	align-items: center;
	text-align: center;
	position: relative;
	overflow: hidden;
}

.hero::before {
	content: "";
	position: absolute;
	inset: 0;
	background: rgba(0, 0, 0, 0.35);
	z-index: 1;
}

.hero > .container {
	position: relative;
	z-index: 2;
}

.hero h1 {
	font-size: clamp(3rem, 8vw, 6rem);
}

.hero p {
	letter-spacing: 2px;
}

section {
	padding: 90px 0;
	position: relative;
	overflow: hidden;
}

section .container {
	position: relative;
	z-index: 2;
}

.glass-light {
	background: rgba(255, 255, 255, 0.82);
	/* backdrop-filter: blur(8px);
	-webkit-backdrop-filter: blur(8px); */
}

.glass-dark {
	background: rgba(30, 40, 32, 0.55);
	/* backdrop-filter: blur(8px);
	-webkit-backdrop-filter: blur(8px); */
	color: #fff;
}

section:not(.hero) .container {
	position: relative;
	z-index: 2;
}

section:not(.hero)::before,
section:not(.hero)::after {
	pointer-events: none;
}

section:not(.hero)::before {
	content: "";
	position: absolute;
	top: -10px;
	left: -10px;
	width: 150px;
	height: 150px;
	background: url("bunga-kiri.png") no-repeat top left/contain;
	opacity: 0.5;
	z-index: 1;
}

section:not(.hero)::after {
	content: "";
	position: absolute;
	bottom: -10px;
	right: -10px;
	width: 180px;
	height: 180px;
	background: url("bunga-kanan.png") no-repeat;
	background-size: contain;
	background-position: bottom right;
	opacity: 0.5;
	z-index: 1;
	transform: scaleY(-1);
	transform-origin: center;
}

/* animasi gerak bunga */
section:not(.hero)::before {
	animation: flowerFloatLeft 4s ease-in-out infinite alternate;
}

section:not(.hero)::after {
	animation: flowerFloatRight 5s ease-in-out infinite alternate;
}

@keyframes flowerFloatLeft {
	from {
		transform: translate(0, 0) rotate(0deg);
	}

	to {
		transform: translate(6px, 8px) rotate(4deg);
	}
}

@keyframes flowerFloatRight {
	from {
		transform: scaleY(-1) translate(0, 0) rotate(0deg);
	}

	to {
		transform: scaleY(-1) translate(-6px, -8px) rotate(-4deg);
	}
}

/* bagian profile */
.couple-frame {
	position: relative;
	display: inline-block;
}

.couple-frame::before {
	content: "";
	position: absolute;
	inset: -45px;
	top: -70px;
	background: url("bunga-frame.png") center/contain no-repeat;
	opacity: 0.9;
	z-index: 0;
	animation: flowerFrameFloat 6s ease-in-out infinite alternate;
}

.couple-img {
	position: relative;
	z-index: 2;
	width: 180px;
	height: 180px;
	object-fit: cover;
	border-radius: 50%;
	border: 6px solid var(--primary);
}

.couple-frame picture {
	display: inline-block;
	position: relative;
	z-index: 2;
}

.couple-mobile-wrap {
	display: none;
}

@media (max-width: 768px) {
	.couple-desktop {
		display: none;
	}

	.couple-mobile-wrap {
		display: inline-block;
		position: relative;

		width: 180px;
		height: 180px;

		z-index: 2;
	}

	/* foto bulat */
	.couple-img-mobile {
		width: 180px;
		height: 180px;

		object-fit: cover;

		border-radius: 50%;
		border: 6px solid var(--primary);

		position: relative;
		z-index: 2;
	}

	/* tangan pria keluar frame */
	.couple-overlay {
		position: absolute;

		left: 50%;
		bottom: 6px;

		width: 170px;

		transform: translateX(-50%);

		z-index: 5;

		pointer-events: none;
	}

	.couple-frame {
		overflow: visible;
	}

	.female-overlay {
		top: 23px;
		width: 180px;
	}
}

@keyframes flowerFrameFloat {
	from {
		transform: rotate(0deg) scale(1);
	}

	to {
		transform: rotate(4deg) scale(1.03);
	}
}

.btn-custom {
	background: var(--primary);
	color: #fff;
	border: none;
	padding: 12px 28px;
	border-radius: 999px;
	transition: 0.3s;
}

.btn-custom:hover {
	background: #b39165;
	color: #fff;
	transform: translateY(-2px);
}

.section-title {
	font-size: 3rem;
	color: var(--primary);
}

.event-card {
	border: none;
	border-radius: 24px;
	padding: 30px;
	background: #fff;
	box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
	height: 100%;
}

.countdown-box {
	background: rgba(255, 255, 255, 0.12);
	border: 1px solid rgba(255, 255, 255, 0.2);
	backdrop-filter: blur(10px);
	-webkit-backdrop-filter: blur(10px);
	border-radius: 24px;
	padding: 20px 10px;
	box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
	color: #fff;
}

.countdown-box h2 {
	font-size: 2rem;
	font-weight: 700;
	/* margin-bottom: 3px; */
}

.countdown-box span {
	font-size: 0.7rem;
	opacity: 0.5;
	letter-spacing: 1px;
	text-transform: uppercase;
}

/* bagian rsvp */
.rsvp-box {
	background: var(--soft);
	border-radius: 30px;
	padding: 50px;
}

.ucapan-wrapper {
	max-height: 550px;
	overflow-y: auto;
	padding-right: 8px;
}

footer {
	background: var(--dark);
	color: #fff;
	padding: 40px 0;
	text-align: center;
}

.footer {
	position: relative;
	overflow: hidden;
	text-align: center;
}

.footer .foot {
	position: absolute;
	bottom: 0;
	width: 180px; /* sesuaikan */
	pointer-events: none;
	user-select: none;
}

.footer .foot-left {
	left: 0;
}

.footer .foot-right {
	right: 0;
}

.footer-content {
	padding-bottom: 50px;
}

.reveal.foot-left {
	transform: translate3d(0, 40px, 0) scaleX(-1);
}

.reveal.foot-left.active {
	transform: translate3d(0, 0, 0) scaleX(-1);
}

.reveal.foot-right {
	transform: translate3d(0, 40px, 0) scaleX(-1);
}

.reveal.foot-right.active {
	transform: translate3d(0, 0, 0) scaleX(-1);
}

@media (max-width: 768px) {
	.footer-content {
		padding-bottom: 130px;
	}
}

/* musik */
.music-btn {
	position: fixed;
	right: 20px;
	bottom: 20px;
	z-index: 99;
	width: 55px;
	height: 55px;
	border-radius: 50%;
	border: none;
	background: var(--primary);
	color: #fff;
	font-size: 20px;
	box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

@media (max-width: 768px) {
	.music-btn {
		top: 15px;
		right: 15px;
		bottom: auto;

		width: 48px;
		height: 48px;

		font-size: 18px;
	}
}

@media (max-width: 768px) {
	.section-title {
		font-size: 2.3rem;
	}

	.rsvp-box {
		padding: 30px 20px;
	}
}

html,
body {
	overflow-x: hidden;
	scrollbar-width: none;
	-ms-overflow-style: none;
}

html::-webkit-scrollbar,
body::-webkit-scrollbar {
	width: 0;
	height: 0;
	display: none;
}

body {
	-ms-overflow-style: none;
	scrollbar-width: none;
}

.reveal {
	opacity: 0;
	transform: translate3d(0, 40px, 0);
	will-change: transform, opacity;
	transition:
		opacity 0.9s ease,
		transform 0.9s ease;
	backface-visibility: hidden;
}

.reveal.active {
	opacity: 1;
	transform: translate3d(0, 0, 0);
}

.map-box {
	border-radius: 30px;
	overflow: hidden;
	box-shadow: 0 15px 35px rgba(0, 0, 0, 0.12);
	background: #fff;
}

.map-box iframe {
	display: block;
}

/* gallery */
.hero-main {
	margin-bottom: 20px;
	border-radius: 30px;
	overflow: hidden;

	box-shadow: 0 15px 35px rgba(0, 0, 0, 0.15);
}

.hero-main img {
	width: 100%;
	height: 500px;
	object-fit: cover;

	display: block;

	transition: transform 0.4s ease;
}

.hero-main:hover img {
	transform: scale(1.03);
}

.gallery-masonry {
	display: grid;

	grid-auto-flow: column;
	grid-auto-columns: max-content;
	grid-template-rows: repeat(2, auto);

	gap: 15px;

	overflow-x: auto;
	overflow-y: hidden;

	padding-bottom: 10px;

	scroll-behavior: smooth;
	/* align-items: center; */

	cursor: grab;
	user-select: none;
}

.gallery-masonry.dragging {
	cursor: grabbing;
}

.gallery-masonry::-webkit-scrollbar {
	height: 6px;
}

.gallery-masonry::-webkit-scrollbar-thumb {
	background: var(--primary);
	border-radius: 999px;
}

.gallery-masonry::-webkit-scrollbar-track {
	background: rgba(0, 0, 0, 0.05);
}

.gallery-img {
	transition: 0.4s ease;
}

.gallery-img.loaded {
	opacity: 1;
	filter: blur(0);
}

.hero-item {
	width: 220px;
	aspect-ratio: 1;

	border-radius: 24px;
	overflow: hidden;

	box-shadow: 0 10px 30px rgba(0, 0, 0, 0.12);
}

.hero-item img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}

.hero-item:hover img {
	transform: scale(1.05);
}

@media (max-width: 768px) {
	.hero-item {
		margin-bottom: 10px;
	}

	.hero-main img {
		height: 280px;
	}

	.gallery-masonry {
		column-count: 2;
		column-gap: 10px;
	}
}

/* gallery lightbox */
.gallery-lightbox {
	position: fixed;
	inset: 0;

	background: rgba(0, 0, 0, 0.92);

	display: flex;
	align-items: center;
	justify-content: center;

	opacity: 0;
	visibility: hidden;

	transition: 0.3s;

	z-index: 99999;
}

.gallery-lightbox.show {
	opacity: 1;
	visibility: visible;
}

.gallery-lightbox img {
	max-width: 90%;
	max-height: 90vh;

	border-radius: 20px;

	transform: scale(0.9);
	transition: 0.3s;
}

#lightboxImage {
	user-select: none;
	-webkit-user-drag: none;
	cursor: grab;
}

.gallery-lightbox.show img {
	transform: scale(1);
}

.lightbox-close {
	position: absolute;
	top: 20px;
	right: 30px;
	z-index: 10001;
	cursor: pointer;

	background: rgba(255, 255, 255, 0.15);
	border: none;
	color: #fff;

	width: 44px;
	height: 44px;
	border-radius: 50%;

	display: flex;
	align-items: center;
	justify-content: center;
}

.lightbox-nav {
	position: absolute;
	top: 50%;
	z-index: 10001;
	transform: translateY(-50%);

	width: 54px;
	height: 54px;

	border: none;
	border-radius: 50%;

	background: rgba(255, 255, 255, 0.15);
	backdrop-filter: blur(10px);

	color: #fff;
	font-size: 20px;

	cursor: pointer;

	transition: 0.3s;
}

.lightbox-nav:hover {
	background: rgba(255, 255, 255, 0.25);
}

.lightbox-nav.prev {
	left: 30px;
}

.lightbox-nav.next {
	right: 30px;
}

@media (max-width: 768px) {
	.lightbox-nav {
		width: 44px;
		height: 44px;
		font-size: 16px;
	}

	.lightbox-nav.prev {
		left: 10px;
	}

	.lightbox-nav.next {
		right: 10px;
	}
}

/* bagian acara */
.event-card {
	position: relative;
	overflow: hidden;
	min-height: 280px;

	display: flex;
	align-items: center;
}

.event-card::before {
	content: "";
	position: absolute;
	inset: 0;

	background-size: cover;
	background-position: center;

	z-index: 0;
}

.event-card::after {
	content: "";
	position: absolute;
	inset: 0;

	background: linear-gradient(
		90deg,
		rgba(255, 255, 255, 0.95) 0%,
		rgba(255, 255, 255, 0.75) 35%,
		rgba(255, 255, 255, 0.25) 70%,
		rgba(255, 255, 255, 0.15) 100%
	);
	backdrop-filter: blur(2px);

	z-index: 1;
}

.event-content {
	/* color: white; */
	font-weight: 500;
	position: relative;
	z-index: 2;

	text-align: left;
	padding: 20px;
	text-shadow:
		1px 1px 3px rgba(255, 255, 255, 1),
		0 0 15px rgba(255, 255, 255, 1);
}

.event-content h3 {
	/* color: white; */
	font-weight: 700;
}

.event-akad::before {
	background-image: url("img/akad.webp");
}

.event-resepsi::before {
	background-image: url("img/resepsi.webp");
}

.rsvp-divider {
	display: flex;
	align-items: center;
	text-align: center;
	margin: 2.5rem 0;
}

.rsvp-divider::before,
.rsvp-divider::after {
	content: "";
	flex: 1;
	border-top: 2px dashed #d6d6d6;
}

.rsvp-divider span {
	margin: 0 16px;
	color: #888;
	font-weight: 600;
	white-space: nowrap;
}

/* =========================
   Premium Falling Petals
========================= */

#petals {
	position: fixed;
	inset: 0;
	overflow: hidden;
	pointer-events: none;
	z-index: 3;
}

.petal {
	position: absolute;

	left: 0;
	top: 0;

	background-repeat: no-repeat;
	background-position: center;
	background-size: contain;

	will-change: transform, opacity, filter;

	transform-origin: center center;

	opacity: 0.85;
}

/* page loader */
#pageLoader {
	position: fixed;
	inset: 0;
	z-index: 999999;
	background: #455243;

	display: flex;
	align-items: center;
	justify-content: center;

	opacity: 1;
	visibility: visible;
	transition: opacity 0.5s ease;
}

#pageLoader.hide {
	opacity: 0;
	visibility: hidden;
	pointer-events: none;
}

.loader-content {
	text-align: center;
	color: white;
}

#loaderLottie {
	width: 180px;
	height: 180px;
	margin: auto;
}
