/* --- VARIABLES & GLOBAL STYLES --- */
:root {
    --primary-color: #42b4d9;
    --secondary-color: #00f2ff;
    --dark-bg: #0a0a1a;
    --light-bg: #121224;
    --card-bg: #1a1a2e;
    --text-color: #e0e0e0;
    --light-text: #a0a0c0;
    --border-color: rgba(255, 255, 255, 0.1);
    --font-primary: 'Orbitron', sans-serif;
    --font-secondary: 'Poppins', sans-serif;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-secondary);
    background-color: var(--dark-bg);
    color: var(--text-color);
    line-height: 1.7;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

h1, h2, h3, h4, .logo {
    font-family: var(--font-primary);
    font-weight: 700;
    color: #fff;
}

a {
    text-decoration: none;
    color: var(--primary-color);
    transition: color 0.3s ease;
}

a:hover {
    color: var(--secondary-color);
}

img {
    max-width: 100%;
    display: block;
}

.section-padding {
    padding: 70px 0;
}

.section-bg {
    background-color: var(--light-bg);
}

.text-center {
    text-align: center;
}

.highlight {
    color: var(--primary-color);
}

/* --- ANIMATIONS --- */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-fade-in-up {
    animation: fadeInUp 0.8s ease-out forwards;
}

@keyframes card-hover-glow {
    from {
        box-shadow: 0 0 15px -5px rgba(0, 242, 255, 0.3);
    }
    to {
        box-shadow: 0 0 30px 0px rgba(0, 242, 255, 0.5);
    }
}

.animate-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.animate-card:hover {
    transform: translateY(-10px);
    animation: card-hover-glow 0.5s ease-in-out forwards;
}

/* --- HEADER --- */
.header {
    background: transparent;
    padding: 8px 0 !important; /* Zmenšený padding headeru */
    position: sticky;
    top: 0;
    width: 100%;
    z-index: 1000;
    transition: background-color 0.3s ease, padding 0.3s ease;
}

.header-scrolled {
    background-color: rgba(10, 10, 26, 0.85);
    backdrop-filter: blur(10px);
    padding: 8px 0;
    border-bottom: 1px solid var(--border-color);
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
}

.logo {
    font-size: 1.6rem;
    font-weight: 900;
    white-space: nowrap;
}

.logo span {
    color: var(--primary-color);
}

.main-nav ul {
    list-style: none;
    display: flex;
    gap: 15px;
}

.main-nav a {
	white-space: nowrap;
    font-weight: 600;
    font-size: 1.15rem;
    padding: 5px 0;
    border-bottom: 2px solid transparent;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 6px;
}

.main-nav a:hover,
.main-nav a.active {
    color: #fff;
    border-bottom-color: var(--primary-color);
}

.menu-toggle {
    display: none;
    background: none;
    border: none;
    color: #fff;
    font-size: 1.4rem;
    cursor: pointer;
}

/* --- BUTTONS --- */
.btn {
    display: inline-block;
    padding: 10px 22px;
    border-radius: 5px;
    font-weight: 600;
    font-size: 0.9rem;
    text-transform: uppercase;
    transition: all 0.3s ease;
    border: 2px solid transparent;
    text-align: center;
}

.btn-primary {
    background: var(--primary-color);
    color: var(--dark-bg);
}

.btn-primary:hover {
    background: transparent;
    border-color: var(--primary-color);
    color: var(--primary-color);
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 242, 255, 0.3);
}

.btn-secondary {
    background: transparent;
    color: var(--text-color);
    border-color: var(--light-text);
}

.btn-secondary:hover {
    background: var(--primary-color);
    border-color: var(--primary-color);
    color: var(--dark-bg);
}

.btn-tertiary {
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
}

.btn-tertiary:hover {
    background: rgba(255, 255, 255, 0.2);
}

/* --- HERO SECTION --- */
#hero {
    position: relative;
    padding-top: 5px;
    min-height: 80vh;
    display: flex;
    align-items: center;
    text-align: center;
    background: url('images/bg-hero.webp') no-repeat center center/cover;
    overflow: hidden;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to top, var(--dark-bg) 0%, rgba(10, 10, 26, 0.5) 100%);
}

.hero-content {
    position: relative;
    z-index: 2;
    width: 100%;
    padding: 20px 0;
}

.hero-content img {
    max-width: 800px;
    width: 100%;
    margin: 0 auto 20px;
}

.hero-buttons {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-top: 20px;
}

.hero-buttons .btn i {
    margin-left: 6px;
}

/* --- FEATURES SECTION --- */
.section-title {
    font-size: 4rem;
    text-align: center;
    margin-bottom: 50px;
    position: relative;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -15px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    border-radius: 2px;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 25px;
}

.feature-card {
    background: var(--card-bg);
    padding: 30px;
    text-align: center;
    border: 1px solid var(--border-color);
    border-radius: 8px;
}

.feature-card i {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 20px;
    text-shadow: 0 0 15px var(--primary-color);
}

