/* =========================================
   1. VARIABLES & RESET
   ========================================= */
:root {
    /* "Photon Night" Palette */
    --bg-color: #04040a;
    --surface-color: #0d0f1a;
    --surface-highlight: #171a2b;

    --brand-primary: #00e5ff;        /* Photon Cyan */
    --brand-secondary: #ff2d95;      /* Neon Magenta */
    --brand-white: #f9fafb;
    --brand-gray: #9aa0b3;

    --border-light: rgba(255, 255, 255, 0.08);
    --border-active: var(--brand-primary);

    /* Typography */
    --font-display: 'Syne', sans-serif;
    --font-body: 'Inter', sans-serif;

    /* Motion */
    --ease-elastic: cubic-bezier(0.175, 0.885, 0.32, 1.275);
    --ease-smooth: cubic-bezier(0.65, 0, 0.35, 1);

    /* Layout */
    --header-height: 100px;
    --container-max: 1400px;
}


*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
    background-color: var(--bg-color);
}

body {
    font-family: var(--font-body);
    background-color: var(--bg-color);
    color: var(--brand-white);
    line-height: 1.6;
    overflow-x: hidden;
    position: relative;
}

/* Noise Texture Overlay */
body::before {
    content: "";
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    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.05'/%3E%3C/svg%3E");
    pointer-events: none;
    z-index: 9999;
}

/* Custom 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(--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;
}

/* Typography */
h1,
h2,
h3,
h4,
h5 {
    font-family: var(--font-display);
    font-weight: 800;
    text-transform: uppercase;
    line-height: 0.9;
    letter-spacing: -0.02em;
}

h1 {
    font-size: clamp(3rem, 8vw, 6rem);
}

h2 {
    font-size: clamp(2rem, 5vw, 4rem);
    margin-bottom: 2rem;
}

h3 {
    font-size: 1.5rem;
    letter-spacing: 1px;
}

p {
    color: var(--brand-gray);
    margin-bottom: 1.5rem;
    max-width: 60ch;
}

.text-highlight {
    color: var(--brand-primary);
}

/* Utilities */
.container {
    width: 100%;
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 2rem;
}

.section-spacing {
    padding: 120px 0;
    border-bottom: 1px solid var(--border-light);
}

.flex-between {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.grid-col-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
}

.grid-col-3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.relative {
    position: relative;
}

/* Buttons */
.btn-wrapper {
    display: inline-block;
    position: relative;
    z-index: 1;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 1.2rem 2.5rem;
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 1rem;
    text-transform: uppercase;
    text-decoration: none;
    border: 1px solid var(--brand-white);
    color: var(--brand-white);
    background: transparent;
    transition: all 0.4s var(--ease-smooth);
    position: relative;
    overflow: hidden;
}

.btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 0%;
    height: 100%;
    background: var(--brand-primary);
    z-index: -1;
    transition: width 0.4s var(--ease-smooth);
}

.btn:hover::before {
    width: 100%;
}

.btn:hover {
    color: var(--bg-color);
    border-color: var(--brand-primary);
}

.btn-primary {
    background: var(--brand-primary);
    color: var(--bg-color);
    border-color: var(--brand-primary);
}

.btn-primary::before {
    background: var(--brand-white);
}

/* =========================================
   2. HEADER
   ========================================= */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: var(--header-height);
    z-index: 1000;
    background: rgba(5, 5, 5, 0.8);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border-light);
    display: flex;
    align-items: center;
}

.navbar {
    display: flex;
    justify-content: space-between;
    width: 100%;
    align-items: center;
}

.logo img {
    height: 50px;
    filter: invert(1);
    width: auto;
}

.nav-links {
    display: flex;
    gap: 3rem;
    list-style: none;
}

.nav-link {
    color: var(--brand-white);
    text-decoration: none;
    font-family: var(--font-display);
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    position: relative;
    padding: 10px 0;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--brand-primary);
    transition: 0.3s;
}

.nav-link:hover::after {
    width: 100%;
}

.nav-link:hover {
    color: var(--brand-primary);
}

.menu-burger {
    display: none;
    flex-direction: column;
    gap: 6px;
    padding: 10px;
}

.menu-line {
    width: 30px;
    height: 2px;
    background: var(--brand-white);
    transition: 0.3s;
}

/* Mobile Menu */
.mobile-menu-container {
    position: fixed;
    top: 0;
    right: -100%;
    width: 100%;
    height: 100vh;
    background: var(--bg-color);
    z-index: 999;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    transition: 0.5s var(--ease-smooth);
}

.mobile-menu-container.active {
    right: 0;
}

.mobile-menu-container a {
    font-family: var(--font-display);
    font-size: 3rem;
    color: var(--brand-white);
    text-decoration: none;
    margin: 1rem 0;
    transition: 0.3s;
}

.mobile-menu-container a:hover {
    color: var(--brand-primary);
    font-style: italic;
    letter-spacing: 2px;
}

/* =========================================
   3. HERO SECTION
   ========================================= */
