/* ==========================================================================
   Awwwards-Level Agency Theme - "Spatial Dark"
   ========================================================================== */
@import url('https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@300;400;600;700&family=Inter:wght@300;400;500&display=swap');

:root {
    --bg-base: #030303;
    --bg-surface: #0f0f11;
    --bg-elevated: #1a1a1c;
    --text-main: #f4f4f5;
    --text-muted: #a1a1aa;
    --accent-1: #ff3366;
    --accent-2: #ff9933;
    --border-color: rgba(255, 255, 255, 0.08);
    --font-head: 'Space Grotesk', sans-serif;
    --font-body: 'Inter', sans-serif;
    --easing: cubic-bezier(0.19, 1, 0.22, 1);
    --nav-height: 90px;
}

/* --- Global Resets & Base --- */
*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
    background: var(--bg-base);
}

body {
    font-family: var(--font-body);
    color: var(--text-main);
    line-height: 1.6;
    overflow-x: hidden;
    background-color: var(--bg-base);
}

body.menu-open {
    overflow: hidden;
}

::selection {
    background: var(--accent-1);
    color: #fff;
}

img {
    max-width: 100%;
    display: block;
    object-fit: cover;
}

a,
button {
    text-decoration: none;
    color: inherit;
    border: none;
    outline: none;
    background: none;
    cursor: none;
}

ul {
    list-style: none;
}

/* --- Ambient Noise Background --- */
.noise-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    pointer-events: none;
    z-index: 9999;
    opacity: 0.03;
    background-image: url('data:image/svg+xml,%3Csvg viewBox="0 0 200 200" xmlns="http://www.w3.org/2000/svg"%3E%3Cfilter id="noiseFilter"%3E%3CfeTurbulence type="fractalNoise" baseFrequency="0.65" numOctaves="3" stitchTiles="stitch"/%3E%3C/filter%3E%3Crect width="100%25" height="100%25" filter="url(%23noiseFilter)"/%3E%3C/svg%3E');
}

/* --- Custom Advanced Cursor --- */
.cursor-dot,
.cursor-outline {
    position: fixed;
    top: 0;
    left: 0;
    transform: translate(-50%, -50%);
    border-radius: 50%;
    z-index: 10000;
    pointer-events: none;
}

.cursor-dot {
    width: 8px;
    height: 8px;
    background-color: var(--accent-1);
    transition: width 0.2s, height 0.2s, background-color 0.2s;
}

.cursor-outline {
    width: 40px;
    height: 40px;
    border: 1px solid rgba(255, 255, 255, 0.5);
    transition: transform 0.1s;
    will-change: transform;
}

.cursor-dot.hover {
    width: 60px;
    height: 60px;
    background-color: #fff;
    mix-blend-mode: difference;
}

.cursor-outline.hover {
    opacity: 0;
}

@media (max-width: 1024px) {

    .cursor-dot,
    .cursor-outline {
        display: none !important;
    }

    a,
    button {
        cursor: pointer !important;
    }
}

/* --- Typography --- */
h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-head);
    font-weight: 700;
    line-height: 1.1;
    letter-spacing: -0.03em;
}

.huge-text {
    font-size: clamp(3.5rem, 10vw, 10rem);
    text-transform: uppercase;
    white-space: nowrap;
}

.section-title {
    font-size: clamp(2.5rem, 6vw, 5rem);
    margin-bottom: 1rem;
}

.subtitle {
    font-size: 1.25rem;
    color: var(--text-muted);
    max-width: 600px;
    margin-bottom: 3rem;
}

