/* ==================== GLOBAL STYLES ==================== */
/* Google Fonts Import - already in HTML */

:root {
    --bg-color: #F0F4F8;
    --text-color: #101828;
    --text-color-secondary: #475467;
    --accent-color: #6941C6;
    --accent-color-light: #E9D7FE;
    --white-color: #FFFFFF;
    --border-color: #D0D5DD;

    --font-main: 'Manrope', sans-serif;
    --header-height: 72px;
}

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

html {
    scroll-behavior: smooth;
}

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

a {
    text-decoration: none;
    color: inherit;
    transition: color 0.3s ease;
}

ul {
    list-style: none;
}

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

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

/* ==================== HEADER ==================== */
.header {
    background-color: var(--bg-color);
    border-bottom: 1px solid var(--border-color);
    height: var(--header-height);
    display: flex;
    align-items: center;
    position: sticky;
    top: 0;
    z-index: 100;
}

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

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

.nav__list {
    display: flex;
    align-items: center;
    gap: 32px;
}

.nav__link {
    font-weight: 600;
    color: var(--text-color-secondary);
    position: relative;
    padding: 8px 0;
}

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

.nav__link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background-color: var(--accent-color);
    transform: scaleX(0);
    transform-origin: right;
    transition: transform 0.3s ease-out;
}

.nav__link:hover::after {
    transform: scaleX(1);
    transform-origin: left;
}

.nav__link--button {
    background-color: var(--accent-color);
    color: var(--white-color);
    padding: 10px 20px;
    border-radius: 8px;
    transition: background-color 0.3s ease;
}

.nav__link--button:hover {
    background-color: #5935A9;
    color: var(--white-color);
}

.nav__link--button::after {
    display: none; /* No underline for button */
}

.header__burger-menu {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    color: var(--text-color);
}

/* Header Responsive */
@media (max-width: 768px) {
    .header__nav {
        display: none; /* Will be implemented with JS later */
    }
    .header__burger-menu {
        display: block;
    }
}

/* ==================== FOOTER ==================== */
.footer {
    background-color: var(--white-color);
    padding: 64px 0 32px;
    border-top: 1px solid var(--border-color);
}

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

.footer__logo {
    font-weight: 700;
    font-size: 24px;
    color: var(--text-color);
    margin-bottom: 16px;
    display: inline-block;
}

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

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

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

.footer__link {
    color: var(--text-color-secondary);
    font-weight: 600;
}

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

.footer-contacts__item {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--text-color-secondary);
    font-weight: 600;
}

.footer-contacts__item i {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
}

.footer__bottom {
    margin-top: 48px;
    padding-top: 32px;
    border-top: 1px solid var(--border-color);
    text-align: center;
}

.footer__copyright {
    color: var(--text-color-secondary);
    font-size: 14px;
}

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

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

/* ==================== BUTTONS ==================== */
.button {
    display: inline-block;
    padding: 12px 24px;
    border-radius: 8px;
    font-weight: 600;
    text-align: center;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.2s ease;
    border: 1px solid var(--accent-color);
    background-color: var(--accent-color);
    color: var(--white-color);
}

.button:hover {
    background-color: #5935A9;
    transform: translateY(-2px);
}


/* ==================== HERO SECTION ==================== */
.hero {
    padding: 80px 0;
    overflow: hidden; /* To hide elements before animation */
}

.hero__container {
    display: flex;
    align-items: center;
    gap: 48px;
}

.hero__content {
    flex: 1;
    max-width: 580px;
}

.hero__title {
    font-size: 56px;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 24px;
    min-height: 135px; /* Reserve space to prevent layout shift */
}

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

@keyframes blink {
    from, to { color: transparent }
    50% { color: var(--accent-color); }
}

.hero__subtitle {
    font-size: 18px;
    color: var(--text-color-secondary);
    max-width: 500px;
    margin-bottom: 32px;
    animation: fadeInUp 0.8s 1.5s both; /* Delay to start after typing */
}

.hero__cta {
    animation: fadeInUp 0.8s 1.8s both;
}

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

.hero__image-wrapper {
    padding: 24px;
    background-color: var(--white-color);
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(16, 24, 40, 0.08);
    animation: fadeInUp 0.8s 2s both;
}

.hero__image {
    border-radius: 12px;
}

/* Animation */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Hero Responsive */
@media (max-width: 992px) {
    .hero__title {
        font-size: 48px;
        min-height: 116px;
    }
}

