:root {
	--main-color: #021054;
	--main-accent-color: #f66f06;
	--main-text-color: rgb(28, 28, 28);
	--hover-scale: 1.05;
	--active-scale: 0.95;
	--transition-speed: 0.3s;

	/* Additional helpful variables */
	--shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.1);
	--shadow-md: 0 4px 8px rgba(0, 0, 0, 0.12);
	--shadow-lg: 0 8px 16px rgba(0, 0, 0, 0.15);
	--radius: 8px;
	--radius-lg: 16px;
	--radius-xl: 24px;
}

html {
	scroll-behavior: smooth;
}

body {
	font-family: yekanbakh;
	max-width: 600px;
	background-color: aliceblue;
	margin: auto;
	color: var(--main-text-color);
	min-height: 100dvh;
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;

}

/* Loader overlay - fixed, full viewport, on top */
#loader-overlay {
	position: fixed;
	top: 0;
	left: 0;
	width: 100vw;
	height: 100dvh;
	background: #ffffff;
	z-index: 9999;
	display: flex;
	align-items: center;
	justify-content: center;
	/* Initial state - fully visible */
	opacity: 1;
	transition: opacity 0.8s ease;
	pointer-events: none;
	/* Allows clicking through if needed */
}

/* Hidden state (applied via JS) */
#loader-overlay.hidden {
	opacity: 0;
	/* display: none will be applied after transition */
}

/* Video fills the overlay */
#loader-overlay video {
	width: 100%;
	max-width: 50vw;
	height: 100%;
	object-fit: contain;
	/* "cover" to fill, "contain" to fit */
	display: block;
}

#header {
	background-color: var(--main-color);
	color: white;
	padding: 10px;
	padding-left: 20px;
	border-radius: 0 0 30px 30px;
	display: flex;
	flex-direction: row;
	align-items: center;
	justify-content: space-between;
	position: sticky;
	top: 0;
	z-index: 10;
}


/* Grid Container */
.button-grid {
	direction: ltr;
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 20px;
	max-width: 800px;
	margin: 0 auto;
}

/* Individual Button Cards */
.button-card {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	padding: 5px;
	border-radius: 28px;
	background: #ffffff;
	cursor: pointer;
	text-decoration: none;
	color: inherit;
	transition: all var(--transition-speed) ease;
	box-shadow: 0 5px 5px #0000000f;
	padding-bottom: 10px;
}

.button-card:hover {
	box-shadow: 0 5px 10px #000a1d27;
}

/* Accent color for the first button */
.button-card.accent {
	border: 2px solid;
	border-color: var(--main-accent-color);
}

/* Image container for 1:1 aspect ratio */
.button-card .image-wrapper {
	position: relative;
	width: 100%;
	padding-bottom: 100%;
	/* 1:1 Aspect Ratio */
	border-radius: 24px;
	overflow: hidden;
	margin-bottom: 15px;
}

/* Image styling */
.button-card .image-wrapper img {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}

/* Text styling */
.button-card .button-text {
	font-size: 18px;
	font-weight: bold;
	color: #333;
	text-align: center;
}

/* Accent text color */
.button-card.accent .button-text {
	color: var(--main-accent-color);
}

/* Focus States for accessibility */
.button-card:focus-visible {
	outline: 3px solid var(--main-color);
	outline-offset: 3px;
}

.button-card.accent:focus-visible {
	outline-color: var(--main-accent-color);
}

/* Responsive Design */
@media (max-width: 600px) {
	.button-grid {
		gap: 15px;
	}

	.button-card .button-text {
		font-size: 16px;
	}
}

/* Optional: Add subtle animation on load */
@keyframes fadeInUp {
	from {
		opacity: 0;
		transform: translateY(20px);
	}

	to {
		opacity: 1;
		transform: translateY(0);
	}
}

.button-card {
	animation-delay: 0.1s;
	animation: fadeInUp 0.3s ease forwards;
}



/* ========================================
FOCUS & BLUR STATES (Accessibility)
======================================== */

/* Default focus styles for all interactive elements */
:focus-visible {
	outline: 3px solid var(--main-accent-color);
	outline-offset: 2px;
	border-radius: 4px;
}

/* Focus styles for buttons, links, inputs */
button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
	outline: 3px solid var(--main-accent-color);
	outline-offset: 3px;
	box-shadow: 0 0 0 6px rgba(246, 111, 6, 0.2);
}

/* Focus within containers */
.focus-within:focus-within {
	outline: 3px solid var(--main-accent-color);
	outline-offset: 3px;
}

/* Blur state (when element loses focus) */
button:blur,
a:blur,
input:blur {
	transition: outline-color var(--transition-speed) ease;
}

/* ========================================
BUTTON STYLES
======================================== */
button,
.btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	padding: 12px 24px;
	font-family: 'yekanbakh', sans-serif;
	font-size: 1rem;
	font-weight: 600;
	color: #ffffff;
	background: var(--main-color);
	border: none;
	border-radius: var(--radius);
	cursor: pointer;
	transition: all var(--transition-speed) ease;
	text-decoration: none;
	position: relative;
	overflow: hidden;
}

/* Button hover */
button:hover,
.btn:hover {
	transform: scale(var(--hover-scale));
	background: #031a7a;
	box-shadow: var(--shadow-md);
}

/* Button active (click) */
button:active,
.btn:active {
	transform: scale(var(--active-scale));
}

/* Button focus */
button:focus-visible,
.btn:focus-visible {
	outline: 3px solid var(--main-accent-color);
	outline-offset: 3px;
	box-shadow: 0 0 0 6px rgba(246, 111, 6, 0.2);
}

/* Button disabled */
button:disabled,
.btn:disabled {
	opacity: 0.6;
	cursor: not-allowed;
	transform: none !important;
}

