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

/* ==================== CSS VARIABLES ==================== */
:root {
    /* Colors */
    --color-bg: #0D1117;
    --color-bg-secondary: #161B22;
    --color-border: #30363D;
    --color-text-primary: #C9D1D9;
    --color-text-secondary: #8B949E;
    --color-accent: #2ECC71;
    --color-accent-hover: #27ae60;
    --color-white: #FFFFFF;

    /* Fonts */
    --font-family-headings: 'Space Grotesk', sans-serif;
    --font-family-body: 'Inter', sans-serif;

    /* Other */
    --container-width: 1140px;
    --container-padding: 1rem;
    --transition-duration: 0.3s;
}

/* ==================== GLOBAL STYLES & RESET ==================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-family-body);
    font-size: 16px;
    line-height: 1.6;
    background-color: var(--color-bg);
    color: var(--color-text-primary);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

ul {
    list-style: none;
}

a {
    text-decoration: none;
    color: inherit;
    transition: color var(--transition-duration) ease;
}

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

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

.container {
    max-width: var(--container-width);
    margin-left: auto;
    margin-right: auto;
    padding-left: var(--container-padding);
    padding-right: var(--container-padding);
}

/* ==================== HEADER ==================== */
.header {
    background-color: rgba(13, 17, 23, 0.8);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--color-border);
    padding: 1rem 0;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 100;
}

.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(--color-white);
}

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

.header__nav-link {
    font-size: 1rem;
    color: var(--color-text-primary);
    padding: 0.5rem 0;
    position: relative;
}

.header__nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--color-accent);
    transition: width var(--transition-duration) ease;
}

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

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

.header__nav-link--button {
    background-color: var(--color-accent);
    color: var(--color-bg);
    font-weight: 500;
    padding: 0.6rem 1.2rem;
    border-radius: 5px;
    transition: background-color var(--transition-duration) ease;
}

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

.header__nav-link--button::after {
    display: none;
}

.header__burger-menu {
    display: none;
    background: none;
    border: none;
    color: var(--color-white);
    cursor: pointer;
}

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

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

.footer__column--brand {
    max-width: 250px;
}

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

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

.footer__title {
    font-size: 1.2rem;
    margin-bottom: 1.5rem;
}

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

.footer__list--contacts li {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
}

.footer__icon {
    width: 18px;
    height: 18px;
    color: var(--color-text-secondary);
    margin-top: 3px;
    flex-shrink: 0;
}

.footer__link {
    color: var(--color-text-secondary);
    font-size: 0.9rem;
    transition: color var(--transition-duration) ease;
}

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

.footer__bottom {
    border-top: 1px solid var(--color-border);
    padding: 1.5rem 0;
    text-align: center;
    color: var(--color-text-secondary);
    font-size: 0.85rem;
}

