/* GLOBAL STYLES */
:root {
    --color-primary-dark: #0D0D2B;
    --color-primary-accent: #3671E9;
    --color-text-light: #FFFFFF;
    --color-text-muted: #a7a6a6;
    --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 {
    background-color: var(--color-primary-dark);
    color: var(--color-text-light);
    font-family: var(--font-family-body);
    font-size: 16px;
    line-height: 1.6;
}

.container {
    max-width: 1200px;
    width: 90%;
    margin: 0 auto;
}

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

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

ul {
    list-style: none;
}

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

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

/* HEADER */
.header {
    padding: 20px 0;
    position: fixed;
    width: 100%;
    top: 0;
    left: 0;
    z-index: 100;
    background-color: rgba(13, 13, 43, 0.8);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

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

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-family: var(--font-family-headings);
    font-weight: 700;
    font-size: 24px;
}

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

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

.nav__list {
    display: flex;
    gap: 30px;
}

.nav__link {
    font-weight: 500;
    position: relative;
    padding-bottom: 5px;
}

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

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

/* Burger Menu */
.burger {
    display: flex;
    flex-direction: column;
    gap: 5px;
    background: transparent;
    border: none;
    cursor: pointer;
    z-index: 112;
}

.burger__line {
    width: 25px;
    height: 2px;
    background-color: var(--color-text-light);
    transition: transform 0.3s ease, opacity 0.3s ease;
}

.burger--active .burger__line:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}
.burger--active .burger__line:nth-child(2) {
    opacity: 0;
}
.burger--active .burger__line:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

/* Mobile Nav Styles */
.nav--mobile {
    position: relative;
    z-index: 110;
    display: flex;
    position: fixed;
    top: 0;
    right: -100%;
    width: 70%;
    height: 100vh;
    background-color: var(--color-primary-dark);
    flex-direction: column;
    justify-content: center;
    align-items: center;
    transition: right 0.4s ease-in-out;
}

.nav--mobile.nav--open {
    right: 0;
}

.nav--mobile .nav__list {
    flex-direction: column;
    text-align: center;
    gap: 40px;
}

.nav--mobile .nav__link {
    font-size: 20px;
}

