:root {
	/* ------ Brand Colors ------ */
	--primary-blue: #12374c;
	--primary-orange: #fe9646;
	--secondary-orange: #e55f2f;
	--secondary-blue: #44a7c7;
	--primary-dark: #300d0d;
	--secondary-dark: #190303;
	--brand-cream: #ffeedc;

	/* ------ Backgrounds ------ */
	--background-light: #ffffff;
	--background-medium: #f8fafc;
	--background-glass: rgba(255, 255, 255, 0.75);

	/* ------ Links ------ */
	--link-normal: #ffffff;
	--link-hover: #fe9646;
	--link-hover-underline: linear-gradient(
		135deg,
		var(--primary-orange) 0%,
		var(--secondary-orange) 100%
	);
	--link-selected: #e55f2f;
	--link-footer: #bdccd4;
	--link-footer-hover: #ffffff;
	--social-footer-hover: linear-gradient(
		135deg,
		var(--primary-orange) 0%,
		var(--secondary-orange) 100%
	);

	/* ------ Text Colors ------ */
	--text-light: #ffffff;
	--text-primary: #4d4d4d;
	--text-secondary: #b3b3b3;
	--title-light: #ffeedc;
	--title-medium: #44a7c7;
	--title-dark: #12374c;
	--title-footer: #44a7c7;
	--text-muted: #999999;

	/* ------ Borders ------ */
	--border-light: #e5e7eb;
	--border-medium: #d1d5db;
	--border-dark: #111827;

	/* ------ Backgrounds ------ */
	--background: #ffffff;
	--background-secondary: #12374c;
	--background-glass: rgba(255, 255, 255, 0.75);

	/* ------ State Colors ------ */
	--success: #10b981;
	--warning: #f59e0b;
	--danger: #ef4444;
	--info: var(--secondary-blue);

	/* ------ Gradients ------ */
	--gradient-primary: linear-gradient(
		135deg,
		var(--primary-orange) 0%,
		var(--secondary-orange) 100%
	);
	--gradient-secondary: linear-gradient(
		135deg,
		var(--primary-blue) 0%,
		var(--secondary-blue) 100%
	);
	--gradient-hero: linear-gradient(
		135deg,
		#0a2b42 0%,
		#2563eb 50%,
		#00d4ff 100%
	);

	/* ------ Overlays ------ */
	--overlay-light: rgba(18, 55, 76, 0.08);
	--overlay-medium: rgba(18, 55, 76, 0.25);
	--overlay-dark: rgba(18, 55, 76, 0.75);
}

/* ------ Reset & Setups ------ */

* {
	margin: 0;
	padding: 0;
	box-sizing: border-box;
}

html {
	scroll-behavior: smooth;
	scroll-padding-top: 100px; /* Account for fixed header */
	font-size: 16px;
}

body {
	font-family: "Poppins", Tahoma, Geneva, Verdana, sans-serif;
	line-height: 1.6;
	color: var(--text-primary);
}

a {
	text-decoration: none;
	color: inherit;
	transition: color 0.3s ease-in-out;
}

button {
	font-family: inherit;
	cursor: pointer;
	border: none;
	background: none;
}

.container {
	max-width: 1200px;
	margin: 0 auto;
	padding: 0 2rem;
}

/* ------ Buttons ------ */

.btn {
	display: inline-block;
	text-align: center;
	text-decoration: none;
	border: none;
	outline: none;
	font-family: inherit;
	font-weight: 500;
	line-height: 1.5;
	white-space: nowrap;
	vertical-align: middle;
	user-select: none;
	-webkit-user-select: none;
}

.btn-buy {
	font-size: 1rem;
	text-decoration: none;
	color: var(--text-light);
	border: 2px solid transparent;
	border-radius: 6px;
	padding: 1rem 3rem;
	background: var(--gradient-primary);
	box-shadow: 0 4px 12px rgba(254, 150, 70, 0.25);
	transition: all 0.3s ease;
	cursor: pointer;
}

