/* ================== GOOGLE FONTS ================== */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&display=swap');

/* ================== CSS VARIABLES ================== */
:root {
    /* Colors */
    --primary-color: #8A2BE2;
    /* Blue Violet */
    --secondary-color: #FF00FF;
    /* Magenta */
    --gradient: linear-gradient(135deg, var(--primary-color), var(--secondary-color));

    --bg-color: #10002B;
    /* Very Dark Purple */
    --bg-color-alt: #1a0b3b;
    --card-color: #240046;
    --border-color: #3c096c;

    --title-color: #FFFFFF;
    --text-color: #E0AAFF;
    /* Light Lavender */
    --text-color-light: #c77dff;

    /* Font and Typography */
    --body-font: 'Inter', sans-serif;
    --h1-font-size: 3.5rem;
    --h2-font-size: 2.5rem;
    --h3-font-size: 1.25rem;
    --normal-font-size: 1rem;
    --small-font-size: 0.938rem;
    --smaller-font-size: 0.813rem;

    /* Font Weight */
    --font-regular: 400;
    --font-medium: 500;
    --font-semi-bold: 600;
    --font-bold: 700;
    --font-extra-bold: 800;

    /* Spacing */
    --header-height: 5rem;
    --space-sm: 1rem;
    --space-md: 2rem;
    --space-lg: 4rem;
    --space-xl: 6rem;
}

/* ================== BASE ================== */
* {
    box-sizing: border-box;
    padding: 0;
    margin: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--body-font);
    font-size: var(--normal-font-size);
    background-color: var(--bg-color);
    color: var(--text-color);
    line-height: 1.6;
}

h1,
h2,
h3,
h4 {
    color: var(--title-color);
    font-weight: var(--font-bold);
    line-height: 1.2;
}

ul {
    list-style: none;
}

a {
    text-decoration: none;
    color: var(--secondary-color);
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* ================== REUSABLE CSS ================== */
.container {
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
    padding: 0 var(--space-sm);
}

.grid {
    display: grid;
    gap: var(--space-md);
}

.section {
    padding: var(--space-xl) 0;
}

.section__header {
    text-align: center;
    margin-bottom: var(--space-lg);
}

.section__subtitle {
    display: block;
    font-size: var(--normal-font-size);
    font-weight: var(--font-semi-bold);
    background: var(--gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 0.5rem;
    text-transform: uppercase;
    letter-spacing: 1.5px;
}

.section__title {
    font-size: var(--h2-font-size);
}

/* ================== BUTTONS ================== */
.button {
    display: inline-block;
    padding: 1rem 2.5rem;
    border-radius: 50px;
    font-weight: var(--font-bold);
    color: var(--title-color);
    background: var(--gradient);
    position: relative;
    z-index: 1;
    overflow: hidden;
    transition: color 0.4s ease-in-out;
}

.button::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--bg-color);
    z-index: -1;
    border-radius: 50px;
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.4s ease-in-out;
}

.button:hover::before {
    transform: scaleX(1);
}

.button:hover {
    color: var(--primary-color);
}

.button--ghost {
    background: transparent;
    border: 2px solid var(--primary-color);
}

.button--ghost::before {
    background: var(--gradient);
}

.button--ghost:hover {
    color: var(--title-color);
    border-color: transparent;
}

.button--white {
    background: #fff;
    color: var(--bg-color);
}

.button--white::before {
    background: var(--gradient);
}

.button--white:hover {
    color: #fff;
}


/* ================== HEADER ================== */
.header {
    width: 100%;
    position: fixed;
    top: 0;
    left: 0;
    z-index: 100;
    background-color: transparent;
    transition: background-color 0.4s, padding 0.4s, box-shadow 0.4s;
    padding: 1rem 0;
}

.header.scrolled {
    background-color: rgba(16, 0, 43, 0.85);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    padding: 0.5rem 0;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.2);
}

.nav {
    height: calc(var(--header-height) - 2rem);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav__logo {
    display: flex;
    align-items: center;
    color: var(--title-color);
    font-weight: var(--font-extra-bold);
    font-size: 1.5rem;
}

.nav__logo img {
    height: 50px;
    margin-right: 0.75rem;
}

.nav__menu {
    display: flex;
    align-items: center;
}

.nav__list {
    display: flex;
    align-items: center;
    gap: 2.5rem;
}

.nav__link {
    font-weight: var(--font-medium);
    color: var(--text-color-light);
    position: relative;
    transition: color 0.3s;
}

.nav__link:hover,
.nav__link.active-link {
    color: var(--title-color);
}

.nav__link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 2px;
    background: var(--gradient);
    transition: width 0.3s ease;
}

