:root {
    --c-brand: #6A66FF;
    --c-brand-light: #A2A0FF;
    --c-secondary: #FFC857;
    --c-accent: #FF577F;
    --c-success: #57FFC8;
    --c-light: #F8F7FF;
    --c-dark: #2F2E41;
    --c-text: #595867;
}

body {
    font-family: 'Poppins', sans-serif;
    background-color: var(--c-light);
    color: var(--c-text);
    overflow-x: hidden;
}

.font-logo {
    font-family: 'Lilita One', cursive;
}

/* Custom Tailwind colors */
.bg-brand { background-color: var(--c-brand) !important; }
.bg-brand-light { background-color: var(--c-brand-light) !important; }
.bg-secondary { background-color: var(--c-secondary) !important; }
.bg-accent { background-color: var(--c-accent) !important; }
.bg-success { background-color: var(--c-success) !important; }
.bg-light { background-color: var(--c-light) !important; }
.bg-dark { background-color: var(--c-dark) !important; }

.text-brand { color: var(--c-brand) !important; }
.text-brand-light { color: var(--c-brand-light) !important; }
.text-secondary { color: var(--c-secondary) !important; }
.text-accent { color: var(--c-accent) !important; }
.text-success { color: var(--c-success) !important; }
.text-light { color: var(--c-light) !important; }
.text-dark { color: var(--c-dark) !important; }
.text-text { color: var(--c-text) !important; }

.border-brand { border-color: var(--c-brand) !important; }
.border-accent { border-color: var(--c-accent) !important; }

.hover\:bg-brand-light:hover { background-color: var(--c-brand-light) !important; }

.glassmorphism {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    z-index: 1000;
}

.bg-animated {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: -1;
}

.bg-animated li {
    position: absolute;
    display: block;
    list-style: none;
    width: 20px;
    height: 20px;
    background: rgba(255, 255, 255, 0.2);
    animation: animate 25s linear infinite;
    bottom: -150px;
}

/* Mobile-friendly animated elements positioning */
@media (max-width: 768px) {
    .bg-animated li:nth-child(1) { 
        left: calc(75% + (10px * var(--random-offset, 1))); 
        width: 60px; 
        height: 60px; 
        animation-delay: 0s; 
        background-color: rgba(255, 199, 160, 0.5); 
        z-index: 1;
    }
    .bg-animated li:nth-child(3) { 
        left: calc(10% + (15px * var(--random-offset, 1))); 
        width: 40px; 
        height: 40px; 
        animation-delay: 4s; 
        background-color: rgba(255, 172, 199, 0.5); 
        z-index: 1;
    }
}

.bg-animated li:nth-child(1) { left: 25%; width: 80px; height: 80px; animation-delay: 0s; background-color: rgba(255, 199, 160, 0.5); }
.bg-animated li:nth-child(2) { left: 10%; width: 20px; height: 20px; animation-delay: 2s; animation-duration: 12s; background-color: rgba(160, 231, 229, 0.5); }
.bg-animated li:nth-child(3) { left: 70%; width: 20px; height: 20px; animation-delay: 4s; background-color: rgba(255, 172, 199, 0.5); }
.bg-animated li:nth-child(4) { left: 40%; width: 60px; height: 60px; animation-delay: 0s; animation-duration: 18s; background-color: rgba(200, 182, 255, 0.5); }
.bg-animated li:nth-child(5) { left: 65%; width: 20px; height: 20px; animation-delay: 0s; background-color: rgba(255, 211, 182, 0.5); }
.bg-animated li:nth-child(6) { left: 75%; width: 110px; height: 110px; animation-delay: 3s; background-color: rgba(160, 231, 229, 0.5); }
.bg-animated li:nth-child(7) { left: 35%; width: 150px; height: 150px; animation-delay: 7s; background-color: rgba(255, 172, 199, 0.5); }
.bg-animated li:nth-child(8) { left: 50%; width: 25px; height: 25px; animation-delay: 15s; animation-duration: 45s; background-color: rgba(200, 182, 255, 0.5); }
.bg-animated li:nth-child(9) { left: 20%; width: 15px; height: 15px; animation-delay: 2s; animation-duration: 35s; background-color: rgba(255, 211, 182, 0.5); }
.bg-animated li:nth-child(10) { left: 85%; width: 150px; height: 150px; animation-delay: 0s; animation-duration: 11s; background-color: rgba(160, 231, 229, 0.5); }

