/* Custom Editorial Layout Rules & Interactive Foundations */
@import url('https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@300;400;700&family=Space+Mono&display=swap');

:root {
--bg-dark: #0a0b0d;
--text-primary: #f8fafc;
--text-muted: #64748b;
--accent-blue: #38bdf8;
--font-sans: 'Space Grotesk', sans-serif;
--font-mono: 'Space Mono', monospace;
}

* {
box-sizing: border-box;
margin: 0;
padding: 0;
user-select: none;
}

body {
background-color: var(--bg-dark);
color: var(--text-primary);
font-family: var(--font-sans);
overflow-x: hidden;
-webkit-font-smoothing: antialiased;
}

/* WebGL Absolute Anchor Base Layer */
#webgl-container {
position: fixed;
top: 0;
left: 0;
width: 100vw;
height: 100vh;
z-index: 1;
pointer-events: none;
}

/* Navigation Overlays */
.app-header {
position: fixed;
top: 0;
left: 0;
width: 100vw;
padding: 2.5rem;
display: flex;
justify-content: space-between;
align-items: center;
z-index: 100;
}

.brand-logo {
font-size: 1.25rem;
font-weight: 700;
letter-spacing: 2px;
color: var(--text-primary);
text-decoration: none;
}

.brand-logo span {
font-weight: 300;
color: var(--text-muted);
}

.main-nav .nav-link {
font-family: var(--font-mono);
font-size: 0.85rem;
color: var(--text-muted);
text-decoration: none;
margin-left: 2rem;
transition: color 0.3s ease;
}

.main-nav .nav-link.active, .main-nav .nav-link:hover {
color: var(--text-primary);
}

/* Core System Layout Wrapper panels */
#scroll-wrapper {
position: relative;
z-index: 10;
width: 100%;
}

.section {
min-height: 100vh;
width: 100%;
position: relative;
display: flex;
align-items: center;
padding: 10%;
}

/* Hero Content Formats */
.hero-content {
max-width: 800px;
}

.eyebrow-text {
font-family: var(--font-mono);
color: var(--accent-blue);
font-size: 0.9rem;
letter-spacing: 3px;
margin-bottom: 1.5rem;
}

.glitch-title {
font-size: clamp(3rem, 7vw, 6.5rem);
font-weight: 700;
line-height: 0.95;
text-transform: uppercase;
letter-spacing: -2px;
}

.scroll-indicator {
margin-top: 4rem;
display: flex;
align-items: center;
gap: 1rem;
}

.mouse-icon {
width: 24px;
height: 40px;
border: 2px solid var(--text-muted);
border-radius: 12px;
position: relative;
}

.mouse-icon .wheel {
width: 4px;
height: 8px;
background-color: var(--accent-blue);
position: absolute;
top: 8px;
left: 50%;
transform: translateX(-50%);
border-radius: 2px;
animation: scrollWheel 1.6s infinite ease-in-out;
}

@keyframes scrollWheel {
0% { transform: translate(-50(), 0); opacity: 0; }
30% { opacity: 1; }
100% { transform: translate(-50%, 14px); opacity: 0; }
}

.scroll-indicator .label {
font-family: var(--font-mono);
font-size: 0.75rem;
color: var(--text-muted);
letter-spacing: 1px;
}

/* Structural Panels Grid Layouts */
.showcase-panel {
justify-content: flex-start;
}

.panel-inner {
max-width: 550px;
background: rgba(10, 11, 13, 0.4);
padding: 3rem;
border-left: 1px solid rgba(255, 255, 255, 0.05);
backdrop-filter: blur(10px);
}

.meta-block {
font-family: var(--font-mono);
font-size: 0.85rem;
margin-bottom: 1rem;
}

.index-num {
color: var(--accent-blue);
}

.tag {
color: var(--text-muted);
}

.project-title {
font-size: 3rem;
text-transform: uppercase;
margin-bottom: 1.5rem;
letter-spacing: -1px;
}

.project-desc {
color: var(--text-muted);
line-height: 1.6;
margin-bottom: 2rem;
}

.action-btn {
display: inline-block;
font-family: var(--font-mono);
color: var(--text-primary);
text-decoration: none;
font-size: 0.85rem;
border: 1px solid rgba(255, 255, 255, 0.2);
padding: 0.8rem 2rem;
transition: all 0.3s ease;
}

.action-btn:hover {
background-color: var(--text-primary);
color: var(--bg-dark);
border-color: var(--text-primary);
}

/* Immersive Physics Target Footer Structural Sheets */
.footer-section {
flex-direction: column;
justify-content: flex-end;
align-items: center;
background: linear-gradient(to top, #020203 0%, transparent 100%);
}

.interactive-links {
display: flex;
gap: 3rem;
margin-bottom: 8rem;
z-index: 20;
}

.morph-trigger {
font-family: var(--font-mono);
color: var(--text-muted);
text-decoration: none;
font-size: 1rem;
letter-spacing: 1px;
position: relative;
padding-bottom: 0.5rem;
transition: color 0.3s ease;
}

.morph-trigger::after {
content: '';
position: absolute;
bottom: 0;
left: 0;
width: 0;
height: 1px;
background-color: var(--accent-blue);
transition: width 0.3s ease;
}

.morph-trigger:hover {
color: var(--text-primary);
}

.morph-trigger:hover::after {
width: 100%;
}

.footer-bottom {
width: 100%;
display: flex;
justify-content: space-between;
border-top: 1px solid rgba(255, 255, 255, 0.05);
padding-top: 2rem;
font-family: var(--font-mono);
font-size: 0.75rem;
color: var(--text-muted);
}

/* Responsive Adaptive Sizing Adjustments */
@media (max-width: 768px) {
.app-header { padding: 1.5rem; }
.interactive-links { flex-direction: column; gap: 1.5rem; text-align: center; margin-bottom: 4rem;}
.footer-bottom { flex-direction: column; gap: 1rem; text-align: center; }
}

