*,
*::before,
*::after {
	padding: 0;
	box-sizing: border-box;
	line-height: 1.1 !important;
}

/* ===== Final guard: burger only in mobile ===== */
.main-nav .nav-toggle {
	display: none !important;
}

@media (max-width: 780px) {
	.main-nav .nav-toggle {
		display: flex !important;
		align-items: center;
		justify-content: center;
	}
}
/* Explicitly hide burger on desktop widths */
@media (min-width: 781px) {
	.nav-toggle {
		display: none !important;
	}
}

html {
	overflow-x: hidden;
}

body {
	margin: 0;
	font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
	background: #0a0c1b;
	color: #f5f7ff;
	overflow-x: hidden;
	scroll-behavior: smooth;
}

a {
	color: inherit;
	text-decoration: none;
}

p a {
	color: #9cd0ff;
}

p a:hover {
	text-decoration: underline;
}

/* Global responsive images */
img {
	max-width: 100%;
	height: auto;
	display: block;
}

/* ========== HEADER ========== */
.page-header {
	position: sticky;
	top: 0;
	z-index: 1000;
	background: rgba(7, 9, 18, 0.95);
	backdrop-filter: blur(15px);
	border-bottom: 2px solid rgba(56, 100, 140, 0.15);
	box-shadow: 0 4px 30px rgba(0, 0, 0, 0.4);
}

.header-container {
	max-width: 1400px;
	margin: 0 auto;
	display: flex;
	justify-content: space-between;
	align-items: center;
	padding: 1.2rem 2rem;
}

.logo-area {
	display: flex;
	align-items: center;
	gap: 1rem;
	text-decoration: none;
	color: inherit;
	transition: transform 0.3s ease;
}

.logo-area:hover {
	transform: scale(1.02);
}

.logo-icon {
	position: relative;
	width: 50px;
	height: 50px;
	display: flex;
	align-items: center;
	justify-content: center;
}

.logo-symbol {
	font-size: 2rem;
	position: relative;
	z-index: 2;
	animation: pulse-glow 2s ease-in-out infinite;
}

.logo-glow {
	position: absolute;
	inset: 0;
	background: radial-gradient(circle, rgba(255, 215, 0, 0.3), transparent 70%);
	border-radius: 50%;
	animation: glow-pulse 2s ease-in-out infinite;
}

@keyframes pulse-glow {
	0%,
	100% {
		filter: drop-shadow(0 0 8px rgba(255, 215, 0, 0.6));
	}
	50% {
		filter: drop-shadow(0 0 16px rgba(255, 215, 0, 1));
	}
}

@keyframes glow-pulse {
	0%,
	100% {
		transform: scale(1);
		opacity: 0.5;
	}
	50% {
		transform: scale(1.2);
		opacity: 0.8;
	}
}

.logo-content {
	display: flex;
	flex-direction: column;
	gap: 0.2rem;
}

