body {
    background-image: url("../images/przedszkole/bg.png");
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: fixed;
}

header {
    background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary-light) 100%);
    color: white;
    padding: 1rem 0;
    text-align: center;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    position: relative;
    overflow: hidden;
}

.decoration {
    position: absolute;
    z-index: 0;
}

.circle1 {
    width: 80px;
    height: 80px;
    background-color: var(--color-yellow);
    border-radius: 50%;
    top: -20px;
    left: 10%;
    opacity: 0.7;
}

.circle2 {
    width: 60px;
    height: 60px;
    background-color: var(--color-green);
    border-radius: 50%;
    bottom: -15px;
    right: 15%;
    opacity: 0.7;
}

.circle3 {
    width: 40px;
    height: 40px;
    background-color: var(--color-red);
    border-radius: 50%;
    top: 20px;
    right: 10%;
    opacity: 0.7;
}

.logo {
    font-size: 2.5rem;
    font-weight: bold;
    margin-bottom: 0.5rem;
    position: relative;
    z-index: 1;
    text-shadow: 3px 3px 0 var(--primary-dark);
    transform: rotate(-2deg);
}

.logo span {
    display: inline-block;
    animation: bounce 2s infinite alternate;
}

@keyframes bounce {
    0% { transform: translateY(0); }
    100% { transform: translateY(-10px); }
}

.tagline {
    font-size: 1.2rem;
    position: relative;
    z-index: 1;
}

.hero {
    position: relative;
    height: 500px;
    overflow: hidden;
    margin-bottom: 3rem;
    border-bottom: 10px solid var(--color-green);
}

.cloud {
    position: absolute;
    background-color: white;
    border-radius: 50%;
    animation: float 30s infinite linear;
    opacity: 0.8;
}

.cloud1 {
    width: 200px;
    height: 80px;
    top: 50px;
    left: -200px;
    animation-duration: 35s;
}

.cloud2 {
    width: 150px;
    height: 60px;
    top: 120px;
    left: -150px;
    animation-duration: 45s;
    animation-delay: 10s;
}

@keyframes float {
    from { left: -200px; }
    to { left: 100%; }
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(180deg, var(--color-yellow) 0%, var(--primary-light) 100%);
    z-index: -1;
}

.sun {
    position: absolute;
    width: 120px;
    height: 120px;
    background-color: var(--color-yellow);
    border-radius: 50%;
    top: 40px;
    right: 80px;
    box-shadow: 0 0 30px var(--color-yellow);
    animation: pulse 5s infinite alternate;
}

@keyframes pulse {
    0% { transform: scale(1); }
    100% { transform: scale(1.1); }
}

.grass {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 100px;
    background-color: var(--color-green);
    z-index: 0;
}

.tree {
    position: absolute;
    bottom: 100px;
    z-index: 1;
}

.tree1 {
    left: 10%;
}

.tree2 {
    right: 15%;
}

.tree-trunk {
    width: 30px;
    height: 80px;
    background-color: #8B4513;
    margin: 0 auto;
}

.tree-top {
    width: 120px;
    height: 120px;
    background-color: var(--color-green);
    border-radius: 50%;
    position: relative;
    left: 0px;
    bottom: 1px;
}

.hero-content {
    max-width: 800px;
    position: relative;
    z-index: 2;
    padding: 2rem;
    background-color: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(5px);
    border-radius: 20px;
    margin: 0 auto;
    text-align: center;
    top: 150px;
    box-shadow: 0 8px 0 rgba(0, 0, 0, 0.1);
    border: 5px solid var(--primary-dark);
}

.hero h2 {
    font-size: 2.8rem;
    margin-bottom: 1rem;
    color: var(--primary-dark);
    text-shadow: 2px 2px 0 var(--primary-light);
}