@media (max-width: 768px) {
    .hero {
        padding: 60px 0;
        text-align: center;
    }

    .hero__container {
        flex-direction: column;
        gap: 40px;
    }

    .hero__content {
        max-width: 100%;
        order: 2; /* Text goes below image on mobile */
    }

    .hero__title {
        font-size: 40px;
        min-height: 100px; /* Adjust for smaller font */
    }

    .hero__subtitle {
        margin-left: auto;
        margin-right: auto;
    }

    .hero__visual {
        order: 1;
    }

    .hero__image-wrapper {
        padding: 16px;
    }
}
.hero__title:not(.typing-done)::after {
    content: '|';
    animation: blink 1s step-end infinite;
    color: var(--accent-color);
}

/* ==================== REUSABLE SECTION HEADER ==================== */
.section-header {
    text-align: center;
    margin-bottom: 64px;
}

.section-header__tag {
    display: inline-block;
    padding: 4px 12px;
    background-color: var(--accent-color-light);
    color: var(--accent-color);
    font-weight: 600;
    border-radius: 16px;
    margin-bottom: 12px;
}

.section-header__title {
    font-size: 36px;
    font-weight: 700;
    color: var(--text-color);
    max-width: 700px;
    margin: 0 auto;
}

/* ==================== PRINCIPLES SECTION ==================== */
.principles {
    padding: 80px 0;
    background-color: var(--white-color);
}

.principles__grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 32px;
}

.principle-card {
    background-color: var(--bg-color);
    padding: 32px;
    border-radius: 16px;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.principle-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 24px rgba(16, 24, 40, 0.08);
}

.principle-card__icon-wrapper {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background-color: var(--accent-color-light);
    margin-bottom: 24px;
}

.principle-card__icon-wrapper i {
    width: 32px;
    height: 32px;
    color: var(--accent-color);
}

.principle-card__title {
    font-size: 20px;
    font-weight: 700;
    color: var(--text-color);
    margin-bottom: 8px;
}

.principle-card__description {
    color: var(--text-color-secondary);
    font-size: 15px;
    line-height: 1.6;
}

/* Principles Responsive */
@media (max-width: 992px) {
    .principles__grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .section-header__title {
        font-size: 32px;
    }
}

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

/* ==================== TECHNOLOGIES SECTION ==================== */
.tech {
    padding: 80px 0;
}

.tech__layout {
    display: grid;
    grid-template-columns: 300px 1fr;
    gap: 48px;
    align-items: flex-start;
}

.tech__nav {
    display: flex;
    flex-direction: column;
    gap: 8px;
    position: sticky;
    top: 100px; /* header height + some space */
}

.tech__nav-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px;
    border-radius: 10px;
    cursor: pointer;
    font-weight: 600;
    color: var(--text-color-secondary);
    transition: background-color 0.3s ease, color 0.3s ease;
    border: 1px solid transparent;
}

.tech__nav-item:hover {
    background-color: var(--white-color);
    color: var(--text-color);
}

.tech__nav-item.is-active {
    background-color: var(--white-color);
    color: var(--accent-color);
    border-color: var(--border-color);
    font-weight: 700;
}

.tech__nav-item i {
    width: 24px;
    height: 24px;
    flex-shrink: 0;
}

@keyframes fadeInContent {
    from { opacity: 0; }
    to { opacity: 1; }
}

.tech__content {
    position: relative;
    min-height: 450px; /* Prevent layout shifts on content change */
}

.tech-card {
    display: none;
    background-color: var(--white-color);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 8px 16px rgba(16, 24, 40, 0.05);
    animation: fadeInContent 0.5s ease;
}

.tech-card.is-active {
    display: block;
}

.tech-card__image {
    width: 100%;
    height: 300px;
    object-fit: cover;
}

.tech-card__body {
    padding: 32px;
}

.tech-card__title {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 12px;
}

.tech-card__description {
    color: var(--text-color-secondary);
    margin-bottom: 24px;
}

.tech-card__tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.tech-card__tag {
    background-color: var(--bg-color);
    padding: 6px 12px;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 600;
    color: var(--text-color-secondary);
}


/* Tech Responsive */
@media (max-width: 992px) {
    .tech__layout {
        grid-template-columns: 250px 1fr;
        gap: 32px;
    }
}

