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

/* ==================== CSS VARIABLES ==================== */
:root {
    --header-height: 4.5rem;

    /* Colors */
    --primary-color: #4A6DE5;
    --primary-color-hover: #3e5ac4;
    --background-color: #F8F9FA;
    --text-color: #212529;
    --text-color-light: #6c757d;
    --container-color: #FFFFFF;
    --border-color: #E9ECEF;
    
    /* Fonts */
    --body-font: 'Inter', sans-serif;
    --title-font: 'Poppins', sans-serif;

    --h1-font-size: 2.5rem;
    --h2-font-size: 2rem;
    --h3-font-size: 1.5rem;
    --normal-font-size: 1rem;
    --small-font-size: 0.875rem;

    /* Z-index */
    --z-header: 100;
    --z-modal: 1000;
}

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

html {
    scroll-behavior: smooth;
}

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

h1, h2, h3, h4 {
    font-family: var(--title-font);
    color: var(--text-color);
    font-weight: 600;
}

ul {
    list-style: none;
}

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

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

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

/* ==================== HEADER ==================== */
.header {
    width: 100%;
    position: fixed;
    top: 0;
    left: 0;
    background-color: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    z-index: var(--z-header);
    border-bottom: 1px solid var(--border-color);
    transition: box-shadow 0.3s ease;
}

.header.scrolled {
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

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

.logo {
    font-family: var(--title-font);
    font-weight: 700;
    font-size: 1.5rem;
    color: var(--primary-color);
}

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

.nav__link {
    color: var(--text-color);
    font-weight: 500;
    position: relative;
    transition: color 0.3s ease;
}

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

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

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

.nav__link--cta {
    background-color: var(--primary-color);
    color: #fff;
    padding: 0.6rem 1.2rem;
    border-radius: 5px;
    transition: background-color 0.3s ease;
}

.nav__link--cta:hover {
    background-color: var(--primary-color-hover);
    color: #fff;
}

.nav__link--cta::after {
    display: none;
}

.header__burger-btn {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
}

/* ==================== FOOTER ==================== */
.footer {
    background-color: var(--container-color);
    padding: 4rem 0 2rem;
    border-top: 1px solid var(--border-color);
}

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

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

.footer__copyright {
    font-size: var(--small-font-size);
    color: var(--text-color-light);
    margin-top: 1rem;
}

.footer__title {
    font-size: 1.1rem;
    margin-bottom: 1rem;
}

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

.footer__link {
    color: var(--text-color-light);
    transition: color 0.3s ease;
    display: inline-block;
}

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

.footer__link--icon {
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
}

.footer__icon {
    flex-shrink: 0;
    width: 18px;
    height: 18px;
    margin-top: 2px;
}


/* ==================== RESPONSIVENESS ==================== */
@media screen and (max-width: 768px) {
    .nav {
        display: none; /* Will be handled by JS */
    }

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

    .footer__column--brand {
        align-items: center;
    }
    
    .footer__link--icon {
        justify-content: center;
    }
}

/* ==================== BUTTONS ==================== */
.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.9rem 1.8rem;
    font-family: var(--title-font);
    font-weight: 600;
    border-radius: 5px;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
}

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

.button--primary:hover {
    background-color: var(--primary-color-hover);
    transform: translateY(-3px);
    box-shadow: 0 4px 15px rgba(74, 109, 229, 0.3);
}

.button__icon {
    width: 20px;
    height: 20px;
    transition: transform 0.3s ease;
}

.button:hover .button__icon {
    transform: translateX(4px);
}

/* ==================== HERO ==================== */
.hero {
    padding-top: calc(var(--header-height) + 4rem);
    padding-bottom: 4rem;
    overflow: hidden; /* To hide pre-animation overflow */
}

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

.hero__title {
    font-size: var(--h1-font-size);
    line-height: 1.3;
    margin-bottom: 1.5rem;
    font-weight: 700;
}

/* Animation styles for the title words */
.hero__title .word {
    display: inline-block;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.5s ease, transform 0.5s ease;
}

.hero__description {
    font-size: 1.1rem;
    color: var(--text-color-light);
    margin-bottom: 2.5rem;
    max-width: 500px;
}

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

.hero__image {
    max-width: 100%;
    border-radius: 10px;
}

/* ==================== HERO RESPONSIVENESS ==================== */
@media screen and (max-width: 992px) {
    .hero__container {
        grid-template-columns: 1fr;
        text-align: center;
    }
    .hero__content {
        order: 2; /* Text comes after image on mobile */
    }
    .hero__image-wrapper {
        order: 1;
        margin-bottom: 2rem;
    }
    .hero__description {
        margin-left: auto;
        margin-right: auto;
    }
}

@media screen and (max-width: 576px) {
    :root {
         --h1-font-size: 2rem;
    }
    .hero {
        padding-top: calc(var(--header-height) + 2rem);
        padding-bottom: 2rem;
    }
}

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

