* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html { 
    overflow-y: scroll; 
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(135deg, #30CFD0 0%, #330867 100%);
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
    position: relative;
}

/* Floating Emojis Background */
.floating-emoji {
    position: fixed;
    font-size: 40px;
    opacity: 0;
    pointer-events: none;
    z-index: 0;
}

@keyframes float {
    0% {
        transform: translateY(100vh) translateX(0);
        opacity: 0;
    }
    10% {
        opacity: 0.6;
    }
    90% {
        opacity: 0.6;
    }
    100% {
        transform: translateY(-100vh) translateX(100px);
        opacity: 0;
    }
}

.float-1 { left: 10%; animation: float 12s ease-in infinite 0.2s; }
.float-2 { left: 15%; animation: float 14s ease-in infinite 0.5s; }
.float-3 { left: 20%; animation: float 13s ease-in infinite 0s; }
.float-4 { left: 25%; animation: float 15s ease-in infinite 1s; }
.float-5 { left: 30%; animation: float 12s ease-in infinite 1.5s; }
.float-6 { left: 35%; animation: float 14s ease-in infinite 0.8s; }
.float-7 { left: 40%; animation: float 13s ease-in infinite 0.3s; }
.float-8 { left: 45%; animation: float 15s ease-in infinite 1.2s; }
.float-9 { left: 50%; animation: float 12s ease-in infinite 0.6s; }
.float-10 { left: 55%; animation: float 14s ease-in infinite 0.9s; }
.float-11 { left: 60%; animation: float 13s ease-in infinite 0.1s; }
.float-12 { left: 65%; animation: float 15s ease-in infinite 1.3s; }
.float-13 { left: 70%; animation: float 12s ease-in infinite 0.7s; }
.float-14 { left: 75%; animation: float 14s ease-in infinite 0.4s; }
.float-15 { left: 80%; animation: float 13s ease-in infinite 1.1s; }
.float-16 { left: 85%; animation: float 15s ease-in infinite 0.2s; }
.float-17 { left: 90%; animation: float 12s ease-in infinite 0.8s; }
.float-8 { left: 80%; animation: float 17s ease-in infinite 2s; }
.float-9 { left: 90%; animation: float 16s ease-in infinite 1.5s; }

.container {
    text-align: center;
    width: 100%;
    max-width: 1000px;
    padding: 40px;
    position: relative;
    z-index: 1;
}

header {
    margin-bottom: 60px;
    color: white;
    animation: fadeInDown 0.8s ease-out;
}

header h1 {
    font-size: 60px;
    margin-bottom: 10px;
    font-weight: 700;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
    animation: titlePulse 3s ease-in-out infinite;
}

.subtitle {
    font-size: 20px;
    opacity: 0.9;
    font-weight: 300;
}

.button-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 30px;
    animation: fadeInUp 0.8s ease-out 0.2s both;
}

.nav-button {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 40px 30px;
    border-radius: 20px;
    text-decoration: none;
    font-size: 18px;
    font-weight: 600;
    color: white;
    transition: all 0.3s ease;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    cursor: pointer;
    min-height: 220px;
}

.nav-button:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.nav-button:active {
    transform: translateY(-5px);
}

.button-icon {
    font-size: 60px;
    margin-bottom: 15px;
}

.button-text {
    font-size: 24px;
    letter-spacing: 0.5px;
}

.guru-btn {
    background: linear-gradient(135deg, #2ecc71 0%, #27ae60 100%);
}

.guru-btn:hover {
    background: linear-gradient(135deg, #22c55e 0%, #1e9e56 100%);
}

.chatrooms-btn {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
}

.chatrooms-btn:hover {
    background: linear-gradient(135deg, #e07aeb 0%, #e43e5c 100%);
}

.images-btn {
    background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
}

.images-btn:hover {
    background: linear-gradient(135deg, #3f9dfd 0%, #00e1ed 100%);
}

.login-btn {
    background: linear-gradient(135deg, #fa709a 0%, #fee140 100%);
    color: #333;
}

.login-btn:hover {
    background: linear-gradient(135deg, #f99089 0%, #fdd82f 100%);
}

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes titlePulse {
    0% {
        transform: scale(1) rotateZ(0deg);
    }
    25% {
        transform: scale(1.1) rotateZ(2deg);
    }
    50% {
        transform: scale(1) rotateZ(0deg);
    }
    75% {
        transform: scale(1.1) rotateZ(-2deg);
    }
    100% {
        transform: scale(1) rotateZ(0deg);
    }
}

/* Top Navigation Bar */
.top-bar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 70px;
    background: rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(10px);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 30px;
    z-index: 100;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.logo {
    font-size: 24px;
    font-weight: 700;
    color: white;
    text-decoration: none;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
    transition: transform 0.3s ease;
}

.logo:hover {
    transform: scale(1.1);
}

.color-wheel-btn {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    border: 2px solid white;
    background: conic-gradient(
        red, yellow, lime, cyan, blue, magenta, red
    );
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.color-wheel-btn:hover {
    transform: scale(1.15) rotate(45deg);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

.color-wheel-btn:active {
    transform: scale(0.95);
}

body.has-topbar {
    padding-top: 70px;
}

/* Responsive Design */
@media (max-width: 768px) {
    header h1 {
        font-size: 36px;
    }

    .subtitle {
        font-size: 16px;
    }

    .button-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .nav-button {
        padding: 30px 20px;
        min-height: 180px;
    }

    .button-icon {
        font-size: 50px;
    }

    .button-text {
        font-size: 20px;
    }
}
