/* ==========================================================================
   Awwwards-Level Digital Marketing Theme V2 - styles.css
   Aesthetic: Dark Brutalist Luxury / Neon Accents
   ========================================================================== */

:root {
    /* Theme Colors: Pitch Black with Neon Violet/Orange accents */
    --c-bg: #070709;
    --c-surface: #121217;
    --c-surface-hover: #1a1a22;
    --c-text: #f4f4f5;
    --c-text-mut: #8a8a93;
    --c-accent-1: #9d4edd;
    /* Neon Violet */
    --c-accent-2: #ff7900;
    /* Neon Orange */
    --c-border: #2a2a35;

    /* Fonts: Highly modern pairings */
    --f-display: 'Syne', sans-serif;
    --f-body: 'Manrope', sans-serif;

    /* Fluid Typography */
    --t-xs: clamp(0.75rem, 1vw, 0.875rem);
    --t-sm: clamp(0.875rem, 1.5vw, 1rem);
    --t-base: clamp(1rem, 2vw, 1.25rem);
    --t-lg: clamp(1.25rem, 2.5vw, 1.75rem);
    --t-xl: clamp(2rem, 4vw, 3rem);
    --t-2xl: clamp(3rem, 6vw, 5rem);
    --t-huge: clamp(4rem, 10vw, 9rem);

    /* Spacing */
    --s-sm: 1rem;
    --s-md: 2.5rem;
    --s-lg: 5rem;
    --s-xl: 10rem;

    /* Animations */
    --ease-custom: cubic-bezier(0.25, 1, 0.5, 1);
    --trans-fast: 0.3s ease;
    --trans-slow: 0.8s var(--ease-custom);
}

/* Base Reset & Setup */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: auto;
    font-size: 16px;
    background: var(--c-bg);
}

body {
    font-family: var(--f-body);
    color: var(--c-text);
    background-color: var(--c-bg);
    line-height: 1.5;
    overflow-x: hidden;
    cursor: none;
}

a,
button {
    text-decoration: none;
    color: inherit;
    border: none;
    background: none;
    cursor: none;
}

ul {
    list-style: none;
}

img,
svg {
    max-width: 100%;
    display: block;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--c-bg);
}

::-webkit-scrollbar-thumb {
    background: var(--c-border);
    border-radius: 10px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--c-accent-1);
}

/* --- Magnetic Custom Cursor --- */
.cursor-dot {
    position: fixed;
    top: 0;
    left: 0;
    width: 8px;
    height: 8px;
    background: var(--c-text);
    border-radius: 50%;
    pointer-events: none;
    transform: translate(-50%, -50%);
    z-index: 10000;
    mix-blend-mode: difference;
    transition: width 0.2s, height 0.2s;
}

.cursor-ring {
    position: fixed;
    top: 0;
    left: 0;
    width: 40px;
    height: 40px;
    border: 1px solid var(--c-text-mut);
    border-radius: 50%;
    pointer-events: none;
    transform: translate(-50%, -50%);
    z-index: 9999;
    transition: transform 0.1s ease-out, width 0.3s, height 0.3s, border-color 0.3s;
}

body.hover-state .cursor-dot {
    width: 0;
    height: 0;
}

body.hover-state .cursor-ring {
    width: 80px;
    height: 80px;
    border-color: var(--c-accent-1);
    background: rgba(157, 78, 221, 0.1);
    backdrop-filter: blur(4px);
}

/* Typography Utilities */
.f-display {
    font-family: var(--f-display);
    font-weight: 800;
    text-transform: uppercase;
    line-height: 1.1;
}

.t-huge {
    font-size: var(--t-huge);
    letter-spacing: -0.03em;
}

.t-2xl {
    font-size: var(--t-2xl);
    letter-spacing: -0.02em;
}

.t-xl {
    font-size: var(--t-xl);
}

.t-mut {
    color: var(--c-text-mut);
}

/* Gradient Text & Outline Text */
.text-grad {
    background: linear-gradient(135deg, var(--c-accent-1), var(--c-accent-2));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.text-outline {
    color: transparent;
    -webkit-text-stroke: 1px var(--c-text-mut);
    transition: var(--trans-slow);
}

.text-outline:hover {
    color: var(--c-text);
    -webkit-text-stroke: 1px var(--c-text);
}

/* Layout */
.container {
    max-width: 1800px;
    margin: 0 auto;
    padding: 0 4vw;
}

.section {
    padding: var(--s-xl) 0;
    position: relative;
    z-index: 2;
}

.grid-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--s-md);
    align-items: center;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 1.25rem 3rem;
    font-family: var(--f-display);
    font-size: var(--t-sm);
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    border-radius: 100px;
    position: relative;
    overflow: hidden;
    border: 1px solid var(--c-border);
    transition: var(--trans-fast);
}

