/* Fonts */
@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600&family=Playfair+Display:wght@500;600;700&display=swap');

:root {
	--primary: #9f1c33;
	/* Deep, rich wedding red */
	--accent: #d4af37;
	/* Elegant gold */
	--text: #2c2c2c;
	--text-light: #555;
	--glass-bg: rgba(255, 255, 255, 0.75);
	--glass-border: rgba(255, 255, 255, 0.6);
	--glass-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.15);
}

* {
	box-sizing: border-box;
}

body {
	margin: 0;
	color: var(--text);
	font-family: 'Outfit', sans-serif;
	overflow-x: hidden;
}

/* Background Video - Crystal Clear */
/* Background Video - Crystal Clear */
#bg-video {
	position: fixed;
	right: 0;
	bottom: 0;
	min-width: 100%;
	min-height: 100%;
	z-index: -1;
	object-fit: cover;
}

/* Page Specific Image Backgrounds */
/* Page Specific Image Backgrounds */
body.landing-mode::before,
body.login-mode::before,
body.app-mode::before,
body.home-mode::before {
	/* Added home-mode to the common background properties */
	content: "";
	position: fixed;
	inset: 0;
	background-size: cover;
	background-position: center;
	background-repeat: no-repeat;
	z-index: -1;
}

body.landing-mode::before {
	background-image: url('/landing-bg.jpg');
}

body.login-mode::before {
	background-image: url('/images/lgbg.jpg');
}

body.app-mode::before {
	background-image: url('/images/over1.jpeg');
}

body.home-mode::before {
	background-image: url('/images/home1.jpeg');
}

/* Hide video when image bg is present */
body.landing-mode #bg-video,
body.login-mode #bg-video,
body.app-mode #bg-video,
body.home-mode #bg-video {
	display: none;
}

/* Typography */
h1,
h2,
h3 {
	font-family: 'Playfair Display', serif;
	color: var(--primary);
	margin-top: 0;
}

h1 {
	font-size: 2.5rem;
	margin-bottom: 2rem;
}

h2 {
	font-size: 2rem;
	margin-bottom: 1.5rem;
}

a {
	color: var(--primary);
	text-decoration: none;
	font-weight: 500;
	transition: color 0.3s ease;
}

a:hover {
	color: var(--accent);
}

/* Login/Signup Specific Container */
.login-mode .container {
	max-width: 420px;
	width: 100%;
	padding: 20px;
	/* Compact padding */
	text-align: center;
	/* Merged with Background: No Box */
	background: transparent;
	backdrop-filter: none;
	-webkit-backdrop-filter: none;
	border: none;
	box-shadow: none;
	color: var(--primary);
}

/* Center the login/signup pages */
body.login-mode {
	display: flex;
	justify-content: center;
	align-items: center;
	min-height: 100vh;
}

.login-mode h2 {
	font-size: 1.5rem;
	/* Smaller Heading */
	margin-bottom: 15px;
	color: var(--primary);
	text-shadow: 0 1px 1px rgba(255, 255, 255, 0.8);
	/* Readability on BG */
}

.login-mode a {
	color: var(--primary);
	text-decoration: underline;
	font-weight: 600;
	font-size: 0.9rem;
	text-shadow: 0 1px 1px rgba(255, 255, 255, 0.8);
}

.login-mode .muted {
	color: #333;
	font-size: 0.85rem;
	text-shadow: 0 1px 1px rgba(255, 255, 255, 0.8);
}

/* Enhanced Form Inputs for Glassmorphism */
form .row {
	margin-bottom: 20px;
	position: relative;
}

.row-group {
	display: flex;
	gap: 15px;
}

.row-group .row {
	flex: 1;
}

@media (max-width: 600px) {
	.row-group {
		flex-direction: column;
		gap: 0;
	}
}