@media (max-width: 768px) {
    .tech__layout {
        grid-template-columns: 1fr;
    }
    .tech__nav {
        position: relative;
        top: 0;
        flex-direction: row;
        overflow-x: auto;
        padding-bottom: 16px; /* For scrollbar */
        margin-bottom: 24px;
    }
    .tech__nav-item {
        white-space: nowrap;
    }
    .tech__content {
        min-height: auto;
    }
}

/* ==================== PROCESS SECTION ==================== */
.process {
    padding: 80px 0;
    background-color: var(--white-color);
}

.process__timeline {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 40px;
}

/* The vertical line */
.process__timeline::after {
    content: '';
    position: absolute;
    width: 3px;
    background-color: var(--accent-color-light);
    top: 20px;
    bottom: 20px;
    left: 50%;
    margin-left: -1.5px;
    z-index: 1;
}

.process__item {
    padding: 10px 40px;
    position: relative;
    width: 50%;
    display: flex;
    gap: 24px;
    align-items: center;
}

/* Align items to left and right */
.process__item:nth-child(odd) {
    align-self: flex-start;
    justify-content: flex-end;
    text-align: right;
}

.process__item:nth-child(even) {
    align-self: flex-end;
    flex-direction: row-reverse;
}

.process__point {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 2;
    display: flex;
    align-items: center;
    gap: 16px;
}

.process__item:nth-child(odd) .process__point {
    right: -48px;
    flex-direction: row-reverse;
}

.process__item:nth-child(even) .process__point {
    left: -48px;
}

.process__icon-wrapper {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background-color: var(--accent-color);
    color: var(--white-color);
    display: flex;
    align-items: center;
    justify-content: center;
    border: 4px solid var(--white-color);
}

.process__icon-wrapper i {
    width: 28px;
    height: 28px;
}

.process__number {
    font-size: 24px;
    font-weight: 700;
    color: var(--text-color-secondary);
}

.process__content {
    background: var(--bg-color);
    padding: 24px;
    border-radius: 12px;
    flex-grow: 1;
}

.process__title {
    font-size: 20px;
    margin-bottom: 8px;
    color: var(--text-color);
}

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

/* Process Responsive */
@media (max-width: 768px) {
    .process__timeline::after {
        left: 32px; /* Move line to the left */
    }

    .process__item,
    .process__item:nth-child(even) {
        width: 100%;
        padding-left: 80px; /* Space for the line and point */
        padding-right: 0;
        align-self: center;
        flex-direction: row;
        text-align: left;
    }

    .process__point,
    .process__item:nth-child(odd) .process__point,
    .process__item:nth-child(even) .process__point {
        left: 0;
        transform: translateY(-50%);
        flex-direction: row;
    }

    .process__number {
        display: none; /* Hide number on mobile to save space */
    }

    .process__icon-wrapper {
        width: 56px;
        height: 56px;
    }
}
/* ==================== CASES SECTION ==================== */
.cases {
    padding: 80px 0;
}

.cases-slider {
    position: relative;
    overflow: hidden;
}

.cases-slider__wrapper {
    display: flex;
    transition: transform 0.5s ease-in-out;
}

.cases-slider__slide {
    flex: 0 0 100%;
    width: 100%;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 48px;
    align-items: center;
    padding: 0 15px; /* Padding to prevent content from touching edges */
}

.case-study__image {
    width: 100%;
    height: 250px;
    object-fit: cover;
    border-radius: 12px;
    margin-bottom: 24px;
}

.case-study__title {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 12px;
}

.case-study__description {
    color: var(--text-color-secondary);
}

.testimonial {
    background-color: var(--white-color);
    padding: 40px;
    border-radius: 16px;
    border: 1px solid var(--border-color);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    height: 100%;
}

.testimonial__text {
    font-size: 18px;
    line-height: 1.7;
    font-style: italic;
    color: var(--text-color);
    margin-bottom: 24px;
    flex-grow: 1;
}

.testimonial__author {
    display: flex;
    align-items: center;
    gap: 16px;
}

.testimonial__avatar {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    object-fit: cover;
}

.testimonial__author-name {
    display: block;
    font-weight: 700;
}

.testimonial__author-title {
    display: block;
    color: var(--text-color-secondary);
    font-size: 14px;
}

.cases-slider__controls {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 24px;
    margin-top: 40px;
}

