@import url('https://fonts.googleapis.com/css2?family=Nunito:wght@400;600;700;800&display=swap');

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

body {
    font-family: 'Nunito', sans-serif;
    background: linear-gradient(135deg, #ffecd2 0%, #fcb69f 100%);
    color: #333;
    overflow-x: hidden;
}

/* Bubbles Background */
.bubbles-bg {
    position: fixed;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    z-index: -1;
    overflow: hidden;
}

.bubble-float {
    position: absolute;
    border-radius: 50%;
    opacity: 0.3;
    animation: bubbleFloat 15s infinite ease-in-out;
}

@keyframes bubbleFloat {
    0%, 100% {
        transform: translateY(0) rotate(0deg);
    }
    50% {
        transform: translateY(-100vh) rotate(180deg);
    }
}

/* Header */
header {
    background: rgba(255, 255, 255, 0.95);
    padding: 1rem 5%;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    gap: 1rem;
    font-size: 1.8rem;
    font-weight: 800;
    background: linear-gradient(135deg, #ff6b6b, #feca57, #48dbfb, #ff9ff3);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.bubble-logo {
    font-size: 2.5rem;
    animation: bounce 2s infinite;
}

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

nav ul {
    display: flex;
    list-style: none;
    gap: 2rem;
}

nav ul li a {
    color: #666;
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s;
    font-size: 1.1rem;
}

nav ul li a:hover {
    color: #ff6b6b;
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding: 5%;
}

.hero-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 5rem;
    align-items: center;
    max-width: 1400px;
    margin: 0 auto;
}

.hero-text h1 {
    font-size: 4rem;
    margin-bottom: 1.5rem;
    color: #333;
}

.rainbow-text {
    background: linear-gradient(135deg, #ff6b6b, #feca57, #48dbfb, #ff9ff3);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: rainbow 3s infinite;
}

@keyframes rainbow {
    0% { filter: hue-rotate(0deg); }
    100% { filter: hue-rotate(360deg); }
}

.hero-text p {
    font-size: 1.3rem;
    line-height: 1.8;
    margin-bottom: 2rem;
    color: #666;
}

.game-stats {
    display: flex;
    gap: 3rem;
    margin-bottom: 3rem;
}

.stat-item {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 800;
    color: #ff6b6b;
}

.stat-label {
    font-size: 1rem;
    color: #666;
    margin-top: 0.5rem;
}

.hero-buttons {
    display: flex;
    gap: 1.5rem;
}

.btn {
    padding: 1rem 2.5rem;
    text-decoration: none;
    border-radius: 50px;
    font-weight: 700;
    font-size: 1.2rem;
    transition: all 0.3s;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.btn-play {
    background: linear-gradient(135deg, #ff6b6b, #ee5a6f);
    color: white;
    box-shadow: 0 10px 30px rgba(255, 107, 107, 0.3);
}

.btn-play:hover {
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 15px 40px rgba(255, 107, 107, 0.5);
}

.btn-friend {
    background: white;
    color: #ff6b6b;
    border: 3px solid #ff6b6b;
}

.btn-friend:hover {
    background: #ff6b6b;
    color: white;
    transform: translateY(-3px);
}

/* Game Preview */
.hero-visual {
    display: flex;
    justify-content: center;
    align-items: center;
}

.game-preview {
    background: white;
    padding: 3rem;
    border-radius: 30px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.2);
    animation: floatPreview 6s ease-in-out infinite;
}

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

.bubble-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
}

.bubble {
    font-size: 3rem;
    text-align: center;
    cursor: pointer;
    animation: popIn 0.5s ease-out backwards;
    animation-delay: var(--delay);
    transition: transform 0.3s;
}

@keyframes popIn {
    0% {
        transform: scale(0);
        opacity: 0;
    }
    100% {
        transform: scale(1);
        opacity: 1;
    }
}

.bubble:hover {
    transform: scale(1.2) rotate(10deg);
}

/* Sections */
.section {
    padding: 5rem 5%;
    background: white;
}

.section-colorful {
    background: linear-gradient(135deg, #a8edea 0%, #fed6e3 100%);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
}

.section-title {
    text-align: center;
    font-size: 3rem;
    margin-bottom: 4rem;
    color: #333;
}

/* Features Grid */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.feature-card {
    background: white;
    padding: 2.5rem;
    border-radius: 20px;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transition: all 0.3s;
}

.feature-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.2);
}

.feature-icon {
    font-size: 4rem;
    margin-bottom: 1.5rem;
}

.feature-card h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: #ff6b6b;
}

.feature-card p {
    color: #666;
    line-height: 1.6;
}

/* Levels Showcase */
.levels-showcase {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.level-card {
    background: white;
    padding: 2.5rem;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transition: all 0.3s;
}

.level-card:hover {
    transform: translateY(-10px) rotate(2deg);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.2);
}

.level-badge {
    display: inline-block;
    background: linear-gradient(135deg, #ff6b6b, #feca57);
    color: white;
    padding: 0.5rem 1.5rem;
    border-radius: 50px;
    font-weight: 700;
    margin-bottom: 1rem;
}

.level-card h3 {
    font-size: 1.8rem;
    margin-bottom: 1rem;
    color: #333;
}

.level-card p {
    color: #666;
    margin-bottom: 1.5rem;
}

.level-difficulty {
    color: #666;
}

.stars {
    color: #feca57;
}

/* Leaderboard */
.leaderboard {
    max-width: 800px;
    margin: 0 auto;
}

.leaderboard-item {
    display: flex;
    align-items: center;
    padding: 1.5rem 2rem;
    background: white;
    margin-bottom: 1rem;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    transition: all 0.3s;
}

.leaderboard-item:hover {
    transform: translateX(10px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.leaderboard-item.gold {
    background: linear-gradient(135deg, #feca57, #ff9ff3);
    color: white;
}

.leaderboard-item.silver {
    background: linear-gradient(135deg, #c0c0c0, #a8a8a8);
    color: white;
}

.leaderboard-item.bronze {
    background: linear-gradient(135deg, #cd7f32, #a0522d);
    color: white;
}

.rank {
    font-size: 2rem;
    margin-right: 2rem;
    min-width: 60px;
}

.name {
    font-size: 1.3rem;
    font-weight: 700;
    flex: 1;
}

.score {
    font-size: 1.2rem;
    font-weight: 600;
}

/* Footer */
footer {
    background: #333;
    color: white;
    padding: 3rem 5%;
    text-align: center;
}

.social-links {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin-top: 2rem;
}

.social-links a {
    color: white;
    text-decoration: none;
    padding: 0.5rem 1.5rem;
    border: 2px solid white;
    border-radius: 50px;
    transition: all 0.3s;
}

.social-links a:hover {
    background: white;
    color: #333;
}

/* Responsive */
@media (max-width: 768px) {
    .hero-content {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .hero-text h1 {
        font-size: 2.5rem;
    }
    
    .game-stats {
        flex-direction: column;
        gap: 1.5rem;
    }
    
    .hero-buttons {
        flex-direction: column;
    }
    
    nav ul {
        display: none;
    }
}