@keyframes animate {
    0% { transform: translateY(0) rotate(0deg); opacity: 1; border-radius: 0; }
    100% { transform: translateY(-1000px) rotate(720deg); opacity: 0; border-radius: 50%; }
}

.btn {
    @apply font-bold py-3 px-6 rounded-full transition-all duration-300 shadow-lg;
}
.btn-primary {
    @apply bg-brand text-white hover:bg-brand-light transform hover:-translate-y-1;
}
.btn-secondary {
    @apply bg-secondary text-dark hover:bg-yellow-400 transform hover:-translate-y-1;
}

.wave-divider {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    overflow: hidden;
    line-height: 0;
}

.wave-divider svg {
    position: relative;
    display: block;
    width: 100%;
    height: 80px;
}

.testimonial-card::before {
    content: '\f10d';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    position: absolute;
    top: -1rem;
    left: -0.5rem;
    font-size: 5rem;
    color: var(--c-brand);
    opacity: 0.1;
    z-index: 0;
}

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

.animate-float {
    animation: float 3s ease-in-out infinite;
}

.gradient-text {
    background: linear-gradient(45deg, var(--c-brand), var(--c-accent));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.card-hover {
    transition: all 0.3s ease;
}

.card-hover:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 0 20px 40px rgba(0,0,0,0.1);
}

.hero-blob {
    position: absolute;
    border-radius: 50%;
    filter: blur(40px);
    opacity: 0.7;
    animation: blob 7s infinite;
}

@keyframes blob {
    0% { transform: translate(0px, 0px) scale(1); }
    33% { transform: translate(30px, -50px) scale(1.1); }
    66% { transform: translate(-20px, 20px) scale(0.9); }
    100% { transform: translate(0px, 0px) scale(1); }
}

.service-icon {
    transition: all 0.3s ease;
}

.service-card:hover .service-icon {
    transform: scale(1.2) rotate(10deg);
}

/* Improved parallax layers */
.parallax-layer-1 {
    transform: translateZ(0);
    will-change: transform;
    transition: transform 0.1s ease-out;
}

.parallax-layer-2 {
    transform: translateZ(0);
    will-change: transform;
    transition: transform 0.1s ease-out;
}

.parallax-layer-3 {
    transform: translateZ(0);
    will-change: transform;
    transition: transform 0.1s ease-out;
}

.parallax-layer-4 {
    transform: translateZ(0);
    will-change: transform;
    transition: transform 0.1s ease-out;
}

/* Child-friendly soft rainbow text animation */
.soft-rainbow-text {
    background: linear-gradient(-45deg, #FF9AA2, #FFB7B2, #FFDAC1, #E2F0CB, #B5EAD7, #C7CEEA);
    background-size: 400% 400%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: rainbow-shift 8s ease-in-out infinite;
}

@keyframes rainbow-shift {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

/* Rainbow text for special elements */
.rainbow-text {
    background: linear-gradient(-45deg, #FF6B6B, #4ECDC4, #45B7D1, #96CEB4, #FFEAA7, #DDA0DD);
    background-size: 400% 400%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: rainbow-shift 6s ease-in-out infinite;
}

/* Mega menu styles */
.mega-menu {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: white;
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.1);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    z-index: 1000;
    padding: 2rem;
    margin-top: 1rem;
}

.mega-menu.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.mega-menu-item {
    padding: 1rem;
    border-radius: 12px;
    transition: all 0.3s ease;
    cursor: pointer;
    text-align: center;
}

.mega-menu-item:hover {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    transform: translateY(-5px);
}

/* FAQ styles */
.faq-item {
    background: white;
    border: 2px solid transparent;
    transition: all 0.3s ease;
}

.faq-item:hover {
    border-color: var(--c-brand);
    box-shadow: 0 10px 30px rgba(106, 102, 255, 0.1);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
}

.faq-answer.open {
    max-height: 200px;
}

/* Footer wave animation */
.footer-wave {
    animation: wave-float 4s ease-in-out infinite;
}

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

/* Mobile navbar improvements */
/* Ensure navigation is always visible */
#navbar {
    z-index: 1000 !important;
    position: relative;
}

header {
    z-index: 1000 !important;
}

/* Ensure desktop navigation is visible */
@media (min-width: 769px) {
    .hidden.md\:flex {
        display: flex !important;
    }
    
    .md\:flex {
        display: flex !important;
    }
    
    .hidden.md\:block {
        display: block !important;
    }
    
    .md\:block {
        display: block !important;
    }
}

@media (max-width: 768px) {
    .glassmorphism {
        background: rgba(255, 255, 255, 0.95);
        backdrop-filter: blur(10px);
        border: 1px solid rgba(255, 255, 255, 0.2);
        box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
        z-index: 1000;
    }
    
    .bg-animated {
        z-index: 1;
    }
}

/* Only show first location card, but keep coming soon box */
#locations .space-y-4 > div:nth-child(n+2):not(.bg-gradient-to-r) {
    display: none;
}

