/* ===================================================================
   TABLE OF CONTENTS
   -------------------------------------------------------------------
   01. CSS Variables & Root Styles
   02. Base & Typography
   03. Layout & Utilities
   04. Buttons
   05. Header & Navigation
   06. Footer
   07. Animations & Keyframes
   08. Hero Section
   09. Services Section
   10. Mission (About) Section
   11. ROI Matrix (Interactive)
   12. Process Section
   13. Industries Section
   14. Testimonials Section
   15. CTA Section
   16. Inner Pages (Contact, Legal)
   17. Media Queries (Responsiveness)
=================================================================== */

/* ===================================================================
   01. CSS Variables & Root Styles
=================================================================== */
:root {
    --color-bg: #0A0A14;
    --color-surface: #121222;
    --color-primary-text: #EAEAEB;
    --color-secondary-text: #A0A0B0;
    --color-border: #2A2A3A;
    --color-accent-cyan: #00F6FF;
    --color-accent-magenta: #FF00E6;
    --font-body: 'Poppins', sans-serif;
    --font-mono: 'Roboto Mono', monospace;

    --header-height: 80px;
    --border-radius: 4px;
    --transition-speed: 0.3s ease;
    --container-width: 1200px;
}

*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    background-color: var(--color-bg);
    color: var(--color-primary-text);
    font-family: var(--font-body);
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
}

/* ===================================================================
   02. Base & Typography
=================================================================== */
h1,
h2,
h3,
h4 {
    font-weight: 600;
    line-height: 1.3;
    margin-bottom: 1rem;
}

h1 {
    font-size: clamp(2.8rem, 5vw, 4rem);
}

h2 {
    font-size: clamp(2rem, 4vw, 3rem);
}

h3 {
    font-size: clamp(1.25rem, 3vw, 1.6rem);
}

p {
    color: var(--color-secondary-text);
    margin-bottom: 1.5rem;
    max-width: 65ch;
}

a {
    color: var(--color-accent-cyan);
    text-decoration: none;
    transition: color var(--transition-speed);
}

a:hover {
    color: var(--color-accent-magenta);
}

/* ===================================================================
   03. Layout & Utilities
=================================================================== */
.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 20px;
}

.section {
    padding: 100px 0;
}

.section-header {
    text-align: center;
    max-width: 750px;
    margin: 0 auto 60px;
}

.section-tag {
    font-family: var(--font-mono);
    color: var(--color-accent-cyan);
    margin-bottom: 1rem;
    display: block;
}

/* ===================================================================
   04. Buttons
=================================================================== */
.btn {
    display: inline-block;
    padding: 14px 32px;
    border-radius: var(--border-radius);
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: all var(--transition-speed);
    border: 2px solid;
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.btn--primary {
    color: var(--color-bg);
    border-color: var(--color-accent-cyan);
    background-color: var(--color-accent-cyan);
}

.btn--primary:hover {
    color: var(--color-white);
    background-color: transparent;
    box-shadow: 0 0 15px var(--color-accent-cyan);
}

.btn--secondary {
    color: var(--color-primary-text);
    border-color: var(--color-border);
}

.btn--secondary:hover {
    border-color: var(--color-accent-cyan);
    color: var(--color-accent-cyan);
}

.btn--large {
    padding: 16px 40px;
}

.btn--full {
    width: 100%;
}

/* ===================================================================
   05. Header & Navigation
=================================================================== */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: var(--header-height);
    z-index: 1000;
    transition: background-color 0.4s ease, backdrop-filter 0.4s ease;
}

.header.scrolled {
    background-color: rgba(18, 18, 34, 0.85);
    backdrop-filter: blur(10px);
}

.header__container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 100%;
}

.header__logo img {
    height: 50px;
    filter: invert(1);
}

.header__nav-list {
    display: flex;
    gap: 40px;
    list-style: none;
}

.header__nav-link {
    color: var(--color-primary-text);
    font-weight: 500;
    position: relative;
    padding-bottom: 5px;
}

.header__nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--color-accent-cyan), var(--color-accent-magenta));
    transition: width var(--transition-speed);
}

.header__nav-link:hover::after,
.header__nav-link.active::after {
    width: 100%;
}

.header__menu-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    width: 30px;
    height: 22px;
    position: relative;
}

.header__menu-toggle span {
    display: block;
    position: absolute;
    height: 2px;
    width: 100%;
    background: var(--color-primary-text);
    border-radius: 2px;
    opacity: 1;
    left: 0;
    transform: rotate(0deg);
    transition: .25s ease-in-out;
}

