:root {
	--dark-blue: #0a192f;
	--gold: #d4af37;
	--light-gold: #f0e6d2;
	--white: #ffffff;
	--gray: #ccd6f6;
	--section-padding: 80px 0;
	--container-width: 1200px;
}

* {
	margin: 0;
	padding: 0;
	box-sizing: border-box;
	font-family: "Tajawal", Arial, sans-serif;
}

body {
	background-color: var(--dark-blue);
	color: var(--gray);
	line-height: 1.6;
	scroll-behavior: smooth;
}

body.english {
	direction: ltr;
}

.container {
	width: 100%;
	max-width: var(--container-width);
	margin: 0 auto;
	padding: 0 20px;
}

/* Language Bar */
.language-bar {
	position: fixed;
	top: 0;
	left: 0;
	right: 0;
	background-color: rgba(10, 25, 47, 0.95);
	padding: 15px 0;
	z-index: 1000;
	border-bottom: 1px solid var(--gold);
	animation: fadeInDown 0.8s ease forwards;
}

.language-bar .container {
	display: flex;
	justify-content: space-between;
	align-items: center;
}

.logo img {
	height: 80px;
	width: auto;
	object-fit: fill;
	background-color: transparent;
	animation: scaleIn 1s ease 0.3s forwards;
	opacity: 0;
}

.language-toggle {
	display: flex;
	gap: 10px;
	animation: fadeIn 1s ease 0.5s forwards;
	opacity: 0;
}

.lang-btn {
	background-color: transparent;
	color: var(--gold);
	border: 1px solid var(--gold);
	padding: 5px 15px;
	border-radius: 20px;
	cursor: pointer;
	transition: all 0.3s;
	font-size: 0.9rem;
}

.lang-btn.active {
	background-color: var(--gold);
	color: var(--dark-blue);
	font-weight: bold;
}

/* Hero Section */
.hero-section {
	padding: 150px 0 80px;
	text-align: center;
}

.profile-img-container {
	margin: 0 auto 30px;
	animation: scaleIn 1.2s ease 0.6s forwards;
	opacity: 0;
}

.profile-img {
	width: 300px;
	height: 300px;
	border-radius: 50%;

	border: 5px solid var(--gold);
	box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
	transition: all 0.5s ease;
}

.profile-img:hover {
	transform: scale(1.03);
	box-shadow: 0 8px 25px rgba(212, 175, 55, 0.3);
}

.hero-text h1 {
	color: var(--gold);
	font-size: 2.2rem;
	margin-bottom: 10px;
	font-weight: 700;
	animation: fadeInUp 1s ease 0.8s forwards;
	opacity: 0;
}

.hero-text p {
	font-size: 1.2rem;
	color: var(--white);
	max-width: 800px;
	margin: 0 auto;
	animation: fadeInUp 1s ease 1s forwards;
	opacity: 0;
}

/* Navigation Menu */
.main-nav {
	background-color: rgba(10, 25, 47, 0.9);
	position: sticky;
	top: 118px;
	z-index: 999;
	border-bottom: 1px solid rgba(212, 175, 55, 0.2);
	animation: fadeInUp 1s ease 1.2s forwards;
	opacity: 0;
}

.nav-menu {
	display: flex;
	justify-content: center;
	list-style: none;
	padding: 15px 0;
	overflow-x: auto;
	white-space: nowrap;
	scrollbar-width: thin;
	scrollbar-color: var(--gold) rgba(10, 25, 47, 0.5);
}

.nav-menu::-webkit-scrollbar {
	height: 6px;
}

.nav-menu::-webkit-scrollbar-track {
	background: rgba(10, 25, 47, 0.5);
	border-radius: 10px;
}

.nav-menu::-webkit-scrollbar-thumb {
	background-color: var(--gold);
	border-radius: 10px;
	border: 2px solid rgba(10, 25, 47, 0.5);
}

.nav-menu::-webkit-scrollbar-thumb:hover {
	background-color: var(--light-gold);
}

@media (min-width: 1024px) {
	.nav-menu {
		overflow-x: auto;
		scrollbar-width: none;
	}

	.nav-menu::-webkit-scrollbar {
		display: none;
	}

	.main-nav:hover .nav-menu {
		scrollbar-width: thin;
	}

	.main-nav:hover .nav-menu::-webkit-scrollbar {
		display: block;
	}
}

.nav-menu li {
	margin: 0 10px;
	opacity: 0;
	animation: fadeIn 0.5s ease forwards;
}

