/* GLOBAL STYLES */
:root {
    --primary-color: #e0e0e0;
    --secondary-color: #4a9eff;
    --background-color: #1a1a1a;
    --white-color: #2d2d2d;
    --text-color: #d0d0d0;
    --font-family-headings: 'Poppins', sans-serif;
    --font-family-body: 'Roboto', sans-serif;
}

*, *::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 {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

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

ul {
    list-style: none;
}

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

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

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

/* HEADER */
.header {
    background-color: var(--white-color);
    padding: 15px 0;
    position: fixed;
    width: 100%;
    top: 0;
    left: 0;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0,0,0,0.3);
}

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

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    color: var(--primary-color);
    font-family: var(--font-family-headings);
    font-weight: 700;
    font-size: 24px;
}

.logo__img {
    width: 32px;
    height: 32px;
}

.nav__list {
    display: flex;
    gap: 30px;
}

.nav__link {
    font-family: var(--font-family-headings);
    font-weight: 500;
    font-size: 16px;
    color: var(--primary-color);
    position: relative;
    padding-bottom: 5px;
}

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

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

.header__burger {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    color: var(--primary-color);
    z-index: 1001;
}

.header__burger .lucide-x {
    display: none;
}

/* FOOTER */
.footer {
    background-color: #151515;
    color: var(--text-color);
    padding: 60px 0 20px;
}

.footer__container {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 40px;
    margin-bottom: 40px;
}

.footer__column--about {
    grid-column: span 1;
}

.footer__description {
    margin-top: 15px;
    font-size: 14px;
    line-height: 1.7;
    opacity: 0.8;
}

.footer .logo {
    color: var(--white-color);
}

.footer .logo__img path:first-child {
   stroke: var(--background-color);
}

.footer__title {
    font-size: 18px;
    color: var(--white-color);
    margin-bottom: 20px;
    font-weight: 500;
}

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

.footer__link {
    color: var(--background-color);
    opacity: 0.8;
    font-size: 15px;
}

.footer__link:hover {
    opacity: 1;
    color: var(--secondary-color);
}

.footer__list--contact .footer__item {
    display: flex;
    align-items: center;
    gap: 10px;
}

.footer__icon {
    width: 18px;
    height: 18px;
    color: var(--secondary-color);
}

.footer__bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 14px;
    opacity: 0.7;
}

/* MOBILE ADAPTATION */
@media (max-width: 768px) {
    .nav {
        position: fixed;
        top: 0;
        left: -100%;
        width: 100%;
        height: 100vh;
        background-color: var(--background-color);
        display: flex;
        justify-content: center;
        align-items: center;
        transition: left 0.4s ease-in-out;
    }

    .nav.nav--active {
        left: 0;
    }

    .nav__list {
        flex-direction: column;
        text-align: center;
        gap: 40px;
    }
    
    .nav__link {
        font-size: 24px;
    }

    .header__burger {
        display: block;
    }

    .header__burger.header__burger--active .lucide-menu {
        display: none;
    }

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

    .footer__column--about, .logo, .footer__list--contact .footer__item {
        justify-content: center;
    }
}

/* GENERAL PURPOSE CLASSES (like buttons) */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 12px 24px;
    background-color: var(--secondary-color);
    color: var(--white-color);
    font-family: var(--font-family-headings);
    font-weight: 500;
    font-size: 16px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.3s ease;
}

.btn:hover {
    background-color: #3a8eef; /* Slightly lighter blue */
    transform: translateY(-2px);
    color: var(--white-color);
}

.btn__icon {
    width: 20px;
    height: 20px;
}

/* MAIN CONTENT PADDING */
.main {
    padding-top: 75px; /* Header height + some space */
}

/* HERO SECTION */
.hero {
    padding: 80px 0;
    overflow: hidden; /* For AOS animations */
}

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

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

.hero__description {
    font-size: 18px;
    margin-bottom: 30px;
    max-width: 550px;
}

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

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

/* ADAPTATION FOR DESKTOP */
@media (min-width: 768px) {
    .hero__container {
        grid-template-columns: 1fr 1fr;
        gap: 60px;
    }

    .hero__title {
        font-size: 2.5rem;
    }
}

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

.section:nth-of-type(odd) {
    background-color: var(--white-color);
}

