/* GLOBAL STYLES */
:root {
	--primary-color: #4a90e2;
	--secondary-color: #f5a623;
	--dark-color: #2c3e50;
	--light-color: #fdfefe;
	--gray-color: #bdc3c7;
	--font-family-headings: 'Poppins', sans-serif;
	--font-family-body: 'Roboto', sans-serif;
}

*,
*::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;
	color: var(--dark-color);
	background-color: var(--light-color);
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
}

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

ul {
	list-style: none;
}

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

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

/* HEADER */
.header {
	background-color: var(--light-color);
	padding: 1rem 0;
	position: fixed;
	top: 0;
	left: 0;
	width: 100%;
	z-index: 1000;
	box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
	transition: background-color 0.3s ease;
}

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

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

.logo__svg {
	width: 40px;
	height: 40px;
	color: var(--primary-color);
}

.nav__list {
	display: flex;
	gap: 2rem;
}

.nav__link {
	font-family: var(--font-family-headings);
	font-weight: 500;
	padding-bottom: 5px;
	position: relative;
	transition: color 0.3s ease;
}

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

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

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

/* BURGER MENU */
.burger {
	display: none;
	background: none;
	border: none;
	cursor: pointer;
	z-index: 1010;
}

.burger .lucide-x {
	display: none;
}

/* FOOTER */
.footer {
	background-color: var(--dark-color);
	color: var(--light-color);
	padding-top: 4rem;
}

.footer__container {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 2rem;
	padding-bottom: 3rem;
}

.footer__column--main .logo {
	color: var(--light-color);
}

.footer__title {
	font-family: var(--font-family-headings);
	font-size: 1.1rem;
	margin-bottom: 1rem;
	color: var(--light-color);
}

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

.footer__link {
	color: var(--gray-color);
	transition: color 0.3s ease, padding-left 0.3s ease;
}

.footer__link:hover {
	color: var(--light-color);
	padding-left: 5px;
}

.footer__list--contacts .footer__item {
	display: flex;
	align-items: center;
	gap: 0.75rem;
}

.footer__icon {
	width: 20px;
	height: 20px;
	flex-shrink: 0;
	color: var(--primary-color);
}

.footer__text {
	color: var(--gray-color);
}

.footer__bottom {
	border-top: 1px solid rgba(255, 255, 255, 0.1);
	padding: 1.5rem 0;
	text-align: center;
}

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

/* MOBILE-FIRST: ADAPTIVE STYLES */
@media (max-width: 992px) {
	.footer__container {
		grid-template-columns: repeat(2, 1fr);
	}
}

@media (max-width: 768px) {
	.nav {
		display: flex;
		flex-direction: column;
		justify-content: center;
		align-items: center;
		position: fixed;
		top: 0;
		right: -100%;
		width: 100%;
		height: 100vh;
		background-color: var(--light-color);
		transition: right 0.4s cubic-bezier(0.23, 1, 0.32, 1);
		padding-top: 5rem;
	}
	.nav.nav--active {
		right: 0;
	}
	.nav__list {
		flex-direction: column;
		text-align: center;
		gap: 2.5rem;
	}
	.nav__link {
		font-size: 1.5rem;
	}
	.burger {
		display: block;
		color: var(--dark-color);
	}
	.burger.burger--active .lucide-menu {
		display: none;
	}
	.burger.burger--active .lucide-x {
		display: block;
	}
	body.no-scroll {
		overflow: hidden;
	}
}

@media (max-width: 576px) {
	.footer__container {
		grid-template-columns: 1fr;
		text-align: center;
	}
	.footer__list--contacts .footer__item {
		justify-content: center;
	}
}

/* STYLES FOR HERO SECTION */
.hero {
	padding-top: 120px; /* Header height + extra space */
	padding-bottom: 60px;
	min-height: 90vh;
	display: flex;
	align-items: center;
	background-color: #f8f9fa;
}

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

.hero__content {
	text-align: center;
}

.hero__title {
	font-family: var(--font-family-headings);
	font-size: 1.5rem;
	line-height: 1.3;
	margin-bottom: 1rem;
	color: var(--dark-color);
}

.hero__title--highlight {
	color: var(--primary-color);
}

.hero__cursor {
	display: inline-block;
	color: var(--primary-color);
	animation: blink 0.7s infinite;
}

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

.hero__description {
	font-size: 1.1rem;
	max-width: 700px;
	margin: 0 auto 2rem auto;
	color: #555;
}

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

.hero__img {
	width: 100%;
	border-radius: 10px;
}

/* BUTTON STYLES */
.btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 0.5rem;
	padding: 0.8rem 2rem;
	font-family: var(--font-family-headings);
	font-weight: 500;
	border-radius: 50px;
	border: 2px solid transparent;
	cursor: pointer;
	transition: all 0.3s ease;
}

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

.btn--primary:hover {
	background-color: #e0930f;
	transform: translateY(-3px);
	box-shadow: 0 4px 15px rgba(245, 166, 35, 0.4);
}

