/* 
  Signature Edition: Core Theme & Physics Variables
  Designed for GPU-accelerated motion.
*/
:root {
    --bg-void: #030303;
    --text-primary: #ededed;
    --text-ghost: rgba(255, 255, 255, 0.4);
    --accent-cyber: #00ff9d;
    /* Technical Green */
    --accent-data: #4d4dff;
    /* Deep Data Blue */
    --grid-line: rgba(255, 255, 255, 0.04);

    --ease-out-expo: cubic-bezier(0.19, 1, 0.22, 1);
    --ease-in-out-circ: cubic-bezier(0.85, 0, 0.15, 1);
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    cursor: none;
    /* Custom Cursor Only */
}

body {
    background: var(--bg-void);
    color: var(--text-primary);
    font-family: 'Inter', sans-serif;
    overflow: hidden;
    /* We implement our own scroll */
    -webkit-font-smoothing: antialiased;
}

/* Cinematic Grain Overlay */
.noise-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    pointer-events: none;
    z-index: 9000;
    opacity: 0.07;
    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");
}

/* Canvas Layer for Fluid Sim */
#fluid-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: -1;
    pointer-events: none;
    opacity: 0.4;
}

/* Scroll Container for Lenis/Virtual Scroll */
.virtual-scroll-content {
    will-change: transform;
    /* Hint to browser for compositing */
}

/* Navigation - Floating HUD */
.hud-nav {
    position: fixed;
    top: 40px;
    right: 40px;
    z-index: 100;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    mix-blend-mode: difference;
}

.hud-link {
    font-family: 'JetBrains Mono', monospace;
    /* Code font */
    font-size: 12px;
    color: var(--accent-cyber);
    text-transform: uppercase;
    text-decoration: none;
    margin-bottom: 8px;
    opacity: 0.5;
    transition: all 0.3s;
    position: relative;
}

.hud-link::before {
    content: '[ ';
    opacity: 0;
    transition: opacity 0.3s;
}

.hud-link::after {
    content: ' ]';
    opacity: 0;
    transition: opacity 0.3s;
}

.hud-link:hover {
    opacity: 1;
    letter-spacing: 2px;
}

.hud-link:hover::before,
.hud-link:hover::after {
    opacity: 1;
}

/* Hero Typography - Massive & Skewable */
.hero-wrapper {
    height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 0 5vw;
    position: relative;
    border-bottom: 1px solid var(--grid-line);
}

.glitch-text {
    font-size: 13vw;
    font-weight: 900;
    line-height: 0.8;
    text-transform: uppercase;
    letter-spacing: -0.04em;
    position: relative;
    will-change: transform;
}

.role-ticker {
    font-family: 'JetBrains Mono', monospace;
    font-size: 14px;
    color: var(--text-ghost);
    margin-top: 40px;
    display: flex;
    gap: 20px;
}

/* New Content Sections */
.section-header {
    font-size: 4vw;
    font-weight: 900;
    margin-bottom: 40px;
    text-transform: uppercase;
}

.editorial-text {
    font-size: 2.5vw;
    line-height: 1.2;
    font-weight: 400;
    max-width: 80%;
    margin-bottom: 60px;
}

.grid-gallery {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-top: 100px;
}

.grid-item {
    height: 40vh;
    background-size: cover;
    background-position: center;
    border-radius: 4px;
    transition: transform 0.3s;
}

.grid-item:hover {
    transform: scale(0.98);
}

/* 3D Project Cards */
.project-section {
    padding: 20vh 5vw;
}

.project-card-3d {
    perspective: 1500px;
    /* Deep 3D space */
    margin-bottom: 30vh;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    text-decoration: none;
    /* Make card a block link */
}

.card-inner {
    width: 60vw;
    height: 70vh;
    transform-style: preserve-3d;
    transition: transform 0.1s;
    /* Instant reaction for mouse, smoothed by JS */
    position: relative;
}

.card-bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    /* Clean, high-tech abstract backgrounds */
    border-radius: 4px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
}

.card-content {
    position: absolute;
    bottom: -50px;
    left: -50px;
    transform: translateZ(80px);
    /* Floating Text */
    mix-blend-mode: difference;
}

.project-title-large {
    font-size: 6vw;
    font-weight: 900;
    color: white;
    line-height: 0.9;
    text-transform: uppercase;
}

/* Footer & Philosophy */
.philosophy-section {
    padding: 15vh 5vw;
    border-bottom: 1px solid var(--grid-line);
}

.life-section {
    padding: 15vh 5vw;
    border-bottom: 1px solid var(--grid-line);
}

.footer-section {
    padding: 15vh 5vw;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

/* Custom Cursor */
#cursor-dot,
#cursor-ring {
    position: fixed;
    top: 0;
    left: 0;
    border-radius: 50%;
    pointer-events: none;
    z-index: 9999;
}

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

#cursor-ring {
    width: 40px;
    height: 40px;
    border: 1px solid var(--accent-cyber);
    transition: width 0.3s, height 0.3s, background-color 0.3s;
}

/* Loader */
.boot-sequence {
    position: fixed;
    inset: 0;
    background: black;
    z-index: 10000;
    display: flex;
    justify-content: center;
    align-items: center;
    font-family: 'JetBrains Mono', monospace;
    color: var(--accent-cyber);
}

/* Utilities for JS Control */
.is-skewing {
    transition: transform 0.1s;
}

@media (max-width: 768px) {
    .card-inner {
        width: 90vw;
        height: 50vh;
    }

    .glitch-text {
        font-size: 18vw;
    }

    .editorial-text {
        font-size: 5vw;
    }

    .grid-gallery {
        grid-template-columns: 1fr;
    }
}