.logo-text {
	font-weight: 700;
	font-size: 1.2rem;
	letter-spacing: 0.05em;
	text-transform: uppercase;
	background: linear-gradient(135deg, #fff, #9cd0ff);
	-webkit-background-clip: text;
	background-clip: text;
	-webkit-text-fill-color: transparent;
}

.logo-subtitle {
	font-size: 0.75rem;
	color: rgba(245, 247, 255, 0.6);
	letter-spacing: 0.1em;
	text-transform: uppercase;
}

.main-nav {
	position: relative;
}

.sr-only {
	position: absolute;
	width: 1px;
	height: 1px;
	padding: 0;
	margin: -1px;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	white-space: nowrap;
	border-width: 0;
}

.nav-toggle {
	display: none;
	background: transparent;
	border: 2px solid rgba(156, 208, 255, 0.3);
	color: #f5f7ff;
	padding: 0;
	border-radius: 0.75rem;
	cursor: pointer;
	transition: all 0.3s ease;
	position: relative;
	width: 45px;
	height: 45px;
	z-index: 1100;
}

.nav-toggle:hover {
	background: rgba(156, 208, 255, 0.1);
	border-color: rgba(156, 208, 255, 0.6);
}

.nav-toggle:focus-visible {
	outline: 2px solid #9cd0ff;
	outline-offset: 3px;
}

.hamburger {
	display: block;
	position: absolute;
	top: 50%;
	left: 50%;
	transform: translate(-50%, -50%);
	width: 24px;
	height: 2px;
	background: #9cd0ff;
	border-radius: 2px;
	transition: transform 0.3s ease, background 0.3s ease;
	transform-origin: center;
}

.hamburger::before,
.hamburger::after {
	content: "";
	position: absolute;
	left: 0;
	width: 24px;
	height: 2px;
	background: #9cd0ff;
	border-radius: 2px;
	transition: transform 0.3s ease, top 0.3s ease, background 0.3s ease;
	transform-origin: center;
}

.hamburger::before {
	top: -6px;
}

.hamburger::after {
	top: 6px;
}

.nav-toggle[aria-expanded="true"] .hamburger {
	background: transparent;
}

.nav-toggle[aria-expanded="true"] .hamburger::before {
	transform: rotate(45deg);
	top: 0;
}

.nav-toggle[aria-expanded="true"] .hamburger::after {
	transform: rotate(-45deg);
	top: 0;
}

.nav-list {
	list-style: none;
	display: flex;
	gap: 0.5rem;
	margin: 0;
	padding: 0;
}

.nav-link {
	display: flex;
	align-items: center;
	gap: 0.5rem;
	padding: 0.7rem 1.2rem;
	font-weight: 500;
	transition: all 0.3s ease;
	position: relative;
	border-radius: 0.75rem;
	background: transparent;
}

.nav-icon {
	font-size: 1.2rem;
	transition: transform 0.3s ease;
}

.nav-link::before {
	content: "";
	position: absolute;
	inset: 0;
	background: linear-gradient(135deg, rgba(156, 208, 255, 0.1), rgba(99, 143, 219, 0.1));
	border-radius: 0.75rem;
	opacity: 0;
	transition: opacity 0.3s ease;
}

.nav-link:hover::before,
.nav-link:focus::before {
	opacity: 1;
}

.nav-link:hover .nav-icon,
.nav-link:focus .nav-icon {
	transform: scale(1.2);
}

.nav-link:hover,
.nav-link:focus {
	color: #9cd0ff;
	text-decoration: none;
}

.nav-link.active,
.nav-list a.active {
	color: #9cd0ff;
	font-weight: 600;
	background: rgba(156, 208, 255, 0.15);
	border: 1px solid rgba(156, 208, 255, 0.3);
}

/* ========== HERO SECTION ========== */
.hero {
	position: relative;
	display: grid;
	place-items: center;
	min-height: 85vh;
	padding: 5rem 2rem 4rem;
	background: linear-gradient(135deg, #0a0c1b 0%, #1a0f2e 50%, #0a0c1b 100%);
	overflow: hidden;
}

.hero::before {
	content: "";
	position: absolute;
	inset: 0;
	background: radial-gradient(circle at 50% 20%, rgba(99, 143, 219, 0.25), transparent 50%),
		radial-gradient(circle at 80% 80%, rgba(138, 43, 226, 0.2), transparent 50%),
		radial-gradient(circle at 20% 70%, rgba(255, 215, 0, 0.1), transparent 40%);
	animation: pulse-bg 8s ease-in-out infinite;
	z-index: 0;
}

@keyframes pulse-bg {
	0%,
	100% {
		opacity: 0.6;
	}
	50% {
		opacity: 1;
	}
}

.stars-layer {
	position: absolute;
	inset: 0;
	background-image: radial-gradient(2px 2px at 20% 30%, white, transparent),
		radial-gradient(2px 2px at 60% 70%, white, transparent),
		radial-gradient(1px 1px at 50% 50%, white, transparent),
		radial-gradient(1px 1px at 80% 10%, white, transparent),
		radial-gradient(2px 2px at 90% 60%, white, transparent),
		radial-gradient(1px 1px at 33% 80%, white, transparent);
	background-size: 200% 200%;
	background-position: 0% 0%;
	animation: twinkle 8s ease-in-out infinite;
	opacity: 0.6;
}

@keyframes twinkle {
	0%,
	100% {
		opacity: 0.5;
	}
	50% {
		opacity: 0.8;
	}
}

.magic-particles {
	position: absolute;
	inset: 0;
	background: radial-gradient(circle, rgba(255, 215, 0, 0.3) 1px, transparent 1px),
		radial-gradient(circle, rgba(138, 43, 226, 0.3) 1px, transparent 1px);
	background-size: 50px 50px, 80px 80px;
	background-position: 0 0, 40px 40px;
	animation: float-particles 20s linear infinite;
	opacity: 0.4;
}

@keyframes float-particles {
	0% {
		transform: translateY(0);
	}
	100% {
		transform: translateY(-100px);
	}
}

.hero-content {
	position: relative;
	z-index: 2;
	max-width: 1220px;
	text-align: center;
}

.title-wrapper {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 1.5rem;
	margin-bottom: 2rem;
}

.magic-wand {
	font-size: 2.5rem;
	animation: wand-wave 3s ease-in-out infinite;
}

.magic-wand.reverse {
	animation: wand-wave-reverse 3s ease-in-out infinite;
}

@keyframes wand-wave {
	0%,
	100% {
		transform: rotate(0deg);
	}
	25% {
		transform: rotate(-15deg);
	}
	75% {
		transform: rotate(15deg);
	}
}

@keyframes wand-wave-reverse {
	0%,
	100% {
		transform: rotate(0deg) scaleX(-1);
	}
	25% {
		transform: rotate(15deg) scaleX(-1);
	}
	75% {
		transform: rotate(-15deg) scaleX(-1);
	}
}

.hero-content h1 {
	font-size: clamp(2.4rem, 5vw, 3.8rem);
	margin: 0;
	background: linear-gradient(135deg, #fff, #9cd0ff, #638fdb, #8a2be2);
	-webkit-background-clip: text;
	background-clip: text;
	-webkit-text-fill-color: transparent;
	animation: gradient-shift 4s ease infinite;
	background-size: 200% 200%;
	font-weight: 800;
	letter-spacing: -0.02em;
	text-shadow: 0 0 40px rgba(156, 208, 255, 0.3);
	position: relative;
}

.hero-content h1::after {
	content: attr(data-text);
	position: absolute;
	left: 0;
	top: 0;
	width: 100%;
	height: 100%;
	background: linear-gradient(135deg, rgba(255, 255, 255, 0.1), transparent);
	-webkit-background-clip: text;
	background-clip: text;
	z-index: -1;
	filter: blur(20px);
}

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

.intro-text {
	margin: 1.2rem 0;
	font-size: 1.08rem;
	color: rgba(245, 247, 255, 0.9);
	line-height: 1.8;
	animation: fade-in-up 1s ease-out;
}

@keyframes fade-in-up {
	from {
		opacity: 0;
		transform: translateY(20px);
	}
	to {
		opacity: 1;
		transform: translateY(0);
	}
}

/* ========== SECTION HEADERS ========== */
.section-header {
	text-align: center;
	margin-bottom: 3rem;
	position: relative;
}

.section-header h2 {
	font-size: clamp(2rem, 4vw, 3rem);
	margin-bottom: 1rem;
	background: linear-gradient(135deg, #fff, #9cd0ff, #638fdb);
	-webkit-background-clip: text;
	background-clip: text;
	-webkit-text-fill-color: transparent;
	font-weight: 700;
}

.section-header p {
	font-size: 1.1rem;
	color: rgba(245, 247, 255, 0.8);
	max-width: 600px;
	margin: 0 auto;
}

/* ========== CHARACTERS SECTION ========== */
.characters-section {
	position: relative;
	background: linear-gradient(180deg, #0a0c1b 0%, #1a1430 50%, #0a0c1b 100%);
	padding: 4rem 2rem;
}

.floating-portraits {
	position: absolute;
	inset: 0;
	background-image: radial-gradient(ellipse at 10% 20%, rgba(138, 43, 226, 0.1), transparent 40%),
		radial-gradient(ellipse at 90% 80%, rgba(99, 143, 219, 0.1), transparent 40%);
	pointer-events: none;
}

.character-card {
	position: relative;
	background: linear-gradient(145deg, rgba(45, 35, 80, 0.9), rgba(20, 13, 46, 0.95));
	border: 1px solid rgba(156, 208, 255, 0.15);
	overflow: hidden;
}

.card-glow {
	position: absolute;
	top: -50%;
	left: -50%;
	width: 200%;
	height: 200%;
	background: radial-gradient(circle, rgba(156, 208, 255, 0.15), transparent 70%);
	opacity: 0;
	transition: opacity 0.5s ease;
}

.character-card:hover .card-glow {
	opacity: 1;
	animation: rotate-glow 4s linear infinite;
}

@keyframes rotate-glow {
	0% {
		transform: rotate(0deg);
	}
	100% {
		transform: rotate(360deg);
	}
}

.character-icon {
	font-size: 3rem;
	text-align: center;
	margin-bottom: 1rem;
	filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.5));
}

/* ========== WORLD SECTION ========== */
.world-section {
	position: relative;
	background: linear-gradient(180deg, #0a0c1b 0%, #0d1528 100%);
	padding: 4rem 2rem;
	overflow: hidden;
}

.castle-silhouette {
	position: absolute;
	bottom: 0;
	left: 50%;
	transform: translateX(-50%);
	width: 100%;
	max-width: 800px;
	height: 300px;
	background: linear-gradient(to top, rgba(20, 30, 60, 0.6), transparent);
	clip-path: polygon(
		0% 100%,
		5% 80%,
		10% 85%,
		15% 70%,
		20% 75%,
		25% 60%,
		30% 65%,
		35% 50%,
		40% 55%,
		45% 45%,
		50% 40%,
		55% 45%,
		60% 55%,
		65% 50%,
		70% 65%,
		75% 60%,
		80% 75%,
		85% 70%,
		90% 85%,
		95% 80%,
		100% 100%
	);
	opacity: 0.3;
}

.floating-candles {
	position: absolute;
	inset: 0;
	background-image: radial-gradient(circle, rgba(255, 200, 100, 0.4) 2px, transparent 2px),
		radial-gradient(circle, rgba(255, 180, 80, 0.3) 2px, transparent 2px);
	background-size: 100px 150px, 150px 200px;
	background-position: 20px 30px, 80px 100px;
	animation: candle-float 6s ease-in-out infinite;
	opacity: 0.5;
}

@keyframes candle-float {
	0%,
	100% {
		transform: translateY(0);
	}
	50% {
		transform: translateY(-20px);
	}
}

.hogwarts-card {
	position: relative;
	background: linear-gradient(145deg, rgba(60, 50, 100, 0.85), rgba(30, 20, 60, 0.95));
	border: 2px solid rgba(156, 208, 255, 0.25);
	min-height: 350px;
}

.location-overlay {
	position: absolute;
	inset: 0;
	background: radial-gradient(circle at 30% 30%, rgba(99, 143, 219, 0.2), transparent 60%);
	pointer-events: none;
}

.location-icon {
	font-size: 4rem;
	text-align: center;
	margin-bottom: 1.5rem;
	animation: bob 3s ease-in-out infinite;
}

@keyframes bob {
	0%,
	100% {
		transform: translateY(0);
	}
	50% {
		transform: translateY(-10px);
	}
}

.location-details {
	display: flex;
	flex-wrap: wrap;
	gap: 0.8rem;
	margin-top: 1.5rem;
}

.detail-badge {
	background: rgba(99, 143, 219, 0.2);
	border: 1px solid rgba(156, 208, 255, 0.3);
	padding: 0.5rem 1rem;
	border-radius: 2rem;
	font-size: 0.9rem;
	transition: all 0.3s ease;
}

.detail-badge:hover {
	background: rgba(99, 143, 219, 0.35);
	transform: scale(1.05);
}

/* ========== HOUSES SECTION ========== */
.houses-section {
	position: relative;
	background: linear-gradient(180deg, #0a0c1b 0%, #1a0f2e 100%);
	padding: 4rem 2rem;
}

.sorting-hat-bg {
	position: absolute;
	top: 10%;
	left: 50%;
	transform: translateX(-50%);
	width: 200px;
	height: 200px;
	background: radial-gradient(ellipse, rgba(139, 69, 19, 0.15), transparent 70%);
	border-radius: 50%;
	filter: blur(40px);
}

.house-card {
	position: relative;
	overflow: hidden;
	transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.house-emblem {
	font-size: 4rem;
	text-align: center;
	margin-bottom: 1rem;
	filter: drop-shadow(0 0 10px currentColor);
	transition: transform 0.4s ease;
}

.house-card:hover .house-emblem {
	transform: scale(1.2) rotate(5deg);
}

.house-shine {
	position: absolute;
	top: -50%;
	left: -50%;
	width: 200%;
	height: 200%;
	background: linear-gradient(
		45deg,
		transparent 30%,
		rgba(255, 255, 255, 0.1) 50%,
		transparent 70%
	);
	transform: translateX(-100%);
	transition: transform 0.6s ease;
}

.house-card:hover .house-shine {
	transform: translateX(100%);
}

.house-colors {
	position: absolute;
	bottom: 0;
	left: 0;
	right: 0;
	height: 4px;
	opacity: 0.8;
}

/* Цвета факультетов */
.gryffindor {
	border-color: rgba(174, 0, 1, 0.4);
}

.gryffindor:hover {
	border-color: rgba(174, 0, 1, 0.8);
	box-shadow: 0 0 30px rgba(174, 0, 1, 0.4);
}

.gryffindor .house-colors {
	background: linear-gradient(90deg, #ae0001, #eeba30);
}

.slytherin {
	border-color: rgba(26, 71, 42, 0.4);
}

.slytherin:hover {
	border-color: rgba(26, 71, 42, 0.8);
	box-shadow: 0 0 30px rgba(26, 71, 42, 0.4);
}

.slytherin .house-colors {
	background: linear-gradient(90deg, #1a472a, #5d5d5d);
}

.ravenclaw {
	border-color: rgba(0, 56, 147, 0.4);
}

.ravenclaw:hover {
	border-color: rgba(0, 56, 147, 0.8);
	box-shadow: 0 0 30px rgba(0, 56, 147, 0.4);
}

.ravenclaw .house-colors {
	background: linear-gradient(90deg, #003893, #946b2d);
}

.hufflepuff {
	border-color: rgba(236, 191, 0, 0.4);
}

.hufflepuff:hover {
	border-color: rgba(236, 191, 0, 0.8);
	box-shadow: 0 0 30px rgba(236, 191, 0, 0.4);
}

.hufflepuff .house-colors {
	background: linear-gradient(90deg, #ecbf00, #000000);
}

/* ========== COMMON STYLES ========== */
.content-section {
	padding: 3.5rem 2rem;
}

.section-header {
	max-width: 720px;
	margin: 0 auto 2.5rem;
	text-align: center;
}

.section-header h2 {
	font-size: clamp(1.8rem, 3vw, 2.6rem);
	margin-bottom: 0.5rem;
	display: inline-flex;
	align-items: center;
	gap: 0.8rem;
}

.section-header .icon {
	font-size: 1.4em;
	filter: drop-shadow(0 2px 8px rgba(255, 255, 255, 0.3));
}

.section-header p {
	color: rgba(245, 247, 255, 0.75);
}

.cards-grid,
.world-grid {
	display: grid;
	gap: 1.8rem;
	grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
	max-width: 1200px;
	margin: 0 auto;
}

.info-card,
.location-card {
	position: relative;
	background: linear-gradient(145deg, rgba(35, 45, 80, 0.85), rgba(13, 20, 46, 0.95));
	border: 1px solid rgba(255, 255, 255, 0.08);
	border-radius: 1.25rem;
	padding: 2rem;
	box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
	transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.info-card:hover,
.info-card:focus-within,
.location-card:hover,
.location-card:focus-within {
	transform: translateY(-8px);
	border-color: rgba(156, 208, 255, 0.4);
	box-shadow: 0 25px 50px rgba(0, 0, 0, 0.4);
}

.info-card h3,
.location-card h3 {
	margin-top: 0;
	margin-bottom: 1rem;
	font-size: 1.4rem;
}

.info-card ul {
	margin: 0;
	padding-left: 1.2rem;
	color: rgba(245, 247, 255, 0.85);
}

.info-card li {
	margin-top: 0.6rem;
	line-height: 1.6;
}

.placeholder {
	opacity: 0.6;
	border-style: dashed;
	filter: grayscale(0.3);
}

/* ========== FOOTER ========== */
.page-footer {
	background: linear-gradient(180deg, rgba(7, 9, 18, 0.98) 0%, rgba(10, 12, 27, 1) 100%);
	border-top: 2px solid rgba(156, 208, 255, 0.15);
	color: rgba(245, 247, 255, 0.8);
	margin-top: auto;
}

.footer-container {
	max-width: 1400px;
	margin: 0 auto;
	padding: 4rem 2rem 2rem;
}

.footer-top {
	display: grid;
	grid-template-columns: 2fr 1fr 1fr 1fr;
	gap: 3rem;
	margin-bottom: 3rem;
}

.footer-column {
	display: flex;
	flex-direction: column;
	gap: 1.5rem;
}

.footer-brand {
	max-width: 350px;
}

.footer-logo {
	display: flex;
	align-items: center;
	gap: 0.8rem;
	margin-bottom: 1rem;
}

.footer-logo .logo-symbol {
	font-size: 2rem;
	filter: drop-shadow(0 0 10px rgba(255, 215, 0, 0.6));
}

.footer-logo .logo-text {
	font-size: 1.3rem;
	font-weight: 700;
	letter-spacing: 0.05em;
	text-transform: uppercase;
	background: linear-gradient(135deg, #fff, #9cd0ff);
	-webkit-background-clip: text;
	background-clip: text;
	-webkit-text-fill-color: transparent;
}

.footer-description {
	line-height: 1.7;
	color: rgba(245, 247, 255, 0.7);
	font-size: 0.95rem;
}

.footer-social {
	display: flex;
	gap: 1rem;
	margin-top: 0.5rem;
}

.social-link {
	width: 45px;
	height: 45px;
	display: flex;
	align-items: center;
	justify-content: center;
	background: rgba(156, 208, 255, 0.1);
	border: 1px solid rgba(156, 208, 255, 0.2);
	border-radius: 50%;
	font-size: 1.3rem;
	transition: all 0.3s ease;
	text-decoration: none;
}

.social-link:hover {
	background: rgba(156, 208, 255, 0.25);
	border-color: rgba(156, 208, 255, 0.5);
	transform: translateY(-3px);
	box-shadow: 0 8px 20px rgba(156, 208, 255, 0.3);
}

.footer-title {
	font-size: 1.2rem;
	font-weight: 600;
	color: #9cd0ff;
	margin: 0 0 1rem 0;
	position: relative;
	padding-bottom: 0.8rem;
}

.footer-title::after {
	content: "";
	position: absolute;
	bottom: 0;
	left: 0;
	width: 40px;
	height: 2px;
	background: linear-gradient(90deg, #9cd0ff, transparent);
}

.footer-links {
	list-style: none;
	padding: 0;
	margin: 0;
	display: flex;
	flex-direction: column;
	gap: 0.8rem;
}

.footer-links a {
	color: rgba(245, 247, 255, 0.7);
	text-decoration: none;
	transition: all 0.3s ease;
	display: inline-flex;
	align-items: center;
	gap: 0.5rem;
	font-size: 0.95rem;
}

.footer-links a:hover {
	color: #9cd0ff;
	transform: translateX(5px);
}

.footer-divider {
	height: 1px;
	background: linear-gradient(90deg, transparent, rgba(156, 208, 255, 0.3), transparent);
	margin: 2rem 0;
}

.footer-bottom-content {
	display: flex;
	justify-content: space-between;
	align-items: center;
	flex-wrap: wrap;
	gap: 1.5rem;
}

.footer-copyright {
	font-size: 0.9rem;
	color: rgba(245, 247, 255, 0.6);
	margin: 0;
}

.footer-magic {
	font-size: 0.9rem;
	color: rgba(245, 247, 255, 0.6);
	margin: 0;
	display: flex;
	align-items: center;
	gap: 0.5rem;
}

.heart {
	color: #ff6b6b;
	animation: heartbeat 1.5s ease-in-out infinite;
}

@keyframes heartbeat {
	0%,
	100% {
		transform: scale(1);
	}
	25% {
		transform: scale(1.1);
	}
	50% {
		transform: scale(1);
	}
}

.wand {
	display: inline-block;
	animation: wand-rotate 3s ease-in-out infinite;
}

@keyframes wand-rotate {
	0%,
	100% {
		transform: rotate(0deg);
	}
	25% {
		transform: rotate(-10deg);
	}
	75% {
		transform: rotate(10deg);
	}
}

/* ========== RESPONSIVE ========== */
@media (max-width: 1024px) {
	.footer-top {
		grid-template-columns: 1fr 1fr;
	}

	.footer-brand {
		grid-column: 1 / -1;
		max-width: 100%;
	}
}

@media (min-width: 781px) {
	.nav-toggle {
		display: none;
	}
}

@media (max-width: 780px) {
	.header-container {
		padding: 1rem 1.25rem;
	}

	.logo-icon {
		width: 40px;
		height: 40px;
	}

	.logo-symbol {
		font-size: 1.5rem;
	}

	.logo-text {
		font-size: 1rem;
	}

	.logo-subtitle {
		font-size: 0.65rem;
	}

	.nav-toggle {
		display: flex;
		align-items: center;
		justify-content: center;
	}

	.nav-list {
		position: absolute;
		top: calc(100% + 1rem);
		right: -400px;
		flex-direction: column;
		background: rgba(7, 9, 18, 0.98);
		padding: 1rem;
		border-radius: 1rem;
		display: flex;
		min-width: 250px;
		border: 2px solid rgba(156, 208, 255, 0.3);
		box-shadow: 0 15px 40px rgba(0, 0, 0, 0.6);
		transition: right 0.3s ease;
	}

	.nav-list[aria-hidden="false"] {
		right: 0;
	}

	.nav-link {
		width: 100%;
		padding: 1rem;
	}

	.hero {
		padding: 3.5rem 1.25rem 2.5rem;
		min-height: 75vh;
	}

	.title-wrapper {
		flex-direction: column;
		gap: 1rem;
	}

	.magic-wand {
		font-size: 2rem;
	}

	.content-section {
		padding: 3rem 1.25rem;
	}

	.cards-grid,
	.world-grid {
		grid-template-columns: 1fr;
	}

	.footer-container {
		padding: 3rem 1.25rem 1.5rem;
	}

	.footer-top {
		grid-template-columns: 1fr;
		gap: 2.5rem;
	}

	.footer-brand {
		grid-column: 1;
	}

	.footer-bottom-content {
		flex-direction: column;
		text-align: center;
		gap: 1rem;
	}

	.footer-social {
		justify-content: center;
	}
}
