/* ============================================
   Afroways Home – Professional layout & animations
   ============================================ */

:root {
	--home-primary: #6366f1;
	--home-primary-dark: #4f46e5;
	--home-accent: #a78bfa;
	--home-glow: rgba(99, 102, 241, 0.4);
	--home-ease-out: cubic-bezier(0.22, 1, 0.36, 1);
	--home-ease-bounce: cubic-bezier(0.34, 1.56, 0.64, 1);
	--home-duration: 0.5s;
	--home-duration-slow: 0.7s;
}

/* ----- Slider text spacing (legacy) ----- */
.main-slider-content .sub-title {
	margin-bottom: 15px !important;
}
.main-slider-content .sub-title h4 {
	margin-bottom: 0 !important;
	line-height: 1.2em !important;
}
.main-slider-content .big-title {
	margin-top: 0 !important;
	margin-bottom: 0 !important;
}
.main-slider-content .big-title h2 {
	line-height: 1.2em !important;
	margin-bottom: 0 !important;
	margin-top: 0 !important;
}
.main-slider-content .sub-title + .big-title {
	margin-top: 10px !important;
}
.main-slider-content .btn-box {
	margin-top: 25px !important;
}

/* ----- Hero typography ----- */
.home-hero .hero-subtitle {
	font-size: clamp(1rem, 2vw, 1.25rem);
	font-weight: 600;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	opacity: 0.95;
}
.home-hero .hero-title {
	font-size: clamp(1.75rem, 4vw, 2.75rem);
	font-weight: 700;
	line-height: 1.2;
	letter-spacing: -0.02em;
	text-shadow: 0 2px 20px rgba(0, 0, 0, 0.15);
}

/* ----- Primary home buttons (hero & CTAs) ----- */
.btn-home {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 0.5rem;
	padding: 0.875rem 1.75rem;
	font-size: 0.9375rem;
	font-weight: 600;
	letter-spacing: 0.04em;
	text-decoration: none;
	border-radius: 9999px;
	border: 2px solid transparent;
	cursor: pointer;
	position: relative;
	overflow: hidden;
	transition: transform var(--home-duration) var(--home-ease-out),
	            box-shadow var(--home-duration) var(--home-ease-out),
	            color var(--home-duration) ease,
	            border-color var(--home-duration) ease,
	            background var(--home-duration) ease;
}
.btn-home span,
.btn-home i {
	position: relative;
	z-index: 1;
	transition: transform var(--home-duration) var(--home-ease-out);
}
.btn-home:hover {
	transform: translateY(-2px);
}
.btn-home:hover span {
	transform: translateX(-3px);
}
.btn-home:hover i {
	transform: translateX(3px);
}

/* Shine sweep on hover */
.btn-home::after {
	content: '';
	position: absolute;
	top: 0;
	left: -100%;
	width: 60%;
	height: 100%;
	background: linear-gradient(
		105deg,
		transparent 0%,
		rgba(255, 255, 255, 0.15) 45%,
		rgba(255, 255, 255, 0.25) 50%,
		rgba(255, 255, 255, 0.15) 55%,
		transparent 100%
	);
	transition: left 0.6s var(--home-ease-out);
	z-index: 0;
}
.btn-home:hover::after {
	left: 100%;
}

.btn-home-primary {
	background: linear-gradient(135deg, var(--home-primary) 0%, var(--home-primary-dark) 100%);
	color: #fff !important;
	box-shadow: 0 4px 14px var(--home-glow);
}
.btn-home-primary span,
.btn-home-primary i {
	color: #fff !important;
}
.btn-home-primary:hover {
	box-shadow: 0 8px 24px var(--home-glow);
	background: linear-gradient(135deg, var(--home-primary-dark) 0%, var(--home-primary) 100%);
	color: #fff !important;
}
.btn-home-primary:hover span,
.btn-home-primary:hover i {
	color: #fff !important;
}

.btn-home-outline {
	background: rgba(255, 255, 255, 0.08);
	color: #fff;
	border-color: rgba(255, 255, 255, 0.4);
	backdrop-filter: blur(8px);
}
.btn-home-outline:hover {
	background: rgba(255, 255, 255, 0.18);
	border-color: rgba(255, 255, 255, 0.7);
	box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
}