/* ==================== RESPONSIVE STYLES (Mobile First) ==================== */
@media (max-width: 768px) {
    .header__nav {
        display: none; /* Will be toggled by JS */
        /* Styles for mobile menu will be added later */
    }

    .header__burger-menu {
        display: block;
    }
    
    .footer__container {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .footer__column--brand {
        margin: 0 auto;
    }
    
    .footer__list--contacts li {
        justify-content: center;
    }
}
/* ==================== HERO SECTION ==================== */
.hero {
    position: relative;
    display: flex;
    align-items: center;
    min-height: 100vh;
    padding-top: 80px; /* Header height */
    overflow: hidden; /* Hide parts of shapes that go outside */
}

.hero__container {
    position: relative;
    z-index: 2;
}

.hero__content {
    max-width: 750px;
    text-align: center;
    margin: 0 auto;
}

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

.hero__subtitle {
    font-size: 1.25rem;
    color: var(--color-text-secondary);
    margin-bottom: 2.5rem;
}

.hero__cta-button {
    display: inline-block;
    background-color: var(--color-accent);
    color: var(--color-bg);
    font-size: 1.1rem;
    font-weight: 700;
    font-family: var(--font-family-headings);
    padding: 1rem 2.5rem;
    border-radius: 8px;
    transition: transform var(--transition-duration) ease, background-color var(--transition-duration) ease;
}

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

/* --- Background Animation Shapes --- */
.hero__background-shapes {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.hero__shape {
    position: absolute;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(46, 204, 113, 0.1), rgba(46, 204, 113, 0));
    transition: transform 0.5s linear; /* Smooth movement by JS */
}

.hero__shape--1 {
    width: 300px;
    height: 300px;
    top: 15%;
    left: 10%;
}

.hero__shape--2 {
    width: 500px;
    height: 500px;
    top: 50%;
    right: 5%;
}

.hero__shape--3 {
    width: 250px;
    height: 250px;
    bottom: 10%;
    left: 40%;
}

/* ==================== HERO RESPONSIVE STYLES ==================== */
@media (max-width: 768px) {
    .hero__title {
        font-size: 2.5rem;
    }

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

@media (max-width: 480px) {
    .hero__title {
        font-size: 2rem;
    }

    .hero__subtitle {
        font-size: 1rem;
    }

    .hero__cta-button {
        padding: 0.8rem 1.8rem;
        font-size: 1rem;
    }
}

/* ==================== SHARED STYLES (for multiple sections) ==================== */
.section-title {
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 3rem;
}

/* ==================== CASES SECTION ==================== */
.cases-section {
    padding: 5rem 0;
}

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

.case-card {
    background-color: var(--color-bg-secondary);
    border: 1px solid var(--color-border);
    border-radius: 12px;
    overflow: hidden;
    transition: transform var(--transition-duration) ease, box-shadow var(--transition-duration) ease;
}

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

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

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

.case-card__content {
    padding: 1.5rem;
}

.case-card__title {
    font-size: 1.5rem;
    margin-bottom: 0.75rem;
    color: var(--color-white);
}

.case-card__description {
    font-size: 0.95rem;
    color: var(--color-text-secondary);
    margin-bottom: 1.5rem;
}

.case-card__tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.case-card__tag {
    background-color: var(--color-border);
    color: var(--color-text-primary);
    font-size: 0.75rem;
    font-weight: 500;
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
}

/* ==================== CASES RESPONSIVE STYLES ==================== */
@media (max-width: 768px) {
    .section-title {
        font-size: 2.2rem;
    }
}
/* ==================== PROCESS SECTION ==================== */
.process-section {
    padding: 5rem 0;
    background-color: var(--color-bg-secondary);
}

.process-section__timeline {
    max-width: 700px;
    margin: 0 auto;
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 2.5rem;
}

/* The vertical line for the timeline effect */
.process-section__timeline::before {
    content: '';
    position: absolute;
    top: 20px;
    left: 23px;
    bottom: 20px;
    width: 2px;
    background-color: var(--color-border);
    transform: translateX(-50%);
}

.process-item {
    display: flex;
    gap: 1.5rem;
    align-items: flex-start;
    position: relative;
}

.process-item__icon-wrapper {
    flex-shrink: 0;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background-color: var(--color-border);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 2; /* To be above the timeline line */
    border: 3px solid var(--color-bg-secondary);
}

.process-item__icon {
    width: 24px;
    height: 24px;
    color: var(--color-accent);
}

.process-item__step {
    font-family: var(--font-family-headings);
    font-size: 0.8rem;
    font-weight: 500;
    color: var(--color-text-secondary);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 0.25rem;
    display: block;
}

.process-item__title {
    font-size: 1.5rem;
    color: var(--color-white);
    margin-bottom: 0.5rem;
}

.process-item__description {
    font-size: 0.95rem;
    color: var(--color-text-primary);
    line-height: 1.7;
}

/* ==================== PROCESS RESPONSIVE STYLES ==================== */
@media (max-width: 480px) {
    .process-section__timeline::before {
        left: 24px;
    }
}
/* ==================== TECHNOLOGIES SECTION ==================== */
.tech-section {
    padding: 5rem 0;
}

.tech-section__grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 1.5rem;
    max-width: 900px;
    margin: 0 auto;
}

.tech-item {
    background-color: var(--color-bg-secondary);
    border: 1px solid var(--color-border);
    border-radius: 8px;
    padding: 2rem 1rem;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    transition: transform var(--transition-duration) ease, border-color var(--transition-duration) ease;
}

.tech-item:hover {
    transform: translateY(-5px);
    border-color: var(--color-accent);
}

.tech-item__name {
    font-family: var(--font-family-headings);
    font-size: 1.1rem;
    font-weight: 500;
    color: var(--color-text-primary);
}

/* ==================== TECH RESPONSIVE STYLES ==================== */
@media (max-width: 480px) {
    .tech-section__grid {
        grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
        gap: 1rem;
    }

    .tech-item {
        padding: 1.5rem 0.5rem;
    }
    
    .tech-item__name {
        font-size: 1rem;
    }
}
/* ==================== BLOG SECTION ==================== */
.blog-section {
    padding: 5rem 0;
    background-color: var(--color-bg-secondary);
}

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

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

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

.blog-card__image-link {
    display: block;
    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; /* Makes content fill the available space */
}

.blog-card__meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
    gap: 1rem;
}

.blog-card__category {
    background-color: var(--color-accent);
    color: var(--color-bg);
    font-size: 0.75rem;
    font-weight: 700;
    font-family: var(--font-family-headings);
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    text-transform: uppercase;
}

.blog-card__date {
    font-size: 0.8rem;
    color: var(--color-text-secondary);
}

.blog-card__title a {
    font-size: 1.4rem;
    color: var(--color-white);
    line-height: 1.3;
    transition: color var(--transition-duration) ease;
}

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

.blog-card__excerpt {
    font-size: 0.95rem;
    color: var(--color-text-secondary);
    margin: 0.75rem 0 1.5rem;
    flex-grow: 1; /* Pushes "Read more" to the bottom */
}

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

.blog-card__read-more:hover {
    color: var(--color-accent-hover);
}

.blog-card__icon {
    width: 18px;
    height: 18px;
    transition: transform var(--transition-duration) ease;
}

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

/* ==================== CONTACT SECTION ==================== */
.contact-section {
    padding: 5rem 0;
}

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

