:root {
    --bg-color: #000000;
    --text-primary: #f5f5f7;
    --text-secondary: #86868b;
    --accent: #2997ff;
    --surface: #1d1d1f;
    --transition: all 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

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

body {
    font-family: "SF Pro Display", "Inter", -apple-system, BlinkMacSystemFont, sans-serif;
    background-color: var(--bg-color);
    color: var(--text-primary);
    line-height: 1.5;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    padding-bottom: 100px;
    /* Space for fixed button */
}

/* Typography */
h1,
h2,
h3 {
    font-weight: 700;
    letter-spacing: -0.02em;
}

h1 {
    font-size: clamp(3rem, 8vw, 6rem);
    line-height: 1.1;
    background: linear-gradient(180deg, #fff 0%, #b0b0b0 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.subtitle {
    font-size: clamp(1.5rem, 4vw, 2.5rem);
    color: var(--text-secondary);
    font-weight: 600;
    margin-top: 10px;
}

p {
    color: var(--text-secondary);
    font-size: 1.2rem;
    max-width: 600px;
    margin: 0 auto;
}

/* Layout */
section {
    padding: 80px 20px;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    position: relative;
}

@media (max-width: 768px) {
    section {
        padding: 60px 15px;
        min-height: auto;
        /* Allow auto height on mobile to prevent huge empty spaces if content is short */
    }
}

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

/* Animations */
@keyframes float {
    0% {
        transform: translateY(0px) rotate(0deg);
    }

    50% {
        transform: translateY(-20px) rotate(2deg);
    }

    100% {
        transform: translateY(0px) rotate(0deg);
    }
}

@keyframes glow {
    0% {
        filter: drop-shadow(0 0 20px rgba(255, 255, 255, 0.1));
    }

    50% {
        filter: drop-shadow(0 0 40px rgba(41, 151, 255, 0.3));
    }

    100% {
        filter: drop-shadow(0 0 20px rgba(255, 255, 255, 0.1));
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(40px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-in {
    animation: fadeInUp 1s cubic-bezier(0.16, 1, 0.3, 1) forwards;
    opacity: 0;
}

.delay-1 {
    animation-delay: 0.2s;
}

.delay-2 {
    animation-delay: 0.4s;
}

.delay-3 {
    animation-delay: 0.6s;
}

/* Hero Section */
.hero-sticker-container {
    margin: 60px 0;
    position: relative;
    z-index: 10;
}

.sticker-img {
    width: 400px;
    max-width: 90vw;
    height: auto;
    animation: float 6s ease-in-out infinite, glow 4s ease-in-out infinite alternate;
    border-radius: 20px;
    /* Optional, falls das Bild eckig ist */
}

/* Features Grid */
.features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-top: 60px;
    width: 100%;
}

@media (max-width: 768px) {
    .features {
        gap: 20px;
        margin-top: 40px;
        grid-template-columns: 1fr;
        /* Stack strictly on mobile */
    }
}

.feature-card {
    background: var(--surface);
    padding: 40px;
    border-radius: 30px;
    text-align: left;
    transition: var(--transition);
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.feature-card:hover {
    transform: scale(1.02);
    border-color: rgba(255, 255, 255, 0.1);
}

.feature-icon {
    font-size: 3rem;
    margin-bottom: 20px;
    display: block;
}

.feature-title {
    font-size: 1.5rem;
    margin-bottom: 10px;
    color: var(--text-primary);
}

/* Gallery Grid */
.gallery {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 20px;
    margin-top: 60px;
    width: 100%;
}

.gallery-item {
    aspect-ratio: 1 / 1;
    overflow: hidden;
    border-radius: 20px;
    background: var(--surface);
    transition: var(--transition);
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.gallery-item:hover {
    transform: scale(1.03);
    z-index: 5;
    border-color: var(--accent);
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.8s ease;
}

.gallery-item:hover img {
    transform: scale(1.1);
}

/* Status Bar / Counter */
.status-bar {
    position: absolute;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(20px);
    padding: 10px 20px;
    border-radius: 100px;
    display: flex;
    gap: 15px;
    align-items: center;
    font-size: 0.9rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
    z-index: 100;
}

.dot {
    width: 8px;
    height: 8px;
    background-color: #00ff00;
    border-radius: 50%;
    box-shadow: 0 0 10px #00ff00;
}

/* Form */
.application-section {
    background: #000;
}

.form-container {
    background: var(--surface);
    padding: 60px;
    border-radius: 40px;
    width: 100%;
    max-width: 600px;
    margin: 40px auto;
}

@media (max-width: 768px) {
    .form-container {
        padding: 30px;
        border-radius: 25px;
        margin: 20px auto;
    }
}

input,
textarea {
    width: 100%;
    padding: 20px;
    margin-bottom: 20px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid transparent;
    border-radius: 15px;
    color: white;
    font-size: 1rem;
    font-family: inherit;
    transition: var(--transition);
}

input:focus,
textarea:focus {
    outline: none;
    background: rgba(255, 255, 255, 0.1);
    border-color: var(--accent);
}

button.cta-button {
    background: var(--text-primary);
    color: #000;
    padding: 20px 40px;
    border-radius: 100px;
    font-size: 1.2rem;
    font-weight: 600;
    border: none;
    cursor: pointer;
    transition: var(--transition);
    width: 100%;
}

button.cta-button:hover {
    transform: scale(1.05);
    box-shadow: 0 0 30px rgba(255, 255, 255, 0.3);
}

/* Fixed CTA */
.fixed-cta-container {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 20px;
    padding-bottom: 50px;
    /* Safe area for mobile */
    background: linear-gradient(to top, rgba(0, 0, 0, 1) 30%, rgba(0, 0, 0, 0));
    display: flex;
    justify-content: center;
    z-index: 999;
    pointer-events: none;
}

.fixed-cta-container .cta-button {
    pointer-events: auto;
    box-shadow: 0 0 30px rgba(41, 151, 255, 0.4);
    max-width: 320px;
    font-size: 1rem;
    padding: 15px 30px;
    border: 1px solid rgba(255, 255, 255, 0.5);
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.02);
    }

    100% {
        transform: scale(1);
    }
}

/* Footer */
footer {
    padding: 40px;
    text-align: center;
    color: var(--text-secondary);
    font-size: 0.9rem;
    opacity: 0.5;
}

/* Loser Mode Styles (Matrix/Hacker Theme) */
.loser-mode body {
    background-color: #000 !important;
    font-family: 'Space Mono', monospace !important;
    overflow-x: hidden;
}

.loser-mode .scanlines {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom,
            rgba(255, 255, 255, 0),
            rgba(255, 255, 255, 0) 50%,
            rgba(0, 0, 0, 0.2) 50%,
            rgba(0, 0, 0, 0.2));
    background-size: 100% 4px;
    pointer-events: none;
    z-index: 10000;
}

.loser-mode h1.glitch {
    color: #00ff00;
    font-size: clamp(3rem, 8vw, 6rem);
    text-transform: uppercase;
    text-shadow: 2px 2px #003300;
    animation: glitch 1s infinite alternate;
}

@keyframes glitch {
    0% {
        text-shadow: 2px 2px #003300;
        transform: translate(0, 0);
    }

    20% {
        text-shadow: -2px -2px #003300;
        transform: translate(-2px, 2px);
    }

    40% {
        text-shadow: 2px -2px #003300;
        transform: translate(2px, -2px);
    }

    60% {
        text-shadow: -2px 2px #003300;
        transform: translate(-2px, -2px);
    }

    80% {
        text-shadow: 2px 2px #003300;
        transform: translate(0, 0);
    }

    100% {
        text-shadow: -2px -2px #003300;
        transform: translate(2px, 2px);
    }
}

.loser-mode .video-container {
    width: 100%;
    max-width: 600px;
    margin-bottom: 40px;
    /* No border or shadow as requested */
    border: none;
    box-shadow: none;
}

.loser-mode .message-box {
    border: 1px solid #ff0000;
    background: rgba(20, 0, 0, 0.9);
    color: #ff4d4d;
    padding: 30px;
    max-width: 600px;
    margin: 20px auto;
    text-align: center;
    box-shadow: 0 0 15px rgba(255, 0, 0, 0.2);
    font-family: 'Space Mono', monospace;
}

.loser-mode .restart-link {
    color: #005500 !important;
    border: 1px solid #005500;
    padding: 10px 20px;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    transition: all 0.3s;
    text-decoration: none;
    display: inline-block;
}

.loser-mode .restart-link:hover {
    color: #00ff00 !important;
    border-color: #00ff00 !important;
    box-shadow: 0 0 10px #00ff00;
}

/* Floating Wall Stickers */
.floating-sticker {
    position: fixed;
    width: 80px;
    opacity: 0.4;
    pointer-events: none;
    z-index: 2001;
    filter: drop-shadow(0 0 10px #00ff00);
    /* Matrix glow */
}

@keyframes driftRight {
    from {
        transform: translateX(-20vw) rotate(0deg);
    }

    to {
        transform: translateX(120vw) rotate(360deg);
    }
}

@keyframes driftLeft {
    from {
        transform: translateX(120vw) rotate(0deg);
    }

    to {
        transform: translateX(-20vw) rotate(-360deg);
    }
}