.text-gradient {
    background: linear-gradient(135deg, var(--accent-1), var(--accent-2));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* --- Layout Utilities --- */
.container {
    max-width: 1600px;
    margin: 0 auto;
    padding: 0 4vw;
}

.py-section {
    padding: 10rem 0;
}

.reveal-up {
    opacity: 0;
    transform: translateY(60px);
    transition: opacity 1s var(--easing), transform 1s var(--easing);
}

.reveal-up.is-visible {
    opacity: 1;
    transform: translateY(0);
}

/* --- Magnetic Button Style --- */
.btn-magnetic {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 1.2rem 3rem;
    font-family: var(--font-head);
    font-weight: 600;
    text-transform: uppercase;
    color: #fff;
    background: var(--bg-elevated);
    border: 1px solid var(--border-color);
    border-radius: 100px;
    position: relative;
    overflow: hidden;
    transition: background 0.3s, color 0.3s;
}

.btn-magnetic::before {
    content: '';
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, var(--accent-1), var(--accent-2));
    transition: transform 0.5s var(--easing);
    z-index: -1;
    border-radius: 100px;
}

.btn-magnetic:hover::before {
    transform: translateY(-100%);
}

.btn-magnetic span {
    position: relative;
    z-index: 2;
    pointer-events: none;
}

/* --- 1. Header & Navigation --- */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: var(--nav-height);
    display: flex;
    align-items: center;
    z-index: 2000;
    transition: transform 0.4s var(--easing), background 0.4s;
    border-bottom: 1px solid transparent;
}

.site-header.scrolled {
    background: rgba(3, 3, 3, 0.85);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border-color);
}

.site-header.hidden {
    transform: translateY(-100%);
}

.header-inner {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo img {
    height: 70px;
    filter: invert(1);
}

.nav-links {
    display: flex;
    gap: 4vw;
}

.nav-link {
    font-family: var(--font-head);
    font-size: 0.95rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--text-main);
    position: relative;
    overflow: hidden;
    padding: 5px 0;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background: var(--accent-1);
    transform: translateX(-101%);
    transition: transform 0.4s var(--easing);
}

.nav-link:hover::after {
    transform: translateX(0);
}

/* Header Right / Mobile Toggle */
.header-actions {
    display: flex;
    align-items: center;
    gap: 2rem;
    z-index: 2001;
}

.menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 40px;
    height: 14px;
    z-index: 2001;
}

.menu-toggle span {
    display: block;
    width: 100%;
    height: 2px;
    background: #fff;
    transition: 0.4s var(--easing);
}

.menu-toggle.active span:nth-child(1) {
    transform: translateY(6px) rotate(45deg);
}

.menu-toggle.active span:nth-child(2) {
    transform: translateY(-6px) rotate(-45deg);
}

/* Fullscreen Mobile Menu Overlay */
.mobile-menu {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: var(--bg-base);
    z-index: 1500;
    display: flex;
    align-items: center;
    justify-content: center;
    clip-path: circle(0% at 100% 0%);
    transition: clip-path 0.8s var(--easing);
}

.mobile-menu.active {
    clip-path: circle(150% at 100% 0%);
}

.mobile-nav-list {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    text-align: center;
}

.mobile-nav-list a {
    font-family: var(--font-head);
    font-size: 3rem;
    font-weight: 700;
    text-transform: uppercase;
    opacity: 0;
    transform: translateY(40px);
    transition: 0.5s var(--easing);
}

.mobile-nav-list a:hover {
    color: var(--accent-1);
    -webkit-text-stroke: 1px var(--accent-1);
    color: transparent;
}

.mobile-menu.active .mobile-nav-list a {
    opacity: 1;
    transform: translateY(0);
}

.mobile-menu.active .mobile-nav-list a:nth-child(1) {
    transition-delay: 0.2s;
}

.mobile-menu.active .mobile-nav-list a:nth-child(2) {
    transition-delay: 0.3s;
}

.mobile-menu.active .mobile-nav-list a:nth-child(3) {
    transition-delay: 0.4s;
}

.mobile-menu.active .mobile-nav-list a:nth-child(4) {
    transition-delay: 0.5s;
}

/* Responsive Header */
@media (max-width: 1024px) {
    .nav-links {
        display: none;
    }

    .header-btn {
        display: none !important;
    }

    .menu-toggle {
        display: flex;
    }
}

