/* --- Global Settings & Fonts --- */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500&family=Poppins:wght@600;700&display=swap');

:root {
	--background-dark: #111827;
	--background-light: #1f2937;
	--primary-accent: #38bdf8;
	--primary-accent-hover: #0ea5e9;
	--text-primary: #f9fafb;
	--text-secondary: #9ca3af;
	--border-color: #374151;

	--font-heading: 'Poppins', sans-serif;
	--font-body: 'Inter', sans-serif;
}

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

html {
	scroll-behavior: smooth;
}

body {
	font-family: var(--font-body);
	background-color: var(--background-dark);
	color: var(--text-primary);
	font-size: 16px;
	line-height: 1.6;
	-webkit-font-smoothing: antialiased;
}

h1,
h2,
h3,
h4,
h5,
h6 {
	font-family: var(--font-heading);
	color: var(--text-primary);
}

a {
	color: var(--primary-accent);
	text-decoration: none;
	transition: color 0.3s ease;
}

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

ul {
	list-style: none;
}

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

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

.button {
	display: inline-block;
	padding: 10px 24px;
	background-color: var(--primary-accent);
	color: var(--background-dark);
	font-family: var(--font-heading);
	font-weight: 600;
	border-radius: 8px;
	text-align: center;
	border: 2px solid var(--primary-accent);
	transition: background-color 0.3s ease, color 0.3s ease;
}

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

/* --- Header --- */
.header {
	position: fixed;
	top: 0;
	left: 0;
	width: 100%;
	padding: 15px 0;
	background-color: rgba(17, 24, 39, 0.8);
	backdrop-filter: blur(10px);
	z-index: 1000;
	border-bottom: 1px solid var(--border-color);
}

.header__container {
	display: flex;
	justify-content: space-between;
	align-items: center;
}

.logo {
	display: flex;
	align-items: center;
	gap: 12px;
	font-family: var(--font-heading);
	font-weight: 700;
	font-size: 20px;
	color: var(--text-primary);
}

.logo:hover {
	color: var(--text-primary);
}

.header__nav-list {
	display: flex;
	gap: 30px;
	align-items: center;
}

.header__nav-link {
	font-size: 15px;
	color: var(--text-secondary);
	font-weight: 500;
	position: relative;
	padding: 5px 0;
}

.header__nav-link::after {
	content: '';
	position: absolute;
	bottom: 0;
	left: 0;
	width: 0;
	height: 2px;
	background-color: var(--primary-accent);
	transition: width 0.3s ease;
}

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

.header__nav-link:hover::after {
	width: 100%;
}

.header__actions {
	display: flex;
	align-items: center;
	gap: 15px;
}

.header__burger-menu {
	display: none;
	background: none;
	border: none;
	color: var(--text-primary);
	cursor: pointer;
	z-index: 1001; /* To be above the menu */
}

.header__nav-item--mobile-button {
	display: none; /* Hide mobile button on desktop */
}

/* --- Mobile Menu --- */
@media (max-width: 992px) {
	.header__nav {
		display: none;
		position: fixed;
		top: 0;
		left: 0;
		width: 100%;
		height: 100vh;
		background-color: var(--background-dark);
		flex-direction: column;
		justify-content: center;
		align-items: center;
		transform: translateX(100%);
		transition: transform 0.4s ease-in-out;
	}

	.header__nav.is-active {
		display: flex;
		transform: translateX(0);
	}

	.header__nav-list {
		flex-direction: column;
		text-align: center;
		gap: 25px;
	}

	.header__nav-link {
		font-size: 24px;
	}

	.header__burger-menu {
		display: block;
	}

	.header__actions-button {
		display: none; /* Hide desktop button on mobile */
	}

	.header__nav-item--mobile-button {
		display: block; /* Show mobile button in nav menu */
		margin-top: 20px;
	}
}

/* --- Footer --- */
.footer {
	padding: 60px 0 20px;
	background-color: var(--background-light);
	border-top: 1px solid var(--border-color);
}

