@import url('https://fonts.googleapis.com/css2?family=New+Rocker&family=Splash&family=Tillana:wght@400;500;600;700;800&display=swap');

:root {
    color-scheme: dark;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    min-height: 100vh;
    font-family: 'Tillana', system-ui, sans-serif;
    color: #ffffff;
    background: #000000;
    overflow-x: hidden;
    padding-top: 75px;
    padding-bottom: 0;
}

body.curtain-open {
    overflow: hidden;
}

.page-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    background: rgba(0, 0, 0, 0.75);
    border-bottom: 2px solid rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(12px);
    height: 75px;
    display: flex;
    align-items: center;
}

.header-container {
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 32px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 32px;
}

.header-title {
    font-family: 'Splash', cursive;
    font-size: clamp(1.5rem, 3vw, 2.2rem);
    font-weight: 400;
    flex-shrink: 0;
    letter-spacing: 0.05em;
}

.header-nav {
    display: flex;
    gap: 8px;
    justify-content: flex-end;
    flex-wrap: wrap;
}

.nav-button {
    padding: 8px 16px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.25);
    border-radius: 20px;
    color: #ffffff;
    text-decoration: none;
    font-size: clamp(0.75rem, 1.2vw, 0.95rem);
    transition: all 0.25s ease;
    cursor: pointer;
    letter-spacing: 0.02em;
}

.nav-button:hover {
    background: rgba(255, 255, 255, 0.15);
    border-color: rgba(255, 255, 255, 0.45);
    transform: translateY(-2px);
}

.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    color: #ffffff;
    font-size: 2rem;
    cursor: pointer;
    padding: 0;
    align-items: center;
    justify-content: center;
    z-index: 101;
    transition: transform 0.25s ease;
}

.mobile-menu-toggle:hover {
    transform: scale(1.1);
}

.mobile-curtain-backdrop {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.6);
    z-index: 99;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.mobile-curtain-backdrop.open {
    opacity: 1;
    pointer-events: auto;
}

.mobile-curtain {
    display: none;
    position: fixed;
    top: 0;
    right: -100%;
    width: 100%;
    max-width: 320px;
    height: 100vh;
    background: rgba(0, 0, 0, 0.95);
    border-left: 2px solid rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(12px);
    z-index: 100;
    transition: right 0.3s ease;
    padding: 80px 20px 20px;
    flex-direction: column;
    gap: 16px;
}

.mobile-curtain.open {
    right: 0;
}

.mobile-curtain-close {
    position: absolute;
    top: 20px;
    right: 20px;
    background: none;
    border: none;
    color: #ffffff;
    font-size: 2rem;
    cursor: pointer;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    transition: transform 0.25s ease;
}

.mobile-curtain-close:hover {
    transform: scale(1.1);
}

.mobile-curtain-nav {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.mobile-nav-link {
    padding: 12px 16px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.25);
    border-radius: 20px;
    color: #ffffff;
    text-decoration: none;
    font-size: 0.95rem;
    transition: all 0.25s ease;
    cursor: pointer;
    letter-spacing: 0.02em;
    text-align: center;
}

.mobile-nav-link:hover {
    background: rgba(255, 255, 255, 0.15);
    border-color: rgba(255, 255, 255, 0.45);
    transform: translateY(-2px);
}

.page-bg,
.page-overlay {
    position: fixed;
    inset: 0;
    z-index: 0;
}

.page-bg {
    background-image: url('png_veci/backround2.gif');
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
    filter: blur(5px);
    transform: scale(1.05);
}

.page-overlay {
    background: rgba(0, 0, 0, 0.45);
}

.page-shell {
    position: relative;
    z-index: 1;
    scroll-snap-type: y mandatory;
}

.page-section {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 80px 24px;
    scroll-snap-align: start;
}

.intro-section {
    padding-top: 2.05em;
}

.glass-card {
    width: min(100%, 1080px);
    background: rgba(0, 0, 0, 0.55);
    border: 2px solid rgba(0, 0, 0, 1);
    border-radius: 28px;
    padding: 34px;
    box-shadow: 0 24px 70px rgba(0, 0, 0, 0.55);
    backdrop-filter: blur(8px);
}

/* Make the Postavy section card wider so four character cards fit in a row */
#section2 .glass-card {
    width: min(100%, 1400px);
}

.glass-card-two {
    width: min(100%, 1920px);
    background: rgba(0, 0, 0, 0.55);
    border: 2px solid rgba(0, 0, 0, 1);
    border-radius: 28px;
    padding: 34px;
    box-shadow: 0 24px 70px rgba(0, 0, 0, 0.55);
    backdrop-filter: blur(8px);
}

h1,
h2, h3 {
    margin: 0;
    text-align: center;
    letter-spacing: 0.04em;
}

h1 {
    font-family: "Splash", cursive;
    font-weight: 400;
    font-style: normal;
    font-size: 4vw;
    margin-bottom: 20px;
}

h2, h3 {
    font-family: "Splash", cursive;
    font-weight: 400;
    font-style: normal;
    font-size: 3vw;
    margin-bottom: 18px;
}

.section-text {
    font-size: 1.25rem;
    line-height: 1.75;
    margin: 0 auto;
}

.character-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 40px;
    justify-content: center;
    align-items: center;
    margin-top: 28px;
}

.character-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
    flex: 0 0 260px;
    min-width: 220px;
    max-width: 320px;
    aspect-ratio: 30/46;
    padding: 15px;
    background: rgba(0, 0, 0, 0.418);
    border-radius: 15px;
    box-shadow: 0 0 20px rgba(255, 255, 255, 0.3);
    overflow: hidden;
    text-decoration: none;
    color: rgb(255, 255, 255);
}