/* --- 2. Hero Section --- */
.hero {
    position: relative;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.hero-glow {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 60vw;
    height: 60vw;
    background: radial-gradient(circle, rgba(255, 51, 102, 0.15) 0%, transparent 60%);
    filter: blur(100px);
    z-index: 0;
    animation: pulse 8s infinite alternate;
}

@keyframes pulse {
    0% {
        transform: translate(-50%, -50%) scale(1);
    }

    100% {
        transform: translate(-50%, -50%) scale(1.2);
    }
}

.hero-content {
    position: relative;
    z-index: 1;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.hero-line {
    overflow: hidden;
    display: block;
}

.hero-line span {
    display: block;
    transform: translateY(100%);
    animation: slideUp 1s var(--easing) forwards;
}

.hero-line:nth-child(2) span {
    animation-delay: 0.15s;
}

.hero-line:nth-child(3) span {
    animation-delay: 0.3s;
}

@keyframes slideUp {
    to {
        transform: translateY(0);
    }
}

/* --- 3. Kinetic Marquee --- */
.marquee {
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
    padding: 2rem 0;
    overflow: hidden;
    background: var(--bg-surface);
    display: flex;
    white-space: nowrap;
}

.marquee-track {
    display: flex;
    animation: scrollMarquee 25s linear infinite;
}

.marquee-item {
    font-family: var(--font-head);
    font-size: 4rem;
    font-weight: 700;
    text-transform: uppercase;
    padding: 0 3rem;
    -webkit-text-stroke: 1px rgba(255, 255, 255, 0.2);
    color: transparent;
    transition: 0.3s;
}

.marquee-item:hover {
    color: var(--accent-1);
    -webkit-text-stroke: 0;
}

@keyframes scrollMarquee {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-50%);
    }
}

/* --- 4. Bento Box Services --- */
.bento-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-auto-rows: 350px;
    gap: 1.5rem;
    margin-top: 4rem;
}

.bento-item {
    background: var(--bg-surface);
    border: 1px solid var(--border-color);
    border-radius: 24px;
    padding: 3rem;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    position: relative;
    overflow: hidden;
    transition: transform 0.4s var(--easing);
}

.bento-item:hover {
    transform: translateY(-10px);
    background: var(--bg-elevated);
    border-color: rgba(255, 255, 255, 0.2);
}

.bento-item.large {
    grid-column: span 2;
    background: linear-gradient(135deg, var(--bg-surface), #1a0f14);
}

.service-num {
    font-family: var(--font-head);
    font-size: 1.5rem;
    color: var(--accent-1);
}

.bento-content h3 {
    font-size: 2rem;
    margin-bottom: 1rem;
}

.bento-item::after {
    content: '↗';
    position: absolute;
    top: 2rem;
    right: 2rem;
    font-size: 2rem;
    color: var(--border-color);
    transition: 0.3s;
    font-family: var(--font-head);
}

.bento-item:hover::after {
    color: var(--accent-1);
    transform: translate(5px, -5px);
}

@media (max-width: 1024px) {
    .bento-grid {
        grid-template-columns: 1fr;
        grid-auto-rows: auto;
    }

    .bento-item.large {
        grid-column: span 1;
    }
}

/* --- 5. Interactive Industry Accordion --- */
.accordion-wrapper {
    border-top: 1px solid var(--border-color);
}

.accordion-item {
    border-bottom: 1px solid var(--border-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 3rem 0;
    cursor: pointer;
    transition: 0.4s;
    position: relative;
    overflow: hidden;
}

.accordion-title {
    font-size: 3rem;
    color: var(--text-muted);
    transition: 0.4s;
    pointer-events: none;
    z-index: 2;
    position: relative;
}

.accordion-item:hover .accordion-title {
    color: #fff;
    transform: translateX(20px);
}

.accordion-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--bg-surface);
    transform: scaleY(0);
    transform-origin: bottom;
    transition: transform 0.5s var(--easing);
    z-index: 1;
}

.accordion-item:hover .accordion-bg {
    transform: scaleY(1);
}

/* --- 6. Flat UI Calculator --- */
.calc-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    background: var(--bg-surface);
    padding: 5rem;
    border-radius: 30px;
    border: 1px solid var(--border-color);
}

.slider-wrapper {
    margin-bottom: 3rem;
}

