* {

    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Roboto', sans-serif;
    scroll-behavior: smooth;
}

:root {
    --primary: #6c5ce7;
    --secondary: #a29bfe;
    --dark: #2d3436;
    --light: #f5f6fa;
    --accent: #00cec9;
    --danger: #d63031;
    --success: #00b894;
    --bg: #1a1a2e;
    --header-bg: #16213e;
    --hover-bg: rgba(255, 255, 255, 0.1);
    --hero-bg: #0F0C12;
    --bt-color: #027e7c;
}

body {
    background-color: var(--bg);
    color: var(--light);
    min-height: 100vh;
    display: flex;
    flex-direction: column;

}

header {
    background-color: var(--header-bg);
    padding: 1rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    position: sticky;
    top: 0;
    z-index: 100;
}

.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
    gap: 5px;
}

.hamburger span {
    display: block;
    width: 25px;
    height: 3px;
    background-color: white;
}

.logo {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.logo h1 {
    font-family: 'Poppins', sans-serif;
    font-weight: 700;
    background: linear-gradient(to right, var(--primary), var(--accent));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

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

nav a {
    color: var(--light);
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    padding: 0.5rem 1rem;
    border-radius: 5px;
}

nav a:hover {
    background-color: var(--hover-bg);
    color: var(--secondary);
}

.search-user {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.search-bar {
    position: relative;
}

.search-bar input {
    padding: 0.5rem 1rem;
    border-radius: 20px;
    border: none;
    background-color: rgba(255, 255, 255, 0.1);
    color: var(--light);
    padding-left: 2rem;
    width: 200px;
    transition: all 0.3s ease;
}

.search-bar input:focus {
    outline: none;
    width: 250px;
    background-color: rgba(255, 255, 255, 0.2);
}

.search-bar::before {
    content: "";
    position: absolute;
    left: 10px;
    top: 50%;
    transform: translateY(-30%);
}
.header-controls {
            display: flex;
            align-items: center;
            gap: 1rem;
        }

        .fullscreen-btn {
            background: transparent;
            color: white;
            border: none;
            border-radius: 25px;
            padding: 0.5rem 1rem;
            cursor: pointer;
            display: flex;
            align-items: center;
            gap: 0.5rem;
            font-family: 'Roboto', sans-serif;
            transition: all 0.3s ease;
        }

        .fullscreen-btn:hover {
            background: var(--secondary);
            transform: translateY(-2px);
        }
.user-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

.user-avatar:hover {
    transform: scale(1.1);
}

.hero {
    height: 400px;
    background: var(--hero-bg);
    background-size: cover;
    background-position: center;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 2rem;
    position: relative;
    overflow: hidden;
}

.hero h2 {
    font-size: 3rem;
    margin-bottom: 1rem;
    font-family: 'Poppins', sans-serif;
    background: linear-gradient(to right, var(--light), var(--secondary));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.hero p {
    font-size: 1.2rem;
    max-width: 600px;
    margin-bottom: 2rem;
    opacity: 0.9;
}

.explore-button {
    text-decoration: none;
    padding: 0.7rem 1rem;
    background: linear-gradient(to left, var(--primary), var(--accent));
    color: white;
    border: none;
    border-radius: 30px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(66, 63, 88, 0.4);
    position: relative;
    overflow: hidden;
}

.explore-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(58, 57, 63, 0.6);
}

.explore-button span {
    position: relative;
    z-index: 1;
}

.main-container {
    display: flex;
    flex: 1;
}

.sidebar {
    width: 250px;
    background-color: #0f3460;
    padding: 1.5rem;
    position: sticky;
    top: 80px;
    height: calc(100vh - 80px);
    overflow-y: auto;
}

.sidebar-section {
    margin-bottom: 2rem;
}

.sidebar-section h3 {
    font-size: 1.1rem;
    margin-bottom: 1rem;
    color: var(--secondary);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.sidebar-section ul {
    list-style: none;
}

.sidebar-section li {
    margin-bottom: 0.5rem;
}

.sidebar-section a {
    color: var(--light);
    text-decoration: none;
    display: block;
    padding: 0.5rem;
    border-radius: 5px;
    transition: all 0.3s ease;
    opacity: 0.8;
}

.sidebar-section a:hover {
    background-color: rgba(255, 255, 255, 0.1);
    opacity: 1;
}

.sidebar-section a.active {
    background-color: var(--primary);
    opacity: 1;
}

.online-friend {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
}

.online-status {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background-color: var(--success);
}

.main-content {
    flex: 1;
    padding: 2rem;
}

.section-title {
    font-family: 'Poppins', sans-serif;
    font-size: 1.8rem;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.section-title::after {
    content: "";
    flex: 1;
    height: 2px;
    background: linear-gradient(to right, var(--primary), transparent);
}

.games-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 1.5rem;
    margin-bottom: 3rem;
}

.game-card {
    background-color: #16213e;
    border-radius: 10px;
    overflow: hidden;
    transition: all 0.3s ease;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    position: relative;
}

.game-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}

.game-image {
    height: 150px;
    background-size: cover;
    background-position: center;
    position: relative;
}

.game-image::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 50%;
    background: linear-gradient(to top, rgba(22, 33, 62, 0.9), transparent);
}

.game-info {
    padding: 1rem;
}

.game-title {
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
    font-family: 'Poppins', sans-serif;
}

.game-data {
    display: flex;
    gap: 1rem;
    margin-bottom: 1rem;
    font-size: 0.9rem;
    opacity: 0.8;
}

.game-card-meta span {
    display: flex;
    align-items: center;
    gap: 0.3rem;
}

.play-button {
    display: inline-block;
    padding: 0.5rem 1rem;
    background-color: var(--primary);
    color: white;
    text-decoration: none;
    border-radius: 5px;
    font-weight: 500;
    transition: all 0.3s ease;
}

.play-button:hover {
    background-color: var(--accent);
}

.category-tabs {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
}

.category-tab {
    padding: 0.5rem 1rem;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 0.9rem;
}

.category-tab:hover {
    background-color: rgba(255, 255, 255, 0.2);
}

.category-tab.active {
    background-color: var(--primary);
    font-weight: 500;
}

footer {
    background-color: #0f3460;
    padding: 2rem;
    margin-top: auto;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 2rem;
}

.footer-section {
    flex: 1;
    min-width: 200px;
}

.footer-section h3 {
    margin-bottom: 1rem;
    color: var(--secondary);
}

.footer-section ul {
    list-style: none;
}

.footer-section li {
    margin-bottom: 0.5rem;
}

.footer-section a {
    color: var(--light);
    text-decoration: none;
    opacity: 0.8;
    transition: all 0.3s ease;
}

.footer-section a:hover {
    opacity: 1;
    color: var(--secondary);
}

.social-links {
    display: flex;
    gap: 1rem;
    margin-top: 1rem;
}

.social-links a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
}

.social-links a:hover {
    background-color: var(--primary);
    transform: translateY(-3px);
}

.newsletter-form {
    display: flex;
    margin-top: 1rem;
}

.newsletter-form input {
    flex: 1;
    padding: 0.5rem 1rem;
    border: none;
    border-radius: 5px 0 0 5px;
    background-color: rgba(255, 255, 255, 0.1);
    color: var(--light);
}

.newsletter-form button {
    padding: 0.5rem 1rem;
    background-color: var(--primary);
    color: white;
    border: none;
    border-radius: 0 5px 5px 0;
    cursor: pointer;
    transition: all 0.3s ease;
}

.newsletter-form button:hover {
    background-color: var(--accent);
}

.copyright {
    text-align: center;
    margin-top: 2rem;
    padding-top: 1rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    opacity: 0.7;
    font-size: 0.9rem;
}

@media (max-width: 1024px) {
    .sidebar {
        width: 200px;
    }
}

@media (max-width: 768px) {
    header {
        flex-direction: column;
        gap: 1rem;
        padding: 1rem;
    }

    .search-user {
        width: 100%;
        justify-content: center;
    }

    .main-container {
        flex-direction: column;
    }

    .sidebar {
        width: 100%;
        position: static;
        height: auto;
        order: 2;
    }

    .trending-games {
        order: 1;
    }

    .all-games {
        order: 3;
    }

    .hero h2 {
        font-size: 2rem;
    }
}

@media (max-width: 480px) {
    .hamburger {
        display: flex;
        flex-direction: column;
        cursor: pointer;
        gap: 5px;
    }

    .header .navContent .rightNav nav .hamburger span {
        display: block;
        width: 25px;
        height: 3px;
        background-color: white;
    }

    header {
        flex-direction: row;
        gap: 15%;
    }

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

    .search-bar {
        display: none;
    }

    .games-grid {
        grid-template-columns: 1fr;
    }
     .sidebar {
        width: 100%;
        position: static;
        height: auto;
        order:2;
    }
    .trending-games{
        order:1;
    }
    .all-games{
        order:3;
    }
    .fullscreen-btn {
                display: none;
            }
}