.btn__icon {
	width: 20px;
	height: 20px;
}

@keyframes pulse {
	0% {
		transform: scale(1);
		box-shadow: 0 0 0 0 rgba(245, 166, 35, 0.7);
	}
	70% {
		transform: scale(1);
		box-shadow: 0 0 0 10px rgba(245, 166, 35, 0);
	}
	100% {
		transform: scale(1);
		box-shadow: 0 0 0 0 rgba(245, 166, 35, 0);
	}
}

/* ADAPTIVE STYLES FOR HERO */
@media (min-width: 768px) {
	.hero__content {
		text-align: left;
	}
	.hero__description {
		margin-left: 0;
		margin-right: 0;
	}
}

@media (min-width: 992px) {
	.hero {
		min-height: 100vh;
	}
	.hero__container {
		grid-template-columns: 1fr 1fr;
	}
	.hero__title {
		font-size: 2.5rem;
	}
}


/* GLOBAL SECTION STYLES */
.section-header {
    text-align: center;
    margin-bottom: 3rem;
}

.section-header__title {
    font-family: var(--font-family-headings);
    font-size: 2.2rem;
    margin-bottom: 0.5rem;
}

.section-header__subtitle {
    font-size: 1.1rem;
    max-width: 600px;
    margin: 0 auto;
    color: #555;
}

@media (min-width: 992px) {
    .section-header__title {
        font-size: 2.8rem;
    }
}


/* FEATURES SECTION */
.features {
    padding: 60px 0;
}

.features__grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
}

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

.features__card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.07);
}

.features__icon-wrapper {
    margin: 0 auto 1.5rem auto;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background-color: var(--primary-color);
    display: flex;
    align-items: center;
    justify-content: center;
}

.features__icon {
    color: var(--light-color);
    width: 32px;
    height: 32px;
}

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

.features__card-text {
    color: #555;
}

/* ADAPTIVE STYLES FOR FEATURES */
@media (min-width: 768px) {
    .features__grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 992px) {
    .features {
        padding: 100px 0;
    }
    .features__grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* TECH SECTION */
.tech {
    padding: 60px 0;
    background-color: #f8f9fa; /* A slightly different background */
}

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

.tech__content-title {
    font-family: var(--font-family-headings);
    font-size: 1.8rem;
    margin-bottom: 1rem;
}

.tech__content p {
    margin-bottom: 1.5rem;
    color: #555;
}

.tech-stack__list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.tech-stack__item {
    display: flex;
    align-items: center;
    gap: 1rem;
    background-color: var(--light-color);
    padding: 1rem;
    border-radius: 8px;
    border: 1px solid #e0e0e0;
    font-weight: 500;
    transition: all 0.3s ease;
}

.tech-stack__item:hover {
    border-color: var(--primary-color);
    color: var(--primary-color);
    transform: translateX(5px);
}

.tech-stack__icon {
    color: var(--primary-color);
    width: 24px;
    height: 24px;
}

/* SECONDARY BUTTON STYLE */
.btn--secondary {
    background-color: transparent;
    color: var(--primary-color);
    border-color: var(--primary-color);
}

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

/* ADAPTIVE STYLES FOR TECH */
@media (min-width: 992px) {
    .tech {
        padding: 100px 0;
    }
    .tech__grid {
        grid-template-columns: 1fr 1fr;
    }
}

/* CASES SECTION */
.cases {
    padding: 60px 0;
    overflow: hidden; /* Important for slider navigation */
}

.cases__slider-container {
    position: relative;
}

.cases-slider {
    padding: 1rem 0 3rem 0; /* Extra padding for shadow and pagination */
}

.case-card {
    background-color: var(--light-color);
    border-radius: 12px;
    box-shadow: 0 4px 25px rgba(0,0,0,0.05);
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.swiper-slide:hover .case-card {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.08);
}

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

.case-card__content {
    padding: 1.5rem;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.case-card__tag {
    display: inline-block;
    background-color: var(--primary-color);
    color: var(--light-color);
    padding: 0.25rem 0.75rem;
    border-radius: 50px;
    font-size: 0.8rem;
    font-weight: 500;
    margin-bottom: 1rem;
    align-self: flex-start;
}

.case-card__title {
    font-family: var(--font-family-headings);
    font-size: 1.4rem;
    margin-bottom: 0.75rem;
    line-height: 1.3;
}

.case-card__text {
    color: #555;
    margin-bottom: 1rem;
    flex-grow: 1;
}

.case-card__link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--primary-color);
    font-weight: 500;
    margin-top: auto;
    transition: gap 0.3s ease;
}

.case-card__link:hover {
    gap: 0.8rem;
}


/* SWIPER STYLES OVERRIDE */
:root {
    --swiper-theme-color: var(--primary-color);
}