.cases-slider__button {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background-color: var(--white-color);
    border: 1px solid var(--border-color);
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    transition: background-color 0.3s ease;
    color: var(--text-color-secondary);
}

.cases-slider__button:hover {
    background-color: var(--bg-color);
    color: var(--accent-color);
}

.cases-slider__pagination {
    display: flex;
    gap: 8px;
}

.cases-slider__dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background-color: var(--border-color);
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.cases-slider__dot.is-active {
    background-color: var(--accent-color);
}

/* Cases Responsive */
@media (max-width: 992px) {
    .cases-slider__slide {
        grid-template-columns: 1fr;
        gap: 32px;
    }
    .testimonial {
        height: auto;
    }
}

@media (max-width: 576px) {
    .testimonial {
        padding: 24px;
    }
    .testimonial__text {
        font-size: 16px;
    }
    .case-study__title {
        font-size: 20px;
    }
}

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

.contact__container {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 64px;
    align-items: center;
}

.contact__info .section-header__tag {
    margin-bottom: 16px;
}

.contact__title {
    font-size: 36px;
    font-weight: 700;
    margin-bottom: 20px;
}

.contact__description {
    font-size: 18px;
    color: var(--text-color-secondary);
    line-height: 1.7;
}

.contact__form-wrapper {
    background-color: var(--white-color);
    padding: 40px;
    border-radius: 16px;
    box-shadow: 0 8px 16px rgba(16, 24, 40, 0.05);
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.form-group {
    display: flex;
    flex-direction: column;
}

.form-label {
    font-weight: 600;
    margin-bottom: 8px;
    font-size: 14px;
}

.form-input {
    padding: 12px 16px;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    font-size: 16px;
    font-family: var(--font-main);
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.form-input:focus {
    outline: none;
    border-color: var(--accent-color);
    box-shadow: 0 0 0 3px var(--accent-color-light);
}

.form-group--checkbox {
    flex-direction: row;
    align-items: center;
    gap: 12px;
}

.form-group--checkbox input[type="checkbox"] {
    width: 18px;
    height: 18px;
    accent-color: var(--accent-color);
}

.form-group--checkbox label {
    margin: 0;
    font-size: 14px;
    color: var(--text-color-secondary);
}

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

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

/* Success Message */
.contact-form__success-message {
    display: none;
    text-align: center;
    padding: 40px;
}

.success-message__icon {
    color: var(--accent-color);
    margin-bottom: 16px;
}

.success-message__icon i {
    width: 64px;
    height: 64px;
}

.success-message__title {
    font-size: 24px;
    margin-bottom: 8px;
}

.success-message__text {
    color: var(--text-color-secondary);
    font-size: 16px;
}

/* Contact Responsive */
@media (max-width: 992px) {
    .contact__container {
        grid-template-columns: 1fr;
        gap: 48px;
    }
    .contact__info {
        text-align: center;
    }
}

/* ==================== COOKIE POPUP ==================== */
.cookie-popup {
    position: fixed;
    bottom: 20px;
    left: 20px;
    right: 20px;
    max-width: 500px;
    background-color: var(--white-color);
    padding: 24px;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(16, 24, 40, 0.1);
    display: flex;
    align-items: center;
    gap: 24px;
    z-index: 200;
    transform: translateY(200%);
    transition: transform 0.5s ease-in-out;
}

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

.cookie-popup__text {
    color: var(--text-color-secondary);
    font-size: 14px;
    line-height: 1.5;
    flex-grow: 1;
}

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

.cookie-popup__button {
    flex-shrink: 0;
    padding: 10px 20px;
}

@media (max-width: 576px) {
    .cookie-popup {
        flex-direction: column;
        text-align: center;
        gap: 16px;
        bottom: 10px;
        left: 10px;
        right: 10px;
    }
}

/* ==================== GENERIC PAGES STYLING (privacy.html, etc.) ==================== */
.pages {
    padding: 80px 0;
    background-color: var(--white-color);
}

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

.pages h1 {
    font-size: 40px;
    font-weight: 700;
    margin-bottom: 24px;
    color: var(--text-color);
}

.pages h2 {
    font-size: 28px;
    font-weight: 700;
    margin-top: 40px;
    margin-bottom: 16px;
    color: var(--text-color);
}

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

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

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

.pages a {
    color: var(--accent-color);
    font-weight: 600;
    text-decoration: none;
}

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

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