@import url('https://fonts.googleapis.com/css2?family=Lobster&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Ubuntu:ital,wght@0,300;0,400;0,500;0,700;1,300;1,400;1,500;1,700&display=swap');

:root {
	--primary-color: #8b7355;
	--secondary-color: #f5f0e6;
	--accent-color: #d4a76a;
	--pink-color: #dac0a387;
	--gold-color: #d4a76a;
}

body {
	font-family: "Ubuntu", sans-serif;
	overflow: hidden;
	margin: 0;
	padding: 0;
}

.secondary-font {
	font-family: "Lobster", sans-serif;
	font-weight: 400;
	font-style: normal;
}

/* Cover Section */
.cover-container {
	position: fixed;
	top: 0;
	left: 0;
	width: 100%;
	height: 100vh;
	z-index: 1000;
	transition: opacity 0.8s ease, visibility 0.8s ease;
}

.cover-container.hidden {
	opacity: 0;
	visibility: hidden;
}

.cover-image {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;

	background-size: cover;
	background-position: center;
	filter: brightness(0.2);
}

.cover-content {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	display: flex;
	flex-direction: column;
	justify-content: center;
	align-items: center;
	color: white;
	text-align: center;
	padding: 20px;
}

.cover-title {
	font-size: 1rem;
	font-weight: 300;
	/* letter-spacing: 0.1rem; */
	margin-bottom: 2rem;
	text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.5);
}

.open-invitation-btn {
	background-color: transparent;
	border: 2px solid white;
	color: white;
	padding: 12px 40px;
	font-size: 1.2rem;
	border-radius: 30px;
	transition: all 0.3s ease;
	/* letter-spacing: 0.1rem; */
}

.open-invitation-btn:hover {
	background-color: white;
	color: #333;
}

/* Main Content Layout - DESKTOP */
.main-container.desktop-layout {
	display: flex;
	height: 100vh;
	overflow: hidden;
}

/* Left Side - Fixed Image (Desktop only) */
.left-side {
	flex: 0 0 65%;

	background-size: cover;
	background-position: center;
	position: relative;
	display: none;
}

.left-side::before {
	content: '';
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background: rgba(0, 0, 0, 0.2);
}

/* Right Side - Scrollable Content (Desktop) */
.right-side {
	flex: 0 0 35%;
	overflow-y: auto;
	padding: 0;
	background-color: var(--secondary-color);
	display: none;
}

/* Mobile Layout */
.main-container.mobile-layout {
	display: block;
	overflow-y: auto;
	background-color: var(--secondary-color);
	min-height: 100vh;
	display: none;
}

/* Hide/Show based on device */
.desktop-only {
	display: block;
}

.mobile-only {
	display: none;
}

/* Section Styling (Shared) */
.section {
	padding: 60px 20px;
	position: relative;
}

.section-title {
	font-size: 2rem;
	color: var(--primary-color);
	margin-bottom: 30px;
	text-align: center;
	position: relative;
}

.section-title::after {
	content: '';
	position: absolute;
	bottom: -10px;
	left: 50%;
	transform: translateX(-50%);
	width: 80px;
	height: 2px;
	background-color: var(--accent-color);
}

/* 1. Opening Section */
.opening-section {
	position: relative;
	padding: 80px 20px;
	min-height: 100vh;
	display: flex;
	align-items: center;
	justify-content: center;

	background-size: cover;
	background-position: center;
	background-attachment: fixed;
}

.opening-content {
	position: relative;
	z-index: 2;
	text-align: center;
	color: white;
	max-width: 800px;
	margin: 0 auto;
}

/* .framed-photo {
            width: 200px;
            height: 200px;
            border-radius: 50%;
            border: 5px solid white;
            overflow: hidden;
            margin: 0 auto 30px;
            box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
        }
        
        .framed-photo img {
            width: 100%;
            height: 100%;
            object-fit: cover;
        } */
