/* ===== GLOBAL STYLES ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background: #000;
    font-family: 'Arial', sans-serif;
    position: relative;
    overflow-x: hidden;
}

html {
    scroll-behavior: smooth;
}

/* ===== RETRO SPACE BACKGROUND ===== */
#space-canvas {
    position: fixed !important;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0 !important;
    pointer-events: none !important;
}

/* ===== HEADER / NAVIGATION ===== */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(10, 5, 20, 0.9);
    backdrop-filter: blur(10px);
    padding: 1rem 2rem;
    border-bottom: 1px solid rgba(0, 191, 255, 0.3);
    box-shadow: 0 2px 20px rgba(0, 191, 255, 0.2);
    pointer-events: auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo-container {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.site-logo {
    width: 50px;
    height: 50px;
    filter: drop-shadow(0 0 10px rgba(0, 191, 255, 0.6)) brightness(1.2) contrast(1.1);
    transition: transform 0.3s, filter 0.3s;
    background: transparent !important;
    object-fit: contain;
    image-rendering: -webkit-optimize-contrast;
    image-rendering: crisp-edges;
}

.site-logo:hover {
    transform: scale(1.1);
    filter: drop-shadow(0 0 15px rgba(0, 191, 255, 0.9)) brightness(1.3) contrast(1.2);
}

.site-name {
    font-size: 1.5rem;
    font-weight: bold;
    color: #00bfff;
    text-shadow: 0 0 10px rgba(0, 191, 255, 0.6);
    letter-spacing: 3px;
    font-family: 'Courier New', monospace;
}

.main-nav {
    display: flex;
    gap: 2rem;
    align-items: center;
}

.main-nav a {
    color: #d0d0d0;
    text-decoration: none;
    font-size: 1.1rem;
    font-weight: 500;
    transition: all 0.3s;
    padding: 0.5rem 1rem;
    border-radius: 5px;
    position: relative;
}

.main-nav a:hover {
    color: #00bfff;
    text-shadow: 0 0 10px rgba(0, 191, 255, 0.6);
    background: rgba(0, 191, 255, 0.1);
}

.main-nav a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 2px;
    background: #00bfff;
    transition: width 0.3s;
}

.main-nav a:hover::after {
    width: 80%;
}

/* ===== CONTENT WRAPPER ===== */
main {
    position: relative;
    z-index: 1;
    pointer-events: none;
}

main * {
    pointer-events: auto;
}

section,
.hero,
.members-grid,
.sacred-arts,
footer {
    pointer-events: none;
}

main a,
main button,
main input,
main select,
main textarea,
.member-card,
main h1,
main h2,
main h3,
main h4,
main p,
main li {
    pointer-events: auto;
}

/* ===== HERO SECTION ===== */
.hero {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 6rem 2rem 2rem 2rem;
}

.hero h1 {
    font-size: 4rem;
    color: #fff;
    text-shadow: 0 0 20px rgba(160, 32, 240, 0.8);
    margin-bottom: 1rem;
    font-weight: bold;
}

.hero h2 {
    font-size: 2rem;
    color: #a020f0;
    text-shadow: 0 0 10px rgba(160, 32, 240, 0.5);
    margin-bottom: 2rem;
}

.hero p {
    font-size: 1.2rem;
    max-width: 800px;
    margin: 1rem auto;
    color: #b0b0ff;
}

.hero-image {
    width: 200px;
    height: 200px;
    border-radius: 50%;
    margin: 2rem 0;
    border: 3px solid #a020f0;
    box-shadow: 0 0 30px rgba(160, 32, 240, 0.6);
    object-fit: cover;
}

/* ===== SCROLL INDICATOR ===== */
.scroll-indicator {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    color: #a020f0;
    font-size: 2rem;
    animation: bounce 2s infinite;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% { 
        transform: translateX(-50%) translateY(0); 
    }
    40% { 
        transform: translateX(-50%) translateY(-20px); 
    }
    60% { 
        transform: translateX(-50%) translateY(-10px); 
    }
}

/* ===== CONTENT SECTIONS ===== */
section {
    padding: 4rem 2rem;
    max-width: 1200px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

section h2 {
    font-size: 2.5rem;
    color: #fff;
    text-shadow: 0 0 15px rgba(160, 32, 240, 0.6);
    margin-bottom: 2rem;
    text-align: center;
}

section h3 {
    font-size: 1.8rem;
    color: #00bfff;
    margin: 2rem 0 1rem;
}

section p {
    font-size: 1.1rem;
    color: #d0d0d0;
    margin: 1rem 0;
    line-height: 1.8;
}

/* ===== MEMBERS GRID ===== */
.members-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin: 3rem 0;
}

.member-card {
    background: rgba(20, 10, 40, 0.8);
    padding: 2rem;
    border-radius: 15px;
    border: 1px solid rgba(160, 32, 240, 0.4);
    backdrop-filter: blur(10px);
    transition: transform 0.3s, box-shadow 0.3s;
}

.member-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 40px rgba(160, 32, 240, 0.5);
}

.member-card img {
    width: 100%;
    border-radius: 10px;
    margin-bottom: 1rem;
}

