/* GLOBAL STYLES */
:root {
    --bg-color: #0D1117;
    --primary-color: #8A2BE2; /* Bright Violet */
    --primary-hover-color: #9932CC; /* Darker Violet */
    --text-color: #C9D1D9;
    --heading-color: #F0F6FC;
    --card-bg-color: #161B22;
    --border-color: #30363d;

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

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

html {
    scroll-behavior: smooth;
}

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

.container {
    width: 100%;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
    padding-left: 15px;
    padding-right: 15px;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-primary);
    color: var(--heading-color);
    line-height: 1.2;
    margin-bottom: 1rem;
}

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

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

ul {
    list-style: none;
}

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

/* HEADER */
.header {
    background-color: var(--bg-color);
    border-bottom: 1px solid var(--border-color);
    padding: 1rem 0;
    position: sticky;
    top: 0;
    z-index: 100;
    width: 100%;
}

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

.logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-family: var(--font-primary);
    font-weight: 500;
    font-size: 1.5rem;
    color: var(--heading-color);
}

.logo__icon {
    transition: transform 0.3s ease-in-out;
}

.logo:hover .logo__icon {
    transform: rotate(15deg);
}

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

.header__nav-link {
    font-family: var(--font-secondary);
    font-weight: 500;
    font-size: 1rem;
    color: var(--text-color);
    position: relative;
    padding-bottom: 0.5rem;
}

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

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

.burger {
    display: none;
    background: none;
    border: none;
    color: var(--heading-color);
    cursor: pointer;
}

/* FOOTER */
.footer {
    background-color: var(--card-bg-color);
    color: var(--text-color);
    padding-top: 4rem;
    border-top: 1px solid var(--border-color);
}

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

.footer__description {
    margin-top: 1rem;
    max-width: 300px;
    font-size: 0.9rem;
    color: var(--text-color);
    opacity: 0.8;
}

.footer__title {
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
    color: var(--heading-color);
}

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

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

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

