/* --- RESET I BLOKADA SCROLLA --- */
html, body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    margin: 0;
    padding: 0;
    height: 100vh;
    width: 100vw;
    overflow: hidden;
    background-color: #ffffff;
}

/* --- TŁO: PIXEL GRADIENT --- */
.landing-container {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100vh;
    width: 100vw;
    margin: 0;
    padding: 0;
    background-color: #a4d65e;
    background-image: linear-gradient(to bottom, rgba(255, 255, 255, 1) 0%, rgba(255, 255, 255, 1) 15%, rgba(255, 255, 255, 0) 65%, rgba(255, 255, 255, 0) 100% ), url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='32' height='32'%3E%3Crect width='16' height='16' fill='white' opacity='0.15'/%3E%3Crect x='16' y='16' width='16' height='16' fill='white' opacity='0.15'/%3E%3C/svg%3E");
    background-size: 100% 100%, 32px 32px;
}

/* --- LOGO --- */
.main-logo-wrapper {
    width: 100%;
    text-align: center;
    margin-bottom: 3vh;
}

.main-logo {
    width: 90%;
    max-width: 550px;
    height: auto;
    mix-blend-mode: multiply;
}

/* --- KAFELKI --- */
.tiles-grid {
    display: flex;
    gap: 25px;
    justify-content: center;
    flex-wrap: wrap;
    padding: 20px;
    z-index: 10;
}

.agro-tile {
    width: 260px;
    background: white;
    border-radius: 20px;
    padding: 20px;
    cursor: pointer;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
    text-align: center;
    border: none;
}

    .agro-tile:hover {
        transform: translateY(-10px);
        box-shadow: 0 15px 40px rgba(0,0,0,0.15);
    }

    .agro-tile img {
        width: 100%;
        height: 160px;
        object-fit: contain;
        margin-bottom: 15px;
    }

    .agro-tile h3 {
        font-size: 1.3rem;
        font-weight: bold;
        color: #333;
        margin: 0;
    }

/* --- MODAL --- */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    backdrop-filter: blur(5px);
}

.modal-box {
    background: white;
    width: 85%;
    max-width: 400px;
    border-radius: 25px;
    padding: 30px;
    text-align: center;
    box-shadow: 0 20px 50px rgba(0,0,0,0.3);
    border: 4px solid #a4d65e;
}

.btn-ok {
    background-color: #a4d65e;
    color: white;
    border: none;
    padding: 12px 50px;
    border-radius: 10px;
    font-size: 1.1rem;
    font-weight: bold;
    cursor: pointer;
}

/* --- EKRAN ŁADOWANIA (POWIĘKSZONE PULSUJĄCE LOGO) --- */
.loading-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100vh;
    width: 100vw;
    background-color: #ffffff;
}

.loading-logo-container {
    margin-bottom: 40px; /* Większy odstęp od tekstu */
}

.loading-logo {
    width: 350px; /* Zwiększony bazowy rozmiar logo */
    height: auto;
    mix-blend-mode: multiply;
    /* Czas animacji wydłużony do 2.5s dla płynności przy większym skoku */
    animation: pulse-large 2.5s ease-in-out infinite;
}

.loading-text {
    font-family: 'Segoe UI', sans-serif;
    color: #4a7c2c;
    font-weight: 600;
    letter-spacing: 2px;
    text-transform: uppercase;
    font-size: 1rem;
}

/* Animacja wyraźnego powiększania */
@keyframes pulse-large {
    0% {
        transform: scale(0.9);
        opacity: 0.6;
    }

    50% {
        transform: scale(1.25); /* Powiększenie do 125% */
        opacity: 1;
    }

    100% {
        transform: scale(0.9);
        opacity: 0.6;
    }
}

/* --- RESPONSYWNOŚĆ --- */
@media (max-height: 600px) {
    .agro-tile img {
        height: 100px;
    }

    .main-logo {
        max-width: 350px;
    }

    .loading-logo {
        width: 220px; /* Mniejsze na małych ekranach */
    }
}
