:root {
    --primary-color: #0b0f19;
    /* Very dark blue from background */
    --accent-color: #00e5ff;
    /* Cyan neon */
    --accent-secondary: #ff00ff;
    /* Magenta neon */
    --text-color: #333;
    --bg-color: #ffffff;
    /* User explicitly requested a white background */
    --frame-bg: rgba(11, 15, 25, 0.95);
    /* Dark background for frame to match poster */

    --shadow-soft: 0 4px 20px rgba(0, 0, 0, 0.05);
    --shadow-glow: 0 0 30px rgba(0, 229, 255, 0.2);

    --border-radius-large: 26px;
    --border-radius-medium: 16px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Outfit', sans-serif;
    background-color: var(--bg-color);
    color: var(--text-color);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* Header & Navigation */
.main-header {
    background-color: var(--bg-color);
    padding: 20px 40px;
    position: sticky;
    top: 0;
    z-index: 100;
}

.header-content {
    max-width: 1400px;
    margin: 0 auto;
    display: grid;
    /* Grid enables perfect centering of the logo while pushing menu right */
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    gap: 40px;
    /* Přidáno zvětšení mezery mezi logem a menu */
}

.logo-container {
    grid-column: 2;
    /* Centered column */
    text-align: center;
}

.logo {
    max-height: 140px;
    width: auto;
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.logo:hover {
    transform: scale(1.05);
}

.main-nav {
    display: flex;
    /* Menu je nyní viditelné */
}

.nav-left {
    justify-content: flex-end;
}

.nav-right {
    justify-content: flex-start;
}

.main-nav ul {
    list-style: none;
    display: flex;
    gap: 40px;
}

.main-nav a {
    text-decoration: none;
    color: var(--text-color);
    font-weight: 600;
    font-size: 1.15rem;
    position: relative;
    padding: 8px 0;
    transition: color 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1.5px;
}

/* Creative underline effect using neon accent gradients */
.main-nav a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--accent-color), var(--accent-secondary));
    transition: width 0.3s ease;
    border-radius: 2px;
}

.main-nav a:hover::after,
.main-nav a.active::after {
    width: 100%;
}

.main-nav a:hover {
    color: var(--primary-color);
}

/* Hamburger Menu Button */
.hamburger-btn {
    display: none;
    background: transparent;
    border: none;
    cursor: pointer;
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    height: 24px;
    padding: 0;
    z-index: 200;
}

.hamburger-btn span {
    display: block;
    width: 100%;
    height: 3px;
    background: var(--text-color);
    border-radius: 2px;
    transition: transform 0.3s cubic-bezier(0.77, 0.2, 0.05, 1), background 0.3s ease, opacity 0.3s ease;
}

body.menu-open .hamburger-btn span:nth-child(1) {
    transform: translateY(10.5px) rotate(45deg);
    background: var(--accent-color);
}

body.menu-open .hamburger-btn span:nth-child(2) {
    opacity: 0;
}

body.menu-open .hamburger-btn span:nth-child(3) {
    transform: translateY(-10.5px) rotate(-45deg);
    background: var(--accent-color);
}

/* Main Content Area */
.main-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;
    padding: 20px 20px;
    gap: 40px;
}

/* Premium Frame holding the image */
.glass-frame {
    background: var(--frame-bg);
    padding: 24px;
    border-radius: var(--border-radius-large);
    /* Complex shadow setup to simulate premium cyber-glow effect */
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.3),
        0 0 0 1px rgba(255, 255, 255, 0.05) inset,
        var(--shadow-glow);
    max-width: 1000px;
    width: 100%;
    margin: 0 auto;
    position: relative;
    transform: translateY(20px);
    opacity: 0;
    animation: fadeAndSlideIn 1s cubic-bezier(0.2, 0.8, 0.2, 1) forwards;
}

/* Futuristic neon border accent utilizing pseudo-element */
.glass-frame::before {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: linear-gradient(135deg, var(--accent-color), transparent 40%, transparent 60%, var(--accent-secondary));
    z-index: -1;
    border-radius: calc(var(--border-radius-large) + 2px);
    opacity: 0.8;
    animation: borderPulse 4s ease-in-out infinite alternate;
}

.image-wrapper {
    position: relative;
    border-radius: var(--border-radius-medium);
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5) inset;
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: #000;
}

