/* GLOBAL STYLES (ETAP 0) */
:root {
    --bg-light: #F9FAFB;
    --bg-dark: #111827;
    --text-dark: #1F2937;
    --text-gray: #6B7280;
    --accent: #2DD4BF;
    --accent-hover: #14B8A6;
    --border-color: #E5E7EB;
    --text-light-gray: #D1D5DB; 

    --font-primary: 'Inter', sans-serif;
    --font-secondary: 'Manrope', sans-serif;
}

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

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

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

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

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

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

ul {
    list-style: none;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

/* HEADER STYLES (ETAP 1) */
.header {
    background-color: var(--bg-light);
    border-bottom: 1px solid var(--border-color);
    padding: 1.25rem 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    backdrop-filter: blur(8px);
    background-color: rgba(249, 250, 251, 0.85);
}

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

.header__logo {
    font-family: var(--font-secondary);
    font-size: 1.75rem;
    font-weight: 800;
    color: var(--text-dark);
}

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

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

.header__nav-link {
    font-size: 1rem;
    font-weight: 500;
    color: var(--text-gray);
    padding: 0.5rem 0;
    position: relative;
}
.header__nav-link::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: 0;
    left: 50%;
    background-color: var(--accent);
    transition: all 0.3s ease-out;
    transform: translateX(-50%);
}

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


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

.header__nav-link--button {
    background-color: var(--accent);
    color: var(--bg-dark);
    padding: 0.6rem 1.2rem;
    border-radius: 8px;
    transition: background-color 0.3s ease, color 0.3s ease;
}

.header__nav-link--button:hover {
    background-color: var(--accent-hover);
    color: white;
}

.header__nav-link--button::after {
    display: none; /* No underline for button */
}

/* FOOTER STYLES (ETAP 2) */
.footer {
    background-color: var(--bg-dark);
    color: var(--bg-light);
    padding-top: 4rem;
}

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

.footer__logo {
    font-family: var(--font-secondary);
    font-size: 1.5rem;
    font-weight: 800;
    color: white;
    margin-bottom: 1rem;
    display: inline-block;
}

.footer__description {
    color: var(--text-gray);
    max-width: 300px;
}

.footer__heading {
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
    color: white;
    font-weight: 600;
}

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

.footer__link {
    color: var(--text-gray);
}

.footer__link:hover {
    color: white;
}

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

.footer__list--contacts i {
    flex-shrink: 0;
    color: var(--accent);
}

.footer__bottom {
    border-top: 1px solid #374151; /* Darker border */
    text-align: center;
    padding: 1.5rem 0;
    font-size: 0.9rem;
    color: var(--text-gray);
}