/* Ensure primary button text is always white (overrides theme/dark .btn-box a color) */
.main-slider-content .btn-box .btn-home-primary,
.main-slider-content .btn-box .btn-home-primary span,
.main-slider-content .btn-box .btn-home-primary i {
	color: #fff !important;
}

.hero-btns {
	display: flex;
	flex-wrap: wrap;
	gap: 1rem;
	align-items: center;
	justify-content: flex-start;
}
.hero-btns .btn-home {
	min-width: 140px;
}

/* ----- Scroll reveal animations ----- */
.home-reveal {
	opacity: 0;
	transform: translateY(28px);
	transition: opacity var(--home-duration-slow) var(--home-ease-out),
	            transform var(--home-duration-slow) var(--home-ease-out);
}
.home-reveal-visible {
	opacity: 1;
	transform: translateY(0);
}

.home-reveal-left {
	transform: translateX(-36px);
}
.home-reveal-left.home-reveal-visible {
	transform: translateX(0);
}

.home-reveal-right {
	transform: translateX(36px);
}
.home-reveal-right.home-reveal-visible {
	transform: translateX(0);
}

.home-reveal-delay-1 { transition-delay: 0.1s; }
.home-reveal-delay-2 { transition-delay: 0.2s; }

/* Stagger step cards */
.home-steps-grid .step-card-home[data-delay="0"] { transition-delay: 0s; }
.home-steps-grid .step-card-home[data-delay="1"] { transition-delay: 0.1s; }
.home-steps-grid .step-card-home[data-delay="2"] { transition-delay: 0.2s; }
.home-steps-grid .step-card-home[data-delay="3"] { transition-delay: 0.3s; }

/* ----- Slider entrance (keep existing + enhance) ----- */
.slide-in-left {
	opacity: 0;
	transform: translateX(-50px);
	animation: homeSlideInLeft 0.8s var(--home-ease-out) forwards;
}
.slide-in-right {
	opacity: 0;
	transform: translateX(50px);
	animation: homeSlideInRight 0.8s var(--home-ease-out) forwards;
}
.fade-in-up-delay {
	opacity: 0;
	transform: translateY(24px);
	animation: homeFadeInUp 0.8s var(--home-ease-out) 0.25s forwards;
}
@keyframes homeSlideInLeft {
	to { opacity: 1; transform: translateX(0); }
}
@keyframes homeSlideInRight {
	to { opacity: 1; transform: translateX(0); }
}
@keyframes homeFadeInUp {
	to { opacity: 1; transform: translateY(0); }
}

.swiper-slide-active .slide-in-left {
	animation: homeSlideInLeft 0.8s var(--home-ease-out) forwards;
}
.swiper-slide-active .slide-in-right {
	animation: homeSlideInRight 0.8s var(--home-ease-out) forwards;
}
.swiper-slide-active .fade-in-up-delay {
	animation: homeFadeInUp 0.8s var(--home-ease-out) 0.25s forwards;
}

/* ----- Content cards (about section) ----- */
.content-card-home {
	padding: 2.25rem;
	background: rgba(255, 255, 255, 0.05);
	border-radius: 20px;
	backdrop-filter: blur(12px);
	border: 1px solid rgba(255, 255, 255, 0.08);
	transition: transform var(--home-duration) var(--home-ease-out),
	            box-shadow var(--home-duration) var(--home-ease-out),
	            background var(--home-duration) ease;
}
.content-card-home:hover {
	background: rgba(255, 255, 255, 0.08);
	transform: translateY(-6px);
	box-shadow: 0 16px 40px rgba(0, 0, 0, 0.25);
}

.image-reveal {
	overflow: hidden;
	border-radius: 20px;
	transition: transform var(--home-duration) var(--home-ease-out),
	            box-shadow var(--home-duration) var(--home-ease-out);
}
.image-reveal img {
	transition: transform 0.6s var(--home-ease-out);
}
.image-reveal:hover img {
	transform: scale(1.06);
}
.image-reveal:hover {
	box-shadow: 0 20px 48px rgba(0, 0, 0, 0.35);
}