.footer__list--contact .footer__link {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.footer__contact-icon {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
    color: var(--primary-color);
}

.footer__address {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    font-size: 0.9rem;
}

.footer__bottom {
    border-top: 1px solid var(--border-color);
    padding: 1.5rem 0;
}

.footer__bottom-container {
    text-align: center;
    font-size: 0.85rem;
    color: var(--text-color);
    opacity: 0.7;
}

/* RESPONSIVE STYLES */
@media (max-width: 992px) {
    .footer__container {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .header__nav {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background-color: var(--bg-color);
        border-bottom: 1px solid var(--border-color);
        padding: 1rem 0;
    }
    
    .header__nav.active {
        display: block;
    }

    .header__nav-list {
        flex-direction: column;
        align-items: center;
        gap: 1.5rem;
    }

    .burger {
        display: block;
    }
}

@media (max-width: 576px) {
    .footer__container {
        grid-template-columns: 1fr;
        text-align: center;
    }
    .footer__column--about {
        align-items: center;
    }
    .logo, .footer__list--contact .footer__link, .footer__address {
        justify-content: center;
    }
}

/* BUTTONS */
.btn {
    display: inline-block;
    padding: 0.8rem 2rem;
    font-family: var(--font-primary);
    font-size: 1rem;
    font-weight: 500;
    text-align: center;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.btn--primary {
    background-color: var(--primary-color);
    color: var(--heading-color);
}

.btn--primary:hover {
    background-color: var(--primary-hover-color);
    color: var(--heading-color);
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(138, 43, 226, 0.2);
}

.btn--secondary {
    background-color: transparent;
    color: var(--heading-color);
    border-color: var(--border-color);
}

.btn--secondary:hover {
    background-color: var(--border-color);
    color: var(--heading-color);
    transform: translateY(-3px);
}


/* HERO SECTION */
.hero {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 90vh;
    padding: 6rem 0;
    text-align: center;
    overflow: hidden;
}

.hero__canvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.hero__container {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.hero__title {
    font-size: 3.5rem;
    font-weight: 700;
    max-width: 800px;
    margin-bottom: 1.5rem;
}

.hero__subtitle {
    font-size: 1.2rem;
    max-width: 700px;
    margin-bottom: 2.5rem;
    opacity: 0.9;
}

.hero__actions {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    justify-content: center;
}


/* RESPONSIVE STYLES for HERO */
@media (max-width: 768px) {
    .hero {
        min-height: 80vh;
        padding: 4rem 0;
    }
    .hero__title {
        font-size: 2rem;
    }
    .hero__subtitle {
        font-size: 1rem;
    }
}

/* SECTION HEADER (Reusable) */
.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.section-header__subtitle {
    display: inline-block;
    font-family: var(--font-primary);
    font-weight: 500;
    color: var(--primary-color);
    background-color: rgba(138, 43, 226, 0.1);
    padding: 0.5rem 1rem;
    border-radius: 20px;
    margin-bottom: 1rem;
}

.section-header__title {
    font-size: 2.8rem;
    margin-bottom: 1rem;
}

.section-header__description {
    font-size: 1.1rem;
    max-width: 650px;
    margin: 0 auto;
    opacity: 0.8;
}


/* FEATURES SECTION */
.features {
    padding: 6rem 0;
    background-color: var(--bg-color);
}

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

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

.features__card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.2);
    border-color: var(--primary-color);
}

.features__card-icon {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    width: 64px;
    height: 64px;
    background: linear-gradient(145deg, rgba(138, 43, 226, 0.1), rgba(138, 43, 226, 0.2));
    border-radius: 50%;
    margin-bottom: 1.5rem;
}

.features__card-icon i {
    width: 32px;
    height: 32px;
    color: var(--primary-color);
}

.features__card-title {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--heading-color);
}

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


/* RESPONSIVE STYLES for FEATURES */
@media (max-width: 768px) {
    .features {
        padding: 4rem 0;
    }
    .section-header__title {
        font-size: 2.2rem;
    }
}

/* PROCESS SECTION */
.process {
    padding: 6rem 0;
    background-color: var(--card-bg-color);
}

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

/* The vertical line */
.process__timeline::after {
    content: '';
    position: absolute;
    width: 3px;
    background-color: var(--border-color);
    top: 0;
    bottom: 0;
    left: 50%;
    margin-left: -1.5px;
}

.process__item {
    padding: 1rem 3rem;
    position: relative;
    width: 50%;
}

/* The circle on the timeline */
.process__item::after {
    content: '';
    position: absolute;
    width: 20px;
    height: 20px;
    right: -10px;
    background-color: var(--bg-color);
    border: 4px solid var(--primary-color);
    top: 35px;
    border-radius: 50%;
    z-index: 1;
}

/* Left side item */
.process__item:nth-child(odd) {
    left: 0;
    padding-right: 50px;
}
.process__item:nth-child(odd)::after {
    right: -10px;
}

/* Right side item */
.process__item:nth-child(even) {
    left: 50%;
    padding-left: 50px;
}
.process__item:nth-child(even)::after {
    left: -10px;
}

.process__item-number {
    position: absolute;
    font-size: 4rem;
    font-weight: 700;
    font-family: var(--font-primary);
    color: rgba(240, 246, 252, 0.05);
    z-index: -1;
}

.process__item:nth-child(odd) .process__item-number {
    right: 50px;
    top: 15px;
}

.process__item:nth-child(even) .process__item-number {
    left: 50px;
    top: 15px;
}

.process__item-content {
    padding: 1rem;
    background-color: var(--bg-color);
    border-radius: 8px;
    border: 1px solid var(--border-color);
}

.process__item-title {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

.process__item-text {
    font-size: 0.95rem;
    line-height: 1.7;
}

/* RESPONSIVE STYLES for PROCESS */
@media screen and (max-width: 768px) {
    .process__timeline::after {
        left: 31px;
    }

    .process__item {
        width: 100%;
        padding-left: 70px;
        padding-right: 25px;
    }

    .process__item:nth-child(odd) {
        left: 0;
    }

    .process__item:nth-child(even) {
        left: 0;
        padding-left: 70px;
    }

    .process__item::after {
        left: 21px;
    }

    .process__item:nth-child(odd) .process__item-number,
    .process__item:nth-child(even) .process__item-number {
        left: 70px;
        top: 15px;
    }
}

/* TECH SECTION */
.tech {
    padding: 6rem 0;
    background-color: var(--bg-color);
}

.tech__grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 2rem;
    align-items: center;
    max-width: 900px;
    margin: 0 auto;
}

.tech__item {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 1.5rem;
    background-color: var(--card-bg-color);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    min-height: 120px;
}

.tech__logo {
    max-width: 100px;
    height: auto;
    filter: grayscale(100%) opacity(60%);
    transition: filter 0.3s ease;
}

.tech__item:hover .tech__logo {
    filter: grayscale(0%) opacity(100%);
}


/* RESPONSIVE STYLES for TECH */
@media (max-width: 768px) {
    .tech {
        padding: 4rem 0;
    }
    .tech__grid {
        grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    }
}

/* CASES SECTION */
.cases {
    padding: 6rem 0;
    background-color: var(--card-bg-color);
}

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

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

.cases__card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.3);
}

