/* Base Styles and Variables */
:root {
    --bg-dark: #111111;
    --text-light: #F8F9FA;
    --text-subtle: rgba(248, 249, 250, 0.7);
    --blue: #2B50F8;
    --red: #FF4B4B;
    --yellow: #FFD700;
    --nav-height: 4.5rem;
    --transition-standard: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

html {
    scroll-behavior: smooth;
    scroll-snap-type: y mandatory;
    height: 100%;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    line-height: 1.6;
    background: var(--bg-dark);
    color: var(--text-light);
    min-height: 100%;
    overflow-x: hidden;
}

/* Progress Bar */
.progress-bar {
    position: fixed;
    top: 0;
    left: 0;
    height: 2px;
    background: var(--blue);
    z-index: 1001;
    transition: width 0.1s ease-out;
}

/* Navigation */
header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: var(--nav-height);
    background: rgba(17, 17, 17, 0.85);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    z-index: 1000;
}

.nav-container {
    max-width: 1440px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 100%;
    padding: 0 2rem;
}

.logo {
    font-size: 1.5rem;
    text-decoration: none;
    color: var(--text-light);
    transition: opacity var(--transition-standard);
}

.logo:hover {
    opacity: 0.8;
}

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

/* Desktop Navigation */
.desktop-nav ul {
    display: flex;
    gap: 2rem;
    list-style: none;
}

.desktop-nav a {
    color: var(--text-light);
    text-decoration: none;
    padding: 0.5rem 0;
    transition: all var(--transition-standard);
    opacity: 0.7;
    position: relative;
}

.desktop-nav a:hover,
.desktop-nav a.active {
    opacity: 1;
}

.desktop-nav a::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 100%;
    height: 2px;
    background: var(--blue);
    transform: scaleX(0);
    transform-origin: right;
    transition: transform var(--transition-standard);
}

.desktop-nav a:hover::after,
.desktop-nav a.active::after {
    transform: scaleX(1);
    transform-origin: left;
}

/* Language Selector */
.language-selector {
    display: flex;
    gap: 0.5rem;
    padding: 0.5rem;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 2rem;
}

.language-selector a {
    color: var(--text-subtle);
    text-decoration: none;
    padding: 0.25rem 0.75rem;
    border-radius: 1rem;
    transition: all var(--transition-standard);
}

.language-selector a.active {
    color: var(--text-light);
    background: rgba(255, 255, 255, 0.1);
}

/* Mobile Menu */
.mobile-menu {
    position: fixed;
    inset: 0;
    background: rgba(17, 17, 17, 0.98);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    z-index: 999;
    display: none;
    opacity: 0;
    transition: opacity var(--transition-standard);
}

.mobile-menu.active {
    display: flex;
    opacity: 1;
}

.mobile-nav {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    height: 100%;
    gap: 2rem;
}

.mobile-nav ul {
    list-style: none;
    text-align: center;
}

.mobile-nav li {
    margin: 1.5rem 0;
}

.mobile-nav a {
    color: var(--text-light);
    text-decoration: none;
    font-size: 1.5rem;
    transition: opacity var(--transition-standard);
}

.mobile-nav a:hover {
    opacity: 0.7;
}

/* Menu Toggle */
.menu-toggle {
    display: none;
    background: none;
    border: none;
    width: 30px;
    height: 30px;
    cursor: pointer;
    z-index: 1001;
}

.menu-icon,
.menu-icon::before,
.menu-icon::after {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--text-light);
    transition: all var(--transition-standard);
}

.menu-icon::before,
.menu-icon::after {
    content: '';
    position: absolute;
}

.menu-icon::before { transform: translateY(-8px); }
.menu-icon::after { transform: translateY(8px); }

.menu-toggle.active .menu-icon {
    background: transparent;
}

.menu-toggle.active .menu-icon::before {
    transform: rotate(45deg) translateY(0);
}

.menu-toggle.active .menu-icon::after {
    transform: rotate(-45deg) translateY(0);
}