.nav__link:hover::after,
.nav__link.active-link::after {
    width: 100%;
}

.nav__link-button {
    display: none;
}

.nav__close {
    display: none;
    cursor: pointer;
    color: var(--title-color);
    font-size: 2rem;
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
}

.nav__toggle {
    display: none;
    cursor: pointer;
    flex-direction: column;
    gap: 5px;
}

.nav__toggle span {
    width: 25px;
    height: 3px;
    background-color: var(--title-color);
    border-radius: 2px;
    transition: transform 0.3s, opacity 0.3s;
}

/* ================== HERO ================== */
.hero {
    position: relative;
    padding: 14rem 0;
    background-color: var(--bg-color-alt);
    overflow: hidden;
}

.hero__bg-shapes .shape {
    position: absolute;
    border-radius: 50%;
    filter: blur(100px);
}

.shape-1 {
    width: 400px;
    height: 400px;
    background-color: rgba(138, 43, 226, 0.2);
    top: -100px;
    left: -100px;
}

.shape-2 {
    width: 300px;
    height: 300px;
    background-color: rgba(255, 0, 255, 0.15);
    bottom: 50px;
    right: -50px;
}

.shape-3 {
    width: 200px;
    height: 200px;
    background-color: rgba(138, 43, 226, 0.1);
    bottom: 200px;
    left: 30%;
}

.hero__container {
    grid-template-columns: 1fr 0.9fr;
    align-items: center;
}

.hero__data {
    position: relative;
    z-index: 2;
}

.hero__title {
    font-size: var(--h1-font-size);
    font-weight: var(--font-extra-bold);
    margin-bottom: var(--space-sm);
}

.hero__title .highlight {
    background: var(--gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero__description {
    font-size: 1.125rem;
    max-width: 500px;
    margin-bottom: var(--space-md);
}

.hero__buttons {
    display: flex;
    gap: var(--space-sm);
}

.hero__image-wrapper {
    position: relative;
}

.hero__image {
    border-radius: 1.5rem;
    border: 3px solid var(--border-color);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.3);
}

/* Hero Animations */
.fade-in {
    animation: fadeIn 0.8s ease-out forwards;
}

.fade-in-delay-1 {
    animation: fadeIn 0.8s 0.2s ease-out forwards;
    opacity: 0;
}

.fade-in-delay-2 {
    animation: fadeIn 0.8s 0.4s ease-out forwards;
    opacity: 0;
}

.fade-in-delay-3 {
    animation: fadeIn 0.8s 0.6s ease-out forwards;
    opacity: 0;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ================== SERVICES ================== */
.services__container {
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
}

.service__card {
    background-color: var(--card-color);
    padding: 2.5rem;
    border-radius: 1rem;
    border: 1px solid var(--border-color);
    position: relative;
    overflow: hidden;
    transition: transform 0.3s, box-shadow 0.3s;
}

.service__card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.2);
}

.service__card::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(138, 43, 226, 0.15), transparent 60%);
    transform: scale(0);
    transition: transform 0.5s ease;
}

.service__card:hover::before {
    transform: scale(1);
}

.service__icon-wrapper {
    width: 70px;
    height: 70px;
    border-radius: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--gradient);
    margin-bottom: 1.5rem;
}

.service__icon {
    width: 36px;
    height: 36px;
    fill: var(--title-color);
}

.service__title {
    font-size: var(--h3-font-size);
    margin-bottom: 1rem;
}

.service__description {
    margin-bottom: 1.5rem;
}

.service__link {
    font-weight: var(--font-bold);
    color: var(--text-color-light);
    transition: color 0.3s;
}

.service__link:hover {
    color: var(--secondary-color);
}

/* ================== WHY CHOOSE US ================== */
.why-us {
    background-color: var(--bg-color-alt);
}

.why-us__container {
    grid-template-columns: 1fr 1fr;
    align-items: center;
}

.why-us__image-wrapper {
    position: relative;
}

.why-us__image {
    border-radius: 1rem;
}

.why-us__description {
    margin-bottom: var(--space-md);
}

.stats__container {
    grid-template-columns: repeat(3, 1fr);
}

.stat__item {
    text-align: center;
    padding: 1rem;
}