.feature-card h3 {
    margin-bottom: 15px;
    font-size: 1.3rem;
}

.feature-card p {
    color: var(--light-text);
    line-height: 1.6;
}

/* --- SERVER INFO SECTION --- */
.feature-detailed {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: center;
}

.feature-detailed-text h3 {
    font-size: 2rem;
    margin-bottom: 20px;
}

.feature-detailed-text p {
    color: var(--light-text);
    margin-bottom: 15px;
    line-height: 1.8;
}

.feature-detailed-img img {
    border-radius: 8px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

/* --- FOOTER --- */
.footer {
    background: var(--light-bg);
    padding: 60px 0 0;
    border-top: 3px solid transparent;
    border-image: linear-gradient(90deg, var(--primary-color), var(--secondary-color)) 1;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 30px;
    margin-bottom: 40px;
}

.footer-col h4 {
    font-family: var(--font-primary);
    color: #fff;
    margin-bottom: 20px;
    font-size: 1.2rem;
}

.footer-col p {
    color: var(--light-text);
    margin-bottom: 15px;
}

.social-links {
    display: flex;
    gap: 12px;
}

.social-links a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
    border-radius: 50%;
    transition: all 0.3s ease;
}

.social-links a:hover {
    background: var(--primary-color);
    color: var(--dark-bg);
    transform: translateY(-3px);
}

.footer-bottom {
    border-top: 1px solid var(--border-color);
    padding: 20px 0;
    text-align: center;
    color: var(--light-text);
    font-size: 0.9rem;
}

/* --- RESPONSIVE DESIGN --- */
@media (max-width: 992px) {
    .header-container {
        gap: 15px;
    }
    
    .main-nav ul {
        gap: 12px;
    }
    
    .feature-detailed {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .feature-detailed-img {
        order: -1;
    }
}

@media (max-width: 768px) {
    .header {
        padding: 8px 0;
    }
    
    .logo {
        font-size: 1.4rem;
    }
    
    .menu-toggle {
        display: block;
    }
    
    .main-nav {
        position: fixed;
        top: 0;
        left: -100%;
        width: 80%;
        height: 100vh;
        background: var(--dark-bg);
        flex-direction: column;
        justify-content: center;
        padding: 20px;
        transition: all 0.4s ease;
        z-index: 999;
    }
    
    .main-nav.active {
        left: 0;
    }
    
    .main-nav ul {
        flex-direction: column;
        gap: 25px;
    }
    
    .main-nav a {
        font-size: 1.1rem;
    }
    
    .hero-content img {
        max-width: 350px;
    }
    
    .hero-buttons {
        flex-direction: column;
        gap: 12px;
    }
    
    .btn {
        width: 100%;
        max-width: 250px;
        margin: 0 auto;
    }
    
    .section-title {
        font-size: 1.9rem;
        margin-bottom: 40px;
    }
    
    .section-padding {
        padding: 50px 0;
    }
}

@media (max-width: 480px) {
    .hero-content img {
        max-width: 280px;
    }
    
    .features-grid {
        grid-template-columns: 1fr;
    }
    
    .feature-card {
        padding: 25px 20px;
    }
}
/* --- FLOATING PARTICLES --- */
.particles-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    pointer-events: none;
    overflow: hidden;
}

.particle {
    position: absolute;
    background-color: var(--primary-color);
    border-radius: 50%;
    pointer-events: none;
    opacity: 0.6;
    animation: float linear infinite;
}

@keyframes float {
    0% {
        transform: translateY(0) translateX(0) rotate(0deg);
    }
    100% {
        transform: translateY(-100vh) translateX(20px) rotate(360deg);
    }
}

/* Create particles with different sizes and animations */
.particle:nth-child(1) {
    width: 5px;
    height: 5px;
    left: 10%;
    top: 100%;
    animation-duration: 20s;
    animation-delay: 0s;
}

.particle:nth-child(2) {
    width: 3px;
    height: 3px;
    left: 20%;
    top: 100%;
    animation-duration: 25s;
    animation-delay: 2s;
}

.particle:nth-child(3) {
    width: 4px;
    height: 4px;
    left: 30%;
    top: 100%;
    animation-duration: 18s;
    animation-delay: 1s;
}

.particle:nth-child(4) {
    width: 2px;
    height: 2px;
    left: 40%;
    top: 100%;
    animation-duration: 22s;
    animation-delay: 3s;
}

.particle:nth-child(5) {
    width: 6px;
    height: 6px;
    left: 50%;
    top: 100%;
    animation-duration: 30s;
    animation-delay: 0s;
}

.particle:nth-child(6) {
    width: 3px;
    height: 3px;
    left: 60%;
    top: 100%;
    animation-duration: 19s;
    animation-delay: 4s;
}

.particle:nth-child(7) {
    width: 4px;
    height: 4px;
    left: 70%;
    top: 100%;
    animation-duration: 24s;
    animation-delay: 1s;
}

