/* =========== GLOBAL STYLES =========== */
:root {
	/* Colors */
	--background-color: #0d1b2a;
	--text-color: #e0e1dd;
	--primary-accent-color: #00a8e8;
	--secondary-color: #415a77;
	--border-color: #778da9;

	/* Fonts */
	--font-family-headings: 'Poppins', sans-serif;
	--font-family-body: 'Roboto', sans-serif;

	/* Other */
	--header-height: 4.5rem;
	--container-width: 1200px;
	--border-radius: 8px;
	--transition-duration: 0.3s;
}

/* Base Reset */
*,
*::before,
*::after {
	box-sizing: border-box;
	margin: 0;
	padding: 0;
}

html {
	scroll-behavior: smooth;
}

body {
	font-family: var(--font-family-body);
	font-size: 16px;
	line-height: 1.6;
	background-color: var(--background-color);
	color: var(--text-color);
	overflow-x: hidden;
}

ul {
	list-style: none;
}

a {
	text-decoration: none;
	color: inherit;
}

img {
	max-width: 100%;
	height: auto;
	display: block;
}

/* Utility Classes */
.container {
	max-width: var(--container-width);
	margin-left: auto;
	margin-right: auto;
	padding-left: 1rem;
	padding-right: 1rem;
}

/* =========== HEADER =========== */
.header {
	position: fixed;
	top: 0;
	left: 0;
	width: 100%;
	z-index: 100;
	background-color: rgba(13, 27, 42, 0.8);
	backdrop-filter: blur(10px);
	transition: background-color var(--transition-duration) ease;
	border-bottom: 1px solid transparent;
}

.header--scrolled {
	border-bottom: 1px solid var(--secondary-color);
}

.header__container {
	display: flex;
	justify-content: space-between;
	align-items: center;
	height: var(--header-height);
}

/* Logo */
.logo {
	display: flex;
	align-items: center;
	gap: 0.75rem;
	font-family: var(--font-family-headings);
	font-weight: 700;
	font-size: 1.5rem;
	color: var(--primary-accent-color);
}

.logo__svg {
	color: var(--primary-accent-color);
	transition: transform var(--transition-duration) ease;
}

.logo:hover .logo__svg {
	transform: rotate(90deg);
}

.logo__text {
	color: var(--text-color);
}

/* Navigation */
.nav__list {
	display: flex;
	align-items: center;
	gap: 2rem;
}

.nav__link {
	position: relative;
	font-family: var(--font-family-headings);
	font-weight: 500;
	color: var(--text-color);
	transition: color var(--transition-duration) ease;
}

.nav__link::after {
	content: '';
	position: absolute;
	bottom: -5px;
	left: 0;
	width: 0;
	height: 2px;
	background-color: var(--primary-accent-color);
	transition: width var(--transition-duration) ease;
}

.nav__link:hover {
	color: var(--primary-accent-color);
}

.nav__link:hover::after {
	width: 100%;
}

/* Burger Menu */
.header__burger-btn {
	display: none;
	background: none;
	border: none;
	color: var(--text-color);
	cursor: pointer;
}

/* Mobile Menu Styles */
@media (max-width: 992px) {
	.nav {
		position: fixed;
		top: var(--header-height);
		right: -100%;
		width: 70%;
		height: calc(100vh - var(--header-height));
		background-color: var(--background-color);
		padding: 2rem;
		transition: right var(--transition-duration) ease-in-out;
		border-left: 1px solid var(--secondary-color);
	}

	.nav--open {
		right: 0;
	}

	.nav__list {
		flex-direction: column;
		align-items: flex-start;
		gap: 1.5rem;
	}

	.header__burger-btn {
		display: block;
	}
}

/* =========== FOOTER =========== */
.footer {
	padding: 4rem 0 2rem;
	background-color: #08121c;
	border-top: 1px solid var(--secondary-color);
}

.footer__container {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
	gap: 2rem;
}

.footer__column .logo {
	margin-bottom: 1rem;
}

.footer__copyright {
	font-size: 0.9rem;
	color: var(--border-color);
}

.footer__title {
	font-family: var(--font-family-headings);
	font-size: 1.25rem;
	margin-bottom: 1rem;
	color: var(--primary-accent-color);
}

.footer__list {
	display: flex;
	flex-direction: column;
	gap: 0.75rem;
}

.footer__link {
	display: inline-flex;
	align-items: center;
	gap: 0.5rem;
	color: var(--text-color);
	transition: color var(--transition-duration) ease,
		transform var(--transition-duration) ease;
}

