/* ==================== GLOBAL STYLES ==================== */
:root {
    /* Colors */
    --primary-color: #08AEEA;
    --secondary-color: #2AF598;
    --background-color: #F8F9FA;
    --surface-color: #FFFFFF;
    --text-color: #212529;
    --text-secondary-color: #6C757D;
    
    /* Typography */
    --font-family-headings: 'Poppins', sans-serif;
    --font-family-body: 'Inter', sans-serif;

    /* Transitions & Borders */
    --transition-fast: 0.2s ease-in-out;
    --border-radius: 8px;
}

*,
*::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;
    color: var(--text-color);
    background-color: var(--background-color);
}

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

a {
    color: var(--primary-color);
    text-decoration: none;
    transition: color var(--transition-fast);
}

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

ul {
    list-style: none;
}

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

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

/* ==================== HEADER ==================== */
.header {
    position: sticky;
    top: 0;
    width: 100%;
    z-index: 1000;
    background-color: var(--surface-color);
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
    padding: 1rem 0;
}

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

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

.header__nav {
    display: none; /* Hidden on mobile */
}

.header__nav-list {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.header__nav-link {
    font-size: 1rem;
    font-weight: 500;
    color: var(--text-secondary-color);
    position: relative;
    padding: 0.25rem 0;
}

.header__nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    transition: width var(--transition-fast);
}

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

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

.header__menu-toggle {
    background: none;
    border: none;
    cursor: pointer;
    color: var(--text-color);
}

/* Desktop styles for header */
@media (min-width: 768px) {
    .header__nav {
        display: block;
    }
    .header__menu-toggle {
        display: none;
    }
}

/* ==================== FOOTER ==================== */
.footer {
    background-color: #2B3035;
    color: #EAEAEA;
    padding: 4rem 0 2rem;
    margin-top: 4rem;
}

.footer__container {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2.5rem;
}

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

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

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

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

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

.footer__link:hover {
    color: var(--surface-color);
}

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

.footer__link--static {
    cursor: default;
    color: var(--text-secondary-color);
}

.footer__contact-icon {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
}

/* Tablet & Desktop styles for footer */
@media (min-width: 576px) {
    .footer__container {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 992px) {
    .footer__container {
        grid-template-columns: 1.5fr 1fr 1.5fr 1.5fr;
        gap: 3rem;
    }
}

/* ==================== REUSABLE COMPONENTS ==================== */
.button {
    display: inline-block;
    padding: 0.75rem 1.75rem;
    border-radius: var(--border-radius);
    font-family: var(--font-family-headings);
    font-weight: 600;
    font-size: 1rem;
    text-align: center;
    cursor: pointer;
    transition: transform var(--transition-fast), box-shadow var(--transition-fast);
    border: none;
}

.button--primary {
    background: linear-gradient(90deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    color: var(--surface-color);
    box-shadow: 0 4px 15px rgba(8, 174, 234, 0.2);
}

.button:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(8, 174, 234, 0.3);
    color: var(--surface-color);
}


/* ==================== HERO ==================== */
.hero {
    position: relative;
    padding: 4rem 0;
    overflow: hidden;
    min-height: 90vh;
    display: flex;
    align-items: center;
}

.hero__animation-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
}

.hero__animation-shape {
    position: absolute;
    border-radius: 50%;
    background-color: rgba(8, 174, 234, 0.1);
    transition: transform 0.1s linear; /* For mouse move effect */
}

.hero__container {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    align-items: center;
    position: relative;
    z-index: 1;
}

.hero__title {
    font-size: 2.5rem;
    line-height: 1.2;
    margin-bottom: 1rem;
    color: var(--text-color);
}

.hero__description {
    font-size: 1.1rem;
    color: var(--text-secondary-color);
    margin-bottom: 2rem;
    max-width: 550px;
}

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

.hero__image {
    border-radius: var(--border-radius);
    box-shadow: 0 10px 30px rgba(0,0,0,0.07);
}


/* Desktop styles for Hero */
@media (min-width: 768px) {
    .hero {
        padding: 6rem 0;
    }

    .hero__container {
        grid-template-columns: 1.2fr 1fr;
        text-align: left;
    }
    
    .hero__title {
        font-size: 3.5rem;
    }
}
/* ==================== REUSABLE SECTION STYLES ==================== */
.section {
    padding: 4rem 0;
}

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

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

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

@media (min-width: 768px) {
    .section {
        padding: 6rem 0;
    }
    .section__title {
        font-size: 2.75rem;
    }
}


/* ==================== CONCEPTS SECTION ==================== */
.concepts {
    background-color: var(--background-color);
}

.concepts__grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
}

.concept-card {
    background-color: var(--surface-color);
    border-radius: var(--border-radius);
    padding: 2rem;
    text-align: center;
    border: 1px solid transparent;
    box-shadow: 0 5px 25px rgba(0,0,0,0.04);
    transition: transform var(--transition-fast), box-shadow var(--transition-fast), border-color var(--transition-fast);
}

.concept-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 35px rgba(0,0,0,0.08);
    border-color: rgba(8, 174, 234, 0.2);
}

