/**
 * Hero Section Magic - Advanced Animations & Effects
 * Updated brand colors with purple/electric blue theme
 *
 * @package WaseemNasirLuxury
 * @since 1.0.1
 */

/* ===================================
   Enhanced Brand Colors
   =================================== */
:root {
	/* New Electric Theme */
	--color-primary: #8b5cf6; /* Purple */
	--color-primary-light: #a78bfa;
	--color-primary-dark: #7c3aed;
	--color-accent: #06b6d4; /* Cyan/Electric Blue */
	--color-accent-light: #22d3ee;
	--color-gradient: linear-gradient(135deg, #8b5cf6 0%, #06b6d4 100%);
	--color-glow: rgba(139, 92, 246, 0.5);
}

/* ===================================
   Animated Gradient Background
   =================================== */
.hero-section {
	position: relative;
	overflow: hidden;
	background: linear-gradient(135deg, #0f0c1f 0%, #1a1035 50%, #0f0c1f 100%);
	background-size: 200% 200%;
	animation: gradientShift 15s ease infinite;
}

@keyframes gradientShift {
	0%, 100% { background-position: 0% 50%; }
	50% { background-position: 100% 50%; }
}

/* ===================================
   Floating Particles
   =================================== */
.hero-particles {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	overflow: hidden;
	pointer-events: none;
	z-index: 1;
}

.particle {
	position: absolute;
	width: 4px;
	height: 4px;
	background: var(--color-primary);
	border-radius: 50%;
	box-shadow: 0 0 10px var(--color-glow);
	animation: float 20s infinite ease-in-out;
	opacity: 0;
}

.particle:nth-child(1) {
	left: 10%;
	animation-delay: 0s;
	animation-duration: 15s;
}

.particle:nth-child(2) {
	left: 25%;
	animation-delay: 2s;
	animation-duration: 18s;
}

.particle:nth-child(3) {
	left: 40%;
	animation-delay: 4s;
	animation-duration: 20s;
}

.particle:nth-child(4) {
	left: 55%;
	animation-delay: 1s;
	animation-duration: 16s;
}

.particle:nth-child(5) {
	left: 70%;
	animation-delay: 3s;
	animation-duration: 19s;
}

.particle:nth-child(6) {
	left: 85%;
	animation-delay: 5s;
	animation-duration: 17s;
}

@keyframes float {
	0% {
		transform: translateY(100vh) rotate(0deg);
		opacity: 0;
	}
	10% {
		opacity: 1;
	}
	90% {
		opacity: 1;
	}
	100% {
		transform: translateY(-100vh) rotate(360deg);
		opacity: 0;
	}
}

/* ===================================
   Glowing Orbs - Enhanced
   =================================== */
.glow-orb-1 {
	width: 600px;
	height: 600px;
	background: radial-gradient(circle, rgba(139, 92, 246, 0.3) 0%, transparent 70%);
	position: absolute;
	top: -200px;
	left: -200px;
	border-radius: 50%;
	filter: blur(80px);
	animation: orbFloat1 20s ease-in-out infinite;
}

.glow-orb-2 {
	width: 500px;
	height: 500px;
	background: radial-gradient(circle, rgba(6, 182, 212, 0.25) 0%, transparent 70%);
	position: absolute;
	bottom: -150px;
	right: -150px;
	border-radius: 50%;
	filter: blur(80px);
	animation: orbFloat2 18s ease-in-out infinite;
}

.glow-orb-3 {
	width: 400px;
	height: 400px;
	background: radial-gradient(circle, rgba(167, 139, 250, 0.2) 0%, transparent 70%);
	position: absolute;
	top: 50%;
	right: 20%;
	border-radius: 50%;
	filter: blur(60px);
	animation: orbFloat3 15s ease-in-out infinite;
}

@keyframes orbFloat1 {
	0%, 100% { transform: translate(0, 0) scale(1); }
	50% { transform: translate(50px, 50px) scale(1.1); }
}

@keyframes orbFloat2 {
	0%, 100% { transform: translate(0, 0) scale(1); }
	50% { transform: translate(-50px, -30px) scale(1.2); }
}

@keyframes orbFloat3 {
	0%, 100% { transform: translate(0, 0) rotate(0deg); }
	50% { transform: translate(30px, -40px) rotate(180deg); }
}

/* ===================================
   Hero Name - Glowing Text Animation
   =================================== */
.hero-name {
	background: linear-gradient(135deg, #8b5cf6, #06b6d4, #a78bfa);
	background-size: 200% 200%;
	-webkit-background-clip: text;
	-webkit-text-fill-color: transparent;
	background-clip: text;
	animation: gradientText 5s ease infinite;
	text-shadow: 0 0 40px rgba(139, 92, 246, 0.5);
	position: relative;
	font-size: 5rem;
	font-weight: 700;
	letter-spacing: -0.02em;
}

@keyframes gradientText {
	0%, 100% { background-position: 0% 50%; }
	50% { background-position: 100% 50%; }
}

/* Cursor blink effect for typewriter */
.hero-name::after {
	content: '|';
	animation: blink 1s step-end infinite;
	margin-left: 5px;
}

@keyframes blink {
	0%, 50% { opacity: 1; }
	51%, 100% { opacity: 0; }
}

/* ===================================
   Hero Roles - Stagger Animation
   =================================== */
.hero-role {
	opacity: 0;
	transform: translateX(-30px);
	animation: slideInLeft 0.8s ease forwards;
}

.hero-role:nth-child(1) { animation-delay: 0.3s; }
.hero-role:nth-child(2) { animation-delay: 0.6s; }
.hero-role:nth-child(3) { animation-delay: 0.9s; }

@keyframes slideInLeft {
	to {
		opacity: 1;
		transform: translateX(0);
	}
}

/* ===================================
   Metrics - Pop Animation
   =================================== */
.metric-item {
	opacity: 0;
	transform: scale(0.8);
	animation: popIn 0.6s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}

.metric-item:nth-child(1) { animation-delay: 1.2s; }
.metric-item:nth-child(2) { animation-delay: 1.4s; }
.metric-item:nth-child(3) { animation-delay: 1.6s; }

@keyframes popIn {
	to {
		opacity: 1;
		transform: scale(1);
	}
}

.metric-value {
	background: linear-gradient(135deg, #8b5cf6, #06b6d4);
	-webkit-background-clip: text;
	-webkit-text-fill-color: transparent;
	background-clip: text;
	font-size: 2.5rem;
	font-weight: 700;
}

/* ===================================
   CTA Buttons - Magnetic Effect
   =================================== */
.btn-primary,
.btn-secondary {
	position: relative;
	overflow: hidden;
	transition: all 0.3s ease;
	border: 2px solid transparent;
	background: linear-gradient(135deg, #8b5cf6, #7c3aed);
	color: white;
	padding: 16px 32px;
	border-radius: 12px;
	font-weight: 600;
	cursor: pointer;
	box-shadow: 0 4px 20px rgba(139, 92, 246, 0.4);
}

.btn-primary::before {
	content: '';
	position: absolute;
	top: 50%;
	left: 50%;
	width: 0;
	height: 0;
	border-radius: 50%;
	background: rgba(255, 255, 255, 0.2);
	transform: translate(-50%, -50%);
	transition: width 0.6s, height 0.6s;
}

.btn-primary:hover::before {
	width: 400px;
	height: 400px;
}

.btn-primary:hover {
	transform: translateY(-3px);
	box-shadow: 0 8px 30px rgba(139, 92, 246, 0.6);
}

.btn-secondary {
	background: transparent;
	border: 2px solid #8b5cf6;
	color: #8b5cf6;
	box-shadow: none;
}

.btn-secondary:hover {
	background: rgba(139, 92, 246, 0.1);
	border-color: #a78bfa;
	color: #a78bfa;
	transform: translateY(-3px);
	box-shadow: 0 4px 20px rgba(139, 92, 246, 0.3);
}

/* ===================================
   Scroll Indicator - Pulsing
   =================================== */
.scroll-indicator {
	opacity: 0;
	animation: fadeInScroll 1s ease 2s forwards;
}

@keyframes fadeInScroll {
	to { opacity: 1; }
}

.scroll-line {
	width: 2px;
	height: 60px;
	background: linear-gradient(to bottom, transparent, #8b5cf6, transparent);
	margin: 0 auto;
	animation: scrollPulse 2s ease-in-out infinite;
}

@keyframes scrollPulse {
	0%, 100% {
		transform: translateY(0);
		opacity: 0.5;
	}
	50% {
		transform: translateY(10px);
		opacity: 1;
	}
}

/* ===================================
   Electric Border Effect
   =================================== */
.hero-content::before {
	content: '';
	position: absolute;
	inset: -2px;
	background: linear-gradient(45deg, #8b5cf6, #06b6d4, #8b5cf6);
	background-size: 200% 200%;
	border-radius: 24px;
	opacity: 0;
	z-index: -1;
	animation: borderRotate 5s linear infinite;
	filter: blur(10px);
}

@keyframes borderRotate {
	0%, 100% { background-position: 0% 50%; }
	50% { background-position: 100% 50%; }
}

/* ===================================
   Mobile Optimizations
   =================================== */
@media (max-width: 768px) {
	.hero-name {
		font-size: 3rem;
	}

	.glow-orb-1,
	.glow-orb-2,
	.glow-orb-3 {
		width: 300px;
		height: 300px;
		filter: blur(60px);
	}

	.btn-primary,
	.btn-secondary {
		padding: 12px 24px;
		font-size: 14px;
	}
}
