/* ======== GLOBAL STYLES ======== */
:root {
	/* Colors */
	--background-color: #f9fafb;
	--text-color: #111827;
	--secondary-text-color: #6b7280;
	--accent-color: #4f46e5;
	--accent-color-hover: #4338ca;
	--border-color: #e5e7eb;

	/* Typography */
	--font-family-base: 'Inter', sans-serif;
	--font-family-heading: 'Plus Jakarta Sans', sans-serif;

	/* Spacing */
	--container-width: 1120px;
	--container-padding: 1rem;
}

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

html {
	scroll-behavior: smooth;
}

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

h1,
h2,
h3 {
	font-family: var(--font-family-heading);
	font-weight: 700;
}

ul {
	list-style: none;
}

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

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

.container {
	max-width: var(--container-width);
	margin-left: auto;
	margin-right: auto;
	padding-left: var(--container-padding);
	padding-right: var(--container-padding);
}

/* ======== LOGO ======== */
.logo {
	display: inline-flex;
	align-items: center;
	gap: 0.75rem;
	font-family: var(--font-family-heading);
	font-weight: 700;
	font-size: 1.25rem;
	color: var(--text-color);
}

.logo__img {
	width: 32px;
	height: 32px;
}

/* ======== HEADER ======== */
.header {
	background-color: var(--background-color);
	position: fixed;
	top: 0;
	left: 0;
	width: 100%;
	z-index: 100;
	border-bottom: 1px solid var(--border-color);
	transition: background-color 0.3s ease;
}

.header__container {
	display: flex;
	justify-content: space-between;
	align-items: center;
	height: 5rem; /* 80px */
}

.header__nav {
	display: none; /* Hidden on mobile */
}

.header__nav-list {
	display: flex;
	align-items: center;
	gap: 2rem;
}

.header__nav-link {
	font-weight: 500;
	color: var(--secondary-text-color);
	transition: color 0.3s ease;
	padding: 0.5rem 0;
}

.header__nav-link:hover {
	color: var(--text-color);
}

.header__nav-link--button {
	background-color: var(--accent-color);
	color: #fff;
	padding: 0.6rem 1.2rem;
	border-radius: 6px;
	transition: background-color 0.3s ease;
}

.header__nav-link--button:hover {
	background-color: var(--accent-color-hover);
	color: #fff;
}

.header__burger {
	background: none;
	border: none;
	cursor: pointer;
	padding: 0.5rem;
	display: block; /* Shown on mobile */
	z-index: 102;
	position: relative;
	transition: transform 0.3s ease;
}

.header__burger.active {
	transform: rotate(90deg);
}

/* ======== MOBILE NAVIGATION ======== */
@media screen and (max-width: 767px) {
	.header__nav {
		position: fixed;
		top: 0;
		left: 0;
		width: 100%;
		height: 100vh;
		background-color: rgba(249, 250, 251, 0.98);
		backdrop-filter: blur(8px);
		display: flex;
		align-items: center;
		justify-content: center;
		transform: translateX(100%);
		opacity: 0;
		visibility: hidden;
		transition: all 0.3s ease;
		z-index: 101;
	}

	.header__nav.active {
		transform: translateX(0);
		opacity: 1;
		visibility: visible;
	}

	.header__nav-list {
		flex-direction: column;
		gap: 2rem;
		text-align: center;
	}

	.header__nav-link {
		font-size: 1.25rem;
		padding: 1rem;
	}

	.header__nav-link--button {
		padding: 1rem 2rem;
		font-size: 1.25rem;
	}
}

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

.footer__container {
	display: grid;
	gap: 2.5rem;
	padding-bottom: 3rem;
}

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

.footer__description {
	font-size: 0.9rem;
	max-width: 300px;
}

.footer__title {
	font-size: 1rem;
	font-weight: 700;
	color: var(--text-color);
	margin-bottom: 1rem;
}

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

.footer__link {
	font-size: 0.9rem;
	transition: color 0.3s ease;
	display: inline-flex;
	align-items: center;
	gap: 0.5rem;
}

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

.footer__icon {
	width: 16px;
	height: 16px;
}

.footer__address {
	display: flex;
	align-items: flex-start;
	gap: 0.5rem;
	font-size: 0.9rem;
	line-height: 1.5;
}

.footer__bottom {
	border-top: 1px solid var(--border-color);
	text-align: center;
	padding: 1.5rem var(--container-padding);
	font-size: 0.8rem;
}

/* ======== RESPONSIVE ======== */
/* For tablets and small desktops */
@media screen and (min-width: 768px) {
	.header__burger {
		display: none;
	}

	.header__nav {
		display: block;
	}

	.footer__container {
		grid-template-columns: repeat(2, 1fr);
	}
}

