/* styles.css */
@import url("https://fonts.googleapis.com/css2?family=Tajawal:wght@300;400;700;800&display=swap");
:root {
	--main-color: #7bcac7;
	--bg: #e8ffff;
	--card-bg: rgba(255, 255, 255, 0.75);
}

* {
	box-sizing: border-box;
	margin: 0;
	padding: 0;
	font-family: "Tajawal", sans-serif;
	scroll-behavior: smooth;
}

/* القسم الخارجي */
.hero {
	padding: 3rem 1rem;
}

/* الكرت/الحاوية الرئيسية */
.container {
	display: flex;
	flex-direction: column;
	row-gap: 3rem;
	justify-content: center;
	max-width: 1200px;
	margin-inline: auto;
	min-height: 85vh;
}
.container .hero-section {
	background-color: #eaffff;
	position: relative; /* مهم لتموضع الصورة مطلقاً داخلها */
	border-radius: 12px;
	padding: 2.2rem 2.5rem;
	display: flex;
	align-items: center;
	justify-content: space-between; /* النص على اليمين (RTL) */
	min-height: 85vh;
	overflow: visible; /* حتى لا تُقص الصورة عندما تخرج قليلاً للخارج */
	box-shadow: 0 6px 30px rgba(0, 0, 0, 0.08);
}
.header-brand {
	margin-bottom: -3.4rem;
}
/* نص الهيرو — خليه يحتل مساحة أقل للاقتراب من الصورة */
.hero-text {
	width: 45%; /* مساحة نص صغيرة -> الصورة أقرب */
	z-index: 3; /* أعلى من الصورة */
	text-align: right;
}

.hero-text h1 {
	font-size: 2.5rem;
	font-weight: 800;
	margin-bottom: 0.6rem;
}
.hero-text span {
	color: var(--main-color);
}

.hero-text p {
	color: #333;
	font: 1.2rem;
	line-height: 1.6;
	margin-bottom: 1rem;
}

/* العنصر الذي يحتوي الصورة — موضوعة مطلقاً لتطفو */
.image-hero {
	position: absolute;
	right: 15rem; /* المسافة من اليسار — عدّلها لتقرب/تبعد الصورة */
	bottom: -80px; /* لتبدو الصورة "طافية" عن الأسفل */
	width: 90%; /* عرض الصورة داخل الحاوية */
	z-index: 2; /* أقل من النص، ليتقدّم النص فوق الصورة إن لزم */
	pointer-events: none; /* يمنع الصورة من اعتراض النقرات على النص */
}

/* الصورة نفسها */
.image-hero img {
	width: 100%;
	height: auto;
	display: block;
	transform: translateY(4%); /* رفع/خفض بسيط يعطي إحساس بالعوم */
}