.calc-label {
    display: flex;
    justify-content: space-between;
    margin-bottom: 1rem;
    font-family: var(--font-head);
    font-size: 1.2rem;
}

.flat-slider {
    -webkit-appearance: none;
    width: 100%;
    height: 2px;
    background: rgba(255, 255, 255, 0.2);
    outline: none;
}

.flat-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 30px;
    height: 30px;
    background: var(--text-main);
    border-radius: 0;
    cursor: pointer;
    transition: 0.2s;
}

.flat-slider::-webkit-slider-thumb:hover {
    background: var(--accent-1);
    transform: scale(1.2);
}

.calc-result-box {
    background: var(--bg-elevated);
    padding: 3rem;
    border: 1px solid var(--border-color);
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.res-val {
    font-family: var(--font-head);
    font-size: 4rem;
    font-weight: 700;
    color: var(--accent-2);
    line-height: 1;
    margin: 1rem 0;
}

@media (max-width: 900px) {
    .calc-container {
        grid-template-columns: 1fr;
        padding: 2rem;
    }
}

/* --- 7. Analytics Dashboard Mockup --- */
.dashboard-mock {
    background: var(--bg-elevated);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    padding: 2rem;
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.dash-header {
    display: flex;
    gap: 1rem;
}

.dash-tab {
    padding: 0.8rem 2rem;
    border: 1px solid var(--border-color);
    border-radius: 100px;
    color: var(--text-muted);
    cursor: pointer;
    transition: 0.3s;
    font-family: var(--font-head);
}

.dash-tab.active,
.dash-tab:hover {
    background: #fff;
    color: #000;
}

.chart-area {
    height: 250px;
    display: flex;
    align-items: flex-end;
    gap: 10px;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--border-color);
}

.chart-col {
    flex: 1;
    background: var(--border-color);
    border-radius: 4px 4px 0 0;
    position: relative;
    overflow: hidden;
}

.chart-fill {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    background: var(--accent-1);
    transform-origin: bottom;
    transform: scaleY(0);
    animation: fillUp 1.5s var(--easing) forwards;
}

@keyframes fillUp {
    to {
        transform: scaleY(1);
    }
}

/* --- 8. Scrolling Testimonials --- */
.testi-scroll {
    display: flex;
    gap: 2rem;
    overflow-x: auto;
    padding-bottom: 2rem;
    scrollbar-width: none;
    scroll-snap-type: x mandatory;
}

.testi-scroll::-webkit-scrollbar {
    display: none;
}

.testi-card {
    min-width: 450px;
    padding: 4rem 3rem;
    background: var(--bg-surface);
    border: 1px solid var(--border-color);
    scroll-snap-align: center;
}

.quote-mark {
    font-family: var(--font-head);
    font-size: 4rem;
    color: var(--accent-1);
    line-height: 0;
    margin-bottom: 2rem;
}

.testi-card p {
    font-size: 1.5rem;
    line-height: 1.4;
    margin-bottom: 3rem;
}

.testi-author {
    font-family: var(--font-head);
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--text-muted);
}

@media (max-width: 768px) {
    .testi-card {
        min-width: 300px;
        padding: 2rem;
    }

    .testi-card p {
        font-size: 1.2rem;
    }
}

/* --- 9. Global Contact Block --- */
.contact-section {
    background: var(--accent-1);
    color: #000;
    border-radius: 40px 40px 0 0;
    padding: 8rem 0;
}

.contact-section .section-title {
    color: #000;
}

.contact-section p {
    color: rgba(0, 0, 0, 0.8);
}