.btn-buy:hover {
	background: linear-gradient(
		135deg,
		var(--secondary-orange) 0%,
		var(--primary-orange) 100%
	);
	box-shadow: 0 8px 25px rgba(254, 150, 70, 0.4);
	transform: translateY(-3px);
}

.btn-learn {
	font-size: 1rem;
	text-decoration: none;
	color: var(--text-light);
	border: 2px solid var(--border-light);
	border-radius: 6px;
	padding: 1rem 3rem;
	background: rgba(255, 255, 255, 0.1);
	backdrop-filter: blur(8px);
	-webkit-backdrop-filter: blur(8px);
	transition: all 0.3s ease;
	cursor: pointer;
}

.btn-learn:hover {
	color: var(--text-light);
	background: var(--main-background);
	box-shadow: 0 8px 25px rgba(255, 255, 255, 0.25);
	transform: translateY(-2px);
}

.btn-outline {
	font-size: 1rem;
	text-decoration: none;
	color: var(--primary-blue);
	border: 2px solid var(--primary-blue);
	border-radius: 6px;
	padding: 1rem 3rem;
	background: transparent;
	transition: all 0.3s ease;
	cursor: pointer;
	position: relative;
	overflow: hidden;
}

.btn-outline::before {
	content: "";
	position: absolute;
	top: 0;
	left: -100%;
	width: 100%;
	height: 100%;
	background: var(--gradient-secondary);
	transition: left 0.3s ease;
	z-index: -1;
}

.btn-outline:hover {
	color: var(--text-light);
	border-color: var(--secondary-blue);
	transform: translateY(-2px);
	box-shadow: 0 8px 25px rgba(68, 167, 199, 0.25);
}

.btn-outline:hover::before {
	left: 0;
}

/* ------ Header ------ */

#header {
	position: fixed;
	top: 0;
	left: 0;
	right: 0;
	z-index: 1000;
	padding: 1rem 0;
	background: var(--primary-blue);
	box-shadow: 0 2px 20px var(--overlay-dark);
}

#header .nav {
	display: flex;
	justify-content: space-between;
	align-items: center;
}

#header .logo img {
	height: 75px;
}

#header .nav-menu {
	display: flex;
	justify-content: center;
	align-items: center;
	list-style: none;
	gap: 2rem;
}

#header .nav-menu a {
	position: relative;
	font-weight: 500;
	text-decoration: none;
	color: var(--link-normal);
	transition: all 0.3s ease;
}

#header .nav-menu a:hover {
	color: var(--link-hover);
}

#header .nav-menu a::after {
	content: "";
	position: absolute;
	bottom: -5px;
	left: 0;
	width: 0;
	height: 2px;
	background: var(--link-hover-underline);
	transition: width 0.3s ease;
}

#header .nav-menu a:hover::after {
	width: 100%;
}

#header .nav-menu .active {
	color: var(--link-selected);
}

/* --- Dropdown Menu --- */

#header .dropdown {
	position: relative;
}

#header .dropdown-toggle {
	display: flex;
	align-items: center;
	gap: 0.5rem;
}

#header .dropdown-toggle i {
	font-size: 0.8rem;
	transition: transform 0.3s ease;
}

#header .dropdown:hover .dropdown-toggle i {
	transform: rotate(180deg);
}

#header .dropdown-menu {
	position: absolute;
	top: 100%;
	left: 0;
	min-width: 220px;
	list-style: none;
	border: 1px solid rgba(255, 255, 255, 0.1);
	border-radius: 8px;
	background: rgba(18, 55, 76, 0.95);
	backdrop-filter: blur(10px);
	-webkit-backdrop-filter: blur(10px);
	box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
	transform: translateY(-10px);
	transition: all 0.3s ease;
	z-index: 1001;
	opacity: 0;
	visibility: hidden;
	padding: 0.5rem 0;
	margin: 0;
	margin-top: 0.25rem;
}