.framed-photo {
	width: 240px;
	height: 300px;
	background: white;
	padding: 15px 15px 50px 15px;
	/* Bottom padding untuk Polaroid effect */
	border-radius: 3px;
	box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
	margin: 0 auto 30px;
	transform: rotate(2deg);
	/* Sedikit miring aesthetic */
	transition: transform 0.3s ease;
}

.framed-photo:hover {
	transform: rotate(0deg);
}

.framed-photo img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	border-radius: 2px;
}

.opening-title {
	font-size: 1rem;
	font-weight: 300;
	margin-bottom: 10px;
	text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.couple-names {
	font-size: 3rem;
	font-weight: 300;
	margin: 20px 0;
	text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.5);
}

.couple-name-inside {
	font-size: 3rem;
	font-weight: 300;
	margin: 20px 0;
	text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.5);
}

.wedding-date {
	font-size: 1rem;
	font-weight: 400;
	margin-bottom: 40px;
	text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
}

.opening-countdown {
	display: flex;
	justify-content: center;
	gap: 5px;
	margin: 40px auto;
	max-width: 500px;
}

.countdown-item {
	background-color: rgba(255, 255, 255, 0.2);
	backdrop-filter: blur(5px);
	border-radius: 10px;
	padding: 20px 15px;
	text-align: center;
	min-width: 80px;
	border: 1px solid rgba(255, 255, 255, 0.3);
}

.countdown-number {
	font-size: 2rem;
	color: white;
	font-weight: bold;
	text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.5);
}

.countdown-label {
	font-size: 0.9rem;
	color: rgba(255, 255, 255, 0.9);
	margin-top: 5px;
}

/* 2. Romantic Words Section */
.romantic-section {
	background-color: white;
	padding: 80px 20px;
	text-align: center;
}

.romantic-text {
	font-size: 1rem;
	line-height: 1.8;
	max-width: 800px;
	margin: 0 auto;
	color: #555;
	font-style: italic;
	margin-bottom: 30px;
}

.quote-icon {
	font-size: 2rem;
	color: var(--gold-color);
	margin-bottom: 20px;
}

/* 3. Bride & Groom Section */
.bride-groom-section {
	padding: 80px 20px;
	background-color: #dac0a37e;
}

.bride-groom-container {
	max-width: 800px;
	margin: 0 auto;
}

.person-card {
	text-align: center;
	margin: 30px 0;
}

/* .person-photo {
            width: 200px;
            height: 200px;
            border-radius: 50% 50% 50% 50% / 60% 60% 40% 40%;
            overflow: hidden;
            margin: 0 auto 20px;
            border: 5px solid var(--secondary-color);
            box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
        }
        
        .person-photo img {
            width: 100%;
            height: 100%;
            object-fit: cover;
        } */

/* Frame persegi dengan sudut melengkung hanya di atas */
.framed-photo-profile {
	width: 350px;
	height: 450px;
	border-top-left-radius: 200px;
	/* Melengkung kiri atas */
	border-top-right-radius: 200px;
	/* Melengkung kanan atas */
	border-bottom-left-radius: 0;
	/* Bawah kiri lurus */
	border-bottom-right-radius: 0;
	/* Bawah kanan lurus */
	border: 8px solid white;
	overflow: hidden;
	margin: 0 auto 20px;
	box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
	position: relative;
	background: white;
}

/* Efek kedalaman */
.framed-photo-profile::before {
	content: '';
	position: absolute;
	top: -4px;
	left: -4px;
	right: -4px;
	bottom: -4px;
	border-top-left-radius: 24px;
	/* 20px + 4px */
	border-top-right-radius: 24px;
	/* 20px + 4px */
	border-bottom-left-radius: 4px;
	border-bottom-right-radius: 4px;
	border: 2px solid rgba(255, 255, 255, 0.3);
	pointer-events: none;
	z-index: 1;
}

.framed-photo-profile img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	border-top-left-radius: 12px;
	/* 20px - 8px border */
	border-top-right-radius: 12px;
	/* 20px - 8px border */
	border-bottom-left-radius: 0;
	border-bottom-right-radius: 0;
}

