/* 
====================================================================
   THEME: NEON CARBON (Version 2.0)
   CONCEPT: High-Voltage Software Experiences
   AUTHOR: VDub Software
==================================================================== 
*/

:root {
    /* Brand Colors */
    --brand-primary: #CCFF00;
    /* Neon Lime */
    --brand-secondary: #00F0FF;
    /* Cyber Cyan */
    --brand-accent: #FF003C;
    /* Glitch Red */

    /* Base Colors */
    --bg-deep: #050505;
    /* Pure Black/Carbon */
    --bg-surface: #0F0F0F;
    /* Off-Black */
    --bg-glass: rgba(20, 20, 20, 0.6);

    /* Typography Colors */
    --text-white: #FFFFFF;
    --text-grey: #888888;
    --text-dark: #000000;

    /* UI Elements */
    --border-dim: rgba(255, 255, 255, 0.08);
    --border-highlight: rgba(204, 255, 0, 0.3);
    --glow-primary: 0 0 20px rgba(204, 255, 0, 0.15);

    /* Spacing & Layout */
    --header-height: 90px;
    --container-max: 1320px;
    --radius-sm: 4px;
    --radius-lg: 24px;

    /* Animation */
    --ease-elastic: cubic-bezier(0.19, 1, 0.22, 1);
    --ease-smooth: cubic-bezier(0.65, 0, 0.35, 1);
}

/* ================= RESET & BASE ================= */

*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
    background-color: var(--bg-deep);
}

body {
    font-family: 'Outfit', sans-serif;
    color: var(--text-white);
    background-color: var(--bg-deep);
    overflow-x: hidden;
    line-height: 1.6;
    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)' opacity='0.03'/%3E%3C/svg%3E");
}

/* Typography */
h1,
h2,
h3,
h4,
h5,
h6 {
    font-weight: 700;
    letter-spacing: -0.03em;
    color: var(--text-white);
    line-height: 1.1;
}

h1 {
    font-size: clamp(3.5rem, 8vw, 6rem);
    text-transform: uppercase;
}

h2 {
    font-size: clamp(2rem, 5vw, 3.5rem);
}

h3 {
    font-size: 1.5rem;
}

p {
    color: var(--text-grey);
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
}

a {
    text-decoration: none;
    color: inherit;
    transition: 0.3s;
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    display: block;
}

/* ================= 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(--brand-primary);
}

.cursor-outline {
    width: 40px;
    height: 40px;
    border: 1px solid var(--brand-primary);
    transition: width 0.2s, height 0.2s, background-color 0.2s;
}

body:hover .cursor-outline.hovered {
    width: 60px;
    height: 60px;
    background-color: rgba(204, 255, 0, 0.1);
    border-color: transparent;
}

/* ================= UTILITIES ================= */

.container {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 24px;
}

.section-padding {
    padding: 120px 0;
}

.text-center {
    text-align: center;
}

.text-lime {
    color: var(--brand-primary);
}

.uppercase {
    text-transform: uppercase;
    letter-spacing: 0.1em;
    font-size: 0.9rem;
    font-weight: 600;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 16px 40px;
    font-weight: 600;
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    position: relative;
    overflow: hidden;
    transition: 0.4s var(--ease-elastic);
    border: none;
    z-index: 1;
}

/* Button Variation: Neon Fill */
.btn-neon {
    background: var(--brand-primary);
    color: var(--text-dark);
}

.btn-neon::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--text-white);
    transform: translateX(-100%) skewX(-15deg);
    transition: 0.4s var(--ease-smooth);
    z-index: -1;
}

.btn-neon:hover::before {
    transform: translateX(0) skewX(0);
}

/* Button Variation: Outline */
.btn-outline {
    border: 1px solid var(--border-dim);
    background: transparent;
    color: var(--text-white);
}

.btn-outline:hover {
    border-color: var(--brand-primary);
    color: var(--brand-primary);
    box-shadow: var(--glow-primary);
}

/* ================= HEADER ================= */

.site-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: var(--header-height);
    z-index: 1000;
    transition: 0.4s;
    border-bottom: 1px solid transparent;
}

.site-header.scrolled {
    background: rgba(5, 5, 5, 0.85);
    backdrop-filter: blur(15px);
    border-bottom: 1px solid var(--border-dim);
    height: 70px;
}

.navbar {
    height: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo-container img {
    height: 50px;
    filter: invert(1);
}

.nav-menu {
    display: flex;
    gap: 40px;
}

.nav-link {
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--text-grey);
    position: relative;
}

.nav-link:hover,
.nav-link.active {
    color: var(--text-white);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 1px;
    background: var(--brand-primary);
    transition: 0.3s var(--ease-elastic);
}

