/* Template 2 - Homepage Styles */

/* ===== HERO SECTION ===== */
.hero-section {
	min-height: 100vh;
	background: linear-gradient(
		135deg,
		var(--t2-bg-dark) 0%,
		var(--t2-bg-primary) 50%,
		var(--t2-bg-secondary) 100%
	);
	position: relative;
	overflow: hidden;
	padding-top: 100px;

	&::before {
		content: "";
		position: absolute;
		top: -50%;
		right: -20%;
		width: 80%;
		height: 150%;
		background: radial-gradient(
			ellipse,
			var(--accent-glow) 0%,
			transparent 60%
		);
		pointer-events: none;
		animation: pulse 8s ease-in-out infinite;
	}
}

@keyframes pulse {
	0%,
	100% {
		opacity: 0.3;
		transform: scale(1);
	}
	50% {
		opacity: 0.5;
		transform: scale(1.1);
	}
}

.hero-content {
	max-width: 100%;
	margin: 0 auto;
	padding: 0;
	display: grid;
	grid-template-columns: 1fr;
	gap: 0;
	align-items: center;
	min-height: auto;
	position: relative;
	z-index: 1;
}

.hero-text {
	position: absolute;
	inset: 0;
	z-index: 2;
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	justify-content: center;
	padding: var(--spacing-4xl) var(--spacing-3xl);
	width: 100%;
	max-width: 1400px;
	margin: 0 auto;
	left: 0;
	right: 0;
	animation: slideInLeft 0.8s ease-out;
	pointer-events: none;

	h1 {
		font-size: var(--font-size-5xl);
		font-weight: var(--font-weight-bold);
		line-height: var(--line-height-tight);
		margin-bottom: var(--spacing-xl);
		color: #ffffff;
		text-shadow: 0 2px 10px rgba(0, 0, 0, 0.45);
	}

	* {
		pointer-events: auto;
	}
}

@keyframes slideInLeft {
	from {
		opacity: 0;
		transform: translateX(-50px);
	}
	to {
		opacity: 1;
		transform: translateX(0);
	}
}

.hero-badge {
	display: inline-block;
	background: var(--accent);
	color: var(--t2-text);
	padding: var(--spacing-xs) var(--spacing-lg);
	border-radius: var(--radius-md);
	font-size: var(--font-size-sm);
	font-weight: var(--font-weight-semibold);
	text-transform: uppercase;
	letter-spacing: 1px;
	margin-bottom: var(--spacing-xl);
}

.hero-subtitle {
	font-size: var(--font-size-xl);
	color: #f2f2f2;
	margin-bottom: var(--spacing-2xl);
	max-width: 500px;
}

.hero-cta {
	display: flex;
	gap: var(--spacing-lg);
	flex-wrap: wrap;

	.btn-outline {
		background: #ffffff;
		color: #111111;
		border-color: transparent;

		&:hover {
			background: #f2f2f2;
			color: #111111;
		}
	}
}

/* Hero Image Carousel */
.hero-image-container {
	position: relative;
	width: 100%;
	animation: slideInRight 0.8s ease-out;
}

@keyframes slideInRight {
	from {
		opacity: 0;
		transform: translateX(50px);
	}
	to {
		opacity: 1;
		transform: translateX(0);
	}
}

.hero-carousel {
	position: relative;
	width: 100%;
	height: 640px;
	max-height: 640px;
	border-radius: 0;
	overflow: hidden;
	box-shadow: var(--shadow-dark, 0 8px 40px rgba(0, 0, 0, 0.5));
	border: 0;

	.carousel-image {
		position: absolute;
		inset: 0;
		width: 100%;
		height: 100%;
		object-fit: cover;
		border-radius: 0;
		opacity: 0;
		transition: opacity 1s ease-in-out;

		&.active {
			opacity: 1;
		}
	}
}

.hero-carousel::after {
	content: "";
	position: absolute;
	inset: 0;
	background: rgba(0, 0, 0, 0.28);
	z-index: 1;
	pointer-events: none;
}