.character-card img {
    width: 100%;
    max-width: 100%;
    flex: 1 1 auto;
    min-height: 0;
    height: 100%;
    object-fit: cover;
    object-position: 44% center;
    display: block;
    border-radius: 10px;
}

.card-title {
    font-size: 1rem;
    letter-spacing: 0.18em;
    text-transform: uppercase;
}

.section-content {
    width: min(100%, 1200px);
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.section-content h2 {
    margin-bottom: 40px;
}

.items-grid {
    display: flex;
    flex-direction: column;
    gap: 32px;
    width: 100%;
}

.item-with-text {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.item-with-text img {
    width: 100%;
    display: block;
    border-radius: 20px;
    border: 2px solid rgba(255, 255, 255, 0.15);
    box-shadow: 0 18px 55px rgba(0, 0, 0, 0.45);
    object-fit: contain;
    height: auto;
}

.item-text {
    padding: 20px !important;
    text-align: center;
}

.item-text h3 {
    margin: 0 0 12px 0;
    font-size: 2rem;
    letter-spacing: 0.1em;
}

.item-text .section-text {
    font-size: 0.85rem;
}

.two-column {
    display: flex;
    align-items: flex-start;
    justify-content: center;
    gap: 32px;
    flex-wrap: wrap;
    width: min(100%, 1180px);
}

.image-list {
    flex: 1 1 320px;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.image-list img {
    width: 100%;
    display: block;
    border-radius: 20px;
    border: 2px solid rgba(255, 255, 255, 0.15);
    box-shadow: 0 18px 55px rgba(0, 0, 0, 0.45);
    object-fit: cover;
    left: 20%;
}

.reverse {
    flex-direction: row-reverse;
}

.center-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.star-button {
    margin-top: -2vh;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 32px 28px;
    color: rgb(255, 255, 255);
    background: linear-gradient(135deg, #000000, #949494, #fdfdfd);
    clip-path: polygon(50% 0%, 61% 35%, 98% 35%, 68% 57%, 79% 91%, 50% 70%, 21% 91%, 32% 57%, 2% 35%, 39% 35%);
    transition: transform 0.3s ease, background 0.3s ease;
    position: relative;
    transform-origin: center;
}

.star-button .button-text {
    display: inline-block;
    font-size: 8vw;
    transform: scale(0.55);
    transform-origin: center;
      font-family: "Splash", cursive;
    font-weight: 400;
    font-style: normal;
    text-decoration: none !important;
}

.star-button:hover {
    color: rgb(253, 107, 107);
    cursor: pointer;
    transform: scale(1.15);
    background: linear-gradient(135deg, rgb(0, 0, 0), rgb(200, 50, 50));
}
 
.contact-section .glass-card {
    max-width: 560px;
    text-align: center;
}

.contact-section a {
    display: inline-block;
    margin-top: 12px;
    color: #ffffff;
    text-decoration: underline;
    font-size: clamp(1rem, 1.3vw, 1.2rem);
}

.top-button {
    position: fixed;
    right: 24px;
    bottom: 24px;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    border: 2px solid rgba(255, 255, 255, 0.95);
    background: rgba(0, 0, 0, 0.6);
    color: #ffffff;
    font-size: 2.23rem;
    display: flex;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.25s ease, transform 0.25s ease;
    z-index: 5;
}

.top-button.visible {
    opacity: 1;
    pointer-events: auto;
}

@media (max-width: 1024px) {
    .header-container {
        padding: 0 20px;
        gap: 20px;
    }
    .nav-button {
        padding: 6px 12px;
        font-size: 0.85rem;
    }
}

@media (max-width: 900px) {
    .mobile-menu-toggle {
        display: flex;
    }
    .header-nav {
        display: none;
    }
    .mobile-curtain-backdrop {
        display: block;
    }
    .mobile-curtain {
        display: flex;
    }
    .page-section {
        padding: 64px 18px;
    }
    .glass-card {
        padding: 26px;
    }
    .two-column {
        flex-direction: column;
    }
    .top-button {
        right: 16px;
        bottom: 16px;
    }
    .header-container {
        flex-direction: row;
        gap: 12px;
        padding: 0 16px;
    }
    .star-button {
        font-size: 3.6em;
        padding: 16px 14px;
        width: 40vw;
        height: 35vw;
        clip-path: polygon(50% 0%, 61% 35%, 98% 35%, 68% 57%, 79% 91%, 50% 70%, 21% 91%, 32% 57%, 2% 35%, 39% 35%);
    }
    .star-button .button-text {
        font-size: 3.5rem;
        transform: scale(0.55);
    }
}

.page-footer {
    display: block;
    padding: 3px 3px;
    max-width: 1920px;
    color: rgba(255, 255, 255, 0.95);
    text-align: center;
    font-size: 1rem;
    letter-spacing: 0.1em;
    background: rgba(0, 0, 0, 0.7);
    border-top: 1px solid rgba(255, 255, 255, 0.12);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05);
    position: relative;
    z-index: 1;
}

@media (max-width: 600px) {
    h1 {
        font-size: clamp(2.5rem, 10vw, 4rem);
    }
    h2 {
        font-size: clamp(1.8rem, 8vw, 2.6rem);
    }
    .section-text {
        font-size: 1rem;
    }
    .character-grid {
        gap: 18px;
    }
    .items-grid {
        gap: 20px;
    }
    .item-text {
        padding: 16px !important;
    }
    .item-text h3 {
        font-size: 1rem;
    }
}