.header__menu-toggle span:nth-child(1) {
    top: 0px;
}

.header__menu-toggle span:nth-child(2) {
    top: 10px;
}

.header__menu-toggle.active span:nth-child(1) {
    top: 10px;
    transform: rotate(135deg);
}

.header__menu-toggle.active span:nth-child(2) {
    top: 10px;
    transform: rotate(-135deg);
}

/* ===================================================================
   06. Footer
=================================================================== */
.footer {
    background-color: var(--color-bg);
    border-top: 1px solid var(--color-border);
    padding: 80px 0 30px;
}

.footer__main {
    display: grid;
    grid-template-columns: 2fr repeat(3, 1fr);
    gap: 50px;
    margin-bottom: 60px;
}

.footer__logo img {
    height: 50px;
    filter: invert(1);
    margin-bottom: 1rem;
}

.footer p,
.footer li {
    font-size: 0.95rem;
    color: var(--color-secondary-text);
}

.footer__title {
    font-family: var(--font-mono);
    color: var(--color-primary-text);
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
}

.footer__links ul,
.footer__contact ul {
    list-style: none;
    padding: 0;
}

.footer__links li,
.footer__contact li {
    margin-bottom: 1rem;
}

.footer__bottom {
    border-top: 1px solid var(--color-border);
    padding-top: 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: var(--color-secondary-text);
    font-size: 0.9rem;
}

.footer__socials {
    display: flex;
    gap: 20px;
}

.footer__socials a svg {
    width: 20px;
    height: 20px;
    fill: var(--color-secondary-text);
    transition: all var(--transition-speed);
}

.footer__socials a:hover svg {
    fill: var(--color-accent-cyan);
    transform: translateY(-3px);
}

/* ===================================================================
   07. Animations & Keyframes
=================================================================== */
@keyframes glitch {

    2%,
    64% {
        transform: translate(2px, 0) skew(0deg);
    }

    4%,
    60% {
        transform: translate(-2px, 0) skew(0deg);
    }

    62% {
        transform: translate(0, 0) skew(5deg);
    }
}

@keyframes glitch-top {

    2%,
    64% {
        transform: translate(2px, -2px);
    }

    4%,
    60% {
        transform: translate(-2px, 2px);
    }

    62% {
        transform: translate(13px, -1px) skew(-13deg);
    }
}

@keyframes glitch-bottom {

    2%,
    64% {
        transform: translate(-2px, 0);
    }

    4%,
    60% {
        transform: translate(-2px, 0);
    }

    62% {
        transform: translate(-22px, 5px) skew(21deg);
    }
}

.reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
    transition-delay: var(--delay, 0s);
}

.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ===================================================================
   08. Hero Section
=================================================================== */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.hero__grid-overlay {
    position: absolute;
    inset: 0;
    background-image: linear-gradient(var(--color-border) 1px, transparent 1px),
        linear-gradient(90deg, var(--color-border) 1px, transparent 1px);
    background-size: 50px 50px;
    opacity: 0.1;
}

.hero__container {
    position: relative;
    z-index: 2;
}

.hero__content {
    max-width: 800px;
}

.hero__tagline {
    font-family: var(--font-mono);
    color: var(--color-secondary-text);
    margin-bottom: 1.5rem;
}

.hero__title {
    position: relative;
    animation: glitch 1s linear infinite;
}

.hero__title::before,
.hero__title::after {
    content: attr(data-text);
    position: absolute;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--color-bg);
    overflow: hidden;
}

.hero__title::before {
    left: 2px;
    text-shadow: -2px 0 var(--color-accent-magenta);
    animation: glitch-top 1s linear infinite;
    clip-path: polygon(0 0, 100% 0, 100% 33%, 0 33%);
}

.hero__title::after {
    left: -2px;
    text-shadow: -2px 0 var(--color-accent-cyan), 2px 2px var(--color-accent-magenta);
    animation: glitch-bottom 1s linear infinite;
    clip-path: polygon(0 67%, 100% 67%, 100% 100%, 0 100%);
}

.hero__subtitle {
    font-size: 1.2rem;
    max-width: 60ch;
    margin: 2rem auto 2.5rem;
}

.hero__actions {
    display: flex;
    justify-content: center;
    gap: 20px;
}

/* ===================================================================
   09. Services Section
=================================================================== */
.services {
    background-color: var(--color-surface);
}

.services__grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
}