/* Sections */
.section {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    scroll-snap-align: start;
    scroll-snap-stop: always;
    padding: var(--nav-height) 2rem 2rem;
}

.section-content {
    max-width: 1200px;
    margin: 0 auto;
    text-align: center;
    opacity: 0;
    transform: translateY(20px);
    animation: fadeIn 1s ease-out forwards;
}

/* Hero Section */
#hero {
    position: relative;
    overflow: hidden;
}

.hero-content {
    position: relative;
    z-index: 2;
}

.hero-content h1 {
    font-size: clamp(3rem, 8vw, 6rem);
    margin-bottom: 1rem;
    font-weight: normal;
}

.hero-content p {
    font-size: clamp(1.2rem, 3vw, 1.8rem);
    color: var(--text-subtle);
}

/* Geometric Shapes */
.geometric-shapes {
    position: absolute;
    inset: 0;
    pointer-events: none;
}

.circle, .square, .triangle {
    position: absolute;
    opacity: 0.08;
    will-change: transform;
}

.circle {
    width: 300px;
    height: 300px;
    border-radius: 50%;
    background: var(--blue);
    top: 20%;
    left: 10%;
    animation: float 20s ease-in-out infinite;
}

.square {
    width: 200px;
    height: 200px;
    background: var(--red);
    top: 50%;
    right: 15%;
    transform: rotate(45deg);
    animation: rotate 30s linear infinite;
}

.triangle {
    width: 0;
    height: 0;
    border-left: 150px solid transparent;
    border-right: 150px solid transparent;
    border-bottom: 260px solid var(--yellow);
    bottom: 10%;
    left: 50%;
    transform: translateX(-50%);
    animation: float 25s ease-in-out infinite reverse;
}

/* Artwork Flip Card */
.artwork-container {
    perspective: 1000px;
    margin: 2rem auto;
}

.artwork-flip {
    width: 300px;
    height: 300px;
    position: relative;
    transform-style: preserve-3d;
    transition: transform 0.6s;
    cursor: pointer;
}

.artwork-flip:hover {
    transform: rotateY(180deg);
}

.artwork-front,
.artwork-back {
    position: absolute;
    width: 100%;
    height: 100%;
    backface-visibility: hidden;
    border-radius: 12px;
}

.artwork-front {
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.02));
}

.artwork-placeholder {
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.05);
}

.artwork-hover-hint {
    position: absolute;
    bottom: 1rem;
    left: 0;
    right: 0;
    text-align: center;
    color: var(--text-subtle);
    opacity: 0;
    transition: opacity var(--transition-standard);
}

.artwork-flip:hover .artwork-hover-hint {
    opacity: 1;
}

.artwork-back {
    transform: rotateY(180deg);
    background: rgba(17, 17, 17, 0.95);
    backdrop-filter: blur(10px);
    padding: 2rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.streaming-links {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    width: 100%;
}

.streaming-link {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem;
    color: var(--text-light);
    text-decoration: none;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    transition: all var(--transition-standard);
}

.streaming-link:hover {
    background: rgba(255, 255, 255, 0.1);
}

.streaming-link .arrow {
    transition: transform var(--transition-standard);
}

.streaming-link:hover .arrow {
    transform: translateX(4px);
}

/* Explore Button */
.explore-button {
    display: inline-block;
    margin-top: 2rem;
    padding: 0.75rem 1.5rem;
    color: var(--text-light);
    text-decoration: none;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 4px;
    transition: all var(--transition-standard);
}

.explore-button:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.2);
}

/* Animations */
@keyframes fadeIn {
    from { 
        opacity: 0;
        transform: translateY(20px);
    }
    to { 
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-20px); }
}

@keyframes rotate {
    from { transform: rotate(45deg); }
    to { transform: rotate(405deg); }
}

/* Media Queries */
@media (max-width: 768px) {
    .desktop-nav {
        display: none;
    }

    .menu-toggle {
        display: block;
    }

    .section-content {
        padding: 0 1rem;
    }
}

/* Fix for menu open state */
body.menu-open {
    overflow: hidden;
}