/* ROOT VARIABLES & GLOBAL STYLES */
:root {
    --color-background: #121212;
    --color-surface: #1E1E1E;
    --color-primary: #00A79D;
    --color-primary-hover: #00C4B3;
    --color-text-primary: #E0E0E0;
    --color-primary-rgb: 0, 167, 157; /* Додайте цей рядок */
    --color-text-secondary: #A0A0A0;
    --color-border: #2c2c2c;

    --font-family-headings: 'Plus Jakarta Sans', sans-serif;
    --font-family-body: 'Inter', sans-serif;

    --header-height: 70px;
}

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

html {
    scroll-behavior: smooth;
}

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

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-family-headings);
    color: var(--color-text-primary);
    font-weight: 700;
}

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

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

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 {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: var(--header-height);
    background-color: rgba(18, 18, 18, 0.8);
    backdrop-filter: blur(10px);
    z-index: 100;
    border-bottom: 1px solid var(--color-border);
}

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

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

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

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

.header__nav-link {
    color: var(--color-text-secondary);
    font-weight: 500;
    position: relative;
    padding: 5px 0;
}

.header__nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--color-primary);
    transition: width 0.3s ease;
}

.header__nav-link:hover {
    color: var(--color-text-primary);
}

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

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

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

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

.footer__column--logo {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.footer__logo {
    font-family: var(--font-family-headings);
    font-weight: 800;
    font-size: 1.75rem;
    color: var(--color-text-primary);
    margin-bottom: 20px;
}

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

.footer__copyright {
    color: var(--color-text-secondary);
    font-size: 0.9rem;
}

.footer__title {
    font-size: 1.1rem;
    margin-bottom: 20px;
    font-weight: 700;
    color: var(--color-text-primary);
}

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

.footer__link {
    color: var(--color-text-secondary);
    font-size: 0.95rem;
}
.footer__link:hover {
    color: var(--color-primary-hover);
    padding-left: 5px;
    transition: color 0.3s ease, padding-left 0.3s ease;
}

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

.footer__list--contact .lucide {
    flex-shrink: 0;
    color: var(--color-primary);
}

.footer__text {
    font-size: 0.95rem;
}


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


@media (max-width: 768px) {
    .header__nav {
        position: fixed;
        top: var(--header-height);
        left: -100%;
        width: 100%;
        height: calc(100vh - var(--header-height));
        background-color: var(--color-background);
        transition: left 0.4s ease-in-out;
    }

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

    .header__nav-list {
        flex-direction: column;
        justify-content: center;
        align-items: center;
        height: 100%;
        gap: 40px;
    }
    
    .header__nav-link {
        font-size: 1.5rem;
    }

    .header__burger-btn {
        display: block;
    }

    .footer__container {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .footer__column--logo {
        align-items: center;
        gap: 20px;
    }
    
    .footer__list--contact li {
       justify-content: center;
    }
}

/* GENERAL PURPOSE & REUSABLE COMPONENTS */
.btn {
    display: inline-block;
    padding: 14px 32px;
    font-family: var(--font-family-headings);
    font-weight: 700;
    font-size: 1rem;
    border-radius: 8px;
    text-align: center;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.3s ease;
    border: none;
}

.btn--primary {
    background-color: var(--color-primary);
    color: #fff;
}

.btn--primary:hover {
    background-color: var(--color-primary-hover);
    color: #fff;
    transform: translateY(-3px);
}

/* HERO SECTION */
.hero {
    position: relative;
    height: 100vh;
    min-height: 600px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    overflow: hidden;
    padding-top: var(--header-height); /* Offset for fixed header */
}

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

.hero__title {
    font-size: 3.5rem;
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 20px;
}

.hero__title--animated {
    color: var(--color-primary);
}

/* Blinking cursor for typewriter effect */
.hero__title--animated::after {
    content: '_';
    font-weight: 400;
    animation: blink 0.7s infinite;
}

@keyframes blink {
    50% { opacity: 0; }
}

.hero__subtitle {
    font-size: 1.25rem;
    color: var(--color-text-secondary);
    max-width: 650px;
    margin: 0 auto 40px auto;
    line-height: 1.5;
}

/* Animated Background Shapes */
.hero__bg-shapes {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.hero__shape {
    position: absolute;
    border-radius: 50%;
    background-color: rgba(0, 167, 157, 0.1);
    animation: move 20s infinite alternate ease-in-out;
}

.hero__shape--1 {
    width: 200px;
    height: 200px;
    top: 15%;
    left: 10%;
    animation-duration: 25s;
}

.hero__shape--2 {
    width: 300px;
    height: 300px;
    bottom: 10%;
    right: 5%;
    animation-duration: 30s;
    animation-delay: -5s;
}

.hero__shape--3 {
    width: 150px;
    height: 150px;
    top: 20%;
    right: 20%;
    border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%;
    animation-duration: 20s;
    animation-delay: -10s;
}

@keyframes move {
    0% {
        transform: translate(0, 0) rotate(0deg);
    }
    100% {
        transform: translate(40px, -60px) rotate(180deg);
    }
}


/* RESPONSIVE STYLES FOR HERO */
@media (max-width: 768px) {
    .hero {
        height: auto;
        padding: 120px 0;
    }

    .hero__title {
        font-size: 2.5rem;
    }

    .hero__subtitle {
        font-size: 1.1rem;
    }

    .hero__shape {
        opacity: 0.5;
    }
    
    .hero__shape--2 {
       width: 200px;
       height: 200px;
    }
}

/* GENERAL SECTION STYLES */
.section {
    padding: 100px 0;
}

/* Alternate section background */
.section:nth-child(even) {
    background-color: var(--color-surface);
}

.section__title {
    font-size: 2.8rem;
    font-weight: 800;
    text-align: center;
    margin-bottom: 15px;
}

.section__subtitle {
    font-size: 1.1rem;
    color: var(--color-text-secondary);
    max-width: 600px;
    margin: 0 auto 60px auto;
    text-align: center;
    line-height: 1.6;
}

/* STORIES SECTION */
.stories__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.story-card {
    background-color: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: 12px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.stories .section:nth-child(even) .story-card {
     background-color: var(--color-background);
}

.story-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.25);
}

.story-card__image-wrapper {
    width: 100%;
    aspect-ratio: 16 / 10;
    overflow: hidden;
}

.story-card__image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.story-card:hover .story-card__image {
    transform: scale(1.05);
}

.story-card__content {
    padding: 25px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.story-card__category {
    display: inline-block;
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--color-primary);
    text-transform: uppercase;
    margin-bottom: 15px;
}

.story-card__title {
    font-size: 1.3rem;
    line-height: 1.4;
    margin-bottom: 15px;
    color: var(--color-text-primary);
}

.story-card__author {
    font-size: 0.9rem;
    color: var(--color-text-secondary);
    margin-bottom: 20px;
}

.story-card__link {
    margin-top: auto; /* Pushes the link to the bottom */
    color: var(--color-text-primary);
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    align-self: flex-start; /* Aligns the link to the start of the flex container */
}

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

.story-card__link .lucide {
    transition: transform 0.3s ease;
}

.story-card__link:hover .lucide {
    transform: translateX(5px);
}


/* RESPONSIVE STYLES FOR STORIES */
@media (max-width: 992px) {
    .stories__grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .section {
        padding: 80px 0;
    }

    .section__title {
        font-size: 2.2rem;
    }

    .stories__grid {
        grid-template-columns: 1fr;
    }
}

/* INSIGHTS SECTION */
.insights__layout {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 60px;
    align-items: center;
}

.insights__visual {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.insights__image {
    border-radius: 12px;
    position: relative;
    z-index: 2;
    max-width: 80%;
}

.insights__visual-bg-element {
    position: absolute;
    width: 90%;
    height: 90%;
    border: 2px solid var(--color-primary);
    border-radius: 12px;
    z-index: 1;
    transform: rotate(-6deg);
    transition: transform 0.4s ease;
}

.insights__visual:hover .insights__visual-bg-element {
    transform: rotate(0deg);
}


/* ACCORDION STYLES */
.accordion__item {
    border-bottom: 1px solid var(--color-border);
}

.accordion__item:first-child {
    border-top: 1px solid var(--color-border);
}

.accordion__header {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
    padding: 20px 0;
    background: none;
    border: none;
    cursor: pointer;
    text-align: left;
}

.accordion__title {
    font-family: var(--font-family-headings);
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--color-text-primary);
    transition: color 0.3s ease;
}

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

.accordion__icon {
    color: var(--color-primary);
    flex-shrink: 0;
    transition: transform 0.4s ease;
}

.accordion__content {
    max-height: 0; /* Collapsed by default */
    overflow: hidden;
    transition: max-height 0.4s ease-in-out;
}



.accordion__content p {
    color: var(--color-text-secondary);
    line-height: 1.7;
    max-width: 95%;
}

.accordion__content-inner {
    padding-bottom: 25px;
}

/* Active state for accordion */
.accordion__item.is-active .accordion__content {
    max-height: 20rem; /* Expanded to a height large enough for content */
}

.accordion__item.is-active .accordion__icon {
    transform: rotate(180deg);
}

/* RESPONSIVE STYLES FOR INSIGHTS */
@media (max-width: 992px) {
    .insights__layout {
        grid-template-columns: 1fr;
        gap: 50px;
    }
    .insights__visual {
        max-width: 400px;
        margin: 0 auto;
    }
}

/* CAREER PATH (TIMELINE) SECTION */
.timeline {
    position: relative;
    max-width: 900px;
    margin: 60px auto 0 auto;
}

/* The central line */
.timeline::after {
    content: '';
    position: absolute;
    width: 3px;
    background-color: var(--color-border);
    top: 0;
    bottom: 0;
    left: 50%;
    margin-left: -1.5px;
}

.timeline__item {
    padding: 10px 40px;
    position: relative;
    width: 50%;
}

/* The content box */
.timeline__content {
    padding: 25px 30px;
    background-color: var(--color-surface);
    border: 1px solid var(--color-border);
    position: relative;
    border-radius: 8px;
    transition: transform 0.3s ease;
}

.timeline__item:hover .timeline__content {
    transform: scale(1.03);
}

/* The icon on the line */
.timeline__icon {
    position: absolute;
    width: 50px;
    height: 50px;
    right: -25px;
    top: 32px;
    background-color: var(--color-primary);
    border: 4px solid var(--color-background);
    border-radius: 50%;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
}

/* Positioning items */
.timeline__item--left {
    left: 0;
    padding-right: 70px;
}

.timeline__item--right {
    left: 50%;
    padding-left: 70px;
}

/* Positioning icons for right-sided items */
.timeline__item--right .timeline__icon {
    left: -25px;
}

/* Arrow pointers */
.timeline__content::before {
    content: " ";
    height: 0;
    position: absolute;
    top: 38px;
    width: 0;
    z-index: 1;
    border: solid 10px;
    border-color: transparent transparent transparent var(--color-border);
}

.timeline__item--left .timeline__content::before {
    right: -21px;
    border-color: transparent transparent transparent var(--color-border);
}

.timeline__item--right .timeline__content::before {
    left: -21px;
    border-color: transparent var(--color-border) transparent transparent;
}


/* Content styling */
.timeline__step {
    position: absolute;
    right: 20px;
    top: 15px;
    font-size: 3.5rem;
    font-weight: 800;
    color: rgba(255, 255, 255, 0.04);
    z-index: -1;
}

.timeline__title {
    font-size: 1.3rem;
    margin-bottom: 10px;
}

.timeline__description {
    font-size: 0.95rem;
    color: var(--color-text-secondary);
    line-height: 1.6;
}


/* RESPONSIVE STYLES FOR TIMELINE */
@media (max-width: 900px) {
    .timeline::after {
        left: 35px;
    }

    .timeline__item {
        width: 100%;
        padding-left: 80px;
        padding-right: 25px;
    }

    .timeline__item--right {
        left: 0%;
    }

    .timeline__icon {
        left: 10px;
    }
    
    .timeline__item--left .timeline__content::before,
    .timeline__item--right .timeline__content::before {
        left: -21px;
        border-color: transparent var(--color-border) transparent transparent;
    }
}
/* NEW BUTTON STYLE */
.btn--secondary {
    background-color: transparent;
    color: var(--color-primary);
    border: 2px solid var(--color-primary);
    padding: 12px 30px;
}

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


/* EVENTS SECTION */
.events__list {
    display: flex;
    flex-direction: column;
    gap: 20px;
    max-width: 900px;
    margin: 60px auto 0 auto;
}

.event-item {
    display: flex;
    align-items: center;
    gap: 25px;
    background-color: var(--color-surface);
    padding: 20px 25px;
    border: 1px solid var(--color-border);
    border-radius: 12px;
    transition: transform 0.3s ease, border-color 0.3s ease;
}

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

.event-item__date {
    flex-shrink: 0;
    width: 80px;
    height: 80px;
    border: 1px solid var(--color-primary);
    background-color: rgba(var(--color-primary-rgb), 0.1);
    border-radius: 8px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: var(--color-primary);
    font-family: var(--font-family-headings);
}

.event-item__month {
    font-size: 0.8rem;
    font-weight: 700;
}

.event-item__day {
    font-size: 2rem;
    font-weight: 800;
    line-height: 1;
}

.event-item__info {
    flex-grow: 1;
}

.event-item__title {
    font-size: 1.3rem;
    color: var(--color-text-primary);
    margin-bottom: 10px;
}

.event-item__meta {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    font-size: 0.9rem;
    color: var(--color-text-secondary);
}

.event-item__meta span {
    display: flex;
    align-items: center;
    gap: 8px;
}


/* RESPONSIVE STYLES FOR EVENTS */
@media (max-width: 768px) {
    .event-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 20px;
    }

    .event-item__action {
        margin-top: 10px;
        width: 100%;
    }

    .btn--secondary {
        width: 100%;
        text-align: center;
    }
}

/* CONTACT SECTION */
.contact__layout {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 60px;
    margin-top: 60px;
}

.contact__info-title {
    font-size: 1.5rem;
    margin-bottom: 15px;
}

.contact__info-title:not(:first-child) {
    margin-top: 40px;
}

.contact__info-text {
    color: var(--color-text-secondary);
    line-height: 1.7;
    margin-bottom: 25px;
}

.contact__details-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
    font-size: 1.1rem;
}