.hero {
    padding-top: 180px;
    min-height: 100vh;
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.hero-bg-gradient {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(112, 0, 255, 0.3) 0%, rgba(5, 5, 5, 0) 70%);
    filter: blur(80px);
    z-index: -1;
    animation: pulse 5s infinite alternate;
}

.hero-content {
    z-index: 2;
    text-align: left;
}

.hero-tag {
    color: var(--brand-primary);
    font-family: var(--font-display);
    border: 1px solid var(--brand-primary);
    padding: 0.5rem 1rem;
    display: inline-block;
    margin-bottom: 2rem;
    font-size: 0.8rem;
    letter-spacing: 2px;
}

.hero h1 span {
    display: block;
    clip-path: polygon(0 0, 100% 0, 100% 100%, 0% 100%);
}

.reveal-text {
    transform: translateY(100%);
    opacity: 0;
    animation: revealUp 1s var(--ease-smooth) forwards;
}

.delay-1 {
    animation-delay: 0.2s;
}

.delay-2 {
    animation-delay: 0.4s;
}

/* Marquee */
.marquee-section {
    padding: 4rem 0;
    border-top: 1px solid var(--border-light);
    border-bottom: 1px solid var(--border-light);
    overflow: hidden;
    background: var(--surface-color);
}

.marquee-content {
    display: flex;
    width: 200%;
    animation: scrollText 20s linear infinite;
}

.marquee-item {
    font-family: var(--font-display);
    font-size: 4rem;
    font-weight: 800;
    color: transparent;
    -webkit-text-stroke: 1px var(--brand-gray);
    margin-right: 4rem;
    white-space: nowrap;
}

.marquee-item.filled {
    color: var(--brand-primary);
    -webkit-text-stroke: 0;
}

/* =========================================
   4. SERVICES (Brutalist Grid)
   ========================================= */
.services-section {
    background: var(--bg-color);
}

.b-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    border-top: 1px solid var(--border-light);
    border-left: 1px solid var(--border-light);
}

.b-card {
    padding: 4rem 2rem;
    border-right: 1px solid var(--border-light);
    border-bottom: 1px solid var(--border-light);
    transition: background 0.3s;
    position: relative;
    overflow: hidden;
    background: transparent;
}

.b-card:hover {
    background: var(--surface-highlight);
}

.b-card-num {
    font-family: var(--font-display);
    font-size: 3rem;
    color: var(--surface-highlight);
    position: absolute;
    top: 1rem;
    right: 2rem;
    transition: 0.3s;
    -webkit-text-stroke: 1px var(--border-light);
}

.b-card:hover .b-card-num {
    color: var(--brand-secondary);
    opacity: 0.5;
}

.b-card h3 {
    margin-bottom: 1rem;
    color: var(--brand-white);
}

.b-link {
    display: inline-block;
    margin-top: 2rem;
    color: var(--brand-primary);
    text-decoration: none;
    text-transform: uppercase;
    font-size: 0.8rem;
    letter-spacing: 1px;
    font-weight: 700;
}

.b-link:hover {
    text-decoration: underline;
}

/* =========================================
   5. CALCULATOR (Control Panel Style)
   ========================================= */
.calculator-panel {
    background: var(--surface-color);
    border: 1px solid var(--border-light);
    padding: 3rem;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    position: relative;
}

.panel-controls label {
    display: block;
    font-family: var(--font-display);
    text-transform: uppercase;
    font-size: 0.8rem;
    margin-bottom: 1rem;
    color: var(--brand-gray);
}

.neon-slider {
    -webkit-appearance: none;
    width: 100%;
    height: 4px;
    background: var(--surface-highlight);
    outline: none;
    margin-bottom: 3rem;
}

.neon-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 20px;
    height: 20px;
    background: var(--bg-color);
    border: 2px solid var(--brand-primary);
    cursor: none;
    /* Custom cursor handles this */
    box-shadow: 0 0 10px var(--brand-primary);
}

.panel-screen {
    background: #000;
    border: 1px solid var(--brand-gray);
    padding: 2rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    font-family: 'Courier New', monospace;
    /* Monospaced for data look */
    position: relative;
}

.screen-scanline {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, rgba(255, 255, 255, 0), rgba(255, 255, 255, 0) 50%, rgba(0, 0, 0, 0.2) 50%, rgba(0, 0, 0, 0.2));
    background-size: 100% 4px;
    pointer-events: none;
}

.calc-output {
    font-size: 4rem;
    color: var(--brand-primary);
    text-shadow: 0 0 15px rgba(204, 255, 0, 0.5);
}

/* =========================================
   6. SAMPLE REPORT (Data Grid)
   ========================================= */
.report-grid-container {
    background: var(--surface-highlight);
    padding: 2px;
    /* Border effect */
}

.data-table {
    width: 100%;
    border-collapse: collapse;
    font-family: 'Courier New', monospace;
}