/* Global Navigation */
.glass-nav {
	position: fixed;
	top: 0;
	left: 0;
	width: 100%;
	z-index: 2000;
	background: rgba(255, 255, 255, 0.95);
	backdrop-filter: blur(10px);
	-webkit-backdrop-filter: blur(10px);
	box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
	border-bottom: 1px solid rgba(255, 255, 255, 0.3);
}

.nav-container {
	max-width: 1200px;
	margin: 0 auto;
	padding: 10px 20px;
	display: flex;
	justify-content: space-between;
	align-items: center;
}

.nav-left h1 {
	font-family: 'Playfair Display', serif;
	font-size: 1.5rem;
	font-weight: 700;
	color: var(--primary);
	margin: 0;
}

.nav-center {
	display: flex;
	gap: 25px;
	align-items: center;
	margin-left: auto;
	margin-right: 25px;
}

.nav-right {
	display: flex;
	align-items: center;
}

.nav-center a {
	color: var(--text);
	font-weight: 500;
	font-size: 0.95rem;
	transition: all 0.3s ease;
	text-decoration: none;
	position: relative;
}

.nav-center a::after {
	content: '';
	position: absolute;
	bottom: -4px;
	left: 0;
	width: 0;
	height: 2px;
	background: var(--primary);
	transition: width 0.3s ease;
}

.nav-center a:hover::after {
	width: 100%;
}

.nav-center a:hover {
	color: var(--primary);
}

@media (max-width: 600px) {
	.nav-container {
		padding: 10px 15px;
	}

	.nav-left h1 {
		font-size: 1.25rem;
	}

	.nav-center {
		gap: 15px;
	}

	.nav-center a {
		font-size: 0.85rem;
	}

	.logout-button {
		font-size: 0.8rem;
		padding: 4px 10px !important;
	}
}

input[type="text"],
input[type="password"],
input[type="number"],
input:not([type]) {
	width: 100%;
	padding: 8px 12px;
	/* Slightly smaller inputs */
	border: 1px solid var(--primary);
	border-radius: 12px;
	background: rgba(255, 255, 255, 0.8);
	/* Semi-transparent white to merge but be usable */
	font-size: 0.9rem;
	font-family: 'Outfit', sans-serif;
	transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
	color: var(--primary);
	backdrop-filter: none;
}

input:focus {
	outline: none;
	border-color: var(--primary);
	background: white;
	box-shadow: 0 0 10px rgba(159, 28, 51, 0.2);
	transform: translateY(-1px);
}

input::placeholder {
	color: #777;
	font-weight: 500;
}

