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

body {
    font-family: "Poppins", sans-serif;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    background: #ffffff;
    color: #1f2937;
    overflow-x: hidden;
}

/* Header */
header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    padding: 1rem 2rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(0, 0, 0, 0.08);
}

.header-logo {
    font-size: 1.5rem;
    font-weight: 700;
    color: #1f2937;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.header-logo-icon {
    width: 32px;
    height: 32px;
    background: linear-gradient(135deg, #ff6b6b, #feca57);
    border-radius: 8px;
}

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

nav a {
    color: #4b5563;
    text-decoration: none;
    font-weight: 400;
    font-size: 0.95rem;
    transition: color 0.3s ease;
}

nav a:hover {
    color: #1f2937;
}

.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    flex-direction: column;
    gap: 5px;
}

.mobile-menu-btn span {
    width: 25px;
    height: 2px;
    background: #1f2937;
    border-radius: 2px;
}

/* Main Content */
main {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    padding: 6rem 1.5rem 3rem;
}

.container {
    text-align: center;
    z-index: 1;
    position: relative;
    padding: 0 20px;
    max-width: 1200px;
    width: 100%;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: #1f2937;
    margin-bottom: 0.5rem;
    letter-spacing: -1px;
}

.section-subtitle {
    font-size: 1.1rem;
    font-weight: 300;
    color: #6b7280;
    margin-bottom: 3rem;
}

.games-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.5rem;
    margin-top: 2rem;
    text-align: left;
}

.game-card {
    background: #ffffff;
    border: 1px solid rgba(0, 0, 0, 0.08);
    border-radius: 16px;
    overflow: hidden;
    text-decoration: none;
    color: inherit;
    display: flex;
    flex-direction: column;
    transition:
        transform 0.25s ease,
        box-shadow 0.25s ease,
        border-color 0.25s ease;
    cursor: pointer;
}

.game-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.08);
    border-color: rgba(255, 107, 107, 0.3);
}