.nav-menu li:nth-child(1) {
	animation-delay: 1.3s;
}
.nav-menu li:nth-child(2) {
	animation-delay: 1.4s;
}
.nav-menu li:nth-child(3) {
	animation-delay: 1.5s;
}
.nav-menu li:nth-child(4) {
	animation-delay: 1.6s;
}
.nav-menu li:nth-child(5) {
	animation-delay: 1.7s;
}
.nav-menu li:nth-child(6) {
	animation-delay: 1.8s;
}
.nav-menu li:nth-child(7) {
	animation-delay: 1.9s;
}
.nav-menu li:nth-child(8) {
	animation-delay: 2s;
}
.nav-menu li:nth-child(9) {
	animation-delay: 2.1s;
}

.nav-link {
	color: var(--gray);
	text-decoration: none;
	display: flex;
	flex-direction: column;
	align-items: center;
	padding: 10px 15px;
	border-radius: 5px;
	transition: all 0.3s ease;
}

.nav-link i {
	font-size: 1.5rem;
	color: var(--gold);
	margin-bottom: 5px;
}

.nav-link:hover {
	background-color: rgba(212, 175, 55, 0.1);
	transform: translateY(-3px);
}

.nav-link.active {
	position: relative;
	color: var(--gold);
}

.nav-link.active::after {
	content: "";
	position: absolute;
	bottom: 0;
	left: 50%;
	width: 0;
	height: 2px;
	background-color: var(--gold);
	transform: translateX(-50%);
	animation: expandWidth 0.3s ease forwards;
}

/* Content Sections */
.content-sections {
	padding: 40px 0;
}

.content-section {
	padding: var(--section-padding);
	border-bottom: 1px solid rgba(212, 175, 55, 0.1);
	position: relative;
	overflow: hidden;
	opacity: 0;
	transform: translateY(30px);
	transition: opacity 0.8s ease, transform 0.8s ease;
}

.content-section:nth-child(odd) {
	background-color: rgba(10, 25, 47, 0.4);
	transform: translateX(30px);
}

.content-section:nth-child(even) {
	transform: translateX(-30px);
}

.content-section:before {
	content: "";
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 3px;
	background: linear-gradient(90deg, transparent, var(--gold), transparent);
	opacity: 0.5;
}

.content-section.animate {
	opacity: 1;
	transform: translateY(0) translateX(0);
}

.section-title {
	color: var(--gold);
	font-size: 2.2rem;
	margin-bottom: 40px;
	text-align: center;
	position: relative;
	padding-bottom: 15px;
	opacity: 0;
	transform: translateY(-10px);
	transition: opacity 0.6s ease, transform 0.6s ease;
}

.section-title:after {
	content: "";
	position: absolute;
	bottom: 0;
	left: 50%;
	transform: translateX(-50%);
	width: 80px;
	height: 3px;
	background-color: var(--gold);
	border-radius: 2px;
}

.content-section.animate .section-title {
	opacity: 1;
	transform: translateY(0);
}

.section-content {
	max-width: 800px;
	margin: 0 auto;
	background-color: rgba(10, 25, 47, 0.3);
	padding: 30px;
	border-radius: 8px;
	box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
	border: 1px solid rgba(212, 175, 55, 0.1);
	opacity: 0;
	transform: translateY(20px);
	transition: opacity 0.8s ease 0.2s, transform 0.8s ease 0.2s;
}

.section-content:hover {
	box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3), 0 0 0 1px rgba(212, 175, 55, 0.2);
	transform: translateY(-3px);
	transition: all 0.4s ease;
}

.content-section.animate .section-content {
	opacity: 1;
	transform: translateY(0);
}

.section-content p,
.section-content ul {
	margin-bottom: 15px;
	text-align: justify;
}

.section-content p {
	line-height: 1.8;
	margin-bottom: 20px;
	position: relative;
	padding-left: 20px;
	border-left: 3px solid rgba(212, 175, 55, 0.3);
}

body:not(.english) .section-content p {
	padding-left: 0;
	padding-right: 20px;
	border-left: none;
	border-right: 3px solid rgba(212, 175, 55, 0.3);
}

.section-content ul {
	list-style: none;
	padding-left: 0;
	margin-top: 20px;
}

.section-content ul li {
	position: relative;
	padding: 12px 0 12px 35px;
	margin-bottom: 8px;
	border-bottom: 1px solid rgba(212, 175, 55, 0.1);
	transition: background-color 0.3s ease, border-radius 0.3s ease;
	animation: fadeInRight 0.5s ease forwards;
	opacity: 0;
}

body:not(.english) .section-content ul li {
	padding: 12px 35px 12px 0;
	animation: fadeInLeft 0.5s ease forwards;
}

.section-content ul li:last-child {
	border-bottom: none;
}

.section-content ul li:before {
	content: "\f0c8";
	font-family: "Font Awesome 5 Free";
	font-weight: 900;
	position: absolute;
	left: 0;
	top: 14px;
	color: var(--gold);
	font-size: 12px;
	opacity: 0.8;
}

body:not(.english) .section-content ul li:before {
	left: auto;
	right: 0;
}

