/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Nunito', sans-serif;
    min-height: 100vh;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    position: relative;
}

/* Portal Background */
.portal-background {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 120vw;
    height: 120vh;
    z-index: -1;
}

.portal-ring {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 80vw;
    height: 80vw;
    border: 10px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    animation: portalSpin 20s linear infinite;
    box-shadow: 0 0 50px rgba(255, 255, 255, 0.5);
}

.portal-center {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 60vw;
    height: 60vw;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.1) 0%, transparent 70%);
    border-radius: 50%;
    animation: portalPulse 3s ease-in-out infinite;
}

@keyframes portalSpin {
    0% { transform: translate(-50%, -50%) rotate(0deg); }
    100% { transform: translate(-50%, -50%) rotate(360deg); }
}

@keyframes portalPulse {
    0%, 100% { opacity: 0.3; transform: translate(-50%, -50%) scale(1); }
    50% { opacity: 0.6; transform: translate(-50%, -50%) scale(1.1); }
}

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

.wiz-coin, .ai-robot, .sticker {
    position: absolute;
    font-size: 2rem;
    animation: float 6s ease-in-out infinite;
}

.wiz-coin:nth-child(1) {
    top: 10%;
    left: 10%;
    animation-delay: 0s;
}

.wiz-coin:nth-child(2) {
    top: 20%;
    right: 15%;
    animation-delay: 2s;
}

.wiz-coin:nth-child(3) {
    bottom: 30%;
    left: 20%;
    animation-delay: 4s;
}

.ai-robot:nth-child(4) {
    top: 30%;
    right: 10%;
    animation-delay: 1s;
    animation-name: robotWave;
}

.ai-robot:nth-child(5) {
    bottom: 20%;
    right: 25%;
    animation-delay: 3s;
    animation-name: robotWave;
}

.sticker:nth-child(6) {
    top: 60%;
    left: 5%;
    animation-delay: 1.5s;
}

.sticker:nth-child(7) {
    top: 15%;
    left: 50%;
    animation-delay: 3.5s;
}

.sticker:nth-child(8) {
    bottom: 40%;
    right: 5%;
    animation-delay: 5s;
}

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

@keyframes robotWave {
    0%, 100% { transform: translateY(0px) rotate(0deg) scale(1); }
    25% { transform: translateY(-15px) rotate(10deg) scale(1.1); }
    50% { transform: translateY(-5px) rotate(-10deg) scale(1); }
    75% { transform: translateY(-10px) rotate(5deg) scale(1.05); }
}

/* Main Container */
.container {
    position: relative;
    z-index: 2;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    padding: 1rem;
}

/* Welcome Header */
.welcome-header {
    text-align: center;
    margin-bottom: 1rem;
    animation: slideInFromTop 1s ease-out;
}

.main-title {
    font-family: 'Fredoka One', cursive;
    font-size: clamp(1.5rem, 4vw, 2.5rem);
    color: #fff;
    text-shadow: 3px 3px 6px rgba(0, 0, 0, 0.3);
    margin-bottom: 0.5rem;
    animation: titleBounce 2s ease-in-out infinite;
}

.sub-title {
    font-family: 'Fredoka One', cursive;
    font-size: clamp(1rem, 2.5vw, 1.5rem);
    color: #ffeb3b;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
    animation: sparkle 3s ease-in-out infinite;
}

@keyframes slideInFromTop {
    0% { transform: translateY(-100px); opacity: 0; }
    100% { transform: translateY(0); opacity: 1; }
}

@keyframes titleBounce {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

@keyframes sparkle {
    0%, 100% { text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3); }
    50% { text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3), 0 0 20px #ffeb3b; }
}

/* Content Grid */
.content-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1rem;
    margin-bottom: 1rem;
    flex: 1;
}

.section {
    background: rgba(255, 255, 255, 0.9);
    border-radius: 15px;
    padding: 1rem;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    animation: slideInFromBottom 1s ease-out;
    transition: transform 0.3s ease;
}

.section:hover {
    transform: translateY(-5px) scale(1.02);
}

.section-header {
    font-family: 'Fredoka One', cursive;
    font-size: 1.2rem;
    color: #333;
    margin-bottom: 0.5rem;
    text-align: center;
}

.section-content p {
    font-size: 0.9rem;
    line-height: 1.4;
    margin-bottom: 0.3rem;
    color: #444;
}