#header .dropdown:hover .dropdown-menu {
	opacity: 1;
	visibility: visible;
	transform: translateY(0);
}

#header .dropdown-menu li {
	margin: 0;
}

#header .dropdown-menu a {
	position: relative;
	display: block;
	text-decoration: none;
	color: var(--text-light);
	border-radius: 0;
	background: transparent;
	transition: all 0.3s ease;
	padding: 0.75rem 1.5rem;
	margin: 0;
}

#header .dropdown-menu a::after {
	content: "";
	position: absolute;
	bottom: 0;
	left: 50%;
	width: 0;
	height: 2px;
	background: var(--primary-orange);
	transition: all 0.3s ease;
	transform: translateX(-50%);
}

#header .dropdown-menu a:hover::after {
	width: 80%;
}

#header .dropdown-menu a:hover {
	color: var(--primary-orange);
	background: transparent;
}

#header .nav-divider {
	font-size: 1.2rem;
	color: var(--text-light);
	margin: 0 -1rem;
}

#header .login-icon {
	font-size: 1.2rem;
	border-radius: 50%;
	padding: 0.5rem;
	transition: all 0.3s ease;
}

#header.login-icon:hover {
	transform: translateY(-2px);
}

#header .nav-toggle {
	display: none;
	flex-direction: column;
	cursor: pointer;
}

#header .nav-toggle span {
	width: 25px;
	height: 3px;
	background: var(--text-light);
	margin: 3px 0;
	transition: 0.3s;
	display: block;
}

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

/* Additional mobile menu specificity for all pages */
body #header .nav-toggle {
	display: none;
	flex-direction: column;
	cursor: pointer;
	z-index: 1002;
}

body #header .nav-toggle span {
	width: 25px;
	height: 3px;
	background: var(--text-light);
	margin: 3px 0;
	transition: 0.3s;
	display: block;
}

@media (max-width: 991px) {
	body #header .nav-toggle {
		display: flex !important;
		z-index: 1002 !important;
	}

	body #header .nav-menu {
		position: fixed !important;
		top: 0 !important;
		left: -100% !important;
		width: 100% !important;
		height: 100vh !important;
		background: var(--primary-blue) !important;
		flex-direction: column !important;
		justify-content: center !important;
		align-items: center !important;
		gap: 2rem !important;
		transition: left 0.3s ease !important;
		z-index: 1001 !important;
	}

	body #header .nav-menu.active {
		left: 0 !important;
	}

	/* Prevent content overlap and body scroll when mobile menu is active */
	body:has(#header .nav-menu.active) {
		overflow: hidden !important;
	}

	/* Alternative approach for browsers that don't support :has() */
	body.menu-open {
		overflow: hidden !important;
	}

	/* Ensure mobile menu appears above all content */
	body #header .nav-menu {
		z-index: 9999 !important;
	}

	body #header .nav-toggle.active span:nth-child(1) {
		transform: rotate(-45deg) translate(-5px, 6px) !important;
	}

	body #header .nav-toggle.active span:nth-child(2) {
		opacity: 0 !important;
	}

	body #header .nav-toggle.active span:nth-child(3) {
		transform: rotate(45deg) translate(-5px, -6px) !important;
	}
}

/* ------ Footer ------ */

#footer {
	position: relative;
	border-top: 1px solid;
	border-image: linear-gradient(to right, #44a7c7, #12374c) 1;
	background: linear-gradient(
		135deg,
		#12374c 0%,
		#07202b 25%,
		#12374c 50%,
		#07202b 75%,
		#12374c 100%
	);
	padding: 4rem 0 2rem;
}

#footer .footer-content {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 3rem;
	margin-bottom: 2rem;
}

/* --- Footer Logo --- */

#footer .footer-logo {
	margin-bottom: 1.5rem;
}

#footer .footer-logo img {
	height: 60px;
	width: auto;
	transition: all 0.3s ease;
}

