/* Hero Section Styles */
.hero-section {
    position: relative;
    width: 100%;
    height: 100vh;
    min-height: 700px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Background Layer */
.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.background-picture {
    width: 100%;
    height: 100%;
    display: block;
}

.hero-bg-img {
    width: 100%;
    height: 100%;
}

/* Characters Layer */
.hero-characters {
    position: absolute;
    bottom: 0;
    top: 0;
    left: 0;
    right: 0;
    z-index: 3;
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: flex-end;
}

.characters-picture {
    width: 100%;
    height: 100%;
    display: block;
}

.characters-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: 45% center;
}

/* Stars and Moon Layer with Floating Animation */
.hero-stars-moon {
    position: absolute;
    top: 0;
    left: -10%;
    right: 0;
    bottom: 0;
    z-index: 4;
    pointer-events: none;
    display: flex;
    justify-content: center;
    align-items: flex-start;
    overflow: visible;
    padding-top: 4%;
}

.stars-moon-picture {
    width: 100%;
    height: 100%;
    display: block;
}

.stars-moon-img {
    width: 100%;
    height: 100%;
    max-width: none;
    flex-shrink: 0;
}

/* Floating Animation */
@keyframes float {
    0%, 100% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-20px);
    }
}

@keyframes floatSlow {
    0%, 100% {
        transform: translateY(0px) rotate(0deg);
    }
    25% {
        transform: translateY(-15px) rotate(2deg);
    }
    50% {
        transform: translateY(-25px) rotate(0deg);
    }
    75% {
        transform: translateY(-15px) rotate(-2deg);
    }
}

@keyframes floatHeart {
    0%, 100% {
        transform: translateY(0px) scale(1);
    }
    50% {
        transform: translateY(-15px) scale(1.05);
    }
}

@keyframes twinkle {
    0%, 100% {
        opacity: 1;
        transform: scale(1);
    }
    50% {
        opacity: 0.6;
        transform: scale(0.9);
    }
}

@keyframes floatAround {
    0% {
        transform: translate(0, 0) rotate(0deg);
    }
    25% {
        transform: translate(10px, -15px) rotate(5deg);
    }
    50% {
        transform: translate(0, -25px) rotate(0deg);
    }
    75% {
        transform: translate(-10px, -15px) rotate(-5deg);
    }
    100% {
        transform: translate(0, 0) rotate(0deg);
    }
}

.floating {
    animation: floatSlow 6s ease-in-out infinite;
}

.floating-heart {
    animation: floatHeart 4s ease-in-out infinite;
}

/* Kinder Heart - Bottom Right */
.hero-kinder-heart {
    position: absolute;
    bottom: 5%;
    right: 5%;
    z-index: 4;
    max-width: 350px;
}

.kinder-heart-img {
    width: 100%;
    height: auto;
    filter: drop-shadow(0 10px 30px rgba(0,0,0,0.2));
}

/* Title Container - Top Left */
.hero-title-container {
    position: absolute;
    top: 10%;
    left: 10%;
    z-index: 5;
    max-width: 480px;
}

.hero-title-img {
    width: 100%;
    height: auto;
    filter: drop-shadow(0 5px 20px rgba(0,0,0,0.3));
}

/* Dynamic Text */
.hero-dynamic-text {
    margin-top: -40px;
    transform: rotate(-5deg);
}

.dynamic-value {
    font-family: 'Chronic', sans-serif;
    font-size: 75px;
    color: #ffffff;
    text-align: center;
    text-shadow: 0 0 11px #f5b32c;
    margin: 0;
    line-height: 1.4;
    text-transform: uppercase;
    font-weight: bold;
    transition: opacity 0.5s ease-in-out, transform 0.5s ease-in-out;
}

.dynamic-value.fade-out {
    opacity: 0;
    transform: translateY(-10px);
}

.dynamic-value.fade-in {
    opacity: 1;
    transform: translateY(0);
}

/* Floating Decorative Elements */
.floating-elements {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 2;
    pointer-events: none;
    overflow: hidden;
}