.footer__link:hover {
	color: var(--primary-accent-color);
	transform: translateX(5px);
}

.footer__icon {
	width: 18px;
	height: 18px;
	color: var(--border-color);
}

.footer__list--contacts .footer__link {
	cursor: default;
}

.footer__list--contacts .footer__link:hover {
	transform: none;
}

.footer__list--contacts a.footer__link:hover {
	color: var(--primary-accent-color);
	transform: translateX(5px);
	cursor: pointer;
}

/* =========== BUTTONS =========== */
.btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 0.5rem;
	padding: 0.9rem 2rem;
	border-radius: var(--border-radius);
	font-family: var(--font-family-headings);
	font-weight: 500;
	font-size: 1rem;
	border: 2px solid transparent;
	cursor: pointer;
	transition: all var(--transition-duration) ease;
}

.btn--primary {
	background-color: var(--primary-accent-color);
	color: var(--background-color);
	animation: pulse 2s infinite;
}

.btn--primary:hover {
	background-color: transparent;
	border-color: var(--primary-accent-color);
	color: var(--primary-accent-color);
	animation-play-state: paused;
	transform: translateY(-3px);
}

.btn__icon {
	transition: transform var(--transition-duration) ease;
}

.btn--primary:hover .btn__icon {
	transform: translateX(5px);
}

/* =========== HERO SECTION =========== */
.hero {
	padding-top: calc(var(--header-height) + 4rem);
	padding-bottom: 5rem;
	overflow: hidden;
}

.hero__container {
	display: grid;
	grid-template-columns: 1fr 1fr;
	align-items: center;
	gap: 3rem;
}

.hero__content {
	max-width: 550px;
}

.hero__title {
	font-family: var(--font-family-headings);
	font-size: 2.5rem;
	line-height: 1.2;
	margin-bottom: 1.5rem;
}

.hero__title--cursor {
	color: var(--primary-accent-color);
	animation: blink 0.7s infinite;
}

.hero__description {
	font-size: 1.1rem;
	margin-bottom: 2.5rem;
	color: var(--border-color);
}

.hero__note {
	margin-top: 1rem;
	font-size: 0.9rem;
	color: var(--secondary-color);
}

.hero__image-wrapper {
	position: relative;
}

.hero__image {
	border-radius: var(--border-radius);
	box-shadow: 0 10px 30px rgba(0, 168, 232, 0.1);
}

/* Animations */
@keyframes pulse {
	0% {
		box-shadow: 0 0 0 0 rgba(0, 168, 232, 0.7);
	}
	70% {
		box-shadow: 0 0 0 10px rgba(0, 168, 232, 0);
	}
	100% {
		box-shadow: 0 0 0 0 rgba(0, 168, 232, 0);
	}
}

@keyframes blink {
	50% {
		opacity: 0;
	}
}

/* Responsive */
@media (max-width: 992px) {
	.hero__container {
		grid-template-columns: 1fr;
		text-align: center;
	}

	.hero__content {
		max-width: 100%;
		order: 2;
	}

	.hero__image-wrapper {
		order: 1;
		margin-bottom: 2rem;
	}

	.hero__title {
		font-size: 2rem;
	}
}

@media (max-width: 576px) {
	.hero__title {
		font-size: 1.5rem;
	}

	.hero__description {
		font-size: 1rem;
	}
}

/* =========== SECTION STYLES =========== */
.section {
	padding-top: 5rem;
	padding-bottom: 5rem;
}

.section__header {
	max-width: 700px;
	margin: 0 auto 3rem auto;
	text-align: center;
}

.section__title {
	font-family: var(--font-family-headings);
	font-size: 2.5rem;
	line-height: 1.3;
	margin-bottom: 1rem;
	color: var(--primary-accent-color);
}

.section__subtitle {
	font-size: 1.1rem;
	color: var(--border-color);
}

/* =========== ABOUT SECTION =========== */
.about__grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
	gap: 2rem;
}

.about__item {
	background-color: #172a46;
	padding: 2rem;
	border-radius: var(--border-radius);
	border: 1px solid var(--secondary-color);
	text-align: center;
	transition: transform var(--transition-duration) ease,
		box-shadow var(--transition-duration) ease;
}

.about__item:hover {
	transform: translateY(-10px);
	box-shadow: 0 10px 20px rgba(0, 168, 232, 0.1);
}

.about__item-icon {
	display: inline-flex;
	padding: 1rem;
	background-color: var(--primary-accent-color);
	border-radius: 50%;
	margin-bottom: 1.5rem;
}

