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

/* ====================
   GLOBAL STYLES & VARIABLES
   ==================== */
:root {
    --color-background: #111827; /* Dark Blue-Gray */
    --color-surface: #1F2937;    /* Lighter Dark Blue-Gray */
    --color-primary: #34D399;   /* Vibrant Green/Teal */
    --color-secondary: #4F46E5; /* Indigo */
    --color-text: #F3F4F6;       /* Light Gray */
    --color-text-muted: #9CA3AF; /* Muted Gray */
    --color-border: #374151;

    --font-family-headings: 'Exo 2', sans-serif;
    --font-family-body: 'Montserrat', sans-serif;

    --header-height: 80px;
}

/* ====================
   BASE & RESET
   ==================== */
*,
*::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;
    background-color: var(--color-background);
    color: var(--color-text);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

ul {
    list-style: none;
}

a {
    text-decoration: none;
    color: inherit;
}

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

button {
    font-family: inherit;
    border: none;
    background: none;
    cursor: pointer;
    color: inherit;
}

/* ====================
   UTILITY CLASSES
   ==================== */
.container {
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
    padding-left: 1.5rem;
    padding-right: 1.5rem;
}

/* ====================
   HEADER
   ==================== */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: var(--header-height);
    background-color: rgba(17, 24, 39, 0.8);
    backdrop-filter: blur(10px);
    z-index: 1000;
    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-size: 1.75rem;
    font-weight: 700;
    color: var(--color-primary);
    transition: color 0.3s ease;
}

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

.header__nav-list {
    display: flex;
    gap: 2.5rem;
}

.header__nav-link {
    font-weight: 500;
    font-size: 1rem;
    color: var(--color-text-muted);
    position: relative;
    padding: 0.5rem 0;
    transition: color 0.3s ease;
}

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

.header__nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background-color: var(--color-primary);
    transform: scaleX(0);
    transform-origin: right;
    transition: transform 0.4s cubic-bezier(0.19, 1, 0.22, 1);
}

.header__nav-link:hover::after {
    transform: scaleX(1);
    transform-origin: left;
}

.header__menu-button {
    display: none; /* Hidden on desktop */
}

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

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

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

.footer__logo {
    font-family: var(--font-family-headings);
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--color-primary);
    margin-bottom: 1rem;
}

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

.footer__heading {
    font-family: var(--font-family-headings);
    font-size: 1.25rem;
    margin-bottom: 1.5rem;
    color: var(--color-text);
}

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

.footer__link {
    color: var(--color-text-muted);
    transition: color 0.3s ease, padding-left 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.footer__link:hover {
    color: var(--color-primary);
    padding-left: 5px;
}

.footer__list--contacts .footer__address {
    color: var(--color-text-muted);
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
}

.footer__icon {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
    color: var(--color-text-muted);
}

/* ====================
   RESPONSIVENESS (Mobile-First)
   ==================== */
@media (max-width: 768px) {
    .header__nav {
        display: none; /* Future mobile menu will handle this */
    }

    .header__menu-button {
        display: block;
    }

    .footer__container {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .footer__list--contacts .footer__address,
    .footer__list--contacts .footer__link {
        justify-content: center;
    }
}

/* ====================
   BUTTON
   ==================== */
.button {
    display: inline-block;
    padding: 0.8rem 2rem;
    font-family: var(--font-family-headings);
    font-weight: 600;
    font-size: 1rem;
    color: var(--color-background);
    background-color: var(--color-primary);
    border-radius: 5px;
    border: 2px solid var(--color-primary);
    transition: background-color 0.3s ease, color 0.3s ease, transform 0.3s ease;
    text-align: center;
}

.button:hover {
    background-color: transparent;
    color: var(--color-primary);
    transform: translateY(-3px);
}

/* ====================
   HERO SECTION
   ==================== */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding-top: var(--header-height);
    background: radial-gradient(circle at 50% 50%, rgba(31, 41, 55, 0.5), var(--color-background) 70%);
}

.hero__container {
    text-align: center;
}

.hero__content {
    max-width: 800px;
    margin: 0 auto;
}

.hero__title {
    font-family: var(--font-family-headings);
    font-size: 3.5rem;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1.5rem;
    color: var(--color-text);
}

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

/* Blinking cursor effect */
.hero__title--animated::after {
    content: '|';
    display: inline-block;
    animation: blink 0.7s infinite;
    font-weight: 400;
    color: var(--color-text-muted);
}

@keyframes blink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0; }
}

.hero__subtitle {
    font-size: 1.125rem;
    color: var(--color-text-muted);
    line-height: 1.7;
    margin-bottom: 2.5rem;
}