.stat__number {
    font-size: 3rem;
    font-weight: var(--font-extra-bold);
    background: var(--gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.stat__label {
    font-weight: var(--font-medium);
    color: var(--text-color-light);
}

/* ================== OUR PROCESS ================== */
.process__timeline {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
}

.process__timeline::after {
    content: '';
    position: absolute;
    width: 4px;
    background: var(--border-color);
    top: 0;
    bottom: 0;
    left: 50%;
    margin-left: -2px;
}

.process__item {
    padding: 1rem 3rem;
    position: relative;
    width: 50%;
}

.process__item::after {
    content: '';
    position: absolute;
    width: 20px;
    height: 20px;
    background-color: var(--card-color);
    border: 4px solid var(--secondary-color);
    top: 25px;
    border-radius: 50%;
    z-index: 1;
}

.process__item--left {
    left: 0;
}

.process__item--right {
    left: 50%;
}

.process__item--left::after {
    right: -10px;
}

.process__item--right::after {
    left: -10px;
}

.process__content {
    padding: 2rem;
    background: var(--card-color);
    border-radius: 1rem;
    position: relative;
}

.process__step {
    position: absolute;
    top: -20px;
    left: -20px;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: var(--gradient);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    font-weight: var(--font-bold);
    color: var(--title-color);
}

.process__title {
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
}

/* ================== INDUSTRIES ================== */
.industries {
    background-color: var(--bg-color-alt);
}

.industries__container {
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
}

.industry__card {
    padding: 2rem 1.5rem;
    border-radius: 0.75rem;
    border: 2px solid var(--border-color);
    text-align: center;
    font-weight: var(--font-bold);
    transition: border-color 0.3s, background-color 0.3s;
}

.industry__card:hover {
    border-color: var(--primary-color);
    background-color: var(--card-color);
}

/* ================== TESTIMONIALS ================== */
.testimonial__wrapper {
    max-width: 800px;
    margin: 0 auto;
    position: relative;
    padding: 3rem;
    background-color: var(--card-color);
    border-radius: 1rem;
    border: 1px solid var(--border-color);
    overflow: hidden;
}

.testimonial__slider {
    display: flex;
    transition: transform 0.5s ease-in-out;
}

.testimonial__slide {
    min-width: 100%;
    box-sizing: border-box;
    text-align: center;
}

.testimonial__quote {
    font-size: 1.2rem;
    font-style: italic;
    margin-bottom: 2rem;
}

.testimonial__author {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
}

.testimonial__avatar {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    border: 3px solid var(--primary-color);
}

.testimonial__name {
    font-size: 1.1rem;
    font-weight: var(--font-semi-bold);
}

.testimonial__title {
    font-size: var(--small-font-size);
    color: var(--text-color-light);
}

.testimonial__controls {
    position: absolute;
    top: 50%;
    left: 1rem;
    right: 1rem;
    transform: translateY(-50%);
    display: flex;
    justify-content: space-between;
}

.testimonial__arrow {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    border: none;
    color: var(--title-color);
    font-size: 1.5rem;
    cursor: pointer;
    transition: background-color 0.3s;
}

.testimonial__arrow:hover {
    background: var(--primary-color);
}

/* ================== CTA ================== */
.cta__container {
    background: var(--gradient);
    padding: var(--space-lg);
    border-radius: 1.5rem;
    text-align: center;
}

.cta__title {
    font-size: var(--h2-font-size);
    margin-bottom: var(--space-sm);
}

.cta__description {
    max-width: 600px;
    margin: 0 auto var(--space-md);
    color: var(--title-color);
    opacity: 0.9;
}

/* ================== FOOTER ================== */
.footer {
    background-color: var(--bg-color-alt);
    padding-top: var(--space-xl);
    border-top: 1px solid var(--border-color);
}

.footer__container {
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.footer__logo {
    display: flex;
    align-items: center;
    font-size: 1.5rem;
    font-weight: var(--font-bold);
    color: var(--title-color);
    margin-bottom: 1rem;
}

.footer__logo img {
    height: 50px;
    margin-right: 0.5rem;
}

.footer__title {
    font-size: 1.125rem;
    margin-bottom: 1.5rem;
}

.footer__links,
.footer__contact {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.footer__link {
    color: var(--text-color);
    transition: color 0.3s, padding-left 0.3s;
}

.footer__link:hover {
    color: var(--secondary-color);
    padding-left: 5px;
}

.footer__copy {
    text-align: center;
    padding: var(--space-md) 0;
    margin-top: var(--space-lg);
    border-top: 1px solid var(--border-color);
    font-size: var(--small-font-size);
}

/* ================== CONTACT PAGE ================== */
.contact-page {
    padding-top: calc(var(--header-height) + var(--space-lg));
}

.contact-page .section__header {
    margin-bottom: var(--space-lg);
}

.contact-page__description {
    max-width: 700px;
    margin: 1rem auto 0;
}

.contact-page__container {
    grid-template-columns: 1fr 1.5fr;
    align-items: flex-start;
}

.contact-page__info {
    padding: 2rem;
    background-color: var(--card-color);
    border-radius: 1rem;
}

.contact-page__info-title {
    font-size: var(--h3-font-size);
    margin-bottom: 1rem;
    margin-top: 1.5rem;
}

.contact-page__info-title:first-child {
    margin-top: 0;
}

.contact-page__list {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.form__group {
    position: relative;
    margin-bottom: 2rem;
}

.form__input {
    width: 100%;
    padding: 1rem 1rem 1rem 0;
    background: transparent;
    border: none;
    border-bottom: 2px solid var(--border-color);
    color: var(--title-color);
    font-size: var(--normal-font-size);
    outline: none;
    transition: border-color 0.3s;
}

.form__input:focus {
    border-bottom-color: var(--primary-color);
}

.form__label {
    position: absolute;
    top: 0.75rem;
    left: 0;
    color: var(--text-color-light);
    pointer-events: none;
    transition: top 0.3s, font-size 0.3s;
}

.form__input:focus~.form__label,
.form__input:not(:placeholder-shown)~.form__label {
    top: -1rem;
    font-size: var(--small-font-size);
    color: var(--secondary-color);
}

select.form__input {
    -webkit-appearance: none;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' fill='%23E0AAFF'%3E%3Cpath d='M6 9L0 3h12z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 0 center;
    padding-right: 1.5rem;
    cursor: pointer;
}

select.form__input:required:invalid {
    color: var(--text-color-light);
}

/* ================== LEGAL PAGES ================== */
.legal-page {
    padding-top: calc(var(--header-height) + var(--space-lg));
}

.legal__container {
    max-width: 800px;
    margin: 0 auto;
}

.legal__container h1 {
    font-size: var(--h1-font-size);
    margin-bottom: var(--space-md);
    text-align: center;
}

.legal__container h2 {
    font-size: 1.75rem;
    margin: var(--space-md) 0 1rem;
    border-left: 4px solid var(--primary-color);
    padding-left: 1rem;
}

.legal__container p {
    margin-bottom: 1rem;
}

.legal__container ul {
    list-style-type: disc;
    padding-left: 2rem;
    margin-bottom: 1rem;
}

.legal__container li {
    margin-bottom: 0.5rem;
}

/* ================== SCROLL-BASED ANIMATIONS ================== */
.animate-on-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
    transition-delay: 0.2s;
}

.animate-on-scroll.is-visible {
    opacity: 1;
    transform: translateY(0);
}


/* ================== MEDIA QUERIES ================== */
@media screen and (max-width: 1024px) {
    :root {
        --h1-font-size: 2.75rem;
        --h2-font-size: 2rem;
    }

    .hero__container,
    .why-us__container {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .hero__data {
        order: 2;
    }

    .hero__image-wrapper {
        order: 1;
        margin-bottom: var(--space-md);
        max-width: 600px;
        margin-left: auto;
        margin-right: auto;
    }

    .hero__description {
        margin-left: auto;
        margin-right: auto;
    }

    .hero__buttons {
        justify-content: center;
    }

    .why-us__image-wrapper {
        max-width: 600px;
        margin: 0 auto;
    }
}

@media screen and (max-width: 768px) {
    .nav__menu {
        position: fixed;
        top: 0;
        right: -100%;
        width: 80%;
        max-width: 350px;
        height: 100%;
        background-color: var(--card-color);
        box-shadow: -5px 0 15px rgba(0, 0, 0, 0.2);
        padding: 6rem 2rem 2rem;
        transition: right 0.4s ease-in-out;
    }

    .nav__list {
        flex-direction: column;
        align-items: flex-start;
        gap: 2.5rem;
    }

    .nav__link-button {
        display: inline-block;
        margin-top: 2rem;
        background: var(--gradient);
        padding: 0.75rem 2rem;
        border-radius: 50px;
        color: var(--title-color);
    }

    .nav__close,
    .nav__toggle {
        display: flex;
    }

    .show-menu {
        right: 0;
    }

    .process__timeline::after {
        left: 30px;
    }

    .process__item {
        width: 100%;
        padding-left: 70px;
        padding-right: 1rem;
    }

    .process__item--right {
        left: 0%;
    }

    .process__item::after {
        left: 20px;
    }

    .contact-page__container {
        grid-template-columns: 1fr;
    }
}

@media screen and (max-width: 576px) {
    :root {
        --h1-font-size: 2.25rem;
        --h2-font-size: 1.75rem;
    }

    .stats__container {
        grid-template-columns: 1fr;
    }

    .process__item {
        padding: 1rem;
        padding-left: 60px;
    }

    .testimonial__wrapper {
        padding: 2rem 1.5rem;
    }

    .testimonial__controls {
        display: none;
    }
}