/* ==================== GLOBAL STYLES ==================== */
:root {
    /* Colors */
    --background-dark: #0D1B2A;
    --background-light: #E0E1DD;
    --text-dark: #0D1B2A;
    --text-light: #E0E1DD;
    --accent-color: #FF6B6B;
    --secondary-color: #415A77;

    /* Fonts */
    --font-family-headings: 'Space Grotesk', sans-serif;
    --font-family-body: 'Manrope', sans-serif;

    /* Other */
    --container-width: 1200px;
    --header-height: 80px;
    --border-radius: 8px;
    --transition-duration: 0.3s;
}

*,
*::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;
    background-color: var(--background-dark);
    color: var(--text-light);
    overflow-x: hidden;
}

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

ul {
    list-style: none;
}

a {
    text-decoration: none;
    color: inherit;
    transition: color var(--transition-duration) ease;
}

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

.container {
    max-width: var(--container-width);
    margin-left: auto;
    margin-right: auto;
    padding-left: 1.5rem;
    padding-right: 1.5rem;
}

/* ==================== HEADER ==================== */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 100;
    background-color: rgba(13, 27, 42, 0.8);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--secondary-color);
}

.header__container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: var(--header-height);
}

.header__logo {
    font-family: var(--font-family-headings);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-light);
}

.header__menu {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.header__menu-link {
    font-size: 1rem;
    font-weight: 500;
    color: var(--text-light);
    position: relative;
    padding-bottom: 5px;
}

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

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

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

.header__menu-link--cta {
    background-color: var(--accent-color);
    color: var(--text-dark);
    padding: 0.5rem 1rem;
    border-radius: var(--border-radius);
    transition: transform var(--transition-duration) ease, box-shadow var(--transition-duration) ease;
}

.header__menu-link--cta:hover {
    color: var(--text-dark);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(255, 107, 107, 0.4);
}
.header__menu-link--cta:hover::after {
    width: 0;
}


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

/* Header Responsive */
@media screen and (max-width: 768px) {
    .header__nav {
        display: none; /* Will be handled by JS */
    }
    .header__burger {
        display: block;
    }
}


/* ==================== FOOTER ==================== */
.footer {
    background-color: #08121d;
    padding: 4rem 0;
    border-top: 1px solid var(--secondary-color);
    font-size: 0.9rem;
}

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

.footer__logo {
    font-family: var(--font-family-headings);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-light);
    margin-bottom: 1rem;
    display: inline-block;
}

.footer__copyright {
    color: var(--secondary-color);
}

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

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

.footer__link {
    color: var(--secondary-color);
}

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

.footer__list--contacts {
    gap: 1rem;
}

