/* ------------------- */
/* RESET & GLOBAL      */
/* ------------------- */
:root {
    --bg-dark: #121826;
    --text-light: #F0F0F0;
    --text-secondary: #A0AEC0;
    --accent-primary: #A450E4;
    --accent-primary-hover: #BF7EFF;
    --font-heading: 'Exo 2', sans-serif;
    --font-body: 'Lato', sans-serif;
}

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

html {
    scroll-behavior: smooth;
}

body {
    background-color: var(--bg-dark);
    color: var(--text-light);
    font-family: var(--font-body);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 700;
    color: var(--text-light);
    line-height: 1.2;
}

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

ul {
    list-style: none;
}

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

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

/* ------------------- */
/* HEADER              */
/* ------------------- */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 1rem 0;
    z-index: 1000;
    background-color: rgba(18, 24, 38, 0.8);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(160, 174, 192, 0.1);
    transition: background-color 0.3s ease;
}

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

.header__logo {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 700;
}

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

.header__nav-list {
    display: flex;
    gap: 2.5rem;
}

.header__nav-list a {
    font-size: 1rem;
    font-weight: 700;
    padding: 0.5rem 0;
    position: relative;
}

.header__nav-list a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background-color: var(--accent-primary);
    transform: scaleX(0);
    transform-origin: right;
    transition: transform 0.4s cubic-bezier(0.19, 1, 0.22, 1);
}

.header__nav-list a:hover::after,
.header__nav-list a:focus::after {
    transform: scaleX(1);
    transform-origin: left;
}

.header__burger-btn {
    display: none;
    background: transparent;
    border: none;
    color: var(--text-light);
    cursor: pointer;
    z-index: 1001; /* To be above the nav on mobile */
}

/* ------------------- */
/* FOOTER              */
/* ------------------- */
.footer {
    padding-top: 4rem;
    background-color: #0D1117;
    border-top: 1px solid rgba(160, 174, 192, 0.1);
}

.footer__container {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1.5fr;
    gap: 3rem;
    margin-bottom: 3rem;
}

.footer__logo {
    font-family: var(--font-heading);
    font-size: 1.75rem;
    font-weight: 700;
    display: inline-block;
    margin-bottom: 0.5rem;
}

.footer__tagline {
    color: var(--text-secondary);
    max-width: 300px;
}

.footer__title {
    font-size: 1.25rem;
    margin-bottom: 1.5rem;
    position: relative;
}

.footer__title::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -8px;
    width: 30px;
    height: 2px;
    background: var(--accent-primary);
}

.footer__list li {
    margin-bottom: 0.75rem;
}

.footer__list a:hover {
    color: var(--accent-primary);
    padding-left: 5px;
    transition: all 0.3s ease;
}

.footer__list--contact li {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    color: var(--text-secondary);
}

.footer__list--contact a {
    color: var(--text-secondary);
}
.footer__list--contact a:hover {
    color: var(--accent-primary);
    padding-left: 0;
}

.footer__socials {
    display: flex;
    gap: 1rem;
    margin-top: 1.5rem;
}

.footer__socials a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border: 1px solid var(--text-secondary);
    border-radius: 50%;
    color: var(--text-secondary);
    transition: all 0.3s ease;
}

.footer__socials a:hover {
    background-color: var(--accent-primary);
    border-color: var(--accent-primary);
    color: var(--text-light);
    transform: translateY(-3px);
}

.footer__copyright {
    text-align: center;
    padding: 1.5rem 0;
    border-top: 1px solid rgba(160, 174, 192, 0.1);
    color: var(--text-secondary);
    font-size: 0.9rem;
}