.hero-image {
    width: auto;
    max-width: 100%;
    max-height: 50vh;
    object-fit: contain;
    display: block;
    transition: transform 0.6s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.glass-frame:hover .hero-image {
    transform: scale(1.03);
    /* Subtle zoom on interact */
}

/* Animations */
@keyframes fadeAndSlideIn {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes borderPulse {
    0% {
        opacity: 0.4;
    }

    100% {
        opacity: 1;
    }
}

/* Responsive constraints */
@media (max-width: 900px) {
    .header-content {
        display: flex;
        justify-content: space-between;
        align-items: center;
        gap: 0;
    }

    .logo-container {
        order: 2;
        flex-grow: 1;
        text-align: center;
    }

    .logo {
        max-height: 80px; 
    }

    .hamburger-btn {
        display: flex;
        order: 1;
    }

    /* Wrap navigation into full screen menu */
    .main-nav {
        position: fixed;
        left: 0;
        top: 0;
        width: 100%;
        height: 100vh;
        z-index: 90;
        flex-direction: column;
        align-items: center;
        transition: transform 0.4s cubic-bezier(0.77, 0.2, 0.05, 1);
        overflow: hidden;
    }

    /* Top Half Background */
    .nav-left {
        background: rgba(11, 15, 25, 0.98);
        transform: translateY(-100%);
        justify-content: flex-start;
        padding-top: 15vh;
    }
    
    body.menu-open .nav-left { transform: translateY(0); }

    /* Bottom Half (Transparent overlay) */
    .nav-right {
        background: transparent;
        pointer-events: none;
        transform: translateY(100%);
        justify-content: flex-start;
        padding-top: 55vh;
    }
    
    body.menu-open .nav-right { transform: translateY(0); }
    
    .nav-right ul {
        pointer-events: auto;
    }

    .main-nav ul {
        flex-direction: column;
        gap: 30px;
    }

    .main-nav a {
        font-size: 1.5rem;
        color: #fff;
    }

    .glass-frame {
        padding: 10px;
        border-radius: 15px;
    }
    
    .glass-panel {
        padding: 20px;
    }
    
    .event-info-section {
        padding: 0 10px;
    }
    
    .schedule-block {
        padding: 15px;
    }
}

/* Event Information Section */
.event-info-section {
    width: 100%;
    max-width: 1000px;
    margin: 0 auto;
    animation: fadeAndSlideIn 1s cubic-bezier(0.2, 0.8, 0.2, 1) 0.5s forwards;
    opacity: 0;
    transform: translateY(20px);
}

.glass-panel {
    background: var(--frame-bg);
    border-radius: var(--border-radius-large);
    padding: 40px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.3),
        0 0 0 1px rgba(255, 255, 255, 0.05) inset,
        var(--shadow-glow);
    position: relative;
    overflow: hidden;
    color: #fff;
}

.glass-panel::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--accent-color), var(--accent-secondary));
}

.glitch-text {
    font-size: 2.5rem;
    font-weight: 800;
    text-align: center;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 10px;
    background: linear-gradient(90deg, #fff, #ddd);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: 0 0 20px rgba(255,255,255,0.2);
}

.subtitle {
    font-size: 1.2rem;
    color: var(--accent-color);
    text-align: center;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 3px;
    margin-bottom: 30px;
}

.event-meta {
    display: flex;
    justify-content: center;
    gap: 40px;
    margin-bottom: 50px;
    flex-wrap: wrap;
}

.meta-item {
    display: flex;
    align-items: center;
    gap: 10px;
    background: rgba(255, 255, 255, 0.05);
    padding: 12px 24px;
    border-radius: 50px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
    text-decoration: none;
    color: inherit;
}

.meta-item.link-item {
    background: rgba(0, 229, 255, 0.1);
    border-color: rgba(0, 229, 255, 0.3);
    box-shadow: 0 0 10px rgba(0, 229, 255, 0.1);
    cursor: pointer;
}

.meta-item.link-item:hover {
    background: rgba(0, 229, 255, 0.2);
    border-color: var(--accent-color);
    box-shadow: 0 0 20px rgba(0, 229, 255, 0.4);
    transform: translateY(-2px) scale(1.02);
}

.meta-item.register-item {
    background: rgba(255, 0, 255, 0.1);
    border-color: rgba(255, 0, 255, 0.3);
    box-shadow: 0 0 10px rgba(255, 0, 255, 0.1);
    cursor: pointer;
}

.meta-item.register-item:hover {
    background: rgba(255, 0, 255, 0.2);
    border-color: var(--accent-secondary);
    box-shadow: 0 0 20px rgba(255, 0, 255, 0.4);
    transform: translateY(-2px) scale(1.02);
}

.meta-item:not(.link-item):not(.register-item):hover {
    border-color: var(--accent-color);
    box-shadow: 0 0 15px rgba(0, 229, 255, 0.2);
    transform: translateY(-2px);
}

.meta-icon {
    font-size: 1.2rem;
}

.meta-text {
    font-size: 1.1rem;
    font-weight: 600;
}

.schedule-container {
    background: rgba(0, 0, 0, 0.2);
    border-radius: var(--border-radius-medium);
    padding: 30px;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.schedule-title {
    font-size: 1.8rem;
    color: #fff;
    margin-bottom: 5px;
    text-align: center;
}

.schedule-subtitle {
    color: #aaa;
    text-align: center;
    margin-bottom: 30px;
    font-size: 1.1rem;
}

.schedule-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 25px;
}

.schedule-block {
    background: linear-gradient(135deg, rgba(11, 15, 25, 0.9), rgba(20, 30, 48, 0.9));
    border-radius: var(--border-radius-medium);
    padding: 25px;
    border: 1px solid rgba(0, 229, 255, 0.2);
    position: relative;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.schedule-block::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: linear-gradient(90deg, var(--accent-color), var(--accent-secondary));
}

.schedule-block:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5), 0 0 15px rgba(0, 229, 255, 0.1);
    border-color: rgba(0, 229, 255, 0.3);
}