#footer .footer-logo img:hover {
	transform: translateY(-3px);
	filter: brightness(1.1) drop-shadow(0 8px 15px rgba(68, 167, 199, 0.4));
	cursor: pointer;
}

/* --- Footer Sections --- */

#footer .footer-section h4 {
	font-size: 1.1rem;
	font-weight: 600;
	color: var(--title-footer);
	margin-bottom: 1.5rem;
}

#footer .footer-section p {
	font-size: 0.9rem;
	line-height: 1.8rem;
	color: var(--text-light);
}

#footer .footer-section ul {
	list-style: none;
}

#footer .footer-section ul li {
	margin-bottom: 1rem;
}

#footer .footer-section ul li a {
	display: flex;
	align-items: center;
	font-size: 0.9rem;
	color: var(--link-footer);
	gap: 0.75rem;
}

#footer .footer-section ul li a:hover {
	color: var(--link-footer-hover);
}

/* --- Social Links --- */

#footer .social-links {
	display: flex;
	flex-wrap: wrap;
	gap: 2rem 1rem;
}

#footer .social-links a {
	display: flex;
	align-items: center;
	border: 1px solid var(--link-footer);
	border-radius: 8px;
	background: rgba(255, 255, 255, 0.1);
	backdrop-filter: blur(8px);
	-webkit-backdrop-filter: blur(8px);
	transition: all 0.3s ease;
	gap: 0.75rem;
	padding: 1rem;
}

#footer .social-links a:hover {
	border-color: transparent;
	background: var(--social-footer-hover);
	box-shadow: 0 8px 25px rgba(254, 150, 70, 0.25);
	transform: translateY(-2px);
}

#footer .social-links a i {
	width: 16px;
	font-size: 1rem;
	text-align: center;
	color: var(--link-footer);
}

#footer .social-links a:hover i {
	color: var(--link-footer-hover);
}

/* --- Footer Bottom --- */

.footer-bottom {
	text-align: center;
	color: var(--text-secondary);
	border-top: 1px solid var(--secondary-blue);
	padding: 2rem 0;
}

.footer-bottom a {
	color: var(--text-secondary);
	text-decoration: none;
	transition: color 0.3s ease;
}

.footer-bottom a:hover {
	color: var(--link-footer-hover);
}

/* ------ Responsive Design ------ */

/* Tablet and Mobile Large (768px - 991px) */
@media (max-width: 991px) {
	#header .nav-toggle {
		display: flex;
		z-index: 1002;
	}

	#header .nav-menu {
		position: fixed;
		top: 0;
		left: -100%;
		width: 100%;
		height: 100vh;
		flex-direction: column;
		justify-content: center;
		align-items: center;
		gap: 2rem;
		background: var(--primary-blue);
		transition: left 0.3s ease;
		z-index: 1001;
	}

	#header .nav-menu.active {
		left: 0;
	}

	#header .nav-menu li {
		opacity: 0;
		transform: translateY(20px);
		animation: fadeInUp 0.3s ease forwards;
	}

	#header .nav-menu.active li {
		animation-delay: 0.1s;
	}

	#header .nav-menu.active li:nth-child(2) {
		animation-delay: 0.2s;
	}

	#header .nav-menu.active li:nth-child(3) {
		animation-delay: 0.3s;
	}

	#header .nav-menu.active li:nth-child(4) {
		animation-delay: 0.4s;
	}

	#header .nav-menu.active li:nth-child(5) {
		animation-delay: 0.5s;
	}

	#header .nav-menu a {
		font-size: 1.5rem;
		text-align: center;
		padding: 1rem 2rem;
		border-radius: 8px;
		transition: all 0.3s ease;
	}

	#header .nav-divider {
		display: none;
	}

	#header .login-icon {
		font-size: 2rem;
		padding: 1rem;
	}

	/* Dropdown mobile */
	#header .dropdown {
		width: 100%;
	}

	#header .dropdown-toggle {
		justify-content: center;
		width: 100%;
		color: var(--text-light);
	}

	#header .dropdown-menu {
		position: static;
		max-height: 0;
		border-radius: 8px;
		background: rgba(0, 0, 0, 0.2);
		backdrop-filter: blur(10px);
		-webkit-backdrop-filter: blur(10px);
		box-shadow: inset 0 1px 0 rgba(0, 0, 0, 0.5);
		transition: all 0.3s ease;
		transform: none;
		opacity: 0;
		visibility: hidden;
		overflow: hidden;
		padding: 0;
		margin-top: 1rem;
	}

	#header .dropdown.active .dropdown-menu {
		max-height: 200px;
		padding: 1rem 0;
		opacity: 1;
		visibility: visible;
	}

	#header .dropdown.active .dropdown-toggle i {
		transform: rotate(180deg);
	}

	#header .dropdown-menu a {
		width: 100%;
		display: block;
		font-size: 1.2rem;
		color: var(--text-secondary);
		text-align: center;
		padding: 0.75rem 1.5rem;
	}

	/* Hamburger animation */
	#header .nav-toggle.active span:nth-child(1) {
		transform: rotate(-45deg) translate(-5px, 6px);
	}

	#header .nav-toggle.active span:nth-child(2) {
		opacity: 0;
	}

	#header .nav-toggle.active span:nth-child(3) {
		transform: rotate(45deg) translate(-5px, -6px);
	}

	/* --- Footer --- */

	#footer .footer-content {
		grid-template-columns: repeat(2, 1fr);
		gap: 2.5rem;
	}
}

