/* ============================================
   MARVEL HEROES LANDING PAGE - CSS
   ============================================ */

* {
	margin: 0;
	padding: 0;
	box-sizing: border-box;
}

html, body {
	width: 100%;
	height: 100%;
	overflow-x: hidden;
}

body {
	font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
	background: #0a0e27;
	color: #ffffff;
}

/* ============================================
   CONTAINER PRINCIPAL
   ============================================ */

.marvel-heroes-container {
	width: 100%;
	min-height: 100vh;
	background: linear-gradient(135deg, #0a0e27 0%, #1a1f3a 50%, #0f1729 100%);
	overflow: hidden;
	position: relative;
}

/* ============================================
   HERO SECTION
   ============================================ */

.marvel-hero-section {
	width: 100%;
	height: 100vh;
	display: flex;
	align-items: center;
	justify-content: center;
	position: relative;
	overflow: hidden;
	background: linear-gradient(135deg, #1a1f3a 0%, #0a0e27 100%);
}

.marvel-hero-section::before {
	content: '';
	position: absolute;
	width: 400px;
	height: 400px;
	background: radial-gradient(circle, rgba(239, 68, 68, 0.15) 0%, transparent 70%);
	top: -200px;
	left: -200px;
	animation: float-blob 8s ease-in-out infinite;
}

.marvel-hero-section::after {
	content: '';
	position: absolute;
	width: 300px;
	height: 300px;
	background: radial-gradient(circle, rgba(59, 130, 246, 0.1) 0%, transparent 70%);
	bottom: -150px;
	right: -150px;
	animation: float-blob 10s ease-in-out infinite;
}

.marvel-hero-content {
	position: relative;
	z-index: 2;
	text-align: center;
	animation: fade-in-up 1s ease-out;
}

.marvel-logo {
	font-size: 4rem;
	font-weight: 900;
	background: linear-gradient(135deg, #ef4444, #fbbf24, #ef4444);
	background-size: 200% 200%;
	-webkit-background-clip: text;
	-webkit-text-fill-color: transparent;
	background-clip: text;
	margin-bottom: 1rem;
	animation: gradient-shift 3s ease infinite;
	letter-spacing: 3px;
	text-shadow: 0 0 30px rgba(239, 68, 68, 0.3);
}

.marvel-subtitle {
	font-size: 1.5rem;
	font-weight: 300;
	color: #e5e7eb;
	margin-bottom: 2rem;
	letter-spacing: 2px;
	animation: fade-in-up 1.2s ease-out;
}

.marvel-cta-button {
	padding: 15px 50px;
	font-size: 1.1rem;
	font-weight: 600;
	border: 2px solid #ef4444;
	background: linear-gradient(135deg, #ef4444, #dc2626);
	color: white;
	cursor: pointer;
	border-radius: 50px;
	transition: all 0.3s ease;
	position: relative;
	overflow: hidden;
	animation: fade-in-up 1.4s ease-out;
	letter-spacing: 1px;
	text-transform: uppercase;
}

.marvel-cta-button::before {
	content: '';
	position: absolute;
	top: 0;
	left: -100%;
	width: 100%;
	height: 100%;
	background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
	transition: left 0.5s ease;
}

.marvel-cta-button:hover {
	background: linear-gradient(135deg, #dc2626, #991b1b);
	transform: scale(1.05);
	box-shadow: 0 0 30px rgba(239, 68, 68, 0.6);
}

.marvel-cta-button:active {
	transform: scale(0.98);
}

/* ============================================
   GALERIA DE HERÓIS
   ============================================ */

.marvel-gallery-section {
	width: 100%;
	padding: 100px 20px;
	background: linear-gradient(180deg, #0a0e27 0%, #1a1f3a 100%);
	position: relative;
}

.marvel-gallery-title {
	text-align: center;
	font-size: 3rem;
	font-weight: 900;
	margin-bottom: 60px;
	color: #ffffff;
	letter-spacing: 2px;
	animation: fade-in-up 0.8s ease-out;
	position: relative;
	z-index: 1;
}

.marvel-gallery-title::after {
	content: '';
	display: block;
	width: 100px;
	height: 4px;
	background: linear-gradient(90deg, #ef4444, #fbbf24);
	margin: 15px auto 0;
	border-radius: 2px;
}

.marvel-heroes-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
	gap: 40px;
	max-width: 1400px;
	margin: 0 auto;
	position: relative;
	z-index: 1;
}

/* ============================================
   HERO CARD
   ============================================ */

.marvel-hero-card {
	position: relative;
	height: 500px;
	border-radius: 20px;
	overflow: hidden;
	cursor: pointer;
	transition: all 0.4s cubic-bezier(0.23, 1, 0.320, 1);
	animation: scale-in 0.8s ease-out backwards;
}

.marvel-hero-card:nth-child(1) { animation-delay: 0.1s; }
.marvel-hero-card:nth-child(2) { animation-delay: 0.2s; }
.marvel-hero-card:nth-child(3) { animation-delay: 0.3s; }
.marvel-hero-card:nth-child(4) { animation-delay: 0.4s; }
.marvel-hero-card:nth-child(5) { animation-delay: 0.5s; }
.marvel-hero-card:nth-child(6) { animation-delay: 0.6s; }

.marvel-hero-card-image {
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 0.5s ease;
}

.marvel-hero-card:hover .marvel-hero-card-image {
	transform: scale(1.1) rotate(2deg);
}

.marvel-hero-card-overlay {
	position: absolute;
	bottom: 0;
	left: 0;
	right: 0;
	width: 100%;
	height: 100%;
	background: linear-gradient(180deg, transparent 0%, rgba(0, 0, 0, 0.4) 40%, rgba(0, 0, 0, 0.9) 100%);
	display: flex;
	flex-direction: column;
	justify-content: flex-end;
	padding: 30px;
	transition: all 0.4s ease;
	border: 2px solid transparent;
	border-radius: 20px;
}

.marvel-hero-card:hover .marvel-hero-card-overlay {
	background: linear-gradient(180deg, transparent 0%, rgba(0, 0, 0, 0.2) 40%, rgba(0, 0, 0, 0.95) 100%);
	border-color: #ef4444;
	box-shadow: inset 0 0 30px rgba(239, 68, 68, 0.3);
}

.marvel-hero-name {
	font-size: 1.8rem;
	font-weight: 900;
	color: white;
	margin-bottom: 10px;
	letter-spacing: 1px;
	transition: all 0.3s ease;
}

.marvel-hero-card:hover .marvel-hero-name {
	color: #fbbf24;
	transform: translateX(5px);
}

.marvel-hero-description {
	font-size: 0.95rem;
	color: #d1d5db;
	line-height: 1.5;
	margin-bottom: 20px;
	max-height: 0;
	overflow: hidden;
	transition: max-height 0.4s ease;
}

.marvel-hero-card:hover .marvel-hero-description {
	max-height: 100px;
}

.marvel-hero-button {
	padding: 10px 20px;
	background: linear-gradient(135deg, #ef4444, #dc2626);
	border: none;
	color: white;
	border-radius: 25px;
	cursor: pointer;
	font-weight: 600;
	font-size: 0.9rem;
	transition: all 0.3s ease;
	align-self: flex-start;
	letter-spacing: 0.5px;
	text-transform: uppercase;
	opacity: 0;
	transform: translateY(20px);
	position: relative;
	overflow: hidden;
}

.marvel-hero-card:hover .marvel-hero-button {
	opacity: 1;
	transform: translateY(0);
}

.marvel-hero-button::before {
	content: '';
	position: absolute;
	top: 0;
	left: -100%;
	width: 100%;
	height: 100%;
	background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
	transition: left 0.5s ease;
}

.marvel-hero-button:hover {
	background: linear-gradient(135deg, #dc2626, #991b1b);
	transform: translateY(-2px);
	box-shadow: 0 5px 20px rgba(239, 68, 68, 0.4);
}

/* ============================================
   MODAL
   ============================================ */

.marvel-modal {
	display: none;
	position: fixed;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background: rgba(0, 0, 0, 0.8);
	z-index: 1000;
	align-items: center;
	justify-content: center;
	backdrop-filter: blur(5px);
	animation: fade-in 0.3s ease;
}

.marvel-modal.show {
	display: flex;
}

.marvel-modal-content {
	background: linear-gradient(135deg, #1a1f3a 0%, #0a0e27 100%);
	border-radius: 20px;
	padding: 40px;
	max-width: 600px;
	width: 90%;
	position: relative;
	border: 2px solid #ef4444;
	box-shadow: 0 0 50px rgba(239, 68, 68, 0.4);
	animation: slide-up 0.5s cubic-bezier(0.23, 1, 0.320, 1);
}

.marvel-modal-close {
	position: absolute;
	top: 20px;
	right: 20px;
	width: 40px;
	height: 40px;
	background: linear-gradient(135deg, #ef4444, #dc2626);
	border: none;
	color: white;
	border-radius: 50%;
	font-size: 1.5rem;
	cursor: pointer;
	transition: all 0.3s ease;
	display: flex;
	align-items: center;
	justify-content: center;
}

.marvel-modal-close:hover {
	transform: rotate(90deg) scale(1.1);
	box-shadow: 0 0 20px rgba(239, 68, 68, 0.6);
}

.marvel-modal-image {
	width: 100%;
	height: 300px;
	object-fit: cover;
	border-radius: 15px;
	margin-bottom: 20px;
	border: 2px solid #ef4444;
}

.marvel-modal-name {
	font-size: 2.5rem;
	font-weight: 900;
	color: #fbbf24;
	margin-bottom: 15px;
	letter-spacing: 1px;
}

.marvel-modal-description {
	font-size: 1rem;
	color: #d1d5db;
	line-height: 1.8;
	margin-bottom: 25px;
}

.marvel-modal-stats {
	display: grid;
	grid-template-columns: repeat(2, 1fr);
	gap: 15px;
	margin-bottom: 25px;
}

.marvel-stat {
	background: rgba(239, 68, 68, 0.1);
	border: 1px solid #ef4444;
	border-radius: 10px;
	padding: 15px;
	text-align: center;
}

.marvel-stat-label {
	font-size: 0.85rem;
	color: #9ca3af;
	text-transform: uppercase;
	letter-spacing: 1px;
	margin-bottom: 8px;
}

.marvel-stat-value {
	font-size: 1.8rem;
	font-weight: 900;
	color: #fbbf24;
}

.marvel-modal-buttons {
	display: flex;
	gap: 15px;
}

.marvel-modal-buttons button {
	flex: 1;
	padding: 12px 20px;
	border: none;
	border-radius: 25px;
	font-size: 1rem;
	font-weight: 600;
	cursor: pointer;
	transition: all 0.3s ease;
	letter-spacing: 0.5px;
	text-transform: uppercase;
}

.marvel-modal-btn-primary {
	background: linear-gradient(135deg, #ef4444, #dc2626);
	color: white;
}

.marvel-modal-btn-primary:hover {
	background: linear-gradient(135deg, #dc2626, #991b1b);
	box-shadow: 0 0 20px rgba(239, 68, 68, 0.6);
	transform: translateY(-2px);
}

.marvel-modal-btn-secondary {
	background: transparent;
	border: 2px solid #6b7280;
	color: #d1d5db;
}

.marvel-modal-btn-secondary:hover {
	border-color: #ef4444;
	color: #ef4444;
	background: rgba(239, 68, 68, 0.1);
}

/* ============================================
   FOOTER
   ============================================ */

.marvel-footer {
	background: #0a0e27;
	border-top: 2px solid #ef4444;
	padding: 40px 20px;
	text-align: center;
	color: #9ca3af;
	position: relative;
	z-index: 1;
}

.marvel-footer-text {
	margin-bottom: 15px;
	font-size: 0.95rem;
}

.marvel-footer-credit {
	color: #6b7280;
	font-size: 0.85rem;
	margin-top: 15px;
}

/* ============================================
   ANIMAÇÕES
   ============================================ */

@keyframes fade-in {
	from {
		opacity: 0;
	}
	to {
		opacity: 1;
	}
}

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

@keyframes slide-up {
	from {
		opacity: 0;
		transform: translateY(50px) scale(0.95);
	}
	to {
		opacity: 1;
		transform: translateY(0) scale(1);
	}
}

@keyframes scale-in {
	from {
		opacity: 0;
		transform: scale(0.8);
	}
	to {
		opacity: 1;
		transform: scale(1);
	}
}

@keyframes float-blob {
	0%, 100% {
		transform: translate(0, 0);
	}
	25% {
		transform: translate(20px, -20px);
	}
	50% {
		transform: translate(-10px, 20px);
	}
	75% {
		transform: translate(-20px, -10px);
	}
}

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

@keyframes pulse-glow {
	0%, 100% {
		box-shadow: 0 0 20px rgba(239, 68, 68, 0.4);
	}
	50% {
		box-shadow: 0 0 30px rgba(239, 68, 68, 0.8);
	}
}

/* ============================================
   RESPONSIVO
   ============================================ */

@media (max-width: 768px) {
	.marvel-logo {
		font-size: 2.5rem;
	}

	.marvel-subtitle {
		font-size: 1.1rem;
	}

	.marvel-gallery-title {
		font-size: 2rem;
	}

	.marvel-heroes-grid {
		grid-template-columns: 1fr;
		gap: 30px;
	}

	.marvel-hero-card {
		height: 400px;
	}

	.marvel-modal-content {
		padding: 30px;
	}

	.marvel-modal-name {
		font-size: 2rem;
	}

	.marvel-modal-stats {
		grid-template-columns: 1fr;
	}
}

@media (max-width: 480px) {
	.marvel-hero-section {
		height: 80vh;
	}

	.marvel-logo {
		font-size: 2rem;
	}

	.marvel-subtitle {
		font-size: 1rem;
	}

	.marvel-cta-button {
		padding: 12px 30px;
		font-size: 0.95rem;
	}

	.marvel-gallery-section {
		padding: 60px 15px;
	}

	.marvel-gallery-title {
		font-size: 1.5rem;
	}

	.marvel-hero-card {
		height: 350px;
	}

	.marvel-hero-name {
		font-size: 1.3rem;
	}

	.marvel-modal-content {
		padding: 20px;
		max-width: 90%;
	}
}