/* ----- Step cards (How it works) ----- */
.found-one .found-one__single.step-card-home,
.step-card-home {
	background: rgba(255, 255, 255, 0.06);
	border-radius: 20px;
	padding: 2rem 1.5rem;
	text-align: center;
	border: 1px solid rgba(255, 255, 255, 0.08);
	backdrop-filter: blur(10px);
	height: 100%;
	transition: transform var(--home-duration) var(--home-ease-bounce),
	            box-shadow var(--home-duration) var(--home-ease-out),
	            background var(--home-duration) ease,
	            border-color var(--home-duration) ease;
}
.step-card-home:hover {
	transform: translateY(-8px);
	background: rgba(255, 255, 255, 0.1);
	box-shadow: 0 20px 40px var(--home-glow);
	border-color: rgba(99, 102, 241, 0.35);
}

.step-card-home__icon {
	width: 4rem;
	height: 4rem;
	margin: 0 auto 1.25rem;
	display: flex;
	align-items: center;
	justify-content: center;
	background: linear-gradient(135deg, var(--home-primary) 0%, var(--home-primary-dark) 100%);
	border-radius: 16px;
	box-shadow: 0 8px 20px var(--home-glow);
	transition: transform var(--home-duration) var(--home-ease-bounce);
}
.step-card-home__icon i {
	font-size: 1.5rem;
	color: #fff;
}
.step-card-home:hover .step-card-home__icon {
	transform: scale(1.08) translateY(-4px);
}

/* Legacy step icon fallback */
.step-card-home .found-one__icon-box {
	margin-bottom: 1.25rem;
}
.step-card-home .found-one__icon-box i {
	font-size: 2.5rem;
	color: var(--home-accent);
}

/* ----- Donate/CTA cards ----- */
.donate-card-home {
	border-radius: 20px;
	overflow: hidden;
	transition: transform var(--home-duration) var(--home-ease-out),
	            box-shadow var(--home-duration) var(--home-ease-out);
}
.donate-card-home:hover {
	transform: translateY(-8px);
	box-shadow: 0 24px 56px rgba(0, 0, 0, 0.35);
}
.donate-card-home .donate-card-content {
	position: relative;
	z-index: 2;
	padding: 2.5rem;
}
.donate-card-home .donate-one__title a {
	color: #fff;
	text-decoration: none;
	transition: color 0.3s ease;
}
.donate-card-home .donate-one__title a:hover {
	color: var(--home-accent);
}
.donate-card-home .btn-home-primary {
	box-shadow: 0 4px 14px var(--home-glow);
}

/* ----- Ad strip ----- */
.home-ads-wrap .home-ad-item {
	transition: opacity var(--home-duration-slow) var(--home-ease-out),
	            transform var(--home-duration-slow) var(--home-ease-out);
}

/* ----- Section spacing ----- */
.modern-section {
	padding: 80px 0;
	position: relative;
}
.section-spacing {
	margin: 60px 0;
}