.minimal-form {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.input-row {
    position: relative;
}

.min-input {
    width: 100%;
    background: transparent;
    border: none;
    border-bottom: 2px solid rgba(0, 0, 0, 0.2);
    padding: 1rem 0;
    font-size: 1.5rem;
    color: #000;
    outline: none;
    transition: 0.3s;
    font-family: var(--font-body);
}

.min-input::placeholder {
    color: rgba(255, 255, 255, 0.4);
}

.min-input:focus {
    border-bottom-color: #000;
}

.btn-dark {
    background: #000;
    color: #fff;
    display: inline-flex;
    padding: 1.5rem 4rem;
    border-radius: 100px;
    font-family: var(--font-head);
    font-size: 1.2rem;
    text-transform: uppercase;
    cursor: pointer;
    align-self: flex-start;
    transition: transform 0.3s;
}

.btn-dark:hover {
    transform: scale(1.05);
}

/* --- Live Chat --- */
.chat-widget {
    position: fixed;
    bottom: 40px;
    right: 40px;
    z-index: 999;
}

.chat-trigger {
    width: 70px;
    height: 70px;
    background: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
    cursor: pointer;
    transition: 0.3s;
    font-size: 2rem;
}

.chat-trigger:hover {
    transform: scale(1.1);
}

.chat-panel {
    position: absolute;
    bottom: 90px;
    right: 0;
    width: 350px;
    background: var(--bg-elevated);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    overflow: hidden;
    opacity: 0;
    pointer-events: none;
    transform: translateY(20px);
    transition: 0.4s var(--easing);
}

.chat-panel.active {
    opacity: 1;
    pointer-events: all;
    transform: translateY(0);
}

.chat-head {
    background: #fff;
    color: #000;
    padding: 1.5rem;
    font-family: var(--font-head);
    font-weight: 700;
    text-align: center;
}

.chat-msgs {
    height: 250px;
    padding: 1.5rem;
    overflow-y: auto;
    color: var(--text-muted);
    font-size: 0.95rem;
}

.chat-input {
    display: flex;
    border-top: 1px solid var(--border-color);
}

.chat-input input {
    flex: 1;
    background: transparent;
    border: none;
    padding: 1rem;
    color: #fff;
    outline: none;
}

.chat-input button {
    background: var(--accent-1);
    color: #fff;
    padding: 0 1.5rem;
    font-weight: bold;
    cursor: pointer;
}

/* --- 10. Footer (Identical on all pages) --- */
.site-footer {
    background: var(--bg-base);
    padding: 6rem 0 2rem;
    border-top: 1px solid var(--border-color);
}

.footer-big-text {
    font-family: var(--font-head);
    font-size: clamp(4rem, 12vw, 15rem);
    font-weight: 700;
    line-height: 0.8;
    margin-bottom: 4rem;
    letter-spacing: -0.05em;
    color: #fff;
    text-align: center;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1.5fr;
    gap: 4rem;
    padding-bottom: 4rem;
    border-bottom: 1px solid var(--border-color);
}

.footer-logo img {
    height: 70px;
    margin-bottom: 2rem;
    filter: brightness(0) invert(1);
}

.footer-col h4 {
    font-size: 1.2rem;
    color: #fff;
    margin-bottom: 1.5rem;
}

.footer-links li {
    margin-bottom: 0.8rem;
}

.footer-links a {
    color: var(--text-muted);
    transition: 0.3s;
    position: relative;
}

.footer-links a:hover {
    color: #fff;
    padding-left: 8px;
}

.footer-bottom {
    padding-top: 2rem;
    display: flex;
    justify-content: space-between;
    color: var(--text-muted);
    font-size: 0.9rem;
}

.legal-nav {
    display: flex;
    gap: 2rem;
}

@media (max-width: 1024px) {
    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }

    .footer-bottom {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }

    .legal-nav {
        justify-content: center;
    }
}

/* --- Legal Pages Overrides --- */
.legal-header {
    padding: 12rem 0 4rem;
    border-bottom: 1px solid var(--border-color);
    text-align: center;
}

.legal-content-area {
    padding: 5rem 0;
    max-width: 800px;
    margin: 0 auto;
}

.legal-content-area h2 {
    font-size: 2.5rem;
    margin: 4rem 0 1.5rem;
    color: #fff;
}

.legal-content-area p {
    font-size: 1.2rem;
    color: var(--text-muted);
    margin-bottom: 1.5rem;
}

.legal-content-area ul {
    padding-left: 2rem;
    list-style: disc;
    color: var(--text-muted);
    font-size: 1.2rem;
    margin-bottom: 1.5rem;
}

.legal-content-area ul li {
    margin-bottom: 0.5rem;
}