.section-button {
    font-family: 'Fredoka One', cursive;
    font-size: 0.9rem;
    background: linear-gradient(135deg, #ff6b6b, #ee5a24);
    color: white;
    border: none;
    border-radius: 25px;
    padding: 0.8rem 1.2rem;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
    margin-top: 1rem;
    width: 100%;
    animation: buttonGlow 3s ease-in-out infinite;
}

.section-button:hover {
    transform: translateY(-2px) scale(1.05);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
    background: linear-gradient(135deg, #ee5a24, #ff6b6b);
}

@keyframes buttonGlow {
    0%, 100% { box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2); }
    50% { box-shadow: 0 4px 15px rgba(255, 107, 107, 0.4), 0 0 20px rgba(255, 107, 107, 0.3); }
}

.kids-section {
    background: linear-gradient(135deg, rgba(255, 193, 7, 0.9), rgba(255, 235, 59, 0.9));
    animation-delay: 0.2s;
}

.parents-section {
    background: linear-gradient(135deg, rgba(76, 175, 80, 0.9), rgba(129, 199, 132, 0.9));
    animation-delay: 0.4s;
}

.teachers-section {
    background: linear-gradient(135deg, rgba(63, 81, 181, 0.9), rgba(121, 134, 203, 0.9));
    animation-delay: 0.6s;
}

.owners-section {
    background: linear-gradient(135deg, rgba(156, 39, 176, 0.9), rgba(186, 104, 200, 0.9));
    animation-delay: 0.8s;
}

@keyframes slideInFromBottom {
    0% { transform: translateY(50px); opacity: 0; }
    100% { transform: translateY(0); opacity: 1; }
}

/* Competition Section */
.competition-section {
    background: linear-gradient(135deg, rgba(255, 87, 34, 0.9), rgba(255, 152, 0, 0.9));
    border-radius: 20px;
    padding: 1rem;
    margin-bottom: 1rem;
    text-align: center;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
    animation: slideInFromLeft 1s ease-out 1s both;
}

.competition-title {
    font-family: 'Fredoka One', cursive;
    font-size: clamp(1.2rem, 3vw, 1.8rem);
    color: #fff;
    margin-bottom: 1rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.competition-dates {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
    margin-bottom: 1rem;
}

.date-block {
    background: rgba(255, 255, 255, 0.2);
    border-radius: 10px;
    padding: 0.8rem;
}

.date-block h4 {
    font-family: 'Fredoka One', cursive;
    color: #fff;
    margin-bottom: 0.5rem;
    font-size: 1rem;
}

.date-block p {
    color: #fff;
    font-size: 0.9rem;
    margin-bottom: 0.2rem;
}

.competition-note {
    font-family: 'Fredoka One', cursive;
    font-size: 1.1rem;
    color: #fff;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

@keyframes slideInFromLeft {
    0% { transform: translateX(-100px); opacity: 0; }
    100% { transform: translateX(0); opacity: 1; }
}

/* Call to Action */
.cta-section {
    text-align: center;
    animation: slideInFromRight 1s ease-out 1.2s both;
}

.cta-button {
    font-family: 'Fredoka One', cursive;
    font-size: clamp(1.2rem, 3vw, 1.8rem);
    background: linear-gradient(135deg, #ff6b6b, #ee5a24);
    color: white;
    border: none;
    border-radius: 50px;
    padding: 1rem 2rem;
    cursor: pointer;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    transition: all 0.3s ease;
    animation: pulse 2s ease-in-out infinite;
    margin-bottom: 0.5rem;
}

.cta-button:hover {
    transform: scale(1.05);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.4);
}

.cta-note {
    color: #fff;
    font-size: 0.9rem;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
}

@keyframes pulse {
    0%, 100% { transform: scale(1); box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3); }
    50% { transform: scale(1.02); box-shadow: 0 12px 40px rgba(255, 107, 107, 0.5); }
}

@keyframes slideInFromRight {
    0% { transform: translateX(100px); opacity: 0; }
    100% { transform: translateX(0); opacity: 1; }
}

/* Speech Bubbles */
.speech-bubbles {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 3;
}

.bubble {
    position: absolute;
    background: #fff;
    border-radius: 20px;
    padding: 0.5rem 1rem;
    font-size: 0.8rem;
    color: #333;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
    animation: bubbleFloat 4s ease-in-out infinite;
    max-width: 150px;
    text-align: center;
}

.bubble::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 20px;
    width: 0;
    height: 0;
    border-left: 10px solid transparent;
    border-right: 10px solid transparent;
    border-top: 10px solid #fff;
}

.bubble1 {
    top: 25%;
    left: 15%;
    animation-delay: 2s;
}

.bubble2 {
    top: 45%;
    right: 20%;
    animation-delay: 4s;
}

.bubble3 {
    bottom: 35%;
    left: 25%;
    animation-delay: 6s;
}

@keyframes bubbleFloat {
    0%, 100% { opacity: 0; transform: translateY(20px) scale(0.8); }
    20%, 80% { opacity: 1; transform: translateY(0) scale(1); }
}

/* Responsive Design */
@media (max-width: 768px) {
    .container {
        padding: 0.5rem;
    }
    
    .content-grid {
        grid-template-columns: 1fr;
        gap: 0.5rem;
    }
    
    .section {
        padding: 0.8rem;
    }
    
    .competition-dates {
        grid-template-columns: 1fr;
    }
    
    .floating-elements .wiz-coin,
    .floating-elements .ai-robot,
    .floating-elements .sticker {
        font-size: 1.5rem;
    }
    
    .bubble {
        font-size: 0.7rem;
        padding: 0.4rem 0.8rem;
        max-width: 120px;
    }
}

@media (max-width: 480px) {
    .main-title {
        font-size: 1.3rem;
    }
    
    .sub-title {
        font-size: 0.9rem;
    }
    
    .cta-button {
        font-size: 1rem;
        padding: 0.8rem 1.5rem;
    }
    
    .floating-elements .wiz-coin,
    .floating-elements .ai-robot,
    .floating-elements .sticker {
        font-size: 1.2rem;
    }
}