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

/* --- CSS Variables --- */
:root {
    --color-background: #0F0E17;
    --color-surface: #1A1A2E;
    --color-primary: #FF8906;
    --color-headline: #FFFFFE;
    --color-paragraph: #A7A9BE;
    --color-stroke: #2E2F3E;

    --font-family-headings: 'Poppins', sans-serif;
    --font-family-body: 'Roboto', sans-serif;
}

/* --- Global Styles & 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;
    color: var(--color-paragraph);
    background-color: var(--color-background);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-family-headings);
    color: var(--color-headline);
    line-height: 1.2;
}

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

a:hover {
    color: var(--color-headline);
}

ul {
    list-style: none;
}

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

address {
    font-style: normal;
}

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

/* --- Header --- */
.header {
    padding: 20px 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    background-color: rgba(15, 14, 23, 0.8);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--color-stroke);
}

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

.header__logo {
    font-family: var(--font-family-headings);
    font-size: 24px;
    font-weight: 700;
    color: var(--color-headline);
}

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

.header__burger-menu {
    display: block;
    background: none;
    border: none;
    color: var(--color-headline);
    cursor: pointer;
    z-index: 1001;
}

.header__nav {
    display: none;
    position: fixed;
    top: 0;
    right: 0;
    width: 100%;
    height: 100%;
    background-color: var(--color-surface);
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.header__nav.is-active {
    display: flex;
}

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

.header__nav-item {
    text-align: center;
}

.header__nav-link {
    font-family: var(--font-family-headings);
    font-size: 22px;
    color: var(--color-headline);
    padding: 10px 20px;
}

.header__nav-link--button {
    background-color: var(--color-primary);
    color: var(--color-background);
    border-radius: 5px;
    transition: background-color 0.3s ease;
}

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

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

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

.footer__column--brand {
    text-align: center;
}

.footer__logo {
    font-family: var(--font-family-headings);
    font-size: 28px;
    font-weight: 700;
    color: var(--color-headline);
    display: inline-block;
    margin-bottom: 15px;
}

.footer__copyright {
    font-size: 14px;
}

.footer__title {
    font-size: 18px;
    margin-bottom: 20px;
}

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

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

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

.footer__list--contacts {
    gap: 15px;
}

.footer__contact-item {
    display: flex;
    align-items: center;
    gap: 10px;
}

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

.footer__address {
    line-height: 1.5;
}


/* --- Desktop Styles --- */
@media (min-width: 768px) {
    .header__burger-menu {
        display: none;
    }

    .header__nav {
        display: flex;
        position: static;
        width: auto;
        height: auto;
        background-color: transparent;
        flex-direction: row;
    }

    .header__nav-list {
        flex-direction: row;
        gap: 20px;
    }

    .header__nav-link {
        font-size: 16px;
    }
    
    .footer__container {
        grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
        gap: 30px;
    }

    .footer__column--brand {
        text-align: left;
    }
}
/* --- Button --- */
.button {
    display: inline-block;
    padding: 12px 28px;
    font-family: var(--font-family-headings);
    font-weight: 500;
    font-size: 16px;
    color: var(--color-background);
    background-color: var(--color-primary);
    border-radius: 5px;
    text-align: center;
    cursor: pointer;
    transition: transform 0.3s ease, background-color 0.3s ease;
    border: 2px solid transparent;
}

.button:hover {
    transform: translateY(-3px);
    background-color: #ff9d2a;
    color: var(--color-background);
}

/* --- Hero Section --- */
.hero {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 80vh;
    padding: 100px 0;
    text-align: center;
    overflow: hidden;
}

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

.hero__container {
    position: relative;
    z-index: 2;
}

.hero__content {
    max-width: 750px;
    margin: 0 auto;
}

.hero__title {
    font-size: 2.5rem; /* 40px */
    margin-bottom: 20px;
}

.hero__subtitle {
    font-size: 1.125rem; /* 18px */
    margin-bottom: 40px;
    opacity: 0.9;
}

/* --- Desktop Styles --- */
@media (min-width: 768px) {
    .hero {
        min-height: calc(100vh - 85px); /* Full viewport height minus header height */
        text-align: left;
    }

    .hero__content {
        margin: 0;
    }

    .hero__title {
        font-size: 3.5rem; /* 56px */
    }

    .hero__subtitle {
        font-size: 1.25rem; /* 20px */
    }
}
/* --- Section --- */
.section {
    padding: 80px 0;
}

.section__header {
    text-align: center;
    max-width: 650px;
    margin: 0 auto 50px;
}

.section__title {
    font-size: 2.25rem; /* 36px */
    margin-bottom: 15px;
}

.section__subtitle {
    font-size: 1.125rem; /* 18px */
}

/* --- How It Works Section --- */
.works__grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 30px;
}