.contact-section__title {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

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

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

.contact-section__detail-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    font-size: 1.1rem;
}
.contact-section__detail-item a:hover {
    color: var(--color-accent);
}

.contact-section__icon {
    color: var(--color-accent);
    width: 24px;
    height: 24px;
}

.contact-section__form-container {
    background-color: var(--color-bg-secondary);
    padding: 2.5rem;
    border: 1px solid var(--color-border);
    border-radius: 12px;
}

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

.form-group__label {
    display: block;
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
    color: var(--color-text-secondary);
}

.form-group__input {
    width: 100%;
    padding: 0.75rem 1rem;
    background-color: var(--color-bg);
    border: 1px solid var(--color-border);
    border-radius: 6px;
    color: var(--color-text-primary);
    font-size: 1rem;
    transition: border-color var(--transition-duration) ease, box-shadow var(--transition-duration) ease;
}

.form-group__input:focus {
    outline: none;
    border-color: var(--color-accent);
    box-shadow: 0 0 0 3px rgba(46, 204, 113, 0.2);
}

/* Captcha */
#captcha-label {
    font-family: var(--font-family-headings);
    font-weight: 500;
}

/* Checkbox */
.form-group--checkbox {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
}
.form-group--checkbox input[type="checkbox"] {
    margin-top: 4px;
    accent-color: var(--color-accent); /* Modern way to style checkbox color */
}
.form-group--checkbox label {
    font-size: 0.85rem;
    color: var(--color-text-secondary);
}
.form-group--checkbox a {
    color: var(--color-text-primary);
    text-decoration: underline;
}
.form-group--checkbox a:hover {
    color: var(--color-accent);
}

/* Submit Button */
.submit-button {
    width: 100%;
    padding: 1rem;
    background-color: var(--color-accent);
    color: var(--color-bg);
    border: none;
    border-radius: 6px;
    font-size: 1.1rem;
    font-family: var(--font-family-headings);
    font-weight: 700;
    cursor: pointer;
    transition: background-color var(--transition-duration) ease;
}
.submit-button:hover {
    background-color: var(--color-accent-hover);
}

/* Messages */
.form-message {
    display: none; /* Hidden by default */
    margin-top: 1rem;
    text-align: center;
    font-size: 0.9rem;
}
.form-message--error {
    color: #ff6b6b;
}

.form-success-message {
    display: none; /* Hidden by default */
    text-align: center;
    padding: 2rem;
}
.form-success-message__icon {
    width: 60px;
    height: 60px;
    color: var(--color-accent);
    margin-bottom: 1.5rem;
}
.form-success-message__title {
    font-size: 1.8rem;
    margin-bottom: 0.5rem;
}
.form-success-message__text {
    color: var(--color-text-secondary);
}

/* CONTACT RESPONSIVE */
@media (max-width: 992px) {
    .contact-section__wrapper {
        grid-template-columns: 1fr;
    }
    .contact-section__info {
        text-align: center;
    }
    .contact-section__subtitle {
        margin: 0 auto 2rem;
    }
    .contact-section__details {
        align-items: center;
    }
}
/* ==================== COOKIE POPUP ==================== */
.cookie-popup {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background-color: var(--color-bg-secondary);
    border-top: 1px solid var(--color-border);
    padding: 1rem 0;
    z-index: 200;
    transform: translateY(100%);
    transition: transform var(--transition-duration) ease-in-out;
}

.cookie-popup--visible {
    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-secondary);
    font-size: 0.9rem;
}

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

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

.cookie-popup__button {
    background-color: var(--color-accent);
    color: var(--color-bg);
    border: none;
    border-radius: 5px;
    padding: 0.6rem 1.2rem;
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    flex-shrink: 0; /* Prevents button from shrinking */
    transition: background-color var(--transition-duration) ease;
}

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

/* COOKIE POPUP RESPONSIVE */
@media (max-width: 600px) {
    .cookie-popup__container {
        flex-direction: column;
        text-align: center;
        gap: 1rem;
    }
}
/* ==================== STATIC POLICY PAGES ==================== */
.pages {
    padding: 120px 0 60px; /* Top padding to account for fixed header */
}

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

.pages h1 {
    font-size: 3rem;
    margin-bottom: 2rem;
    line-height: 1.2;
    text-align: center;
    border-bottom: 1px solid var(--color-border);
    padding-bottom: 1.5rem;
}

.pages h2 {
    font-size: 1.8rem;
    margin-top: 3rem;
    margin-bottom: 1.5rem;
    color: var(--color-white);
}

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

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

.pages li {
    margin-bottom: 0.75rem;
    color: var(--color-text-secondary);
}

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

.pages a {
    color: var(--color-accent);
    text-decoration: underline;
    text-decoration-thickness: 1px;
    text-underline-offset: 3px;
    transition: color var(--transition-duration) ease;
}

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

/* POLICY PAGES RESPONSIVE */
@media (max-width: 768px) {
    .pages h1 {
        font-size: 2.5rem;
    }
    .pages h2 {
        font-size: 1.5rem;
    }
}