/* ==========================================================================
   Base Variables & Resets
   ========================================================================== */
:root {
    --bg-base: #030305;
    --bg-surface: #0a0a0f;
    --bg-elevated: #12121a;
    --accent-primary: #00ff88;
    /* Neon Emerald */
    --accent-secondary: #0066ff;
    /* Deep Tech Blue */
    --accent-gradient: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary));
    --text-main: #f0f0f0;
    --text-muted: #888899;
    --font-head: 'Oswald', 'Space Grotesk', sans-serif;
    --font-body: 'DM Sans', 'Inter', sans-serif;
    --ease-out-expo: 0.16, 1, 0.3, 1;
    --transition-slow: 0.8s cubic-bezier(var(--ease-out-expo));
    --transition-fast: 0.4s cubic-bezier(var(--ease-out-expo));
    --header-height: 90px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    cursor: none;
}

html {
    scroll-behavior: smooth;
    background: var(--bg-base);
    font-size: 16px;
    overflow-x: hidden;
}

body {
    font-family: var(--font-body);
    color: var(--text-main);
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

a {
    text-decoration: none;
    color: inherit;
}

li {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 6px;
}

::-webkit-scrollbar-track {
    background: var(--bg-base);
}

::-webkit-scrollbar-thumb {
    background: var(--bg-elevated);
    border-radius: 10px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--accent-primary);
}

/* ==========================================================================
   Custom Cursor
   ========================================================================== */
.cursor-dot {
    position: fixed;
    top: 0;
    left: 0;
    width: 8px;
    height: 8px;
    background: var(--accent-primary);
    border-radius: 50%;
    pointer-events: none;
    z-index: 10000;
    transform: translate(-50%, -50%);
    transition: width 0.3s, height 0.3s, background 0.3s;
}

.cursor-outline {
    position: fixed;
    top: 0;
    left: 0;
    width: 40px;
    height: 40px;
    border: 1px solid rgba(0, 255, 136, 0.5);
    border-radius: 50%;
    pointer-events: none;
    z-index: 9999;
    transform: translate(-50%, -50%);
    transition: 0.15s ease-out;
}

.cursor-dot.hover {
    width: 60px;
    height: 60px;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(2px);
    border: 1px solid var(--accent-primary);
}

.cursor-outline.hover {
    opacity: 0;
}

/* Typography */
h1,
h2,
h3,
h4,
h5 {
    font-family: var(--font-head);
    text-transform: uppercase;
    line-height: 1.1;
    font-weight: 700;
}

.text-grad {
    background: var(--accent-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.display-title {
    font-size: clamp(3rem, 8vw, 7rem);
    margin-bottom: 20px;
    letter-spacing: -2px;
}

.section-title {
    font-size: clamp(2rem, 5vw, 4.5rem);
    margin-bottom: 30px;
}

.lead-text {
    font-size: clamp(1.1rem, 2vw, 1.4rem);
    color: var(--text-muted);
    max-width: 650px;
    font-weight: 300;
}

/* ==========================================================================
   Strict Header & Fully Functional Mobile Menu
   ========================================================================== */
header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    transition: var(--transition-fast);
    background: rgba(3, 3, 5, 0);
    backdrop-filter: blur(0px);
    border-bottom: 1px solid transparent;
}

header.scrolled {
    background: rgba(3, 3, 5, 0.85);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 5%;
    height: var(--header-height);
    max-width: 1600px;
    margin: 0 auto;
    position: relative;
    z-index: 1001;
}

.logo img {
    height: 60px;
    filter: invert(1);
}

/* Desktop Nav */
.desktop-nav {
    display: flex;
    gap: 40px;
    align-items: center;
}

.desktop-nav li a {
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    position: relative;
    font-weight: 500;
    padding: 10px 0;
}

.desktop-nav li a::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0%;
    height: 2px;
    background: var(--accent-gradient);
    transition: var(--transition-fast);
}

.desktop-nav li a:hover::before {
    width: 100%;
}

/* Buttons */
.btn {
    padding: 14px 35px;
    border-radius: 50px;
    font-family: var(--font-head);
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 0.9rem;
    position: relative;
    overflow: hidden;
    display: inline-flex;
    justify-content: center;
    align-items: center;
    z-index: 1;
    transition: var(--transition-fast);
    border: 1px solid rgba(255, 255, 255, 0.2);
    background: transparent;
    color: white;
}

.btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--accent-gradient);
    z-index: -1;
    transform: scaleX(0);
    transform-origin: right;
    transition: transform 0.6s cubic-bezier(0.19, 1, 0.22, 1);
}

.btn:hover::before {
    transform: scaleX(1);
    transform-origin: left;
}

.btn:hover {
    border-color: transparent;
    box-shadow: 0 10px 30px rgba(0, 255, 136, 0.3);
}

/* Hamburger Icon (Strictly Mobile) */
.hamburger {
    display: none;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.2);
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 6px;
    z-index: 1002;
    transition: var(--transition-fast);
}

.hamburger .line {
    width: 22px;
    height: 2px;
    background: white;
    transition: var(--transition-fast);
    transform-origin: center;
}

.hamburger:hover {
    border-color: var(--accent-primary);
}

.hamburger.active .line-1 {
    transform: translateY(8px) rotate(45deg);
    background: var(--accent-primary);
}

.hamburger.active .line-2 {
    opacity: 0;
}

.hamburger.active .line-3 {
    transform: translateY(-8px) rotate(-45deg);
    background: var(--accent-primary);
}

/* Mobile Menu Overlay */
.mobile-menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: var(--bg-base);
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.5s ease, visibility 0.5s ease;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 5%;
}

.mobile-menu-overlay.active {
    opacity: 1;
    visibility: visible;
}

.mobile-nav-list {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.mobile-nav-list li {
    overflow: hidden;
}

.mobile-nav-list a {
    font-family: var(--font-head);
    font-size: 3rem;
    text-transform: uppercase;
    color: transparent;
    -webkit-text-stroke: 1px rgba(255, 255, 255, 0.5);
    display: block;
    transform: translateY(100%);
    transition: var(--transition-slow);
}

.mobile-menu-overlay.active .mobile-nav-list a {
    transform: translateY(0);
    color: white;
    -webkit-text-stroke: 0px;
}

.mobile-nav-list a:hover {
    color: var(--accent-primary);
    padding-left: 20px;
}

/* Stagger mobile links */
.mobile-menu-overlay.active .mobile-nav-list li:nth-child(1) a {
    transition-delay: 0.1s;
}

.mobile-menu-overlay.active .mobile-nav-list li:nth-child(2) a {
    transition-delay: 0.2s;
}

.mobile-menu-overlay.active .mobile-nav-list li:nth-child(3) a {
    transition-delay: 0.3s;
}

.mobile-menu-overlay.active .mobile-nav-list li:nth-child(4) a {
    transition-delay: 0.4s;
}

/* Responsive Header Rules */
@media (max-width: 992px) {

    .desktop-nav,
    .btn-header {
        display: none;
    }

    .hamburger {
        display: flex;
    }
}

/* ==========================================================================
   Layout & Sections
   ========================================================================== */
section {
    padding: 120px 5%;
    position: relative;
}

.container {
    max-width: 1400px;
    margin: 0 auto;
    position: relative;
}

.grid-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
}

/* Scroll Reveals */
.reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: var(--transition-slow);
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

/* Hero Section */
.hero {
    height: 100vh;
    display: flex;
    align-items: center;
    background: radial-gradient(circle at 80% 20%, rgba(0, 255, 136, 0.05) 0%, transparent 40%);
    overflow: hidden;
    padding-top: var(--header-height);
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
}

.hero-graphic {
    position: absolute;
    right: 5%;
    top: 50%;
    transform: translateY(-50%);
    width: 45%;
    height: 80%;
    background: url('data:image/svg+xml;utf8,<svg viewBox="0 0 200 200" xmlns="http://www.w3.org/2000/svg"><path fill="%230066ff" d="M44.7,-76.4C58.9,-69.2,71.8,-59.1,81.3,-46.3C90.8,-33.5,96.8,-18,97.1,-2.4C97.4,13.2,91.9,28.9,81.8,41.5C71.7,54.1,56.9,63.6,41.4,70.5C25.9,77.4,9.6,81.6,-6.1,82.4C-21.8,83.1,-36.8,80.4,-49.8,72.9C-62.8,65.4,-73.8,53,-81.4,38.9C-89.1,24.8,-93.3,9,-91.1,-6C-88.8,-21.1,-80,-35.3,-70.1,-47.5C-60.2,-59.7,-49.2,-69.9,-36.2,-77.8C-23.3,-85.7,-8.4,-91.3,4.4,-94.1C17.2,-97,30.5,-83.6,44.7,-76.4Z" transform="translate(100 100)"/></svg>') no-repeat center/contain;
    opacity: 0.3;
    filter: blur(30px);
    animation: morph 15s ease-in-out infinite alternate;
    z-index: 0;
}

