/* ===================== GOOGLE FONTS ===================== */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500&family=Manrope:wght@600;700&display=swap');

/* ===================== CSS VARIABLES ===================== */
:root {
    /* Colors */
    --background-color: #121212;
    --surface-color: #1E1E1E;
    --text-color: #E0E0E0;
    --text-color-muted: #A0A0A0;
    --primary-color: #BB86FC;
    --secondary-color: #03DAC6;
    
    /* Fonts */
    --font-body: 'Inter', sans-serif;
    --font-heading: 'Manrope', sans-serif;
    
    /* Other */
    --header-height: 4.5rem;
    --border-radius: 8px;
    --transition-speed: 0.3s;
}

/* ===================== BASE STYLES ===================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

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

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    color: var(--text-color);
    margin-bottom: 0.5rem;
}

ul {
    list-style: none;
}

a {
    text-decoration: none;
    color: var(--text-color-muted);
    transition: color var(--transition-speed);
}

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

.container {
    max-width: 1200px;
    margin-left: 1.5rem;
    margin-right: 1.5rem;
}

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

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

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

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

.header__burger {
    display: none; /* Hidden on desktop */
    background: none;
    border: none;
    color: var(--text-color);
    cursor: pointer;
}

/* Navigation */
.nav__list {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.nav__link {
    font-weight: 500;
    font-size: 1rem;
    position: relative;
    padding-bottom: 0.25rem;
}

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

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

.nav__link--button {
    background-color: var(--primary-color);
    color: #000;
    padding: 0.5rem 1rem;
    border-radius: var(--border-radius);
    transition: background-color var(--transition-speed), color var(--transition-speed);
}
.nav__link--button:hover {
    background-color: var(--secondary-color);
    color: #000;
}
.nav__link--button::after {
    display: none;
}


/* Mobile Menu Styles */
@media screen and (max-width: 768px) {
    .header__burger {
        display: block;
    }

    .header__nav {
        position: fixed;
        top: var(--header-height);
        right: -100%;
        width: 70%;
        height: 100vh;
        background-color: var(--surface-color);
        padding: 2rem;
        transition: right var(--transition-speed) ease-in-out;
        border-left: 1px solid rgba(255, 255, 255, 0.1);
    }
    
    .header__nav.nav--active {
        right: 0;
    }

    .nav__list {
        flex-direction: column;
        align-items: flex-start;
        gap: 2rem;
    }
}


/* ===================== FOOTER ===================== */
.footer {
    background-color: var(--surface-color);
    padding-top: 4rem;
    margin-top: 5rem; /* To be adjusted based on final content */
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer__container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

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

.footer__description {
    color: var(--text-color-muted);
    font-size: 0.9rem;
}

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

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

.footer__link {
    font-size: 0.9rem;
}

.footer__list--contact li {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.footer__list--contact i {
    color: var(--primary-color);
    width: 20px;
    height: 20px;
}

.footer__bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding: 1.5rem 0;
    text-align: center;
    color: var(--text-color-muted);
    font-size: 0.9rem;
}

/* Responsive adjustments */
@media screen and (min-width: 1220px) {
    .container {
        margin-left: auto;
        margin-right: auto;
    }
}

/* ===================== HERO ===================== */
.hero {
    padding-top: calc(var(--header-height) + 3rem);
    padding-bottom: 4rem;
    overflow: hidden; /* To prevent visual bugs from animations */
}

.hero__container {
    display: grid;
    gap: 4rem;
}

.hero__content {
    text-align: center;
}

.hero__title {
    font-size: 2.5rem;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1.5rem;
    min-height: 100px; /* Reserve space to prevent layout shift */
}

.hero__title--highlight {
    color: var(--secondary-color);
}

.hero__title--cursor {
    color: var(--secondary-color);
    animation: blink 1s step-end infinite;
}

@keyframes blink {
    from, to { opacity: 1; }
    50% { opacity: 0; }
}

.hero__subtitle {
    font-size: 1.1rem;
    color: var(--text-color-muted);
    max-width: 600px;
    margin: 0 auto 2.5rem;
}

.hero__buttons {
    display: flex;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.hero__button {
    padding: 0.9rem 2rem;
    border-radius: var(--border-radius);
    font-weight: 500;
    font-size: 1rem;
    transition: all var(--transition-speed);
    display: inline-block;
    border: 2px solid transparent;
}

.hero__button--primary {
    background-color: var(--primary-color);
    color: #000;
}

.hero__button--primary:hover {
    background-color: var(--secondary-color);
    transform: translateY(-3px);
}

.hero__button--secondary {
    background-color: transparent;
    color: var(--primary-color);
    border-color: var(--primary-color);
}

.hero__button--secondary:hover {
    background-color: var(--primary-color);
    color: #000;
    transform: translateY(-3px);
}

/* Hero Visual Element */
.hero__visual {
    display: none; /* Hidden on mobile by default */
    position: relative;
    justify-content: center;
    align-items: center;
}

.hero__dot {
    width: 8px;
    height: 8px;
    background-color: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
}

/* Desktop layout and animations */
@media screen and (min-width: 992px) {
    .hero {
        padding-top: calc(var(--header-height) + 5rem);
        padding-bottom: 6rem;
    }

    .hero__container {
        grid-template-columns: 1.2fr 0.8fr;
        align-items: center;
        gap: 2rem;
    }

    .hero__content {
        text-align: left;
    }

    .hero__title {
        font-size: 3.5rem;
        min-height: 180px;
    }

    .hero__subtitle {
        margin: 0 0 2.5rem 0;
    }

    .hero__buttons {
        justify-content: flex-start;
    }
    
    .hero__visual {
        display: grid;
        grid-template-columns: repeat(4, 50px);
        grid-template-rows: repeat(4, 50px);
        gap: 1rem;
        transform: rotate(45deg);
    }

    .hero__dot:nth-child(2) { animation: pulse 2s infinite 0.5s; }
    .hero__dot:nth-child(5) { animation: pulse 2s infinite 0.2s; }
    .hero__dot:nth-child(7) { animation: pulse 2s infinite 1s; }
    .hero__dot:nth-child(11) { animation: pulse 2s infinite 0.7s; }
    .hero__dot:nth-child(14) { animation: pulse 2s infinite 0.4s; }
}

@keyframes pulse {
    0% {
        transform: scale(1);
        background-color: rgba(3, 218, 198, 0.4); /* secondary color */
        box-shadow: 0 0 5px rgba(3, 218, 198, 0.3);
    }
    50% {
        transform: scale(1.5);
        background-color: rgba(3, 218, 198, 1);
        box-shadow: 0 0 15px rgba(3, 218, 198, 0.7);
    }
    100% {
        transform: scale(1);
        background-color: rgba(3, 218, 198, 0.4);
        box-shadow: 0 0 5px rgba(3, 218, 198, 0.3);
    }
}


/* ===================== REUSABLE SECTION STYLES ===================== */
.section {
    padding-top: 5rem;
    padding-bottom: 5rem;
}

.section__title,
.section__subtitle {
    text-align: center;
}

.section__title {
    font-size: 2.25rem;
    margin-bottom: 1rem;
}

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


/* ===================== PRACTICE SECTION ===================== */
.practice__grid {
    display: grid;
    gap: 1.5rem;
    grid-template-columns: 1fr; /* Mobile-first: one column */
}

.practice-card {
    background-color: var(--surface-color);
    padding: 2rem;
    border-radius: var(--border-radius);
    border: 1px solid transparent;
    transition: transform var(--transition-speed), border-color var(--transition-speed);
}

.practice-card:hover {
    transform: translateY(-5px);
    border-color: var(--primary-color);
}

.practice-card__icon {
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: rgba(187, 134, 252, 0.1); /* Primary color with low opacity */
    border-radius: 50%;
    margin-bottom: 1.5rem;
}

.practice-card__icon i {
    width: 28px;
    height: 28px;
    color: var(--primary-color);
}

.practice-card__title {
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
}

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


/* Responsive grid for tablets and desktops */
@media screen and (min-width: 576px) {
    .practice__grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media screen and (min-width: 992px) {
    .practice__grid {
        grid-template-columns: repeat(4, 1fr);
    }
}


/* ===================== TOOLS SECTION ===================== */
.tools__layout {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    background-color: var(--surface-color);
    padding: 2rem;
    border-radius: var(--border-radius);
}

.tools__list {
    display: flex;
    flex-direction: row;
    gap: 0.5rem;
    overflow-x: auto; /* For scrolling on mobile */
    padding-bottom: 1rem; /* Space for scrollbar */
}

.tools__item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    width: 100%;
    padding: 1rem;
    border-radius: var(--border-radius);
    background-color: transparent;
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--text-color-muted);
    font-family: var(--font-body);
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    transition: background-color var(--transition-speed), color var(--transition-speed);
    flex-shrink: 0; /* Prevent items from shrinking on mobile */
}

.tools__item:hover {
    background-color: rgba(255, 255, 255, 0.05);
    color: var(--text-color);
}

.tools__item--active {
    background-color: var(--primary-color);
    color: #000;
    border-color: var(--primary-color);
}

.tools__item--active:hover {
    background-color: var(--primary-color);
    color: #000;
}

.tools__item i {
    width: 20px;
    height: 20px;
}

/* Display Area */
.tools__display-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 1.5rem;
    animation: fadeIn 0.5s ease-in-out;
}

.tools__display-img {
    width: 100px;
    height: 100px;
    border-radius: var(--border-radius);
    object-fit: cover;
    background-color: #333;
}

.tools__display-title {
    font-size: 1.75rem;
    color: var(--text-color);
}

.tools__display-category {
    display: inline-block;
    background-color: rgba(3, 218, 198, 0.1);
    color: var(--secondary-color);
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 500;
    margin-top: -1rem;
}

.tools__display-description {
    color: var(--text-color-muted);
    line-height: 1.7;
}

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

/* Tablet and Desktop Layout */
@media screen and (min-width: 768px) {
    .tools__layout {
        flex-direction: row;
        padding: 3rem;
    }

    .tools__list {
        flex-direction: column;
        overflow-x: initial;
        padding-bottom: 0;
        width: 300px; /* Fixed width for the list */
        flex-shrink: 0;
    }

    .tools__display-content {
        flex-direction: row;
        align-items: flex-start;
        text-align: left;
        gap: 2rem;
    }

    .tools__display-text {
        flex: 1;
    }

    .tools__display-title {
        margin-bottom: 0.5rem;
    }
}

/* ===================== PROCESS SECTION ===================== */
.process__steps {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2rem;
}

.process-step {
    background-color: var(--surface-color);
    padding: 2rem;
    border-radius: var(--border-radius);
    text-align: center;
    max-width: 350px;
    width: 100%;
}

.process-step__header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
}