/* For large desktops */
@media screen and (min-width: 1024px) {
	.footer__container {
		grid-template-columns: 2fr 1fr 1fr 1.5fr;
		gap: 3rem;
	}
}

/* ======== HERO SECTION ======== */
.hero {
	padding-top: 10rem; /* 80px header + 80px extra space */
	padding-bottom: 6rem;
	overflow: hidden; /* To hide the initial state of animated elements */
}

.hero__container {
	display: grid;
	align-items: center;
	gap: 4rem;
}

.hero__content {
	text-align: center;
}

.hero__title {
	font-size: 1.5rem;
	line-height: 1.2;
	margin-bottom: 1.5rem;
	color: var(--text-color);
}

/* --- Title Animation Styles --- */
.hero__title span {
	display: inline-block;
	overflow: hidden; /* Hides the text before animation */
}

.hero__title span span {
	display: inline-block;
	transform: translateY(110%);
	transition: transform 0.8s cubic-bezier(0.2, 1, 0.3, 1);
	transition-delay: var(--delay);
}

.hero__title.is-animated span span {
	transform: translateY(0);
}
/* --- End Animation Styles --- */

.hero__description {
	font-size: 1.125rem;
	color: var(--secondary-text-color);
	max-width: 600px;
	margin: 0 auto 2.5rem auto;
}

.hero__cta {
	display: inline-block;
	background-color: var(--accent-color);
	color: #fff;
	padding: 1rem 2rem;
	border-radius: 8px;
	font-weight: 500;
	font-size: 1rem;
	transition: background-color 0.3s ease, transform 0.3s ease;
}

.hero__cta:hover {
	background-color: var(--accent-color-hover);
	transform: translateY(-3px);
}

.hero__visual {
	display: flex;
	justify-content: center;
}

.hero__img {
	width: 100%;
	max-width: 500px;
	height: auto;
	border-radius: 12px;
	object-fit: cover;
	animation: floatAnimation 4s ease-in-out infinite;
}

/* Keyframe animation for the image */
@keyframes floatAnimation {
	0% {
		transform: translateY(0px) scale(1);
	}
	50% {
		transform: translateY(-10px) scale(1.02);
	}
	100% {
		transform: translateY(0px) scale(1);
	}
}

/* --- Responsive for Hero --- */
@media screen and (min-width: 768px) {
	.hero__title {
		font-size: 2rem;
	}
}

@media screen and (min-width: 1024px) {
	.hero__container {
		grid-template-columns: 1fr 1fr;
		gap: 2rem;
	}
	.hero__content {
		text-align: left;
	}
	.hero__description {
		margin-left: 0;
		margin-right: 0;
	}
	.hero__title {
		font-size: 2.5rem;
	}
}

/* ======== ANALYTICS SECTION ======== */
.analytics {
    padding-top: 6rem;
    padding-bottom: 6rem;
    background-color: #fff; /* A slight contrast to the body background */
}

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

.analytics__title {
    font-size: 2.25rem;
    line-height: 1.2;
    margin-bottom: 1rem;
}

.analytics__subtitle {
    font-size: 1.125rem;
    color: var(--secondary-text-color);
}

.analytics__grid {
    display: grid;
    gap: 1.5rem;
}

.analytics__card {
    background-color: var(--background-color);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 2rem;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.analytics__card:hover {
    transform: translateY(-8px);
    box-shadow: 0 10px 20px rgba(17, 24, 39, 0.07);
}

.analytics__card-icon {
    display: inline-flex;
    padding: 1rem;
    background-color: #fff;
    border-radius: 50%;
    margin-bottom: 1.5rem;
    border: 1px solid var(--border-color);
}

.analytics__card-icon i {
    width: 28px;
    height: 28px;
    color: var(--accent-color);
    transition: color 0.3s ease;
}

.analytics__card-title {
    font-size: 1.25rem;
    margin-bottom: 0.75rem;
    color: var(--text-color);
}

.analytics__card-description {
    font-size: 0.95rem;
    color: var(--secondary-text-color);
    line-height: 1.6;
}

/* --- Responsive for Analytics --- */
@media screen and (min-width: 768px) {
    .analytics__grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 2rem;
    }
    .analytics__card {
        text-align: left;
    }
    .analytics__card-icon {
       /* Keep centered if you prefer, or align left */
    }
}