.section__header {
    text-align: center;
    margin-bottom: 60px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.section__title {
    font-size: 36px;
    margin-bottom: 15px;
}

.section__subtitle {
    font-size: 18px;
    line-height: 1.7;
    color: var(--text-color);
    opacity: 0.9;
}

/* BLOG SECTION */
.blog__grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 30px;
}

.blog-card {
    background-color: var(--white-color);
    border-radius: 10px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.3);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.blog-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 30px rgba(0,0,0,0.5);
}

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

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

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

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

.blog-card__category {
    display: inline-block;
    margin-bottom: 10px;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    color: var(--secondary-color);
    letter-spacing: 0.5px;
}

.blog-card__title {
    font-size: 20px;
    line-height: 1.4;
    margin-bottom: 15px;
    flex-grow: 1;
}

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

.blog-card__excerpt {
    font-size: 15px;
    margin-bottom: 20px;
    color: var(--text-color);
}

.blog-card__readmore {
    font-family: var(--font-family-headings);
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.blog-card__readmore .lucide {
    width: 16px;
    height: 16px;
    transition: transform 0.3s ease;
}

.blog-card__readmore:hover .lucide {
    transform: translateX(3px);
}

/* ADAPTATION FOR DESKTOP */
@media (min-width: 768px) {
    .blog__grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 992px) {
    .blog__grid {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .section__title {
        font-size: 40px;
    }
}

/* TOOLS SECTION */
.tools__container {
    max-width: 1000px;
    margin: 0 auto;
    background-color: var(--white-color);
    border-radius: 10px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.4);
    overflow: hidden;
}

.tools__nav {
    display: flex;
    background-color: #252525;
    border-bottom: 1px solid #404040;
}

.tools__tab {
    flex: 1;
    padding: 20px;
    font-family: var(--font-family-headings);
    font-size: 16px;
    font-weight: 500;
    color: var(--text-color);
    background-color: transparent;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    transition: background-color 0.3s ease, color 0.3s ease;
    border-bottom: 3px solid transparent;
}

.tools__tab:hover {
    background-color: #353535;
}

.tools__tab--active {
    color: var(--secondary-color);
    border-bottom-color: var(--secondary-color);
    background-color: var(--white-color);
}

.tools__tab-icon {
    width: 20px;
    height: 20px;
}

.tools__content-wrapper {
    position: relative;
}

.tools__content {
    display: none;
    padding: 40px;
    animation: fadeIn 0.5s ease;
}

.tools__content--active {
    display: grid;
    grid-template-columns: 1fr;
    gap: 30px;
    align-items: center;
}

.tools__content-text h3 {
    font-size: 24px;
    margin-bottom: 15px;
}

.tools__content-text p {
    margin-bottom: 25px;
}

.tools__content-image img {
    border-radius: 8px;
}

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

/* ADAPTATION FOR DESKTOP */
@media (max-width: 768px) {
    .tools__nav {
        flex-direction: column;
    }
    .tools__tab {
        border-bottom: 1px solid #404040;
    }
     .tools__tab--active {
        border-bottom-color: var(--secondary-color);
    }
    .tools__content {
       padding: 30px 20px;
    }
}

@media (min-width: 768px) {
     .tools__content--active {
        grid-template-columns: 1fr 1fr;
        gap: 50px;
    }
    .tools__tab {
        font-size: 18px;
    }
}

/* CASES SECTION */
.cases__grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 30px;
    max-width: 900px;
    margin: 0 auto;
}

.case-card {
    background-color: var(--white-color);
    border-radius: 10px;
    padding: 30px;
    box-shadow: 0 5px 25px rgba(0,0,0,0.3);
}

.case-card__testimonial {
    margin-bottom: 25px;
}

.case-card__testimonial blockquote {
    font-size: 18px;
    font-style: italic;
    color: var(--primary-color);
    border-left: 4px solid var(--secondary-color);
    padding-left: 20px;
    margin: 0;
}

.case-card__author {
    display: flex;
    align-items: center;
    gap: 15px;
}

.case-card__avatar {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    object-fit: cover;
}

.case-card__name {
    font-family: var(--font-family-headings);
    font-weight: 700;
    font-size: 18px;
    color: var(--primary-color);
    margin-bottom: 5px;
    display: block;
}

.case-card__progress {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    font-size: 14px;
}

.case-card__status {
    padding: 3px 8px;
    border-radius: 4px;
}