/* ----- Legacy button styles (other pages) ----- */
.btn-modern {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	padding: 14px 32px;
	font-size: 16px;
	font-weight: 600;
	text-decoration: none;
	border-radius: 50px;
	transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
	position: relative;
	overflow: hidden;
	border: 2px solid transparent;
	cursor: pointer;
	text-transform: uppercase;
	letter-spacing: 0.5px;
}
.btn-modern::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-modern:hover::before {
	width: 300px;
	height: 300px;
}
.btn-modern span,
.btn-modern i {
	position: relative;
	z-index: 1;
	transition: transform 0.3s ease;
}
.btn-modern:hover span { transform: translateX(-5px); }
.btn-modern:hover i { transform: translateX(5px); }
.btn-primary-modern {
	background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
	color: white;
	box-shadow: 0 4px 15px rgba(102, 126, 234, 0.4);
}
.btn-primary-modern:hover {
	background: linear-gradient(135deg, #764ba2 0%, #667eea 100%);
	box-shadow: 0 6px 20px rgba(102, 126, 234, 0.6);
	transform: translateY(-2px);
}
.btn-secondary-modern {
	background: rgba(255, 255, 255, 0.1);
	color: white;
	border: 2px solid rgba(255, 255, 255, 0.3);
	backdrop-filter: blur(10px);
}
.btn-secondary-modern:hover {
	background: rgba(255, 255, 255, 0.2);
	border-color: rgba(255, 255, 255, 0.5);
	transform: translateY(-2px);
	box-shadow: 0 6px 20px rgba(255, 255, 255, 0.2);
}
.btn-outline-modern {
	background: transparent;
	color: white;
	border: 2px solid white;
}
.btn-outline-modern:hover {
	background: white;
	color: var(--home-primary);
	border-color: white;
	transform: translateY(-2px);
	box-shadow: 0 6px 20px rgba(255, 255, 255, 0.3);
}
.btn-box {
	display: flex;
	gap: 15px;
	flex-wrap: wrap;
	justify-content: center;
	margin-top: 30px;
}

.text-link {
	color: var(--home-accent);
	text-decoration: underline;
	transition: color 0.3s ease;
}
.text-link:hover {
	color: var(--home-primary);
}

/* ----- Card hover (legacy class) ----- */
.card-hover-effect {
	transition: transform var(--home-duration) var(--home-ease-out),
	            box-shadow var(--home-duration) var(--home-ease-out);
}

/* ----- Responsive: tablet ----- */
@media (max-width: 991px) {
	.home-hero .main-slider .container {
		padding: 120px 20px 100px;
	}
	.home-hero .hero-title {
		font-size: clamp(1.5rem, 4vw, 2rem);
	}
}

/* ----- Responsive: mobile ----- */
@media (max-width: 768px) {
	.home-ads-wrap .container {
		padding-left: 12px;
		padding-right: 12px;
	}
	.home-hero .main-slider .container {
		padding: 80px 16px 70px;
		min-height: 0;
	}
	.home-hero .hero-subtitle {
		font-size: 0.8125rem;
		letter-spacing: 0.06em;
	}
	.home-hero .hero-title {
		font-size: 1.5rem;
		line-height: 1.25;
	}
	.home-hero .main-slider-content .big-title h2 br {
		display: block;
	}
	.main-slider-content .btn-box.hero-btns,
	.hero-btns {
		display: flex !important;
		flex-direction: column;
		align-items: stretch;
		gap: 1.5rem !important;
		line-height: normal !important;
		margin-top: 1.5rem;
	}
	.hero-btns .btn-home {
		min-width: auto;
		width: 100%;
		max-width: 100%;
		margin: 0;
		padding: 14px 20px;
		font-size: 0.9375rem;
		justify-content: center;
	}
	.content-card-home {
		padding: 1.5rem;
	}
	.modern-section {
		padding: 50px 0;
	}
	.section-spacing {
		margin: 40px 0;
	}
	.home-reveal-left { transform: translateY(24px); }
	.home-reveal-right { transform: translateY(24px); }
	.home-reveal-left.home-reveal-visible,
	.home-reveal-right.home-reveal-visible { transform: translateY(0); }
}

/* ----- Responsive: small mobile ----- */
@media (max-width: 576px) {
	.home-hero .main-slider .container {
		padding: 70px 14px 60px;
	}
	.home-hero .hero-title {
		font-size: 1.35rem;
	}
	.home-hero .hero-subtitle {
		font-size: 0.75rem;
	}
	.hero-btns .btn-home {
		padding: 12px 18px;
	}
	.content-card-home {
		padding: 1.25rem;
	}
	.donate-card-home .donate-card-content {
		padding: 1.5rem;
	}
	.step-card-home {
		padding: 1.5rem 1rem;
	}
	.step-card-home__icon {
		width: 3.25rem;
		height: 3.25rem;
	}
	.step-card-home__icon i {
		font-size: 1.25rem;
	}
}

/* Prevent horizontal overflow on home */
body:has(.home-hero) {
	overflow-x: hidden;
}
.home-ads-wrap,
.main-slider.home-hero,
.home-about .container,
.home-steps .container,
.home-cta .container {
	max-width: 100%;
}

html {
	scroll-behavior: smooth;
}

/* Paragraph text on dark sections */
.home-about p,
.home-steps p,
.donate-one__text {
	color: #fff !important;
}
