* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Comic Sans MS', cursive, sans-serif;
    line-height: 1.6;
    color: #2d3436;
    background: linear-gradient(45deg, #ffeaa7, #fab1a0, #fd79a8, #fdcb6e);
    background-size: 400% 400%;
    animation: gradientShift 8s ease infinite;
    overflow-x: hidden;
}

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

.rainbow-border {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 8px;
    background: linear-gradient(90deg, 
        #ff6b6b, #4ecdc4, #45b7d1, #96ceb4, 
        #ffeaa7, #dda0dd, #98d8c8, #ff7675
    );
    background-size: 200% 100%;
    animation: rainbowMove 3s linear infinite;
    z-index: 1000;
}

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

header {
    background: linear-gradient(135deg, #e17055, #fd79a8, #fdcb6e);
    color: white;
    padding: 2rem 0;
    text-align: center;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
    margin-top: 8px;
}

.header-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.main-title {
    font-size: 3rem;
    margin-bottom: 0.5rem;
    text-shadow: 3px 3px 0px #d63031;
    animation: bounce 2s ease-in-out infinite alternate;
}

@keyframes bounce {
    0% { transform: translateY(0px); }
    100% { transform: translateY(-10px); }
}

.subtitle {
    font-size: 1.3rem;
    margin-bottom: 1.5rem;
    background: linear-gradient(45deg, #00b894, #0984e3, #6c5ce7);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: bold;
}

nav ul {
    display: flex;
    justify-content: center;
    list-style: none;
    flex-wrap: wrap;
    gap: 1rem;
}

nav ul li a {
    background: linear-gradient(45deg, #ff7675, #fd79a8);
    color: white;
    text-decoration: none;
    padding: 0.8rem 1.5rem;
    border-radius: 25px;
    font-weight: bold;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
    border: 3px solid white;
}

nav ul li a:hover {
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 8px 25px rgba(0,0,0,0.3);
    background: linear-gradient(45deg, #00b894, #0984e3);
}

main {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem;
}

section {
    margin-bottom: 3rem;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 20px;
    padding: 2rem;
    box-shadow: 0 8px 32px rgba(0,0,0,0.1);
    border: 3px solid transparent;
    background-clip: padding-box;
}

section h2 {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
    text-align: center;
    background: linear-gradient(45deg, #e17055, #fd79a8, #fdcb6e);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.1);
}

.section-home {
    background: linear-gradient(135deg, rgba(255, 234, 167, 0.9), rgba(250, 177, 160, 0.9));
}

.welcome-box {
    text-align: center;
}

.welcome-box h2 {
    color: #d63031;
    margin-bottom: 1rem;
}

.welcome-box p {
    font-size: 1.3rem;
    margin-bottom: 2rem;
    color: #2d3436;
}

.fun-facts {
    display: flex;
    justify-content: space-around;
    flex-wrap: wrap;
    gap: 1rem;
    margin-top: 2rem;
}

.fact-bubble {
    background: linear-gradient(45deg, #fd79a8, #fdcb6e);
    color: white;
    padding: 1rem 1.5rem;
    border-radius: 50px;
    font-weight: bold;
    font-size: 1.1rem;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
    animation: wiggle 3s ease-in-out infinite;
}

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

.section-about {
    background: linear-gradient(135deg, rgba(116, 185, 255, 0.9), rgba(162, 155, 254, 0.9));
}

.about-text {
    font-size: 1.2rem;
    line-height: 1.8;
}

.about-text ul {
    list-style: none;
    padding-left: 0;
    margin-top: 1rem;
}

.about-text li {
    margin-bottom: 0.8rem;
    font-size: 1.1rem;
    padding: 0.5rem;
    background: rgba(255, 255, 255, 0.5);
    border-radius: 10px;
    border-left: 5px solid #fd79a8;
}

.section-math {
    background: linear-gradient(135deg, rgba(150, 206, 180, 0.9), rgba(255, 234, 167, 0.9));
}

.math-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
}

.math-box, .math-fun {
    background: rgba(255, 255, 255, 0.8);
    padding: 1.5rem;
    border-radius: 15px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.math-box h3, .math-fun h3 {
    color: #00b894;
    margin-bottom: 1rem;
    font-size: 1.5rem;
}

.math-box ul {
    list-style: none;
}

.math-box li {
    margin-bottom: 0.8rem;
    padding: 0.5rem;
    background: linear-gradient(45deg, rgba(0, 184, 148, 0.1), rgba(9, 132, 227, 0.1));
    border-radius: 8px;
    border-left: 4px solid #00b894;
}

.section-sports {
    background: linear-gradient(135deg, rgba(255, 118, 117, 0.9), rgba(253, 121, 168, 0.9));
}

.sports-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
}

.sport-box {
    background: rgba(255, 255, 255, 0.9);
    padding: 2rem;
    border-radius: 15px;
    text-align: center;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
}

.sport-box:hover {
    transform: translateY(-5px);
}

.sport-box.soccer {
    border-top: 5px solid #00b894;
}

.sport-box.swimming {
    border-top: 5px solid #0984e3;
}

.sport-box h3 {
    font-size: 1.8rem;
    margin-bottom: 1rem;
    color: #2d3436;
}

.section-contact {
    background: linear-gradient(135deg, rgba(221, 160, 221, 0.9), rgba(152, 206, 200, 0.9));
    text-align: center;
}

.contact-content {
    font-size: 1.2rem;
}

.contact-info {
    background: rgba(255, 255, 255, 0.8);
    padding: 2rem;
    border-radius: 15px;
    margin: 2rem 0;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.contact-info p {
    margin-bottom: 1rem;
    font-size: 1.1rem;
}

.contact-note {
    font-style: italic;
    color: #e17055;
    font-weight: bold;
    margin-top: 1.5rem;
}

footer {
    background: linear-gradient(135deg, #6c5ce7, #fd79a8);
    color: white;
    text-align: center;
    padding: 2rem 0;
    margin-top: 3rem;
    box-shadow: 0 -4px 15px rgba(0,0,0,0.2);
}

.footer-content p {
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
}

.floating-shapes {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: -1;
}

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

.shape-1 {
    top: 20%;
    left: 10%;
    animation-delay: 0s;
}

.shape-2 {
    top: 60%;
    right: 15%;
    animation-delay: 2s;
}

.shape-3 {
    top: 40%;
    left: 80%;
    animation-delay: 4s;
}

.shape-4 {
    top: 80%;
    left: 30%;
    animation-delay: 1s;
}

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

@media (max-width: 768px) {
    .main-title {
        font-size: 2rem;
    }
    
    .math-content, .sports-content {
        grid-template-columns: 1fr;
    }
    
    nav ul {
        flex-direction: column;
    }
    
    .fun-facts {
        flex-direction: column;
        align-items: center;
    }
}