/* Mobile (767px and under) */
@media (max-width: 767px) {
	body {
		padding-top: 40px;
	}

	#footer {
		padding: 3rem 0 1.5rem;
	}

	#footer .footer-content {
		grid-template-columns: 1fr;
		gap: 2rem;
		text-align: center;
	}

	#footer .footer-logo {
		margin-bottom: 1rem;
	}

	#footer .footer-logo img {
		height: 50px;
	}

	#footer .footer-section h4 {
		font-size: 1rem;
		margin-bottom: 1rem;
	}

	#footer .footer-section p {
		font-size: 0.85rem;
		line-height: 1.6rem;
		max-width: 400px;
		margin: 0 auto;
	}

	#footer .footer-section ul li a {
		justify-content: center;
		font-size: 0.85rem;
	}

	#footer .social-links {
		justify-content: center;
		gap: 1rem;
	}

	#footer .social-links a {
		padding: 0.75rem;
		gap: 0.5rem;
	}

	.footer-bottom {
		padding: 1.5rem 0;
		font-size: 0.85rem;
	}
}

/* Mobile Small (575px and under) */
@media (max-width: 575px) {
	#footer {
		padding: 2.5rem 0 1rem;
	}

	#footer .footer-content {
		gap: 1.5rem;
	}

	#footer .footer-logo img {
		height: 90px;
	}

	#footer .footer-section h4 {
		font-size: 0.95rem;
		margin-bottom: 0.75rem;
	}

	#footer .footer-section p {
		font-size: 0.8rem;
	}

	#footer .footer-section ul li {
		margin-bottom: 0.75rem;
	}

	#footer .footer-section ul li a {
		font-size: 0.8rem;
	}

	#footer .social-links {
		gap: 0.75rem;
	}

	#footer .social-links a {
		padding: 0.6rem;
		gap: 0.4rem;
		font-size: 0.85rem;
	}

	#footer .social-links a i {
		font-size: 0.9rem;
	}

	.footer-bottom {
		padding: 1rem 0;
		font-size: 0.8rem;
	}
}

/* Mobile Extra Small (480px and under) */
@media (max-width: 480px) {
	#footer .social-links {
		align-items: center;
		gap: 0.5rem;
	}

	#footer .social-links a {
		max-width: 200px;
		justify-content: center;
	}

	.footer-bottom {
		font-size: 0.75rem;
		line-height: 1.4;
	}
}