.member-card h3 {
    color: #a020f0;
    margin: 1rem 0;
    text-align: center;
}

.member-card p {
    color: #c0c0c0;
    font-size: 1rem;
}

.specialty {
    color: #00bfff !important;
    font-weight: bold;
    margin-top: 1rem;
}

/* ===== SACRED ARTS ===== */
.sacred-arts {
    background: rgba(20, 10, 40, 0.7);
    padding: 2rem;
    border-radius: 15px;
    border: 1px solid rgba(0, 191, 255, 0.4);
    margin: 2rem 0;
    backdrop-filter: blur(10px);
}

.sacred-arts h4 {
    color: #00bfff;
    margin: 1.5rem 0 0.5rem;
    font-size: 1.5rem;
}

.sacred-arts ul {
    list-style: none;
    padding-left: 1rem;
}

.sacred-arts li {
    color: #d0d0d0;
    margin: 0.5rem 0;
    padding-left: 1.5rem;
    position: relative;
}

.sacred-arts li:before {
    content: "★";
    position: absolute;
    left: 0;
    color: #a020f0;
}

/* ===== QUOTE BOX ===== */
.quote-box {
    background: rgba(10, 5, 30, 0.8);
    border-left: 4px solid #a020f0;
    padding: 1.5rem;
    margin: 2rem 0;
    border-radius: 10px;
    backdrop-filter: blur(10px);
}

.quote-box p {
    font-style: italic;
    color: #b0b0ff;
}

/* ===== RETRO SPACE GAME ===== */
#game-section {
    display: flex;
    flex-direction: column;
    align-items: center;
    pointer-events: auto;
}

.game-container {
    position: relative;
    width: 600px;
    max-width: 95%;
    margin: 1rem auto;
    border: 2px solid #0f0;
    box-shadow: 0 0 20px rgba(0, 255, 0, 0.5);
    background: #000;
    pointer-events: auto;
}

#gameCanvas {
    display: block;
    width: 100%;
    height: auto;
    background: #000;
    pointer-events: auto;
}

.game-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.95);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    z-index: 10;
    pointer-events: auto;
}

.game-title {
    font-size: 2.5rem;
    color: #0f0;
    font-family: 'Courier New', monospace;
    text-shadow: 0 0 10px #0f0;
    margin-bottom: 1rem;
    letter-spacing: 5px;
}

.game-controls {
    font-size: 1rem;
    color: #0ff;
    font-family: 'Courier New', monospace;
    margin-bottom: 2rem;
}

.game-button {
    padding: 0.8rem 2rem;
    font-size: 1.2rem;
    font-family: 'Courier New', monospace;
    font-weight: bold;
    color: #000;
    background: #0f0;
    border: 2px solid #0f0;
    cursor: pointer;
    transition: all 0.3s;
    box-shadow: 0 0 15px rgba(0, 255, 0, 0.6);
    letter-spacing: 3px;
    pointer-events: auto;
}

.game-button:hover {
    background: #0ff;
    border-color: #0ff;
    box-shadow: 0 0 20px rgba(0, 255, 255, 0.8);
}

.game-score {
    position: absolute;
    top: 5px;
    left: 10px;
    font-family: 'Courier New', monospace;
    font-size: 0.9rem;
    color: #0f0;
    text-shadow: 0 0 5px #0f0;
    z-index: 5;
    pointer-events: none;
}

/* ===== FOOTER ===== */
footer {
    text-align: center;
    padding: 3rem 2rem;
    background: rgba(10, 5, 20, 0.9);
    color: #a0a0a0;
    backdrop-filter: blur(10px);
    position: relative;
    z-index: 1;
}

footer p {
    margin: 0.5rem 0;
    font-size: 1.1rem;
}

footer .motto {
    font-style: italic;
    color: #00bfff;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
    .site-header {
        padding: 0.8rem 1rem;
        flex-wrap: wrap;
    }
    
    .site-logo {
        width: 40px;
        height: 40px;
    }
    
    .site-name {
        font-size: 1.2rem;
    }
    
    .main-nav {
        width: 100%;
        flex-direction: column;
        gap: 0.5rem;
        margin-top: 1rem;
        padding-top: 1rem;
        border-top: 1px solid rgba(0, 191, 255, 0.3);
    }
    
    .main-nav a {
        width: 100%;
        text-align: center;
        padding: 0.8rem;
        background: rgba(0, 191, 255, 0.05);
    }
    
    .hero {
        padding: 5rem 1rem 2rem 1rem;
    }
    
    .hero h1 { 
        font-size: 2.5rem; 
    }
    
    .hero h2 { 
        font-size: 1.5rem; 
    }
    
    .hero p { 
        font-size: 1rem; 
    }
    
    section { 
        padding: 2rem 1rem; 
    }
    
    .members-grid { 
        grid-template-columns: 1fr; 
    }
    
    .game-container {
        width: 100%;
        border-width: 1px;
    }
    
    .game-title {
        font-size: 1.8rem;
    }
    
    .game-button {
        font-size: 1rem;
        padding: 0.6rem 1.5rem;
    }
}