.footer__container {
	display: grid;
	grid-template-columns: 2fr 1fr 1fr 1.5fr;
	gap: 40px;
	margin-bottom: 40px;
}

.footer__column--main {
	padding-right: 20px;
}

.footer__description {
	margin-top: 15px;
	color: var(--text-secondary);
	font-size: 14px;
	max-width: 300px;
}

.footer__title {
	font-size: 18px;
	margin-bottom: 15px;
	color: var(--text-primary);
}

.footer__list {
	display: flex;
	flex-direction: column;
	gap: 10px;
}

.footer__link {
	color: var(--text-secondary);
	font-size: 15px;
}

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

.footer__link--address {
	cursor: default;
}
.footer__link--address:hover {
	color: var(--text-secondary);
}

.footer__bottom {
	text-align: center;
	padding-top: 20px;
	border-top: 1px solid var(--border-color);
	font-size: 14px;
	color: var(--text-secondary);
}

@media (max-width: 992px) {
	.footer__container {
		grid-template-columns: 1fr 1fr;
	}
}

@media (max-width: 576px) {
	.footer__container {
		grid-template-columns: 1fr;
		text-align: center;
	}
	.logo,
	.footer__list {
		justify-content: center;
		align-items: center;
	}
	.footer__column--main {
		padding-right: 0;
	}
	.footer__description {
		margin-left: auto;
		margin-right: auto;
	}
}

/* --- Hero Section --- */
.hero {
	min-height: 100vh;
	display: flex;
	align-items: center;
	padding-top: 80px; /* Header offset */
}

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

.hero__title {
	font-size: 2.5rem;
	line-height: 1.2;
	margin-bottom: 20px;
	font-weight: 700;
	min-height: 125px; /* Reserve space for text */
}

/* Typing cursor effect */
.hero__title::after {
	content: '|';
	animation: blink 1s step-end infinite;
	color: var(--primary-accent);
}

@keyframes blink {
	from,
	to {
		opacity: 1;
	}
	50% {
		opacity: 0;
	}
}

.hero__description {
	font-size: 18px;
	color: var(--text-secondary);
	max-width: 500px;
	margin-bottom: 30px;
}

.hero__cta {
	padding: 14px 32px;
	font-size: 16px;
}

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

.hero__image {
	max-width: 100%;
	border-radius: 16px;
	background-color: var(--background-light);
}

/* Responsive adjustments */
@media (max-width: 992px) {
	.hero__title {
		font-size: 1.5rem;
		min-height: 100px;
	}
}

@media (max-width: 768px) {
	.hero {
		padding-top: 100px;
		padding-bottom: 40px;
		text-align: center;
		min-height: auto;
	}
	.hero__container {
		grid-template-columns: 1fr;
		gap: 50px;
	}
	.hero__content {
		order: 2;
	}
	.hero__visual {
		order: 1;
	}
	.hero__description {
		margin-left: auto;
		margin-right: auto;
	}
}


/* --- Section General Styles --- */
.section {
    padding: 80px 0;
}

.section__header {
    text-align: center;
    margin-bottom: 50px;
}

.section__title {
    font-size: 36px;
    margin-bottom: 10px;
}

.section__subtitle {
    font-size: 18px;
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto;
}