/* Hide Kiddy the Star Baby section content */
.mascot-section {
    display: none;
}

/* Service hover improvements */
.service-card {
    position: relative;
    overflow: hidden;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: left 0.5s;
}

.service-card:hover::before {
    left: 100%;
}

.service-tooltip {
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0,0,0,0.9);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 8px;
    font-size: 0.875rem;
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 1000;
    margin-bottom: 0.5rem;
}

.service-tooltip::after {
    content: '';
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    border: 5px solid transparent;
    border-top-color: rgba(0,0,0,0.9);
}

.service-card:hover .service-tooltip {
    opacity: 1;
    visibility: visible;
}

/* Additional animations and styles moved from inline */
@keyframes birdFly1 {
    0%, 100% { transform: translateX(0) translateY(0) scaleX(1); }
    25% { transform: translateX(50px) translateY(-20px) scaleX(1); }
    50% { transform: translateX(100px) translateY(0) scaleX(-1); }
    75% { transform: translateX(50px) translateY(20px) scaleX(-1); }
}

@keyframes birdFly2 {
    0%, 100% { transform: translateX(0) translateY(0) scaleX(1); }
    33% { transform: translateX(80px) translateY(-30px) scaleX(1); }
    66% { transform: translateX(160px) translateY(10px) scaleX(-1); }
}

@keyframes birdFly3 {
    0%, 100% { transform: translateX(0) translateY(0) scaleX(1); }
    50% { transform: translateX(120px) translateY(-15px) scaleX(-1); }
}

