:root {
    --primary: #080808;
    --secondary: #190061;
    --accent: #FF0001;
    --light-accent: #4f25f7;
    --text: #fff;
    --white: #fff;
    --light-gray: #f8f9fa;
    --gray: #e9ecef;
    --dark-gray: #343a40;
    --transition: all 0.3s ease;
    --shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
    --gradient: linear-gradient(135deg, var(--accent), var(--secondary));
    --glow: 0 0 15px rgba(126, 34, 206, 0.7);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Outfit', sans-serif;
}

body {
    background: #080808;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* Header Styles */
header {
    background: var(--gradient);
    color: var(--white);
    box-shadow: var(--shadow);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    padding: 1.2rem 0;
    transition: var(--transition);
}

header:after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, transparent, var(--light-accent), transparent);
}

.nav-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* Logo Styles */
.logo {
    text-decoration: none;
    color: var(--white);
    font-weight: 700;
    font-size: 1.8rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    position: relative;
    letter-spacing: 1px;
}

.logo img {
    height: 45px;
    transition: var(--transition);
}

.logo:hover img {
    transform: rotate(5deg);
}

/* Navigation Menu Styles */
.nav-menu {
    display: flex;
    gap: 1.2rem;
    list-style: none;
    padding: 0;
    margin: 0;
}

.nav-menu a {
    text-decoration: none;
    color: var(--white);
    font-weight: 500;
    font-size: 1.1rem;
    padding: 0.6rem 1rem;
    border-radius: 8px;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.nav-menu a:before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.1);
    transition: var(--transition);
    z-index: -1;
}

.nav-menu a:hover:before {
    left: 0;
}

.nav-menu a:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: translateY(-3px);
}

/* Main Content */
main {
    flex: 1;
    margin-top: 100px;
    padding: 2rem;
    max-width: 1400px;
    width: 100%;
    margin-left: auto;
    margin-right: auto;
}

/* Categories Section */
.categories-section {
    width: 100%;
    padding: 2px 0;
    display: flex;
    justify-content: center;
    overflow-x: auto;
    margin-bottom: 2.5rem;
}

.categories-container {
    display: flex;
    justify-content: center;
    gap: 15px;
    max-width: 1400px;
    width: 100%;
    padding: 10px;
    overflow-x: auto;
    scroll-behavior: smooth;
    -ms-overflow-style: none;
    scrollbar-width: none;
}

.categories-container::-webkit-scrollbar {
    display: none;
}

.category {
    flex: 0 0 auto;
    min-width: 180px;
    padding: 18px 25px;
    border-radius: 12px;
    text-align: center;
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--white);
    transition: var(--transition);
    background: var(--gradient);
    position: relative;
    overflow: hidden;
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.1);
}

.category:before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: var(--transition);
}

.category:hover:before {
    left: 100%;
}

.category:hover {
    transform: translateY(-5px) scale(1.03);
    box-shadow: 0 12px 20px rgba(0, 0, 0, 0.15);
}

/* Section Styling */
section {
    background: #2D2D2D;
    padding: 2.5rem;
    border-radius: 16px;
    box-shadow: var(--shadow);
    margin-bottom: 2.5rem;
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 0.6s ease forwards;
    transition: var(--transition);
}

section:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
    border-bottom: 2px solid var(--gray);
    padding-bottom: 1rem;
}

.section-title {
    font-size: 1.8rem;
    color: var(--text);
    font-weight: 700;
    position: relative;
    padding-left: 1rem;
}

.section-title:before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    height: 100%;
    width: 4px;
    background: var(--accent);
    border-radius: 4px;
}

/* Games Grid */
.games-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 1.5rem;
}

    .game-card {
    background: #1A1A1A;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: var(--transition);
    position: relative;
}

.game-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
}

.game-card img {
    width: 100%;
    height: 160px;
    object-fit: cover;
    border-bottom: 3px solid var(--accent);
}

.game-info {
    padding: 1rem;
    text-align: center;
}

.game-name {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--white);
    margin-bottom: 0.5rem;
}

.game-card .play-button {
            display: inline-block;
            background: var(--accent);
            color: var(--white);
            padding: 0.5rem 1.5rem;
            border-radius: 50px;
            text-decoration: none;
            font-weight: 500;
            transition: all 0.3s ease;
        }
        
        .game-card .play-button:hover {
            background: var(--light-accent);
            transform: scale(1.05);
}

