/* Vibes Roleplay - Enhanced Styling */

/* CSS Variables */
:root {
    --gold: #cfa24f;
    --gold-glow: rgba(207, 162, 79, 0.4);
    --gold-light: #d4a853;
    --gold-dark: #b8904a;
    --dark-bg: #0a0a0a;
    --card-bg: rgba(20, 20, 20, 0.8);
    --neon-cyan: #00ffff;
    --neon-purple: #b967ff;
    --glass-border: rgba(207, 162, 79, 0.1);
}

/* Additional Legacy Styles from Original CSS */
.hero {
    height: 100vh;
    background: linear-gradient(rgba(0,0,0,0.6), rgba(0,0,0,0.7)), url('../img/header.png') center/cover no-repeat;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding-top: 50px;
}

.section {
    padding: 100px 10vw;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: center;
    background: #2C3E50;
    border-bottom: 1px solid rgba(255,255,255,0.05);
}

.section:nth-child(even) {
    background: #1F2A36;
}

.textblock h2 {
    font-size: 2.4em;
    margin-bottom: 10px;
}

.textblock p {
    opacity: 0.85;
    line-height: 1.6;
}

.logo_link img {
    height: 220px;
    transition: 0.3s;
    cursor: pointer;
}

.logo_link img:hover {
    filter: drop-shadow(0 0 8px rgba(230,126,34,0.4));
}

.fade-in {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Global Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Montserrat', sans-serif;
    background: var(--dark-bg);
    color: #e0e0e0;
    overflow-x: hidden;
    line-height: 1.6;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Bebas Neue', sans-serif;
    letter-spacing: 2px;
    line-height: 1.2;
}

/* Animated Background Layers */
.animated-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    background: 
        radial-gradient(circle at 20% 50%, rgba(207, 162, 79, 0.05) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(0, 255, 255, 0.03) 0%, transparent 50%),
        radial-gradient(circle at 40% 20%, rgba(185, 103, 255, 0.03) 0%, transparent 50%);
    animation: bgPulse 15s ease-in-out infinite;
}

@keyframes bgPulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.8; }
}

.grid-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    background-image: 
        linear-gradient(rgba(207, 162, 79, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(207, 162, 79, 0.03) 1px, transparent 1px);
    background-size: 50px 50px;
    opacity: 0.3;
}

/* Header Styles */
header {
    backdrop-filter: blur(20px);
    background: rgba(0, 0, 0, 0.6);
    border-bottom: 1px solid var(--glass-border);
    transition: all 0.3s ease;
}

header.scrolled {
    background: rgba(0, 0, 0, 0.95);
    box-shadow: 0 4px 30px var(--gold-glow);
}

header img {
    transition: transform 0.3s ease;
}

header img:hover {
    transform: scale(1.1) rotate(5deg);
}

/* Navigation */
nav a {
    position: relative;
    transition: all 0.3s ease;
    text-decoration: none;
}

nav a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--gold), transparent);
    transition: width 0.3s ease;
}

nav a:hover::after {
    width: 100%;
}

nav a:hover {
    color: var(--gold-light);
    text-shadow: 0 0 10px var(--gold-glow);
}

/* Glass Card Effect */
.glass-card {
    background: rgba(20, 20, 20, 0.7);
    backdrop-filter: blur(10px);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    padding: 2rem;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.glass-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(207, 162, 79, 0.1), transparent);
    transition: left 0.6s ease;
}

.glass-card:hover::before {
    left: 100%;
}

.glass-card:hover {
    transform: translateY(-10px);
    border-color: rgba(207, 162, 79, 0.3);
    box-shadow: 
        0 20px 60px rgba(207, 162, 79, 0.2),
        inset 0 0 20px rgba(207, 162, 79, 0.05);
}

/* Hero Section */
.hero-title {
    animation: fadeInUp 1s ease-out;
    text-shadow: 
        0 0 20px var(--gold-glow),
        0 0 40px var(--gold-glow),
        0 5px 20px rgba(0, 0, 0, 0.8);
}

.hero-subtitle {
    animation: fadeInUp 1s ease-out 0.3s backwards;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Glow Effects */
.glow-text {
    text-shadow: 
        0 0 10px var(--gold-glow),
        0 0 20px var(--gold-glow),
        0 0 30px var(--gold-glow);
}

.btn-glow {
    position: relative;
    background: linear-gradient(135deg, var(--gold), var(--gold-light));
    box-shadow: 0 0 20px var(--gold-glow);
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
}

.btn-glow:hover {
    transform: scale(1.05);
    box-shadow: 0 0 40px var(--gold-glow);
    background: linear-gradient(135deg, var(--gold-light), var(--gold));
}

/* Carousel Enhancements */
.carousel-container {
    position: relative;
    overflow: hidden;
    border-radius: 20px;
    box-shadow: 
        0 10px 50px rgba(0, 0, 0, 0.5),
        inset 0 0 0 1px rgba(207, 162, 79, 0.1);
}

.carousel-img {
    transition: opacity 0.7s ease-in-out, transform 20s ease-in-out;
}

.carousel-img.active {
    transform: scale(1.1);
}

.carousel-btn {
    background: rgba(207, 162, 79, 0.3);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(207, 162, 79, 0.2);
    transition: all 0.3s ease;
    cursor: pointer;
}

.carousel-btn:hover {
    background: rgba(207, 162, 79, 0.8);
    transform: scale(1.1);
    box-shadow: 0 0 20px var(--gold-glow);
}

.carousel-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(207, 162, 79, 0.3);
    border: 1px solid rgba(207, 162, 79, 0.5);
    cursor: pointer;
    transition: all 0.3s ease;
}

