@import url('https://fonts.googleapis.com/css2?family=Bebas+Neue&family=Inter:wght@300;400;600;800&display=swap');

* {
    box-sizing: border-box;
}

:root {
    --neon-blue: #00d4ff;
    --bg-dark: #0f1117;
    --card-bg: rgba(26, 29, 41, 0.9);
    --glass-border: rgba(0, 212, 255, 0.2);
    --text-white: #ffffff; 
    --text-gray: #d1d5db;  
    --heading-font: 'Bebas Neue', sans-serif;
    --body-font: 'Inter', sans-serif;
}

[data-theme="light"] {
    --bg-dark: #ffffff; 
    --text-gray: #1a1a1a; 
    --card-bg: #f9fafb; 
    --glass-border: #e5e7eb; 
    --text-white: #000000; 
}

html {
    margin: 0;
    padding: 0;
    scroll-behavior: smooth;
}

body { 
    margin: 0;
    padding: 0;
    font-family: var(--body-font); 
    background: var(--bg-dark); 
    color: var(--text-gray); 
    line-height: 1.7; 
    animation: fadeInPage 1.2s ease-out;
    transition: background 0.4s ease, color 0.4s ease;
    overflow-x: hidden;
}

@keyframes fadeInPage {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.archive-bar {
    background: rgba(0, 212, 255, 0.1);
    border-bottom: 1px solid var(--neon-blue);
    padding: 10px 15px;
    text-align: center;
    font-size: 0.85rem;
    color: var(--text-white);
    font-family: var(--body-font);
    backdrop-filter: blur(15px);
    position: relative;
    z-index: 1001;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

@media (min-width: 768px) {
    .archive-bar { flex-direction: row; justify-content: center; gap: 10px; }
}

header { 
    position: relative; 
    height: 50vh; 
    min-height: 350px; 
    display: flex; 
    align-items: center; 
    justify-content: center; 
    text-align: center;
    overflow: hidden;
}

header::before { 
    content: ''; 
    position: absolute; 
    top: 0; left: 0; width: 100%; height: 100%; 
    background: url('header-bg.png') center/cover no-repeat; 
    filter: blur(10px) brightness(0.6); 
    transform: scale(1.05); 
    z-index: 1; 
}

header::after { 
    content: ''; 
    position: absolute; 
    top: 0; left: 0; width: 100%; height: 100%; 
    background: linear-gradient(to bottom, rgba(15, 17, 23, 0.2), var(--bg-dark)); 
    z-index: 2; 
}

header h1 { 
    position: relative;
    font-family: var(--heading-font); 
    font-size: clamp(3rem, 12vw, 8rem); 
    color: #ffffff;
    text-shadow: 0 5px 15px rgba(0, 0, 0, 0.5), 0 0 30px var(--neon-blue);
    letter-spacing: 4px; 
    z-index: 3; 
    margin: 0;
    padding: 0 20px;
}

nav { 
    background: rgba(15, 23, 31, 0.95); 
    backdrop-filter: blur(15px); 
    padding: 15px; 
    position: -webkit-sticky;
    position: sticky; 
    top: 0; 
    z-index: 2000; 
    border-bottom: 1px solid var(--glass-border);
    display: flex;
    justify-content: center; 
    align-items: center;
    gap: 30px;
}

nav a { 
    color: var(--text-white); 
    text-decoration: none; 
    font-weight: 600; 
    text-transform: uppercase;
    font-family: var(--heading-font);
    letter-spacing: 1px;
    font-size: 1.1rem;
}

nav a:hover { color: var(--neon-blue); }

.theme-toggle { display: flex; align-items: center; }
#theme-toggle { display: none; }
label[for="theme-toggle"] {
    width: 44px; height: 22px; background: #2a2d3a;
    display: block; border-radius: 50px; position: relative;
    cursor: pointer; border: 1px solid var(--neon-blue);
}
label[for="theme-toggle"]::after {
    content: ''; width: 16px; height: 16px; background: var(--neon-blue);
    position: absolute; top: 2px; left: 3px; border-radius: 50%; transition: 0.3s;
}
#theme-toggle:checked + label::after { left: 23px; background: #fff; }

.container { width: 100%; max-width: 1300px; margin: 0 auto; padding: 0 40px; }
section { padding: 80px 0; }

h2 { 
    font-family: var(--heading-font); 
    text-align: center; 
    font-size: clamp(2.5rem, 8vw, 4.5rem); 
    color: var(--neon-blue); 
    margin-bottom: 40px; 
}

p { 
    font-family: var(--body-font);
    font-size: 1.15rem; 
    max-width: 900px; 
    margin: 0 auto 30px; 
    text-align: center; 
}

.members-grid { 
    display: grid; 
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); 
    gap: 40px; 
}

.member-card { 
    background: var(--card-bg); 
    padding: 40px; 
    text-align: center; 
    border-radius: 20px; 
    border: 1px solid var(--glass-border);
    transition: 0.3s ease;
    text-decoration: none;
    display: block;
}

.member-card:hover { transform: translateY(-10px); border-color: var(--neon-blue); }

.member-card img { 
    width: 180px; height: 180px; 
    border-radius: 50%; 
    border: 4px solid var(--neon-blue); 
    margin-bottom: 25px;
    object-fit: cover;
}

.member-card h3 { 
    font-family: var(--heading-font); 
    color: var(--text-white); 
    font-size: 2.2rem; 
    margin: 10px 0; 
}

.member-card p {
    font-family: var(--body-font);
    color: var(--text-gray);
    font-size: 1.15rem;
    margin: 0;
    text-align: center;
}

.main-avatar { 
    width: 250px; height: 250px; border-radius: 50%; 
    border: 6px solid var(--neon-blue); display: block; margin: 0 auto 40px; 
    object-fit: cover;
}

.social-links { display: flex; justify-content: center; gap: 15px; margin-bottom: 40px; }
.social-links a { 
    width: 45px; height: 45px; border: 1px solid var(--neon-blue); 
    border-radius: 50%; display: flex; align-items: center; justify-content: center; 
    background: rgba(255, 255, 255, 0.05);
}
.social-links img { width: 22px; height: 22px; }

.thumbnails-grid { 
    display: grid; 
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); 
    gap: 25px; 
}