/* About Section */
.about-section {
    background: #2D2D2D;
    padding: 2.5rem;
    border-radius: 16px;
    box-shadow: var(--shadow);
    margin-top: 2rem;
    line-height: 1.6;
    text-align: center;
}

.about-section h2 {
    color: var(--white);
    margin-bottom: 1.5rem;
    position: relative;
    display: inline-block;
    padding-bottom: 10px;
}

.about-section h2:after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: var(--accent);
    border-radius: 2px;
}

.about-section p {
    margin-bottom: 1.2rem;
    font-size: 1.05rem;
    color: var(--white);
}

.about-section ul {
    margin: 1.5rem auto;
    width: fit-content;
    text-align: left;
    list-style-position: outside;
    color: var(--white);
}

.about-section li {
    margin-bottom: 0.8rem;
    padding-left: 0.5rem;
    color: var(--white);
}

/* Game Player Styles */
.game-player {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 90%;
    max-width: 900px;
    height: 75vh;
    background: var(--primary);
    border-radius: 16px;
    display: none;
    z-index: 1000;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.25);
    overflow: hidden;
    border: 3px solid var(--accent);
}

#gameFrame {
    width: 100%;
    height: 100%;
    border: none;
    background: #000;
}

.overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(5px);
    display: none;
    z-index: 999;
}

.close-btn, .fullscreen-btn {
    position: absolute;
    z-index: 1001;
    background: var(--accent);
    color: var(--white);
    border: none;
    padding: 8px 16px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 0.9rem;
    font-weight: 500;
    transition: var(--transition);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.close-btn {
    top: 15px;
    left: 15px;
}

.fullscreen-btn {
    top: 15px;
    right: 15px;
}

.close-btn:hover, .fullscreen-btn:hover {
    background: var(--light-accent);
    transform: translateY(-2px);
}

/* Footer */
footer {
    background: var(--gradient);
    color: var(--white);
    padding: 3rem 0 2rem;
    margin-top: auto;
    position: relative;
    overflow: hidden;
}

footer:before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, transparent, var(--light-accent), transparent);
}

.footer-content {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2rem;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.footer-column h3 {
    font-size: 1.3rem;
    margin-bottom: 1.2rem;
    position: relative;
    display: inline-block;
}

.footer-column h3:after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 0;
    width: 40px;
    height: 3px;
    background: var(--light-accent);
    border-radius: 3px;
}

.footer-links {
    list-style: none;
    padding: 0;
}

.footer-links li {
    margin-bottom: 0.8rem;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    transition: var(--transition);
}

.footer-links a:hover {
    color: var(--white);
    padding-left: 5px;
}

.footer-bottom {
    text-align: center;
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.7);
}

/* Animations */
@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Hamburger Menu */
.hamburger {
    display: none;
    cursor: pointer;
    width: 30px;
    height: 25px;
    position: relative;
    z-index: 1010;
    background: transparent;
    border: none;
}

.hamburger span {
    display: block;
    position: absolute;
    height: 3px;
    width: 100%;
    background: #fff;
    border-radius: 3px;
    opacity: 1;
    left: 0;
    transform: rotate(0deg);
    transition: transform 0.25s ease-in-out, opacity 0.25s ease-in-out;
}

.hamburger span:nth-child(1) { top: 0; }
.hamburger span:nth-child(2) { top: 10px; }
.hamburger span:nth-child(3) { top: 20px; }

.hamburger.active span:nth-child(1) {
    top: 10px;
    transform: rotate(135deg);
}

.hamburger.active span:nth-child(2) {
    opacity: 0;
}

.hamburger.active span:nth-child(3) {
    top: 10px;
    transform: rotate(-135deg);
}

/* Media Queries */
@media (max-width: 1200px) {
    .footer-content {
        grid-template-columns: repeat(2, 1fr);
    }
    .sidebar {
        width: 200px;
    }
    .main-content {
        margin-left: 200px;
    }
}