.process-step__number {
    font-size: 2.5rem;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.1);
    font-family: var(--font-heading);
}

.process-step__icon {
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: rgba(3, 218, 198, 0.1);
    border-radius: 50%;
}

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

.process-step__title {
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
}

.process-step__description {
    color: var(--text-color-muted);
    font-size: 0.95rem;
}

.process__arrow {
    color: var(--text-color-muted);
    transform: rotate(90deg); /* Pointing down on mobile */
}

/* Desktop Layout */
@media screen and (min-width: 992px) {
    .process__steps {
        flex-direction: row;
        align-items: flex-start;
        justify-content: center;
    }

    .process__arrow {
        transform: rotate(0);
        margin-top: 5rem; /* Align with the center of the cards */
    }
    
    .process__arrow i {
        width: 3rem;
        height: 3rem;
    }
}

/* ===================== CONTACT SECTION ===================== */
.contact__wrapper {
    max-width: 700px;
    margin: 0 auto;
    background-color: var(--surface-color);
    padding: 2rem;
    border-radius: var(--border-radius);
}

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

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

.form-input {
    width: 100%;
    padding: 0.9rem 1rem;
    background-color: var(--background-color);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--border-radius);
    color: var(--text-color);
    font-size: 1rem;
    font-family: var(--font-body);
    transition: border-color var(--transition-speed);
}