.person-name {
	font-size: 1.8rem;
	color: var(--primary-color);
	margin-bottom: 5px;
}

.person-instagram {
	color: var(--accent-color);
	text-decoration: none;
	font-size: 1rem;
}

.person-instagram:hover {
	text-decoration: underline;
}

.and-symbol {
	font-size: 3rem;
	color: var(--gold-color);
	text-align: center;
	margin: 10px 0;
	font-family: 'Times New Roman', serif;
}

/* 4. Wedding Event Section */
.event-section {
	padding: 80px 20px;
	background-color: var(--secondary-color);
}

.event-card {
	background-color: white;
	border-radius: 15px;
	padding: 30px;
	margin-bottom: 30px;
	box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
	border-top: 5px solid var(--accent-color);
	text-align: center !important;
}

.event-title {
	color: var(--primary-color);
	font-size: 1.5rem;
	margin-bottom: 20px;
	text-align: center;
}

.event-detail {
	display: flex;
	align-items: flex-start;
	margin-bottom: 15px;
}

.event-icon {
	color: var(--accent-color);
	/* margin-right: 15px; */
	font-size: 3rem;
	min-width: 25px;
}

.map-link {
	display: inline-block;
	background-color: var(--primary-color);
	color: white;
	padding: 8px 20px;
	border-radius: 30px;
	text-decoration: none;
	margin-top: 10px;
	transition: background-color 0.3s;
}

.map-link:hover {
	background-color: var(--accent-color);
	color: white;
}

/* 5. Live Streaming Section */
.streaming-section {
	padding: 60px 20px;
	background-color: white;
	text-align: center;
}

.streaming-link {
	display: inline-block;
	background-color: #ff6b6b;
	color: white;
	padding: 12px 30px;
	border-radius: 30px;
	text-decoration: none;
	font-size: 1.1rem;
	margin-top: 20px;
	transition: all 0.3s;
}

.streaming-link:hover {
	background-color: #ff5252;
	color: white;
	transform: translateY(-3px);
}

/* 6. Love Story Section */
.love-story-section {
	padding: 80px 20px;
	background-color: var(--secondary-color);
}

.timeline {
	max-width: 800px;
	margin: 0 auto;
	position: relative;
}

.timeline::before {
	content: '';
	position: absolute;
	left: 50%;
	transform: translateX(-50%);
	width: 2px;
	height: 100%;
	background-color: var(--accent-color);
}

.timeline-item {
	margin-bottom: 40px;
	position: relative;
	width: 45%;
}

.timeline-item:nth-child(odd) {
	margin-left: 0;
	margin-right: auto;
}

.timeline-item:nth-child(even) {
	margin-left: auto;
	margin-right: 0;
}

.timeline-content {
	background-color: white;
	padding: 20px;
	border-radius: 10px;
	box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
	position: relative;
}

.timeline-content::before {
	content: '';
	position: absolute;
	top: 20px;
	width: 20px;
	height: 20px;
	background-color: white;
	transform: rotate(45deg);
}

.timeline-item:nth-child(odd) .timeline-content::before {
	right: -10px;
}

.timeline-item:nth-child(even) .timeline-content::before {
	left: -10px;
}

.timeline-date {
	color: var(--accent-color);
	font-weight: bold;
	margin-bottom: 10px;
}

.timeline-dot {
	position: absolute;
	top: 20px;
	width: 20px;
	height: 20px;
	background-color: var(--accent-color);
	border-radius: 50%;
	border: 3px solid white;
	box-shadow: 0 0 0 3px var(--accent-color);
}

.timeline-item:nth-child(odd) .timeline-dot {
	right: -51px;
}

.timeline-item:nth-child(even) .timeline-dot {
	left: -51px;
}

/* 7. Gallery Section */
.gallery-section {
	padding: 80px 20px;
	background-color: var(--secondary-color);
}

.video-container {
	max-width: 800px;
	margin: 0 auto 40px;
}