@media (max-width: 768px) {
    .nav-container {
        padding: 0 1.5rem;
    }

    .hamburger {
        display: block;
        background-color: var(--accent);
        padding: 10px;
        border-radius: 5px;
    }

    .nav-menu {
        position: fixed;
        top: 80px;
        right: -100%;
        flex-direction: column;
        background: var(--primary);
        width: 80%;
        height: calc(100vh - 80px);
        padding: 2rem;
        transition: var(--transition);
        box-shadow: -5px 0 15px rgba(0, 0, 0, 0.1);
        z-index: 1000;
    }

    .nav-menu.active {
        right: 0;
    }

    .nav-menu a {
        padding: 1rem;
        width: 100%;
        display: block;
        text-align: center;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    }

    .main-content {
        margin-left: 0;
        max-width: 100%;
        padding: 1rem;
    }

    .sidebar {
        width: 100%;
        position: fixed;
        top: 0;
        left: -100%;
        height: 100vh;
        background: var(--dark-gray);
        transition: var(--transition);
        z-index: 1000;
    }

    .sidebar.active {
        left: 0;
    }

    .games-grid {
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
        gap: 1rem;
    }

    .footer-content {
        grid-template-columns: 1fr;
        gap: 2rem;
        text-align: center;
    }

    .footer-column h3:after {
        left: 50%;
        transform: translateX(-50%);
    }
}

@media (max-width: 480px) {
    .logo img {
        height: 35px;
    }
    
    .section-title {
        font-size: 1.4rem;
    }

    .games-grid {
        grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
    }

    .game-name {
        font-size: 0.9rem;
    }

    .sidebar {
        width: 100%;
        left: -100%;
    }

    .sidebar.active {
        left: 0;
    }
}

.sidebar {
    background: #282828;
    width: 250px;
    position: fixed;
    top: 0;
    left: 0;
    height: 100vh;
    padding-top: 20px;
    transition: var(--transition);
    z-index: 1000;
}

.main-content {
    margin-left: 250px;
    padding: 2rem;
    max-width: calc(100% - 250px);
    transition: all 0.3s ease;
}

@media (max-width: 768px) {
    .main-content {
        margin-left: 0;
        max-width: 100%;
        padding: 1rem;
    }
}

.sidebar a {
    display: block;
    color: #fff;
    padding: 15px 20px;
    text-decoration: none;
    font-size: 1.1rem;
    transition: var(--transition);
    position: relative;
}

.sidebar a:hover, .sidebar a.active {
    background: var(--light-accent);
    color: var(--white);
    transform: scale(1.05);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.sidebar a i {
    margin-right: 10px;
}

.sidebar img {
    width: 100%;
    margin: 0 auto;
    display: block;
    padding: 10px 0;
}

@media (max-width: 768px) {
    .sidebar img {
        width: 80%;
        padding: 10px 0;
    }
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Outfit', sans-serif;
    color: var(--text);
    margin-bottom: 1rem;
}

p, h2, ul {
    font-size: 1rem;
    line-height: 1.6;
    color: var(--text);
    margin-bottom: 1.5rem;
}

.btn {
    display: inline-block;
    background: var(--accent);
    color: var(--white);
    padding: 0.75rem 1.5rem;
    border-radius: 50px;
    font-weight: 600;
    transition: var(--transition);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.btn:hover {
    background: #FF0001;
    transform: translateY(-3px);
}

.sidebar a:hover, .sidebar a.active {
    background: var(--light-accent);
    color: var(--white);
    transform: scale(1.05);
}

@media (max-width: 768px) {
    .nav-menu {
        background: var(--dark-gray);
    }

    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
    }
}

.intro-section {
    background: var(--gradient), url('https://via.placeholder.com/150') no-repeat center center/cover;
    color: var(--white);
    padding: 3rem;
    border-radius: 16px;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.15);
    text-align: center;
    margin-bottom: 2.5rem;
}

.intro-section h1 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.intro-section p {
    font-size: 1.2rem;
    line-height: 1.8;
    margin-bottom: 1rem;
}

@media (max-width: 768px) {
    .intro-section {
        padding: 2rem;
    }

    .intro-section h1 {
        font-size: 2rem;
    }

    .intro-section p {
        font-size: 1rem;
    }
}

h1, h2, h3, h4 {
    color: var(--text);
}

.section-title, .about-section, .about-section p, .about-section ul, .about-section li {
    color: var(--text);
}

/* Improve iframe styles */
iframe {
    transition: left 0.3s ease;
}

/* Additional styles for sidebar iframe */
iframe#sidebarFrame {
    transition: left 0.3s ease;
    overflow: hidden;
}

/* Make sure content is responsive */
@media (max-width: 768px) {
    .games-grid {
        grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
        gap: 1rem;
    }
} 