/* RESPONSIVE STYLES */
@media (max-width: 992px) {
    .header__nav-list {
        /* Future: Mobile menu logic will be here */
        display: none; 
    }
    .footer__container {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 576px) {
    .footer__container {
        grid-template-columns: 1fr;
    }
}

/* HERO SECTION STYLES (ETAP 3) */
.hero {
    padding: 6rem 0;
    overflow: hidden; /* To hide elements before animation */
}

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

.hero__content {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.hero__title {
    font-size: 3.25rem;
    font-weight: 800;
    margin-bottom: 1.5rem;
    color: var(--text-dark);
}

/* Styles for text animation */
.hero__title [data-char] {
    display: inline-block;
    opacity: 0;
    transform: translateY(30px) scale(0.8);
    transition: opacity 0.6s cubic-bezier(0.215, 0.610, 0.355, 1), transform 0.6s cubic-bezier(0.215, 0.610, 0.355, 1);
}

.hero__subtitle {
    font-size: 1.125rem;
    color: var(--text-gray);
    max-width: 500px;
    margin-bottom: 2.5rem;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.8s ease 0.5s, transform 0.8s ease 0.5s;
}

.hero__cta-button {
    font-size: 1.1rem;
    font-weight: 600;
    background-color: var(--accent);
    color: var(--bg-dark);
    padding: 1rem 2rem;
    border-radius: 8px;
    transition: all 0.3s ease;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.8s ease 0.6s, transform 0.8s ease 0.6s, background-color 0.3s ease, box-shadow 0.3s ease;
}

.hero__cta-button:hover {
    background-color: var(--accent-hover);
    color: var(--bg-dark);
    box-shadow: 0 10px 20px -5px rgba(45, 212, 191, 0.4);
    transform: translateY(-3px);
}

.hero__image-wrapper {
    opacity: 0;
    transform: translateX(30px);
    transition: opacity 1s ease 0.2s, transform 1s ease 0.2s;
}

.hero__image {
    width: 100%;
    height: auto;
    border-radius: 12px;
    object-fit: cover;
    box-shadow: 0 25px 50px -12px rgba(0,0,0,0.25);
}

/* Animation "is-visible" states */
.hero__subtitle.is-visible,
.hero__cta-button.is-visible,
.hero__image-wrapper.is-visible {
    opacity: 1;
    transform: translateY(0);
}

.hero__image-wrapper.is-visible {
    transform: translateX(0);
}

/* RESPONSIVE STYLES for HERO */
@media (max-width: 992px) {
    .hero {
        padding: 4rem 0;
    }
    .hero__container {
        grid-template-columns: 1fr;
        text-align: center;
    }
    .hero__content {
        align-items: center;
        order: 2; /* Text goes below image */
    }
    .hero__image-wrapper {
        order: 1; /* Image goes on top */
        margin-bottom: 3rem;
    }
    .hero__title {
        font-size: 2.5rem;
    }
}
/* SERVICES SECTION STYLES (ETAP 3) */
.services {
    padding: 6rem 0;
    background-color: #ffffff; /* A clean white background to separate sections */
}

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

.services__title {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 1rem;
    color: var(--text-dark);
}

.services__subtitle {
    font-size: 1.125rem;
    color: var(--text-gray);
    line-height: 1.7;
}

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

.services__card {
    background-color: var(--bg-light);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 2.5rem 2rem;
    display: flex;
    flex-direction: column;
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

.services__card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 25px -5px rgba(0,0,0,0.1), 0 10px 10px -5px rgba(0,0,0,0.04);
    border-color: var(--accent);
}

.services__card-icon {
    width: 60px;
    height: 60px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #ffffff;
    border: 1px solid var(--border-color);
    margin-bottom: 2rem;
}

.services__card-icon i {
    width: 28px;
    height: 28px;
    color: var(--accent);
    transition: transform 0.3s ease;
}

.services__card:hover .services__card-icon i {
    transform: scale(1.1);
}

.services__card-title {
    font-size: 1.375rem;
    margin-bottom: 1rem;
    color: var(--text-dark);
}

.services__card-description {
    color: var(--text-gray);
    flex-grow: 1; /* Pushes the link to the bottom */
    margin-bottom: 2rem;
}

.services__card-link {
    font-weight: 600;
    color: var(--accent);
    display: flex;
    align-items: center;
    gap: 0.5rem;
    opacity: 0;
    transform: translateY(10px);
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.services__card:hover .services__card-link {
    opacity: 1;
    transform: translateY(0);
}

.services__card-link i {
    width: 18px;
    height: 18px;
    transition: transform 0.3s ease;
}

.services__card-link:hover i {
    transform: translateX(4px);
}

/* CASES SECTION STYLES (ETAP 3) */
.cases {
    padding: 6rem 0;
    background-color: var(--bg-light); /* Back to the light gray */
}

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

.cases__title {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 1rem;
    color: var(--text-dark);
}

.cases__subtitle {
    font-size: 1.125rem;
    color: var(--text-gray);
    line-height: 1.7;
}

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

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

.case-item__image-wrapper {
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 10px 15px -3px rgba(0,0,0,0.1), 0 4px 6px -2px rgba(0,0,0,0.05);
}

.case-item__image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease-out;
}

.case-item__image-wrapper:hover .case-item__image {
    transform: scale(1.05);
}

/* Reversed layout modifier */
.case-item--reversed .case-item__image-wrapper {
    order: 2;
}
.case-item--reversed .case-item__content {
    order: 1;
}

.case-item__content {
    display: flex;
    flex-direction: column;
}

.case-item__title {
    font-size: 1.75rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--text-dark);
}

.case-item__tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
}

