:root {
    --bg-color: #020204;
    --text-primary: #ffffff;
    --text-secondary: #8888aa;
    --accent: #00ffff;
    --accent-glow: rgba(0, 255, 255, 0.6);
    --glass-bg: rgba(255, 255, 255, 0.03);
    --glass-border: rgba(255, 255, 255, 0.1);
    
    --font-display: 'Syncopate', sans-serif;
    --font-tech: 'Space Grotesk', sans-serif;
    --font-body: 'Inter', sans-serif;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    cursor: none; /* Hide default cursor for custom one */
}

body {
    background-color: var(--bg-color);
    color: var(--text-primary);
    font-family: var(--font-body);
    overflow-x: hidden;
    width: 100vw;
}

/* 3D Canvas */
#world {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    pointer-events: none; /* Let clicks pass through */
}

/* Noise Overlay for texture */
.noise-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 900;
    opacity: 0.05;
    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)'/%3E%3C/svg%3E");
}

/* Custom Cursor */
.cursor-dot, .cursor-circle {
    position: fixed;
    top: 0;
    left: 0;
    border-radius: 50%;
    pointer-events: none;
    z-index: 9999;
    transform: translate(-50%, -50%);
    transition: transform 0.1s;
    mix-blend-mode: difference;
}

.cursor-dot {
    width: 8px;
    height: 8px;
    background: var(--accent);
}

.cursor-circle {
    width: 40px;
    height: 40px;
    border: 1px solid var(--accent);
    transition: width 0.3s, height 0.3s, transform 0.1s;
}

body.hovering .cursor-circle {
    width: 60px;
    height: 60px;
    background: rgba(0, 255, 255, 0.1);
    border-color: transparent;
}

/* HUD Navigation */
.hud-nav {
    position: fixed;
    top: 0;
    width: 100%;
    padding: 2rem 3rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 100;
    mix-blend-mode: exclusion;
}

.logo {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 1.5rem;
    letter-spacing: 0.2em;
}

.logo .highlight { color: var(--accent); }
.logo .version { font-size: 0.7rem; color: var(--text-secondary); opacity: 0.7; }

.menu-links a {
    color: var(--text-primary);
    text-decoration: none;
    font-family: var(--font-tech);
    margin-left: 2rem;
    text-transform: uppercase;
    font-size: 0.8rem;
    letter-spacing: 0.1em;
    position: relative;
    padding: 5px 0;
}

.menu-links a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 1px;
    background: var(--accent);
    transition: width 0.3s ease;
}

.menu-links a:hover::after {
    width: 100%;
}

/* Main Layout */
.scroll-container {
    width: 100%;
    position: relative;
    z-index: 10;
}

.scene-section {
    min-height: 100vh;
    padding: 10vh 5vw;
    display: flex;
    flex-direction: column;
    justify-content: center;
    position: relative;
}

.content-wrap {
    max-width: 800px;
    position: relative;
}

.full-width {
    max-width: 100%;
    padding: 0 5vw;
}

/* Typography & Layouts */
h1.glitch-text {
    font-family: var(--font-display);
    font-size: clamp(3rem, 10vw, 8rem);
    line-height: 0.9;
    font-weight: 700;
    color: transparent;
    -webkit-text-stroke: 2px var(--text-primary);
    position: relative;
    text-transform: uppercase;
}

h1.glitch-text::before {
    content: attr(data-text);
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    color: var(--text-primary);
    opacity: 0.8;
    clip-path: polygon(0 0, 100% 0, 100% 45%, 0 45%);
    transform: translate(-2px, -2px);
    animation: glitch-anim 3s infinite linear alternate-reverse;
}

.subtitle-block {
    margin-top: 4rem;
    display: flex;
    align-items: center;
    gap: 2rem;
}

.line {
    width: 100px;
    height: 2px;
    background: var(--accent);
}

.subtitle-block p {
    font-family: var(--font-tech);
    font-size: 1.2rem;
    color: var(--text-secondary);
}

/* Sections Alignment */
.right-align { align-items: flex-end; text-align: right; }
.left-align { align-items: flex-start; text-align: left; }
.center-align { align-items: center; text-align: center; }

/* Glass Panel */
.glass-panel {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    backdrop-filter: blur(10px);
    padding: 3rem;
    border-radius: 4px;
    transform: skewX(-5deg); /* Slight sci-fi skew */
}

.glass-panel > * {
    transform: skewX(5deg); /* Un-skew content */
}

.section-number {
    font-family: var(--font-display);
    font-size: 4rem;
    color: var(--glass-border);
    position: absolute;
    top: -2rem;
    left: -2rem;
}

.right-align .section-number {
    left: auto;
    right: -2rem;
}

h2 {
    font-family: var(--font-display);
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
    text-transform: uppercase;
}

