/* Základní nastavení */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --neon-pink: #FF006F;
    --neon-pink-bright: #FF44A8;
    --neon-pink-dark: #CC0059;
    --dark-blue: #0a0e27;
    --dark-blue-light: #151932;
    --dark-gray: #1a1a2e;
    --medium-gray: #2d2d44;
    --light-gray: #4a4a6a;
    --glitch-red: #ff0000;
    --glitch-cyan: #00ffff;
}

body {
    font-family: 'Montserrat', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: #000000;
    color: #ffffff;
    overflow-x: hidden;
    min-height: 100vh;
}

/* Glitch pozadí animace */
.glitch-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    background: 
        repeating-linear-gradient(
            0deg,
            rgba(255, 0, 111, 0.02) 0px,
            transparent 2px,
            transparent 4px,
            rgba(255, 0, 111, 0.02) 6px
        ),
        repeating-linear-gradient(
            90deg,
            rgba(255, 0, 111, 0.02) 0px,
            transparent 2px,
            transparent 4px,
            rgba(255, 0, 111, 0.02) 6px
        ),
        #000000;
    animation: glitch-bg 3s infinite;
}

@keyframes glitch-bg {
    0%, 100% { transform: translate(0, 0); opacity: 1; }
    25% { transform: translate(-2px, 2px); opacity: 0.8; }
    50% { transform: translate(2px, -2px); opacity: 0.9; }
    75% { transform: translate(-1px, -1px); opacity: 0.85; }
}

/* Interaktivní pozadí - síť čar */
.interactive-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    pointer-events: none;
    background-image: 
        linear-gradient(rgba(255, 0, 111, 0.08) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 0, 111, 0.08) 1px, transparent 1px);
    background-size: 50px 50px;
    opacity: 0.3;
    transition: opacity 0.3s ease;
}

/* Body na průsečících */
.interactive-bg::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        radial-gradient(circle 2px, rgba(255, 0, 111, 0.2) 0%, transparent 0%);
    background-size: 50px 50px;
    background-position: 0 0, 25px 25px;
    opacity: 0.4;
}

/* Overlay pro efekt rozsvícení */
.interactive-bg-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 100;
    pointer-events: none;
    background: radial-gradient(
        circle 0px at 50% 50%,
        rgba(255, 0, 111, 0.8) 0%,
        rgba(255, 0, 111, 0.5) 25%,
        rgba(255, 0, 111, 0.3) 40%,
        rgba(255, 0, 111, 0.15) 60%,
        rgba(255, 0, 111, 0.05) 80%,
        transparent 100%
    );
    opacity: 0;
    mix-blend-mode: screen;
    transition: opacity 0.2s ease;
}

/* Hero sekce - Glitch style */
.hero {
    position: relative;
    height: 100vh;
    background: #000000;
    overflow: hidden;
    transition: opacity 0.8s ease-out;
}

.hero.fade-out {
    opacity: 0;
}

/* Wireframe geometrické prvky */
.wireframe-elements {
    position: absolute;
    width: 100%;
    height: 100%;
    z-index: 1;
    opacity: 0.15;
    pointer-events: none;
    background: url('wireframe.svg') no-repeat center center;
    background-size: cover;
    animation: wireframe-float 20s ease-in-out infinite;
}

.wireframe-elements::before,
.wireframe-elements::after {
    content: '';
    position: absolute;
    border: 1px solid rgba(255, 0, 111, 0.3);
    background: transparent;
}

.wireframe-elements::before {
    top: 10%;
    right: 10%;
    width: 300px;
    height: 400px;
    clip-path: polygon(20% 0%, 80% 0%, 100% 50%, 80% 100%, 20% 100%, 0% 50%);
    animation: wireframe-float 8s ease-in-out infinite;
}

.wireframe-elements::after {
    bottom: 15%;
    right: 20%;
    width: 200px;
    height: 250px;
    clip-path: polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%);
    animation: wireframe-float 10s ease-in-out infinite reverse;
}

@keyframes wireframe-float {
    0%, 100% { transform: translate(0, 0) rotate(0deg); }
    50% { transform: translate(20px, -30px) rotate(5deg); }
}