@keyframes morph {
    0% {
        transform: translateY(-50%) scale(1) rotate(0deg);
    }

    100% {
        transform: translateY(-50%) scale(1.1) rotate(20deg);
        filter: blur(50px) hue-rotate(40deg);
    }
}

/* Marquee */
.marquee-wrapper {
    width: 100%;
    overflow: hidden;
    background: var(--bg-surface);
    padding: 30px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.02);
    border-bottom: 1px solid rgba(255, 255, 255, 0.02);
}

.marquee {
    display: flex;
    width: max-content;
    animation: scroll-left 30s linear infinite;
}

.marquee span {
    font-family: var(--font-head);
    font-size: 2.5rem;
    text-transform: uppercase;
    padding: 0 40px;
    color: var(--text-muted);
    opacity: 0.5;
}

@keyframes scroll-left {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-50%);
    }
}

/* Services Bento Grid */
.bento-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-auto-rows: 350px;
    gap: 20px;
    margin-top: 60px;
}

.bento-item {
    background: var(--bg-surface);
    border-radius: 24px;
    padding: 40px;
    border: 1px solid rgba(255, 255, 255, 0.03);
    position: relative;
    overflow: hidden;
    transition: var(--transition-fast);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
}

.bento-item::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(800px circle at var(--mouse-x) var(--mouse-y), rgba(0, 255, 136, 0.06), transparent 40%);
    opacity: 0;
    transition: opacity 0.3s;
    z-index: 0;
}

.bento-item:hover::after {
    opacity: 1;
}

.bento-item:hover {
    border-color: rgba(0, 255, 136, 0.2);
    transform: translateY(-5px);
}

.bento-content {
    position: relative;
    z-index: 1;
}

.bento-icon {
    font-size: 2.5rem;
    margin-bottom: auto;
    color: var(--accent-primary);
}

.bento-item h3 {
    font-size: 1.8rem;
    margin-bottom: 15px;
}

.bento-item p {
    color: var(--text-muted);
    font-size: 0.95rem;
}

/* Spanning logic */
.bento-item.large {
    grid-column: span 2;
}

@media (max-width: 1024px) {
    .bento-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .bento-item.large {
        grid-column: span 2;
    }
}

@media (max-width: 768px) {
    .bento-grid {
        grid-template-columns: 1fr;
    }

    .bento-item.large {
        grid-column: span 1;
    }
}

/* Calculator Section */
.calc-section {
    background: var(--bg-surface);
}

.calc-box {
    background: var(--bg-elevated);
    padding: 60px;
    border-radius: 30px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    text-align: center;
    max-width: 900px;
    margin: 0 auto;
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.5);
}

.range-slider {
    width: 100%;
    -webkit-appearance: none;
    background: #222;
    height: 4px;
    border-radius: 2px;
    outline: none;
    margin: 40px 0;
}

.range-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: var(--accent-primary);
    cursor: pointer;
    border: 4px solid var(--bg-elevated);
    box-shadow: 0 0 20px rgba(0, 255, 136, 0.5);
    transition: transform 0.2s;
}

.range-slider::-webkit-slider-thumb:hover {
    transform: scale(1.2);
}

.data-display {
    display: flex;
    justify-content: space-around;
    margin-top: 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    padding-top: 30px;
}

.data-item h4 {
    font-size: 1rem;
    color: var(--text-muted);
    margin-bottom: 10px;
}

.data-item .value {
    font-family: var(--font-head);
    font-size: 3rem;
    color: white;
}

/* Dashboard / Reports */
.dashboard-ui {
    background: var(--bg-base);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 20px;
    padding: 30px;
    position: relative;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.8);
}

.dash-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 30px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    padding-bottom: 15px;
}

.bar-track {
    width: 100%;
    height: 8px;
    background: var(--bg-elevated);
    border-radius: 4px;
    margin: 15px 0 25px;
    overflow: hidden;
}