.btn::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 0%;
    background: linear-gradient(to top, var(--c-accent-1), var(--c-accent-2));
    z-index: -1;
    transition: height 0.4s var(--ease-custom);
}

.btn:hover {
    border-color: transparent;
    color: #fff;
}

.btn:hover::after {
    height: 100%;
}

.btn-primary {
    background: var(--c-text);
    color: var(--c-bg);
    border: none;
}

.btn-primary::after {
    background: var(--c-accent-1);
}

/* Reveal Animations */
.reveal-wrap {
    overflow: hidden;
    display: inline-block;
    vertical-align: top;
}

.reveal-text {
    display: inline-block;
    transform: translateY(100%);
    opacity: 0;
    transition: transform 1s var(--ease-custom), opacity 1s;
}

.reveal-text.is-visible {
    transform: translateY(0);
    opacity: 1;
}

/* ==========================================================================
   Header & Footer (Strict Global Consistency)
   ========================================================================== */
.global-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    padding: 2rem 4vw;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: background 0.4s, padding 0.4s;
}

.global-header.scrolled {
    background: rgba(7, 7, 9, 0.8);
    backdrop-filter: blur(12px);
    padding: 1rem 4vw;
    border-bottom: 1px solid var(--c-border);
}

.header-logo img {
    height: 55px;
    filter: invert(1);
}

.header-nav {
    display: flex;
    gap: 4rem;
}

.header-nav a {
    font-family: var(--f-display);
    font-size: var(--t-sm);
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
    position: relative;
}

.header-nav a::before {
    content: '';
    position: absolute;
    left: 0;
    bottom: -5px;
    width: 100%;
    height: 2px;
    background: var(--c-accent-2);
    transform: scaleX(0);
    transform-origin: right;
    transition: transform 0.4s var(--ease-custom);
}

.header-nav a:hover::before {
    transform: scaleX(1);
    transform-origin: left;
}

.global-footer {
    background: var(--c-surface);
    border-top: 1px solid var(--c-border);
    padding: var(--s-xl) 0 2rem;
    position: relative;
    overflow: hidden;
}

.footer-top {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 4rem;
    margin-bottom: var(--s-lg);
}

.f-title {
    font-family: var(--f-display);
    font-size: var(--t-base);
    color: var(--c-text);
    margin-bottom: 2rem;
}

.f-links li {
    margin-bottom: 1rem;
}

.f-links a {
    color: var(--c-text-mut);
    transition: color 0.3s;
}

.f-links a:hover {
    color: var(--c-accent-1);
}

.footer-massive {
    font-size: 14vw;
    font-family: var(--f-display);
    font-weight: 800;
    line-height: 0.8;
    color: var(--c-bg);
    -webkit-text-stroke: 1px var(--c-border);
    text-align: center;
    margin-bottom: 2rem;
    white-space: nowrap;
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    border-top: 1px solid var(--c-border);
    padding-top: 2rem;
    color: var(--c-text-mut);
    font-size: var(--t-xs);
}

/* ==========================================================================
   Home Page Specific Sections
   ========================================================================== */

/* 1. Hero with Dynamic Orb */
.hero {
    height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
}

.hero-orb {
    position: absolute;
    width: 60vw;
    height: 60vw;
    background: radial-gradient(circle, rgba(157, 78, 221, 0.4) 0%, rgba(255, 121, 0, 0.2) 40%, transparent 70%);
    border-radius: 50%;
    filter: blur(80px);
    z-index: 0;
    pointer-events: none;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    transition: top 0.1s, left 0.1s;
}

.hero-content {
    position: relative;
    z-index: 10;
    text-align: center;
    width: 100%;
}

.hero-sub {
    font-family: var(--f-display);
    font-size: var(--t-base);
    color: var(--c-accent-2);
    letter-spacing: 4px;
    text-transform: uppercase;
    margin-bottom: 2rem;
    display: block;
}

/* 2. Marquee Text */
.marquee-wrap {
    border-top: 1px solid var(--c-border);
    border-bottom: 1px solid var(--c-border);
    padding: 1.5rem 0;
    background: var(--c-surface);
    overflow: hidden;
    display: flex;
    white-space: nowrap;
}

.marquee-inner {
    display: flex;
    animation: scrollLeft 30s linear infinite;
}

.marquee-item {
    font-family: var(--f-display);
    font-size: var(--t-xl);
    padding: 0 3rem;
    color: var(--c-text-mut);
}

.marquee-item span {
    color: var(--c-accent-1);
}

@keyframes scrollLeft {
    from {
        transform: translateX(0);
    }

    to {
        transform: translateX(-50%);
    }
}

/* 3. About / Core Value */
.about-section {
    text-align: center;
}