/* ====================
   RESPONSIVENESS (Mobile-First)
   ==================== */
@media (max-width: 768px) {
    .hero__title {
        font-size: 2.5rem;
    }

    .hero__subtitle {
        font-size: 1rem;
    }
}

/* ====================
   GENERIC SECTION STYLES
   ==================== */
.section {
    padding: 6rem 0;
}

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

.section__title {
    font-family: var(--font-family-headings);
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--color-text);
}

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

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

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

.directions__card {
    background-color: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: 8px;
    padding: 2.5rem 2rem;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    overflow: hidden;
}

.directions__card:hover {
    transform: translateY(-8px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

.directions__card-icon {
    margin: 0 auto 1.5rem;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: rgba(52, 211, 153, 0.1);
    border-radius: 50%;
}

.directions__card-icon svg {
    width: 28px;
    height: 28px;
    color: var(--color-primary);
}

.directions__card-title {
    font-family: var(--font-family-headings);
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--color-text);
}

.directions__card-description {
    color: var(--color-text-muted);
    margin-bottom: 1.5rem;
    min-height: 80px; /* Reserve space for description */
}

.directions__card-tech {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 0.5rem;
    opacity: 0;
    transform: translateY(10px);
    transition: opacity 0.4s ease, transform 0.4s ease;
    transition-delay: 0.1s;
}

.directions__card:hover .directions__card-tech {
    opacity: 1;
    transform: translateY(0);
}

.directions__card-tech li {
    font-size: 0.8rem;
    background-color: var(--color-border);
    color: var(--color-text-muted);
    padding: 0.25rem 0.75rem;
    border-radius: 12px;
}

/* ====================
   RESPONSIVENESS (Mobile-First)
   ==================== */
@media (max-width: 768px) {
    .section {
        padding: 4rem 0;
    }
    .section__title {
        font-size: 2rem;
    }
    .section__subtitle {
        font-size: 1rem;
    }
}

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

.approach__features {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 2rem;
}

.approach__feature-item {
    flex: 1;
    text-align: center;
    max-width: 320px;
}

.approach__feature-icon {
    width: 60px;
    height: 60px;
    margin: 0 auto 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background-color: var(--color-background);
    border: 2px solid var(--color-border);
}

.approach__feature-icon svg {
    width: 30px;
    height: 30px;
    color: var(--color-primary);
}

.approach__feature-title {
    font-family: var(--font-family-headings);
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--color-text);
}

.approach__feature-description {
    color: var(--color-text-muted);
}

.approach__connector {
    flex-grow: 1;
    height: 2px;
    background-image: linear-gradient(to right, var(--color-border) 50%, transparent 50%);
    background-size: 16px 2px;
    background-repeat: repeat-x;
    margin-top: 38px; /* Vertically align with icons */
}

/* ====================
   RESPONSIVENESS (Mobile-First)
   ==================== */
@media (max-width: 992px) {
    .approach__features {
        flex-direction: column;
        align-items: center;
        gap: 3rem;
    }

    .approach__connector {
        display: none;
    }
}

/* ====================
   PROCESS SECTION
   ==================== */
.process {
    background-color: var(--color-background);
}

.process__timeline {
    position: relative;
    max-width: 900px;
    margin: 0 auto;
    padding: 2rem 0;
}

/* The vertical line */
.process__timeline::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 3px;
    height: 100%;
    background-color: var(--color-border);
}