.contact__details-list li {
    display: flex;
    align-items: center;
    gap: 12px;
}

.contact__details-list .lucide {
    color: var(--color-primary);
}

.contact__socials {
    display: flex;
    gap: 15px;
}

.contact__socials a {
    color: var(--color-text-secondary);
    transition: color 0.3s ease, transform 0.3s ease;
}

.contact__socials a:hover {
    color: var(--color-primary);
    transform: scale(1.1);
}

/* FORM STYLES */
.contact__form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

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

.form__label {
    margin-bottom: 8px;
    font-weight: 500;
    color: var(--color-text-secondary);
}

.form__input {
    width: 100%;
    padding: 12px 15px;
    background-color: var(--color-background);
    border: 1px solid var(--color-border);
    color: var(--color-text-primary);
    border-radius: 8px;
    font-family: var(--font-family-body);
    font-size: 1rem;
    transition: border-color 0.3s ease;
}

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

textarea.form__input {
    resize: vertical;
}

/* FORM STATUS MESSAGES */
#form-status {
    padding: 15px;
    border-radius: 8px;
    margin-top: 10px;
    font-weight: 500;
    display: none; /* Hidden by default */
}
.form-status--success {
    background-color: rgba(0, 167, 157, 0.1);
    border: 1px solid var(--color-primary);
    color: var(--color-primary);
}
.form-status--error {
    background-color: rgba(220, 53, 69, 0.1);
    border: 1px solid #dc3545;
    color: #dc3545;
}


