/* ========================================
   Modern CSS Reset & Base Styles
   ======================================== */

*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #6e00ff;
    --secondary-color: #00d4ff;
    --dark-bg: #0a0a0a;
    --text-light: #ffffff;
    --text-gray: #a0a0a0;
    --transition-smooth: cubic-bezier(0.4, 0, 0.2, 1);
    --transition-bounce: cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: 'Open Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    font-weight: 300;
    line-height: 1.6;
    color: var(--text-light);
    background: var(--dark-bg);
    overflow-x: hidden;
}

/* ========================================
   Loading Screen
   ======================================== */

.loader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--dark-bg);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    transition: opacity 0.5s ease, visibility 0.5s ease;
}

.loader.hidden {
    opacity: 0;
    visibility: hidden;
}

.loader-content {
    text-align: center;
}

.loader-logo {
    max-width: 200px;
    height: auto;
    margin-bottom: 30px;
    animation: float 3s ease-in-out infinite;
}

.spinner {
    width: 50px;
    height: 50px;
    margin: 0 auto;
    border: 3px solid rgba(255, 255, 255, 0.1);
    border-top-color: var(--primary-color);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

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

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* ========================================
   Hero Section
   ======================================== */

.hero {
    position: relative;
    width: 100%;
    height: 100vh;
    overflow: hidden;
    display: flex;
    justify-content: center;
    align-items: center;
}

/* Hero Canvas Background */
.hero-canvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

#hero-canvas {
    display: block;
    width: 100%;
    height: 100%;
}

/* Hero Overlay */
.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(ellipse at center, rgba(10, 10, 10, 0.3) 0%, rgba(10, 10, 10, 0.8) 100%);
    z-index: 2;
    pointer-events: none;
}

/* Hero Content */
.hero-content {
    position: relative;
    z-index: 3;
    text-align: center;
    padding: 20px;
    animation: fadeInUp 1s ease-out 0.5s both;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
}

.hero-title {
    font-family: 'Dosis', sans-serif;
    font-size: clamp(3rem, 10vw, 8rem);
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    margin-bottom: 1rem;
    position: relative;
    display: inline-block;
    color: #ffffff;
    text-shadow: 0 0 30px rgba(255, 255, 255, 0.3),
                 0 0 60px rgba(110, 0, 255, 0.2);
}

.hero-subtitle {
    font-family: 'Dosis', sans-serif;
    font-size: clamp(1.2rem, 3vw, 2rem);
    font-weight: 300;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    margin-bottom: 2rem;
    opacity: 0.9;
}

.hero-copyright {
    font-size: 0.9rem;
    color: var(--text-gray);
    letter-spacing: 0.05em;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Vienna Time & Date */
.vienna-time {
    position: absolute;
    bottom: 30px;
    left: 30px;
    z-index: 4;
    text-align: left;
    animation: fadeInUp 1s ease-out 1s both;
    background: rgba(10, 10, 10, 0.6);
    backdrop-filter: blur(10px);
    padding: 15px 20px;
    border-radius: 12px;
    border: 1px solid rgba(110, 0, 255, 0.3);
    min-width: 180px;
}

.time-location {
    font-size: 0.7rem;
    color: rgba(255, 255, 255, 0.6);
    letter-spacing: 0.1em;
    text-transform: uppercase;
    margin-bottom: 8px;
}

.time-display {
    font-family: 'Courier New', monospace;
    font-size: 1.5rem;
    font-weight: 600;
    color: #ffffff;
    letter-spacing: 0.05em;
    text-shadow: 0 0 10px rgba(110, 0, 255, 0.5);
    margin-bottom: 4px;
    min-width: 120px;
    display: inline-block;
    text-align: left;
    font-variant-numeric: tabular-nums;
}

.date-display {
    font-size: 0.85rem;
    color: rgba(0, 212, 255, 0.8);
    letter-spacing: 0.05em;
    min-width: 160px;
    display: inline-block;
    text-align: left;
}

/* ========================================
   Responsive Design
   ======================================== */

@media (max-width: 768px) {
    .hero-title {
        font-size: clamp(2rem, 12vw, 4rem);
    }
    
    .hero-subtitle {
        font-size: clamp(0.9rem, 4vw, 1.5rem);
    }
    
    .vienna-time {
        bottom: 20px;
        left: 20px;
        padding: 12px 16px;
        min-width: 160px;
    }
    
    .time-display {
        font-size: 1.3rem;
        min-width: 110px;
    }
    
    .date-display {
        min-width: 150px;
    }
}

@media (max-width: 480px) {
    .loader-logo {
        max-width: 150px;
    }
    
    .hero-content {
        padding: 15px;
    }
    
    .vienna-time {
        bottom: 15px;
        left: 15px;
        padding: 10px 14px;
        min-width: 140px;
    }
    
    .time-location {
        font-size: 0.65rem;
        margin-bottom: 6px;
    }
    
    .time-display {
        font-size: 1.1rem;
        min-width: 100px;
    }
    
    .date-display {
        font-size: 0.75rem;
        min-width: 130px;
    }
}

/* ========================================
   Accessibility & Performance
   ======================================== */

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}

/* Focus styles for keyboard navigation */
button:focus-visible,
a:focus-visible {
    outline: 2px solid var(--primary-color);
    outline-offset: 4px;
}

/* Print styles */
@media print {
    .loader {
        display: none;
    }
}