.nav-link:hover::after {
    width: 100%;
}

.mobile-toggle {
    display: none;
    font-size: 1.5rem;
    color: var(--text-white);
}

/* ================= HERO SECTION ================= */

.hero-wrap {
    min-height: 100vh;
    padding-top: var(--header-height);
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
}

.hero-bg-anim {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    opacity: 0.4;
    background: radial-gradient(circle at 50% 50%, rgba(204, 255, 0, 0.05), transparent 60%);
}

.hero-grid {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 60px;
    position: relative;
    z-index: 2;
    align-items: center;
}

.hero-content h1 span {
    display: block;
    color: transparent;
    -webkit-text-stroke: 1px var(--text-white);
}

.hero-content h1 .highlight {
    color: var(--brand-primary);
    -webkit-text-stroke: 0;
}

.hero-stats {
    display: flex;
    gap: 40px;
    margin: 40px 0;
    border-top: 1px solid var(--border-dim);
    padding-top: 20px;
}

.stat-item strong {
    display: block;
    font-size: 2rem;
    color: var(--text-white);
}

.stat-item span {
    font-size: 0.8rem;
    text-transform: uppercase;
    color: var(--text-grey);
}

.hero-visual {
    position: relative;
}

.hologram-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border-dim);
    backdrop-filter: blur(10px);
    border-radius: var(--radius-lg);
    padding: 30px;
    position: relative;
    transform: perspective(1000px) rotateY(-10deg) rotateX(5deg);
    transition: 0.5s;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
}

.hologram-card:hover {
    transform: perspective(1000px) rotateY(0) rotateX(0);
    border-color: var(--brand-primary);
}

.graph-line {
    height: 100px;
    width: 100%;
    background: linear-gradient(90deg, transparent, var(--brand-primary));
    opacity: 0.2;
    margin-top: 20px;
    position: relative;
}

.graph-line::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background: var(--brand-primary);
}

/* ================= MARQUEE TEXT ================= */

.marquee-section {
    padding: 60px 0;
    background: var(--brand-primary);
    transform: rotate(-2deg) scale(1.05);
    overflow: hidden;
    margin: 50px 0;
}

.marquee-content {
    display: flex;
    gap: 40px;
    animation: marquee 10s linear infinite;
    width: max-content;
}

.marquee-item {
    font-size: 3rem;
    font-weight: 800;
    color: var(--text-dark);
    text-transform: uppercase;
}

@keyframes marquee {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-50%);
    }
}

/* ================= SERVICES (BENTO GRID) ================= */

.bento-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-template-rows: repeat(2, 350px);
    gap: 24px;
    margin-top: 50px;
}

.bento-card {
    background: var(--bg-surface);
    border: 1px solid var(--border-dim);
    padding: 40px;
    border-radius: var(--radius-lg);
    position: relative;
    transition: 0.4s;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.bento-card:hover {
    border-color: var(--brand-primary);
    transform: translateY(-5px);
}

/* Span classes for grid layout */
.span-2 {
    grid-column: span 2;
}

.span-1 {
    grid-column: span 1;
}

.card-icon {
    font-size: 2.5rem;
    color: var(--brand-primary);
    margin-bottom: 20px;
}

.bento-card h3 {
    font-size: 1.8rem;
    margin-bottom: 10px;
}

.bento-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(180deg, transparent 0%, rgba(0, 0, 0, 0.8) 100%);
    pointer-events: none;
}

/* ================= GROWTH CALCULATOR ================= */

.calc-section {
    background: #0a0a0a;
    position: relative;
}

.calc-ui {
    background: var(--bg-surface);
    border: 1px solid var(--border-dim);
    border-radius: var(--radius-lg);
    padding: 50px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
}

.range-wrap {
    margin-bottom: 40px;
}

.range-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 15px;
}

input[type=range] {
    width: 100%;
    height: 4px;
    background: #333;
    appearance: none;
    border-radius: 2px;
}

input[type=range]::-webkit-slider-thumb {
    appearance: none;
    width: 20px;
    height: 20px;
    background: var(--brand-primary);
    border-radius: 50%;
    cursor: none;
    /* Uses custom cursor */
    box-shadow: 0 0 10px var(--brand-primary);
}

.calc-display {
    background: black;
    border: 1px solid var(--border-dim);
    border-radius: var(--radius-lg);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.calc-display::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: conic-gradient(transparent, var(--brand-primary), transparent 30%);
    animation: rotate 4s linear infinite;
    opacity: 0.1;
}

@keyframes rotate {
    100% {
        transform: rotate(360deg);
    }
}

