/* =========================================
   1. VARIABLES & RESET
   ========================================= */
:root {
    /* Theme Colors: Cyber Emerald */
    --c-black: #050505;
    --c-dark-gray: #0f1115;
    --c-gray: #1f2229;
    --c-border: #2d313a;

    --c-brand: #00dc82;
    /* Neon Emerald */
    --c-brand-glow: rgba(0, 220, 130, 0.4);
    --c-accent: #00b4d8;
    /* Cyan */

    --c-text-main: #ffffff;
    --c-text-muted: #8890a0;

    /* Layout & Spacing */
    --container-max: 1300px;
    --header-h: 90px;
    --ease-out: cubic-bezier(0.215, 0.61, 0.355, 1);

    /* Effects */
    --glass: rgba(15, 17, 21, 0.7);
    --blur: blur(16px);
    --shadow-glow: 0 0 30px var(--c-brand-glow);
}

*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
    cursor: none;
    /* Custom cursor implementation */
}

body {
    background-color: var(--c-black);
    color: var(--c-text-main);
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.6;
    overflow-x: hidden;
    position: relative;
}

/* Background Grid Pattern */
body::before {
    content: "";
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image:
        linear-gradient(var(--c-border) 1px, transparent 1px),
        linear-gradient(90deg, var(--c-border) 1px, transparent 1px);
    background-size: 100px 100px;
    background-position: center;
    opacity: 0.1;
    z-index: -1;
    pointer-events: none;
}

h1,
h2,
h3,
h4,
h5 {
    font-weight: 700;
    letter-spacing: -0.03em;
    line-height: 1.1;
    color: var(--c-text-main);
}

p {
    color: var(--c-text-muted);
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
}

a {
    text-decoration: none;
    color: inherit;
    transition: 0.3s;
    cursor: none;
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    display: block;
}

/* =========================================
   2. CUSTOM CURSOR
   ========================================= */
.cursor-dot,
.cursor-outline {
    position: fixed;
    top: 0;
    left: 0;
    transform: translate(-50%, -50%);
    border-radius: 50%;
    z-index: 9999;
    pointer-events: none;
}

.cursor-dot {
    width: 8px;
    height: 8px;
    background-color: var(--c-brand);
}

.cursor-outline {
    width: 40px;
    height: 40px;
    border: 1px solid var(--c-brand);
    transition: width 0.2s, height 0.2s, background-color 0.2s;
}

body:hover .cursor-outline {
    opacity: 1;
}

/* Hover state for links */
body.hovering-link .cursor-outline {
    width: 60px;
    height: 60px;
    background-color: rgba(0, 220, 130, 0.1);
    border-color: transparent;
}

/* =========================================
   3. COMPONENTS
   ========================================= */
.container {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 2rem;
}

.section-padding {
    padding: 8rem 0;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 1rem 2.5rem;
    background: var(--c-brand);
    color: var(--c-black);
    font-weight: 600;
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    position: relative;
    overflow: hidden;
    clip-path: polygon(10px 0, 100% 0, 100% calc(100% - 10px), calc(100% - 10px) 100%, 0 100%, 0 10px);
    transition: transform 0.3s ease;
}

.btn::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
    transition: 0.5s;
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 0 20px var(--c-brand-glow);
}

.btn:hover::after {
    left: 100%;
}

.btn-secondary {
    background: transparent;
    border: 1px solid var(--c-brand);
    color: var(--c-brand);
}

.btn-secondary:hover {
    background: var(--c-brand);
    color: var(--c-black);
}

/* Titles */
.section-title {
    font-size: 3rem;
    margin-bottom: 1.5rem;
}

.section-subtitle {
    color: var(--c-brand);
    font-family: monospace;
    text-transform: uppercase;
    margin-bottom: 1rem;
    display: block;
}

/* =========================================
   4. HEADER
   ========================================= */
.site-header {
    position: fixed;
    top: 0;
    width: 100%;
    height: var(--header-h);
    z-index: 1000;
    background: rgba(5, 5, 5, 0.6);
    backdrop-filter: var(--blur);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    display: flex;
    align-items: center;
    transition: height 0.3s ease;
}

.site-header.scrolled {
    height: 70px;
    background: rgba(5, 5, 5, 0.9);
}