/* --- Concepts Section --- */
.concepts__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.concept-card {
    background-color: var(--background-light);
    padding: 30px;
    border-radius: 12px;
    border: 1px solid var(--border-color);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.concept-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

.concept-card__icon {
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: rgba(56, 189, 248, 0.1);
    border-radius: 50%;
    margin-bottom: 20px;
}

.concept-card__icon i {
    color: var(--primary-accent);
    width: 28px;
    height: 28px;
}

.concept-card__title {
    font-size: 22px;
    margin-bottom: 10px;
}

.concept-card__description {
    color: var(--text-secondary);
    font-size: 15px;
}

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

@media (max-width: 768px) {
    .section {
        padding: 60px 0;
    }
    .section__title {
        font-size: 30px;
    }
}

/* --- Technologies Section (Tabs) --- */
.tech__tabs {
    max-width: 900px;
    margin: 0 auto;
}

.tech__nav {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-bottom: 30px;
    background-color: var(--background-light);
    padding: 8px;
    border-radius: 12px;
}

.tech__nav-button {
    flex-grow: 1;
    padding: 12px 20px;
    font-family: var(--font-heading);
    font-size: 16px;
    font-weight: 600;
    color: var(--text-secondary);
    background-color: transparent;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: background-color 0.3s ease, color 0.3s ease;
}

.tech__nav-button:hover {
    background-color: rgba(255, 255, 255, 0.05);
    color: var(--text-primary);
}

.tech__nav-button.is-active {
    background-color: var(--primary-accent);
    color: var(--background-dark);
}

.tech__panel {
    display: none; /* Hide panels by default */
    grid-template-columns: 1fr 1fr;
    align-items: center;
    gap: 40px;
    padding: 20px;
    background-color: var(--background-light);
    border-radius: 12px;
}

.tech__panel.is-active {
    display: grid; /* Show active panel */
}

.tech__panel-title {
    font-size: 24px;
    margin-bottom: 15px;
}

.tech__panel-image {
    border-radius: 8px;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .tech__nav {
        flex-direction: column;
    }
    .tech__panel {
        grid-template-columns: 1fr;
    }
    .tech__panel-visual {
        order: -1; /* Image on top */
        margin-bottom: 20px;
    }
    .tech__panel-text {
        text-align: center;
    }
}

/* --- Breakdowns Section (Accordion) --- */
.breakdowns__accordion {
    max-width: 800px;
    margin: 0 auto;
    border: 1px solid var(--border-color);
    border-radius: 12px;
    overflow: hidden;
}

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

.accordion-item:last-child {
    border-bottom: none;
}

.accordion-item__header {
    width: 100%;
    background-color: transparent;
    border: none;
    padding: 20px 25px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    font-family: var(--font-heading);
    font-size: 18px;
    font-weight: 600;
    color: var(--text-primary);
    text-align: left;
}

.accordion-item__header:hover {
    background-color: var(--background-light);
}

.accordion-item__icon {
    transition: transform 0.3s ease;
    flex-shrink: 0; /* Prevent icon from shrinking */
}

.accordion-item.is-active .accordion-item__icon {
    transform: rotate(45deg);
}

.accordion-item__content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease-out, padding 0.4s ease-out;
    background-color: var(--background-light);
}

.accordion-item__content p {
    padding: 20px 25px;
    color: var(--text-secondary);
    line-height: 1.7;
}

/* --- Cases Section (Slider) --- */
.cases__slider {
    position: relative;
}

.cases__slider-wrapper {
    overflow: hidden;
}

.cases__slider-track {
    display: flex;
    gap: 30px;
    transition: transform 0.5s ease-in-out;
}

.case-card {
    flex: 0 0 calc(33.333% - 20px); /* 3 cards with gaps */
    background-color: var(--background-light);
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid var(--border-color);
    display: flex;
    flex-direction: column;
}

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

.case-card__content {
    padding: 20px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.case-card__tag {
    display: inline-block;
    padding: 4px 10px;
    background-color: rgba(56, 189, 248, 0.1);
    color: var(--primary-accent);
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    margin-bottom: 15px;
    align-self: flex-start;
}

.case-card__title {
    font-size: 20px;
    margin-bottom: 10px;
}

.case-card__description {
    color: var(--text-secondary);
    font-size: 15px;
    flex-grow: 1;
}

.cases__slider-nav {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-top: 30px;
}

.slider-button {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background-color: var(--background-light);
    border: 1px solid var(--border-color);
    color: var(--text-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background-color 0.3s ease, color 0.3s ease;
}

.slider-button:hover {
    background-color: var(--primary-accent);
    color: var(--background-dark);
}

.slider-button:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    background-color: var(--background-light);
    color: var(--text-secondary);
}


/* Responsive adjustments */
@media (max-width: 992px) {
    .case-card {
        flex: 0 0 calc(50% - 15px); /* 2 cards */
    }
}

@media (max-width: 576px) {
    .case-card {
        flex: 0 0 90%; /* 1 card */
    }
    .cases__slider-track {
        padding-left: 5%; /* Center the single card */
    }
}

/* --- Contact Section --- */
.contact-form__wrapper {
    max-width: 700px;
    margin: 0 auto;
    background-color: var(--background-light);
    padding: 40px;
    border-radius: 12px;
    border: 1px solid var(--border-color);
}

.contact-form__grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 25px;
    margin-bottom: 25px;
}