.particle:nth-child(8) {
    width: 2px;
    height: 2px;
    left: 80%;
    top: 100%;
    animation-duration: 28s;
    animation-delay: 2s;
}

.particle:nth-child(9) {
    width: 5px;
    height: 5px;
    left: 90%;
    top: 100%;
    animation-duration: 26s;
    animation-delay: 3s;
}

.particle:nth-child(10) {
    width: 3px;
    height: 3px;
    left: 15%;
    top: 100%;
    animation-duration: 23s;
    animation-delay: 5s;
}
/* --- MODAL STYLES --- */
.modal {
    display: none;
    position: fixed;
    z-index: 1001;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(5px);
    overflow-y: auto;
}

.modal-content {
    background-color: var(--card-bg);
    margin: 5% auto;
    padding: 0;
    border: 1px solid var(--border-color);
    width: 90%;
    max-width: 800px;
    border-radius: 8px;
    box-shadow: 0 5px 30px rgba(0, 0, 0, 0.5);
    animation: fadeInUp 0.4s ease-out;
}

.modal-header {
    padding: 20px;
    background: var(--light-bg);
    border-bottom: 1px solid var(--border-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-radius: 8px 8px 0 0;
}

.modal-header h2 {
    margin: 0;
    font-size: 1.5rem;
    display: flex;
    align-items: center;
    gap: 10px;
}

.close-modal {
    background: none;
    border: none;
    color: var(--light-text);
    font-size: 2rem;
    cursor: pointer;
    transition: color 0.3s ease;
    padding: 0 10px;
}

.close-modal:hover {
    color: var(--primary-color);
}

.modal-body {
    padding: 20px;
}

.modal-footer {
    padding: 15px 20px;
    background: var(--light-bg);
    border-top: 1px solid var(--border-color);
    text-align: right;
    border-radius: 0 0 8px 8px;
}

/* Rules content styling */
.rules-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.rules-category {
    background: rgba(0, 0, 0, 0.2);
    padding: 15px;
    border-radius: 5px;
    border-left: 3px solid var(--primary-color);
}

.rules-category h3 {
    margin-top: 0;
    margin-bottom: 15px;
    font-size: 1.2rem;
    display: flex;
    align-items: center;
    gap: 8px;
}

.rules-category ul {
    padding-left: 20px;
    margin: 0;
}

.rules-category li {
    margin-bottom: 8px;
    line-height: 1.5;
}

@media (max-width: 768px) {
    .rules-container {
        grid-template-columns: 1fr;
    }
    
    .modal-content {
        margin: 10% auto;
        width: 95%;
    }
}
/* Connect Modal Styles */
.connect-steps {
    display: grid;
    gap: 20px;
    margin-bottom: 30px;
}

.connect-step {
    background: rgba(0, 0, 0, 0.2);
    padding: 15px;
    border-radius: 5px;
    border-left: 3px solid var(--primary-color);
}

.connect-step h3 {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
}

.server-ip-box {
    display: flex;
    gap: 10px;
    margin-top: 10px;
}

.server-ip-box input {
    flex: 1;
    padding: 10px;
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    color: var(--text-color);
    border-radius: 5px;
}

.btn-small {
    padding: 10px 15px;
    font-size: 0.8rem;
}

.connect-troubleshooting {
    background: rgba(255, 0, 0, 0.1);
    padding: 15px;
    border-radius: 5px;
    border-left: 3px solid #ff5555;
}

/* Vote Modal Styles */
.vote-container {
    margin: 20px 0;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.vote-buttons {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 10px;
}

.vote-btn {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px;
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    color: var(--text-color);
    border-radius: 5px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.vote-btn:hover {
    background: var(--primary-color);
    color: var(--dark-bg);
}

.vote-btn img {
    width: 40px;
    height: 40px;
    object-fit: contain;
}

.vote-btn span {
    flex: 1;
    text-align: center;
}

.vote-info {
    margin-top: 20px;
    background: rgba(0, 255, 0, 0.1);
    padding: 15px;
    border-radius: 5px;
    border-left: 3px solid #55ff55;
}

/* Team Modal Styles */
.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.team-member {
    background: var(--card-bg);
    padding: 20px;
    border-radius: 8px;
    text-align: center;
    border: 1px solid var(--border-color);
}

.team-avatar {
    width: 100px;
    height: 100px;
    margin: 0 auto 15px;
    border-radius: 50%;
    background-size: cover;
    background-position: center;
    border: 3px solid var(--primary-color);
}

.team-social {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 15px;
}

.team-social a {
    color: var(--light-text);
    font-size: 1.2rem;
}

.team-social a:hover {
    color: var(--primary-color);
}

.team-join {
    text-align: center;
    padding: 20px;
    background: rgba(0, 0, 0, 0.2);
    border-radius: 8px;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .vote-buttons {
        grid-template-columns: 1fr;
    }
    
    .team-grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 480px) {
    .team-grid {
        grid-template-columns: 1fr;
    }
}