.works__card {
    background-color: var(--color-surface);
    padding: 30px;
    border-radius: 8px;
    border: 1px solid var(--color-stroke);
    text-align: center;
    transition: transform 0.3s ease, border-color 0.3s ease;
}

.works__card:hover {
    transform: translateY(-8px);
    border-color: var(--color-primary);
}

.works__card-icon-wrapper {
    width: 64px;
    height: 64px;
    margin: 0 auto 25px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background-color: rgba(255, 137, 6, 0.1);
}

.works__card-icon-wrapper i {
    color: var(--color-primary);
    width: 32px;
    height: 32px;
}
/* This is a fix for Lucide icons inside flex containers */
.works__card-icon-wrapper svg {
    width: 32px;
    height: 32px;
}

.works__card-title {
    font-size: 1.5rem; /* 24px */
    margin-bottom: 10px;
}

.works__card-text {
    font-size: 1rem; /* 16px */
}

/* --- Desktop Styles --- */
@media (min-width: 768px) {
    .section {
        padding: 100px 0;
    }

    .section__header {
        margin-bottom: 70px;
    }

    .section__title {
        font-size: 2.5rem; /* 40px */
    }

    .works__grid {
        grid-template-columns: repeat(3, 1fr);
    }
}
/* --- Technologies Section --- */
.section--surface {
    background-color: var(--color-surface);
}

.tech__tabs-nav {
    display: flex;
    overflow-x: auto;
    margin-bottom: 40px;
    border-bottom: 1px solid var(--color-stroke);
    -ms-overflow-style: none;  /* IE and Edge */
    scrollbar-width: none;  /* Firefox */
}

.tech__tabs-nav::-webkit-scrollbar {
    display: none; /* Chrome, Safari, Opera */
}

.tech__tabs-nav-button {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 15px 20px;
    font-family: var(--font-family-body);
    font-size: 1rem;
    font-weight: 500;
    color: var(--color-paragraph);
    background-color: transparent;
    border: none;
    border-bottom: 3px solid transparent;
    cursor: pointer;
    white-space: nowrap;
    transition: color 0.3s ease, border-color 0.3s ease;
    margin-bottom: -1px; /* Overlap border */
}

.tech__tabs-nav-button:hover {
    color: var(--color-headline);
}

.tech__tabs-nav-button.is-active {
    color: var(--color-primary);
    border-color: var(--color-primary);
}

.tech__tabs-nav-button svg {
    width: 20px;
    height: 20px;
}

.tech__tab-pane {
    display: none;
    animation: fadeIn 0.5s ease-in-out;
}

.tech__tab-pane.is-active {
    display: grid;
    grid-template-columns: 1fr;
    align-items: center;
    gap: 30px;
}

.tech__tab-pane-title {
    font-size: 1.75rem; /* 28px */
    margin-bottom: 15px;
}

.tech__tab-pane-image {
    border-radius: 8px;
    overflow: hidden;
}

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

/* --- Desktop Styles --- */
@media (min-width: 768px) {
    .tech__tabs-nav {
        justify-content: center;
    }

    .tech__tab-pane.is-active {
        grid-template-columns: 1fr 1fr;
        gap: 50px;
        text-align: left;
    }
    
    /* Reverse order for even items */
    .tech__tab-pane:nth-child(even) .tech__tab-pane-content {
        order: 2;
    }
}
/* --- Examples Section --- */
.examples__slider {
    width: 100%;
    padding: 20px 0 50px; /* Extra padding for pagination */
}