.case-item__tag {
    background-color: #e0f2f1; /* Light version of accent */
    color: var(--accent-hover);
    padding: 0.25rem 0.75rem;
    border-radius: 99px;
    font-size: 0.875rem;
    font-weight: 500;
}

.case-item__details {
    color: var(--text-gray);
    margin-bottom: 2rem;
    line-height: 1.7;
}

.case-item__details strong {
    color: var(--text-dark);
}

.case-item__details p:first-child {
    margin-bottom: 1rem;
}

.case-item__result {
    background-color: #ffffff;
    border: 1px solid var(--border-color);
    border-left: 4px solid var(--accent);
    border-radius: 8px;
    padding: 1.5rem;
    display: flex;
    align-items: flex-start;
    gap: 1rem;
}

.case-item__result-icon {
    flex-shrink: 0;
}

.case-item__result-icon i {
    width: 24px;
    height: 24px;
    color: var(--accent);
}

.case-item__result-text {
    color: var(--text-dark);
    font-weight: 500;
    line-height: 1.5;
}

.case-item__result-text:not(:last-child) {
    margin-bottom: 0.5rem;
}

.case-item__result-text strong {
    font-weight: 700;
}

/* RESPONSIVE STYLES for CASES */
@media (max-width: 992px) {
    .case-item,
    .case-item--reversed {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    .case-item--reversed .case-item__image-wrapper,
    .case-item--reversed .case-item__content {
        order: initial;
    }
    .case-item__title {
        font-size: 1.5rem;
    }
}

/* BLOG SECTION STYLES (ETAP 3) */
.blog {
    padding: 6rem 0;
    background-color: #ffffff; /* White background for contrast */
}

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

.blog__title {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 1rem;
    color: var(--text-dark);
}

.blog__subtitle {
    font-size: 1.125rem;
    color: var(--text-gray);
    line-height: 1.7;
}

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

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

.blog-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 15px -3px rgba(0,0,0,0.07), 0 4px 6px -2px rgba(0,0,0,0.04);
}

.blog-card__image-link {
    display: block;
    overflow: hidden;
}

.blog-card__image {
    width: 100%;
    height: 220px;
    object-fit: cover;
    transition: transform 0.4s ease-out;
}

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

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

.blog-card__meta {
    display: flex;
    gap: 1rem;
    font-size: 0.875rem;
    color: var(--text-gray);
    margin-bottom: 0.75rem;
}

.blog-card__category {
    font-weight: 600;
    color: var(--accent-hover);
}

.blog-card__title {
    font-size: 1.25rem;
    line-height: 1.4;
    font-weight: 700;
    margin-bottom: 1rem;
    flex-grow: 1; /* Pushes the read-more link down */
}

.blog-card__title a {
    color: var(--text-dark);
    transition: color 0.3s ease;
}

.blog-card:hover .blog-card__title a {
    color: var(--accent);
}

.blog-card__read-more {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 600;
    color: var(--accent);
    align-self: flex-start; /* Aligns link to the left */
}

.blog-card__read-more i {
    width: 16px;
    height: 16px;
    transition: transform 0.3s ease;
}

.blog-card__read-more:hover i {
    transform: translateX(4px);
}

.blog__cta {
    text-align: center;
    margin-top: 4rem;
}