.concept-card__icon-wrapper {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    width: 64px;
    height: 64px;
    border-radius: 50%;
    margin: 0 auto 1.5rem;
    background: linear-gradient(135deg, rgba(8, 174, 234, 0.1) 0%, rgba(42, 245, 152, 0.1) 100%);
    transition: background var(--transition-fast), transform var(--transition-fast);
}

.concept-card__icon {
    width: 32px;
    height: 32px;
    color: var(--primary-color);
    transition: color var(--transition-fast);
}

.concept-card:hover .concept-card__icon-wrapper {
    transform: scale(1.1) rotate(10deg);
}

.concept-card:hover .concept-card__icon {
    color: #067eaa; /* Darker shade of primary */
}

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

.concept-card__description {
    color: var(--text-secondary-color);
    line-height: 1.6;
}

/* Tablet & Desktop styles for Concepts */
@media (min-width: 576px) {
    .concepts__grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 992px) {
    .concepts__grid {
        grid-template-columns: repeat(4, 1fr);
        gap: 2rem;
    }
}

/* ==================== DIRECTIONS SECTION ==================== */
.directions {
    background-color: var(--surface-color);
}

.directions__content-wrapper {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    align-items: center;
}

.directions__visual {
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.directions__image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--transition-fast);
}

.directions__visual:hover .directions__image {
    transform: scale(1.05);
}

.directions__tabs-list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    margin-bottom: 1.5rem;
}

.directions__tab-button {
    width: 100%;
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    background-color: var(--background-color);
    border: 1px solid #e9ecef;
    border-radius: var(--border-radius);
    font-family: var(--font-family-headings);
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-secondary-color);
    cursor: pointer;
    text-align: left;
    transition: background-color var(--transition-fast), color var(--transition-fast), box-shadow var(--transition-fast);
}

.directions__tab-button:hover {
    background-color: #e9ecef;
    color: var(--text-color);
}

.directions__tab-button.active {
    background-color: var(--surface-color);
    color: var(--primary-color);
    border-color: var(--primary-color);
    box-shadow: 0 4px 15px rgba(8, 174, 234, 0.15);
}

.directions__tab-icon {
    width: 24px;
    height: 24px;
    flex-shrink: 0;
}

.directions__tab-panel {
    display: none; /* Hidden by default, shown by JS */
    padding: 1rem;
    border-left: 3px solid var(--secondary-color);
    animation: fadeIn 0.5s ease;
}

.directions__tab-panel.active {
    display: block;
}

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

.directions__panel-title {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

/* Desktop styles for Directions */
@media (min-width: 992px) {
    .directions__content-wrapper {
        grid-template-columns: 1fr 1fr;
        gap: 4rem;
    }
}

/* ==================== CASES SECTION ==================== */
.cases {
    padding-bottom: 4rem;
}

.cases__slider-container {
    position: relative;
}

.cases__slider-wrapper {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    gap: 1.5rem;
    padding: 1rem 0;
    /* Hide scrollbar */
    -ms-overflow-style: none;  /* IE and Edge */
    scrollbar-width: none;  /* Firefox */
}

.cases__slider-wrapper::-webkit-scrollbar {
    display: none; /* Chrome, Safari and Opera */
}

.case-card {
    flex: 0 0 90%;
    scroll-snap-align: center;
    background-color: var(--surface-color);
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: 0 5px 25px rgba(0,0,0,0.05);
    display: flex;
    flex-direction: column;
    transition: box-shadow var(--transition-fast), transform var(--transition-fast);
}

.case-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 35px rgba(0,0,0,0.08);
}

.case-card__image-wrapper {
    height: 200px;
    overflow: hidden;
}

.case-card__image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.case-card__content {
    padding: 1.5rem;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.case-card__tag {
    display: inline-block;
    background: linear-gradient(90deg, rgba(8, 174, 234, 0.1) 0%, rgba(42, 245, 152, 0.1) 100%);
    color: var(--primary-color);
    padding: 0.25rem 0.75rem;
    border-radius: 99px;
    font-size: 0.8rem;
    font-weight: 600;
    margin-bottom: 1rem;
    align-self: flex-start;
}

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

.case-card__description {
    color: var(--text-secondary-color);
    line-height: 1.6;
}

.cases__slider-nav {
    display: none; /* Hidden on mobile, as swipe is more natural */
}

/* Desktop styles for Cases */
@media (min-width: 576px) {
    .case-card {
        flex-basis: 60%;
    }
}

@media (min-width: 992px) {
    .cases__slider-container {
        max-width: 1200px;
        margin: 0 auto;
        padding: 0 1rem;
    }
    .cases__slider-wrapper {
        overflow: hidden; /* Disable native scroll on desktop */
    }
    .case-card {
        flex-basis: calc(33.333% - 1.34rem);
    }
    .cases__slider-nav {
        display: block;
    }
    .cases__slider-btn {
        position: absolute;
        top: 50%;
        transform: translateY(-50%);
        width: 50px;
        height: 50px;
        background-color: var(--surface-color);
        border: 1px solid #e9ecef;
        border-radius: 50%;
        color: var(--text-color);
        cursor: pointer;
        display: flex;
        justify-content: center;
        align-items: center;
        box-shadow: 0 4px 10px rgba(0,0,0,0.1);
        transition: all var(--transition-fast);
    }
    .cases__slider-btn:hover {
        background-color: var(--primary-color);
        color: var(--surface-color);
        border-color: var(--primary-color);
    }
    .cases__slider-btn:disabled {
        opacity: 0.5;
        cursor: not-allowed;
    }
    #cases-prev {
        left: -25px;
    }
    #cases-next {
        right: -25px;
    }
}