.footer__list--contacts .footer__link {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.footer__icon {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
}

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

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

/* ==================== HERO SECTION ==================== */
.hero {
    position: relative;
    height: 100vh;
    min-height: 600px;
    display: flex;
    align-items: center;
    justify-content: center;
    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;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.hero__title {
    font-size: 4rem;
    font-weight: 700;
    line-height: 1.1;
    max-width: 800px;
    margin-bottom: 1rem;
    background: linear-gradient(90deg, var(--text-light), #b8b9b8);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-fill-color: transparent;
}

.hero__subtitle {
    font-size: 1.25rem;
    max-width: 650px;
    color: var(--secondary-color);
    margin-bottom: 2rem;
}

.hero__cta {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background-color: var(--accent-color);
    color: var(--text-dark);
    font-family: var(--font-family-headings);
    font-size: 1.1rem;
    font-weight: 500;
    padding: 0.8rem 1.8rem;
    border-radius: var(--border-radius);
    transition: transform var(--transition-duration) ease, box-shadow var(--transition-duration) ease;
}

.hero__cta:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(255, 107, 107, 0.4);
}

.hero__cta-icon {
    width: 20px;
    height: 20px;
    transition: transform var(--transition-duration) ease;
}

.hero__cta:hover .hero__cta-icon {
    transform: translateX(5px);
}

/* Hero Responsive */
@media screen and (max-width: 768px) {
    .hero__title {
        font-size: 2.5rem;
    }
    .hero__subtitle {
        font-size: 1.1rem;
    }
}

/* ==================== PRINCIPLES SECTION ==================== */
.principles {
    padding: 6rem 0;
    background-color: var(--background-light);
    color: var(--text-dark);
}

.principles__header {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 4rem;
}

.principles__title {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.principles__subtitle {
    font-size: 1.1rem;
    color: #555;
    line-height: 1.7;
}

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

.principles__card {
    background-color: #fff;
    padding: 2rem;
    border-radius: var(--border-radius);
    border: 1px solid #ddd;
    text-align: center;
    transition: transform var(--transition-duration) ease, box-shadow var(--transition-duration) ease;
}

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

.principles__card-icon {
    margin: 0 auto 1.5rem;
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: var(--accent-color);
    color: var(--text-dark);
    border-radius: 50%;
}

.principles__card-icon svg {
    width: 32px;
    height: 32px;
}

.principles__card-title {
    font-size: 1.5rem;
    margin-bottom: 0.75rem;
}

.principles__card-text {
    color: #555;
    font-size: 0.95rem;
}

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

@media screen and (max-width: 576px) {
    .principles {
        padding: 4rem 0;
    }
    .principles__grid {
        grid-template-columns: 1fr;
    }
    .principles__title {
        font-size: 2rem;
    }
}

/* ==================== TECHNOLOGIES SECTION ==================== */
.tech {
    padding: 6rem 0;
    background-color: var(--background-dark);
    color: var(--text-light);
}

.tech__header {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 4rem;
}

.tech__title {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.tech__subtitle {
    font-size: 1.1rem;
    color: var(--secondary-color);
    line-height: 1.7;
}

.tech__content-wrapper {
    display: grid;
    grid-template-columns: 1fr 3fr;
    gap: 3rem;
    align-items: flex-start;
}

.tech__tabs-nav {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.tech__tab-btn {
    width: 100%;
    padding: 1rem 1.5rem;
    font-family: var(--font-family-headings);
    font-size: 1rem;
    font-weight: 500;
    background-color: transparent;
    border: 1px solid var(--secondary-color);
    color: var(--secondary-color);
    border-radius: var(--border-radius);
    cursor: pointer;
    text-align: left;
    transition: background-color var(--transition-duration) ease, color var(--transition-duration) ease;
}

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

.tech__tab-btn--active {
    background-color: var(--accent-color);
    border-color: var(--accent-color);
    color: var(--text-dark);
}
.tech__tab-btn--active:hover {
    background-color: var(--accent-color);
    color: var(--text-dark);
}

.tech__tabs-content {
    position: relative;
    min-height: 300px; /* Adjust as needed */
}

.tech__tab-pane {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    align-items: center;
    gap: 2rem;
    opacity: 0;
    visibility: hidden;
    position: absolute;
    top: 0;
    left: 0;
    transition: opacity var(--transition-duration) ease;
}

.tech__tab-pane--active {
    opacity: 1;
    visibility: visible;
    position: relative;
}

.tech__pane-title {
    font-size: 2rem;
    margin-bottom: 1rem;
}

.tech__pane-image img {
    border-radius: var(--border-radius);
}

/* Tech Responsive */
@media screen and (max-width: 992px) {
    .tech__content-wrapper {
        grid-template-columns: 1fr;
    }
    .tech__tabs-nav {
        flex-direction: row;
        overflow-x: auto;
        padding-bottom: 1rem; /* for scrollbar */
        margin-bottom: 2rem;
    }
    .tech__tab-btn {
        white-space: nowrap;
    }
}

@media screen and (max-width: 768px) {
    .tech__tab-pane {
        grid-template-columns: 1fr;
    }
    .tech__pane-image {
        order: -1; /* Image on top */
        margin-bottom: 1.5rem;
    }
    .tech__pane-title {
        font-size: 1.5rem;
    }
}

/* ==================== FORMATS SECTION ==================== */
.formats {
    padding: 6rem 0;
    background-color: var(--background-light);
    color: var(--text-dark);
}

.formats__header {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 4rem;
}

.formats__title {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.formats__subtitle {
    font-size: 1.1rem;
    color: #555;
    line-height: 1.7;
}

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

.formats__card {
    background-color: #fff;
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    transition: transform var(--transition-duration) ease, box-shadow var(--transition-duration) ease;
    border: 1px solid #ddd;
}

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

.formats__card-image {
    position: relative;
    height: 200px;
    overflow: hidden;
}

.formats__card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.formats__card:hover .formats__card-image img {
    transform: scale(1.05);
}

.formats__card-icon {
    position: absolute;
    bottom: -30px;
    right: 20px;
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: var(--accent-color);
    color: var(--text-dark);
    border-radius: 50%;
    border: 4px solid #fff;
}

.formats__card-icon svg {
    width: 28px;
    height: 28px;
}

.formats__card-content {
    padding: 2.5rem 1.5rem 1.5rem;
}

.formats__card-title {
    font-size: 1.5rem;
    margin-bottom: 0.75rem;
}

.formats__card-text {
    font-size: 0.95rem;
    color: #555;
}

/* Formats Responsive */
@media screen and (max-width: 992px) {
    .formats__grid {
        grid-template-columns: 1fr;
        max-width: 450px;
        margin: 0 auto;
    }
}

@media screen and (max-width: 576px) {
    .formats {
        padding: 4rem 0;
    }
    .formats__title {
        font-size: 2rem;
    }
}

/* ==================== CASES SECTION ==================== */
.cases {
    padding: 6rem 0;
    background-color: var(--background-dark);
    color: var(--text-light);
}

.cases__header {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 4rem;
}

.cases__title {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.cases__subtitle {
    font-size: 1.1rem;
    color: var(--secondary-color);
    line-height: 1.7;
}

.cases__list {
    display: flex;
    flex-direction: column;
    gap: 5rem;
}

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

.cases__item-image img {
    border-radius: var(--border-radius);
    border: 1px solid var(--secondary-color);
}

/* Modifier to reverse the order */
.cases__item--reverse .cases__item-image {
    order: 2;
}
.cases__item--reverse .cases__item-content {
    order: 1;
}

.cases__item-title {
    font-size: 2rem;
    margin-bottom: 1rem;
}

.cases__item-text {
    color: var(--secondary-color);
    margin-bottom: 2rem;
}

.cases__item-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--accent-color);
    font-weight: 700;
    font-family: var(--font-family-headings);
    transition: transform var(--transition-duration) ease;
}
.cases__item-link:hover {
    transform: translateX(5px);
}
.cases__item-link svg {
    width: 20px;
    height: 20px;
}

/* Cases Responsive */
@media screen and (max-width: 768px) {
    .cases__item,
    .cases__item--reverse {
        grid-template-columns: 1fr;
    }
    .cases__item--reverse .cases__item-image,
    .cases__item--reverse .cases__item-content {
        order: initial; /* Reset order for stacking */
    }
    .cases__item-title {
        font-size: 1.5rem;
    }
    .cases__header {
        margin-bottom: 3rem;
    }
    .cases__list {
        gap: 3rem;
    }
}

/* ==================== CONTACT SECTION ==================== */
.contact {
    padding: 6rem 0;
    background-color: var(--background-light);
    color: var(--text-dark);
}

.contact__header {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 4rem;
}

.contact__title {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.contact__subtitle {
    font-size: 1.1rem;
    color: #555;
    line-height: 1.7;
}

.contact__wrapper {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 3rem;
    background-color: #fff;
    padding: 3rem;
    border-radius: var(--border-radius);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
}

.contact__info-title {
    font-size: 1.8rem;
    margin-bottom: 1rem;
}

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

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

.contact__info-list a, .contact__info-list span {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    color: #333;
}

.contact__info-list a:hover {
    color: var(--accent-color);
}

.contact__info-list svg {
    width: 20px;
    height: 20px;
    color: var(--accent-color);
    flex-shrink: 0;
}

.contact__form {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.form__group {
    display: flex;
    flex-direction: column;
}

.form__label {
    margin-bottom: 0.5rem;
    font-weight: 700;
    font-size: 0.9rem;
}

.form__input {
    width: 100%;
    padding: 0.8rem 1rem;
    font-size: 1rem;
    font-family: var(--font-family-body);
    border: 1px solid #ccc;
    border-radius: var(--border-radius);
    transition: border-color var(--transition-duration) ease, box-shadow var(--transition-duration) ease;
}

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

.form__group--checkbox {
    flex-direction: row;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem;
}

.form__group--checkbox a {
    color: var(--accent-color);
    text-decoration: underline;
}

.form__button {
    padding: 0.9rem 1.5rem;
    font-size: 1.1rem;
    font-family: var(--font-family-headings);
    font-weight: 700;
    background-color: var(--accent-color);
    color: var(--text-dark);
    border: none;
    border-radius: var(--border-radius);
    cursor: pointer;
    transition: transform var(--transition-duration) ease, box-shadow var(--transition-duration) ease;
}
.form__button:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(255, 107, 107, 0.4);
}
.form__button:disabled {
    background-color: #aaa;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.form__success-message {
    text-align: center;
    padding: 2rem;
    border: 2px dashed var(--accent-color);
    border-radius: var(--border-radius);
}
.form__success-message svg {
    width: 48px;
    height: 48px;
    color: var(--accent-color);
    margin-bottom: 1rem;
}

/* Contact Responsive */
@media screen and (max-width: 992px) {
    .contact__wrapper {
        grid-template-columns: 1fr;
    }
}
@media screen and (max-width: 576px) {
    .contact__wrapper {
        padding: 1.5rem;
    }
}

/* ==================== COOKIE POPUP ==================== */
.cookie-popup {
    position: fixed;
    bottom: 1.5rem;
    left: 1.5rem;
    right: 1.5rem;
    max-width: 500px;
    background-color: var(--background-light);
    color: var(--text-dark);
    padding: 1rem 1.5rem;
    border-radius: var(--border-radius);
    box-shadow: 0 5px 25px rgba(0, 0, 0, 0.2);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    z-index: 200;
    transform: translateY(200%);
    transition: transform 0.5s ease-in-out;
}

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

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

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

.cookie-popup__button {
    background-color: var(--accent-color);
    color: var(--text-dark);
    border: none;
    padding: 0.6rem 1rem;
    border-radius: var(--border-radius);
    cursor: pointer;
    font-weight: 700;
    white-space: nowrap;
    transition: background-color var(--transition-duration) ease;
}

.cookie-popup__button:hover {
    background-color: #ff8a8a;
}

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

/* ==================== POLICY PAGES STYLES ==================== */
.pages {
    background-color: var(--background-light);
    color: var(--text-dark);
    padding: calc(var(--header-height) + 4rem) 0 4rem;
}

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

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

.pages h1 {
    font-size: 3rem;
    border-bottom: 2px solid var(--accent-color);
    padding-bottom: 1rem;
    margin-bottom: 2rem;
}

.pages h2 {
    font-size: 2rem;
    margin-top: 3rem;
}

.pages p, .pages li {
    font-family: var(--font-family-body);
    font-size: 1.1rem;
    line-height: 1.8;
    margin-bottom: 1.5rem;
}

.pages ul {
    list-style: disc;
    padding-left: 2rem;
}

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

.pages strong {
    font-weight: 700;
}