.examples__card {
    background-color: var(--color-surface);
    border-radius: 8px;
    border: 1px solid var(--color-stroke);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    height: 100%;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

.examples__card-img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.examples__card-content {
    padding: 20px;
    flex-grow: 1;
}

.examples__card-tag {
    display: inline-block;
    background-color: rgba(255, 137, 6, 0.1);
    color: var(--color-primary);
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 500;
    margin-bottom: 15px;
}

.examples__card-title {
    font-size: 1.25rem; /* 20px */
    margin-bottom: 10px;
}

/* Swiper Customization */
.examples__pagination .swiper-pagination-bullet {
    background-color: var(--color-paragraph);
    opacity: 0.6;
}

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

.examples__nav-button {
    color: var(--color-primary);
    transition: transform 0.2s ease;
}
.examples__nav-button:hover {
    transform: scale(1.1);
}

@media (max-width: 767px) {
    .examples__nav-button {
        display: none;
    }
}

/* --- FAQ Section --- */
.faq__accordion {
    max-width: 800px;
    margin: 0 auto;
}

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

.faq__question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    padding: 20px 0;
    text-align: left;
    background-color: transparent;
    border: none;
    cursor: pointer;
    font-family: var(--font-family-headings);
    font-size: 1.125rem; /* 18px */
    color: var(--color-headline);
    font-weight: 500;
}

.faq__icon {
    transition: transform 0.3s ease-in-out;
    flex-shrink: 0;
    margin-left: 15px;
    color: var(--color-paragraph);
}

.faq__item.is-active .faq__icon {
    transform: rotate(180deg);
    color: var(--color-primary);
}

.faq__answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-in-out, padding 0.3s ease-in-out;
}

.faq__answer p {
    padding-bottom: 20px;
    font-size: 1rem;
    line-height: 1.7;
}

@media (min-width: 768px) {
    .faq__question {
        font-size: 1.25rem; /* 20px */
    }
}

/* --- Contact Section --- */
.contact__wrapper {
    max-width: 600px;
    margin: 0 auto;
    background-color: var(--color-surface);
    padding: 30px;
    border-radius: 8px;
    border: 1px solid var(--color-stroke);
}

.form__group {
    margin-bottom: 20px;
}

.form__label {
    display: block;
    margin-bottom: 8px;
    font-size: 14px;
    font-weight: 500;
}

.form__input {
    width: 100%;
    padding: 12px;
    background-color: var(--color-background);
    border: 1px solid var(--color-stroke);
    border-radius: 5px;
    color: var(--color-headline);
    font-size: 16px;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.form__input:focus {
    outline: none;
    border-color: var(--color-primary);
    box-shadow: 0 0 0 3px rgba(255, 137, 6, 0.2);
}

.form__input.is-invalid {
    border-color: #e74c3c;
}

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

.form__checkbox-input {
    flex-shrink: 0;
    margin-top: 5px;
    margin-right: 12px;
    width: 18px;
    height: 18px;
}

.form__checkbox-label {
    font-size: 14px;
    line-height: 1.5;
}
.form__checkbox-label a {
    text-decoration: underline;
}

.contact__submit-button {
    width: 100%;
}

.form__success-message {
    text-align: center;
    padding: 40px 20px;
}

.form__success-message i {
    color: #2ecc71; /* A nice success green */
    width: 60px;
    height: 60px;
    margin-bottom: 20px;
}
/* This is a fix for Lucide icons inside flex containers */
.form__success-message svg {
    width: 60px;
    height: 60px;
}

.form__success-message h3 {
    font-size: 1.75rem;
    margin-bottom: 10px;
}

@media (min-width: 768px) {
    .contact__wrapper {
        padding: 40px;
    }
}
/* --- Cookie Popup --- */
.cookie-popup {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background-color: var(--color-surface);
    border-top: 1px solid var(--color-stroke);
    padding: 20px;
    z-index: 2000;
    transform: translateY(120%);
    transition: transform 0.5s ease-in-out;
}

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

.cookie-popup__content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
    max-width: 1200px;
    margin: 0 auto;
}

.cookie-popup__text {
    text-align: center;
    font-size: 14px;
}
.cookie-popup__text a {
    text-decoration: underline;
}

.cookie-popup__button {
    padding: 8px 24px;
    font-size: 14px;
}

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

/* --- Policy Pages Styles --- */
.pages {
    padding: 60px 0;
}

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

.pages h1 {
    font-size: 2.5rem;
    margin-bottom: 30px;
}

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

.pages p {
    margin-bottom: 20px;
    line-height: 1.7;
}

.pages a {
    text-decoration: underline;
}

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

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