/* ROOT VARIABLES - OBSIDIAN BLACK & ACID GREEN */
:root {
    --bg-black: #030303;
    --bg-surface: #0a0a0a;
    --text-main: #f5f5f7;
    --text-muted: #86868b;
    --accent: #CCFF00;
    /* Acid Green (High Contrast/Risk) */
    --accent-glow: rgba(204, 255, 0, 0.15);
    --raw-border: rgba(255, 255, 255, 0.12);
}

/* BASE STYLES */
html,
body {
    background-color: var(--bg-black);
    color: var(--text-main);
    font-family: 'Inter', sans-serif;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    max-width: 100%;
    overflow-x: hidden;
    position: relative;
    scroll-behavior: smooth;
}

/* OVERRIDE BOOTSTRAP DEFAULT COLORS TO KILL BLUE TINT (Halation) */
.text-secondary {
    color: var(--text-muted) !important;
}

.text-white {
    color: var(--text-main) !important;
}

a {
    color: inherit;
    text-decoration: none;
}

a:hover {
    color: var(--accent);
}

.font-space {
    font-family: 'Space Grotesk', sans-serif;
}

.tracking-widest {
    letter-spacing: 0.25em;
}

.line-height-tight {
    line-height: 1.1;
}

.max-w-prose {
    max-width: 65ch;
}

/* UX Audit: Typography limit */

.transition-colors {
    transition: color 0.3s ease, background 0.3s ease, border-color 0.3s ease;
}

.hover-text-accent:hover {
    color: var(--accent) !important;
}

/* CUSTOM UTILITIES */
.text-accent {
    color: var(--accent) !important;
}

.bg-black {
    background-color: var(--bg-black) !important;
}

.fs-sm {
    font-size: 0.85rem;
}

/* DESTRUCTION OF GLASS TRAP: Solid Surfacing > Blurred Mists */
.bg-solid {
    background: var(--bg-surface);
    border: 1px solid var(--raw-border);
}

.border-raw {
    border: 1px solid var(--raw-border);
}

.border-accent {
    border: 1px solid var(--accent);
}

/* EXTREME GEOMETRY (ANTI-ROUNDED) */
.sharp-edge {
    border-radius: 0 !important;
}

.minimal-edge {
    border-radius: 4px !important;
}

