:root {
    --primary: #6200EA;
    --secondary: #03DAC6;
    --accent: #FF4081;
    --light: #F5F5F5;
    --dark: #121212;
    --success: #00C853;
    --warning: #FFD600;
    --info: #2196F3;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
    background-color: var(--dark);
    color: var(--light);
    overflow-x: hidden;
}

.container {
    display: flex;
    min-height: 100vh;
}

/* Sidebar Styles */
.sidebar {
    width: 250px;
    background-color: rgba(18, 18, 18, 0.9);
    backdrop-filter: blur(10px);
    border-right: 1px solid rgba(255, 255, 255, 0.1);
    padding: 2rem 0;
    position: fixed;
    height: 100vh;
    transition: all 0.3s ease;
    z-index: 1000;
}

.sidebar-header {
    padding: 0 1.5rem 2rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.logo {
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--secondary);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.logo-icon {
    color: var(--accent);
    font-size: 1.8rem;
}

.nav-links {
    list-style: none;
    padding: 2rem 0;
}

.nav-item {
    padding: 0.75rem 1.5rem;
    margin-bottom: 0.5rem;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.nav-item:hover {
    background-color: rgba(255, 255, 255, 0.05);
}

.nav-item.active {
    background-color: var(--primary);
    border-left: 4px solid var(--accent);
}

.nav-text {
    font-size: 1rem;
    font-weight: 500;
}

.toggle-btn {
    display: none;
    position: fixed;
    top: 1rem;
    left: 1rem;
    background-color: var(--primary);
    color: white;
    border: none;
    border-radius: 50%;
    width: 3rem;
    height: 3rem;
    font-size: 1.5rem;
    cursor: pointer;
    z-index: 1001;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
}

/* Main Content */
.main-content {
    flex: 1;
    margin-left: 250px;
    padding: 0;
    transition: all 0.3s ease;
}

/* Game View */
.game-container {
    position: relative;
    width: 100%;
    height: 450px;
    background: linear-gradient(135deg, #6200EA, #03DAC6);
    overflow: hidden;
}

.game-selector {
    display: flex;
    background-color: rgba(0, 0, 0, 0.7);
    padding: 0.5rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    position: relative;
    overflow: hidden;
}

.game-selector::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(90deg, 
        rgba(255,64,129,0.2) 0%, 
        rgba(3,218,198,0.2) 50%, 
        rgba(98,0,234,0.2) 100%);
    z-index: 0;
}

.game-tab {
    position: relative;
    background-color: rgba(18, 18, 18, 0.7);
    color: var(--light);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 0.75rem 1.25rem;
    margin-right: 0.75rem;
    cursor: pointer;
    border-radius: 8px;
    transition: all 0.3s ease;
    font-weight: 500;
    z-index: 1;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    overflow: hidden;
    display: flex;
    align-items: center;
}

.game-icon {
    margin-right: 8px;
    font-size: 1.2em;
}

.game-tab::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, 
        rgba(255, 255, 255, 0.1) 0%, 
        rgba(255, 255, 255, 0) 100%);
    z-index: -1;
}

.game-tab:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.3);
    background-color: rgba(30, 30, 30, 0.9);
}

.game-tab.active {
    background-color: var(--primary);
    color: white;
    border-color: var(--accent);
    box-shadow: 0 0 15px rgba(98, 0, 234, 0.5);
}

.game-tab.active::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 0;
    border-left: 10px solid transparent;
    border-right: 10px solid transparent;
    border-top: 10px solid var(--primary);
}

.game-view {
    width: 100%;
    height: calc(100% - 56px);
    background-color: var(--dark);
    position: relative;
    overflow: hidden;
}

.fullscreen-toggle {
    margin-left: auto;
    background-color: var(--accent);
    color: white;
    border: none;
    border-radius: 8px;
    padding: 0.75rem 1.25rem;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 1;
    position: relative;
    font-weight: 500;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    display: flex;
    align-items: center;
}

.fullscreen-toggle::before {
    content: '🔍';
    margin-right: 8px;
}

.fullscreen-toggle:hover {
    background-color: #ff5a92;
    transform: translateY(-3px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.3);
}