/* SHAPLY nápis vlevo nahoře */
.hero-brand {
    position: absolute;
    top: 40px;
    left: 40px;
    z-index: 10;
}

.glitch-text-top {
    font-size: 3rem;
    font-weight: 700;
    color: var(--neon-pink);
    text-transform: uppercase;
    letter-spacing: 0.3em;
    position: relative;
    text-shadow:
        0 0 3px rgba(255, 0, 111, 0.4),
        0 0 8px rgba(255, 0, 111, 0.2);
    opacity: 0;
    /* Jednorázový efekt polorozbitého neonu po načtení – cca 20 s */
    animation: neon-header-intro 20s forwards;
}

.glitch-text-top::before,
.glitch-text-top::after {
    content: attr(data-text);
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.glitch-text-top::before {
    left: 2px;
    color: var(--glitch-red);
    clip: rect(0, 900px, 0, 0);
}

.glitch-text-top::after {
    left: -2px;
    color: var(--glitch-cyan);
    clip: rect(0, 900px, 0, 0);
}

@keyframes neon-header-intro {
    0% {
        opacity: 0;
        text-shadow: none;
    }
    10% {
        opacity: 1;
        text-shadow:
            0 0 10px var(--neon-pink),
            0 0 25px var(--neon-pink),
            0 0 40px var(--neon-pink);
    }
    30% {
        opacity: 0.4;
        text-shadow:
            0 0 5px var(--neon-pink-dark),
            0 0 10px var(--neon-pink-dark);
    }
    60% {
        opacity: 1;
        text-shadow:
            0 0 12px var(--neon-pink),
            0 0 30px var(--neon-pink);
    }
    85% {
        opacity: 0.3;
        text-shadow:
            0 0 3px rgba(255, 0, 111, 0.3),
            0 0 6px rgba(255, 0, 111, 0.1);
    }
    100% {
        opacity: 0;
        text-shadow: none;
    }
}

.glitch-text-top:hover {
    opacity: 1;
    text-shadow:
        0 0 12px var(--neon-pink),
        0 0 30px var(--neon-pink),
        0 0 45px var(--neon-pink);
}

/* Logo uprostřed */
.hero-center {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 20;
}

.hero-logo-glitch {
    max-width: 500px;
    width: 100%;
    height: auto;
    cursor: pointer;
    transition: opacity 0.8s ease;
    position: relative;
    opacity: 0.3; /* Výchozí stav - zhasnuté logo */
}

@keyframes logo-glitch-intense {
    0%, 100% {
        filter: drop-shadow(0 0 30px var(--neon-pink)) 
                drop-shadow(0 0 60px var(--neon-pink)) 
                drop-shadow(0 0 90px var(--neon-pink));
        transform: translate(0, 0);
    }
    10% {
        filter: drop-shadow(3px 0 30px var(--glitch-red)) 
                drop-shadow(-3px 0 60px var(--glitch-cyan)) 
                drop-shadow(3px 0 90px var(--neon-pink));
        transform: translate(3px, 0);
    }
    20% {
        filter: drop-shadow(-3px 0 30px var(--glitch-cyan)) 
                drop-shadow(3px 0 60px var(--glitch-red)) 
                drop-shadow(-3px 0 90px var(--neon-pink));
        transform: translate(-3px, 0);
    }
    30% {
        filter: drop-shadow(0 3px 30px var(--neon-pink)) 
                drop-shadow(0 -3px 60px var(--glitch-red)) 
                drop-shadow(0 3px 90px var(--glitch-cyan));
        transform: translate(0, 3px);
    }
    40% {
        filter: drop-shadow(0 -3px 30px var(--neon-pink)) 
                drop-shadow(0 3px 60px var(--glitch-cyan)) 
                drop-shadow(0 -3px 90px var(--glitch-red));
        transform: translate(0, -3px);
    }
    50% {
        filter: drop-shadow(2px 2px 30px var(--glitch-red)) 
                drop-shadow(-2px -2px 60px var(--glitch-cyan)) 
                drop-shadow(2px 2px 90px var(--neon-pink));
        transform: translate(2px, 2px);
    }
    60% {
        filter: drop-shadow(-2px -2px 30px var(--glitch-cyan)) 
                drop-shadow(2px 2px 60px var(--glitch-red)) 
                drop-shadow(-2px -2px 90px var(--neon-pink));
        transform: translate(-2px, -2px);
    }
    70% {
        filter: drop-shadow(0 0 30px var(--neon-pink)) 
                drop-shadow(0 0 60px var(--neon-pink)) 
                drop-shadow(0 0 90px var(--neon-pink));
        transform: translate(0, 0);
    }
}

/* Ikona myši dole uprostřed */
.mouse-indicator {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10;
    text-align: center;
}

.mouse-icon {
    width: 30px;
    height: 50px;
    border: 2px solid rgba(255, 100, 180, 0.6);
    border-radius: 15px;
    position: relative;
    margin: 0 auto;
    box-shadow: 0 0 10px rgba(255, 100, 180, 0.4);
    animation: mouse-pulse 2s infinite;
}

.mouse-scroll {
    width: 4px;
    height: 10px;
    background: rgba(255, 100, 180, 0.8);
    border-radius: 2px;
    position: absolute;
    top: 8px;
    left: 50%;
    transform: translateX(-50%);
    box-shadow: 0 0 5px rgba(255, 100, 180, 0.6);
    animation: mouse-scroll-anim 1.5s infinite;
}

@keyframes mouse-pulse {
    0%, 100% {
        box-shadow: 0 0 10px rgba(255, 100, 180, 0.4);
        opacity: 1;
    }
    50% {
        box-shadow: 0 0 20px rgba(255, 100, 180, 0.6), 0 0 30px rgba(255, 100, 180, 0.4);
        opacity: 0.8;
    }
}

@keyframes mouse-scroll-anim {
    0% {
        top: 8px;
        opacity: 1;
    }
    100% {
        top: 25px;
        opacity: 0;
    }
}


/* Glitch text efekt */
.glitch-text {
    font-size: 8rem;
    font-weight: 900;
    color: var(--neon-pink);
    text-transform: uppercase;
    letter-spacing: 0.2em;
    position: relative;
    text-shadow: 
        0 0 10px var(--neon-pink),
        0 0 20px var(--neon-pink),
        0 0 30px var(--neon-pink),
        0 0 40px var(--neon-pink);
    animation: glitch-text 2s infinite;
}

.glitch-text::before,
.glitch-text::after {
    content: attr(data-text);
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.glitch-text::before {
    left: 2px;
    text-shadow: 
        -2px 0 var(--glitch-red),
        2px 2px var(--glitch-cyan);
    clip: rect(44px, 450px, 56px, 0);
    animation: glitch-anim 3s infinite linear alternate-reverse;
}

.glitch-text::after {
    left: -2px;
    text-shadow: 
        2px 0 var(--glitch-cyan),
        -2px -2px var(--glitch-red);
    clip: rect(44px, 450px, 56px, 0);
    animation: glitch-anim 2s infinite linear alternate-reverse;
}

@keyframes glitch-anim {
    0% { clip: rect(31px, 9999px, 94px, 0); }
    20% { clip: rect(54px, 9999px, 67px, 0); }
    40% { clip: rect(28px, 9999px, 91px, 0); }
    60% { clip: rect(42px, 9999px, 73px, 0); }
    80% { clip: rect(30px, 9999px, 95px, 0); }
    100% { clip: rect(88px, 9999px, 98px, 0); }
}

@keyframes glitch-text {
    0%, 100% { transform: translate(0); }
    20% { transform: translate(-2px, 2px); }
    40% { transform: translate(-2px, -2px); }
    60% { transform: translate(2px, 2px); }
    80% { transform: translate(2px, -2px); }
}

.hero-subtitle {
    font-size: 1.5rem;
    color: var(--light-gray);
    margin-top: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.3em;
}

/* Scroll indikátor */
.scroll-indicator {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 2;
}

.scroll-indicator span {
    display: block;
    width: 30px;
    height: 50px;
    border: 2px solid var(--neon-pink);
    border-radius: 25px;
    position: relative;
    box-shadow: 0 0 10px var(--neon-pink);
}

.scroll-indicator span::before {
    content: '';
    position: absolute;
    top: 10px;
    left: 50%;
    transform: translateX(-50%);
    width: 6px;
    height: 6px;
    background: var(--neon-pink);
    border-radius: 50%;
    animation: scroll-down 1.5s infinite;
    box-shadow: 0 0 10px var(--neon-pink);
}

@keyframes scroll-down {
    0% { top: 10px; opacity: 1; }
    100% { top: 30px; opacity: 0; }
}

/* Sekce obecně */
.section {
    position: relative;
    min-height: 100vh;
    padding: 100px 20px;
    display: flex;
    align-items: center;
    opacity: 0;
    transform: translateY(50px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.section.visible {
    opacity: 1;
    transform: translateY(0);
}

.glitch-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        repeating-linear-gradient(
            0deg,
            transparent,
            transparent 2px,
            rgba(255, 0, 111, 0.03) 2px,
            rgba(255, 0, 111, 0.03) 4px
        );
    pointer-events: none;
    animation: scan 10s linear infinite;
}

@keyframes scan {
    0% { transform: translateY(0); }
    100% { transform: translateY(100vh); }
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    width: 100%;
    z-index: 1;
    position: relative;
}

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

/* Neon text */
.neon-text {
    font-size: 4rem;
    font-weight: 700;
    color: var(--neon-pink);
    text-transform: uppercase;
    letter-spacing: 0.2em;
    margin-bottom: 3rem;
    text-shadow: 
        0 0 10px var(--neon-pink),
        0 0 20px var(--neon-pink),
        0 0 30px var(--neon-pink),
        0 0 40px var(--neon-pink);
    animation: neon-flicker 3s infinite alternate;
}

.neon-text-small {
    font-size: 2rem;
    color: var(--neon-pink);
    text-shadow: 
        0 0 5px var(--neon-pink),
        0 0 10px var(--neon-pink),
        0 0 15px var(--neon-pink);
    margin-bottom: 1rem;
}

@keyframes neon-flicker {
    0%, 100% { opacity: 1; }
    41% { opacity: 1; }
    42% { opacity: 0.8; }
    43% { opacity: 1; }
    45% { opacity: 0.7; }
    46% { opacity: 1; }
}

/* TeamSpeak sekce */
.teamspeak-section {
    background: #000000;
}

.server-info {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 2rem;
}

.server-card {
    background: rgba(0, 0, 0, 0.6);
    border: 1px solid var(--neon-pink);
    border-radius: 0;
    padding: 3rem;
    max-width: 500px;
    width: 100%;
    box-shadow: 
        0 0 20px rgba(255, 0, 111, 0.2),
        inset 0 0 20px rgba(255, 0, 111, 0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    position: relative;
    overflow: hidden;
}

.server-card::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(
        45deg,
        transparent,
        rgba(255, 0, 111, 0.1),
        transparent
    );
    transform: rotate(45deg);
    animation: shimmer 3s infinite;
}

@keyframes shimmer {
    0% { transform: translateX(-100%) translateY(-100%) rotate(45deg); }
    100% { transform: translateX(100%) translateY(100%) rotate(45deg); }
}

.server-card:hover {
    transform: translateY(-10px);
    box-shadow: 
        0 0 30px rgba(255, 0, 111, 0.5),
        inset 0 0 30px rgba(255, 0, 111, 0.2);
}

.server-icon {
    font-size: 4rem;
    margin-bottom: 1rem;
}


.server-description {
    color: var(--light-gray);
    margin: 1.5rem 0;
    line-height: 1.6;
    font-size: 1.1rem;
}

.server-details {
    text-align: left;
    margin: 2rem 0;
    color: var(--light-gray);
}

.server-details p {
    margin: 0.5rem 0;
    font-size: 0.95rem;
}

.neon-accent {
    color: var(--neon-pink);
    font-weight: 600;
}

/* Tlačítka */
.connect-button,
.map-button {
    display: inline-block;
    padding: 15px 40px;
    margin-top: 1.5rem;
    background: transparent;
    border: 2px solid rgba(255, 0, 111, 0.3);
    color: rgba(255, 0, 111, 0.5);
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    font-weight: 600;
    position: relative;
    overflow: hidden;
    transition: all 0.5s ease;
    cursor: pointer;
    box-shadow: 0 0 10px rgba(255, 0, 111, 0.2);
    opacity: 0.6;
}

.connect-button::before,
.map-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: var(--neon-pink);
    transition: left 0.3s ease;
    z-index: -1;
}

.connect-button:hover::before,
.map-button:hover::before {
    left: 0;
}

.connect-button:hover,
.map-button:hover {
    color: var(--dark-gray);
    box-shadow: 0 0 25px rgba(255, 0, 111, 0.6);
    transform: scale(1.05);
}

/* Minecraft sekce */
.minecraft-section {
    background: #000000;
}

.minecraft-card {
    max-width: 600px;
}

.map-container {
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 0, 111, 0.3);
}

/* Coming Soon sekce */
.coming-soon-section {
    background: #000000;
}

.coming-soon-content {
    max-width: 800px;
    margin: 0 auto;
}

.coming-soon-text {
    font-size: 1.5rem;
    color: var(--light-gray);
    line-height: 1.8;
    margin-bottom: 3rem;
}

.loading-dots {
    display: flex;
    justify-content: center;
    gap: 1rem;
}

.loading-dots span {
    width: 15px;
    height: 15px;
    background: var(--neon-pink);
    border-radius: 50%;
    box-shadow: 0 0 10px var(--neon-pink);
    animation: dot-pulse 1.4s infinite ease-in-out;
}

.loading-dots span:nth-child(2) {
    animation-delay: 0.2s;
}

.loading-dots span:nth-child(3) {
    animation-delay: 0.4s;
}

@keyframes dot-pulse {
    0%, 80%, 100% { transform: scale(0.8); opacity: 0.5; }
    40% { transform: scale(1.2); opacity: 1; }
}

/* Kontakt sekce */
.contact-section {
    background: #000000;
}

.contact-info {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 3rem;
    max-width: 1000px;
    margin: 0 auto;
}

.contact-item {
    flex: 1;
    min-width: 250px;
    padding: 2rem;
    background: rgba(26, 26, 46, 0.5);
    border: 2px solid rgba(255, 0, 111, 0.3);
    border-radius: 15px;
    transition: all 0.3s ease;
}

.contact-item:hover {
    border-color: var(--neon-pink);
    box-shadow: 0 0 20px rgba(255, 0, 111, 0.4);
    transform: translateY(-5px);
}

.contact-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.contact-item p {
    color: var(--light-gray);
    margin-bottom: 0.5rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    font-size: 0.9rem;
}

.neon-link {
    color: var(--neon-pink);
    text-decoration: none;
    font-size: 1.1rem;
    font-weight: 600;
    transition: all 0.3s ease;
    display: inline-block;
    text-shadow: 0 0 5px rgba(255, 0, 111, 0.5);
}

.neon-link:hover {
    color: var(--neon-pink-bright);
    text-shadow: 0 0 10px rgba(255, 0, 111, 0.8);
    transform: scale(1.05);
}

/* Footer */
.footer {
    background: #000000;
    padding: 2rem 20px;
    text-align: center;
    border-top: 1px solid rgba(255, 0, 111, 0.2);
}

.copyright {
    color: var(--light-gray);
    font-size: 0.9rem;
    letter-spacing: 0.1em;
}

/* Responzivní design */
@media (max-width: 768px) {
    .glitch-text-top {
        font-size: 2rem;
        letter-spacing: 0.2em;
    }
    
    .hero-brand {
        top: 20px;
        left: 20px;
    }
    
    .hero-logo-glitch {
        max-width: 300px;
    }
    
    
    .neon-text {
        font-size: 2.5rem;
    }
    
    .server-card {
        padding: 2rem;
    }
    
    .coming-soon-text {
        font-size: 1.2rem;
    }
    
    .contact-info {
        flex-direction: column;
        gap: 1.5rem;
    }
}

@media (max-width: 480px) {
    .glitch-text-top {
        font-size: 1.5rem;
        letter-spacing: 0.1em;
    }
    
    .hero-logo-glitch {
        max-width: 250px;
    }
    
    .mouse-indicator {
        display: none;
    }
    
    .neon-text {
        font-size: 2rem;
    }
    
    .section {
        padding: 60px 20px;
    }
}

