/* Obsidian Theme - Global Styles */
@import url('https://fonts.googleapis.com/css2?family=Rajdhani:wght@400;500;600;700&family=Syncopate:wght@400;700&display=swap');

:root {
    --obsidian-black: #050505;
    --midnight-void: #0a0a0f;
    --neon-purple: #b026ff;
    --plasma-magenta: #ff00cc;
    --crystalline-white: #e0e0ff;
    --shard-glass: rgba(20, 20, 30, 0.7);
    --border-glow: rgba(176, 38, 255, 0.5);
    --void-depth: #020202;
}

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

body {
    font-family: 'Rajdhani', sans-serif;
    background-color: var(--obsidian-black);
    color: var(--crystalline-white);
    overflow-x: hidden;
    line-height: 1.6;
}

/* Background Effects */
.void-grid {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        linear-gradient(rgba(176, 38, 255, 0.05) 1px, transparent 1px),
        linear-gradient(90deg, rgba(176, 38, 255, 0.05) 1px, transparent 1px);
    background-size: 50px 50px;
    z-index: -2;
    transform: perspective(500px) rotateX(60deg) translateY(-100px) scale(2);
    animation: gridFlow 20s linear infinite;
}

@keyframes gridFlow {
    0% { transform: perspective(500px) rotateX(60deg) translateY(0) scale(2); }
    100% { transform: perspective(500px) rotateX(60deg) translateY(50px) scale(2); }
}

.nebula-glow {
    position: fixed;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle at center, rgba(110, 0, 255, 0.1), transparent 60%);
    z-index: -1;
    animation: nebulaPulse 10s ease-in-out infinite alternate;
}

@keyframes nebulaPulse {
    0% { opacity: 0.5; transform: scale(1); }
    100% { opacity: 0.8; transform: scale(1.1); }
}

/* Typography */
h1, h2, h3, h4 {
    font-family: 'Syncopate', sans-serif;
    text-transform: uppercase;
    letter-spacing: 2px;
}

/* Component: Shard Button */
.shard-btn {
    background: transparent;
    border: 1px solid var(--neon-purple);
    color: var(--neon-purple);
    padding: 12px 30px;
    font-family: 'Syncopate', sans-serif;
    font-size: 12px;
    font-weight: 700;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    clip-path: polygon(10% 0, 100% 0, 100% 70%, 90% 100%, 0 100%, 0 30%);
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
}

.shard-btn:hover {
    background: var(--neon-purple);
    color: var(--obsidian-black);
    box-shadow: 0 0 20px var(--neon-purple);
}

/* Compliance Gateway */
.obsidian-gateway {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(5, 5, 5, 0.95);
    z-index: 10000;
    display: flex;
    justify-content: center;
    align-items: center;
    backdrop-filter: blur(10px);
}

.gateway-shard {
    background: var(--midnight-void);
    border: 1px solid var(--neon-purple);
    padding: 60px;
    max-width: 500px;
    text-align: center;
    position: relative;
    clip-path: polygon(20% 0%, 80% 0%, 100% 20%, 100% 80%, 80% 100%, 20% 100%, 0% 80%, 0% 20%);
    box-shadow: 0 0 50px rgba(176, 38, 255, 0.2);
}

.gateway-shard::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, transparent 48%, var(--neon-purple) 50%, transparent 52%);
    opacity: 0.1;
    pointer-events: none;
}

.gateway-title {
    color: var(--plasma-magenta);
    margin-bottom: 20px;
    font-size: 24px;
}

.gateway-text {
    margin-bottom: 40px;
    color: #aaa;
}

.gateway-controls {
    display: flex;
    gap: 20px;
    justify-content: center;
}

/* Main Navigation */
.crystal-nav {
    position: fixed;
    top: 0;
    width: 100%;
    padding: 30px 50px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 1000;
    background: linear-gradient(to bottom, rgba(5,5,5,0.9), transparent);
}

.nav-brand {
    font-family: 'Syncopate', sans-serif;
    font-weight: 700;
    font-size: 24px;
    color: var(--crystalline-white);
    text-decoration: none;
    text-shadow: 0 0 10px var(--neon-purple);
}

.nav-links {
    display: flex;
    gap: 40px;
}

.nav-link {
    color: #888;
    text-decoration: none;
    font-family: 'Rajdhani', sans-serif;
    font-weight: 600;
    font-size: 16px;
    text-transform: uppercase;
    transition: color 0.3s;
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--plasma-magenta);
    transition: width 0.3s ease;
}

.nav-link:hover {
    color: var(--crystalline-white);
}

.nav-link:hover::after {
    width: 100%;
}