@keyframes sunRotate {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.bird-1 { animation: birdFly1 8s ease-in-out infinite; z-index: 10; }
.bird-2 { animation: birdFly2 10s ease-in-out infinite; z-index: 10; }
.bird-3 { animation: birdFly3 6s ease-in-out infinite; z-index: 10; }
.sun-element { animation: sunRotate 20s linear infinite; }

/* Ensure hidden classes work properly */
.hidden-element,
.hidden {
    display: none !important;
}

.wave-svg { height: 100%; width: 100%; }
.wave-container { height: 80px; z-index: 5; }

.animation-delay-1 { animation-delay: 1s; }
.animation-delay-2 { animation-delay: 2s; }
.animation-delay-3 { animation-delay: 3s; }
.animation-delay-05 { animation-delay: 0.5s; }
.animation-delay-15 { animation-delay: 1.5s; }

.map-popup {
    text-align: center;
    font-family: 'Poppins', sans-serif;
}

.map-popup h3 {
    margin: 0;
}

.map-popup p {
    margin: 5px 0;
}

.map-popup button {
    border: none;
    padding: 5px 10px;
    border-radius: 15px;
    cursor: pointer;
    font-weight: bold;
    color: #2F2E41;
}

/* Human SVG animations */
@keyframes ballThrow {
    0% { transform: translate(0, 0); }
    50% { transform: translate(-10px, -40px); }
    100% { transform: translate(0, 0); }
}

@keyframes kidJump {
    0%, 100% { transform: translateY(0) scale(1); }
    50% { transform: translateY(-30px) scale(1.1); }
}

@keyframes handsUp {
    0%, 100% { transform: rotate(0deg); }
    50% { transform: rotate(-20deg); }
}

@keyframes kiteMove {
    0%, 100% { transform: translate(0, 0) rotate(0deg); }
    50% { transform: translate(20px, -30px) rotate(15deg); }
}

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

/* Additional styles moved from HTML */
/* Child-friendly soft rainbow text animation */
.soft-rainbow-text {
    background: linear-gradient(-45deg, #FF9AA2, #FFB7B2, #FFDAC1, #E2F0CB, #B5EAD7, #C7CEEA);
    background-size: 400% 400%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: softrainbow 6s ease infinite;
}

@keyframes softrainbow {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

/* Character hover effects for hero title */
.char-hover {
    transition: all 0.3s ease;
    display: inline-block;
    cursor: pointer;
}

.char-hover:hover {
    animation: colorHover 1s ease forwards;
    transform: scale(1.1) translateY(-5px);
}

@keyframes colorHover {
    0% { color: inherit; }
    20% { color: #ff6b6b; }
    40% { color: #4ecdc4; }
    60% { color: #45b7d1; }
    80% { color: #96ceb4; }
    100% { color: #ffeaa7; }
}

/* Floating particles */
.particle {
    position: absolute;
    border-radius: 50%;
    pointer-events: none;
    animation: floatUp 4s infinite linear;
}

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

/* Simple hero title style */
#hero-title {
    text-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
}

#hero-title:hover {
    transform: scale(1.02);
}

/* Morphing background */
.morphing-bg {
    background: linear-gradient(-45deg, #6A66FF, #FF577F, #57FFC8, #FFC857);
    background-size: 400% 400%;
    animation: morphing 8s ease infinite;
}

@keyframes morphing {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

/* Advanced service card effects */
.service-card-advanced {
    transform-style: preserve-3d;
    transition: all 0.6s cubic-bezier(0.165, 0.84, 0.44, 1);
    background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
    border: 1px solid rgba(226, 232, 240, 0.8);
    position: relative;
    overflow: hidden;
}

.service-card-advanced::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.4), transparent);
    transition: left 0.6s;
}

.service-card-advanced:hover::before {
    left: 100%;
}

.service-card-advanced:hover {
    transform: translateY(-8px) scale(1.02);
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-color: rgba(102, 126, 234, 0.3);
    box-shadow: 0 20px 40px rgba(102, 126, 234, 0.3);
    color: white;
}

.service-card-advanced .service-icon {
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    transform: scale(1);
}

.service-card-advanced:hover .service-icon {
    transform: scale(1.1) rotate(5deg);
    color: #fbbf24;
    filter: drop-shadow(0 4px 8px rgba(251, 191, 36, 0.3));
}

.service-card-advanced .service-title {
    transition: all 0.3s ease;
}

.service-card-advanced:hover .service-title {
    color: white !important;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.service-card-advanced .service-description {
    transition: all 0.3s ease;
}

.service-card-advanced:hover .service-description {
    color: rgba(255, 255, 255, 0.9) !important;
}

.service-card-advanced:hover h3 {
    color: white !important;
}

.service-card-advanced:hover p {
    color: rgba(255, 255, 255, 0.9) !important;
}

.service-card-advanced:hover .text-xs {
    color: rgba(255, 255, 255, 0.8) !important;
}

.service-card-advanced .service-action {
    transition: all 0.3s ease;
}

.service-card-advanced:hover .service-action {
    background: rgba(255, 255, 255, 0.2);
    color: white;
    border-color: rgba(255, 255, 255, 0.3);
}

/* Footer wave animation */
@keyframes wave {
    0%, 100% { transform: translateX(0) rotate(0deg); }
    50% { transform: translateX(10px) rotate(2deg); }
}

/* Interactive elements */
.interactive-hover {
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.interactive-hover:hover {
    transform: translateY(-10px) scale(1.05);
    box-shadow: 0 20px 40px rgba(0,0,0,0.2);
}

/* ThreeJS container */
#threejs-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
}

/* Parallax Layer Effects */
.parallax-layer {
    transition: transform 0.1s cubic-bezier(0.2, 0.8, 0.2, 1);
    will-change: transform;
}

/* Hero Section Animation Classes */
.slide-down {
    opacity: 0;
    transform: translateY(-30px);
    animation: slideDown 0.8s ease forwards;
    animation-delay: 0.2s;
}

.slide-up {
    opacity: 0;
    transform: translateY(30px);
    animation: slideUp 0.8s ease forwards;
    animation-delay: 0.4s;
}

.slide-up-stagger {
    opacity: 0;
    transform: translateY(30px);
    animation: slideUp 1s ease forwards;
}

.appear-1 {
    opacity: 0;
    animation: fadeIn 0.8s ease forwards;
    animation-delay: 0.5s;
}

.appear-2 {
    opacity: 0;
    animation: fadeIn 0.8s ease forwards;
    animation-delay: 0.8s;
}

.appear-3 {
    opacity: 0;
    animation: fadeIn 0.8s ease forwards;
    animation-delay: 1.1s;
}

.feature-item {
    opacity: 0;
    transform: translateY(20px);
    animation: slideUp 0.5s ease forwards;
}

.feature-item:nth-child(1) { animation-delay: 0.8s; }
.feature-item:nth-child(2) { animation-delay: 1.0s; }
.feature-item:nth-child(3) { animation-delay: 1.2s; }
.feature-item:nth-child(4) { animation-delay: 1.4s; }

@keyframes slideDown {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    to {
        opacity: 1;
    }
}

/* Interactive Playground Animations */
.child-swing {
    animation: swingMotion 3s ease-in-out infinite;
    transform-origin: 89px 158px;
}

@keyframes swingMotion {
    0%, 100% { transform: rotate(-10deg); }
    50% { transform: rotate(10deg); }
}

.child-running {
    animation: runningMotion 2s ease-in-out infinite;
}

@keyframes runningMotion {
    0%, 100% { transform: translateX(0); }
    50% { transform: translateX(20px); }
}

.seesaw-board {
    animation: seesawMotion 4s ease-in-out infinite;
    transform-origin: 210px 224px;
}

@keyframes seesawMotion {
    0%, 100% { transform: rotate(5deg); }
    50% { transform: rotate(-5deg); }
}

.butterfly1 {
    animation: butterflyFly 6s ease-in-out infinite;
}

@keyframes butterflyFly {
    0%, 100% { transform: translate(0, 0); }
    25% { transform: translate(30px, -20px); }
    50% { transform: translate(60px, 10px); }
    75% { transform: translate(30px, 30px); }
}

.sun {
    animation: sunGlow 3s ease-in-out infinite;
}

@keyframes sunGlow {
    0%, 100% { opacity: 0.8; transform: scale(1); }
    50% { opacity: 1; transform: scale(1.1); }
}

.cloud1 {
    animation: cloudFloat1 8s ease-in-out infinite;
}

.cloud2 {
    animation: cloudFloat2 10s ease-in-out infinite;
}

@keyframes cloudFloat1 {
    0% { transform: translateX(-100px); }
    100% { transform: translateX(calc(100vw + 100px)); }
}

@keyframes cloudFloat2 {
    0% { transform: translateX(calc(100vw + 100px)); }
    100% { transform: translateX(-100px); }
}

/* Hero SVG Interactions */
.hero-svg-interactive {
    cursor: pointer;
    transition: all 0.3s ease;
}

.hero-svg-interactive:hover {
    transform: scale(1.05);
}

.cloud-moving {
    transition: transform 2s ease-in-out;
}

/* Enhanced FAQ Styles */
.faq-item {
    background: linear-gradient(135deg, #f8f9ff 0%, #e8f2ff 100%);
    border: 1px solid rgba(106, 102, 255, 0.1);
    transition: all 0.3s ease;
}

.faq-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(106, 102, 255, 0.15);
}

.faq-question {
    transition: all 0.3s ease;
}

/* Hover colorful effect for hero title */
.hover-colorful {
    position: relative;
    transition: all 0.3s ease;
    cursor: pointer;
}

.hover-colorful:hover {
    background: linear-gradient(45deg, #FF6B6B, #4ECDC4, #45B7D1, #96CEB4, #FFEAA7, #DDA0DD);
    background-size: 200% 200%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    color: transparent;
    animation: colorfulGlow 2s ease infinite;
}

/* Individual character hover effect */
.char-hover:hover {
    background: linear-gradient(45deg, #FF6B6B, #4ECDC4, #45B7D1, #96CEB4, #FFEAA7, #DDA0DD);
    background-size: 200% 200%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    color: transparent;
    transform: scale(1.2);
    animation: charGlow 1s ease infinite;
}

/* Enhanced character hover effects */
.char-hover {
    transition: all 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    display: inline-block;
}

.char-hover:hover {
    transform: scale(1.2) rotate(5deg);
}

/* Colorful text effect on hover */
.colorful-on-hover {
    transition: all 0.3s ease;
    position: relative;
}

.colorful-on-hover.painted {
    background: linear-gradient(45deg, #FF6B6B, #4ECDC4, #45B7D1, #96CEB4, #FFEAA7, #DDA0DD, #FF69B4, #32CD32);
    background-size: 400% 400%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: colorShift 3s ease infinite;
}

@keyframes colorShift {
    0%, 100% { background-position: 0% 50%; }
    25% { background-position: 100% 50%; }
    50% { background-position: 50% 100%; }
    75% { background-position: 50% 0%; }
}

@keyframes colorfulGlow {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

@keyframes charGlow {
    0%, 100% { 
        background-position: 0% 50%; 
        transform: scale(1.2);
    }
    50% { 
        background-position: 100% 50%; 
        transform: scale(1.3);
    }
}

/* Cloud movement animations for interactive clouds */
@keyframes cloudMove1 {
    0% { transform: translateX(-50px); }
    100% { transform: translateX(calc(100vw + 50px)); }
}

@keyframes cloudMove2 {
    0% { transform: translateX(calc(100vw + 50px)); }
    100% { transform: translateX(-50px); }
}

/* New animations for improved effects */

@keyframes cloudFloat1 {
    0% {
        transform: translateX(-100px) translateY(0px);
    }
    25% {
        transform: translateX(25vw) translateY(-10px);
    }
    50% {
        transform: translateX(50vw) translateY(5px);
    }
    75% {
        transform: translateX(75vw) translateY(-5px);
    }
    100% {
        transform: translateX(calc(100vw + 100px)) translateY(0px);
    }
}

@keyframes cloudFloat2 {
    0% {
        transform: translateX(calc(100vw + 100px)) translateY(0px);
    }
    25% {
        transform: translateX(75vw) translateY(8px);
    }
    50% {
        transform: translateX(50vw) translateY(-8px);
    }
    75% {
        transform: translateX(25vw) translateY(3px);
    }
    100% {
        transform: translateX(-100px) translateY(0px);
    }
}

@keyframes cloudBob {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-8px); }
}

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

@keyframes particleFloat {
    0% {
        opacity: 1;
        transform: translate(0, 0) scale(1);
    }
    100% {
        opacity: 0;
        transform: translate(var(--end-x, 0), var(--end-y, 0)) scale(0.5);
    }
}

@keyframes sparkleFloat {
    0% {
        transform: translate(0, 0) scale(1) rotate(0deg);
        opacity: 1;
    }
    50% {
        transform: translate(calc(var(--end-x, 0px) - var(--start-x, 0px)), calc(var(--end-y, 0px) - var(--start-y, 0px))) scale(1.5) rotate(180deg);
        opacity: 0.8;
    }
    100% {
        transform: translate(calc(var(--end-x, 0px) - var(--start-x, 0px)), calc(var(--end-y, 0px) - var(--start-y, 0px))) scale(0) rotate(360deg);
        opacity: 0;
    }
}

@keyframes sunRotate {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Tree shaking animation - Super Mario style */
@keyframes treeShake {
    0%, 100% { transform: translateX(0px); }
    25% { transform: translateX(-2px); }
    75% { transform: translateX(2px); }
}

.tree-shake {
    animation: treeShake 2s ease-in-out infinite;
}

/* Fire flicker effect for balloon */
@keyframes fireFlicker {
    0% { 
        transform: translateX(-50%) scale(1) rotate(-2deg);
        opacity: 0.9;
    }
    50% { 
        transform: translateX(-50%) scale(1.1) rotate(2deg);
        opacity: 1;
    }
    100% { 
        transform: translateX(-50%) scale(0.95) rotate(-1deg);
        opacity: 0.8;
    }
}

/* Much slower cloud animations */
@keyframes cloudFloat1 {
    0% { transform: translateX(-100vw); }
    100% { transform: translateX(100vw); }
}

@keyframes cloudFloat2 {
    0% { transform: translateX(100vw); }
    100% { transform: translateX(-100vw); }
}

@keyframes cloudBob {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-8px); }
}

/* Enhanced balloon floating */
@keyframes balloonFloat {
    0%, 100% { 
        transform: translateY(0px) rotate(0deg); 
    }
    25% { 
        transform: translateY(-15px) rotate(2deg); 
    }
    50% { 
        transform: translateY(-10px) rotate(0deg); 
    }
    75% { 
        transform: translateY(-20px) rotate(-2deg); 
    }
}

/* Ensure contact form is always visible */
#contact {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
}

/* Enhanced service card animations */
.service-card-advanced {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.service-card-advanced:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

/* Smooth transitions for dynamic form fields */
.form-group {
    transition: all 0.3s ease-in-out;
}

.form-group input, .form-group select, .form-group textarea {
    transition: all 0.2s ease-in-out;
}

.form-group input:focus, .form-group select:focus, .form-group textarea:focus {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(139, 92, 246, 0.15);
}

/* Enhanced mountain positioning */
.mountain-enhanced {
    transition: transform 0.3s ease-out;
}

.mountain-enhanced:hover {
    transform: scale(1.05);
}

/* Tree swaying with wind effect */
.tree-sway {
    animation: treeSway 4s ease-in-out infinite;
    transform-origin: bottom center;
}

@keyframes treeSway {
    0%, 100% { transform: rotate(0deg); }
    25% { transform: rotate(1deg); }
    75% { transform: rotate(-1deg); }
}

/* Subtle human movements */
.human-subtle-move {
    animation: humanSubtleMove 6s ease-in-out infinite;
}

@keyframes humanSubtleMove {
    0%, 100% { transform: translate(0px, 0px); }
    33% { transform: translate(0.5px, -0.3px); }
    66% { transform: translate(-0.3px, 0.5px); }
}

/* Mobile Megamenu Animations */
.mobile-megamenu-enter {
    animation: mobileMenuSlideIn 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55) forwards;
}

.mobile-megamenu-exit {
    animation: mobileMenuSlideOut 0.2s ease-in forwards;
}

@keyframes mobileMenuSlideIn {
    0% {
        opacity: 0;
        transform: scale(0.8) translateY(-20px);
    }
    100% {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

@keyframes mobileMenuSlideOut {
    0% {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
    100% {
        opacity: 0;
        transform: scale(0.8) translateY(-20px);
    }
}

/* Mobile service circles pulse animation */
.mobile-service-circle {
    animation: mobilePulse 2s ease-in-out infinite;
}

.mobile-service-circle:nth-child(2) { animation-delay: 0.2s; }
.mobile-service-circle:nth-child(3) { animation-delay: 0.4s; }
.mobile-service-circle:nth-child(4) { animation-delay: 0.6s; }
.mobile-service-circle:nth-child(5) { animation-delay: 0.8s; }
.mobile-service-circle:nth-child(6) { animation-delay: 1.0s; }
.mobile-service-circle:nth-child(7) { animation-delay: 1.2s; }

@keyframes mobilePulse {
    0%, 100% {
        transform: scale(1);
        box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    }
    50% {
        transform: scale(1.05);
        box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
    }
}

/* Mobile megamenu center circle special animation */
.mobile-center-circle {
    animation: centerPulse 3s ease-in-out infinite;
}

@keyframes centerPulse {
    0%, 100% {
        transform: scale(1);
        box-shadow: 0 10px 30px rgba(106, 102, 255, 0.3);
    }
    50% {
        transform: scale(1.02);
        box-shadow: 0 15px 40px rgba(106, 102, 255, 0.4);
    }
}