.about-text {
    max-width: 1000px;
    margin: 0 auto;
    font-size: var(--t-xl);
    line-height: 1.4;
    font-family: var(--f-display);
}

/* 4. Interactive Services Accordion */
.services-list {
    border-top: 1px solid var(--c-border);
    margin-top: 4rem;
}

.service-item {
    border-bottom: 1px solid var(--c-border);
    padding: 3rem 0;
    position: relative;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: none;
    transition: padding 0.4s var(--ease-custom);
}

.service-item:hover {
    padding: 4rem 2rem;
    background: var(--c-surface);
}

.service-title {
    font-family: var(--f-display);
    font-size: var(--t-2xl);
    transition: color 0.4s;
    z-index: 2;
    position: relative;
}

.service-item:hover .service-title {
    color: var(--c-accent-1);
}

.service-desc {
    max-width: 400px;
    color: var(--c-text-mut);
    opacity: 0;
    transform: translateX(20px);
    transition: 0.4s var(--ease-custom);
    z-index: 2;
}

.service-item:hover .service-desc {
    opacity: 1;
    transform: translateX(0);
}

.service-bg-img {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.8);
    width: 400px;
    height: 250px;
    background: var(--c-border);
    border-radius: 20px;
    opacity: 0;
    pointer-events: none;
    transition: 0.5s var(--ease-custom);
    z-index: 1;
    background-size: cover;
    background-position: center;
    mix-blend-mode: luminosity;
}

.service-item:hover .service-bg-img {
    opacity: 0.3;
    transform: translate(-50%, -50%) scale(1);
}

/* 5. SVG Live Reports / Charts */
.reports-section {
    background: var(--c-surface);
}

.chart-container {
    background: var(--c-bg);
    border: 1px solid var(--c-border);
    border-radius: 2rem;
    padding: 4rem;
    margin-top: 3rem;
    position: relative;
    overflow: hidden;
}

.chart-svg {
    width: 100%;
    height: 300px;
    overflow: visible;
}

.chart-line {
    fill: none;
    stroke: url(#grad1);
    stroke-width: 4;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-dasharray: 2000;
    stroke-dashoffset: 2000;
    transition: stroke-dashoffset 2s var(--ease-custom);
}

.chart-container.is-visible .chart-line {
    stroke-dashoffset: 0;
}

.chart-grid line {
    stroke: var(--c-border);
    stroke-width: 1;
}

.chart-labels text {
    fill: var(--c-text-mut);
    font-family: var(--f-body);
    font-size: 12px;
}

/* 6. Industries (Parallax Cards) */
.ind-cards {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    margin-top: 4rem;
}

.ind-card {
    background: var(--c-surface);
    border: 1px solid var(--c-border);
    padding: 4rem;
    border-radius: 2rem;
    transition: transform 0.5s var(--ease-custom);
    position: relative;
    overflow: hidden;
}

.ind-card::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255, 121, 0, 0.1) 0%, transparent 60%);
    opacity: 0;
    transition: opacity 0.5s;
    pointer-events: none;
}

.ind-card:hover::before {
    opacity: 1;
}

.ind-card:nth-child(even) {
    transform: translateY(4rem);
}

.ind-title {
    font-family: var(--f-display);
    font-size: var(--t-xl);
    margin-bottom: 1rem;
    color: var(--c-accent-2);
}

/* 7. Brutalist Calculator */
.calc-wrapper {
    border: 2px solid var(--c-border);
    padding: 5rem;
    border-radius: 3rem;
    background: var(--c-surface);
}

.range-group {
    margin-bottom: 3rem;
}

.range-header {
    display: flex;
    justify-content: space-between;
    font-family: var(--f-display);
    font-size: var(--t-base);
    margin-bottom: 1.5rem;
}

.range-val {
    color: var(--c-accent-1);
    font-weight: 700;
    font-size: var(--t-lg);
}

input[type=range] {
    -webkit-appearance: none;
    width: 100%;
    background: transparent;
    height: 6px;
    border-radius: 3px;
    border: 1px solid var(--c-border);
    outline: none;
}

input[type=range]::-webkit-slider-thumb {
    -webkit-appearance: none;
    height: 30px;
    width: 30px;
    border-radius: 50%;
    background: var(--c-text);
    cursor: none;
    border: 4px solid var(--c-bg);
    box-shadow: 0 0 0 2px var(--c-accent-1);
    margin-top: -12px;
}

.calc-results {
    margin-top: 4rem;
    padding-top: 4rem;
    border-top: 1px solid var(--c-border);
    display: flex;
    justify-content: space-around;
    text-align: center;
}