@media screen and (min-width: 1024px) {
    .analytics__grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

/* ======== STRATEGY SECTION ======== */
.strategy {
    padding-top: 6rem;
    padding-bottom: 6rem;
    background-color: var(--background-color);
}

.strategy__container {
    display: grid;
    align-items: center;
    gap: 4rem;
}

.strategy__title {
    font-size: 2.25rem;
    line-height: 1.2;
    margin-bottom: 1rem;
}

.strategy__subtitle {
    font-size: 1.125rem;
    color: var(--secondary-text-color);
    margin-bottom: 3rem;
}

.strategy__list {
    display: flex;
    flex-direction: column;
    gap: 2.5rem;
}

.strategy__list-item {
    display: flex;
    align-items: flex-start;
    gap: 1.5rem;
}

.strategy__item-icon {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 52px;
    height: 52px;
    border-radius: 50%;
    background-color: var(--accent-color);
}

.strategy__item-icon i {
    width: 24px;
    height: 24px;
    color: #fff;
}

.strategy__item-title {
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
    color: var(--text-color);
}

.strategy__item-text p {
    color: var(--secondary-text-color);
    line-height: 1.6;
}

.strategy__img {
    width: 100%;
    height: auto;
    border-radius: 12px;
    object-fit: cover;
}

/* --- Responsive for Strategy --- */
@media screen and (min-width: 1024px) {
    .strategy__container {
        grid-template-columns: 1.1fr 1fr;
        gap: 5rem;
    }
}

/* ======== EFFICIENCY SECTION ======== */
.efficiency {
    padding-top: 6rem;
    padding-bottom: 6rem;
    background-color: #fff;
}

.efficiency__container {
    display: grid;
    align-items: center;
    gap: 4rem;
}

.efficiency__img {
    width: 100%;
    height: auto;
    border-radius: 12px;
    object-fit: cover;
}

.efficiency__title {
    font-size: 2.25rem;
    line-height: 1.2;
    margin-bottom: 1rem;
}

.efficiency__subtitle {
    font-size: 1.125rem;
    color: var(--secondary-text-color);
    margin-bottom: 3rem;
}

/* --- Accordion Styles --- */
.accordion {
    border-top: 1px solid var(--border-color);
}

.accordion__item {
    border-bottom: 1px solid var(--border-color);
}

.accordion__header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    padding: 1.5rem 0;
    background: none;
    border: none;
    cursor: pointer;
    text-align: left;
}

.accordion__title {
    font-family: var(--font-family-heading);
    font-size: 1.125rem;
    font-weight: 700;
    color: var(--text-color);
    transition: color 0.3s ease;
}

.accordion__header:hover .accordion__title {
    color: var(--accent-color);
}

.accordion__icon {
    transition: transform 0.3s ease;
}

.accordion__icon i {
    width: 20px;
    height: 20px;
}

.accordion__content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease-out, padding-bottom 0.4s ease-out;
}

.accordion__content p {
    padding-bottom: 0; /* Initially no padding */
    color: var(--secondary-text-color);
    line-height: 1.7;
}

/* Active state for accordion */
.accordion__item.is-active .accordion__icon {
    transform: rotate(45deg);
}

.accordion__item.is-active .accordion__content {
    max-height: 200px; /* Adjust if content is taller */
    padding-bottom: 1.5rem; /* Add padding when active */
}


/* --- Responsive for Efficiency --- */
@media screen and (min-width: 1024px) {
    .efficiency__container {
        grid-template-columns: 1fr 1.1fr;
        gap: 5rem;
    }
}

/* ======== CASES SECTION ======== */
.cases {
    padding-top: 6rem;
    padding-bottom: 6rem;
    background-color: var(--background-color);
}

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

.cases__title {
    font-size: 2.25rem;
    line-height: 1.2;
    margin-bottom: 1rem;
}

.cases__subtitle {
    font-size: 1.125rem;
    color: var(--secondary-text-color);
}

.cases__grid {
    display: grid;
    gap: 2rem;
}

.case-card {
    background-color: #fff;
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid var(--border-color);
    box-shadow: 0 4px 6px rgba(17, 24, 39, 0.03);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.case-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 10px 20px rgba(17, 24, 39, 0.07);
}