/* Buttons */
/* Glass Buttons */
.btn {
	display: inline-block;
	background: linear-gradient(135deg, var(--primary), #7a1527);
	color: white;
	padding: 12px 30px;
	border: none;
	border-radius: 50px;
	font-size: 1rem;
	font-weight: 600;
	cursor: pointer;
	box-shadow: 0 4px 15px rgba(159, 28, 51, 0.3);
	transition: transform 0.2s, box-shadow 0.2s;
	text-transform: uppercase;
	letter-spacing: 1px;
}

.btn:hover {
	transform: translateY(-2px);
	box-shadow: 0 6px 20px rgba(159, 28, 51, 0.4);
	color: white;
}

.btn:active {
	transform: translateY(1px);
}

/* Active State for Toggle Buttons */
.btn-active {
	background: var(--primary) !important;
	color: white !important;
	box-shadow: 0 0 15px rgba(159, 28, 51, 0.4);
	border-color: var(--primary);
}

button.btn {
	width: 100%;
}

/* Nav Buttons */
.btn-nav {
	padding: 8px 20px;
	border-radius: 30px;
	font-size: 0.95rem;
	font-weight: 500;
	text-transform: uppercase;
	letter-spacing: 1px;
	transition: all 0.3s ease;
	margin-left: 10px;
	text-decoration: none;
	display: inline-block;
}

.btn-secondary {
	background: white;
	color: var(--primary);
	border: 2px solid var(--primary);
	box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.btn-secondary:hover {
	background: var(--primary);
	color: white;
	box-shadow: 0 6px 15px rgba(159, 28, 51, 0.3);
	transform: translateY(-2px);
}

.btn-logout {
	background: #333;
	color: white;
	border: 2px solid #333;
	box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.btn-logout:hover {
	background: #000;
	border-color: #000;
	box-shadow: 0 6px 15px rgba(0, 0, 0, 0.4);
	transform: translateY(-2px);
}

/* Utilities */
.muted {
	color: var(--text-light);
}

.center {
	display: flex;
	justify-content: center;
	align-items: center;
}

/* Card Grid */
.cards {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
	gap: 30px;
	padding: 20px 0;
}

.card {
	background: rgba(255, 255, 255, 0.9);
	border-radius: 15px;
	padding: 20px;
	box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
	transition: transform 0.3s ease, box-shadow 0.3s ease;
	text-align: center;
	border: 1px solid rgba(255, 255, 255, 1);
}

.card:hover {
	transform: translateY(-5px);
	box-shadow: 0 15px 40px rgba(159, 28, 51, 0.2);
}

.card img {
	width: 100%;
	height: 200px;
	object-fit: cover;
	border-radius: 10px;
	margin-bottom: 15px;
}

.card h3 {
	margin: 10px 0;
	color: var(--primary);
	font-family: 'Playfair Display', serif;
}

/* Responsive */
@media (max-width: 600px) {
	.container {
		margin: 20px 15px;
		padding: 25px;
	}

	h1 {
		font-size: 2rem;
	}

	.cards {
		grid-template-columns: 1fr;
	}
}

/* Lightbox */
.lightbox {
	position: fixed;
	inset: 0;
	background: rgba(0, 0, 0, 0.9);
	display: none;
	justify-content: center;
	align-items: center;
	z-index: 2000;
	cursor: zoom-out;
}

.lightbox img {
	max-width: 90%;
	max-height: 90vh;
	border-radius: 8px;
	box-shadow: 0 0 50px rgba(0, 0, 0, 0.5);
	animation: zoomIn 0.3s;
}

@keyframes zoomIn {
	from {
		transform: scale(0.9);
		opacity: 0;
	}

	to {
		transform: scale(1);
		opacity: 1;
	}
}

.lightbox-nav {
	position: absolute;
	top: 50%;
	transform: translateY(-50%);
	font-size: 3rem;
	color: white;
	cursor: pointer;
	padding: 10px;
	user-select: none;
	transition: 0.3s;
}

.lightbox-nav:hover {
	color: var(--accent);
}

.prev {
	left: 20px;
}

.next {
	right: 20px;
}

/* Page Transitions & Animations */
@keyframes fadeInUp {
	from {
		opacity: 0;
		transform: translateY(30px);
	}

	to {
		opacity: 1;
		transform: translateY(0);
	}
}

@keyframes fadeInScale {
	from {
		opacity: 0;
		transform: scale(0.95);
	}

	to {
		opacity: 1;
		transform: scale(1);
	}
}

@keyframes slideInRight {
	from {
		opacity: 0;
		transform: translateX(30px);
	}

	to {
		opacity: 1;
		transform: translateX(0);
	}
}

.animate-fade-in-up {
	animation: fadeInUp 0.8s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

.animate-fade-in-scale {
	animation: fadeInScale 0.8s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

.animate-slide-in-right {
	animation: slideInRight 0.8s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

/* Staggered Entrance Utilities */
.stagger-1 {
	animation-delay: 0.1s;
}

.stagger-2 {
	animation-delay: 0.2s;
}

.stagger-3 {
	animation-delay: 0.3s;
}

.stagger-4 {
	animation-delay: 0.4s;
}

.stagger-5 {
	animation-delay: 0.5s;
}

.stagger-6 {
	animation-delay: 0.6s;
}

.page-transition-container {
	opacity: 0;
	/* Hidden initially for animation */
}