/* Hero Section */
.abyss-hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    padding: 0 20px;
}

.hero-content {
    text-align: center;
    max-width: 900px;
    z-index: 2;
}

.hero-glitch-text {
    font-size: 80px;
    margin-bottom: 30px;
    color: var(--crystalline-white);
    text-shadow: 3px 3px 0px var(--neon-purple);
    position: relative;
    animation: glitchSkew 3s infinite linear alternate-reverse;
}

.hero-sub {
    font-size: 20px;
    color: #ccc;
    margin-bottom: 50px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    border-left: 2px solid var(--plasma-magenta);
    padding-left: 20px;
    text-align: left;
}

.hero-status-bar {
    display: inline-flex;
    align-items: center;
    gap: 15px;
    background: rgba(255,255,255,0.05);
    padding: 10px 20px;
    border-radius: 5px;
    margin-top: 40px;
    border: 1px solid rgba(255,255,255,0.1);
}

.status-blimp {
    width: 10px;
    height: 10px;
    background: #00ff88;
    border-radius: 50%;
    box-shadow: 0 0 10px #00ff88;
    animation: pulse 1s infinite;
}

/* Content Sections */
.obsidian-section {
    padding: 120px 5%;
    position: relative;
}

.section-head {
    margin-bottom: 80px;
    position: relative;
}

.section-marker {
    color: var(--plasma-magenta);
    font-weight: 700;
    font-size: 14px;
    letter-spacing: 4px;
    margin-bottom: 15px;
    display: block;
}

.section-title {
    font-size: 48px;
    color: var(--crystalline-white);
}

.obsidian-card {
    background: var(--shard-glass);
    border: 1px solid rgba(255,255,255,0.1);
    padding: 40px;
    position: relative;
    transition: transform 0.3s;
}

.obsidian-card:hover {
    transform: translateY(-10px);
    border-color: var(--neon-purple);
}

/* Specific Layouts */
.grid-3 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.feature-number {
    font-size: 60px;
    font-family: 'Syncopate', sans-serif;
    color: rgba(255,255,255,0.05);
    position: absolute;
    top: 20px;
    right: 20px;
}

.feature-title {
    color: var(--plasma-magenta);
    font-size: 24px;
    margin-bottom: 20px;
}

/* Game Interface Frame */
.game-interface {
    border: 1px solid var(--neon-purple);
    background: rgba(0,0,0,0.8);
    padding: 2px;
    position: relative;
    margin-top: 50px;
}

.interface-header {
    background: var(--neon-purple);
    color: black;
    padding: 5px 15px;
    font-family: 'Syncopate', sans-serif;
    font-size: 12px;
    font-weight: 700;
    display: flex;
    justify-content: space-between;
}

.game-viewport {
    width: 100%;
    height: 600px;
    border: none;
    background: #000;
}

/* Footer */
.void-footer {
    border-top: 1px solid rgba(255,255,255,0.1);
    background: #020202;
    padding: 80px 5%;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 50px;
    margin-bottom: 60px;
}

.footer-col h4 {
    color: var(--plasma-magenta);
    margin-bottom: 30px;
    font-size: 18px;
}

.notice-box {
    grid-column: 1 / -1;
    border: 1px solid rgba(255,255,255,0.1);
    padding: 30px;
    margin-bottom: 50px;
    background: rgba(255,255,255,0.02);
}

.compliance-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
    padding-top: 30px;
    border-top: 1px solid rgba(255,255,255,0.05);
}

.badges {
    display: flex;
    gap: 20px;
}

.badge-item {
    color: #555;
    text-decoration: none;
    font-size: 12px;
    border: 1px solid #333;
    padding: 5px 10px;
    transition: all 0.3s;
}

.badge-img {
    height: 20px;
    vertical-align: middle;
    margin-right: 5px;
    filter: grayscale(100%);
}

.badge-item:hover {
    border-color: var(--crystalline-white);
    color: var(--crystalline-white);
}

.badge-item:hover .badge-img {
    filter: grayscale(0%);
}

@keyframes glitchSkew {
    0% { transform: skew(0deg); }
    20% { transform: skew(-2deg); }
    40% { transform: skew(2deg); }
    60% { transform: skew(-1deg); }
    80% { transform: skew(3deg); }
    100% { transform: skew(0deg); }
}

@media (max-width: 768px) {
    .hero-glitch-text { font-size: 40px; }
    .crystal-nav { padding: 20px; flex-direction: column; gap: 20px; background: rgba(5,5,5,0.95); }
    .nav-links { gap: 20px; }
    .obsidian-card { margin-bottom: 20px; }
}