.service-panel {
    background-color: var(--color-bg);
    border: 1px solid var(--color-border);
    padding: 40px;
    border-radius: var(--border-radius);
    position: relative;
    transition: transform var(--transition-speed);
}

.service-panel::before {
    content: '';
    position: absolute;
    inset: -1px;
    border-radius: inherit;
    background: linear-gradient(135deg, var(--color-accent-cyan), var(--color-accent-magenta));
    opacity: 0;
    transition: opacity var(--transition-speed);
    z-index: -1;
}

.service-panel:hover {
    transform: translateY(-5px);
    border-color: transparent;
}

.service-panel:hover::before {
    opacity: 1;
}

.service-panel__header {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 1.5rem;
}

.service-panel__icon {
    color: var(--color-accent-cyan);
}

.service-panel__icon svg {
    width: 32px;
    height: 32px;
}

.service-panel__title {
    margin-bottom: 0;
}

.service-panel__description {
    font-size: 0.95rem;
    margin-bottom: 0;
}

/* ===================================================================
   10. Mission (About) Section
=================================================================== */
.mission__container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.mission__stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 30px;
    text-align: center;
}

.stat-item__number {
    font-family: var(--font-mono);
    font-size: 3rem;
    font-weight: 500;
    color: var(--color-accent-cyan);
    display: block;
}

.stat-item__number::after {
    content: '%';
}

.stat-item:last-child .stat-item__number::after {
    content: 'x';
}

.stat-item__label {
    color: var(--color-secondary-text);
    font-size: 0.9rem;
}

/* ===================================================================
   11. ROI Matrix (Interactive)
=================================================================== */
.roi-matrix {
    background-color: var(--color-surface);
}

.roi-matrix__container {
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: 40px;
    background-color: var(--color-bg);
    border: 1px solid var(--color-border);
    padding: 40px;
}

.roi-matrix__controls h3,
.roi-matrix__results h3 {
    font-family: var(--font-mono);
    margin-bottom: 2rem;
}

.roi-matrix__controls .form-group {
    margin-bottom: 2rem;
}

.form-group label {
    display: block;
    margin-bottom: 1rem;
}

.range-value {
    display: block;
    text-align: right;
    font-family: var(--font-mono);
    color: var(--color-accent-cyan);
}

input[type="range"] {
    -webkit-appearance: none;
    width: 100%;
    height: 4px;
    background: var(--color-border);
    outline: none;
    border-radius: 2px;
}

input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 20px;
    height: 20px;
    background: var(--color-accent-cyan);
    cursor: pointer;
    border-radius: 50%;
    border: 3px solid var(--color-bg);
}

.roi-matrix__results {
    background-color: var(--color-surface);
    padding: 30px;
    border: 1px solid var(--color-border);
}

.result-box {
    padding: 20px 0;
    border-bottom: 1px solid var(--color-border);
}

.result-box:last-of-type {
    border-bottom: none;
}

.result-label {
    display: block;
    color: var(--color-secondary-text);
    font-size: 0.9rem;
}

.result-value {
    display: block;
    font-family: var(--font-mono);
    font-size: 1.8rem;
    color: var(--color-primary-text);
}

.result-box--highlight .result-value {
    color: var(--color-accent-cyan);
    font-size: 2.5rem;
}

.disclaimer {
    font-size: 0.8rem;
    margin-top: 1rem;
}

/* ===================================================================
   12. Process Section
=================================================================== */
.process__timeline {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
}

.process__line {
    position: absolute;
    left: 10px;
    top: 0;
    bottom: 0;
    width: 2px;
    background: var(--color-border);
    transform-origin: top;
    transform: scaleY(0);
}

.process__item {
    position: relative;
    padding: 20px 0 40px 60px;
}

.process__marker {
    position: absolute;
    left: 0;
    top: 25px;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: var(--color-bg);
    border: 2px solid var(--color-border);
    transition: background-color var(--transition-speed), border-color var(--transition-speed);
}

.process__item.active .process__marker {
    background: var(--color-accent-cyan);
    border-color: var(--color-accent-cyan);
}

.process__step {
    font-family: var(--font-mono);
    color: var(--color-secondary-text);
    margin-bottom: 0.5rem;
    display: block;
}

/* ===================================================================
   13. Industries Section
=================================================================== */
.industries {
    background-color: var(--color-surface);
}

.industries__grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
    font-family: var(--font-mono);
}

.industry-item {
    padding: 10px 25px;
    border: 1px solid var(--color-border);
    border-radius: var(--border-radius);
    transition: all var(--transition-speed);
}