.block-header {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.block-number {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, var(--accent-color), var(--accent-secondary));
    color: #0b0f19;
    font-weight: 800;
    font-size: 1.2rem;
    border-radius: 50%;
    box-shadow: 0 0 15px rgba(0, 229, 255, 0.4);
}

.block-header h4 {
    font-size: 1.2rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #fff;
}

.schedule-list {
    list-style: none;
    flex-grow: 1;
}

.schedule-list li {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    padding: 10px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    gap: 15px;
}

.schedule-list li:last-child {
    border-bottom: none;
}

.category {
    font-weight: 600;
    color: #ddd;
    line-height: 1.4;
}

.time {
    color: var(--accent-color);
    font-weight: 800;
    white-space: nowrap;
    background: rgba(0, 229, 255, 0.1);
    padding: 4px 10px;
    border-radius: 4px;
    font-size: 0.9rem;
}

.block-footer {
    margin-top: 20px;
    padding: 12px;
    background: rgba(255, 0, 255, 0.15);
    border-radius: 8px;
    color: #fff;
    font-weight: 600;
    text-align: center;
    border: 1px solid rgba(255, 0, 255, 0.3);
}

.block-footer.outline {
    background: transparent;
    border: 1px dashed rgba(255, 0, 255, 0.5);
}

.sub-block {
    margin-bottom: 25px;
    background: rgba(0, 0, 0, 0.3);
    padding: 20px;
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.sub-block:last-of-type {
    margin-bottom: 0;
}

.sub-block-time {
    margin-top: 15px;
    text-align: right;
    font-weight: 800;
    color: var(--accent-color);
    font-size: 1.1rem;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 10px;
}

.sub-block-time::before {
    content: '';
    flex-grow: 1;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(0, 229, 255, 0.3));
}

@media (max-width: 768px) {
    .schedule-grid {
        grid-template-columns: 1fr;
    }
    
    .event-meta {
        flex-direction: column;
        gap: 15px;
        align-items: stretch;
    }
    
    .meta-item {
        justify-content: center;
    }
    
    .schedule-list li {
        flex-direction: column;
        gap: 5px;
    }
    
    .time {
        align-self: flex-start;
    }
    
    .glitch-text {
        font-size: 1.8rem;
    }
}

/* Fee Info Box */
.fee-info-box {
    margin-top: 40px;
    background: linear-gradient(135deg, rgba(11, 15, 25, 0.9), rgba(20, 30, 48, 0.9));
    border: 1px solid rgba(0, 229, 255, 0.2);
    border-radius: var(--border-radius-medium);
    padding: 25px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.fee-info-box::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: linear-gradient(90deg, var(--accent-color), var(--accent-secondary));
}

.fee-title {
    font-size: 1.5rem;
    color: #fff;
    margin-bottom: 15px;
    text-transform: uppercase;
    letter-spacing: 1px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.fee-content {
    display: flex;
    flex-direction: column;
    gap: 15px;
    color: #ddd;
    font-size: 1.1rem;
}

.fee-amount {
    font-size: 2rem;
    font-weight: 800;
    color: var(--accent-secondary);
    text-shadow: 0 0 15px rgba(255, 0, 255, 0.3);
    display: block;
    margin: 5px 0;
}

/* Footer & Sponsors */
.main-footer {
    padding: 60px 20px 40px;
    text-align: center;
    width: 100%;
    margin-top: auto;
}

.sponsor-logo {
    max-width: 280px;
    height: auto;
    opacity: 0.7;
    transition: all 0.3s ease;
    filter: drop-shadow(0 0 10px rgba(0, 0, 0, 0.1));
}

.sponsor-logo:hover {
    opacity: 1;
    transform: scale(1.05);
    filter: drop-shadow(0 0 20px rgba(0, 229, 255, 0.2));
}

@media (max-width: 768px) {
    .sponsor-logo {
        max-width: 200px;
    }
}