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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Poppins', sans-serif;
    background-color: #fdfaf6; /* Jaśniejsze, beżowe tło */
    color: #646362; /* Ciemniejszy tekst dla czytelności */
    overflow-x: hidden;
}

/* --- Kontener przewijania --- */
#main-container {
    height: 100vh;
    overflow-y: scroll;
    scroll-snap-type: y mandatory;
}

.scroll-section {
    height: 100vh;
    width: 100vw;
    scroll-snap-align: start;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    text-align: center;
    padding: 2rem;
    position: relative;
}

/* --- Sekcja 1: Hero --- */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

#hero .hero-content h1 {
    font-size: clamp(2.5rem, 8vw, 6rem);
    font-weight: 600;
    color: #847C7D; /* Ciemniejszy kolor nagłówka */
    letter-spacing: -2px;
    animation: fadeInUp 1s ease-out forwards;
}

#hero .hero-content h2 {
    font-size: clamp(1.5rem, 5vw, 3rem);
    font-weight: 300;
    color: #a8a1a2; /* Lżejszy odcień dla podtytułu */
    text-transform: uppercase;    
    letter-spacing: 4px;
    animation: fadeInUp 1s ease-out 0.5s forwards;
    opacity: 0; /* Start with opacity 0 to avoid flash */
}

/* --- Sekcja 2: Intro --- */
.intro-text-container {
    max-width: 800px;
    font-size: clamp(1.2rem, 3vw, 2rem);
    font-weight: 300;
    line-height: 1.6;
    opacity: 0;
    filter: blur(8px);
    transform: scale(0.95);
    transition: opacity 1s ease-out, filter 1s ease-out, transform 1s ease-out;
}

.intro-text-container.in-focus {
    opacity: 1;
    filter: blur(0);
    transform: scale(1);
}

/* --- Sekcja 3: Wystawcy --- */
#exhibitors {
    overflow: hidden;
}

.exhibitors-slider {
    display: flex;
    width: 100%;
    height: 70%;
    transition: transform 0.5s ease-in-out;
}

.exhibitor-slide {
    min-width: 100%;
    height: 100%;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    align-items: center;
    padding: 0 5%;
}

.exhibitor-content {
    background: rgba(227, 226, 222, 0.4); /* Lepszy kontrast na jasnym tle */
    padding: 2rem;
    border-radius: 20px;
    text-align: left;
    border: 1px solid rgba(132, 124, 125, 0.2);
}

.exhibitor-content h3 {
    font-size: clamp(1.5rem, 4vw, 2.5rem);
    color: #847C7D;
    margin-bottom: 1rem;
}

.exhibitor-content p {
    font-size: clamp(0.9rem, 1.5vw, 1.1rem);
    color: #646362;
    line-height: 1.7;
}

.exhibitor-content h4 {
    margin-top: 1.5rem;
    color: #847C7D;
    font-weight: 500;
}

.details-button {
    display: inline-block;
    margin-top: 1.5rem;
    background-color: #847C7D;
    color: #fff;
    padding: 12px 25px;
    border-radius: 30px;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
}

.details-button:hover {
    background-color: #646362;
    transform: translateY(-2px);
}

.exhibitor-image {
    display: flex;
    justify-content: center;
    align-items: center;
    max-width: 350px;
    width: 100%;
    height: 175px;
    margin: 0 auto;
    padding: 1rem;
    border-radius: 15px;
}

.exhibitor-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center;
}

.slider-nav {
    margin-top: 2rem;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.slider-nav button {
    background: none;
    border: 1px solid #a8a1a2;
    color: #847C7D;
    font-size: 1.5rem;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s ease;
}

.slider-nav button:hover {
    background-color: #847C7D;    
    color: #fff;
}

/* --- Sekcja Partnerzy --- */
#partners {
    background-color: #f8f4f0; /* Slightly different background for this section */
}

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

.partners-container h2 {
    color: #847C7D;
    font-size: clamp(2rem, 6vw, 3rem);
    margin-bottom: 3rem;
}

.partner-slider {
    overflow: hidden;
    position: relative;
    width: 100%;
}

.partner-slider::before, .partner-slider::after {
    content: '';
    position: absolute;
    top: 0;
    width: 100px;
    height: 100%;
    z-index: 2;
}