.section-title-small {
    font-size: 1.5rem;
    letter-spacing: 0.2em;
    color: var(--text-secondary);
    margin-bottom: 4rem;
    border-bottom: 1px solid var(--glass-border);
    padding-bottom: 1rem;
    display: inline-block;
}

p {
    font-size: 1.1rem;
    line-height: 1.7;
    color: #ccc;
    max-width: 600px;
}

.tech-list {
    list-style: none;
    margin-top: 2rem;
    border-top: 1px solid var(--glass-border);
    padding-top: 1rem;
}

.tech-list li {
    font-family: var(--font-tech);
    text-transform: uppercase;
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
    letter-spacing: 0.1em;
}

.stat-grid {
    display: flex;
    gap: 3rem;
    margin-top: 2rem;
}

.stat .num {
    display: block;
    font-family: var(--font-display);
    font-size: 3rem;
    color: var(--accent);
}

.stat .label {
    font-size: 0.8rem;
    text-transform: uppercase;
    color: var(--text-secondary);
}

/* Large Text Section */
.large-text {
    font-size: 2.5rem;
    font-weight: 200;
    line-height: 1.2;
    margin-bottom: 2rem;
}

.highlight {
    color: var(--accent);
    font-weight: 500;
    text-shadow: 0 0 20px var(--accent-glow);
}

/* Giant CTA */
.cta-giant {
    display: inline-block;
    font-family: var(--font-display);
    font-size: 4rem;
    color: var(--text-primary);
    text-decoration: none;
    border: 2px solid var(--text-primary);
    padding: 1rem 4rem;
    margin-top: 2rem;
    transition: all 0.3s;
    text-transform: uppercase;
}

.cta-giant:hover {
    background: var(--accent);
    color: #000;
    border-color: var(--accent);
    box-shadow: 0 0 50px var(--accent-glow);
}

/* Contact Info Grid */
.contact-info-grid {
    display: flex;
    justify-content: center;
    gap: 4rem;
    margin: 4rem 0;
    width: 100%;
}

.contact-block {
    text-align: left;
    border-left: 2px solid var(--accent);
    padding-left: 1.5rem;
}

.contact-block .label {
    display: block;
    font-family: var(--font-display);
    font-size: 0.7rem;
    color: var(--accent);
    letter-spacing: 0.3em;
    margin-bottom: 0.5rem;
}

.contact-block .value {
    display: block;
    font-family: var(--font-tech);
    font-size: 1.1rem;
    color: var(--text-primary);
    text-decoration: none;
    line-height: 1.4;
}

.contact-block a.value:hover {
    color: var(--accent);
}

/* Clients Grid */
.client-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    width: 100%;
}

.client-item {
    font-family: var(--font-tech);
    font-weight: 700;
    font-size: 1.5rem;
    color: var(--text-secondary);
    border: 1px solid var(--glass-border);
    padding: 2rem;
    text-align: center;
    transition: all 0.3s;
    text-transform: uppercase;
    background: rgba(255,255,255,0.01);
}

.client-item:hover {
    color: var(--accent);
    border-color: var(--accent);
    background: rgba(0, 255, 255, 0.05);
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
}


/* Footer */
.main-footer {
    margin-top: 6rem;
    font-family: var(--font-tech);
    font-size: 0.8rem;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.footer-links a {
    color: var(--text-secondary);
    text-decoration: none;
    margin: 0 1rem;
    transition: color 0.3s;
}

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

/* Progress Bar */
.scroll-progress {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: rgba(255,255,255,0.1);
    z-index: 100;
}

.bar {
    height: 100%;
    background: var(--accent);
    width: 0%;
    transition: width 0.1s;
    box-shadow: 0 0 10px var(--accent);
}

/* Glitch Animation Keyframes */
@keyframes glitch-anim {
    0% { clip-path: polygon(0 2%, 100% 2%, 100% 5%, 0 5%); }
    20% { clip-path: polygon(0 15%, 100% 15%, 100% 15%, 0 15%); }
    40% { clip-path: polygon(0 10%, 100% 10%, 100% 20%, 0 20%); }
    60% { clip-path: polygon(0 1%, 100% 1%, 100% 2%, 0 2%); }
    80% { clip-path: polygon(0 33%, 100% 33%, 100% 33%, 0 33%); }
    100% { clip-path: polygon(0 44%, 100% 44%, 100% 44%, 0 44%); }
}

@media (max-width: 768px) {
    h1.glitch-text { font-size: 4rem; }
    .glass-panel { transform: none; padding: 2rem; }
    .glass-panel > * { transform: none; }
    .cursor-dot, .cursor-circle { display: none; } /* No custom cursor on mobile */
    * { cursor: auto; }
    .cta-giant { font-size: 2rem; padding: 1rem 2rem; }
}