.hero p {
    font-size: 1.3rem;
    margin-bottom: 1.5rem;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

section {
    margin: 4rem 0;
    position: relative;
}

.section-title {
    text-align: center;
    margin-bottom: 3rem;
    position: relative;
}

.section-title h2 {
    display: inline-block;
    color: var(--primary-dark);
    font-size: 2.5rem;
    padding: 0.5rem 2rem;
    background-color: white;
    border-radius: 50px;
    box-shadow: 0 5px 0 var(--primary-dark);
    position: relative;
}

.section-title h2::before, .section-title h2::after {
    content: "★";
    color: var(--color-yellow);
    margin: 0 1rem;
    font-size: 1.5rem;
    position: relative;
    top: -5px;
}

.feature-card {
    background-color: white;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
    margin-bottom: 2rem;
    transition: all 0.3s;
    border: 5px solid;
    transform: rotate(-1deg);
}

.feature-card:nth-child(even) {
    transform: rotate(1deg);
}

.feature-card:hover {
    transform: translateY(-10px) rotate(0);
}

.feature-card:nth-child(1) { border-color: var(--color-red); }
.feature-card:nth-child(2) { border-color: var(--color-yellow); }
.feature-card:nth-child(3) { border-color: var(--color-green); }

.feature-card-content {
    padding: 2rem;
    text-align: center;
}

.feature-icon {
    font-size: 4rem;
    margin-bottom: 1.5rem;
}

.feature-card:nth-child(1) .feature-icon { color: var(--color-red); }
.feature-card:nth-child(2) .feature-icon { color: var(--color-yellow); }
.feature-card:nth-child(3) .feature-icon { color: var(--color-green); }

.feature-title {
    font-size: 1.8rem;
    margin-bottom: 1rem;
    color: var(--primary-dark);
}

.feature-text {
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
}

.btn {
    display: inline-block;
    background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary-light) 100%);
    color: white;
    padding: 0.8rem 1.5rem;
    border-radius: 30px;
    text-decoration: none;
    transition: all 0.3s;
    font-weight: bold;
    margin-top: 1rem;
    border: none;
    cursor: pointer;
    box-shadow: 0 5px 0 rgba(0, 0, 0, 0.3);
    position: relative;
    top: 0;
}

.btn:hover {
    top: 2px;
    box-shadow: 0 3px 0 rgba(0, 0, 0, 0.3);
}

.btn:active {
    box-shadow: 0px 9px 5px rgba(24, 24, 248, 0.382);
}

.gallery {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 1.5rem;
    margin-top: 2rem;
}

.gallery-item {
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    position: relative;
    height: 200px;
    transition: transform 0.3s;
    border: 5px solid white;
}