/* RESPONSIVE STYLES FOR CONTACT */
@media (max-width: 900px) {
    .contact__layout {
        grid-template-columns: 1fr;
        gap: 50px;
    }
}

/* COOKIE POPUP */
.cookie-popup {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background-color: var(--color-surface);
    padding: 20px 0;
    border-top: 1px solid var(--color-border);
    z-index: 200;
    transform: translateY(100%);
    transition: transform 0.5s ease-in-out;
}

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

.cookie-popup__container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
}

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

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

@media (max-width: 768px) {
    .cookie-popup__container {
        flex-direction: column;
        align-items: stretch;
        text-align: center;
    }
    .cookie-popup__text {
        margin-bottom: 15px;
    }
}

/* POLICY PAGES STYLES */
.pages {
    padding-top: calc(var(--header-height) + 60px);
    padding-bottom: 80px;
    background-color: var(--color-surface);
}

.pages .container {
    max-width: 800px; /* Make text column narrower for readability */
}

.pages h1,
.pages h2 {
    font-family: var(--font-family-headings);
    color: var(--color-text-primary);
}

.pages h1 {
    font-size: 2.8rem;
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--color-border);
}

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

.pages p,
.pages li {
    font-size: 1.05rem;
    line-height: 1.8;
    color: var(--color-text-secondary);
}

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

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

.pages li {
    padding-left: 25px;
    position: relative;
    margin-bottom: 15px;
}

/* Custom bullet point */
.pages li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 12px;
    width: 8px;
    height: 8px;
    background-color: var(--color-primary);
    border-radius: 50%;
}

.pages a {
    color: var(--color-primary);
    font-weight: 500;
    text-decoration: underline;
    text-decoration-thickness: 1px;
    text-underline-offset: 3px;
    transition: color 0.3s ease;
}

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

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