.result-val {
    font-size: 4rem;
    font-weight: 700;
    color: var(--text-white);
    position: relative;
    z-index: 2;
}

/* ================= CONTACT PAGE ================= */

.contact-split {
    display: grid;
    grid-template-columns: 0.8fr 1.2fr;
    gap: 0;
    min-height: 80vh;
    border: 1px solid var(--border-dim);
    border-radius: var(--radius-lg);
    overflow: hidden;
    margin-top: 50px;
}

.contact-info {
    background: var(--bg-surface);
    padding: 60px;
    border-right: 1px solid var(--border-dim);
}

.contact-form-wrap {
    background: black;
    padding: 60px;
}

.contact-detail {
    margin-bottom: 40px;
}

.contact-detail h5 {
    color: var(--brand-primary);
    margin-bottom: 10px;
    font-size: 0.9rem;
    text-transform: uppercase;
}

.form-field {
    width: 100%;
    background: transparent;
    border: none;
    border-bottom: 1px solid var(--border-dim);
    padding: 20px 0;
    color: var(--text-white);
    font-size: 1.1rem;
    font-family: inherit;
    transition: 0.3s;
    margin-bottom: 30px;
}

.form-field:focus {
    outline: none;
    border-color: var(--brand-primary);
}

/* ================= LEGAL PAGES ================= */

.legal-grid {
    display: grid;
    grid-template-columns: 250px 1fr;
    gap: 80px;
}

.legal-nav {
    position: sticky;
    top: 120px;
    border-left: 1px solid var(--border-dim);
}

.legal-nav a {
    display: block;
    padding: 15px 25px;
    color: var(--text-grey);
    font-size: 0.95rem;
}

.legal-nav a.active {
    color: var(--brand-primary);
    border-left: 2px solid var(--brand-primary);
    background: linear-gradient(90deg, rgba(204, 255, 0, 0.05), transparent);
}

.legal-body {
    font-size: 1.05rem;
    color: #bbb;
}

.legal-body h2 {
    color: var(--text-white);
    margin-top: 40px;
    margin-bottom: 20px;
    font-size: 1.8rem;
}

.legal-body ul {
    list-style: square;
    padding-left: 20px;
    margin-bottom: 20px;
    color: var(--brand-primary);
}

.legal-body ul li span {
    color: #bbb;
}

/* ================= FOOTER ================= */

.main-footer {
    border-top: 1px solid var(--border-dim);
    padding: 80px 0 30px;
    background: #020202;
    margin-top: 100px;
}

.footer-top {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 40px;
    margin-bottom: 60px;
}

.footer-logo {
    filter: invert(1);
    margin-bottom: 25px;
    display: inline-block;
}

.footer-link {
    display: block;
    color: var(--text-grey);
    margin-bottom: 15px;
    transition: 0.2s;
}

.footer-link:hover {
    color: var(--brand-primary);
    transform: translateX(5px);
}

.footer-btm {
    display: flex;
    justify-content: space-between;
    padding-top: 30px;
    border-top: 1px solid var(--border-dim);
    font-size: 0.9rem;
    color: #555;
}

/* ================= RESPONSIVE ================= */

@media (max-width: 1024px) {
    .hero-grid {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .hero-stats {
        justify-content: center;
    }

    .hero-visual {
        display: none;
    }

    .bento-grid {
        grid-template-columns: 1fr;
        grid-template-rows: auto;
    }

    .span-2 {
        grid-column: span 1;
    }

    .calc-ui {
        grid-template-columns: 1fr;
    }

    .contact-split {
        grid-template-columns: 1fr;
    }

    .contact-info {
        border-right: none;
        border-bottom: 1px solid var(--border-dim);
    }
}

@media (max-width: 768px) {
    .nav-menu {
        display: none;
    }

    .mobile-toggle {
        display: block;
    }

    .nav-menu.active {
        display: flex;
        flex-direction: column;
        position: absolute;
        top: var(--header-height);
        left: 0;
        width: 100%;
        background: black;
        padding: 30px;
        border-bottom: 1px solid var(--border-dim);
    }

    .footer-top {
        grid-template-columns: 1fr 1fr;
    }

    .legal-grid {
        grid-template-columns: 1fr;
    }

    .legal-nav {
        display: none;
    }

    /* Disable custom cursor on touch devices */
    .cursor-dot,
    .cursor-outline {
        display: none;
    }

    *,
    *::before,
    *::after {
        cursor: auto;
    }
}

@media (max-width: 480px) {
    .footer-top {
        grid-template-columns: 1fr;
    }

    .footer-btm {
        flex-direction: column;
        gap: 15px;
        text-align: center;
    }
}