.section__header {
    text-align: center;
    margin-bottom: 3rem;
}

.section__title {
    font-size: var(--h2-font-size);
    margin-bottom: 0.5rem;
}

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

/* ==================== SERVICES ==================== */
.services__container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.service-card {
    background-color: var(--container-color);
    border: 1px solid var(--border-color);
    border-radius: 10px;
    padding: 2.5rem 2rem;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.service-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.07);
}

.service-card__icon-wrapper {
    width: 70px;
    height: 70px;
    margin: 0 auto 1.5rem;
    background-color: #ECF0FE; /* Lighter shade of primary blue */
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
}

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

.service-card__title {
    font-size: 1.3rem;
    margin-bottom: 0.75rem;
}

.service-card__description {
    color: var(--text-color-light);
    line-height: 1.7;
}

/* ==================== SERVICES RESPONSIVENESS ==================== */
@media screen and (max-width: 576px) {
    .section {
        padding-top: 3rem;
        padding-bottom: 3rem;
    }
    :root {
         --h2-font-size: 1.75rem;
    }
}
/* ==================== CASES ==================== */
.cases {
    background-color: var(--container-color);
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
}

.cases__container {
    display: flex;
    flex-direction: column;
    gap: 4rem;
}

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

.case-item--reverse {
    grid-template-columns: 1.2fr 1fr;
}

.case-item--reverse .case-item__image-wrapper {
    order: 2;
}

.case-item--reverse .case-item__content {
    order: 1;
}

.case-item__image {
    border-radius: 10px;
    width: 100%;
}

.case-item__tag {
    display: inline-block;
    background-color: #ECF0FE;
    color: var(--primary-color);
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: var(--small-font-size);
    font-weight: 500;
    margin-bottom: 1rem;
}

.case-item__title {
    font-size: var(--h3-font-size);
    margin-bottom: 1.5rem;
}

.case-item__description {
    color: var(--text-color-light);
    margin-bottom: 1rem;
}

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

.case-item__result {
    margin-top: 1.5rem;
    padding: 1rem;
    background-color: var(--background-color);
    border-left: 4px solid var(--primary-color);
    border-radius: 0 5px 5px 0;
    display: flex;
    align-items: flex-start;
    gap: 1rem;
}

.case-item__result-icon {
    flex-shrink: 0;
    width: 24px;
    height: 24px;
    color: var(--primary-color);
}

.case-item__result p {
    font-size: var(--normal-font-size);
}

/* ==================== CASES RESPONSIVENESS ==================== */
@media screen and (max-width: 992px) {
    .case-item,
    .case-item--reverse {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .case-item--reverse .case-item__image-wrapper,
    .case-item--reverse .case-item__content {
        order: initial;
    }
}

/* ==================== PROCESS ==================== */
.process__container {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
    position: relative;
}

/* Timeline Connector Line - Desktop only */
.process__container::before {
    content: '';
    position: absolute;
    top: 40px; /* Aligns with the center of the icon wrapper */
    left: 5%;
    width: 90%;
    height: 2px;
    background: repeating-linear-gradient(
        90deg, 
        var(--border-color), 
        var(--border-color) 10px, 
        transparent 10px, 
        transparent 20px
    );
    z-index: 1;
}

.process-step {
    background-color: var(--container-color);
    padding: 2rem;
    border: 1px solid var(--border-color);
    border-radius: 10px;
    position: relative;
    z-index: 2;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.process-step:hover {
    transform: translateY(-8px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.07);
}


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

.process-step__number {
    font-size: 3rem;
    font-weight: 700;
    color: var(--border-color);
    line-height: 1;
}

.process-step__icon-wrapper {
    width: 60px;
    height: 60px;
    flex-shrink: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: var(--container-color);
    border-radius: 50%;
    border: 1px solid var(--border-color);
    box-shadow: 0 0 0 4px var(--container-color);
}

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

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

.process-step__description {
    color: var(--text-color-light);
}

/* ==================== PROCESS RESPONSIVENESS ==================== */
@media screen and (max-width: 992px) {
    .process__container {
        grid-template-columns: repeat(2, 1fr);
    }
    .process__container::before {
        display: none; /* Hide timeline line on tablet/mobile */
    }
}

@media screen and (max-width: 576px) {
    .process__container {
        grid-template-columns: 1fr;
    }
    .process-step {
        padding: 1.5rem;
    }
}

/* ==================== BLOG ==================== */
.blog {
    background-color: var(--background-color);
}

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

.blog-card {
    background-color: var(--container-color);
    border-radius: 10px;
    border: 1px solid var(--border-color);
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.blog-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.07);
}

.blog-card__link {
    display: flex;
    flex-direction: column;
    height: 100%;
    color: var(--text-color);
}

.blog-card__image-wrapper {
    width: 100%;
    aspect-ratio: 16 / 9;
}

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

.blog-card__content {
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    flex-grow: 1; /* Pushes date to the bottom */
}

.blog-card__category {
    display: inline-block;
    color: var(--primary-color);
    font-size: var(--small-font-size);
    font-weight: 500;
    margin-bottom: 0.75rem;
}

.blog-card__title {
    font-size: 1.25rem;
    line-height: 1.4;
    margin-bottom: 0.75rem;
    transition: color 0.3s ease;
}

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

.blog-card__snippet {
    color: var(--text-color-light);
    flex-grow: 1; /* Pushes date to the bottom */
    margin-bottom: 1.5rem;
}

.blog-card__date {
    font-size: var(--small-font-size);
    color: var(--text-color-light);
    margin-top: auto; /* Pushes itself to the bottom */
}

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

/* Secondary Button Style */
.button--secondary {
    background-color: transparent;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
}

.button--secondary:hover {
    background-color: var(--primary-color);
    color: #fff;
    transform: translateY(-3px);
    box-shadow: 0 4px 15px rgba(74, 109, 229, 0.2);
}

/* ==================== CONTACT ==================== */
.contact {
    background-color: var(--container-color);
    border-top: 1px solid var(--border-color);
}

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

.contact__title {
    font-size: var(--h2-font-size);
    margin-bottom: 1rem;
}

.contact__description {
    color: var(--text-color-light);
    margin-bottom: 2rem;
}

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

.contact__detail-item {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    color: var(--text-color);
    transition: color 0.3s ease;
}

.contact__detail-item:hover {
    color: var(--primary-color);
}

.contact__detail-icon {
    width: 22px;
    height: 22px;
    color: var(--primary-color);
}

.contact__form-wrapper {
    background-color: var(--background-color);
    padding: 2.5rem;
    border-radius: 10px;
    border: 1px solid var(--border-color);
}

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

.form-label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
}