/* ------------------- */
/* RESPONSIVE          */
/* ------------------- */
@media (max-width: 992px) {
    .header__nav {
        position: fixed;
        top: 0;
        left: -100%;
        width: 100%;
        height: 100vh;
        background-color: var(--bg-dark);
        display: flex;
        justify-content: center;
        align-items: center;
        transition: left 0.35s ease-in-out;
    }

    .header__nav.is-active {
        left: 0;
    }

    .header__nav-list {
        flex-direction: column;
        text-align: center;
        gap: 2rem;
    }

    .header__nav-list a {
        font-size: 1.5rem;
    }

    .header__burger-btn {
        display: block;
    }
    
    .footer__container {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 576px) {
    .footer__container {
        grid-template-columns: 1fr;
        text-align: center;
    }
    .footer__column--info {
        align-items: center;
    }
    .footer__tagline {
        margin: 0 auto;
    }
    .footer__title::after {
       left: 50%;
       transform: translateX(-50%);
    }
    .footer__list--contact li {
       justify-content: center;
    }
    .footer__socials {
        justify-content: center;
    }
}

/* Додайте цей код в кінець style.css */

/* ------------------- */
/* REUSABLE COMPONENTS */
/* ------------------- */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.8rem 2rem;
    background-color: var(--accent-primary);
    color: var(--text-light);
    border-radius: 50px;
    font-family: var(--font-heading);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border: 2px solid transparent;
    transition: all 0.3s ease;
    cursor: pointer;
}

.btn:hover {
    background-color: var(--accent-primary-hover);
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(164, 80, 228, 0.2);
}

/* ------------------- */
/* HERO SECTION        */
/* ------------------- */
.hero {
    position: relative;
    height: 100vh;
    min-height: 700px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding-top: 80px; /* Відступ для фіксованого хедера */
    overflow: hidden;
}

#particles-js {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

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

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

.hero__title {
    font-size: clamp(2.5rem, 5vw, 4.5rem); /* Адаптивний розмір шрифту */
    font-weight: 700;
    margin-bottom: 1rem;
    
    /* Градієнтний текст */
    background: linear-gradient(45deg, #fff, #c287f8);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-fill-color: transparent;
}

.hero__subtitle {
    font-size: clamp(1rem, 2vw, 1.25rem);
    color: var(--text-secondary);
    max-width: 650px;
    margin: 0 auto 2.5rem auto;
    line-height: 1.7;
}

.hero__cta i {
    transition: transform 0.3s ease;
}

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

/* ------------------- */
/* ABOUT SECTION       */
/* ------------------- */
.about {
    padding: 6rem 0;
    overflow-x: hidden; /* Щоб анімація не створювала горизонтальний скрол */
}

.about__container {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 4rem;
    align-items: center;
}

.about__title {
    font-size: clamp(2rem, 4vw, 3rem);
    margin-bottom: 1.5rem;
    line-height: 1.3;
}

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

.about__features {
    display: grid;
    gap: 1.5rem;
}

.feature-card {
    padding: 2rem;
    border: 1px solid rgba(160, 174, 192, 0.2);
    border-radius: 12px;
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0));
    backdrop-filter: blur(5px);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.feature-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.2);
    border-color: rgba(164, 80, 228, 0.5);
}

.feature-card__icon {
    margin-bottom: 1rem;
    color: var(--accent-primary);
}

.feature-card__icon i {
    width: 36px;
    height: 36px;
}

.feature-card__title {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

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

/* Анімація появи при скролі */
.about__content, .feature-card {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.about__content.is-visible, .feature-card.is-visible {
    opacity: 1;
    transform: translateY(0);
}

/* Затримка для карток, щоб вони з'являлись по черзі */
.feature-card:nth-child(2) {
    transition-delay: 0.2s;
}
.feature-card:nth-child(3) {
    transition-delay: 0.4s;
}

/* Адаптивність */
@media (max-width: 992px) {
    .about__container {
        grid-template-columns: 1fr;
    }
    .about__content {
        text-align: center;
    }
}

/* ------------------- */
/* DIRECTIONS SECTION  */
/* ------------------- */
.directions {
    padding: 6rem 0;
    background-color: #0D1117; /* Трохи світліший фон для виділення секції */
}

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

.directions__title {
    font-size: clamp(2rem, 4vw, 3rem);
    margin-bottom: 1rem;
}

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

.directions__content-wrapper {
    display: grid;
    grid-template-columns: 1fr 3fr;
    gap: 3rem;
    min-height: 450px;
}

.directions__tabs {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    border-right: 1px solid rgba(160, 174, 192, 0.2);
}

.directions__tab-btn {
    width: 100%;
    padding: 1rem 1.5rem;
    font-family: var(--font-heading);
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-secondary);
    background: transparent;
    border: none;
    border-left: 3px solid transparent;
    text-align: left;
    cursor: pointer;
    transition: all 0.3s ease;
}

.directions__tab-btn:hover {
    background-color: rgba(164, 80, 228, 0.1);
    color: var(--text-light);
}

.directions__tab-btn.is-active {
    color: var(--accent-primary);
    background-color: rgba(164, 80, 228, 0.05);
    border-left-color: var(--accent-primary);
}

.directions__content-panes {
    position: relative;
}

.directions__pane {
    display: grid;
    grid-template-columns: 200px 1fr;
    gap: 2rem;
    align-items: center;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: opacity 0.4s ease-out, transform 0.4s ease-out, visibility 0.4s;
}

.directions__pane.is-active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.directions__pane-img {
    width: 200px;
    height: 200px;
    object-fit: cover;
    border-radius: 12px;
    border: 1px solid rgba(160, 174, 192, 0.2);
}

.directions__pane-text h3 {
    font-size: 1.8rem;
    margin-bottom: 1rem;
}

.directions__pane-text p {
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
    max-width: 600px;
}

.directions__tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-bottom: 2rem;
}