/* تأثير خلف الصورة (شبيه بالهالة في التصميم) */
.container .hero-section::before {
	content: "";
	position: absolute;
	left: 18%; /* مكان الهالة بالنسبة لعرض الحاوية */
	top: 8%;
	width: 420px;
	height: 320px;
	background: radial-gradient(circle, #7bcac733 0%, rgba(123, 202, 199, 0.08) 40%, transparent 60%);
	filter: blur(30px);
	z-index: 1;
	pointer-events: none;
}
.details {
	display: flex;
	flex-direction: column;
	justify-content: flex-start;
}
.details-title {
	font-size: 1.5rem;
	position: relative;
	z-index: 1;
}
.details-title::after {
	z-index: -1;
	position: absolute;
	right: 14rem;
	bottom: 0.9rem;
	content: "";
	width: 30px;
	height: 30px;
	border-radius: 50%;
	background-color: var(--main-color);
	-webkit-border-radius: 50%;
	-moz-border-radius: 50%;
	-ms-border-radius: 50%;
	-o-border-radius: 50%;
}

.deatils-img {
	margin: 1.5rem 0;
	background-color: #f5f5f5;
	border-radius: 1.5rem;
	padding: 2rem;
	-webkit-border-radius: 1.5rem;
	-moz-border-radius: 1.5rem;
	-ms-border-radius: 1.5rem;
	-o-border-radius: 1.5rem;
}
.deatils-img img {
	width: 100%;
}
.buy {
	font-size: 2rem;
	align-self: center;
	width: fit-content;
	text-decoration: none;
	background-color: var(--main-color);
	padding: 10px 2.3rem;
	border-radius: 8px;
	margin-top: 1.5rem;
	color: white;
	-webkit-border-radius: 8px;
	-moz-border-radius: 8px;
	-ms-border-radius: 8px;
	-o-border-radius: 8px;
}
.compare {
	display: grid;
	grid-template-columns: 1fr 3fr;
	align-items: center;
	column-gap: 0.5rem;
}
.compare h1 {
	font-size: 1.8rem;
}
.compare h2 {
	font-size: 1.1rem;
}
.compare-img img {
	width: 100%;
}
.compare-text {
	display: flex;
	flex-direction: column;
	row-gap: 1.5rem;
}
.compare-text li {
	font-weight: bold;
	margin-bottom: 1rem;
}
.compare-text span {
	color: var(--main-color);
}
.features {
	display: flex;
	flex-direction: column;
	row-gap: 1rem;
	background-color: var(--main-color);
	padding: 1rem 1.3rem;
	border-radius: 1rem;
	-webkit-border-radius: 1rem;
	-moz-border-radius: 1rem;
	-ms-border-radius: 1rem;
	-o-border-radius: 1rem;
}
.features h1 {
	color: #fff;
}
.features .feature {
	padding: 0.5rem 1rem;
	background-color: var(--card-bg);
	border-radius: 1rem;
	-webkit-border-radius: 1rem;
	-moz-border-radius: 1rem;
	-ms-border-radius: 1rem;
	-o-border-radius: 1rem;
}
.features .feature p {
	font-size: 1.2rem;
	font-weight: bold;
}
.quastion {
	background: url("../images/quasitons-02.png") no-repeat center center;
	background-size: cover;
	height: auto;
	width: 100%;
	padding: 2rem;

	border-radius: 1rem;
	-webkit-border-radius: 1rem;
	-moz-border-radius: 1rem;
	-ms-border-radius: 1rem;
	-o-border-radius: 1rem;
	display: grid;
	grid-template-columns: 1fr 1fr;
}
.quastion-text {
	display: flex;
	flex-direction: column;
	row-gap: 2rem;
	color: #fff;
}
.quastion h1 {
	position: relative;

	font-size: 2rem;
}
.quastion h1::after {
	position: absolute;
	right: 14.5rem;
	bottom: 0.9rem;
	content: "";
	width: 30px;
	height: 30px;
	border-radius: 50%;
	background-color: var(--main-color);
	-webkit-border-radius: 50%;
	-moz-border-radius: 50%;
	-ms-border-radius: 50%;
	-o-border-radius: 50%;
}
.accordion {
	background-color: #a0a0a0;
	color: #444;
	cursor: pointer;
	padding: 18px;
	width: 100%;
	border: none;
	text-align: right;
	outline: none;
	font-size: 15px;
	transition: 0.4s;
	margin-top: 1rem;
	display: flex;
	align-items: center;
	justify-content: space-between;
	font-weight: bold;
	border-radius: 1rem;
	-webkit-border-radius: 1rem;
	-moz-border-radius: 1rem;
	-ms-border-radius: 1rem;
	-o-border-radius: 1rem;
}

.active,
.accordion:hover {
	transition: all 0.3s;
	background-color: #ccc;
	-webkit-transition: all 0.3s;
	-moz-transition: all 0.3s;
	-ms-transition: all 0.3s;
	-o-transition: all 0.3s;
}

.panel {
	margin-top: 5px;
	border-radius: 1rem;
	transition: all 0.3s;
	padding: 1rem 2rem;
	display: none;
	background-color: white;
	overflow: hidden;
	-webkit-border-radius: 1rem;
	-moz-border-radius: 1rem;
	-ms-border-radius: 1rem;
	-o-border-radius: 1rem;
}
.panel ul li {
	list-style: decimal;
}
.icon-acc {
	background-color: #737373;
	display: flex;
	justify-content: center;
	align-items: center;
	padding: 0 1rem;
	color: #fff;
	font-size: 2rem;
	border-radius: 50%;
	-webkit-border-radius: 50%;
	-moz-border-radius: 50%;
	-ms-border-radius: 50%;
	-o-border-radius: 50%;
}
.hint {
	text-align: center;
}
.hint h1 {
	margin-top: 1.8rem;
	font-size: 2.5rem;
}
footer {
	background-color: #737373;
	padding: 2.5rem 2rem;
	color: #fff;
}
footer .target-text {
	display: flex;
	flex-direction: column;
	row-gap: 10px;
	width: 50%;
	margin: 0 auto;
	text-align: center;
}
.devider {
	background-color: #9b9b9b;
	height: 0.5px;
	width: 100%;
	margin: 1rem auto;
}
.copy-write {
	display: flex;
	column-gap: 1rem;
	align-items: center;
	justify-content: center;
}
.copy-write img {
	width: 50px;
}
.popup-overlay {
	position: fixed;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background: rgba(0, 0, 0, 0.6);
	display: none;
	justify-content: center;
	align-items: center;
	z-index: 1000;
}

.popup-content {
	background: #fff;
	padding: 30px 25px;
	border-radius: 10px;
	max-width: 400px;
	text-align: center;
	position: relative;
	font-family: "Cairo", sans-serif;
	box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.popup-close {
	position: absolute;
	top: 10px;
	right: 15px;
	font-size: 24px;
	cursor: pointer;
	user-select: none;
}

.big-discount {
	font-size: 1.3rem;
	margin: 15px 0;
	font-weight: bold;
	color: #d22;
}

.big-discount span {
	font-size: 3rem;
	color: #d22;
	font-weight: 900;
	display: block;
	margin-top: 5px;
}

.popup-btn {
	display: inline-block;
	margin-top: 20px;
	padding: 12px 25px;
	background-color: var(--main-color);
	color: white;
	font-weight: 700;
	text-decoration: none;
	border-radius: 6px;
}
.whatsapp-float {
	position: fixed;
	width: 55px;
	height: 55px;
	bottom: 20px;
	left: 20px; /* يمكن تغييره لـ right لو بدك الزر في اليمين */
	background-color: #25d366;
	color: #fff;
	border-radius: 50%;
	text-align: center;
	box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
	z-index: 1000;
	display: flex;
	align-items: center;
	justify-content: center;
	transition: transform 0.3s ease;
}

.whatsapp-float:hover {
	transform: scale(1.1);
}

.whatsapp-float img {
	width: 32px;
	height: 32px;
}

/* للشاشات أقل من 992px (أجهزة التابلت) */
@media (max-width: 992px) {
	.container .hero-section {
		flex-direction: column;
		align-items: center;
		text-align: center;
		padding: 2rem 1.5rem;
		min-height: auto;
	}

	.hero-text {
		width: 90%;
	}

	.hero-text h1 {
		font-size: 2.2rem;
	}

	.hero-text p {
		font-size: 1.1rem;
	}

	.image-hero {
		display: inline;
		position: static;
		width: 100%;
	}
}

/* للشاشات أقل من 768px (هواتف متوسطة وكبيرة) */
@media (max-width: 768px) {
	body {
		font-size: 14px;
	}

	.container {
		row-gap: 2rem;
		padding: 1rem;
	}

	.container .hero-section {
		padding: 1.5rem 1rem;
	}

	.hero-text h1 {
		font-size: 1.8rem;
		line-height: 1.4;
	}

	.hero-text p {
		font-size: 1rem;
	}

	.buy {
		font-size: 1rem;
		padding: 8px 1.2rem;
	}

	.details-title {
		font-size: 1.3rem;
		text-align: center;
	}

	.deatils-img {
		padding: 1rem;
	}

	.compare {
		grid-template-columns: 1fr;
		row-gap: 1rem;
	}

	.quastion {
		grid-template-columns: 1fr;
		row-gap: 1.5rem;
		padding: 1.5rem 1rem;
	}

	footer .target-text {
		width: 90%;
	}
}

/* للشاشات أقل من 480px (هواتف صغيرة) */
@media (max-width: 480px) {
	body {
		font-size: 13px;
	}
.header-brand {
		margin-bottom: -2.1rem;
	}
	.hero-text h1 {
		font-size: 1.5rem;
	}

	.hero-text p {
		font-size: 0.9rem;
	}

	.buy {
		font-size: 1.5rem;
		padding: 6px 1.5rem;
	}
	.hint h1 {
		margin-top: 1.2rem;
		font-size: 1.8rem;
	}
	.big-discount span {
		font-size: 1.8rem;
	}

	.popup-content {
		width: 90%;
		padding: 15px;
	}
	.features {
		display: flex;
		flex-direction: column;
		row-gap: 1rem;
		background-color: var(--main-color);
		padding: 1rem 1.3rem;
		border-radius: 1rem;
		-webkit-border-radius: 1rem;
		-moz-border-radius: 1rem;
		-ms-border-radius: 1rem;
		-o-border-radius: 1rem;
	}
	.features h1 {
		font-size: 1.2rem;
	}

	.features .feature p {
		font-size: 1rem;
		font-weight: bold;
	}
	.quastion-text {
		display: flex;
		flex-direction: column;
		row-gap: 1rem;
		color: #fff;
	}
	.quastion h1 {
		position: relative;

		font-size: 1.7rem;
	}
	.quastion h1::after {
		position: absolute;
		right: 12.5rem;
		bottom: 0.9rem;
		content: "";
		width: 30px;
		height: 30px;
		border-radius: 50%;
		background-color: var(--main-color);
		-webkit-border-radius: 50%;
		-moz-border-radius: 50%;
		-ms-border-radius: 50%;
		-o-border-radius: 50%;
	}
	.hero {
		padding: 3rem 0.5rem;
	}
	.accordion {
		padding: 10px;
		font-size: 12px;
		margin-top: 1rem;
	}
	.icon-acc {
		padding: 0 0.5rem;
		font-size: 1rem;
	}
}