/* ========================================
ACCENT BUTTON
======================================== */
.btn-accent {
	background: var(--main-accent-color);
	color: #ffffff;
}

.btn-accent:hover {
	background: #e06500;
}

/* ========================================
OUTLINE BUTTON
======================================== */
.btn-outline {
	background: transparent;
	color: var(--main-color);
	border: 2px solid var(--main-color);
}

.btn-outline:hover {
	background: var(--main-color);
	color: #ffffff;
}

.btn-outline-accent {
	background: transparent;
	color: var(--main-accent-color);
	border: 2px solid var(--main-accent-color);
}

.btn-outline-accent:hover {
	background: var(--main-accent-color);
	color: #ffffff;
}

/* ========================================
INPUT FIELDS
======================================== */
input,
select,
textarea {
	width: 100%;
	padding: 12px 16px;
	font-family: 'yekanbakh', sans-serif;
	font-size: 1rem;
	color: var(--main-text-color);
	background: #ffffff;
	border: 2px solid #e0e0e0;
	border-radius: var(--radius);
	transition: all var(--transition-speed) ease;
	box-sizing: border-box;
}

/* Input focus */
input:focus,
select:focus,
textarea:focus {
	outline: none;
	border-color: var(--main-accent-color);
	box-shadow: 0 0 0 4px rgba(246, 111, 6, 0.15);
}

/* Input hover */
input:hover,
select:hover,
textarea:hover {
	border-color: var(--main-color);
}

/* Input blur */
input:blur,
select:blur,
textarea:blur {
	border-color: #e0e0e0;
}

/* Input disabled */
input:disabled,
select:disabled,
textarea:disabled {
	opacity: 0.6;
	cursor: not-allowed;
}

/* ========================================
LINKS
======================================== */
a {
	color: var(--main-color);
	text-decoration: none;
	transition: all var(--transition-speed) ease;
}

a:hover {
	color: var(--main-accent-color);
}

a:focus-visible {
	outline: 3px solid var(--main-accent-color);
	outline-offset: 3px;
}

/* ========================================
CARD COMPONENT
======================================== */
.card {
	background: #ffffff;
	border-radius: var(--radius-lg);
	padding: 24px;
	box-shadow: var(--shadow-sm);
	transition: all var(--transition-speed) ease;
}

.card:hover {
	transform: scale(var(--hover-scale));
	box-shadow: var(--shadow-md);
}

.card:focus-within {
	outline: 3px solid var(--main-accent-color);
	outline-offset: 3px;
}

/* ========================================
PAGE TRANSITIONS (Your page switcher)
======================================== */
.page {
	opacity: 1;
	transition: opacity var(--transition-speed) ease;
}

.page.hide {
	opacity: 0;
	pointer-events: none;
	display: none;
}

/* ========================================
FOCUS RING UTILITY
======================================== */
.focus-ring {
	transition: all var(--transition-speed) ease;
}

.focus-ring:focus-visible {
	outline: 3px solid var(--main-accent-color);
	outline-offset: 3px;
	box-shadow: 0 0 0 6px rgba(246, 111, 6, 0.2);
}


.form-group {
	margin-top: 1rem;
	background-color: #fbfdff;
	padding: 12px;
	border-radius: 18px;
	box-shadow: 0 0 8px #02105426;
	display: flex;
	flex-direction: column;
	gap: 20px;
}

/* ========================================
HOME BUTTON
======================================== */
.go-home {
	display: flex;
	align-items: center;
	gap: 10px;
	padding: 10px 20px;
	font-family: 'yekanbakh', sans-serif;
	font-size: 20px;
	font-weight: 600;
	color: var(--main-color);
	background: transparent;
	border: 2px solid var(--main-color);
	border-radius: 40px;
	cursor: pointer;
	transition: all var(--transition-speed) ease;
	text-decoration: none;
	user-select: none;
	-webkit-tap-highlight-color: transparent;

	/* Initial state for animation */
	opacity: 0;
	transform: translateY(-10px);
	animation: slideDown 0.5s ease forwards;
}

/* Hover state */
.go-home:hover {
	background: var(--main-color);
	color: #ffffff;
	transform: scale(1.05);
	box-shadow: 0 4px 12px rgba(2, 16, 84, 0.25);
}

.go-home:hover .back-icon {
	fill: #ffffff;
}

/* Active state (click) */
.go-home:active {
	transform: scale(0.95);
	box-shadow: 0 2px 6px rgba(2, 16, 84, 0.15);
}

/* Focus state */
.go-home:focus-visible {
	outline: 3px solid var(--main-accent-color);
	outline-offset: 3px;
	border-color: var(--main-accent-color);
}

/* SVG icon */
.go-home .back-icon {
	width: 24px;
	height: 24px;
	fill: #ffffff;
	transition: fill var(--transition-speed) ease, transform var(--transition-speed) ease;
	flex-shrink: 0;
	display: block;
	transform: rotate(180deg);
	background-color: var(--main-color);
	padding: 5px;
	border-radius: 50%;
}

.go-home:hover .back-icon {
	transform: translateX(6px) rotate(180deg);
}

/* Animation */
@keyframes slideDown {
	from {
		opacity: 0;
		transform: translateY(-10px);
	}

	to {
		opacity: 1;
		transform: translateY(0);
	}
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
	.go-home {
		animation: none;
		opacity: 1;
		transform: none;
	}
}

/* Mobile touch */
@media (max-width: 600px) {
	.go-home {
		padding: 8px 16px;
		font-size: 16px;
		min-height: 44px;
	}

	.go-home .back-icon {
		width: 20px;
		height: 20px;
	}
}





.hide {
	display: none;
}