.carousel-dot.active {
    background: var(--gold);
    box-shadow: 0 0 10px var(--gold-glow);
    transform: scale(1.3);
}

/* Video Container */
.video-container {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 
        0 10px 50px rgba(207, 162, 79, 0.2),
        inset 0 0 0 1px rgba(207, 162, 79, 0.1);
}

.video-container::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border: 2px solid rgba(207, 162, 79, 0.2);
    border-radius: 20px;
    pointer-events: none;
    transition: border-color 0.3s ease;
}

.video-container:hover::after {
    border-color: rgba(207, 162, 79, 0.4);
}

/* Logo Hover Effects */
.logo-link {
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    display: inline-block;
}

.logo-link:hover {
    transform: scale(1.1) rotate(2deg);
    filter: drop-shadow(0 10px 30px var(--gold-glow));
}

/* Floating Particles */
.particles {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    pointer-events: none;
}

.particle {
    position: absolute;
    width: 2px;
    height: 2px;
    background: var(--gold);
    border-radius: 50%;
    opacity: 0.3;
    animation: float 20s infinite ease-in-out;
}

@keyframes float {
    0%, 100% {
        transform: translateY(0) translateX(0);
        opacity: 0.3;
    }
    25% {
        transform: translateY(-100px) translateX(50px);
        opacity: 0.5;
    }
    50% {
        transform: translateY(-200px) translateX(-50px);
        opacity: 0.3;
    }
    75% {
        transform: translateY(-100px) translateX(50px);
        opacity: 0.5;
    }
}

/* Scroll Indicator */
.scroll-indicator {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    animation: bounce 2s infinite;
    opacity: 0.7;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateX(-50%) translateY(0);
    }
    40% {
        transform: translateX(-50%) translateY(-20px);
    }
    60% {
        transform: translateX(-50%) translateY(-10px);
    }
}

/* Footer */
footer {
    background: rgba(0, 0, 0, 0.9);
    border-top: 1px solid var(--glass-border);
    padding: 2rem 1rem;
}

footer a {
    transition: all 0.3s ease;
    text-decoration: none;
}

footer a:hover {
    text-shadow: 0 0 10px var(--gold-glow);
    transform: translateY(-2px);
}

/* Loading Animation */
@keyframes shimmer {
    0% {
        background-position: -1000px 0;
    }
    100% {
        background-position: 1000px 0;
    }
}

.loading {
    animation: shimmer 2s infinite;
    background: linear-gradient(to right, transparent 0%, rgba(207, 162, 79, 0.2) 50%, transparent 100%);
    background-size: 1000px 100%;
}

/* Mobile Menu Animation */
#nav {
    transition: all 0.3s ease;
    background: rgba(0, 0, 0, 0.95);
    backdrop-filter: blur(10px);
}

#nav a {
    padding: 0.5rem;
    border-radius: 8px;
    transition: all 0.3s ease;
}

#nav a:hover {
    background: rgba(207, 162, 79, 0.1);
    padding-left: 1rem;
}

/* Selection */
::selection {
    background: var(--gold);
    color: black;
}

::-moz-selection {
    background: var(--gold);
    color: black;
}

/* Scrollbar */
::-webkit-scrollbar {
    width: 12px;
}

::-webkit-scrollbar-track {
    background: var(--dark-bg);
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, var(--gold-dark), var(--gold));
    border-radius: 6px;
    border: 2px solid var(--dark-bg);
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(180deg, var(--gold), var(--gold-light));
}

/* Responsive Design */
@media (max-width: 768px) {
    .hero-title {
        font-size: 2.5rem !important;
    }

    .glass-card {
        padding: 1.5rem;
    }

    .carousel-container {
        height: 200px !important;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 2rem !important;
    }

    h2 {
        font-size: 1.5rem !important;
    }
}

/* Accessibility */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border-width: 0;
}

/* Focus States */
a:focus-visible,
button:focus-visible {
    outline: 2px solid var(--gold);
    outline-offset: 2px;
}

/* Print Styles */
@media print {
    .animated-bg,
    .grid-overlay,
    .particles,
    header,
    .scroll-indicator {
        display: none;
    }
}