@import url('https://fonts.googleapis.com/css2?family=Orbitron:wght@400;500;700;900&family=Rajdhani:wght@400;500;600;700&family=Share+Tech+Mono&display=swap');

:root {
    --brand-magenta: #d400ff; 
    --neon-cyan: #00f0ff;
    --role-admin: #ff8c00;    
    --role-jury: #aaff00;     
    --role-user: #00ffcc;     
    
    --dark-void: #030106;
    --panel-bg: rgba(10, 5, 15, 0.7);
    --glass-border: rgba(212, 0, 255, 0.2);
    --hud-color: rgba(0, 240, 255, 0.7);
}

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

body {
    font-family: 'Rajdhani', sans-serif; background: var(--dark-void); color: #fff;
    overflow-x: hidden; overflow-y: auto; scroll-behavior: smooth;
}

/* Grit & Noise Overlay */
body::before {
    content: ""; position: fixed; inset: 0;
    background: 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)" opacity="0.05"/%3E%3C/svg%3E');
    pointer-events: none; z-index: 9998;
}

/* Advanced Custom Cursor */
#cursor {
    position: fixed; top: 0; left: 0; width: 20px; height: 20px;
    border: 2px solid var(--neon-cyan); border-radius: 0;
    transform: translate(-50%, -50%) rotate(45deg); pointer-events: none;
    z-index: 9999; transition: width 0.15s, height 0.15s, background 0.15s, border-color 0.15s, transform 0.1s;
    mix-blend-mode: screen; box-shadow: 0 0 10px rgba(0,240,255,0.5);
}
#cursor::after {
    content: ''; position: absolute; top: 50%; left: 50%; width: 4px; height: 4px;
    background: #fff; transform: translate(-50%, -50%); box-shadow: 0 0 10px var(--brand-magenta);
}
#cursor.hovering {
    width: 60px; height: 60px; background: rgba(212, 0, 255, 0.05);
    border-color: var(--brand-magenta); border-radius: 50%; transform: translate(-50%, -50%) rotate(0deg);
}
#cursor.clicking { transform: translate(-50%, -50%) scale(0.8); }