/* TEXT GRADIENT (Subtle but sharp) */
.text-gradient-animate {
    background: linear-gradient(135deg, #ffffff 10%, var(--accent) 50%, #ffffff 90%);
    background-size: 200% auto;
    color: #fff;
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: shine 4s linear infinite;
}

@keyframes shine {
    to {
        background-position: 200% center;
    }
}

/* GRID BACKGROUND (Grain/Sharp aesthetic over soft glow) */
.bg-grid {
    background-image:
        linear-gradient(rgba(204, 255, 0, 0.02) 1px, transparent 1px),
        linear-gradient(90deg, rgba(204, 255, 0, 0.02) 1px, transparent 1px);
    background-size: 40px 40px;
    background-position: center top;
}

/* Respect users who prefer reduced motion */
@media (prefers-reduced-motion: reduce) {
    .fade-up-element, .gs-timeline-step, .iso-screen, .iso-screen-header, .iso-screen-body {
        animation: none !important;
        transition: none !important;
    }
}


/* BUTTONS WITH HARSH 3D BRUTALIST SHADOW */
.btn-accent {
    background-color: var(--accent);
    color: #000;
    border: none;
    box-shadow: 4px 4px 0px rgba(255, 255, 255, 0.2);
    border-radius: 0;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.2s ease-out;
}

.btn-accent:hover {
    background-color: #d4ff33;
    color: #000;
    transform: translate(-3px, -3px);
    box-shadow: 7px 7px 0px rgba(255, 255, 255, 0.2);
}

.btn-accent:active {
    transform: translate(2px, 2px);
    box-shadow: 2px 2px 0px rgba(255, 255, 255, 0.2);
}

.btn-outline {
    background: transparent;
    color: var(--text-main);
    border: 1px solid var(--raw-border);
    border-radius: 0;
    transition: all 0.2s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.btn-outline:hover {
    background: var(--text-main);
    color: var(--bg-black);
}

/* TOUCH TARGET COMPLIANCE (FITTS LAW) */
.touch-target {
    min-height: 44px;
    min-width: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

/* 3D FLOATING MOCKUPS (Sharp ISO) */
.iso-wrapper {
    perspective: 1500px;
    transform-style: preserve-3d;
}

.iso-screen {
    width: 300px;
    height: 180px;
    background: var(--bg-black);
    border: 1px solid var(--accent);
    box-shadow: -20px 20px 0px rgba(204, 255, 0, 0.05);
    /* Solid harsh shadow */
    overflow: hidden;
    transform: rotateX(25deg) rotateY(-25deg) rotateZ(5deg);
}

@media (max-width: 768px) {
    .iso-screen {
        max-width: 100%;
        transform: scale(0.9) rotateX(25deg) rotateY(-25deg) rotateZ(5deg);
    }
}

.iso-screen-header {
    height: 24px;
    background: var(--bg-surface);
    border-bottom: 1px solid var(--raw-border);
    display: flex;
    align-items: center;
    padding: 0 12px;
    gap: 6px;
}

.iso-dot {
    width: 8px;
    height: 8px;
    border-radius: 0;
    background: rgba(255, 255, 255, 0.2);
}

.iso-dot.acid {
    background: var(--accent);
}

.iso-screen-body {
    padding: 15px;
    height: 100%;
}

.floating-element {
    will-change: transform;
}

/* ABSTRACT CASE BACKGROUNDS */
.abstract-case-bg-1 {
    background: repeating-linear-gradient(45deg, var(--bg-surface), var(--bg-surface) 10px, var(--bg-black) 10px, var(--bg-black) 20px);
}

.abstract-case-bg-2 {
    background: var(--bg-surface);
}

/* GALLERY / RESULT CARDS */
.result-card {
    border: 1px solid var(--raw-border);
    cursor: crosshair;
}

.glass-panel {
    background: var(--bg-black);
    /* Removed Glass blur */
    border: 1px solid var(--raw-border);
}

/* MASSIVE TITLE BRUTALISM */
.massive-title {
    font-size: clamp(3.5rem, 10vw, 8rem);
    letter-spacing: -0.05em;
    line-height: 0.95;
    text-transform: uppercase;
}

.stroke-text {
    color: transparent;
    -webkit-text-stroke: 1px var(--text-main);
    opacity: 0.5;
}

/* CONTINUOUS STREAM LAYOUT HELPER (Anti Bento) */
.stream-row {
    border-bottom: 1px solid var(--raw-border);
    transition: background 0.3s ease, padding-left 0.4s cubic-bezier(0.19, 1, 0.22, 1);
}

.stream-row:hover {
    background: rgba(204, 255, 0, 0.03);
    padding-left: 20px;
}

/* TIMELINE PROGRESS OTIMIZADO (ux_audit fixes) */
.timeline-line-progress {
    width: 2px;
    background: var(--accent);
    transform-origin: top;
    transform: scaleY(0);
    /* Optimized GPU property */
}

.timeline-dot.acid {
    background: var(--accent) !important;
    border-radius: 0 !important;
    transform: rotate(45deg);
    /* Diamond shape */
}

/* GSAP INITIAL STATES */
.fade-up-element {
    opacity: 0;
    visibility: hidden;
}

/* CUSTOM SELECTION */
::selection {
    background-color: var(--accent);
    color: #000;
}

/* =======================================================
   AWWWARDS FX LEVEL 
======================================================== */

/* Cinematic Grain / Noise Overlay */
#noise-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    pointer-events: none;
    z-index: 9999;
    opacity: 0.05;
    background-image: url('data:image/svg+xml;utf8,%3Csvg viewBox="0 0 200 200" xmlns="http://www.w3.org/2000/svg"%3E%3Cfilter id="noiseFilter"%3E%3CfeTurbulence type="fractalNoise" baseFrequency="0.85" numOctaves="3" stitchTiles="stitch"/%3E%3C/filter%3E%3Crect width="100%25" height="100%25" filter="url(%23noiseFilter)"/%3E%3C/svg%3E');
}

/* Custom GSAP Dot Cursor */
@media (pointer: fine) {

    body,
    a,
    button,
    .touch-target {
        cursor: none !important;
    }

    #custom-cursor {
        position: fixed;
        top: 0;
        left: 0;
        width: 6px;
        height: 6px;
        background-color: var(--accent);
        border-radius: 50%;
        pointer-events: none;
        z-index: 10000;
        transform: translate(-50%, -50%);
        transition: transform 0.2s ease, width 0.2s ease, height 0.2s ease, background-color 0.2s ease;
    }

    #custom-cursor-follower {
        position: fixed;
        top: 0;
        left: 0;
        width: 32px;
        height: 32px;
        border: 1px solid var(--accent);
        background-color: transparent;
        border-radius: 50%;
        pointer-events: none;
        z-index: 9999;
        transform: translate(-50%, -50%);
        opacity: 0.5;
        transition: width 0.3s ease, height 0.3s ease, opacity 0.3s ease, border-radius 0.3s ease;
    }

    /* States */
    body.hovering-link #custom-cursor {
        width: 1px;
        height: 1px;
        background-color: transparent;
    }

    body.hovering-link #custom-cursor-follower {
        width: 44px;
        height: 44px;
        border-radius: 0;
        /* Brutalism */
        background-color: rgba(204, 255, 0, 0.1);
        border: 1px solid var(--accent);
        opacity: 1;
    }
}