.case-card__status--before {
    background-color: #3a3a3a;
    color: #b0b0b0;
}

.case-card__status--after {
    background-color: #2d4a2d;
    color: #90ee90;
    font-weight: 500;
}

.case-card__arrow {
    color: var(--secondary-color);
}


/* ADAPTATION FOR DESKTOP */
@media (min-width: 992px) {
    .cases__grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 40px;
    }
}

/* ABOUT SECTION */
.about {
    background-color: var(--white-color);
}

.about__grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 40px;
    align-items: center;
}

.about__title {
    text-align: left;
}

.about__description {
    font-size: 17px;
    margin-top: 20px;
    margin-bottom: 30px;
}

.about__stats {
    display: flex;
    flex-direction: column;
    gap: 25px;
    margin-bottom: 40px;
}

.about__stat-item {
    display: flex;
    align-items: center;
    gap: 20px;
}

.about__stat-icon {
    width: 40px;
    height: 40px;
    color: var(--secondary-color);
    flex-shrink: 0;
}

.about__stat-text strong {
    font-family: var(--font-family-headings);
    font-size: 18px;
    color: var(--primary-color);
    display: block;
}

.about__stat-text span {
    font-size: 15px;
    color: var(--text-color);
}

.about__image {
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
}

/* ADAPTATION FOR DESKTOP */
@media (min-width: 992px) {
    .about__grid {
        grid-template-columns: 1fr 1fr;
        gap: 80px;
    }
    
    .about__title {
        font-size: 40px;
    }
}

/* CONTACT SECTION */
.contact {
    padding-bottom: 120px;
}
.contact__wrapper {
    max-width: 700px;
    margin: 0 auto;
    background-color: var(--white-color);
    padding: 40px;
    border-radius: 10px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.4);
}

.contact-form__group {
    margin-bottom: 25px;
}

.contact-form__label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: var(--primary-color);
}

.contact-form__input {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #555;
    border-radius: 5px;
    font-size: 16px;
    font-family: var(--font-family-body);
    background-color: #1a1a1a;
    color: var(--text-color);
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.contact-form__input:focus {
    outline: none;
    border-color: var(--secondary-color);
    box-shadow: 0 0 0 3px rgba(52, 152, 219, 0.2);
}

.contact-form__group--checkbox {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin-bottom: 30px;
}

.contact-form__checkbox {
    margin-top: 5px;
    flex-shrink: 0;
    width: 18px;
    height: 18px;
}

.contact-form__checkbox-label {
    font-size: 14px;
    line-height: 1.5;
}

.contact-form__checkbox-label a {
    text-decoration: underline;
}

.contact-form__button {
    width: 100%;
    padding: 15px;
    font-size: 18px;
}

.form-message {
    text-align: center;
    margin-top: 20px;
    color: #90ee90;
    background-color: #2d4a2d;
    padding: 10px;
    border-radius: 5px;
    display: none; /* Hidden by default */
    opacity: 0;
    transition: opacity 0.5s ease;
}

.form-message--visible {
    display: block;
    opacity: 1;
}

@media (max-width: 768px) {
    .contact__wrapper {
        padding: 25px;
    }
}

/* COOKIE POP-UP */
.cookie-popup {
    position: fixed;
    bottom: -100%; /* Initially hidden */
    left: 0;
    width: 100%;
    background-color: var(--primary-color);
    color: var(--white-color);
    padding: 20px;
    box-shadow: 0 -5px 20px rgba(0,0,0,0.1);
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
    z-index: 1100;
    transition: bottom 0.5s ease-in-out;
}

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

.cookie-popup__text {
    margin: 0;
}

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

.btn--cookie {
    background-color: var(--secondary-color);
    padding: 8px 16px;
    flex-shrink: 0;
}

/* STYLES FOR POLICY PAGES (privacy.html, terms.html etc.) */
.pages {
    padding: 120px 0;
    background-color: var(--white-color);
}

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

.pages h1, .pages h2 {
    margin-bottom: 20px;
}

.pages h1 {
    color: var(--primary-color);
    font-size: 1.5rem;
    padding-bottom: 15px;
    border-bottom: 1px solid #404040;
}

.pages h2 {
    font-size: 1.5rem;
    margin-top: 40px;
}

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

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

.pages li {
    margin-bottom: 10px;
}

.pages a {
    text-decoration: underline;
}

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


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