.form-group {
    position: relative;
}

.form-group__input {
    width: 100%;
    padding: 14px;
    background-color: var(--background-dark);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    color: var(--text-primary);
    font-size: 16px;
    transition: border-color 0.3s ease;
}

.form-group__input:focus {
    outline: none;
    border-color: var(--primary-accent);
}

.form-group__label {
    position: absolute;
    top: 15px;
    left: 15px;
    color: var(--text-secondary);
    pointer-events: none;
    transition: all 0.3s ease;
}

.form-group__input:focus ~ .form-group__label,
.form-group__input:not(:placeholder-shown) ~ .form-group__label {
    top: -10px;
    left: 10px;
    font-size: 12px;
    color: var(--primary-accent);
    background-color: var(--background-light);
    padding: 0 5px;
}

.form-group--checkbox {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 30px;
}

.form-group__checkbox {
    width: 18px;
    height: 18px;
}

.form-group__checkbox-label {
    color: var(--text-secondary);
    font-size: 14px;
}
.form-group__checkbox-label a {
    text-decoration: underline;
}

.contact-form__button {
    width: 100%;
    padding-top: 14px;
    padding-bottom: 14px;
    font-size: 16px;
}

/* Success Message */
.success-message {
    display: none; /* Hidden by default */
    text-align: center;
    padding: 40px 20px;
}

.success-message.is-visible {
    display: block;
}

.success-message__icon {
    color: var(--primary-accent);
    margin-bottom: 20px;
}
.success-message__icon i {
    width: 50px;
    height: 50px;
}
.success-message__title {
    font-size: 24px;
    margin-bottom: 10px;
}
.success-message__text {
    color: var(--text-secondary);
}

@media (max-width: 576px) {
    .contact-form__wrapper {
        padding: 25px;
    }
}

/* --- Cookie Pop-up --- */
.cookie-popup {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background-color: var(--background-light);
    border-top: 1px solid var(--border-color);
    padding: 20px;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
    z-index: 2000;
    transform: translateY(120%);
    transition: transform 0.5s ease-in-out;
}

.cookie-popup.is-visible {
    transform: translateY(0);
}

.cookie-popup__text {
    color: var(--text-secondary);
    text-align: center;
}

.cookie-popup__text a {
    text-decoration: underline;
}

.cookie-popup__button {
    flex-shrink: 0; /* Prevent button from shrinking */
    padding: 8px 20px;
}

@media (max-width: 576px) {
    .cookie-popup {
        flex-direction: column;
        padding: 15px;
    }
}

/* --- Static Policy Pages --- */
.pages {
    padding: 120px 0 80px; /* 120px top padding to offset the fixed header */
}

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

.pages h1 {
    font-size: 42px;
    margin-bottom: 30px;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 15px;
}

.pages h2 {
    font-size: 28px;
    margin-top: 40px;
    margin-bottom: 20px;
}

.pages p {
    color: var(--text-secondary);
    font-size: 16px;
    line-height: 1.8;
    margin-bottom: 20px;
}

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

.pages li {
    margin-bottom: 10px;
    line-height: 1.8;
}

.pages a {
    text-decoration: underline;
}

.pages a:hover {
    text-decoration: none;
}

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

@media (max-width: 768px) {
    .pages h1 {
        font-size: 32px;
    }
    .pages h2 {
        font-size: 24px;
    }
}