.carousel-indicators {
	position: absolute;
	right: var(--spacing-3xl);
	bottom: var(--spacing-3xl);
	display: flex;
	justify-content: flex-end;
	gap: var(--spacing-sm);
	margin-top: 0;
	z-index: 4;

	.indicator {
		width: 12px;
		height: 12px;
		border-radius: var(--radius-full);
		background: var(--t2-bg-card);
		border: 2px solid var(--t2-border);
		cursor: pointer;
		transition: all var(--transition-fast);

		&:hover {
			background: var(--t2-bg-card-hover);
		}

		&.active {
			background: var(--accent);
			border-color: var(--accent);
			transform: scale(1.2);
		}
	}
}

/* Hero Wave */
.hero-wave {
	position: absolute;
	bottom: 0;
	left: 0;
	right: 0;
	line-height: 0;

	svg {
		width: 100%;
		height: 120px;
	}
}

/* ===== FEATURES SECTION ===== */
.features-section {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: var(--spacing-2xl);
	max-width: 1400px;
	margin: 0 auto;
	padding: var(--spacing-4xl) var(--spacing-3xl);
	margin-top: 0;
	position: relative;
	z-index: 2;
}

.feature-card {
	background: var(--t2-bg-card);
	border: 1px solid var(--t2-border);
	border-radius: var(--radius-lg);
	padding: var(--spacing-2xl);
	text-align: center;
	transition: all var(--transition-normal);

	&:hover {
		background: var(--t2-bg-card-hover);
		transform: translateY(-8px);
		box-shadow: var(--shadow-dark, 0 8px 40px rgba(0, 0, 0, 0.5));
		border-color: var(--accent);
	}

	h3 {
		font-size: var(--font-size-lg);
		margin-bottom: var(--spacing-sm);
		color: var(--t2-text);
	}

	p {
		color: var(--t2-text-light);
		font-size: var(--font-size-sm);
	}
}

.feature-icon {
	width: 70px;
	height: 70px;
	margin: 0 auto var(--spacing-lg);
	background: linear-gradient(
		135deg,
		var(--accent) 0%,
		var(--accent-hover) 100%
	);
	border-radius: var(--radius-lg);
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: var(--font-size-2xl);
	color: var(--t2-text);
}

/* ===== PRODUCTS SECTION ===== */
.products-section {
	background: var(--t2-bg-secondary);
	padding: var(--spacing-4xl) var(--spacing-3xl);
}

.section-header {
	text-align: center;
	max-width: 600px;
	margin: 0 auto var(--spacing-3xl);

	h2 {
		font-size: var(--font-size-3xl);
		margin-bottom: var(--spacing-sm);
		color: var(--t2-text);
	}

	p {
		color: var(--t2-text-light);
	}
}

/* ===== RESPONSIVE ===== */
@media (max-width: 1024px) {
	.hero-text {
		h1 {
			font-size: var(--font-size-4xl);
		}
	}

	.hero-subtitle {
		margin-left: auto;
		margin-right: auto;
	}

	.hero-cta {
		justify-content: center;
	}

	.features-section {
		grid-template-columns: 1fr;
		max-width: 500px;
		margin-top: 0;
		padding-top: var(--spacing-3xl);
	}
}

@media (max-width: 768px) {
	.hero-section {
		min-height: auto;
		padding-top: 80px;
	}

	.hero-content {
		min-height: auto;
	}

	.hero-text {
		padding: var(--spacing-3xl) var(--spacing-xl);
		align-items: center;
		text-align: center;

		h1 {
			font-size: var(--font-size-3xl);
		}
	}

	.hero-carousel {
		height: 50vh;
		min-height: 280px;
		max-height: 420px;
	}

	.hero-cta {
		flex-direction: column;
		align-items: center;
	}

	.hero-wave {
		svg {
			height: 60px;
		}
	}

	.products-section {
		padding: var(--spacing-3xl) 0;
	}

	.section-header {
		margin-bottom: var(--spacing-2xl);
		padding: 0 12px;
	}
}