.nav-wrapper {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

.logo img {
    height: 45px;
    filter: brightness(0) invert(1);
}

.nav-links {
    display: flex;
    gap: 3rem;
}

.nav-links a {
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    position: relative;
    opacity: 0.7;
}

.nav-links a:hover,
.nav-links a.active {
    opacity: 1;
    color: var(--c-brand);
}

.nav-links a::before {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0%;
    height: 1px;
    background: var(--c-brand);
    transition: 0.3s;
}

.nav-links a:hover::before {
    width: 100%;
}

.burger-menu {
    display: none;
    flex-direction: column;
    gap: 6px;
    cursor: none;
}

.burger-menu span {
    width: 30px;
    height: 2px;
    background-color: white;
}

/* =========================================
   5. HERO SECTION
   ========================================= */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    padding-top: var(--header-h);
    overflow: hidden;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
}

.hero h1 {
    font-size: 5rem;
    margin-bottom: 2rem;
    line-height: 1;
}

.hero h1 span {
    color: transparent;
    -webkit-text-stroke: 1px var(--c-brand);
    position: relative;
}

.hero-visual {
    position: absolute;
    right: -10%;
    top: 50%;
    transform: translateY(-50%);
    width: 50%;
    height: 70%;
    background: radial-gradient(circle, var(--c-brand-glow) 0%, transparent 60%);
    z-index: 1;
    opacity: 0.3;
    filter: blur(80px);
}

/* Marquee Scroller */
.marquee-strip {
    background: var(--c-brand);
    color: var(--c-black);
    padding: 1rem 0;
    overflow: hidden;
    white-space: nowrap;
    position: relative;
    transform: rotate(-2deg) scale(1.05);
    margin: 4rem 0;
    border-top: 2px solid white;
    border-bottom: 2px solid white;
}

.marquee-content {
    display: inline-block;
    animation: marquee 20s linear infinite;
    font-weight: 800;
    font-size: 1.5rem;
    text-transform: uppercase;
}

@keyframes marquee {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-50%);
    }
}

/* =========================================
   6. SERVICES (BENTO GRID)
   ========================================= */
.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-template-rows: repeat(2, 300px);
    gap: 1.5rem;
    margin-top: 3rem;
}

.bento-card {
    background: var(--c-dark-gray);
    border: 1px solid var(--c-border);
    padding: 2rem;
    position: relative;
    transition: 0.4s var(--ease-out);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.bento-card:hover {
    border-color: var(--c-brand);
    transform: translateY(-5px);
    box-shadow: 0 10px 40px -10px rgba(0, 0, 0, 0.5);
}

.bento-card.large {
    grid-column: span 2;
}

.bento-icon {
    font-size: 2rem;
    color: var(--c-brand);
    margin-bottom: 1rem;
}

.bento-bg-icon {
    position: absolute;
    bottom: -20px;
    right: -20px;
    font-size: 8rem;
    opacity: 0.05;
    transition: 0.4s;
}

.bento-card:hover .bento-bg-icon {
    transform: scale(1.1) rotate(-10deg);
    opacity: 0.1;
}

/* =========================================
   7. INTERACTIVE HUD (CALCULATOR)
   ========================================= */
.hud-section {
    background: #08090b;
    border-top: 1px solid var(--c-border);
    border-bottom: 1px solid var(--c-border);
    position: relative;
}

.hud-interface {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--c-border);
    padding: 3rem;
    margin-top: 2rem;
    position: relative;
}

/* Decorative HUD corners */
.hud-corner {
    position: absolute;
    width: 20px;
    height: 20px;
    border: 2px solid var(--c-brand);
    transition: 0.3s;
}

.tl {
    top: -1px;
    left: -1px;
    border-bottom: 0;
    border-right: 0;
}

.tr {
    top: -1px;
    right: -1px;
    border-bottom: 0;
    border-left: 0;
}

.bl {
    bottom: -1px;
    left: -1px;
    border-top: 0;
    border-right: 0;
}

.br {
    bottom: -1px;
    right: -1px;
    border-top: 0;
    border-left: 0;
}

.slider-group {
    margin-bottom: 2.5rem;
}

.slider-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 1rem;
    font-family: monospace;
}

.range-input {
    width: 100%;
    -webkit-appearance: none;
    background: var(--c-gray);
    height: 4px;
    outline: none;
}

.range-input::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 20px;
    height: 20px;
    background: var(--c-brand);
    cursor: none;
    box-shadow: 0 0 10px var(--c-brand);
}

.hud-display {
    display: flex;
    flex-direction: column;
    justify-content: center;
    text-align: right;
}