.about__item-icon i {
	color: var(--background-color);
	width: 32px;
	height: 32px;
}

.about__item-title {
	font-family: var(--font-family-headings);
	font-size: 1.5rem;
	margin-bottom: 0.75rem;
}

.about__item-description {
	color: var(--border-color);
}

/* Responsive */
@media (max-width: 576px) {
	.section {
		padding-top: 4rem;
		padding-bottom: 4rem;
	}

	.section__title {
		font-size: 2rem;
	}
}

/* =========== BUTTONS (Secondary) =========== */
.btn--secondary {
	background-color: transparent;
	border: 2px solid var(--secondary-color);
	color: var(--text-color);
}

.btn--secondary:hover {
	background-color: var(--secondary-color);
	border-color: var(--secondary-color);
	transform: translateY(-3px);
}

/* =========== HOW IT WORKS SECTION =========== */
.how-it-works {
	background-color: #08121c; /* A slightly different shade */
}

.how-it-works__timeline {
	position: relative;
	display: flex;
	flex-direction: column;
	gap: 4rem;
}

/* The vertical connecting line */
.how-it-works__timeline::before {
	content: '';
	position: absolute;
	top: 0;
	left: 50%;
	transform: translateX(-50%);
	width: 2px;
	height: 100%;
	background-color: var(--secondary-color);
}

.how-it-works__item {
	display: grid;
	grid-template-columns: 1fr 1fr;
	align-items: center;
	gap: 3rem;
	position: relative;
}

.how-it-works__item-reversed {
	grid-template-areas: 'image content';
}

.how-it-works__item-reversed .how-it-works__content {
	grid-area: content;
}

.how-it-works__item-reversed .how-it-works__image-wrapper {
	grid-area: image;
}

/* The circle on the timeline */
.how-it-works__item::after {
	content: '';
	position: absolute;
	top: 50%;
	left: 50%;
	transform: translate(-50%, -50%);
	width: 16px;
	height: 16px;
	background-color: var(--primary-accent-color);
	border-radius: 50%;
	border: 3px solid var(--background-color);
	z-index: 1;
}

.how-it-works__step-number {
	font-family: var(--font-family-headings);
	font-size: 3rem;
	font-weight: 700;
	color: var(--secondary-color);
	margin-bottom: 0.5rem;
	display: block;
}

.how-it-works__title {
	font-family: var(--font-family-headings);
	font-size: 2rem;
	margin-bottom: 1rem;
}

.how-it-works__description {
	color: var(--border-color);
	margin-bottom: 1.5rem;
}

.how-it-works__image {
	border-radius: var(--border-radius);
	width: 100%;
}

/* Responsive */
@media (max-width: 992px) {
	.how-it-works__timeline::before,
	.how-it-works__item::after {
		display: none; /* Hide timeline on smaller screens */
	}

	.how-it-works__item,
	.how-it-works__item--reversed {
		grid-template-columns: 1fr;
		grid-template-areas: unset;
		text-align: center;
	}

	.how-it-works__item-reversed .how-it-works__content,
	.how-it-works__item-reversed .how-it-works__image-wrapper {
		grid-area: unset;
	}

	.how-it-works__item .how-it-works__image-wrapper {
		margin-top: 2rem; /* Add space between text and image */
	}

	.how-it-works__item--reversed .how-it-works__content {
		order: 2; /* Ensure text is below image */
	}
}

/* =========== FEATURES SECTION =========== */
.features__wrapper {
	display: grid;
	grid-template-columns: 300px 1fr;
	gap: 3rem;
}

.features__tabs {
	display: flex;
	flex-direction: column;
	gap: 0.5rem;
}

.features__tab-btn {
	display: flex;
	align-items: center;
	gap: 1rem;
	width: 100%;
	padding: 1rem;
	background-color: transparent;
	border: 1px solid var(--secondary-color);
	border-radius: var(--border-radius);
	color: var(--text-color);
	font-family: var(--font-family-headings);
	font-size: 1.1rem;
	cursor: pointer;
	transition: background-color var(--transition-duration) ease,
		color var(--transition-duration) ease;
}

.features__tab-btn:hover {
	background-color: var(--secondary-color);
}

.features__tab-btn--active {
	background-color: var(--primary-accent-color);
	color: var(--background-color);
	border-color: var(--primary-accent-color);
}
.features__tab-btn--active:hover {
	background-color: #0095cf; /* Slightly darker on hover */
}