/* Overlays & CRT Effects */
.crt-overlay {
    position: fixed; inset: 0; pointer-events: none; z-index: 100;
    background: linear-gradient(rgba(18, 16, 16, 0) 50%, rgba(0, 0, 0, 0.25) 50%); background-size: 100% 4px;
}
.scanlines {
    position: fixed; inset: 0; z-index: 98; pointer-events: none;
    background: linear-gradient(to bottom, rgba(255,255,255,0), rgba(255,255,255,0) 50%, rgba(0, 240, 255, 0.05) 50%, rgba(0, 240, 255, 0));
    background-size: 100% 8px; animation: scanlineScroll 10s linear infinite;
}
.vignette { position: fixed; inset: 0; background: radial-gradient(circle at center, transparent 30%, #000 130%); pointer-events: none; z-index: 99; }

/* Dynamic Backgrounds */
#matrix-canvas { position: fixed; inset: 0; z-index: 2; opacity: 0.8; }
city-layer-bg {
    position: fixed; bottom: 15vh; left: 0; width: 100%; height: 500px;
    background: url('https://upload.wikimedia.org/wikipedia/commons/thumb/1/18/City_landscape_silhouette.svg/2560px-City_landscape_silhouette.svg.png') repeat-x center bottom;
    background-size: 1400px auto; z-index: -6; opacity: 0.15; 
    filter: contrast(1.5) brightness(0.4) blur(2px) hue-rotate(280deg); animation: cityScroll 120s linear infinite;
}

/* Foreground city layer */
.city-layer-fg {
    position: fixed; bottom: 10vh; left: 0; width: 100%; height: 400px;
    background: url('https://upload.wikimedia.org/wikipedia/commons/thumb/1/18/City_landscape_silhouette.svg/2560px-City_landscape_silhouette.svg.png') repeat-x center bottom;
    background-size: 900px auto; z-index: -5; opacity: 0.4; 
    filter: contrast(1.3) drop-shadow(0 -5px 25px rgba(212, 0, 255, 0.3)) hue-rotate(280deg); animation: cityScroll 60s linear infinite;
}
.cyber-grid {
    position: fixed; bottom: 0; left: 0; width: 100%; height: 50vh;
    background-image: linear-gradient(to right, rgba(212, 0, 255, 0.15) 1px, transparent 1px), linear-gradient(to top, rgba(0, 240, 255, 0.15) 1px, transparent 1px);
    background-size: 60px 60px; transform: perspective(600px) rotateX(75deg) translateY(100px) translateZ(-200px); animation: gridMove 3s linear infinite;
    z-index: -4; -webkit-mask-image: linear-gradient(to top, rgba(0,0,0,1), rgba(0,0,0,0));
}

/* UI Greebles */
.ui-corner { position: fixed; width: 5vw; height: 5vw; max-width: 50px; max-height: 50px; border: 2px solid var(--brand-magenta); z-index: 900; pointer-events: none; opacity: 0.4; box-shadow: 0 0 10px rgba(212, 0, 255, 0.2); }
.ui-tl { top: 20px; left: 20px; border-right: none; border-bottom: none; }
.ui-tr { top: 20px; right: 20px; border-left: none; border-bottom: none; }
.ui-bl { bottom: 20px; left: 20px; border-right: none; border-top: none; }
.ui-br { bottom: 20px; right: 20px; border-left: none; border-top: none; }

/* System HUD & Terminal */
#system-hud {
    position: fixed; bottom: 20px; left: 20px; z-index: 900;
    font-family: 'Share Tech Mono', monospace; font-size: 12px; color: var(--hud-color);
    display: flex; flex-direction: column; gap: 5px; opacity: 0.8; pointer-events: none;
}
#live-terminal {
    position: fixed; bottom: 20px; right: 20px; width: 300px; height: 200px; z-index: 900;
    background: rgba(0,0,0,0.8); border: 1px solid var(--glass-border); display: flex; flex-direction: column;
    font-family: 'Share Tech Mono', monospace; overflow: hidden; backdrop-filter: blur(5px);
}
.terminal-header { background: var(--brand-magenta); color: #000; padding: 5px 10px; font-weight: bold; font-size: 12px; }
.terminal-body { padding: 10px; font-size: 10px; color: var(--hud-color); overflow-y: hidden; display: flex; flex-direction: column; justify-content: flex-end; flex-grow: 1; }
.log-entry { margin-bottom: 3px; animation: fadeIn 0.2s ease-in; }
.log-entry.error { color: #ff003c; }
.log-entry.success { color: var(--role-jury); }

/* Header & Typography */
.wrapper { max-width: 1600px; margin: 0 auto; padding: 0 5%; position: relative; z-index: 10; }
header {
    padding: 20px 0; position: fixed; width: 100%; top: 0; z-index: 1000;
    background: linear-gradient(to bottom, rgba(5, 2, 10, 0.95), transparent); backdrop-filter: blur(10px); border-bottom: 1px solid var(--glass-border);
}
.header-content { display: flex; justify-content: space-between; align-items: center; max-width: 1600px; margin: 0 auto; padding: 0 5%; }
.brand-logo { font-family: 'Orbitron', sans-serif; font-size: 28px; font-weight: 900; color: #fff; letter-spacing: 8px; text-shadow: 2px 2px 0px var(--brand-magenta), -2px -2px 0px var(--neon-cyan); display: flex; align-items: center; gap: 15px; }
.brand-logo::before { content: ''; display: block; width: 12px; height: 12px; background: var(--brand-magenta); box-shadow: 0 0 15px var(--brand-magenta); animation: pulse 2s infinite; }
.status-indicator { display: flex; align-items: center; gap: 10px; font-family: 'Share Tech Mono', monospace; font-size: 14px; color: var(--neon-cyan); background: rgba(0, 240, 255, 0.1); padding: 5px 15px; border: 1px solid var(--neon-cyan); clip-path: polygon(10px 0, 100% 0, 100% calc(100% - 10px), calc(100% - 10px) 100%, 0 100%, 0 10px); }
.status-dot { width: 8px; height: 8px; background: var(--neon-cyan); animation: pulse 1s infinite alternate; }
#audio-toggle { background: none; border: 1px solid var(--brand-magenta); color: var(--brand-magenta); padding: 8px; clip-path: polygon(5px 0, 100% 0, 100% calc(100% - 5px), calc(100% - 5px) 100%, 0 100%, 0 5px); transition: 0.3s; }
#audio-toggle:hover { background: var(--brand-magenta); color: #000; box-shadow: 0 0 15px var(--brand-magenta); }

/* Hero Section */
.hero-section { min-height: 100vh; display: flex; flex-direction: column; justify-content: center; padding-top: 80px; position: relative; }
.sys-tag { font-family: 'Share Tech Mono', monospace; color: var(--brand-magenta); font-size: 14px; letter-spacing: 10px; margin-bottom: 20px; text-transform: uppercase; text-shadow: 0 0 10px var(--brand-magenta); display: flex; align-items: center; gap: 10px;}
.sys-tag::before { content: '['; color: #fff; text-shadow: none;}
.sys-tag::after { content: ']'; color: #fff; text-shadow: none;}
.mega-title { font-family: 'Orbitron', sans-serif; font-size: clamp(3rem, 10vw, 8rem); font-weight: 900; letter-spacing: 10px; line-height: 0.9; margin-bottom: 20px; color: #fff; text-transform: uppercase; text-shadow: 4px 4px 0 var(--brand-magenta), -4px -4px 0 var(--neon-cyan); position: relative; }
.hero-desc { font-size: 18px; font-weight: 500; max-width: 600px; color: #aaa; line-height: 1.6; margin-bottom: 60px; font-family: 'Share Tech Mono', monospace; border-left: 2px solid var(--brand-magenta); padding-left: 20px; }
.hero-desc span { color: #fff; font-weight: 700; text-shadow: 0 0 5px rgba(255,255,255,0.5);}

/* Cyber Button */
.cta-wrapper { display: inline-block; position: relative; }
.download-btn { display: inline-flex; align-items: center; gap: 20px; font-family: 'Orbitron', sans-serif; padding: 20px 40px; background: rgba(0,0,0,0.5); border: 2px solid var(--brand-magenta); color: var(--brand-magenta); text-decoration: none; text-transform: uppercase; transition: 0.3s; clip-path: polygon(30px 0, 100% 0, 100% calc(100% - 30px), calc(100% - 30px) 100%, 0 100%, 0 30px); position: relative; overflow: hidden; font-weight: 900; box-shadow: inset 0 0 20px rgba(212, 0, 255, 0.2); backdrop-filter: blur(5px);}
.download-btn::before { content: 'SYS.EXEC()'; position: absolute; top: 5px; right: 10px; font-family: 'Share Tech Mono'; font-size: 10px; color: rgba(255,255,255,0.4); z-index: 2; transition: 0.3s;}
.download-btn::after { content: ''; position: absolute; top: 0; left: -100%; width: 50%; height: 100%; background: linear-gradient(to right, transparent, rgba(212, 0, 255, 0.5), transparent); transform: skewX(-45deg); transition: 0.5s; z-index: 1;}
.download-btn:hover { background: var(--brand-magenta); color: #fff; box-shadow: 0 0 40px rgba(212, 0, 255, 0.8); }
.download-btn:hover::before { color: rgba(0,0,0,0.6); }
.download-btn:hover::after { left: 200%; }
.download-btn svg { width: 35px; height: 35px; fill: currentColor; position: relative; z-index: 2;}
.btn-text-group { position: relative; z-index: 2; }
.btn-text-group .small-txt { font-family: 'Share Tech Mono', monospace; font-size: 12px; letter-spacing: 2px; display: block; }
.btn-text-group .large-txt { font-size: 24px; letter-spacing: 1px; margin-top: -2px; display: block; }

/* Role Cards */
.roles-section { padding: 50px 0 150px 0; position: relative; z-index: 10; }
.section-header { font-family: 'Orbitron', sans-serif; font-size: 30px; font-weight: 900; color: #fff; margin-bottom: 60px; letter-spacing: 5px; text-transform: uppercase; display: flex; align-items: center; gap: 20px; }
.section-header::before { content: '//'; color: var(--brand-magenta); text-shadow: 0 0 10px var(--brand-magenta); }
.section-header::after { content: ''; flex-grow: 1; height: 1px; background: repeating-linear-gradient(90deg, var(--glass-border), var(--glass-border) 10px, transparent 10px, transparent 20px); }
.hologram-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 40px; perspective: 1500px; }
.holo-card { background: var(--panel-bg); border: 1px solid #222; padding: 40px 30px; position: relative; transform-style: preserve-3d; transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275), border-color 0.4s ease, box-shadow 0.4s ease; backdrop-filter: blur(10px); clip-path: polygon(0 0, 100% 0, 100% calc(100% - 30px), calc(100% - 30px) 100%, 0 100%); overflow: hidden; display: flex; flex-direction: column;}
.holo-card::after { content: ''; position: absolute; top: -100%; left: 0; width: 100%; height: 5px; opacity: 0; transition: 0.3s; z-index: 5; pointer-events: none; }
.holo-card:hover::after { opacity: 1; animation: scanLaser 2s linear infinite; }
.card-icon { width: 50px; height: 50px; margin-bottom: 25px; transform: translateZ(60px); fill: none; stroke: currentColor; stroke-width: 2; transition: transform 0.3s; }
.holo-card:hover .card-icon { transform: translateZ(80px) scale(1.1); }
.holo-card h3 { font-family: 'Orbitron', sans-serif; font-size: 28px; color: #fff; margin-bottom: 15px; text-transform: uppercase; letter-spacing: 3px; transform: translateZ(50px); }
.holo-card p { font-family: 'Share Tech Mono', monospace; font-size: 15px; color: #aaa; line-height: 1.6; transform: translateZ(30px); flex-grow: 1; margin-bottom: 20px;}
.card-footer { display: flex; justify-content: space-between; align-items: center; transform: translateZ(40px); margin-top: auto;}
.access-level { font-family: 'Share Tech Mono', monospace; font-size: 11px; font-weight: bold; color: #000; padding: 5px 10px; }
.status-badge { font-family: 'Orbitron', sans-serif; font-size: 10px; padding: 3px 8px; border: 1px solid currentColor; border-radius: 20px;}

.card-admin { border-top: 3px solid var(--role-admin); }
.card-admin:hover { border-color: var(--role-admin); box-shadow: 0 20px 40px rgba(0,0,0,0.9), inset 0 0 30px rgba(255, 140, 0, 0.1); transform: translateY(-10px) rotateX(5deg); }
.card-admin:hover::after { background: var(--role-admin); box-shadow: 0 0 20px 10px rgba(255, 140, 0, 0.4); }
.card-admin .card-icon, .card-admin .status-badge { color: var(--role-admin); filter: drop-shadow(0 0 8px var(--role-admin)); }
.card-admin .access-level { background: var(--role-admin); box-shadow: 0 0 10px var(--role-admin); }

.card-jury { border-top: 3px solid var(--role-jury); }
.card-jury:hover { border-color: var(--role-jury); box-shadow: 0 20px 40px rgba(0,0,0,0.9), inset 0 0 30px rgba(170, 255, 0, 0.1); transform: translateY(-10px) rotateX(5deg); }
.card-jury:hover::after { background: var(--role-jury); box-shadow: 0 0 20px 10px rgba(170, 255, 0, 0.4); }
.card-jury .card-icon, .card-jury .status-badge { color: var(--role-jury); filter: drop-shadow(0 0 8px var(--role-jury)); }
.card-jury .access-level { background: var(--role-jury); box-shadow: 0 0 10px var(--role-jury); }

.card-user { border-top: 3px solid var(--role-user); }
.card-user:hover { border-color: var(--role-user); box-shadow: 0 20px 40px rgba(0,0,0,0.9), inset 0 0 30px rgba(0, 255, 204, 0.1); transform: translateY(-10px) rotateX(5deg); }
.card-user:hover::after { background: var(--role-user); box-shadow: 0 0 20px 10px rgba(0, 255, 204, 0.4); }
.card-user .card-icon, .card-user .status-badge { color: var(--role-user); filter: drop-shadow(0 0 8px var(--role-user)); }
.card-user .access-level { background: var(--role-user); box-shadow: 0 0 10px var(--role-user); }

/* Footer */
footer { border-top: 1px solid var(--glass-border); background: #020105; padding: 40px 0; position: relative; z-index: 10; font-family: 'Share Tech Mono', monospace; }
.footer-content { display: flex; justify-content: space-between; align-items: center; max-width: 1600px; margin: 0 auto; padding: 0 5%; flex-wrap: wrap; gap: 20px; }
.footer-block { display: flex; flex-direction: column; gap: 5px; }
.footer-label { color: #666; font-size: 10px; letter-spacing: 2px; }
.footer-data { color: #bbb; font-size: 14px; letter-spacing: 1px; }
.footer-data.highlight { color: var(--role-jury); text-shadow: 0 0 5px var(--role-jury); }
.copyright { color: #555; font-size: 12px; width: 100%; text-align: center; margin-top: 30px; border-top: 1px dashed #222; padding-top: 20px; }

/* Boot Screen Upgrades */
#boot-screen { position: fixed; inset: 0; background: #020104; z-index: 10000; display: flex; flex-direction: column; justify-content: center; align-items: center; font-family: 'Share Tech Mono', monospace; color: var(--brand-magenta); }
.boot-container { width: 80%; max-width: 800px; }
#boot-terminal-output { min-height: 200px; display: flex; flex-direction: column; justify-content: flex-end; margin-bottom: 20px; text-shadow: 0 0 8px var(--brand-magenta);}
.progress-bar-container { width: 100%; height: 2px; background: #222; position: relative; overflow: hidden; opacity: 0; transition: 0.5s; }
#boot-progress { height: 100%; width: 0%; background: var(--neon-cyan); box-shadow: 0 0 10px var(--neon-cyan); }

/* Keyframes */
@keyframes blink { 0%, 100% { opacity: 1; } 50% { opacity: 0; } }
@keyframes pulse { from { opacity: 0.6; box-shadow: 0 0 5px currentColor; } to { opacity: 1; box-shadow: 0 0 20px currentColor; } }
@keyframes gridMove { from { background-position: 0 0; } to { background-position: 0 60px; } }
@keyframes scanLaser { 0% { top: -10%; opacity: 0; } 10% { opacity: 1; } 90% { opacity: 1; } 100% { top: 110%; opacity: 0; } }
@keyframes cityScroll { from { background-position: 0 bottom; } to { background-position: -1400px bottom; } }
@keyframes scanlineScroll { 0% { background-position: 0 0; } 100% { background-position: 0 100vh; } }
@keyframes fadeIn { from { opacity: 0; transform: translateY(5px); } to { opacity: 1; transform: translateY(0); } }

@media (max-width: 900px) {
    .mega-title { font-size: 3.5rem; letter-spacing: 5px; }
    #live-terminal { display: none; }
    #system-hud { display: none; }
    .ui-corner { display: none; }
}