.form-input::placeholder {
    color: #6c757d;
}

.form-input:focus {
    outline: none;
    border-color: var(--primary-color);
}

.form-textarea {
    min-height: 120px;
    resize: vertical;
}

.form-group--captcha {
    margin-top: 2rem;
}

.form-button {
    width: 100%;
    padding: 1rem;
    background-color: var(--primary-color);
    color: #000;
    border: none;
    border-radius: var(--border-radius);
    font-size: 1rem;
    font-weight: 700;
    font-family: var(--font-heading);
    cursor: pointer;
    transition: all var(--transition-speed);
}

.form-button:hover {
    background-color: var(--secondary-color);
}

.form-button:disabled {
    background-color: #555;
    cursor: not-allowed;
    opacity: 0.7;
}

/* Form Messages */
.form-message {
    padding: 1rem;
    border-radius: var(--border-radius);
    margin-bottom: 1rem;
    display: none; /* Hidden by default */
}

.form-message--error {
    background-color: rgba(255, 100, 100, 0.1);
    color: #ff8a8a;
    border: 1px solid rgba(255, 100, 100, 0.3);
}

.form-message--success {
    background-color: rgba(3, 218, 198, 0.1);
    text-align: center;
    padding: 3rem 1rem;
}

.form-message__icon {
    color: var(--secondary-color);
    margin-bottom: 1rem;
}

