.hero {
    background-image: url("../images/1183596.jpg");
    background-size: cover;
    position: relative;
    overflow: hidden;
}

/* Floating elements animation */
.floating-elements {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    pointer-events: none;
    z-index: 1;
}

.floating-icon {
    position: absolute;
    font-size: 2rem;
    animation: float 6s ease-in-out infinite;
    opacity: 0.7;
}

.floating-icon:nth-child(1) {
    top: 20%;
    left: 10%;
    animation-delay: 0s;
}

.floating-icon:nth-child(2) {
    top: 30%;
    right: 15%;
    animation-delay: 1s;
}

.floating-icon:nth-child(3) {
    bottom: 25%;
    left: 15%;
    animation-delay: 2s;
}

.floating-icon:nth-child(4) {
    bottom: 15%;
    right: 20%;
    animation-delay: 3s;
}

.floating-icon:nth-child(5) {
    top: 40%;
    left: 45%;
    animation-delay: 4s;
}

@keyframes float {
    0%, 100% {
        transform: translateY(0) rotate(0deg);
    }
    50% {
        transform: translateY(-20px) rotate(10deg);
    }
}

/* Playful box styling */
.playful-box {
    position: relative;
    background-color: rgba(255, 255, 255, 0.9);
    border-radius: 16px;
    box-shadow: 0 8px 32px rgba(31, 38, 135, 0.2);
    backdrop-filter: blur(4px);
    border: 1px solid rgba(255, 255, 255, 0.5);
    transition: all 0.3s ease;
    overflow: hidden;
    z-index: 2;
}

.playful-box:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 36px rgba(31, 38, 135, 0.3);
}

.playful-button {
    position: relative;
    border-radius: 50px;
    padding: 1.25em 2em;
    font-weight: bold;
    transition: all 0.3s ease;
    overflow: hidden;
    border: 2px solid #48c78e !important;
}

.playful-button:hover {
    background-color: #48c78e !important;
    color: white !important;
    transform: scale(1.05);
}

.button-sparkle {
    position: absolute;
    opacity: 0;
    transition: all 0.3s ease;
}

.playful-button:hover .button-sparkle {
    animation: sparkle 1s ease forwards;
}

@keyframes sparkle {
    0% {
        opacity: 0;
        transform: translate(0, 0) scale(0);
    }
    50% {
        opacity: 1;
        transform: translate(10px, -15px) scale(1.2);
    }
    100% {
        opacity: 0;
        transform: translate(20px, -30px) scale(0);
    }
}

/* Quote box styling */
.playful-quote-box {
    position: relative;
    background: linear-gradient(135deg, #fdfcfb 0%, #e2d1c3 100%);
    border-radius: 16px;
    padding: 1.5rem;
    transition: all 0.3s ease;
    overflow: hidden;
}

.playful-quote-box:hover {
    transform: rotate(1deg) scale(1.02);
}

.quote-decoration {
    position: absolute;
    top: 10px;
    right: 15px;
    font-size: 4rem;
    opacity: 0.1;
    color: #ff6b6b;
}

.quote-content {
    position: relative;
    z-index: 1;
}

/* Image box styling */
.playful-image-box {
    position: relative;
    padding: 0;
    overflow: hidden;
    border-radius: 16px;
    background: transparent;
    transition: all 0.3s ease;
}

.playful-image-box:hover {
    transform: scale(1.03);
}

.image-container {
    overflow: hidden;
    border-top-left-radius: 16px;
    border-top-right-radius: 16px;
}

.playful-image-box img {
    width: 100%;
    height: auto;
    transition: all 0.5s ease;
}

.playful-image-box:hover img {
    transform: scale(1.1);
}

.image-caption {
    padding: 1rem;
    text-align: center;
    font-style: italic;
    background-color: rgba(255, 255, 255, 0.9);
    margin: 0;
}

.sparkle-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    background: radial-gradient(circle at 50% 50%, rgba(255, 255, 255, 0.4) 0%, transparent 60%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.playful-image-box:hover .sparkle-overlay {
    opacity: 1;
}

/* Confetti effect */
.confetti-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: -1;
    opacity: 0;
}

.confetti {
    position: absolute;
    width: 10px;
    height: 10px;
    background-color: #f0f;
    opacity: 0.7;
    animation: confetti-fall 5s linear forwards;
}

@keyframes confetti-fall {
    0% {
        transform: translateY(-100px) rotate(0deg);
        opacity: 1;
    }
    100% {
        transform: translateY(500px) rotate(360deg);
        opacity: 0;
    }
}

/* Responsive adjustments */
@media screen and (max-width: 768px) {
    .floating-icon {
        font-size: 1.5rem;
    }
    
    .playful-box, .playful-quote-box, .playful-image-box {
        margin-bottom: 1.5rem;
    }
    
    .columns.is-vcentered {
        flex-direction: column;
    }
}