@import url('https://googleapis.com');

:root {
    --bg-void: #030308;
    --interface-glass: rgba(6, 6, 14, 0.65);
    --neon-cyan: #00f3ff;
    --neon-pink: #ff0055;
    --neon-purple: #9d00ff;
    --text-primary: #f0f2fa;
    --text-muted: #6c7289;
    --font-ui: 'Share Tech Mono', monospace;
    --font-display: 'Orbitron', sans-serif;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    user-select: none;
}

body {
    background-color: var(--bg-void);
    color: var(--text-primary);
    font-family: var(--font-ui);
    overflow-x: hidden;
    line-height: 1.6;
}

/* Background canvas setup */
#render-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: -2;
    pointer-events: none;
}

/* Custom Cursor Trail Layer */
#cursor-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: 9999;
    pointer-events: none;
}

/* Custom Scrollbar Elements */
::-webkit-scrollbar {
    width: 6px;
}
::-webkit-scrollbar-track {
    background: var(--bg-void);
}
::-webkit-scrollbar-thumb {
    background: var(--neon-cyan);
    border-radius: 3px;
    box-shadow: 0 0 10px var(--neon-cyan);
}

/* Global Premium Navigation Header */
header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 25px 60px;
    background: var(--interface-glass);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    position: sticky;
    top: 0;
    z-index: 1000;
    border-bottom: 1px solid rgba(0, 243, 255, 0.15);
}

.brand {
    font-family: var(--font-display);
    font-size: 1.6rem;
    font-weight: 900;
    color: var(--text-primary);
    letter-spacing: 3px;
    text-shadow: 0 0 15px rgba(240, 242, 250, 0.4);
}
.brand span {
    color: var(--neon-cyan);
    text-shadow: 0 0 12px var(--neon-cyan);
}

nav ul {
    display: flex;
    list-style: none;
    gap: 35px;
}

nav a {
    color: var(--text-muted);
    text-decoration: none;
    font-size: 1rem;
    letter-spacing: 1px;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    position: relative;
    padding: 5px 0;
}

nav a:hover, nav a.active-route {
    color: var(--neon-cyan);
    text-shadow: 0 0 8px rgba(0, 243, 255, 0.6);
}

nav a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--neon-pink);
    box-shadow: 0 0 8px var(--neon-pink);
    transition: width 0.3s ease;
}
nav a:hover::after, nav a.active-route::after {
    width: 100%;
}

/* Layout Structural Main Shell */
main {
    max-width: 1400px;
    margin: 0 auto;
    padding: 60px;
}

/* Layout Elements for Transparent PNG Images */
.display-frame {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
}

.transparent-layer {
    width: 100%;
    max-width: 550px;
    height: auto;
    object-fit: contain;
    filter: drop-shadow(0 0 30px rgba(157, 0, 255, 0.25));
    animation: spatialFloat 8s ease-in-out infinite;
}

/* Glassmorphism Cyber-Card Engine Rules */
.matrix-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 40px;
    margin-top: 50px;
}

.cyber-card {
    background: linear-gradient(135deg, rgba(255,255,255,0.03) 0%, rgba(255,255,255,0.01) 100%);
    border: 1px solid rgba(255, 255, 255, 0.04);
    border-radius: 16px;
    padding: 40px;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    position: relative;
    overflow: hidden;
    transition: all 0.5s cubic-bezier(0.19, 1, 0.22, 1);
}

.cyber-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, transparent, rgba(0, 243, 255, 0.05), transparent);
    transform: translateX(-100%);
    transition: transform 0.6s ease;
}

.cyber-card:hover::before {
    transform: translateX(100%);
}

.cyber-card:hover {
    border-color: rgba(0, 243, 255, 0.4);
    box-shadow: 0 20px 40px rgba(0, 243, 255, 0.07);
}

.cyber-card h3 {
    font-family: var(--font-display);
    font-size: 1.4rem;
    margin-bottom: 15px;
    color: var(--text-primary);
}

/* Dynamic Animation Triggers */
.fade-in-trigger {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 1s cubic-bezier(0.215, 0.610, 0.355, 1), transform 1s cubic-bezier(0.215, 0.610, 0.355, 1);
}

.fade-in-trigger.primed {
    opacity: 1;
    transform: translateY(0);
}

/* Core Interface Keyframe Rules */
@keyframes spatialFloat {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    50% { transform: translateY(-25px) rotate(1.5deg); }
}