/* FOOTER */
.footer {
    background-color: #0A0A1A;
    padding: 60px 0 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

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

.footer__column--logo {
    margin-bottom: 20px;
}

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

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

.footer__link {
    color: var(--color-text-muted);
}
.footer__link:hover {
    color: var(--color-text-light);
}

.footer__list--contacts .footer__item {
    display: flex;
    align-items: flex-start;
    gap: 10px;
}

.footer__icon {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
    margin-top: 3px;
    color: var(--color-primary-accent);
}

.footer__address {
    font-style: normal;
    color: var(--color-text-muted);
}

.footer__bottom {
    text-align: center;
    margin-top: 40px;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 14px;
    color: var(--color-text-muted);
}


/* Media Queries (Mobile-first) */
@media (min-width: 768px) {
    .burger {
        display: none;
    }
    .header__nav {
        display: block;
    }
    .footer__container {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1024px) {
    .footer__container {
        grid-template-columns: 2fr 1fr 1fr 2fr;
    }
}

/*--------------------
    HERO SECTION
--------------------*/
.hero {
    position: relative;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    overflow: hidden;
    padding-top: 80px; /* Offset for fixed header */
}

.hero__canvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
}

.hero__container {
    max-width: 800px;
    z-index: 1;
}

.hero__title {
    font-size: 1.5rem;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 20px;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
}

.hero__subtitle {
    font-size: 1.1rem;
    color: var(--color-text-muted);
    margin-bottom: 40px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.button {
    display: inline-block;
    background-color: var(--color-primary-accent);
    color: var(--color-text-light);
    padding: 15px 35px;
    border-radius: 50px;
    font-family: var(--font-family-headings);
    font-weight: 500;
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    border: 2px solid transparent;
    transition: all 0.3s ease;
}

.button:hover {
    background-color: transparent;
    border-color: var(--color-primary-accent);
    color: var(--color-primary-accent);
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(54, 113, 233, 0.3);
}

/* Responsive for Hero */
@media (min-width: 768px) {
    .hero__title {
        font-size: 2.5rem;
    }
    .hero__subtitle {
        font-size: 1.25rem;
    }
}

/*--------------------
    GENERAL SECTION STYLES
--------------------*/
.section {
    padding: 80px 0;
}

.section-header {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 60px auto;
}

.section-header__title {
    font-size: 2.2rem;
    margin-bottom: 15px;
}

.section-header__subtitle {
    font-size: 1.1rem;
    color: var(--color-text-muted);
}

@media (min-width: 768px) {
    .section {
        padding: 100px 0;
    }
    .section-header__title {
        font-size: 2.8rem;
    }
}


/*--------------------
    TECH SECTION
--------------------*/
.tech {
    background-color: #0A0A1A;
}

.tech__grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 30px;
}

.tech-card {
    background-color: var(--color-primary-dark);
    padding: 35px;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.tech-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 30px rgba(54, 113, 233, 0.2);
}

.tech-card__icon-wrapper {
    width: 60px;
    height: 60px;
    margin: 0 auto 25px auto;
    border-radius: 50%;
    background-color: rgba(54, 113, 233, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
}

.tech-card__icon {
    width: 30px;
    height: 30px;
    color: var(--color-primary-accent);
}

.tech-card__title {
    font-size: 1.5rem;
    margin-bottom: 15px;
}

.tech-card__description {
    color: var(--color-text-muted);
    font-size: 1rem;
}

@media (min-width: 768px) {
    .tech__grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

/*--------------------
    SOLUTIONS SECTION
--------------------*/
.solutions__tabs {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-bottom: 40px;
    flex-wrap: wrap;
}

.solutions__tab-button {
    padding: 10px 20px;
    background-color: transparent;
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: var(--color-text-muted);
    border-radius: 30px;
    cursor: pointer;
    font-family: var(--font-family-body);
    font-size: 1rem;
    transition: all 0.3s ease;
}

.solutions__tab-button:hover {
    background-color: rgba(54, 113, 233, 0.1);
    color: var(--color-text-light);
    border-color: var(--color-primary-accent);
}

.solutions__tab-button.is-active {
    background-color: var(--color-primary-accent);
    color: var(--color-text-light);
    border-color: var(--color-primary-accent);
}

.solutions__content-item {
    display: none; /* Hidden by default */
    grid-template-columns: 1fr;
    align-items: center;
    gap: 40px;
    animation: fadeIn 0.5s ease;
}

.solutions__content-item.is-active {
    display: grid; /* Shown when active */
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.solutions__image img {
    border-radius: 12px;
    width: 100%;
}

.solutions__title {
    font-size: 2rem;
    margin-bottom: 20px;
}

.solutions__text p {
    color: var(--color-text-muted);
    font-size: 1.1rem;
    line-height: 1.7;
}

@media (min-width: 768px) {
    .solutions__content-item {
        grid-template-columns: 1fr 1fr;
        gap: 60px;
    }
    /* Reverse image order for even items */
    .solutions__content-item:nth-child(even) .solutions__image {
        order: 2;
    }
}

/*--------------------
    CASES SECTION
--------------------*/
.cases {
    background-color: #0A0A1A;
}

.cases-slider {
    padding-bottom: 50px; /* Space for pagination */
}

.case-card {
    background-color: var(--color-primary-dark);
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    flex-direction: column;
    height: 100%;
}

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

.case-card__body {
    padding: 25px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.case-card__title {
    font-size: 1.4rem;
    margin-bottom: 15px;
}

.case-card__description {
    color: var(--color-text-muted);
    margin-bottom: 25px;
    flex-grow: 1;
}

.case-card__metrics {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

.case-card__metric {
    background-color: rgba(54, 113, 233, 0.1);
    color: var(--color-primary-accent);
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 500;
}

/* Swiper custom styles */
.swiper-pagination-bullet {
    background-color: rgba(255, 255, 255, 0.5);
    width: 10px;
    height: 10px;
    opacity: 1;
}

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

/*--------------------
    PROCESS SECTION
--------------------*/
.process__container {
    display: grid;
    grid-template-columns: 1fr;
    gap: 40px;
    position: relative;
}

.process-step {
    background-color: var(--color-primary-dark);
    padding: 30px;
    border-radius: 12px;
    text-align: center;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.process-step__icon-wrapper {
    width: 60px;
    height: 60px;
    margin: 0 auto 20px auto;
    border-radius: 50%;
    background-color: var(--color-primary-dark);
    border: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 0 15px rgba(54, 113, 233, 0.1);
}

.process-step__icon {
    width: 28px;
    height: 28px;
    color: var(--color-primary-accent);
}

.process-step__title {
    font-size: 1.3rem;
    margin-bottom: 15px;
}

.process-step__description {
    color: var(--color-text-muted);
}


@media (min-width: 768px) {
    .process__container {
        grid-template-columns: repeat(2, 1fr);
        gap: 60px 40px;
    }
}

@media (min-width: 1024px) {
    .process__container {
        grid-template-columns: repeat(4, 1fr);
    }
    .process__container::before {
        content: '';
        position: absolute;
        top: 30px; /* Vertically center with the icon wrapper */
        left: 10%;
        right: 10%;
        height: 1px;
        background: linear-gradient(90deg, transparent, var(--color-primary-accent), transparent);
        opacity: 0.3;
        z-index: -1;
    }
}

/*--------------------
    CONTACT SECTION
--------------------*/
.contact {
    padding-bottom: 120px;
}

.contact__container {
    display: grid;
    grid-template-columns: 1fr;
    gap: 50px;
    background-color: #0A0A1A;
    padding: 40px;
    border-radius: 12px;
}

.contact__info-title {
    font-size: 2rem;
    margin-bottom: 20px;
}

.contact__info p {
    color: var(--color-text-muted);
    font-size: 1.1rem;
    line-height: 1.7;
}

.form__group {
    position: relative;
    margin-bottom: 25px;
}

.form__input {
    width: 100%;
    padding: 15px;
    background-color: var(--color-primary-dark);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    color: var(--color-text-light);
    font-size: 1rem;
    transition: border-color 0.3s ease;
}

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

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

.form__input:focus ~ .form__label,
.form__input:not(:placeholder-shown) ~ .form__label {
    top: -10px;
    left: 10px;
    font-size: 0.8rem;
    background-color: #0A0A1A; /* Match form wrapper background */
    padding: 0 5px;
    color: var(--color-primary-accent);
}

.form__group--checkbox {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin-bottom: 25px;
}

.form__checkbox {
    margin-top: 5px;
    flex-shrink: 0;
}

.form__checkbox-label {
    font-size: 0.9rem;
    color: var(--color-text-muted);
}
.form__checkbox-label a {
    color: var(--color-text-light);
    text-decoration: underline;
}
.form__checkbox-label a:hover {
    color: var(--color-primary-accent);
}

.form__submit {
    width: 100%;
    border: none;
    cursor: pointer;
}

.form__success-message {
    display: none; /* Hidden by default */
    padding: 20px;
    margin-top: 20px;
    background-color: rgba(54, 113, 233, 0.1);
    border: 1px solid var(--color-primary-accent);
    border-radius: 8px;
    text-align: center;
    color: var(--color-text-light);
}

.form__success-message.is-shown {
    display: block; /* Shown by JS */
}

@media (min-width: 1024px) {
    .contact__container {
        grid-template-columns: 1fr 1fr;
        padding: 60px;
    }
}



/*--------------------
    COOKIE POPUP
--------------------*/
.cookie-popup {
    position: fixed;
    bottom: -100%; /* Initially hidden */
    left: 0;
    width: 100%;
    background-color: #0A0A1A;
    padding: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 -5px 20px rgba(0, 0, 0, 0.2);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 15px;
    z-index: 200;
    transition: bottom 0.5s ease-in-out;
}

.cookie-popup.is-shown {
    bottom: 0; /* Shown by JS */
}

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

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

.cookie-popup__accept {
    padding: 8px 25px;
    font-size: 0.9rem;
    flex-shrink: 0;
}

@media (min-width: 768px) {
    .cookie-popup {
        flex-direction: row;
        justify-content: space-between;
        padding: 20px 5%;
    }
    .cookie-popup__text {
        text-align: left;
    }
}

/*--------------------
    POLICY PAGES STYLES
--------------------*/
.pages {
    padding: 120px 0 80px 0; /* Add padding to account for fixed header */
}

.pages h1 {
    font-size: 1.5rem;
    margin-bottom: 30px;
    color: var(--color-text-light);
}

.pages h2 {
    font-size: 1.5rem;
    margin-top: 40px;
    margin-bottom: 20px;
    color: var(--color-text-light);
}

.pages p, 
.pages li {
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--color-text-muted);
    margin-bottom: 20px;
}

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

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

.pages ul {
    list-style: disc;
    padding-left: 25px;
}

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