/* ==================== AUDIENCE SECTION ==================== */
.audience {
    background-color: var(--surface-color);
}

.audience__grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 3rem;
}

.audience-profile {
    text-align: center;
}

.audience-profile__icon {
    width: 48px;
    height: 48px;
    color: var(--primary-color);
    margin-bottom: 1.5rem;
}

.audience-profile__title {
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.audience-profile__list {
    text-align: left;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    max-width: 350px;
    margin: 0 auto;
}

.audience-profile__list li {
    position: relative;
    padding-left: 2rem;
    color: var(--text-secondary-color);
}

.audience-profile__list li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 4px;
    width: 20px;
    height: 20px;
    background-color: var(--secondary-color);
    mask-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="lucide lucide-check-circle-2"><path d="M12 22c5.523 0 10-4.477 10-10S17.523 2 12 2 2 6.477 2 12s4.477 10 10 10z"/><path d="m9 12 2 2 4-4"/></svg>');
    mask-repeat: no-repeat;
    mask-position: center;
}


/* Desktop styles for Audience */
@media (min-width: 768px) {
    .audience__grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 2rem;
    }
}

/* ==================== REUSABLE MODIFIERS ==================== */
.section__title--light {
    color: var(--surface-color);
}
.section__subtitle--light {
    color: rgba(255, 255, 255, 0.8);
}

/* ==================== CONTACT SECTION ==================== */
.contact {
    background-color: #2B3035;
    padding-bottom: 6rem;
}

.contact__wrapper {
    max-width: 600px;
    margin: 0 auto;
    background-color: var(--surface-color);
    padding: 2rem;
    border-radius: var(--border-radius);
}

.contact-form__fields {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
}

.contact-form__group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
}

.contact-form__label {
    font-weight: 500;
}

.contact-form__input {
    width: 100%;
    padding: 0.75rem 1rem;
    font-size: 1rem;
    font-family: var(--font-family-body);
    border: 1px solid #ced4da;
    border-radius: var(--border-radius);
    transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
}

.contact-form__input:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(8, 174, 234, 0.2);
}

.contact-form__input.error {
    border-color: #dc3545;
}

.contact-form__captcha {
    flex-direction: row;
    align-items: center;
    gap: 1rem;
}
#captcha-label {
    white-space: nowrap;
}

.contact-form__group--checkbox {
    flex-direction: row;
    align-items: center;
    gap: 0.75rem;
    font-size: 0.9rem;
}
.contact-form__group--checkbox label {
    color: var(--text-secondary-color);
}
.contact-form__group--checkbox a {
    text-decoration: underline;
}

.contact-form__submit {
    width: 100%;
}

.contact-form__success-message {
    display: none; /* Hidden by default */
    text-align: center;
    padding: 2rem;
    animation: fadeIn 0.5s ease;
}
.contact-form__success-icon {
    width: 60px;
    height: 60px;
    color: var(--secondary-color);
    margin-bottom: 1rem;
}

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

/* ==================== COOKIE POPUP ==================== */
.cookie-popup {
    position: fixed;
    bottom: -100%; /* Initially hidden */
    left: 0;
    width: 100%;
    background-color: #2B3035;
    color: var(--surface-color);
    padding: 1rem;
    box-shadow: 0 -5px 20px rgba(0,0,0,0.1);
    z-index: 2000;
    transition: bottom 0.5s ease-in-out;
}

.cookie-popup.show {
    bottom: 0;
}

.cookie-popup__content {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    max-width: 1200px;
    margin: 0 auto;
}

.cookie-popup p {
    margin: 0;
    text-align: center;
}

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

.cookie-popup__btn {
    padding: 0.5rem 1.5rem;
    flex-shrink: 0;
}

@media (min-width: 768px) {
    .cookie-popup__content {
        flex-direction: row;
    }
    .cookie-popup p {
        text-align: left;
    }
}

/* ==================== POLICY PAGES STYLES ==================== */
.pages {
    padding: 4rem 0;
}

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

.pages h2 {
    font-size: 1.75rem;
    margin-top: 2.5rem;
    margin-bottom: 1rem;
}

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

.pages ul {
    list-style: none;
    padding-left: 1rem;
    margin-bottom: 1rem;
}

.pages li {
    position: relative;
    padding-left: 1.5rem;
    margin-bottom: 0.5rem;
}

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

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

.pages a {
    font-weight: 500;
    text-decoration: underline;
}