.video-wrapper {
	position: relative;
	padding-bottom: 56.25%;
	/* 16:9 aspect ratio */
	height: 0;
	overflow: hidden;
	border-radius: 10px;
	box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.video-wrapper iframe {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	border: 0;
}

.photo-gallery {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
	grid-auto-rows: 200px;
	/* Tinggi dasar */
	grid-gap: 15px;
	margin-top: 30px;
}

.gallery-item {
	border-radius: 10px;
	overflow: hidden;
	cursor: pointer;
	transition: transform 0.3s;
	position: relative;
}

/* Berikan tinggi random dengan grid-row: span X */
.gallery-item:nth-child(1) {
	grid-row: span 2;
}

/* 2 baris (400px) */
.gallery-item:nth-child(2) {
	grid-row: span 1;
}

/* 1 baris (200px) */
.gallery-item:nth-child(3) {
	grid-row: span 3;
}

/* 3 baris (600px) */
.gallery-item:nth-child(4) {
	grid-row: span 2;
}

/* 2 baris (400px) */
.gallery-item:nth-child(5) {
	grid-row: span 1;
}

/* 1 baris (200px) */
.gallery-item:nth-child(6) {
	grid-row: span 2;
}

/* 2 baris (400px) */

.gallery-item:hover {
	transform: scale(1.02);
	z-index: 10;
	box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
}

.gallery-item img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}

/* 8. Wedding Gift Section */
.gift-section {
	padding: 80px 20px;
	background-color: var(--secondary-color);
}