.features__tab-icon {
	width: 24px;
	height: 24px;
}

.features__content-panel {
	display: none; /* Hidden by default */
	grid-template-columns: 1fr 1fr;
	align-items: center;
	gap: 2rem;
}

.features__content-panel--active {
	display: grid; /* Shown when active */
	animation: fadeIn 0.5s ease-in-out;
}

.features__content-text h3 {
	font-family: var(--font-family-headings);
	font-size: 1.8rem;
	margin-bottom: 1rem;
}

.features__content-text p {
	color: var(--border-color);
	margin-bottom: 1.5rem;
}

.features__list {
	display: flex;
	flex-direction: column;
	gap: 0.75rem;
}

.features__list li {
	display: flex;
	align-items: center;
	gap: 0.5rem;
}

.features__list-icon {
	color: var(--primary-accent-color);
	width: 20px;
	height: 20px;
}

.features__content-image {
	border-radius: var(--border-radius);
	width: 100%;
}

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

/* Responsive */
@media (max-width: 992px) {
	.features__wrapper {
		grid-template-columns: 1fr;
	}

	.features__tabs {
		flex-direction: row;
		overflow-x: auto;
		padding-bottom: 1rem; /* for scrollbar */
	}

	.features__tab-btn {
		flex-shrink: 0; /* prevent shrinking */
	}
}

@media (max-width: 768px) {
	.features__content-panel {
		grid-template-columns: 1fr;
	}

	.features__content-image-wrapper {
		order: -1; /* Image on top */
		margin-bottom: 2rem;
	}
}

/* =========== INCOME SECTION =========== */
.income {
	background-color: #08121c;
}

.income__calculator {
	max-width: 800px;
	margin: 0 auto;
	background-color: var(--background-color);
	padding: 2.5rem;
	border-radius: var(--border-radius);
	border: 1px solid var(--secondary-color);
}

.income__slider-wrapper {
	margin-bottom: 2.5rem;
}

.income__slider-label {
	display: block;
	text-align: center;
	font-size: 1.2rem;
	margin-bottom: 1.5rem;
}

#investment-amount {
	font-family: var(--font-family-headings);
	color: var(--primary-accent-color);
	font-weight: 700;
	font-size: 1.5rem;
}

/* Custom Slider Styles */
.income__slider {
	-webkit-appearance: none;
	appearance: none;
	width: 100%;
	height: 8px;
	background: var(--secondary-color);
	outline: none;
	border-radius: 4px;
}

.income__slider::-webkit-slider-thumb {
	-webkit-appearance: none;
	appearance: none;
	width: 24px;
	height: 24px;
	background: var(--primary-accent-color);
	cursor: pointer;
	border-radius: 50%;
	border: 4px solid var(--background-color);
	box-shadow: 0 0 5px rgba(0, 168, 232, 0.5);
}

.income__slider::-moz-range-thumb {
	width: 24px;
	height: 24px;
	background: var(--primary-accent-color);
	cursor: pointer;
	border-radius: 50%;
	border: 4px solid var(--background-color);
	box-shadow: 0 0 5px rgba(0, 168, 232, 0.5);
}

.income__slider-range {
	display: flex;
	justify-content: space-between;
	margin-top: 0.5rem;
	font-size: 0.9rem;
	color: var(--border-color);
}

.income__results {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 1.5rem;
	margin-bottom: 2.5rem;
}

.income__card {
	background-color: #08121c;
	padding: 1.5rem;
	border-radius: var(--border-radius);
	text-align: center;
	border: 1px solid transparent;
	transition: transform var(--transition-duration) ease,
		border-color var(--transition-duration) ease;
}

.income__card:hover {
	transform: translateY(-5px);
	border-color: var(--primary-accent-color);
}

.income__card-title {
	font-size: 1rem;
	color: var(--border-color);
	margin-bottom: 0.5rem;
}

.income__card-value {
	font-family: var(--font-family-headings);
	font-size: 2rem;
	font-weight: 700;
	color: var(--text-color);
}

.income__cta {
	text-align: center;
}

/* Responsive */
@media (max-width: 768px) {
	.income__results {
		grid-template-columns: 1fr;
	}

	.income__card-value {
		font-size: 1.8rem;
	}
}

/* =========== CONTACT SECTION =========== */
.contact__container {
	display: grid;
	grid-template-columns: 1fr 1fr;
	align-items: center;
	gap: 3rem;
	background-color: #172a46;
	padding: 3rem;
	border-radius: var(--border-radius);
}