.form-message__icon i {
    width: 50px;
    height: 50px;
}

.form-message__title {
    font-size: 1.5rem;
    color: var(--text-color);
}


@media screen and (min-width: 768px) {
    .contact__wrapper {
        padding: 3rem;
    }
}

/* ===================== COOKIE POPUP ===================== */
.cookie-popup {
    position: fixed;
    bottom: -100%; /* Initially hidden */
    left: 50%;
    transform: translateX(-50%);
    width: calc(100% - 2rem);
    max-width: 900px;
    background-color: var(--surface-color);
    padding: 1.5rem;
    border-radius: var(--border-radius);
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    z-index: 200;
    transition: bottom 0.5s ease-in-out;
}

.cookie-popup--show {
    bottom: 1rem;
}

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

.cookie-popup__link {
    color: var(--secondary-color);
    text-decoration: underline;
}

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

.cookie-popup__button {
    background-color: var(--primary-color);
    color: #000;
    padding: 0.6rem 1.5rem;
    border: none;
    border-radius: var(--border-radius);
    cursor: pointer;
    font-weight: 500;
    transition: background-color var(--transition-speed);
}

.cookie-popup__button:hover {
    background-color: var(--secondary-color);
}

@media screen and (min-width: 768px) {
    .cookie-popup {
        flex-direction: row;
        justify-content: space-between;
    }

    .cookie-popup__text {
        text-align: left;
    }
}

/* ===================== GENERIC PAGES STYLES ===================== */
/* Used for privacy.html, terms.html, etc. */
.pages {
    padding-top: calc(var(--header-height) + 3rem);
    padding-bottom: 5rem;
}

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

.pages h1 {
    font-size: 2.5rem;
    margin-bottom: 2rem;
    color: var(--text-color);
}

.pages h2 {
    font-size: 1.75rem;
    margin-top: 2.5rem;
    margin-bottom: 1rem;
    color: var(--text-color);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding-bottom: 0.5rem;
}

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

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

.pages li {
    margin-bottom: 0.75rem;
    color: var(--text-color-muted);
    line-height: 1.7;
}

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

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

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

/* ===================== FAQ SECTION ===================== */
.faq__list {
    max-width: 800px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.faq-item {
    background-color: var(--surface-color);
    border-radius: var(--border-radius);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.faq-item__question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem;
    cursor: pointer;
    font-size: 1.1rem;
    font-weight: 600;
    font-family: var(--font-heading);
    list-style: none; /* Remove default marker */
}

.faq-item__question::-webkit-details-marker {
    display: none; /* Hide default marker for Safari */
}

.faq-item__icon {
    transition: transform 0.3s ease;
    color: var(--primary-color);
}

.faq-item[open] > .faq-item__question .faq-item__icon {
    transform: rotate(180deg);
}

.faq-item__answer {
    padding: 0 1.5rem 1.5rem 1.5rem;
    color: var(--text-color-muted);
    line-height: 1.7;
}
.form-group--checkbox {
  display: flex;
  align-items: flex-start; /* Чекбокс вирівнюється зверху, текст може переноситись */
  margin-top: 20px; /* Відступ зверху від попереднього поля */
  margin-bottom: 20px; /* Відступ знизу до кнопки */
}

.form-group--checkbox input[type="checkbox"] {
  flex-shrink: 0; /* Запобігає стисненню чекбокса */
  width: 16px; /* Розмір чекбокса */
  height: 16px; /* Розмір чекбокса */
  margin-right: 10px; /* Відступ між чекбоксом і текстом мітки */
  margin-top: 3px; /* Невеликий відступ зверху для візуального вирівнювання з текстом */
  cursor: pointer;
}

.form-label--checkbox {
  font-weight: normal; /* Звичайний шрифт для тексту мітки */
  cursor: pointer;
  line-height: 1.4; /* Міжрядковий інтервал для кращої читабельності */
  /* Переконайтеся, що тут немає зайвих відступів, які можуть порушити вирівнювання */
}

/* Стилі для посилань всередині чекбокса */
.form-label--checkbox a {
  /* Ваші існуючі стилі для посилань, наприклад: */
  /* color: #007bff; */
  /* text-decoration: none; */
}

.form-label--checkbox a:hover {
  /* text-decoration: underline; */
}