.thumb-card img { 
    width: 100%; 
    aspect-ratio: 16 / 9; 
    object-fit: cover; 
    border-radius: 12px; 
    border: 1px solid var(--glass-border); 
}

.video-container { 
    position: relative; padding-bottom: 56.25%; height: 0; overflow: hidden; 
    max-width: 900px; margin: 30px auto; border-radius: 15px; 
}
.video-container iframe { position: absolute; top: 0; left: 0; width: 100%; height: 100%; border: none; }

footer { 
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center; 
    padding: 80px 20px; 
    background: #0a0c10; 
    border-top: 1px solid var(--glass-border); 
    width: 100%;
}

footer p { 
    font-size: 0.9rem; 
    opacity: 0.8; 
    margin: 5px 0; 
    width: 100%;
    color: #ffffff;
    text-align: center;
}

[data-theme="light"] header h1 { color: #000000 !important; text-shadow: none; }
[data-theme="light"] nav { background: rgba(255, 255, 255, 0.95); }
[data-theme="light"] nav a { color: #1a1a1a; }
[data-theme="light"] footer { background: #ffffff; }
[data-theme="light"] footer p { color: #1a1a1a; }
[data-theme="light"] .social-links img { filter: invert(1); }

@media (max-width: 600px) {
    header { min-height: 250px; }
    section { padding: 40px 0; }
    nav { gap: 15px; }
    nav a { font-size: 1rem; }
    .container { padding: 0 20px; }
}