/* Form Styles */
.contact__form-wrapper {
	position: relative;
}

.form__group {
	position: relative;
	margin-bottom: 1.5rem;
}

.form__input {
	width: 100%;
	padding: 0.8rem 1rem;
	background-color: var(--background-color);
	border: 1px solid var(--secondary-color);
	border-radius: var(--border-radius);
	color: var(--text-color);
	font-size: 1rem;
	outline: none;
	transition: border-color var(--transition-duration) ease;
}

.form__input:focus,
.form__input:not(:placeholder-shown) {
	border-color: var(--primary-accent-color);
}

.form__label {
	position: absolute;
	top: 50%;
	left: 1rem;
	transform: translateY(-50%);
	background-color: var(--background-color);
	padding: 0 0.25rem;
	color: var(--border-color);
	transition: all var(--transition-duration) ease;
	pointer-events: none;
}

.form__input:focus + .form__label,
.form__input:not(:placeholder-shown) + .form__label {
	top: 0;
	font-size: 0.8rem;
	color: var(--primary-accent-color);
}

.form__group--checkbox {
	display: flex;
	align-items: flex-start;
	gap: 0.75rem;
	margin-bottom: 2rem;
}

.form__checkbox {
	margin-top: 4px;
	accent-color: var(--primary-accent-color);
}

.form__checkbox-label {
	font-size: 0.9rem;
	color: var(--border-color);
}

.form__checkbox-label a {
	color: var(--primary-accent-color);
	text-decoration: underline;
}

.form__button {
	width: 100%;
}

/* Success Message */
.contact__success-message {
	display: none; /* Hidden by default */
	text-align: center;
	padding: 2rem;
}

.contact__success-icon {
	width: 60px;
	height: 60px;
	color: #28a745; /* Success Green */
	margin-bottom: 1rem;
}

.contact__success-message h3 {
	font-family: var(--font-family-headings);
	font-size: 1.8rem;
	margin-bottom: 0.5rem;
}

/* Responsive */
@media (max-width: 992px) {
	.contact__container {
		grid-template-columns: 1fr;
		padding: 2rem;
	}

	.contact__text {
		text-align: center;
	}
}

/* =========== COOKIE POPUP =========== */
.cookie-popup {
	position: fixed;
	bottom: -100%; /* Initially hidden */
	left: 50%;
	transform: translateX(-50%);
	width: calc(100% - 2rem);
	max-width: 800px;
	background-color: #172a46;
	padding: 1.5rem;
	border-radius: var(--border-radius);
	border: 1px solid var(--secondary-color);
	box-shadow: 0 -5px 20px rgba(0, 0, 0, 0.2);
	display: flex;
	justify-content: space-between;
	align-items: center;
	gap: 1.5rem;
	z-index: 200;
	transition: bottom 0.5s ease-in-out;
}

.cookie-popup--show {
	bottom: 1rem; /* Shown state */
}

.cookie-popup__text {
	font-size: 0.9rem;
	color: var(--border-color);
}

.cookie-popup__text a {
	color: var(--primary-accent-color);
	text-decoration: underline;
}

.cookie-popup__btn {
	padding: 0.6rem 1.2rem;
	flex-shrink: 0; /* Prevent button from shrinking */
}

@media (max-width: 768px) {
	.cookie-popup {
		flex-direction: column;
		text-align: center;
	}
}

/* =========== POLICY PAGES STYLES =========== */
.pages .container {
	max-width: 800px;
	padding-top: calc(var(--header-height) + 3rem);
	padding-bottom: 5rem;
}

.pages h1,
.pages h2 {
	font-family: var(--font-family-headings);
	color: var(--primary-accent-color);
	margin-bottom: 1rem;
}

.pages h1 {
	font-size: 1.5rem;
	padding-bottom: 1rem;
	border-bottom: 1px solid var(--secondary-color);
	margin-bottom: 2rem;
}

.pages h2 {
	font-size: 1.5rem;
	margin-top: 2.5rem;
}

.pages p,
.pages li {
	font-size: 1.1rem;
	line-height: 1.7;
	color: var(--border-color);
	margin-bottom: 1rem;
}

.pages ul {
	list-style: disc;
	padding-left: 1.5rem;
}

.pages a {
	color: var(--primary-accent-color);
	text-decoration: underline;
	transition: color var(--transition-duration) ease;
}

.pages a:hover {
	color: var(--text-color);
}

.pages strong {
	font-weight: 700;
	color: var(--text-color);
}