.swiper-button-next,
.swiper-button-prev {
    top: 50%;
    transform: translateY(-50%);
    width: 44px !important;
    height: 44px !important;
    background-color: var(--light-color);
    border-radius: 50%;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.swiper-button-prev {
    left: 0 !important;
}

.swiper-button-next {
    right: 0 !important;
}

.swiper-pagination-bullet-active {
    background: var(--primary-color);
}

@media (max-width: 768px) {
    .swiper-button-next,
    .swiper-button-prev {
        display: none !important;
    }
}


/* ABOUT SECTION */
.about {
    padding: 60px 0;
    background-color: #f8f9fa;
}

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

.about__visual {
    text-align: center;
}

.about__img {
    border-radius: 12px;
    max-width: 100%;
    box-shadow: 0 10px 40px rgba(0,0,0,0.1);
}

.about__content .section-header__title {
    text-align: left;
}

.about__text {
    color: #555;
    margin-bottom: 1.5rem;
}

.about__stats {
    display: flex;
    gap: 1.5rem;
    margin-top: 2rem;
    flex-wrap: wrap;
}

.stats__item {
    text-align: center;
}

.stats__number {
    display: block;
    font-family: var(--font-family-headings);
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--primary-color);
}

.stats__label {
    font-size: 0.9rem;
    color: #555;
}

/* ADAPTIVE STYLES FOR ABOUT */
@media (min-width: 992px) {
    .about {
        padding: 100px 0;
    }
    .about__grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 4rem;
    }
    .about__stats {
        gap: 3rem;
    }
}

/* CONTACT SECTION */
.contact {
    padding: 60px 0;
}

.contact__grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 3rem;
    margin-top: 3rem;
}

.contact__info-title {
    font-family: var(--font-family-headings);
    font-size: 1.8rem;
    margin-bottom: 1rem;
}

.contact__info-text {
    color: #555;
    margin-bottom: 2rem;
}

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

.contact__details-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    font-size: 1.1rem;
    font-weight: 500;
}

.contact__details-icon {
    width: 24px;
    height: 24px;
    color: var(--primary-color);
}

.contact__form-wrapper {
    background-color: var(--light-color);
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.08);
}


/* FORM STYLES */
.form-group {
    margin-bottom: 1.5rem;
}

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

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

.form-input:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(74, 144, 226, 0.2);
}

.btn--full {
    width: 100%;
}


/* CUSTOM CHECKBOX */
.form-check {
    display: flex;
    align-items: center;
    cursor: pointer;
}
.form-check__input {
    display: none;
}
.form-check__box {
    width: 20px;
    height: 20px;
    border: 2px solid var(--gray-color);
    border-radius: 4px;
    margin-right: 0.75rem;
    flex-shrink: 0;
    transition: background-color 0.3s, border-color 0.3s;
    position: relative;
}
.form-check__box::after {
    content: '✔';
    position: absolute;
    top: -2px; left: 2px;
    color: var(--light-color);
    opacity: 0;
    transform: scale(0.8);
    transition: opacity 0.3s, transform 0.3s;
}
.form-check__input:checked + .form-check__box {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}
.form-check__input:checked + .form-check__box::after {
    opacity: 1;
    transform: scale(1);
}
.form-check__label {
    font-size: 0.9rem;
    color: #555;
}
.form-check__label a {
    color: var(--primary-color);
    text-decoration: underline;
}

/* FORM SUCCESS MESSAGE */
.form-success {
    text-align: center;
    padding: 2rem;
    border: 1px solid #c3e6cb;
    background-color: #d4edda;
    border-radius: 12px;
}
.form-success__icon {
    width: 48px;
    height: 48px;
    color: #155724;
    margin-bottom: 1rem;
}
.form-success__title {
    font-family: var(--font-family-headings);
    font-size: 1.5rem;
    color: #155724;
}
.form-success__text {
    color: #155724;
}

@media (min-width: 992px) {
    .contact {
        padding: 100px 0;
    }
    .contact__grid {
        grid-template-columns: 1fr 1.2fr;
    }
}

/* COOKIE POPUP */
.cookie-popup {
    position: fixed;
    bottom: 1rem;
    left: 1rem;
    right: 1rem;
    z-index: 2000;
    background-color: var(--dark-color);
    color: var(--light-color);
    padding: 1.5rem;
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.2);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    transform: translateY(200%);
    transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

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

.cookie-popup__text {
    font-size: 0.9rem;
}

.cookie-popup__link {
    text-decoration: underline;
    font-weight: 500;
}

.cookie-popup .btn {
    flex-shrink: 0;
    padding: 0.6rem 1.5rem;
    animation: none; /* remove pulse animation */
}

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

/* POLICY PAGES STYLES */
.pages {
    padding-top: 120px; /* Header height + extra space */
    padding-bottom: 60px;
}

.pages .container {
    max-width: 800px;
}

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

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

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

.pages p {
    line-height: 1.7;
    margin-bottom: 1rem;
}

.pages ul {
    list-style: disc;
    padding-left: 20px;
    margin-bottom: 1rem;
}

.pages li {
    margin-bottom: 0.5rem;
}

.pages a {
    color: var(--primary-color);
    text-decoration: underline;
    font-weight: 500;
}

.pages strong {
    font-weight: 700;
}