.form-input {
    width: 100%;
    padding: 0.8rem 1rem;
    border: 1px solid var(--border-color);
    border-radius: 5px;
    font-size: var(--normal-font-size);
    font-family: var(--body-font);
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.form-input:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(74, 109, 229, 0.1);
}

.form-group--captcha {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.form-group--captcha .form-label {
    margin-bottom: 0;
    white-space: nowrap;
}

.captcha-question {
    font-weight: 700;
    color: var(--primary-color);
}

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

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

.form-label-checkbox {
    font-size: var(--small-font-size);
    color: var(--text-color-light);
}

.form-label-checkbox a {
    color: var(--primary-color);
    text-decoration: underline;
}

.button--full {
    width: 100%;
}

.form-message {
    margin-top: 1.5rem;
    padding: 1rem;
    border-radius: 5px;
    text-align: center;
    display: none; /* Hidden by default */
}

.form-message.success {
    background-color: #d1e7dd;
    color: #0f5132;
    display: block;
}

.form-message.error {
    background-color: #f8d7da;
    color: #842029;
    display: block;
}

/* ==================== CONTACT RESPONSIVENESS ==================== */
@media screen and (max-width: 992px) {
    .contact__container {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
}

/* ==================== COOKIE POPUP ==================== */
.cookie-popup {
    position: fixed;
    bottom: 1.5rem;
    left: 1.5rem;
    right: 1.5rem;
    max-width: 500px;
    margin: 0 auto;
    background-color: var(--container-color);
    padding: 1.5rem;
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1.5rem;
    z-index: var(--z-modal);
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.4s ease, transform 0.4s ease;
    pointer-events: none;
}

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

.cookie-popup__text {
    font-size: var(--small-font-size);
    color: var(--text-color-light);
}

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

.button--small {
    padding: 0.6rem 1.2rem;
    flex-shrink: 0;
}

@media screen and (max-width: 576px) {
    .cookie-popup {
        flex-direction: column;
        text-align: center;
        gap: 1rem;
        bottom: 1rem;
        left: 1rem;
        right: 1rem;
    }
}

/* ==================== GENERIC POLICY PAGES STYLES ==================== */
.pages {
    padding-top: calc(var(--header-height) + 4rem);
    padding-bottom: 4rem;
    background-color: var(--container-color);
}

.pages .container {
    max-width: 800px; /* Narrower container for better readability */
}

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

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

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

.pages p, .pages li {
    font-family: var(--body-font);
    font-size: 1.1rem;
    line-height: 1.8;
    color: #343a40;
}

.pages p {
    margin-bottom: 1rem;
}

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

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

.pages a {
    color: var(--primary-color);
    text-decoration: none;
    border-bottom: 2px solid rgba(74, 109, 229, 0.2);
    transition: border-color 0.3s ease;
}

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

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