.data-row {
    margin-bottom: 2rem;
}

.data-label {
    font-size: 0.9rem;
    text-transform: uppercase;
    color: var(--c-text-muted);
    letter-spacing: 2px;
}

.data-value {
    font-size: 3.5rem;
    font-weight: 700;
    color: var(--c-text-main);
    font-family: monospace;
}

.data-value span {
    color: var(--c-brand);
}

/* =========================================
   8. SAMPLE REPORT (Campaign)
   ========================================= */
.report-container {
    background: linear-gradient(180deg, var(--c-dark-gray), var(--c-black));
    border: 1px solid var(--c-border);
    padding: 2rem;
    border-radius: 8px;
    margin-top: 2rem;
}

.chart-wrapper {
    display: flex;
    align-items: flex-end;
    justify-content: space-around;
    height: 200px;
    border-bottom: 1px solid var(--c-border);
    padding-bottom: 10px;
    gap: 10px;
}

.chart-bar {
    width: 100%;
    background: var(--c-gray);
    position: relative;
    transition: height 1.5s cubic-bezier(0.165, 0.84, 0.44, 1);
    height: 0;
    opacity: 0.5;
}

.chart-bar:hover {
    background: var(--c-brand);
    opacity: 1;
    box-shadow: 0 0 15px var(--c-brand-glow);
}

.chart-bar::before {
    content: attr(data-label);
    position: absolute;
    bottom: -30px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 0.8rem;
    color: var(--c-text-muted);
}

/* =========================================
   9. CONTACT FORM & LEGAL
   ========================================= */
.form-wrap {
    background: var(--c-dark-gray);
    padding: 3rem;
    border: 1px solid var(--c-border);
}

.input-group {
    position: relative;
    margin-bottom: 2rem;
}

.input-field {
    width: 100%;
    background: transparent;
    border: none;
    border-bottom: 2px solid var(--c-border);
    padding: 1rem 0;
    color: white;
    font-size: 1.1rem;
    outline: none;
    transition: 0.3s;
}

.input-field:focus {
    border-color: var(--c-brand);
}

.input-label {
    position: absolute;
    top: 1rem;
    left: 0;
    color: var(--c-text-muted);
    pointer-events: none;
    transition: 0.3s;
}

.input-field:focus~.input-label,
.input-field:valid~.input-label {
    top: -10px;
    font-size: 0.8rem;
    color: var(--c-brand);
}

/* Legal Page Specifics */
.legal-body {
    max-width: 800px;
    margin: 0 auto;
    background: var(--c-dark-gray);
    padding: 4rem;
    border: 1px solid var(--c-border);
}

.legal-body h3 {
    color: var(--c-brand);
    margin-top: 2rem;
    margin-bottom: 1rem;
}

/* =========================================
   10. FOOTER
   ========================================= */
.site-footer {
    background: #020202;
    border-top: 1px solid var(--c-border);
    padding-top: 5rem;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 3rem;
    padding-bottom: 3rem;
}

.footer-brand p {
    margin-top: 1rem;
    max-width: 300px;
    font-size: 0.9rem;
}

.footer-links h4 {
    color: white;
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
}

.footer-links li {
    margin-bottom: 0.8rem;
}

.footer-links a:hover {
    color: var(--c-brand);
    padding-left: 5px;
}

.footer-bottom {
    border-top: 1px solid var(--c-border);
    padding: 2rem 0;
    text-align: center;
    font-size: 0.9rem;
    color: var(--c-text-muted);
}

/* =========================================
   11. RESPONSIVE
   ========================================= */
@media (max-width: 992px) {
    .services-grid {
        grid-template-columns: 1fr 1fr;
    }

    .hero h1 {
        font-size: 3.5rem;
    }

    .hud-interface {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 768px) {
    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        height: 100vh;
        width: 100%;
        background: black;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        transition: 0.4s;
    }

    .nav-links.active {
        right: 0;
    }

    .burger-menu {
        display: flex;
        z-index: 1001;
    }

    .services-grid {
        grid-template-columns: 1fr;
    }

    .bento-card.large {
        grid-column: auto;
    }

    .footer-grid {
        grid-template-columns: 1fr;
    }

    .hero-visual {
        display: none;
    }

    /* Hide custom cursor on mobile */
    .cursor-dot,
    .cursor-outline {
        display: none;
    }

    html {
        cursor: auto;
    }

    a {
        cursor: pointer;
    }
}