:root {
    --bg-color: #050505;
    --text-main: #ffffff;
    --text-muted: #888888;
    --accent: #ffffff;
    --accent-hover: #cccccc;
    --surface: rgba(10, 10, 10, 0.85);
    --surface-border: rgba(255, 255, 255, 0.12);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Inter', sans-serif;
}

body {
    background-color: var(--bg-color);
    color: var(--text-main);
    overflow-x: hidden;
    line-height: 1.5;
}

/* Animated Background Image */
#bg-image {
    position: fixed;
    top: -5%;
    left: -5%;
    width: 110%;
    height: 110%;
    z-index: -2;
    background-image: url('soviet_postpunk.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    filter: grayscale(90%) contrast(1.3) brightness(0.4);
    animation: slowPan 30s ease-in-out infinite alternate;
}

@keyframes slowPan {
    0% { transform: scale(1) translate(0, 0); }
    100% { transform: scale(1.1) translate(-2%, 2%); }
}

.overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at center, transparent 0%, var(--bg-color) 100%);
    z-index: -1;
}

/* Header */
.header {
    position: fixed;
    top: 0;
    width: 100%;
    padding: 1rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 100;
    background: rgba(5, 5, 5, 0.85);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--surface-border);
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-main);
    text-decoration: none;
    font-weight: 700;
    font-size: 1.25rem;
    white-space: nowrap;
}

.logo i {
    color: var(--accent);
}

.github-link {
    color: var(--text-muted);
    transition: color 0.2s;
    display: flex;
    align-items: center;
}

.github-link:hover {
    color: var(--text-main);
}

/* Enter Screen */
.enter-screen {
    position: fixed;
    inset: 0;
    background: var(--bg-color);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    transition: opacity 0.5s ease, visibility 0.5s ease;
}

.enter-content {
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.enter-icon {
    color: var(--accent);
    margin-bottom: 1rem;
    animation: pulse 2s infinite alternate;
}

.enter-content h1 {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
}

.enter-content p {
    color: var(--text-muted);
    margin-bottom: 2rem;
}

#enter-btn {
    padding: 0.75rem 2rem;
    background: var(--text-main);
    color: var(--bg-color);
    border: none;
    border-radius: 8px;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: transform 0.2s, background 0.2s;
}

#enter-btn:hover {
    transform: translateY(-2px);
    background: #fff;
}

/* Main Content Layout */
.content {
    opacity: 0;
    visibility: hidden;
    transition: opacity 1s ease;
}

.content.visible {
    opacity: 1;
    visibility: visible;
}

/* Nav Links */
.nav-links {
    display: flex;
    gap: 2rem;
    align-items: center;
}

.nav-links a {
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 600;
    transition: color 0.2s;
}

.nav-links a:hover {
    color: var(--text-main);
}

/* Pages */
.page {
    display: none;
    opacity: 0;
    animation: fadeInPage 0.5s ease forwards;
}

.page.active {
    display: block;
}

@keyframes fadeInPage {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 6rem 2rem 2rem;
    text-align: center;
    gap: 3rem;
}

.visualizer-wrapper {
    position: relative;
    width: 350px;
    height: 350px;
    display: flex;
    justify-content: center;
    align-items: center;
}

canvas#visualizer {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.bot-image {
    width: 180px;
    height: 180px;
    border-radius: 50%;
    object-fit: cover;
    z-index: 2;
    border: 2px solid var(--surface-border);
    box-shadow: 0 0 30px rgba(0,0,0,0.8);
}

.hero-text {
    max-width: 600px;
}

.hero-text h1 {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    background: linear-gradient(to right, #fff, #a1a1aa);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.subtitle {
    font-size: 1.125rem;
    color: var(--text-muted);
    margin-bottom: 2.5rem;
}

.cta-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.875rem 1.5rem;
    border-radius: 8px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.2s;
}

.btn-primary {
    background: var(--text-main);
    color: var(--bg-color);
    box-shadow: 0 0 15px rgba(255,255,255,0.2);
}

.btn-primary:hover {
    background: var(--text-muted);
    color: #000;
    transform: translateY(-2px);
    box-shadow: 0 0 25px rgba(255,255,255,0.4);
}

.btn-secondary {
    background: var(--surface);
    color: var(--text-main);
    border: 1px solid var(--surface-border);
    backdrop-filter: blur(10px);
}

.btn-secondary:hover {
    background: rgba(255,255,255,0.1);
    transform: translateY(-2px);
}

.controls {
    display: flex;
    align-items: center;
    gap: 1.25rem;
}

#play-pause-btn {
    background: var(--text-main);
    color: var(--bg-color);
    border: none;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    transition: transform 0.2s;
}

#play-pause-btn:hover {
    transform: scale(1.1);
}

.yt-link {
    color: var(--text-muted);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: color 0.2s;
}

.yt-link:hover {
    color: #ff0000;
}

/* Features */
.features-section {
    padding: 6rem 2rem;
    background: linear-gradient(to bottom, transparent, rgba(0,0,0,0.5));
}

.section-container {
    max-width: 1000px;
    margin: 0 auto;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: 0.5rem;
}

.section-subtitle {
    text-align: center;
    color: var(--text-muted);
    margin-bottom: 4rem;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

.feature-card {
    background: var(--surface);
    border: 1px solid var(--surface-border);
    padding: 2rem;
    border-radius: 16px;
    transition: transform 0.2s;
}

.feature-card:hover {
    transform: translateY(-5px);
    border-color: rgba(255,255,255,0.2);
}

.feature-icon {
    color: var(--accent);
    margin-bottom: 1.5rem;
}

.feature-card h3 {
    font-size: 1.25rem;
    margin-bottom: 1rem;
}

.feature-card p {
    color: var(--text-muted);
    font-size: 0.95rem;
}

/* Footer */
.footer {
    text-align: center;
    padding: 3rem 2rem 8rem 2rem;
    color: var(--text-muted);
    border-top: 1px solid var(--surface-border);
    font-size: 0.875rem;
}

/* Keyframes */
@keyframes slideUp {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes pulse {
    from { transform: scale(1); opacity: 0.8; }
    to { transform: scale(1.1); opacity: 1; }
}

@media (max-width: 768px) {
    .header {
        flex-direction: column;
        padding: 1rem;
        gap: 1rem;
    }
    .hero-text h1 { font-size: 2.5rem; }
    .music-hub {
        bottom: 1rem;
        right: 1rem;
        left: 1rem;
        justify-content: space-between;
    }
}


.footer-links {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
}

.footer-links a {
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 600;
    transition: color 0.2s;
}

.footer-links a:hover {
    color: var(--text-main);
}