.section-content ul li:hover {
	background-color: rgba(212, 175, 55, 0.05);
	border-radius: 4px;
}

/* Staggered animation for list items */
.section-content ul li:nth-child(1) {
	animation-delay: 0.1s;
}
.section-content ul li:nth-child(2) {
	animation-delay: 0.2s;
}
.section-content ul li:nth-child(3) {
	animation-delay: 0.3s;
}
.section-content ul li:nth-child(4) {
	animation-delay: 0.4s;
}
.section-content ul li:nth-child(5) {
	animation-delay: 0.5s;
}
.section-content ul li:nth-child(6) {
	animation-delay: 0.6s;
}
.section-content ul li:nth-child(7) {
	animation-delay: 0.7s;
}
.section-content ul li:nth-child(8) {
	animation-delay: 0.8s;
}
.section-content ul li:nth-child(9) {
	animation-delay: 0.9s;
}
.section-content ul li:nth-child(10) {
	animation-delay: 1s;
}

/* Nested lists */
.section-content ul li ul {
	margin-top: 10px;
	margin-bottom: 0;
}

.section-content ul li ul li {
	padding-left: 25px;
	margin-bottom: 5px;
	border-bottom: none;
}

.section-content ul li ul li:before {
	content: "\f105";
	font-size: 14px;
}

body:not(.english) .section-content ul li ul li {
	padding-right: 25px;
	padding-left: 0;
}

body:not(.english) .section-content ul li ul li:before {
	content: "\f104";
}

/* Contact Section */
.contact-info {
	text-align: center;
	margin-bottom: 60px;
}

.contact-info p {
	margin-bottom: 15px;
	font-size: 1.1rem;
}

.contact-info i {
	color: var(--gold);
	margin-left: 8px;
}

body.english .contact-info i {
	margin-left: 0;
	margin-right: 8px;
}

.contact-form-container {
	max-width: 600px;
	margin: 0 auto;
	padding-top: 30px;
}

.form-title {
	color: var(--gold);
	font-size: 1.5rem;
	margin-bottom: 30px;
	text-align: center;
	position: relative;
	padding-bottom: 15px;
}

.form-title:after {
	content: "";
	position: absolute;
	bottom: 0;
	left: 50%;
	transform: translateX(-50%);
	width: 60px;
	height: 2px;
	background-color: var(--gold);
	border-radius: 2px;
}

.form-group {
	margin-bottom: 20px;
}

.form-group label {
	display: block;
	margin-bottom: 8px;
	color: var(--gold);
}

.form-group input,
.form-group textarea,
.form-group select {
	width: 100%;
	padding: 12px;
	background-color: rgba(255, 255, 255, 0.1);
	border: 1px solid var(--gold);
	border-radius: 4px;
	color: var(--white);
	font-size: 1rem;
}

.form-group textarea {
	height: 150px;
	resize: vertical;
}

/* Select dropdown styling */
select {
	appearance: none;
	-webkit-appearance: none;
	-moz-appearance: none;
	background-image: url("data:image/svg+xml;utf8,<svg fill='%23d4af37' height='12' viewBox='0 0 24 24' width='12' xmlns='http://www.w3.org/2000/svg'><path d='M7 10l5 5 5-5z'/><path d='M0 0h24v24H0z' fill='none'/></svg>") !important;
	background-repeat: no-repeat;
	background-position: right 10px center !important;
	background-size: 8px 8px !important;
	padding-right: 30px;
	color-scheme: dark;
	direction: ltr !important;
	text-align: left !important;
}

body:not(.english) select,
body:not(.english) .form-group select,
body:not(.english) #subject {
	text-align: right !important;
	padding-right: 40px !important;
	padding-left: 12px !important;
}

select::-ms-expand {
	display: none;
}

select option {
	background-color: rgba(10, 25, 47, 0.95) !important;
	color: var(--light-gold) !important;
	padding: 12px !important;
	border-bottom: 1px solid rgba(212, 175, 55, 0.1) !important;
}

.form-group select,
#subject {
	background-color: rgba(10, 25, 47, 0.8) !important;
	border-color: rgba(212, 175, 55, 0.4) !important;
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
	transition: all 0.3s ease;
	color: var(--light-gold) !important;
}

.form-group select:focus,
#subject:focus {
	border-color: var(--gold) !important;
	box-shadow: 0 0 0 2px rgba(212, 175, 55, 0.15), 0 4px 10px rgba(0, 0, 0, 0.3);
	background-color: rgba(10, 25, 47, 0.95) !important;
}

/* Submit button */
.submit-btn {
	display: block !important;
	width: 200px !important;
	margin: 20px auto !important;
	padding: 12px 0 !important;
	background-color: var(--gold) !important;
	color: var(--dark-blue) !important;
	border: none !important;
	border-radius: 5px !important;
	font-size: 1.1rem !important;
	font-weight: 500 !important;
	cursor: pointer !important;
	transition: all 0.3s ease !important;
	text-align: center !important;
}