.floating-star {
    position: absolute;
    width: 30px;
    height: 30px;
    background: radial-gradient(circle, #ffd700 0%, #ffb347 50%, transparent 70%);
    border-radius: 50%;
    box-shadow: 0 0 20px rgba(255, 215, 0, 0.8), 0 0 40px rgba(255, 215, 0, 0.4);
}

.floating-star::before {
    content: '★';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 20px;
    color: #fff;
    text-shadow: 0 0 10px rgba(255, 215, 0, 0.8);
}

.star-1 {
    top: 20%;
    left: 15%;
    animation: floatAround 8s ease-in-out infinite, twinkle 3s ease-in-out infinite;
}

.star-2 {
    top: 35%;
    right: 20%;
    animation: floatAround 10s ease-in-out infinite 1s, twinkle 4s ease-in-out infinite 0.5s;
    width: 25px;
    height: 25px;
}

.star-3 {
    bottom: 40%;
    left: 25%;
    animation: floatAround 7s ease-in-out infinite 2s, twinkle 3.5s ease-in-out infinite 1s;
    width: 20px;
    height: 20px;
}

/* Parallax effect on scroll */

/* Parallax effect on scroll */
/* .hero-section.parallax .hero-background {
    transform: translateY(var(--scroll-offset, 0));
} */

/* Responsive Styles */
@media (max-width: 1400px) {
    .hero-title-container {
        max-width: 420px;
        left: 8%;
    }
    
    .dynamic-value {
        font-size: 60px;
    }
    
    .hero-kinder-heart {
        max-width: 280px;
    }
}

@media (max-width: 1200px) {
    .hero-section {
        min-height: 600px;
    }
    
    .hero-title-container {
        max-width: 350px;
        top: 10%;
        left: 6%;
    }
    
    .dynamic-value {
        font-size: 50px;
    }
    
    .hero-kinder-heart {
        max-width: 220px;
    }
    
    .hero-dynamic-text {
        margin-top: -30px;
    }
}

@media (max-width: 991px) {
    .kinder-heart-img {
        filter: none;
    }

    .hero-section {
        min-height: 550px;
        height: 45vh;
    }
    
    .hero-title-container {
        max-width: 300px;
        top: 18%;
        left: 5%;
    }
    
    .dynamic-value {
        font-size: 40px;
    }
    
    .hero-kinder-heart {
        max-width: 180px;
        bottom: 3%;
        right: 3%;
    }
    
    .hero-dynamic-text {
        margin-top: -25px;
    }
    
    .floating-star {
        width: 20px;
        height: 20px;
    }
    
    .floating-star::before {
        font-size: 14px;
    }
    
    .hero-characters {
        bottom: 0;
        top: 0;
        height: 100%;
    }
    
    .characters-img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        object-position: 45% center;
    }
    
    .stars-moon-img {
        object-fit: cover;
        object-position: bottom center;
    }
}

@media (max-width: 767px) {
    .hero-section {
        min-height: 500px;
        height: 70vh;
    }
    
    .hero-title-container {
        max-width: 280px;
        top: 20%;
        left: 5%;
        transform: none;
        text-align: left;
    }
    
    .dynamic-value {
        font-size: 32px;
    }
    
    .hero-kinder-heart {
        max-width: 120px;
        bottom: 2%;
        right: 2%;
    }
    
    .hero-dynamic-text {
        margin-top: -20px;
        transform: rotate(-3deg);
    }
    
    .hero-characters {
        bottom: 0;
        top: 0;
        height: 100%;
    }
    
    .characters-img {
        width: 100%;
        height: 100%;
        object-fit: contain;
        object-position: center center;
    }
    
    .stars-moon-img {
        object-fit: cover;
        object-position: bottom center;
    }
    
    .star-1, .star-2, .star-3 {
        display: none;
    }
}

@media (max-width: 480px) {
    .hero-section {
        min-height: 450px;
        height: 50vh;
    }
    
    .hero-title-container {
        max-width: 55%;
        top: 25%;
        left: 4%;
        transform: none;
    }
    
    .hero-title-img {
        margin-bottom: 5px;
    }
    
    .dynamic-value {
        font-size: 32px;
    }
    
    .hero-kinder-heart {
        max-width: 90px;
    }
    
    .hero-dynamic-text {
        margin-top: -15px;
        transform: rotate(-2deg);
    }
    
    .hero-characters {
        bottom: 0;
        top: 0;
        height: 100%;
    }
    
    .characters-img {
        width: 100%;
        height: 100%;
        object-fit: contain;
        object-position: center center;
    }
    
    .stars-moon-img {
        object-fit: contain;
        object-position: bottom center;
        margin-left: 8%;
    }
}