.game-thumb {
    height: 160px;
    background: linear-gradient(135deg, #ff6b6b, #feca57);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3.5rem;
}

.game-info {
    padding: 1.25rem 1.25rem 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.game-title {
    font-size: 1.25rem;
    font-weight: 600;
    color: #1f2937;
}

.game-description {
    font-size: 0.95rem;
    font-weight: 300;
    color: #6b7280;
    line-height: 1.5;
}

.play-badge {
    margin-top: 0.75rem;
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    font-size: 0.85rem;
    font-weight: 600;
    color: #ff6b6b;
    align-self: flex-start;
}

/* Footer */
footer {
    position: relative;
    z-index: 1;
    padding: 2rem;
    text-align: center;
    background: #f9fafb;
    border-top: 1px solid rgba(0, 0, 0, 0.08);
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}

.footer-links {
    display: flex;
    gap: 2rem;
    flex-wrap: wrap;
    justify-content: center;
}

.footer-links a {
    color: #6b7280;
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: #1f2937;
}

.footer-social {
    display: flex;
    gap: 1rem;
}

.social-icon {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: #f3f4f6;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #4b5563;
    text-decoration: none;
    font-size: 0.8rem;
    font-weight: 600;
    transition: background 0.3s ease;
}

.social-icon:hover {
    background: #e5e7eb;
}

.footer-copyright {
    color: #9ca3af;
    font-size: 0.85rem;
}

.logo {
    font-size: 5rem;
    font-weight: 700;
    color: #1f2937;
    margin-bottom: 1rem;
    animation: fadeInUp 1s ease-out;
    letter-spacing: -2px;
}

.tagline {
    font-size: 1.5rem;
    font-weight: 300;
    color: #6b7280;
    animation: fadeInUp 1s ease-out 0.2s both;
    letter-spacing: 2px;
}

.box-icon {
    display: inline-block;
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, #ff6b6b, #feca57);
    border-radius: 16px;
    margin-bottom: 2rem;
    box-shadow: 0 10px 30px rgba(255, 107, 53, 0.4);
    animation:
        float 3s ease-in-out infinite,
        fadeInUp 1s ease-out;
}

.background-shapes {
    position: absolute;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: 0;
}

.shape {
    position: absolute;
    background: rgba(0, 0, 0, 0.04);
    border-radius: 50%;
}

.shape:nth-child(1) {
    width: 200px;
    height: 200px;
    top: 10%;
    left: 10%;
    animation: float 6s ease-in-out infinite;
}

.shape:nth-child(2) {
    width: 150px;
    height: 150px;
    bottom: 20%;
    right: 15%;
    animation: float 8s ease-in-out infinite;
}

.shape:nth-child(3) {
    width: 100px;
    height: 100px;
    top: 60%;
    left: 20%;
    animation: float 7s ease-in-out infinite;
}

.shape:nth-child(4) {
    width: 120px;
    height: 120px;
    top: 20%;
    right: 25%;
    animation: float 5s ease-in-out infinite;
}

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

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

/* Search bar */
.search-bar {
    flex-grow: 1;
    max-width: 600px;
    margin: 0 2rem;
}

.search-bar input {
    width: 100%;
    padding: 8px 15px;
    border: 1px solid #ddd;
    border-radius: 20px;
}

/* User menu */
.user-menu {
    display: flex;
    align-items: center;
    gap: 15px;
}

.user-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background-color: #ddd;
}

/* Sidebar */
.sidebar {
    background-color: #fff;
    width: 240px;
    height: calc(100vh - 60px);
    position: fixed;
    left: 0;
    top: 60px;
    padding: 1rem 0;
    box-shadow: 2px 0 5px rgba(0, 0, 0, 0.05);
    overflow-y: auto;
}

.sidebar-item {
    padding: 10px 20px;
    display: flex;
    align-items: center;
    gap: 15px;
    cursor: pointer;
}

.sidebar-item:hover {
    background-color: #f0f0f0;
}

.sidebar-item.active {
    background-color: #f0f0f0;
    border-left: 3px solid #e63946;
}

.sidebar-icon {
    width: 24px;
    height: 24px;
    background-color: #ccc;
    border-radius: 4px;
}

/* Content header */
.content-header {
    margin-bottom: 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* Category tabs */
.category-tabs {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.category-tab {
    padding: 8px 16px;
    background-color: #f0f0f0;
    border-radius: 20px;
    cursor: pointer;
    white-space: nowrap;
}

.category-tab.active {
    background-color: #333;
    color: white;
}

/* Game thumbnail / badge / stats */
.game-thumbnail {
    width: 100%;
    height: 180px;
    background-color: #ddd;
    position: relative;
}

.game-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    background-color: rgba(0, 0, 0, 0.7);
    color: white;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 12px;
}

.game-stats {
    display: flex;
    font-size: 14px;
    color: #666;
}

.game-stats div {
    margin-right: 15px;
}

/* Tablet */
@media (max-width: 768px) {
    .section-title {
        font-size: 2rem;
    }

    .section-subtitle {
        font-size: 1rem;
        margin-bottom: 2rem;
    }

    .logo {
        font-size: 3.5rem;
    }

    .tagline {
        font-size: 1.2rem;
    }

    .box-icon {
        width: 70px;
        height: 70px;
    }

    .shape:nth-child(1) {
        width: 150px;
        height: 150px;
    }

    .shape:nth-child(2) {
        width: 120px;
        height: 120px;
    }

    .shape:nth-child(3) {
        width: 80px;
        height: 80px;
    }

    .shape:nth-child(4) {
        width: 100px;
        height: 100px;
    }

    header {
        padding: 0.8rem 1.5rem;
    }

    nav ul {
        gap: 1.5rem;
    }

    .footer-links {
        gap: 1.5rem;
    }

    .sidebar {
        display: none;
    }
}

/* Mobile */
@media (max-width: 480px) {
    .logo {
        font-size: 2.5rem;
        letter-spacing: -1px;
    }

    .tagline {
        font-size: 1rem;
        letter-spacing: 1px;
    }

    .box-icon {
        width: 60px;
        height: 60px;
        margin-bottom: 1.5rem;
    }

    .shape:nth-child(1) {
        width: 120px;
        height: 120px;
    }

    .shape:nth-child(2) {
        width: 100px;
        height: 100px;
    }

    .shape:nth-child(3) {
        width: 60px;
        height: 60px;
    }

    .shape:nth-child(4) {
        width: 80px;
        height: 80px;
    }

    header {
        padding: 0.8rem 1rem;
    }

    nav ul {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        flex-direction: column;
        background: rgba(255, 255, 255, 0.98);
        backdrop-filter: blur(10px);
        padding: 1rem;
        gap: 0;
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    }

    nav ul.active {
        display: flex;
    }

    nav li {
        padding: 0.8rem 0;
        border-bottom: 1px solid rgba(0, 0, 0, 0.06);
    }

    nav li:last-child {
        border-bottom: none;
    }

    .mobile-menu-btn {
        display: flex;
    }

    .footer-links {
        gap: 1rem;
    }

    .footer-copyright {
        font-size: 0.75rem;
    }
}

/* Very small screens */
@media (max-width: 320px) {
    .logo {
        font-size: 2rem;
    }

    .tagline {
        font-size: 0.9rem;
    }

    .box-icon {
        width: 50px;
        height: 50px;
    }
}