.directions__tags li {
    padding: 0.25rem 0.75rem;
    background-color: rgba(160, 174, 192, 0.1);
    border-radius: 20px;
    font-size: 0.9rem;
    color: var(--text-secondary);
}

/* Адаптивність */
@media (max-width: 992px) {
    .directions__content-wrapper {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    .directions__tabs {
        flex-direction: row;
        overflow-x: auto;
        padding-bottom: 1rem;
        border-right: none;
        border-bottom: 1px solid rgba(160, 174, 192, 0.2);
    }
    .directions__tab-btn {
        white-space: nowrap;
        border-left: none;
        border-bottom: 3px solid transparent;
    }
    .directions__tab-btn.is-active {
        border-bottom-color: var(--accent-primary);
    }
}

@media (max-width: 768px) {
    .directions__pane {
        grid-template-columns: 1fr;
        text-align: center;
    }
    .directions__pane-img {
        margin: 0 auto 1.5rem auto;
    }
    .directions__tags {
        justify-content: center;
    }
}

/* ------------------- */
/* FORMATS SECTION     */
/* ------------------- */
.formats {
    padding: 6rem 0;
}

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

.formats__title {
    font-size: clamp(2rem, 4vw, 3rem);
    margin-bottom: 1rem;
}

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

.formats__grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

.format-card {
    border: 1px solid rgba(160, 174, 192, 0.2);
    border-radius: 16px;
    padding: 2.5rem 2rem;
    text-align: center;
    background: radial-gradient(circle at top left, rgba(164, 80, 228, 0.05), transparent 50%);
    transition: transform 0.3s ease, border-color 0.3s ease;
}

.format-card:hover {
    transform: translateY(-10px);
    border-color: var(--accent-primary);
}

.format-card__icon {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    width: 60px;
    height: 60px;
    margin-bottom: 1.5rem;
    background-color: rgba(164, 80, 228, 0.1);
    border-radius: 50%;
    color: var(--accent-primary);
}

.format-card__icon i {
    width: 32px;
    height: 32px;
}

.format-card__title {
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.format-card__text {
    color: var(--text-secondary);
    line-height: 1.6;
}

/* Загальний клас для анімації, щоб не дублювати код */
.animate-on-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.animate-on-scroll.is-visible {
    opacity: 1;
    transform: translateY(0);
}

/* Затримка для плавного каскадного ефекту */
.format-card:nth-child(2) { transition-delay: 0.1s; }
.format-card:nth-child(3) { transition-delay: 0.2s; }
.format-card:nth-child(4) { transition-delay: 0.3s; }

/* ------------------- */
/* AUDIENCE SECTION    */
/* ------------------- */
.audience {
    padding: 6rem 0;
    background-color: #0D1117;
}

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

.audience__title {
    font-size: clamp(2rem, 4vw, 3rem);
    margin-bottom: 1rem;
}

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

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

.audience-card {
    background-color: var(--bg-dark);
    border: 1px solid rgba(160, 174, 192, 0.2);
    border-radius: 16px;
    padding: 2.5rem;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    transition: border-color 0.3s ease;
}

.audience-card:hover {
    border-color: var(--accent-primary);
}

.audience-card__icon-wrapper {
    width: 50px;
    height: 50px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--accent-primary);
    margin-bottom: 1.5rem;
    background-color: rgba(164, 80, 228, 0.1);
    border-radius: 10px;
}

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

.audience-card__title {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    text-align: left;
}

.audience-card__text {
    color: var(--text-secondary);
    line-height: 1.6;
    text-align: left;
}

/* Затримка для анімації */
.audience-card:nth-child(2) { transition-delay: 0.1s; }
.audience-card:nth-child(3) { transition-delay: 0.2s; }
.audience-card:nth-child(4) { transition-delay: 0.3s; }

/* Адаптивність */
@media (max-width: 768px) {
    .audience__grid {
        grid-template-columns: 1fr;
    }
}

/* ------------------- */
/* CONTACT SECTION     */
/* ------------------- */
.contact {
    padding: 6rem 0;
}

.contact__container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: flex-start;
}