.process__item {
    padding: 1rem 3rem;
    position: relative;
    width: 50%;
    opacity: 0;
    transform: translateY(50px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.process__item.is-visible {
    opacity: 1;
    transform: translateY(0);
}

/* Position items on the left and right */
.process__item:nth-child(odd) {
    left: 0;
    padding-left: 0;
}

.process__item:nth-child(even) {
    left: 50%;
    padding-right: 0;
}

.process__icon-wrapper {
    position: absolute;
    top: 15px;
    right: -21px; /* (42px circle width / 2) */
    width: 42px;
    height: 42px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: var(--color-primary);
    color: var(--color-background);
    border-radius: 50%;
    z-index: 1;
    border: 3px solid var(--color-background);
}

.process__item:nth-child(even) .process__icon-wrapper {
    left: -21px;
}

.process__icon-wrapper svg {
    width: 22px;
    height: 22px;
}

.process__content {
    padding: 1.5rem;
    background-color: var(--color-surface);
    border-radius: 8px;
    border: 1px solid var(--color-border);
    position: relative;
}

.process__item-title {
    font-family: var(--font-family-headings);
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
    color: var(--color-text);
}

.process__item-description {
    color: var(--color-text-muted);
    font-size: 0.9rem;
}


/* ====================
   RESPONSIVENESS (Mobile-First)
   ==================== */
@media (max-width: 768px) {
    .process__timeline::before {
        left: 21px; /* Position line near icons */
    }

    .process__item,
    .process__item:nth-child(even) {
        width: 100%;
        left: 0;
        padding-left: 3rem;
        padding-right: 0;
    }

    .process__icon-wrapper,
    .process__item:nth-child(even) .process__icon-wrapper {
        left: 0;
    }
}

/* ====================
   RESULTS (TESTIMONIALS) SECTION
   ==================== */
.results {
    background-color: var(--color-surface);
    overflow: hidden; /* Important for slider styling */
}

.testimonials__slider {
    max-width: 800px;
    margin: 0 auto;
    padding: 2rem 0;
}

.testimonial-card {
    background-color: var(--color-background);
    border: 1px solid var(--color-border);
    border-radius: 8px;
    padding: 2.5rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.testimonial-card__photo {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: 1.5rem;
    border: 2px solid var(--color-primary);
}

.testimonial-card__quote {
    font-size: 1.125rem;
    font-style: italic;
    color: var(--color-text);
    margin-bottom: 1.5rem;
    line-height: 1.7;
}

.testimonial-card__author {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.testimonial-card__name {
    font-family: var(--font-family-headings);
    font-weight: 600;
    font-size: 1.1rem;
    color: var(--color-text);
}

.testimonial-card__role {
    font-size: 0.9rem;
    color: var(--color-text-muted);
}

/* Swiper custom styles */
.swiper-button-next,
.swiper-button-prev {
    color: var(--color-primary) !important;
}

.swiper-pagination-bullet {
    background-color: var(--color-border) !important;
}

.swiper-pagination-bullet-active {
    background-color: var(--color-primary) !important;
}

/* ====================
   RESPONSIVENESS (Mobile-First)
   ==================== */
@media (max-width: 768px) {
    .testimonial-card__quote {
        font-size: 1rem;
    }

    .swiper-button-next,
    .swiper-button-prev {
        display: none !important; /* Hide arrows on mobile */
    }
}
/* ====================
   CONTACT SECTION
   ==================== */
.contact {
    background-color: var(--color-background);
}

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

.contact__form {
    display: grid;
    gap: 1.5rem;
}

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

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

#captchaLabel {
    display: inline-block;
    margin-right: 0.5rem;
}

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

.form-input:focus {
    outline: none;
    border-color: var(--color-primary);
    box-shadow: 0 0 0 3px rgba(52, 211, 153, 0.2);
}

.form-group--captcha {
    flex-direction: row;
    align-items: center;
}
.form-group--captcha .form-input {
    width: 100px;
}

.form-group--checkbox {
    flex-direction: row;
    align-items: center;
    gap: 0.75rem;
    font-size: 0.9rem;
    color: var(--color-text-muted);
}

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

.form-group--checkbox input[type="checkbox"] {
    width: 1.25em;
    height: 1.25em;
    accent-color: var(--color-primary);
}

.contact__button {
    width: 100%;
    padding-top: 1rem;
    padding-bottom: 1rem;
    font-size: 1.1rem;
}

.success-message {
    display: none; /* Hidden by default */
    text-align: center;
    padding: 2rem;
}

.success-message.is-shown {
    display: block;
}

.success-message__icon {
    color: var(--color-primary);
    margin-bottom: 1.5rem;
}
.success-message__icon svg {
    width: 60px;
    height: 60px;
}

.success-message__title {
    font-family: var(--font-family-headings);
    font-size: 2rem;
    margin-bottom: 1rem;
}
/* ====================
   COOKIE POPUP
   ==================== */
.cookie-popup {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background-color: var(--color-surface);
    border-top: 1px solid var(--color-border);
    padding: 1.5rem 0;
    z-index: 2000;
    transform: translateY(100%);
    transition: transform 0.5s cubic-bezier(0.165, 0.84, 0.44, 1);
}

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

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

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

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

.cookie-popup__button {
    flex-shrink: 0;
    padding: 0.6rem 1.5rem;
}

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

/* ====================
   STYLES FOR POLICY PAGES (privacy.html, etc.)
   ==================== */
.pages {
    padding: calc(var(--header-height) + 4rem) 0 4rem 0;
}

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

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

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

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

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

.pages ul {
    list-style-type: disc;
    padding-left: 1.5rem;
    color: var(--color-text-muted);
    margin-bottom: 1.5rem;
}

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

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

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

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