.res-box h4 {
    font-size: var(--t-sm);
    color: var(--c-text-mut);
    margin-bottom: 1rem;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.res-box div {
    font-family: var(--f-display);
    font-size: var(--t-2xl);
    color: var(--c-text);
    text-shadow: 0 0 20px rgba(255, 121, 0, 0.4);
}

/* 8. Testimonials (Masonry or Scrolling Grid) */
.testi-grid {
    display: flex;
    gap: 2rem;
    overflow-x: auto;
    padding: 2rem 0;
    scrollbar-width: none;
}

.testi-grid::-webkit-scrollbar {
    display: none;
}

.testi-card {
    min-width: 450px;
    background: var(--c-bg);
    border: 1px solid var(--c-border);
    padding: 3rem;
    border-radius: 1.5rem;
    flex-shrink: 0;
}

.t-quote {
    font-size: var(--t-lg);
    font-style: italic;
    margin-bottom: 2rem;
    line-height: 1.4;
    color: var(--c-text);
}

.t-author {
    color: var(--c-accent-1);
    font-family: var(--f-display);
    font-weight: 700;
}

/* 9. Contact Section */
.cta-section {
    background: linear-gradient(180deg, var(--c-bg), var(--c-surface));
    text-align: center;
}

.form-brutal {
    max-width: 800px;
    margin: 4rem auto 0;
    text-align: left;
}

.input-wrap {
    position: relative;
    margin-bottom: 3rem;
}

.input-brutal {
    width: 100%;
    background: transparent;
    border: none;
    border-bottom: 2px solid var(--c-border);
    padding: 1rem 0;
    color: var(--c-text);
    font-size: var(--t-lg);
    font-family: var(--f-body);
    transition: border-color 0.3s;
}

.input-brutal:focus {
    outline: none;
    border-color: var(--c-accent-1);
}

.label-brutal {
    position: absolute;
    top: 1rem;
    left: 0;
    color: var(--c-text-mut);
    font-size: var(--t-lg);
    pointer-events: none;
    transition: 0.3s var(--ease-custom);
}

.input-brutal:focus~.label-brutal,
.input-brutal:valid~.label-brutal {
    top: -1.5rem;
    font-size: var(--t-sm);
    color: var(--c-accent-1);
}

/* 10. Live Chat Widget */
.chat-widget {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    z-index: 1000;
}

.chat-toggle {
    width: 65px;
    height: 65px;
    border-radius: 50%;
    background: var(--c-accent-1);
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: none;
    box-shadow: 0 10px 30px rgba(157, 78, 221, 0.5);
    transition: transform 0.3s;
}

.chat-toggle:hover {
    transform: scale(1.1);
}

.chat-panel {
    position: absolute;
    bottom: 85px;
    right: 0;
    width: 350px;
    background: var(--c-surface);
    border: 1px solid var(--c-border);
    border-radius: 1.5rem;
    padding: 2rem;
    opacity: 0;
    transform: translateY(20px);
    pointer-events: none;
    transition: 0.4s var(--ease-custom);
}

.chat-widget.active .chat-panel {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}

.chat-panel textarea {
    width: 100%;
    height: 100px;
    background: var(--c-bg);
    border: 1px solid var(--c-border);
    border-radius: 1rem;
    padding: 1rem;
    color: var(--c-text);
    font-family: var(--f-body);
    margin-top: 1rem;
    resize: none;
    outline: none;
}

/* Legal Pages Typography & Layout */
.legal-hero {
    padding: 20vh 0 10vh;
    border-bottom: 1px solid var(--c-border);
    background: var(--c-surface);
}

.legal-content {
    max-width: 900px;
    margin: 0 auto;
    padding: var(--s-lg) 0;
}

.legal-content h2 {
    font-family: var(--f-display);
    font-size: var(--t-xl);
    color: var(--c-accent-1);
    margin: 3rem 0 1.5rem;
}

.legal-content p {
    font-size: var(--t-base);
    color: var(--c-text-mut);
    margin-bottom: 1.5rem;
    line-height: 1.8;
}

.legal-content ul {
    list-style: square;
    padding-left: 2rem;
    margin-bottom: 2rem;
    color: var(--c-text-mut);
}

.legal-content li {
    margin-bottom: 0.5rem;
}

/* Responsive Adjustments */
@media (max-width: 1024px) {
    .footer-top {
        grid-template-columns: 1fr 1fr;
    }

    .ind-cards {
        grid-template-columns: 1fr;
    }

    .ind-card:nth-child(even) {
        transform: none;
    }

    .grid-2 {
        grid-template-columns: 1fr;
    }

    .calc-results {
        flex-direction: column;
        gap: 2rem;
    }
}

@media (max-width: 768px) {
    .header-nav {
        display: none;
    }

    .calc-wrapper,
    .ind-card {
        padding: 2rem;
    }

    .service-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }

    .service-item:hover {
        padding: 2rem 1rem;
    }
}