.partner-slider::before {
    left: 0;
    background: linear-gradient(to right, #f8f4f0 0%, rgba(248, 244, 240, 0) 100%);
}

.partner-slider::after {
    right: 0;
    background: linear-gradient(to left, #f8f4f0 0%, rgba(248, 244, 240, 0) 100%);
}

@keyframes scroll {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(-50%);
    }
}

.partner-slide-track {
    display: flex;
    width: calc(200px * 8); /* (width of slide) * (number of slides * 2) */
    animation: scroll 30s linear infinite;
}

.partner-slide {
    height: 100px;
    width: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 15px;
}

.partner-slide img {
    max-width: 150px;
    max-height: 80px;
    filter: grayscale(100%);
    transition: filter 0.3s ease;
}

.partner-slide:hover img {
    filter: grayscale(0%);
}


/* --- Sekcja 4: Countdown --- */
#countdown h2 {
    color: #847C7D;
    font-size: clamp(2rem, 6vw, 4rem);
    margin-bottom: 2rem;
}

#timer {
    display: flex;
    gap: 1rem;
    margin-bottom: 3rem;
}

.time-box {
    background: rgba(227, 226, 222, 0.5);
    padding: 1rem 2rem;
    border-radius: 10px;
}

.time-box span {
    display: block;
    color: #847C7D;
    font-size: clamp(2rem, 5vw, 4rem);
    font-weight: 600;
}

.calendar-buttons {
    display: flex;
    justify-content: center; /* Wycentrowanie przycisków */
    gap: 1rem;
}

.cta-button {
    background-color: #847C7D;
    color: #fff;
    padding: 1rem 2rem;
    border-radius: 30px;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
}

.cta-button:hover {
    background-color: #e3e2de;
    color: #1a1a1a;
    transform: translateY(-3px);
}

/* --- Sekcja 5: QR --- */
#qr h2 {
    color: #847C7D;
    font-size: clamp(2rem, 6vw, 4rem);
    margin-bottom: 2rem;
}

#qr img {
    border: 8px solid #e3e2de;
    border-radius: 20px;
    margin-bottom: 1rem;
}

#qr p {
    font-size: 1.2rem;
    color: #847C7D;
}

/* --- Footer --- */
.page-footer {
    position: absolute;
    bottom: 2rem;
    left: 0;
    right: 0;
    text-align: center;
    font-size: 0.9rem;
    color: #a8a1a2;
}

.page-footer p {
    margin-bottom: 0.5rem;
}

.footer-links a {
    color: #a8a1a2;
    text-decoration: none;
    margin: 0 10px;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: #847C7D;
    text-decoration: underline;
}

/* --- Easter Egg Modal --- */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(5px);
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.modal-overlay.visible {
    opacity: 1;
    visibility: visible;
}

.modal-content {
    background: #fdfaf6;
    padding: 3rem;
    border-radius: 20px;
    text-align: center;
    position: relative;
    color: #646362;
    box-shadow: 0 10px 40px rgba(0,0,0,0.2);
    transform: scale(0.9);
    transition: transform 0.3s ease;
}

.modal-overlay.visible .modal-content {
    transform: scale(1);
}

.modal-content h3 {
    font-size: 2rem;
    color: #847C7D;
    margin-bottom: 1rem;
}

.modal-content p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
}

.discount-code {
    background: rgba(227, 226, 222, 0.5);
    border: 2px dashed #847C7D;
    padding: 1rem 2rem;
    font-size: 1.5rem;
    font-weight: 600;
    color: #847C7D;
    display: inline-block;
    border-radius: 10px;
    letter-spacing: 2px;
}

.modal-close {
    position: absolute;
    top: 15px;
    right: 15px;
    background: none;
    border: none;
    font-size: 2rem;
    color: #a8a1a2;
    cursor: pointer;
    transition: transform 0.3s ease, color 0.3s ease;
}

.modal-close:hover {
    color: #847C7D;
    transform: rotate(90deg);
}

/* --- Responsywność --- */
@media (max-width: 768px) {
    .scroll-section {
        scroll-snap-align: none; /* Wyłączamy snap na mobilkach dla lepszego UX */
        height: auto; /* Pozwól sekcji rosnąć */
        min-height: 100vh; /* Ale zajmuj co najmniej cały ekran */
        padding-top: 5rem; /* Dodaj więcej miejsca na górze */
        padding-bottom: 5rem; /* Dodaj więcej miejsca na dole */
    }

    .exhibitor-slide {
        grid-template-columns: 1fr;
        grid-template-rows: auto auto;
        text-align: center;
    }

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

    .exhibitor-image {
        order: -1; /* Przenosimy obrazek na górę */
    }

    .exhibitor-image img {
        margin: 0 auto;
        
    }

    #timer {
        flex-direction: column;
        gap: 1.5rem;
    }

    .calendar-buttons {
        flex-direction: column;
    }
}