/* Game Canvas */
#gameCanvas {
    background-color: var(--dark);
    display: block;
    width: 100%;
    height: 100%;
}

.page-container {
    padding: 2rem;
}

.section-title {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
    color: var(--secondary);
    border-bottom: 2px solid var(--accent);
    padding-bottom: 0.5rem;
    display: inline-block;
}

/* Home Page */
.featured-games {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.game-card {
    background: linear-gradient(145deg, #1a1a1a, #2a2a2a);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.game-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.3);
}

.game-img {
    width: 100%;
    height: 180px;
    background-color: #333;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--accent);
    font-size: 1.5rem;
    font-weight: bold;
}

.game-info {
    padding: 1.5rem;
}

.game-title {
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
    color: var(--accent);
}

.game-desc {
    color: #ccc;
    margin-bottom: 1rem;
    line-height: 1.5;
}

.play-btn {
    background-color: var(--primary);
    color: white;
    border: none;
    padding: 0.5rem 1rem;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.2s ease;
}

.play-btn:hover {
    background-color: #7c4dff;
}

/* Games Page */
.games-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 1.5rem;
}

/* Services Page */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

.service-card {
    background: linear-gradient(145deg, #1a1a1a, #2a2a2a);
    border-radius: 12px;
    padding: 2rem;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    text-align: center;
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.3);
}

.service-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.service-title {
    color: var(--secondary);
    margin-bottom: 1rem;
    font-size: 1.5rem;
}

.service-desc {
    color: #ccc;
    line-height: 1.6;
}

.cta-container {
    background: linear-gradient(45deg, var(--primary), var(--accent));
    padding: 3rem;
    border-radius: 12px;
    text-align: center;
    margin-top: 2rem;
}

.cta-title {
    font-size: 1.8rem;
    margin-bottom: 1.5rem;
    color: white;
}

.cta-button {
    background-color: white;
    color: var(--primary);
    border: none;
    padding: 0.75rem 2rem;
    font-size: 1.1rem;
    font-weight: bold;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.cta-button:hover {
    transform: scale(1.05);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

/* About Page */
.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    align-items: center;
}

.about-image {
    width: 100%;
    height: 300px;
    background: linear-gradient(45deg, var(--primary), var(--accent));
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.5rem;
}

.about-text {
    line-height: 1.8;
}

.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.team-member {
    text-align: center;
}

.member-avatar {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    background-color: var(--primary);
    margin: 0 auto 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: bold;
}

.member-name {
    color: var(--secondary);
    margin-bottom: 0.5rem;
}

.member-role {
    color: var(--accent);
    font-size: 0.9rem;
}

/* Contact Page */
.contact-form {
    max-width: 600px;
    margin: 0 auto;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-label {
    display: block;
    margin-bottom: 0.5rem;
    color: var(--secondary);
}

.form-control {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid #333;
    background-color: #1a1a1a;
    color: white;
    border-radius: 4px;
    font-size: 1rem;
}

textarea.form-control {
    min-height: 150px;
    resize: vertical;
}

.submit-btn {
    background-color: var(--accent);
    color: white;
    border: none;
    padding: 0.75rem 1.5rem;
    font-size: 1rem;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.2s ease;
}

.submit-btn:hover {
    background-color: #ff5a92;
}

.contact-info {
    margin-top: 3rem;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}

.info-item {
    text-align: center;
    padding: 1.5rem;
    background-color: #1a1a1a;
    border-radius: 8px;
}

.info-icon {
    font-size: 2rem;
    color: var(--secondary);
    margin-bottom: 1rem;
}

.info-title {
    color: var(--light);
    margin-bottom: 0.5rem;
}

.info-detail {
    color: #ccc;
}

/* Responsive Styles */
@media (max-width: 992px) {
    .about-content {
        grid-template-columns: 1fr;
    }
    
    .contact-info {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .sidebar {
        transform: translateX(-100%);
    }
    
    .sidebar.active {
        transform: translateX(0);
    }
    
    .main-content {
        margin-left: 0;
    }
    
    .toggle-btn {
        display: block;
    }
    
    .game-container {
        height: 300px;
    }
}