.bar-fill {
    height: 100%;
    background: var(--accent-gradient);
    border-radius: 4px;
    width: 0%;
    transition: width 2s cubic-bezier(var(--ease-out-expo));
}

/* Testimonials */
.testi-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 50px;
}

.testi-card {
    background: var(--bg-surface);
    padding: 40px;
    border-radius: 20px;
    border-left: 2px solid var(--accent-secondary);
    position: relative;
}

.quote-mark {
    position: absolute;
    top: 20px;
    right: 30px;
    font-size: 4rem;
    font-family: serif;
    color: rgba(255, 255, 255, 0.05);
    line-height: 1;
}

/* Contact Forms */
.form-box {
    background: var(--bg-elevated);
    padding: 50px;
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.input-group {
    position: relative;
    margin-bottom: 40px;
}

.input-field {
    width: 100%;
    background: transparent;
    border: none;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
    padding: 10px 0;
    color: white;
    font-size: 1rem;
    outline: none;
    transition: var(--transition-fast);
}

.input-label {
    position: absolute;
    top: 10px;
    left: 0;
    color: var(--text-muted);
    pointer-events: none;
    transition: var(--transition-fast);
    font-size: 1rem;
}

.input-field:focus,
.input-field:valid {
    border-bottom-color: var(--accent-primary);
}

.input-field:focus~.input-label,
.input-field:valid~.input-label {
    top: -20px;
    font-size: 0.8rem;
    color: var(--accent-primary);
}

/* Live Chat Widget */
.chat-widget {
    position: fixed;
    bottom: 40px;
    right: 40px;
    width: 65px;
    height: 65px;
    background: var(--accent-gradient);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 999;
    box-shadow: 0 10px 30px rgba(0, 102, 255, 0.4);
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.chat-widget:hover {
    transform: scale(1.1) translateY(-10px);
}

.chat-widget svg {
    width: 30px;
    height: 30px;
    fill: white;
}

/* ==========================================================================
   Strict Footer Consistency
   ========================================================================== */
footer {
    background: var(--bg-surface);
    padding: 100px 5% 40px;
    border-top: 1px solid rgba(255, 255, 255, 0.02);
}

.footer-wrapper {
    max-width: 1400px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 60px;
    margin-bottom: 80px;
}

.footer-brand p {
    color: var(--text-muted);
    margin-top: 25px;
    max-width: 350px;
    font-size: 0.95rem;
}

.footer-col h4 {
    color: white;
    margin-bottom: 30px;
    font-size: 1.2rem;
    letter-spacing: 1px;
}

.footer-col ul li {
    margin-bottom: 15px;
}

.footer-col ul a,
.footer-col ul span {
    color: var(--text-muted);
    font-size: 0.95rem;
    transition: var(--transition-fast);
}

.footer-col ul a:hover {
    color: var(--accent-primary);
    padding-left: 8px;
}

.footer-bottom {
    max-width: 1400px;
    margin: 0 auto;
    padding-top: 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: var(--text-muted);
    font-size: 0.85rem;
}

.footer-legal-links a {
    margin-left: 25px;
    transition: color 0.3s;
}

.footer-legal-links a:hover {
    color: white;
}

/* Legal Pages Specific */
.legal-header-pad {
    height: 35vh;
    min-height: 350px;
    display: flex;
    align-items: flex-end;
    padding-bottom: 60px;
    background: var(--bg-surface);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.legal-body {
    max-width: 900px;
    margin: 0 auto;
    padding: 80px 5%;
}

.legal-body h2 {
    margin: 50px 0 20px;
    color: white;
    font-size: 1.8rem;
}

.legal-body p {
    margin-bottom: 25px;
    color: var(--text-muted);
    font-size: 1.1rem;
}

/* Responsive Adjustments */
@media (max-width: 992px) {

    .grid-2,
    .footer-wrapper {
        grid-template-columns: 1fr;
        gap: 50px;
    }

    .hero-graphic {
        width: 100%;
        right: 0;
        opacity: 0.1;
    }

    .display-title {
        font-size: 3.5rem;
    }
}

@media (max-width: 480px) {
    .data-display {
        flex-direction: column;
        gap: 30px;
    }

    .calc-box {
        padding: 40px 20px;
    }

    .chat-widget {
        bottom: 20px;
        right: 20px;
        width: 50px;
        height: 50px;
    }
}