.data-table th,
.data-table td {
    border: 1px solid var(--border-light);
    padding: 1.5rem;
    text-align: left;
}

.data-table th {
    color: var(--brand-gray);
    font-size: 0.8rem;
    text-transform: uppercase;
}

.data-table td {
    color: var(--brand-white);
}

.trend-up {
    color: var(--brand-primary);
}

.trend-down {
    color: #ff0055;
}

/* Visual Bar inside table */
.viz-bar-bg {
    width: 100px;
    height: 6px;
    background: var(--surface-color);
    display: inline-block;
    margin-right: 10px;
}

.viz-bar-fill {
    height: 100%;
    background: var(--brand-secondary);
}

/* =========================================
   7. CONTACT PAGE STYLES
   ========================================= */
.contact-header {
    text-align: center;
    padding-bottom: 4rem;
}

.contact-layout {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 0;
    border: 1px solid var(--border-light);
}

.contact-info-panel {
    background: var(--surface-color);
    padding: 4rem;
    border-right: 1px solid var(--border-light);
}

.info-block {
    margin-bottom: 3rem;
}

.info-block h4 {
    color: var(--brand-primary);
    margin-bottom: 0.5rem;
    font-size: 1rem;
}

.contact-form-panel {
    padding: 4rem;
    background: var(--bg-color);
}

.form-group {
    margin-bottom: 2rem;
    position: relative;
}

.form-input {
    width: 100%;
    background: transparent;
    border: none;
    border-bottom: 1px solid var(--brand-gray);
    padding: 1rem 0;
    color: var(--brand-white);
    font-family: var(--font-body);
    font-size: 1.1rem;
    transition: 0.3s;
}

.form-input:focus {
    outline: none;
    border-bottom-color: var(--brand-primary);
}

.form-input::placeholder {
    opacity: 0;
}

.floating-label {
    position: absolute;
    top: 1rem;
    left: 0;
    color: var(--brand-gray);
    pointer-events: none;
    transition: 0.3s;
    font-size: 1rem;
}

.form-input:focus~.floating-label,
.form-input:not(:placeholder-shown)~.floating-label {
    top: -10px;
    font-size: 0.8rem;
    color: var(--brand-primary);
}

/* =========================================
   8. FOOTER
   ========================================= */
.footer {
    padding: 80px 0 40px;
    border-top: 1px solid var(--border-light);
    background: var(--surface-color);
}

.footer-top {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 4rem;
    margin-bottom: 6rem;
}

.footer-logo {
    margin-bottom: 1.5rem;
    display: block;
}

.footer-desc {
    color: var(--brand-gray);
    max-width: 300px;
}

.footer-col h4 {
    font-size: 1rem;
    color: var(--brand-white);
    margin-bottom: 1.5rem;
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: 1rem;
}

.footer-links a {
    color: var(--brand-gray);
    text-decoration: none;
    transition: 0.3s;
}

.footer-links a:hover {
    color: var(--brand-primary);
    padding-left: 5px;
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 2rem;
    border-top: 1px solid var(--border-light);
    font-size: 0.9rem;
    color: var(--brand-gray);
}

.legal-links a {
    color: var(--brand-gray);
    margin-left: 1.5rem;
    text-decoration: none;
}

.legal-links a:hover {
    color: var(--brand-white);
}

/* Legal Page Content */
.legal-main {
    padding: 160px 0 100px;
    min-height: 80vh;
    max-width: 800px;
    margin: 0 auto;
}

.legal-main h1 {
    color: var(--brand-primary);
    margin-bottom: 3rem;
}

.legal-main h2 {
    color: var(--brand-white);
    margin-top: 3rem;
    font-size: 1.5rem;
}

.legal-main ul {
    margin-left: 1rem;
    color: var(--brand-gray);
    margin-bottom: 1rem;
}

/* Animations */
@keyframes pulse {
    0% {
        opacity: 0.5;
        transform: translate(-50%, -50%) scale(1);
    }

    100% {
        opacity: 0.8;
        transform: translate(-50%, -50%) scale(1.1);
    }
}

@keyframes revealUp {
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

@keyframes scrollText {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-50%);
    }
}

/* Responsive */
@media (max-width: 1024px) {
    .hero h1 {
        font-size: 4rem;
    }

    .calculator-panel {
        grid-template-columns: 1fr;
    }

    .grid-col-3 {
        grid-template-columns: 1fr;
    }

    .contact-layout {
        grid-template-columns: 1fr;
    }

    .contact-info-panel {
        border-right: none;
        border-bottom: 1px solid var(--border-light);
    }
}

@media (max-width: 768px) {

    .nav-links,
    .btn-primary.desk-only {
        display: none;
    }

    .menu-burger {
        display: flex;
    }

    .hero {
        padding-top: 140px;
    }

    .hero h1 {
        font-size: 3rem;
    }

    .footer-top {
        grid-template-columns: 1fr;
    }

    .marquee-item {
        font-size: 2.5rem;
    }

    .b-grid {
        grid-template-columns: 1fr;
    }
}