.contact__title {
    font-size: clamp(2rem, 4vw, 3rem);
    margin-bottom: 1rem;
}

.contact__subtitle {
    font-size: 1.1rem;
    color: var(--text-secondary);
    line-height: 1.7;
    margin-bottom: 2.5rem;
}

.contact__details {
    list-style: none;
    padding: 0;
    margin-bottom: 2.5rem;
}

.contact__details li {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
    color: var(--text-secondary);
}

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

.contact__map-placeholder {
    width: 100%;
    height: 200px;
    background-color: #0D1117;
    border: 1px solid rgba(160, 174, 192, 0.2);
    border-radius: 12px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    color: var(--text-secondary);
}

.contact__map-placeholder i {
    width: 48px;
    height: 48px;
    margin-bottom: 1rem;
}

.contact__form-wrapper {
    position: relative;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: var(--text-secondary);
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 0.8rem 1rem;
    background-color: #0D1117;
    border: 1px solid rgba(160, 174, 192, 0.2);
    border-radius: 8px;
    color: var(--text-light);
    font-family: var(--font-body);
    font-size: 1rem;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--accent-primary);
    box-shadow: 0 0 0 3px rgba(164, 80, 228, 0.3);
}

.form-group--captcha input {
    max-width: 150px;
}

.contact-form__btn {
    width: 100%;
    justify-content: center;
}

.form-message {
    display: none;
    padding: 1.5rem;
    border-radius: 8px;
    text-align: center;
    font-size: 1.1rem;
    display: none;
    align-items: center;
    justify-content: center;
    gap: 1rem;
}

.form-message--success {
    background-color: rgba(22, 163, 74, 0.1);
    border: 1px solid rgba(22, 163, 74, 0.5);
    color: #4ade80;
}

.form-message--error {
    background-color: rgba(239, 68, 68, 0.1);
    border: 1px solid rgba(239, 68, 68, 0.5);
    color: #f87171;
}

/* Адаптивність */
@media (max-width: 992px) {
    .contact__container {
        grid-template-columns: 1fr;
    }
}

/* ------------------- */
/* COOKIE POPUP        */
/* ------------------- */
.cookie-popup {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background-color: #0D1117;
    border-top: 1px solid rgba(160, 174, 192, 0.2);
    padding: 1.5rem 2rem;
    z-index: 2000;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 2rem;
    transform: translateY(100%);
    opacity: 0;
    transition: transform 0.5s ease-in-out, opacity 0.5s ease-in-out;
}

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

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

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

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

/* Створюємо варіацію для вторинної кнопки */
.btn--secondary {
    background-color: transparent;
    border: 1px solid var(--accent-primary);
    color: var(--accent-primary);
    padding: 0.6rem 1.5rem;
}

.btn--secondary:hover {
    background-color: var(--accent-primary);
    color: var(--text-light);
    transform: translateY(0); /* Забираємо ефект підстрибування для цієї кнопки */
    box-shadow: none;
}

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

/* ------------------- */
/* POLICY PAGES        */
/* ------------------- */
.pages {
    padding: 10rem 0 6rem 0; /* Більший відступ зверху через фіксований хедер */
}

.pages .container {
    max-width: 800px; /* Робимо контент вужчим для кращої читабельності */
}

.pages h1 {
    font-size: 3rem;
    margin-bottom: 2rem;
    border-bottom: 1px solid rgba(160, 174, 192, 0.2);
    padding-bottom: 1rem;
}

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

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

.pages ul {
    list-style-type: disc;
    padding-left: 2rem;
    margin-bottom: 1.5rem;
}

.pages li {
    margin-bottom: 1rem;
    color: var(--text-secondary);
    font-size: 1.1rem;
    line-height: 1.8;
}

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

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

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