/* Curtain Animation Styles */
.curtain-overlay {
	position: fixed;
	inset: 0;
	z-index: 9999;
	pointer-events: none;
	display: flex;
}

.curtain-left,
.curtain-right {
	width: 50%;
	height: 100%;
	display: flex;
	align-items: center;
	justify-content: center;
	transition: transform 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.curtain-left {
	background: linear-gradient(135deg, #75AADB 0%, #5a8fc0 50%, #4a7fb0 100%);
	transform: translateX(0);
}

.curtain-right {
	background: linear-gradient(225deg, #C8102E 0%, #a00d25 50%, #8a0b1f 100%);
	transform: translateX(0);
}

.curtain-overlay.open .curtain-left {
	transform: translateX(-100%);
}

.curtain-overlay.open .curtain-right {
	transform: translateX(100%);
}

.curtain-logo {
	font-family: 'Exo 2', sans-serif;
	font-weight: 800;
	font-size: clamp(2rem, 8vw, 5rem);
	color: white;
	text-shadow: 0 4px 30px rgba(0, 0, 0, 0.3);
	opacity: 1;
	transition: opacity 0.4s ease;
}

.curtain-overlay.open .curtain-logo {
	opacity: 0;
}

.curtain-left .curtain-logo {
	margin-right: -0.5em;
}

.curtain-right .curtain-logo {
	margin-left: -0.5em;
}

/* VS badge in center */
.curtain-vs {
	position: absolute;
	left: 50%;
	top: 50%;
	transform: translate(-50%, -50%);
	z-index: 10;
	background: #121212;
	border-radius: 50%;
	width: clamp(50px, 10vw, 80px);
	height: clamp(50px, 10vw, 80px);
	display: flex;
	align-items: center;
	justify-content: center;
	font-family: 'Exo 2', sans-serif;
	font-weight: 700;
	font-size: clamp(0.875rem, 2vw, 1.25rem);
	color: #a1a1aa;
	letter-spacing: 0.1em;
	box-shadow: 0 0 40px rgba(0, 0, 0, 0.5);
	opacity: 1;
	transition: opacity 0.3s ease, transform 0.5s cubic-bezier(0.76, 0, 0.24, 1);
}

.curtain-overlay.open .curtain-vs {
	opacity: 0;
	transform: translate(-50%, -50%) scale(0.5);
}

.curtain-overlay.done {
	visibility: hidden;
	pointer-events: none;
}

/* Prevent scroll during animation */
html.curtain-active {
	overflow: hidden;
}

/* Premium Custom Scrollbar */
::-webkit-scrollbar {
	width: 8px;
}

::-webkit-scrollbar-track {
	background: #0a0a0a;
}

::-webkit-scrollbar-thumb {
	background: linear-gradient(180deg, #75AADB 0%, #C8102E 100%);
	border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
	background: linear-gradient(180deg, #8bbde8 0%, #e01535 100%);
}

/* Subtle noise texture overlay */
body::before {
	content: '';
	position: fixed;
	inset: 0;
	background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)'/%3E%3C/svg%3E");
	opacity: 0.015;
	pointer-events: none;
	z-index: 1000;
}

/* Premium glow effects */
.glow-messi {
	box-shadow: 0 0 30px -5px rgba(117, 170, 219, 0.3);
}

.glow-ronaldo {
	box-shadow: 0 0 30px -5px rgba(200, 16, 46, 0.3);
}

.glow-gold {
	box-shadow: 0 0 30px -5px rgba(212, 175, 55, 0.3);
}

/* Animated gradient border */
.gradient-border {
	position: relative;
}

.gradient-border::before {
	content: '';
	position: absolute;
	inset: 0;
	border-radius: inherit;
	padding: 1px;
	background: linear-gradient(135deg, #75AADB, #D4AF37, #C8102E, #75AADB);
	background-size: 300% 300%;
	-webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
	mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
	-webkit-mask-composite: xor;
	mask-composite: exclude;
	animation: borderShimmer 4s ease infinite;
	opacity: 0;
	transition: opacity 0.3s ease;
}

.gradient-border:hover::before {
	opacity: 1;
}

@keyframes borderShimmer {
	0%,
	100% {
		background-position: 0% 50%;
	}
	50% {
		background-position: 100% 50%;
	}
}

/* 3D tilt effect on hover */
.card-tilt {
	transition: transform 0.3s ease, box-shadow 0.3s ease;
	transform-style: preserve-3d;
}

.card-tilt:hover {
	transform: perspective(1000px) rotateX(2deg) rotateY(-2deg) translateY(-4px);
}

/* Gold accent underline for headings */
.gold-underline {
	position: relative;
	display: inline-block;
}

.gold-underline::after {
	content: '';
	position: absolute;
	bottom: -8px;
	left: 50%;
	transform: translateX(-50%);
	width: 40px;
	height: 2px;
	background: linear-gradient(90deg, transparent, #D4AF37, transparent);
}

/* Smooth hover transitions for all interactive elements */
a,
button {
	transition: all 0.2s ease;
}

/* Selection color */
::selection {
	background: rgba(212, 175, 55, 0.3);
	color: white;
}