.gift-card {
	background-color: var(--secondary-color);
	border-radius: 15px;
	padding: 25px;
	margin-bottom: 25px;
	box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.bank-info {
	display: flex;
	align-items: center;
	margin-bottom: 15px;
}

.bank-icon {
	font-size: 2rem;
	color: var(--primary-color);
	margin-right: 15px;
}

.bank-details p {
	margin-bottom: 5px;
}

.copy-btn {
	background-color: var(--primary-color);
	color: white;
	border: none;
	padding: 5px 15px;
	border-radius: 5px;
	cursor: pointer;
	transition: background-color 0.3s;
}

.copy-btn:hover {
	background-color: var(--accent-color);
}

/* 9. Wishes Section */
.confirmation-section {
	padding: 80px 20px;
	background-color: var(--secondary-color);
}

.wishes-section {
	padding: 80px 20px;
	background-color: var(--pink-color);
}

.wish-form {
	max-width: 600px;
	margin: 0 auto 40px;
	background-color: white;
	padding: 30px;
	border-radius: 15px;
	box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
}

.form-control {
	border: 1px solid #ddd;
	border-radius: 8px;
	padding: 12px;
	margin-bottom: 20px;
}

.submit-btn {
	background-color: var(--primary-color);
	color: white;
	border: none;
	padding: 12px 30px;
	border-radius: 30px;
	font-size: 1rem;
	cursor: pointer;
	transition: all 0.3s;
}

.submit-btn:hover {
	background-color: var(--accent-color);
}

.wishes-list {
	max-width: 800px;
	margin: 0 auto;
}

.wish-item {
	background-color: white;
	padding: 20px;
	border-radius: 10px;
	margin-bottom: 15px;
	box-shadow: 0 3px 10px rgba(0, 0, 0, 0.05);
}

.wish-author {
	font-weight: bold;
	color: var(--primary-color);
	margin-bottom: 5px;
}

.wish-date {
	font-size: 0.8rem;
	color: #888;
	margin-bottom: 10px;
}

/* 10. Closing Section */
.closing-section {
	padding: 80px 20px;
	background-color: var(--primary-color);
	color: white;
	text-align: center;
}

.closing-text {
	max-width: 800px;
	margin: 0 auto;
	font-size: 1rem;
	line-height: 1.8;
}

.signature {
	/* margin-top: 40px; */
	font-size: 1.5rem;
}

footer {
	padding: 30px 10px;
	background-color: var(--pink-color);
	color: black;
	text-align: center;
}

/* Responsive - Mobile Styles */
@media (max-width: 768px) {
	.cover-title {
		font-size: 1rem;
	}

	/* .opening-title {
                font-size: 2.2rem;
            } */

	/* .couple-names {
                font-size: 3rem;
            } */

	.section-title {
		font-size: 1.6rem;
	}

	.opening-countdown {
		flex-wrap: wrap;
	}

	.person-photo {
		width: 150px;
		height: 150px;
	}

	.timeline::before {
		left: 30px;
	}

	.timeline-item {
		width: calc(100% - 60px);
		margin-left: 60px !important;
		margin-right: 0 !important;
	}

	.timeline-item:nth-child(odd) .timeline-dot,
	.timeline-item:nth-child(even) .timeline-dot {
		left: -40px;
	}

	.timeline-item:nth-child(odd) .timeline-content::before,
	.timeline-item:nth-child(even) .timeline-content::before {
		left: -10px;
		right: auto;
	}

	.photo-gallery {
		grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
	}

	/* Mobile section padding adjustment */
	.section {
		padding: 50px 15px;
	}

	/* Show/hide based on device */
	.desktop-only {
		display: none !important;
	}

	.mobile-only {
		display: block !important;
	}
}

/* Desktop Styles */
@media (min-width: 769px) {
	.desktop-only {
		display: block !important;
	}

	.mobile-only {
		display: none !important;
	}
}

.card-bank {
	padding: 20px;
	width: 100%;
	max-width: 500px;
	margin: auto;
	border-radius: 20px;
}

.card-bank>p>img {
	width: 100px
}

.bca {
	background: linear-gradient(45deg, #1473e6, #1473e6c9, #1473e688, #1473e615);
	background-size: 100% 100%;
	color: white;
}

.mandiri {
	background: linear-gradient(45deg, #103A6C, #103A6Cc9, #103A6C88, #103A6C15);
	background-size: 100% 100%;
	color: white;
}

.bsm {
	background: linear-gradient(45deg, #00A39D, #00a39ec5, #00a39e85, #00a39e31);
	background-size: 100% 100%;
	color: white;
}

.bri {
	background: linear-gradient(45deg, #00539B, #00539bc7, #00539b70, #00539b36);
	background-size: 100% 100%;
	color: white;
}

.bni {
	background: linear-gradient(45deg, #005e6a, #005e6ac9, #005e6a88, #005e6a15);
	background-size: 100% 100%;
	color: white;
}

.shopeepay {
	background: linear-gradient(45deg, #FE6233, #FE6233c7, #FE623370, #FE623336);
	background-size: 100% 100%;
	color: white;
}

.ovo {
	background: linear-gradient(45deg, #4D2A86, #4D2A86c7, #4D2A8670, #4D2A8636);
	background-size: 100% 100%;
	color: white;
}

.gopay {
	background: linear-gradient(45deg, #0080A0, #0080A0c7, #0080A070, #0080A036);
	background-size: 100% 100%;
	color: white;
}

.dana {
	background: linear-gradient(45deg, #108EE9, #108EE9c7, #108EE970, #108EE936);
	background-size: 100% 100%;
	color: white;
}

.addrs {
	background: linear-gradient(45deg, #E7B230, #E7B230c7, #E7B23070, #E7B23036);
	background-size: 100% 100%;
	color: white;
}

@keyframes gradient {
	0% {
		background-position: 0% 50%;
	}

	50% {
		background-position: 100% 50%;
	}

	100% {
		background-position: 0% 50%;
	}
}

.btn-check:checked+.btn {
	background-color: var(--primary-color) !important;
	border-color: var(--primary-color);
	color: #fff !important;
}

.btn-confirm {
	padding: 10px 30px;
	cursor: pointer;
	background-color: var(--primary-color);
	color: #FFF;
	border: none;
	border-radius: 30px;
	transition: background-color 0.3s ease;
}

.btn-tutup {
	padding: 10px 30px;
	cursor: pointer;
	background-color: transparent;
	color: var(--primary-color);
	border: none;
	border-radius: 30px;
	transition: background-color 0.3s ease;
}