.submit-btn:hover {
	background-color: var(--light-gold) !important;
	transform: translateY(-2px) !important;
	box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1) !important;
}

.submit-btn.en-text {
	display: none !important;
}

body.english .submit-btn.en-text {
	display: block !important;
}

body.english .submit-btn.ar-text {
	display: none !important;
}

/* Footer */
.main-footer {
	background-color: rgba(10, 25, 47, 0.9);
	padding: 30px 0;
	border-top: 1px solid rgba(212, 175, 55, 0.2);
}

.footer-content {
	display: flex;
	flex-direction: column;
	align-items: center;
	text-align: center;
}

.copyright {
	margin-bottom: 20px;
	color: var(--gray);
}

.social-links {
	display: flex;
	gap: 20px;
}

.social-links a {
	color: var(--gold);
	font-size: 1.5rem;
	transition: all 0.3s;
}

.social-links a:hover {
	color: var(--light-gold);
}

/* Language Specific Styles */
.en-text {
	display: none !important;
}

body.english .ar-text {
	display: none !important;
}

body.english .en-text {
	display: block !important;
}

label.en-text,
button.en-text,
option.en-text {
	display: none !important;
}

body.english label.ar-text,
body.english button.ar-text,
body.english option.ar-text {
	display: none !important;
}

body.english label.en-text,
body.english button.en-text,
body.english option.en-text {
	display: inline-block !important;
}

/* Hide options based on language */
body:not(.english) #subject option.en-text {
	display: none !important;
}

body.english #subject option.ar-text {
	display: none !important;
}

/* Animations */
@keyframes fadeInDown {
	from {
		opacity: 0;
		transform: translateY(-20px);
	}
	to {
		opacity: 1;
		transform: translateY(0);
	}
}

@keyframes fadeInUp {
	from {
		opacity: 0;
		transform: translateY(20px);
	}
	to {
		opacity: 1;
		transform: translateY(0);
	}
}

@keyframes fadeIn {
	from {
		opacity: 0;
	}
	to {
		opacity: 1;
	}
}

@keyframes scaleIn {
	from {
		opacity: 0;
		transform: scale(0.9);
	}
	to {
		opacity: 1;
		transform: scale(1);
	}
}

@keyframes expandWidth {
	from {
		width: 0;
	}
	to {
		width: 70%;
	}
}

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

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

/* Custom dropdown styling */
.custom-select-container {
	position: relative;
	width: 100%;
}

.custom-select-trigger {
	background-color: rgba(255, 255, 255, 0.1) !important;
	border: 1px solid var(--gold);
	color: var(--white) !important;
	padding: 12px;
	border-radius: 4px;
	cursor: pointer;
	display: flex;
	justify-content: space-between;
	align-items: center;
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.custom-select-trigger:after {
	content: "";
	width: 10px;
	height: 10px;
	border-right: 2px solid var(--gold);
	border-bottom: 2px solid var(--gold);
	transform: rotate(45deg);
	margin-right: 10px;
	transition: transform 0.3s;
}

.custom-select-container.open .custom-select-trigger:after {
	transform: rotate(-135deg);
}

.custom-options {
	position: absolute;
	top: 100%;
	left: 0;
	right: 0;
	background-color: rgba(10, 25, 47, 0.95);
	border: 1px solid rgba(212, 175, 55, 0.4);
	border-top: 0;
	border-radius: 0 0 4px 4px;
	box-shadow: 0 5px 10px rgba(0, 0, 0, 0.4);
	max-height: 200px;
	overflow-y: auto;
	z-index: 100;
	display: none;
}

.custom-select-container.open .custom-options {
	display: block;
}

.custom-option {
	padding: 12px;
	cursor: pointer;
	color: var(--light-gold);
	border-bottom: 1px solid rgba(212, 175, 55, 0.1);
	transition: all 0.3s;
}

.custom-option:hover,
.custom-option.selected {
	background-color: var(--gold);
	color: var(--dark-blue);
	font-weight: 500;
}

/* Hide the original select */
.custom-select-container select {
	display: none;
}

/* Custom scrollbar for dropdown */
.custom-options {
	scrollbar-width: thin;
	scrollbar-color: var(--gold) rgba(10, 25, 47, 0.5);
}

.custom-options::-webkit-scrollbar {
	width: 6px;
}

.custom-options::-webkit-scrollbar-track {
	background: rgba(10, 25, 47, 0.5);
	border-radius: 10px;
}

.custom-options::-webkit-scrollbar-thumb {
	background-color: var(--gold);
	border-radius: 10px;
}

.custom-options::-webkit-scrollbar-thumb:hover {
	background-color: var(--light-gold);
}