.cases__card-image-wrapper {
    overflow: hidden;
    height: 220px;
}

.cases__card-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.cases__card:hover .cases__card-image {
    transform: scale(1.05);
}

.cases__card-content {
    padding: 1.5rem 2rem;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.cases__card-tag {
    display: inline-block;
    font-family: var(--font-primary);
    font-size: 0.8rem;
    font-weight: 500;
    color: var(--primary-color);
    background-color: rgba(138, 43, 226, 0.1);
    padding: 0.3rem 0.8rem;
    border-radius: 20px;
    margin-bottom: 1rem;
    align-self: flex-start;
}

.cases__card-title {
    font-size: 1.4rem;
    margin-bottom: 0.75rem;
}

.cases__card-text {
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 1.5rem;
    flex-grow: 1;
}

.cases__card-link {
    font-family: var(--font-primary);
    font-weight: 500;
    color: var(--heading-color);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

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

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

.cases__card-link:hover i {
    transform: translateX(5px);
}


/* RESPONSIVE STYLES for CASES */
@media (max-width: 768px) {
    .cases {
        padding: 4rem 0;
    }
}

/* CONTACT SECTION */
.contact {
    padding: 6rem 0;
}

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

.section-header--left {
    text-align: left;
}

.section-header--left .section-header__description {
    margin-left: 0;
    margin-right: 0;
}

.contact__steps {
    margin-top: 3rem;
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

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

.contact__step-icon {
    flex-shrink: 0;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: rgba(138, 43, 226, 0.1);
    border-radius: 50%;
    color: var(--primary-color);
}

.contact__step-icon i {
    width: 24px;
    height: 24px;
}

.contact__step-title {
    font-size: 1.2rem;
    margin-bottom: 0.25rem;
}

.contact__step-text {
    font-size: 0.95rem;
    opacity: 0.8;
}


.contact__form-wrapper {
    background-color: var(--card-bg-color);
    padding: 3rem;
    border-radius: 12px;
    border: 1px solid var(--border-color);
}

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

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

.form-group__label {
    font-size: 0.9rem;
    font-weight: 500;
    margin-bottom: 0.5rem;
}

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

.form-group__input:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(138, 43, 226, 0.2);
}

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

.form-group__checkbox {
    margin-top: 3px;
    flex-shrink: 0;
}

.btn--full {
    width: 100%;
    margin-top: 1rem;
    padding: 1rem 2rem;
}

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

.success-message__icon {
    color: #28a745;
    margin-bottom: 1rem;
}
.success-message__icon i {
    width: 60px;
    height: 60px;
}
.success-message__title {
    font-size: 2rem;
}
.success-message__text {
    font-size: 1.1rem;
    opacity: 0.9;
}


/* RESPONSIVE STYLES for CONTACT */
@media (max-width: 992px) {
    .contact__container {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .contact {
        padding: 4rem 0;
    }
    .contact__form-wrapper {
        padding: 2rem;
    }
}

/* COOKIE POPUP */
.cookie-popup {
    position: fixed;
    bottom: -100%; /* Initially hidden */
    left: 0;
    width: 100%;
    background-color: var(--card-bg-color);
    border-top: 1px solid var(--border-color);
    padding: 1.5rem;
    z-index: 200;
    transition: bottom 0.5s ease-in-out;
}

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

.cookie-popup__content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    gap: 1.5rem;
}

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

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

.btn--small {
    padding: 0.6rem 1.2rem;
    font-size: 0.9rem;
}


/* STYLES FOR POLICY PAGES (privacy.html, terms.html, etc.) */
.pages {
    padding: 5rem 0;
    background-color: var(--card-bg-color);
    min-height: 80vh;
}

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

.pages h1, .pages h2 {
    text-align: center;
}

.pages h1 {
    font-size: 1.5rem;
    margin-bottom: 3rem;
}

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

.pages p {
    font-size: 1.1rem;
    line-height: 1.8;
    margin-bottom: 1.5rem;
    opacity: 0.9;
}

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

.pages li {
    font-size: 1.1rem;
    line-height: 1.8;
    margin-bottom: 1rem;
}

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

.pages a {
    text-decoration: underline;
}
.pages a:hover {
    text-decoration: none;
}

/* RESPONSIVE STYLES for COOKIE */
@media (max-width: 768px) {
    .cookie-popup__content {
        flex-direction: column;
        text-align: center;
    }
}