.button {
    display: inline-block;
    font-size: 1.1rem;
    font-weight: 600;
    background-color: transparent;
    color: var(--text-dark);
    border: 2px solid var(--border-color);
    padding: 0.8rem 1.8rem;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.button:hover {
    background-color: var(--accent);
    border-color: var(--accent);
    color: var(--bg-dark);
    transform: translateY(-3px);
    box-shadow: 0 4px 10px rgba(45, 212, 191, 0.3);
}

/* ABOUT SECTION STYLES (ETAP 3) */
.about {
    padding: 6rem 0;
    background-color: var(--bg-dark);
    color: var(--bg-light);
}

.about__container {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    align-items: center;
    gap: 5rem;
}

.about__title {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 1.5rem;
    color: white;
}

.about__description {
    font-size: 1.125rem;
    color: var(--text-light-gray);
    line-height: 1.7;
    margin-bottom: 3rem;
}

.about__values-list {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.about__value-item {
    display: flex;
    align-items: flex-start;
    gap: 1.5rem;
}

.about__value-icon {
    flex-shrink: 0;
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: rgba(255, 255, 255, 0.05);
    border-radius: 8px;
}

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

.about__value-title {
    font-size: 1.25rem;
    font-weight: 600;
    color: white;
    margin-bottom: 0.5rem;
}

.about__value-text {
    color: var(--text-light-gray);
    line-height: 1.6;
}

.about__image-wrapper {
    border-radius: 12px;
    overflow: hidden;
}

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

/* RESPONSIVE STYLES for ABOUT */
@media (max-width: 992px) {
    .about__container {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
    .about__image-wrapper {
        order: -1; /* Image on top on mobile */
    }
    .about__title {
        font-size: 2rem;
    }
}

/* CONTACT SECTION STYLES (ETAP 4) */
.contact {
    padding: 6rem 0;
    background-color: #ffffff;
}

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

.contact__title {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 1rem;
    color: var(--text-dark);
}

.contact__subtitle {
    font-size: 1.125rem;
    color: var(--text-gray);
    line-height: 1.7;
}

.contact-form__wrapper {
    max-width: 600px;
    margin: 0 auto;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.form-group {
    display: flex;
    flex-direction: column;
}

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

.form-input {
    width: 100%;
    padding: 0.875rem 1rem;
    font-size: 1rem;
    font-family: var(--font-primary);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    background-color: var(--bg-light);
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.form-input:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(45, 212, 191, 0.2);
}

.form-group--captcha #captcha-label {
    font-weight: 400;
}

.form-group--checkbox {
    flex-direction: row;
    align-items: flex-start;
    gap: 0.75rem;
}

.form-group--checkbox input[type="checkbox"] {
    margin-top: 5px;
    flex-shrink: 0;
    width: 18px;
    height: 18px;
}

.form-label-checkbox {
    font-size: 0.9rem;
    color: var(--text-gray);
    font-weight: 400;
}

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

.contact-form__button {
    background-color: var(--accent);
    color: var(--bg-dark);
    border: none;
    padding: 1rem;
    font-size: 1.1rem;
}
.contact-form__button:hover {
    background-color: var(--accent-hover);
    color: white;
}

/* Form Messages */
.form-message {
    padding: 2rem;
    border-radius: 8px;
    text-align: center;
}

.form-message--success {
    background-color: #f0fdfa;
    border: 1px solid #a7f3d0;
}
.form-message--success .form-message__icon {
    color: #10b981;
}
.form-message--success .form-message__title {
    color: #065f46;
}

.form-message--error {
    background-color: #fff1f2;
    border: 1px solid #fecdd3;
}
.form-message--error .form-message__icon {
    color: #f43f5e;
}
.form-message--error .form-message__title {
    color: #be123c;
}

.form-message__icon {
    margin-bottom: 1rem;
}
.form-message__icon i {
    width: 48px;
    height: 48px;
}

.form-message__title {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

.form-message p {
    color: var(--text-gray);
}

/* Policy Pages Styles */
.pages {
    padding: 5rem 0;
    background-color: white;
}

.pages .container {
    max-width: 800px; /* Optimal width for reading long text */
}

.pages h1 {
    font-size: 2.75rem;
    font-weight: 800;
    color: var(--text-dark);
    margin-bottom: 2rem;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 1rem;
}

.pages h2 {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-top: 3rem;
    margin-bottom: 1.5rem;
}

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

.pages ul,
.pages ol {
    margin-bottom: 1.5rem;
    padding-left: 20px;
}

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

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

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

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

/* ETAP 5: COOKIE POPUP & POLICY PAGES */

/* Cookie Popup Styles */
.cookie-popup {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background-color: var(--bg-dark);
    color: var(--text-light-gray);
    padding: 1.5rem 0;
    z-index: 2000;
    transform: translateY(100%);
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 -5px 15px rgba(0,0,0,0.1);
}

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

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

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

.cookie-popup__text a {
    color: white;
    text-decoration: underline;
}

.cookie-popup__button {
    flex-shrink: 0;
    padding: 0.75rem 1.5rem;
    font-size: 1rem;
    font-weight: 600;
    background-color: var(--accent);
    color: var(--bg-dark);
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

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

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