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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    color: #1a1a2e;
    overflow: hidden;
    height: 100vh;
    display: flex;
    flex-direction: column;
}

.hero {
    position: relative;
    width: 100%;
    flex: 1;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    transition: background-image 0.5s ease;
    background-image: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, rgba(0,0,0,0.2) 0%, transparent 20%, transparent 70%, rgba(245,247,250,0.9) 100%);
}

.hero-header {
    position: absolute;
    top: 20px;
    left: 30px;
    display: flex;
    align-items: center;
    gap: 15px;
    z-index: 2;
    background: rgba(0,0,0,0.1);
    padding: 8px 15px;
    border-radius: 8px;
    
}

.school-logo {
    width: 60px;
    height: 60px;
    object-fit: contain;
    filter: drop-shadow(2px 2px 8px rgba(0,0,0,0.3));
}

.school-name {
    font-size: 1.5rem;
    font-weight: 700;
    color: #fff;
    text-shadow: 2px 2px 8px rgba(0,0,0,0.5);
}

.hero-content {
    position: absolute;
    bottom: 30px;
    left: 30px;
    z-index: 2;
}

.hero-content h1 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 6px;
    text-shadow: 2px 4px 12px rgba(0,0,0,0.3);
    animation: fadeInUp 0.5s ease;
    color: #fff;
}

.hero-content p {
    font-size: 1rem;
    opacity: 0.95;
    text-shadow: 1px 2px 8px rgba(0,0,0,0.3);
    animation: fadeInUp 0.5s ease 0.1s backwards;
    color: #fff;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.carousel-container {
    position: relative;
    padding: 20px 30px 25px;
    background: rgba(255,255,255,0.4);
    backdrop-filter: blur(5px);
    border-top: 1px solid rgba(255,255,255,0.6);
    box-shadow: 0 -10px 40px rgba(0,0,0,0.05);
}

.carousel {
    display: flex;
    gap: 12px;
    overflow-x: auto;
    scroll-behavior: smooth;
    padding: 6px 0;
    scrollbar-width: none;
}

.carousel::-webkit-scrollbar {
    display: none;
}

.game-card {
    position: relative;
    min-width: 150px;
    height: 200px;
    border-radius: 10px;
    overflow: hidden;
    cursor: pointer;
    transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    background: rgba(255,255,255,0.5);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255,255,255,0.7);
    box-shadow: 0 8px 32px rgba(0,0,0,0.1);
}

.game-card:hover {
    transform: scale(1.05) translateY(-6px);
    box-shadow: 0 16px 48px rgba(0,0,0,0.15), 0 0 30px rgba(102,126,234,0.3);
    border-color: rgba(255,255,255,0.9);
    background: rgba(255,255,255,0.7);
}

.game-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.35s ease;
}

.game-card:hover img {
    transform: scale(1.08);
}

.game-card-title {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 12px;
    background: linear-gradient(to top, rgba(255,255,255,0.95) 0%, rgba(255,255,255,0.7) 70%, transparent 100%);
    font-size: 0.9rem;
    font-weight: 600;
    text-shadow: 1px 1px 4px rgba(255,255,255,0.8);
    backdrop-filter: blur(10px);
    color: #1a1a2e;
}

.nav-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255,255,255,0.6);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255,255,255,0.8);
    color: #1a1a2e;
    font-size: 2rem;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    cursor: pointer;
    z-index: 10;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
    box-shadow: 0 4px 16px rgba(0,0,0,0.1);
}

.nav-btn:hover {
    background: rgba(255,255,255,0.85);
    transform: translateY(-50%) scale(1.08);
    box-shadow: 0 6px 24px rgba(0,0,0,0.15);
}

.nav-btn.left {
    left: 6px;
}

.nav-btn.right {
    right: 6px;
}

@media (max-width: 768px) {
    .hero-header {
        top: 15px;
        left: 20px;
        gap: 10px;
    }
    
    .school-logo {
        width: 45px;
        height: 45px;
    }
    
    .school-name {
        font-size: 1.1rem;
    }
    
    .hero-content {
        left: 20px;
        bottom: 20px;
    }
    
    .hero-content h1 {
        font-size: 1.8rem;
    }
    
    .hero-content p {
        font-size: 0.9rem;
    }
    
    .carousel-container {
        padding: 16px 12px 20px;
    }
    
    .game-card {
        min-width: 130px;
        height: 180px;
    }
    
    .game-card-title {
        font-size: 0.85rem;
        padding: 10px;
    }
    
    .nav-btn {
        width: 38px;
        height: 38px;
        font-size: 1.8rem;
    }
}