.case-card__image {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.case-card__content {
    padding: 2rem;
}

.case-card__tag {
    display: inline-block;
    background-color: #eef2ff; /* Light indigo background */
    color: var(--accent-color);
    padding: 0.25rem 0.75rem;
    border-radius: 999px;
    font-size: 0.8rem;
    font-weight: 500;
    margin-bottom: 1rem;
}

.case-card__title {
    font-size: 1.25rem;
    margin-bottom: 0.75rem;
    color: var(--text-color);
}

.case-card__description {
    font-size: 0.95rem;
    color: var(--secondary-text-color);
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

.case-card__metrics {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    border-top: 1px solid var(--border-color);
    padding-top: 1.5rem;
}

.case-card__metrics li {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-weight: 500;
    color: var(--text-color);
}

.case-card__metrics i {
    color: #16a34a; /* Green for success */
    width: 20px;
    height: 20px;
}


/* --- Responsive for Cases --- */
@media screen and (min-width: 768px) {
    .cases__grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media screen and (min-width: 1024px) {
    .cases__grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* ======== CONTACT SECTION ======== */
.contact {
    padding-top: 6rem;
    padding-bottom: 6rem;
    background-color: #fff;
}

.contact__container {
    display: grid;
    gap: 4rem;
}

.contact__title {
    font-size: 2.25rem;
    line-height: 1.2;
    margin-bottom: 1rem;
}

.contact__description {
    font-size: 1.125rem;
    color: var(--secondary-text-color);
    margin-bottom: 2.5rem;
}

.contact__details {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.contact__detail-item {
    display: inline-flex;
    align-items: center;
    gap: 1rem;
    font-size: 1rem;
    font-weight: 500;
    color: var(--text-color);
    transition: color 0.3s ease;
}

.contact__detail-item:hover {
    color: var(--accent-color);
}

.contact__detail-item i {
    width: 24px;
    height: 24px;
    color: var(--accent-color);
}

.contact__form-wrapper {
    background-color: var(--background-color);
    padding: 2.5rem;
    border-radius: 12px;
    border: 1px solid var(--border-color);
}

.contact__form {
    display: grid;
    gap: 1.5rem;
}

.form-group__label {
    display: block;
    font-weight: 500;
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
}

.form-group__input {
    width: 100%;
    padding: 0.8rem 1rem;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    font-size: 1rem;
    font-family: var(--font-family-base);
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.form-group__input:focus {
    outline: none;
    border-color: var(--accent-color);
    box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.1);
}

.form-group--checkbox {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    font-size: 0.85rem;
    color: var(--secondary-text-color);
}

.form-group--checkbox input[type="checkbox"] {
    margin-top: 3px;
    flex-shrink: 0;
}

.form-group--checkbox a {
    color: var(--accent-color);
    text-decoration: underline;
}

.contact__form-button {
    width: 100%;
    padding: 1rem;
    background-color: var(--accent-color);
    color: #fff;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.contact__form-button:hover {
    background-color: var(--accent-color-hover);
}

/* --- Success Message --- */
.success-message {
    text-align: center;
    padding: 2rem;
}

.success-message__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 60px;
    height: 60px;
    background-color: #dcfce7; /* Light green */
    border-radius: 50%;
    margin-bottom: 1.5rem;
}

.success-message__icon i {
    width: 32px;
    height: 32px;
    color: #16a34a; /* Green */
}

.success-message__title {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

.success-message__text {
    color: var(--secondary-text-color);
}

/* --- Responsive for Contact --- */
@media screen and (min-width: 1024px) {
    .contact__container {
        grid-template-columns: 1fr 1fr;
        gap: 5rem;
    }
}

/* ======== COOKIE POP-UP ======== */
.cookie-popup {
    position: fixed;
    bottom: -100%; /* Initially hidden */
    left: 50%;
    transform: translateX(-50%);
    max-width: 500px;
    width: calc(100% - 2rem);
    background-color: #fff;
    padding: 1.5rem;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(17, 24, 39, 0.15);
    display: flex;
    flex-direction: column;
    gap: 1rem;
    z-index: 200;
    transition: bottom 0.5s cubic-bezier(0.2, 1, 0.3, 1);
}

.cookie-popup.is-visible {
    bottom: 1rem;
}

.cookie-popup__text {
    font-size: 0.9rem;
    color: var(--secondary-text-color);
    line-height: 1.6;
}

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

.cookie-popup__button {
    background-color: var(--accent-color);
    color: #fff;
    border: none;
    border-radius: 8px;
    padding: 0.75rem 1rem;
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.cookie-popup__button:hover {
    background-color: var(--accent-color-hover);
}

@media screen and (min-width: 768px) {
    .cookie-popup {
        flex-direction: row;
        align-items: center;
        max-width: 1120px; /* Container width */
    }
}


/* ======== STYLES FOR POLICY PAGES ======== */
.pages {
    padding-top: 10rem; /* Header offset */
    padding-bottom: 6rem;
    background-color: #fff;
}

.pages .container {
    max-width: 800px; /* Narrower container for better readability */
}

.pages h1 {
    font-size: 1.5rem;
    margin-bottom: 2rem;
}

.pages h2 {
    font-size: 1.5rem;
    margin-top: 3rem;
    margin-bottom: 1.5rem;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 0.5rem;
}

.pages p {
    font-size: 1.05rem;
    color: var(--secondary-text-color);
    line-height: 1.8;
    margin-bottom: 1.5rem;
}

.pages ul {
    list-style: disc;
    padding-left: 1.5rem;
    margin-bottom: 1.5rem;
    color: var(--secondary-text-color);
}

.pages li {
    margin-bottom: 0.75rem;
    line-height: 1.8;
}

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

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

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