.gallery-item:hover {
    transform: scale(1.05);
    z-index: 1;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.testimonials {
    background-color: var(--color-yellow);
    padding: 4rem 0;
    margin: 5rem 0;
    position: relative;
    border-top: 10px solid var(--color-orange);
    border-bottom: 10px solid var(--color-orange);
}

.testimonial-wrapper {
    max-width: 800px;
    margin: 0 auto;
    background-color: white;
    padding: 2rem;
    border-radius: 20px;
    box-shadow: 0 10px 0 rgba(0, 0, 0, 0.1);
    border: 5px solid var(--primary-dark);
    position: relative;
}

.quote-icon {
    font-size: 5rem;
    color: var(--primary-light);
    position: absolute;
    top: -40px;
    left: 20px;
    transform: rotate(180deg);
}

.testimonial-text {
    font-size: 1.3rem;
    margin-bottom: 1.5rem;
    font-style: italic;
}

.testimonial-author {
    text-align: right;
    font-weight: bold;
    color: var(--primary-dark);
}


:root {
    --primary-dark: #2c3e50;
    --primary-light: #3498db;
    --color-yellow: #f1c40f;
    --color-green: #2ecc71;
    --color-red: #e74c3c;
    --color-orange: #e67e22;
    --color-purple: #9b59b6;
    --color-pink: #e91e63;
    --color-blue: #2196f3;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Comic Sans MS', cursive, sans-serif;
    background: linear-gradient(135deg, #e3f2fd 0%, #f3e5f5 100%);
    min-height: 100vh;
    padding: 2rem 0;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.section-title {
    text-align: center;
    margin-bottom: 3rem;
}

.section-title h2 {
    display: inline-block;
    color: var(--primary-dark);
    font-size: 3rem;
    padding: 1rem 2rem;
    background: linear-gradient(135deg, white, #f8f9ff);
    border-radius: 50px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
    position: relative;
    transform: rotate(-2deg);
}

.section-title h2::before, 
.section-title h2::after {
    content: "🌟";
    margin: 0 1rem;
    font-size: 2rem;
    animation: sparkle 2s infinite alternate;
}

@keyframes sparkle {
    0% { transform: scale(1) rotate(0deg); }
    100% { transform: scale(1.2) rotate(15deg); }
}

.groups-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

.group-card {
    background: linear-gradient(145deg, white, #f8f9ff);
    border-radius: 25px;
    padding: 2rem;
    text-align: center;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    border: 4px solid transparent;
    position: relative;
    overflow: hidden;
    transform: rotate(-1deg);
}

.group-card:nth-child(even) {
    transform: rotate(1deg);
}

.group-card:hover {
    transform: translateY(-15px) rotate(0deg) scale(1.05);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.2);
}

.group-card.owls { border-color: var(--color-purple); }
.group-card.rabbits { border-color: var(--color-pink); }
.group-card.bears { border-color: var(--color-orange); }
.group-card.foxes { border-color: var(--color-red); }
.group-card.dolphins { border-color: var(--color-blue); }
.group-card.bees { border-color: var(--color-yellow); }

.group-icon-container {
    position: relative;
    margin-bottom: 1.5rem;
    height: 120px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.group-icon {
    font-size: 5rem;
    transition: all 0.4s ease;
    filter: drop-shadow(0 5px 15px rgba(0, 0, 0, 0.2));
}

.group-card:hover .group-icon {
    transform: scale(1.2) rotate(15deg);
}

.group-name {
    font-size: 2rem;
    font-weight: bold;
    margin-bottom: 1rem;
    color: var(--primary-dark);
}

.group-age {
    font-size: 1.2rem;
    color: #666;
    margin-bottom: 1rem;
}

.group-description {
    font-size: 1rem;
    color: #555;
    line-height: 1.6;
}

/* Panel z informacjami o grupie */
.group-panel {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    display: none;
    z-index: 1000;
    backdrop-filter: blur(10px);
}

.panel-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.8);
    background: linear-gradient(145deg, white, #f8f9ff);
    border-radius: 30px;
    max-width: 800px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.3);
    opacity: 0;
    transition: all 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.group-panel.active .panel-content {
    transform: translate(-50%, -50%) scale(1);
    opacity: 1;
}

.panel-header {
    text-align: center;
    padding: 2rem;
    border-bottom: 3px solid #eee;
    position: relative;
}

.panel-icon {
    font-size: 4rem;
    margin-bottom: 1rem;
    display: inline-block;
    animation: panel-icon-entrance 0.8s ease-out;
    filter: drop-shadow(0 5px 15px rgba(0, 0, 0, 0.2));
}

@keyframes panel-icon-entrance {
    0% {
        transform: scale(0) rotate(-180deg);
        opacity: 0;
    }
    70% {
        transform: scale(1.2) rotate(15deg);
        opacity: 1;
    }
    100% {
        transform: scale(1) rotate(0deg);
        opacity: 1;
    }
}

.panel-title {
    font-size: 2.5rem;
    color: var(--primary-dark);
    margin-bottom: 0.5rem;
}

.panel-age {
    font-size: 1.3rem;
    color: #666;
}

.panel-body {
    padding: 2rem;
}

.panel-info {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.info-card {
    background: linear-gradient(145deg, #f8f9ff, white);
    padding: 1.5rem;
    border-radius: 20px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transform: translateY(30px);
    opacity: 0;
    animation: slide-up 0.6s ease-out forwards;
}

.info-card:nth-child(2) { animation-delay: 0.1s; }
.info-card:nth-child(3) { animation-delay: 0.2s; }
.info-card:nth-child(4) { animation-delay: 0.3s; }

@keyframes slide-up {
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.info-title {
    font-size: 1.3rem;
    font-weight: bold;
    margin-bottom: 0.5rem;
    color: var(--primary-dark);
}

.info-text {
    font-size: 1rem;
    color: #555;
    line-height: 1.5;
}

.photo-gallery {
    margin-top: 2rem;
}

.gallery-title {
    font-size: 1.8rem;
    color: var(--primary-dark);
    margin-bottom: 1rem;
    text-align: center;
}

.photos-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
}

.photo-item {
    aspect-ratio: 1;
    background: linear-gradient(135deg, #e3f2fd, #f3e5f5);
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
    transition: transform 0.3s ease;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.photo-item:hover {
    transform: scale(1.05);
}

.close-btn {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 50px;
    height: 50px;
    background: var(--color-red);
    color: white;
    border: none;
    border-radius: 50%;
    font-size: 1.5rem;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 5px 15px rgba(231, 76, 60, 0.3);
}

.close-btn:hover {
    transform: scale(1.1) rotate(90deg);
    background: #c0392b;
}

/* Animacja ikonki przenoszącej się */
.flying-icon {
    position: fixed;
    font-size: 4rem;
    pointer-events: none;
    z-index: 1001;
    transition: all 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

/* Responsive */
@media (max-width: 768px) {
    .groups-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .section-title h2 {
        font-size: 2rem;
        padding: 0.8rem 1.5rem;
    }

    .panel-content {
        width: 95%;
        margin: 1rem;
    }

    .panel-body {
        padding: 1rem;
    }

    .panel-info {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
}


.cta-section {
    text-align: center;
    margin: 5rem 0;
    padding: 3rem;
    background-color: var(--primary-light);
    border-radius: 30px;
    position: relative;
    overflow: hidden;
    box-shadow: 0 10px 0 rgba(0, 0, 0, 0.1);
    border: 5px dashed var(--primary-dark);
}

.cta-decoration {
    position: absolute;
    z-index: 0;
}

.cta-circle1 {
    width: 100px;
    height: 100px;
    background-color: var(--color-yellow);
    border-radius: 50%;
    top: -30px;
    left: 10%;
    opacity: 0.5;
}

.cta-circle2 {
    width: 80px;
    height: 80px;
    background-color: var(--color-green);
    border-radius: 50%;
    bottom: -20px;
    right: 15%;
    opacity: 0.5;
}

.cta-content {
    position: relative;
    z-index: 1;
}

.cta-title {
    font-size: 2.5rem;
    color: var(--primary-dark);
    margin-bottom: 1.5rem;
    text-shadow: 2px 2px 0 white;
}

.cta-text {
    font-size: 1.3rem;
    margin-bottom: 2rem;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.btn-large {
    font-size: 1.3rem;
    padding: 1rem 2rem;
}

@media (max-width: 768px) {    
    .hero {
        height: 550px;
    }
    
    .hero-content {
        top: 100px;
        padding: 1.5rem;
    }
    
    .hero h2 {
        font-size: 2rem;
    }
    
    .footer-content {
        flex-direction: column;
        text-align: center;
    }
    
    .social-icons {
        justify-content: center;
    }
}

@keyframes float-bubble {
    0% { transform: translateY(0) rotate(0); }
    50% { transform: translateY(-15px) rotate(5deg); }
    100% { transform: translateY(0) rotate(0); }
}

.floating {
    animation: float-bubble 5s infinite ease-in-out;
}

.floating:nth-child(2n) {
    animation-duration: 7s;
}

.floating:nth-child(3n) {
    animation-duration: 9s;
}



/* akcje  */

.panel-wrapper {
width: 100%;
display: flex;
justify-content: center;
padding: 40px 20px;
}


.panel {
max-width: 500px;
width: 100%;
background: #ffffff;
border-radius: 20px;
box-shadow: 0 6px 18px rgba(0,0,0,0.12);
padding: 24px;
text-align: center;
cursor: pointer;
transition: transform 0.3s ease;
overflow: hidden;
}


.panel:hover {
transform: translateY(-4px);
}


.thumbnail {
width: 100%;
max-width: 220px;
margin: 0 auto 20px auto;
opacity: 0;
transform: scale(0.6) translateY(120px);
transition: all 0.9s ease-out;
}


.thumbnail.visible {
opacity: 1;
transform: scale(1) translateY(0px);
}


.title {
font-size: 1.6rem;
color: #2e6b3e;
margin-bottom: 10px;
font-weight: bold;
}


.subtitle {
font-size: 1rem;
color: #4d4d4d;
margin-bottom: 20px;
}


.button-link {
display: inline-block;
padding: 10px 18px;
background: #2e6b3e;
color: white;
border-radius: 12px;
text-decoration: none;
font-size: 1rem;
transition: background 0.3s ease;
}

.button-link:hover {
background: #255a33;
}