.industry-item:hover {
    color: var(--color-accent-cyan);
    border-color: var(--color-accent-cyan);
    transform: scale(1.05);
}

.industry-item span {
    color: var(--color-accent-cyan);
    margin-right: 5px;
}

/* ===================================================================
   14. Testimonials Section
=================================================================== */
.testimonial-slider-wrapper {
    max-width: 800px;
    margin: 0 auto;
    background-color: var(--color-surface);
    border: 1px solid var(--color-border);
    padding: 40px;
    position: relative;
}

.testimonial-slider-wrapper::after {
    /* Blinking cursor effect */
    content: '_';
    font-family: var(--font-mono);
    color: var(--color-accent-cyan);
    animation: blink 1s step-end infinite;
    position: absolute;
    bottom: 40px;
    right: 40px;
    font-size: 1.5rem;
}

@keyframes blink {
    50% {
        opacity: 0;
    }
}

.testimonial-slider {
    display: flex;
    overflow: hidden;
}

.testimonial-slide {
    min-width: 100%;
    transition: opacity 0.5s ease;
}

.testimonial-text {
    font-size: 1.2rem;
}

.testimonial-author {
    margin-top: 2rem;
}

.author-name {
    font-weight: 600;
    display: block;
    color: var(--color-primary-text);
}

.author-title {
    font-family: var(--font-mono);
    color: var(--color-secondary-text);
    font-size: 0.9rem;
}

.testimonial-nav {
    position: absolute;
    top: 40px;
    right: 40px;
    display: flex;
    gap: 10px;
}

.prev-btn,
.next-btn {
    background: none;
    border: 1px solid var(--color-border);
    color: var(--color-primary-text);
    width: 40px;
    height: 40px;
    cursor: pointer;
    transition: all var(--transition-speed);
}

.prev-btn:hover,
.next-btn:hover {
    background-color: var(--color-accent-cyan);
    border-color: var(--color-accent-cyan);
    color: var(--color-bg);
}

/* ===================================================================
   15. CTA Section
=================================================================== */
.cta {
    text-align: center;
}

.cta__container {
    max-width: 700px;
}

.cta__text {
    max-width: 60ch;
    margin-left: auto;
    margin-right: auto;
}

/* ===================================================================
   16. Inner Pages (Contact, Legal)
=================================================================== */
.page-header {
    text-align: center;
    padding: calc(var(--header-height) + 60px) 0 60px;
    border-bottom: 1px solid var(--color-border);
}

.contact-page__layout {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 50px;
}

.contact-form__wrapper,
.contact-info__wrapper {
    background-color: var(--color-surface);
    padding: 40px;
    border: 1px solid var(--color-border);
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-family: var(--font-mono);
}

.form-group input,
.form-group textarea {
    width: 100%;
    background-color: var(--color-bg);
    border: 1px solid var(--color-border);
    padding: 12px;
    color: var(--color-primary-text);
    font-family: var(--font-body);
}

.contact-info-list {
    list-style: none;
}

.contact-info-list li {
    margin-bottom: 1.5rem;
}

.contact-info-list .label {
    display: block;
    font-family: var(--font-mono);
    color: var(--color-secondary-text);
}

/* Legal Pages */
.legal-page__content h2 {
    margin-top: 2rem;
    color: var(--color-accent-cyan);
}

.legal-page__content ul {
    list-style: disc;
    padding-left: 20px;
}

/* ===================================================================
   17. Media Queries (Responsiveness)
=================================================================== */
@media (max-width: 992px) {
    .header__nav {
        position: fixed;
        top: var(--header-height);
        right: -100%;
        width: 100%;
        height: calc(100vh - var(--header-height));
        background-color: var(--color-bg);
        flex-direction: column;
        justify-content: center;
        transition: right var(--transition-speed);
    }

    .header__nav.active {
        right: 0;
    }

    .header__nav-list {
        flex-direction: column;
        text-align: center;
        gap: 40px;
    }

    .header__menu-toggle {
        display: block;
    }

    .header__cta {
        display: none;
    }

    .mission__container {
        grid-template-columns: 1fr;
    }

    .mission__content {
        text-align: center;
    }

    .roi-matrix__container {
        grid-template-columns: 1fr;
    }

    .contact-page__layout {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .footer__main {
        grid-template-columns: 1fr;
    }

    .footer__bottom {
        flex-direction: column;
        gap: 20px;
        text-align: center;
    }

    .hero__actions {
        flex-direction: column;
        gap: 15px;
        align-items: center;
    }
}