/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Arial', sans-serif;
    line-height: 1.6;
    color: #333;
    background: linear-gradient(135deg, #1a1a2e, #16213e, #0f3460);
    min-height: 100vh;
    position: relative;
    overflow-x: hidden;
}

/* Background Animation */
.background-animation {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    background: 
        radial-gradient(circle at 20% 80%, rgba(120, 119, 198, 0.3) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(255, 119, 198, 0.3) 0%, transparent 50%),
        radial-gradient(circle at 40% 40%, rgba(120, 219, 255, 0.3) 0%, transparent 50%);
    animation: backgroundShift 20s ease-in-out infinite;
}

@keyframes backgroundShift {
    0%, 100% { transform: scale(1) rotate(0deg); }
    50% { transform: scale(1.1) rotate(1deg); }
}

/* Container */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header and Navigation */
.header {
    background: rgba(26, 26, 46, 0.95);
    backdrop-filter: blur(10px);
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.3);
}

.navbar {
    padding: 1rem 0;
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.nav-logo h1 {
    color: #fff;
    font-size: 2rem;
    font-weight: bold;
    text-shadow: 0 0 10px rgba(120, 119, 198, 0.5);
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-link {
    color: #fff;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    position: relative;
}

.nav-link:hover {
    color: #7877c6;
    transform: translateY(-2px);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: #7877c6;
    transition: width 0.3s ease;
}

.nav-link:hover::after {
    width: 100%;
}

.nav-buttons {
    display: flex;
    gap: 1rem;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 0.8rem 1.5rem;
    text-decoration: none;
    border-radius: 25px;
    font-weight: 600;
    transition: all 0.3s ease;
    text-align: center;
    border: none;
    cursor: pointer;
    font-size: 1rem;
}

.btn-login {
    background: transparent;
    color: #fff;
    border: 2px solid #7877c6;
}

.btn-login:hover {
    background: #7877c6;
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(120, 119, 198, 0.4);
}

.btn-register {
    background: linear-gradient(45deg, #7877c6, #ff77c6);
    color: #fff;
    border: 2px solid transparent;
}

.btn-register:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 20px rgba(120, 119, 198, 0.6);
}

.btn-primary {
    background: linear-gradient(45deg, #7877c6, #ff77c6);
    color: #fff;
    padding: 1rem 2rem;
    font-size: 1.1rem;
}

.btn-secondary {
    background: transparent;
    color: #fff;
    border: 2px solid #7877c6;
    padding: 1rem 2rem;
    font-size: 1.1rem;
}

.btn-login-large, .btn-register-large {
    padding: 1rem 2rem;
    font-size: 1.1rem;
    margin-top: 1rem;
    display: inline-block;
}

/* Main Content */
.main-content {
    margin-top: 80px;
    padding-top: 2rem;
}

/* Hero Section */
.hero-section {
    text-align: center;
    padding: 4rem 0;
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    margin: 2rem 0;
    border-radius: 20px;
    margin-left: 20px;
    margin-right: 20px;
}

.hero-title {
    font-size: 3.5rem;
    color: #fff;
    margin-bottom: 1rem;
    text-shadow: 0 0 20px rgba(120, 119, 198, 0.5);
    animation: fadeInUp 1s ease-out;
}

.hero-subtitle {
    font-size: 1.3rem;
    color: #ccc;
    margin-bottom: 2rem;
    animation: fadeInUp 1s ease-out 0.2s both;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
    animation: fadeInUp 1s ease-out 0.4s both;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Sections */
.section-title {
    font-size: 2.5rem;
    color: #fff;
    text-align: center;
    margin-bottom: 3rem;
    text-shadow: 0 0 15px rgba(120, 119, 198, 0.5);
}

.features-section, .games-section, .about-section {
    padding: 4rem 0;
}

/* Features Grid */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.feature-card {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    padding: 2rem;
    border-radius: 15px;
    text-align: center;
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.feature-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
    border-color: rgba(120, 119, 198, 0.5);
}

.feature-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.feature-card h3 {
    color: #fff;
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.feature-card p {
    color: #ccc;
    line-height: 1.6;
}

/* Login Section */
.login-section {
    padding: 4rem 0;
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    margin: 2rem 0;
    border-radius: 20px;
    margin-left: 20px;
    margin-right: 20px;
}

.login-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 3rem;
    margin-top: 3rem;
}

.login-info, .register-info {
    text-align: center;
    padding: 2rem;
}

.login-info h3, .register-info h3 {
    color: #fff;
    font-size: 1.8rem;
    margin-bottom: 1rem;
}

.login-info p, .register-info p {
    color: #ccc;
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

/* Games Grid */
.games-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.game-card {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    padding: 2rem;
    border-radius: 15px;
    text-align: center;
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.1);
    min-height: 200px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.game-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.3);
}

.game-card h3 {
    color: #fff;
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.game-card p {
    color: #ccc;
    line-height: 1.6;
}

/* About Section */
.about-section {
    text-align: center;
}

.about-section p {
    color: #ccc;
    font-size: 1.1rem;
    line-height: 1.8;
    max-width: 800px;
    margin: 0 auto 1.5rem;
}

/* Footer */
.footer {
    background: rgba(26, 26, 46, 0.95);
    backdrop-filter: blur(10px);
    padding: 3rem 0 1rem;
    margin-top: 4rem;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-section h3, .footer-section h4 {
    color: #fff;
    margin-bottom: 1rem;
}

.footer-section p {
    color: #ccc;
    line-height: 1.6;
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 0.5rem;
}

.footer-section ul li a {
    color: #ccc;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-section ul li a:hover {
    color: #7877c6;
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-bottom p {
    color: #ccc;
}

/* Responsive Design */
@media (max-width: 768px) {
    .nav-menu {
        display: none;
    }
    
    .hero-title {
        font-size: 2.5rem;
    }
    
    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .features-grid, .games-grid {
        grid-template-columns: 1fr;
    }
    
    .login-container {
        grid-template-columns: 1fr;
    }
    
    .nav-container {
        flex-direction: column;
        gap: 1rem;
    }
}

/* Accessibility */
@media (prefers-reduced-motion: reduce) {
    .background-animation {
        animation: none;
    }
    
    .btn:hover {
        transform: none;
    }
    
    .feature-card:hover, .game-card:hover {
        transform: none;
    }
}

/* Focus styles for accessibility */
.btn:focus, .nav-link:focus {
    outline: 2px solid #7877c6;
    outline-offset: 2px;
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    body {
        background: #000;
        color: #fff;
    }
    
    .feature-card, .game-card {
        background: #333;
        border: 2px solid #fff;
    }
}

/* Additional Page Styles */
.content-section {
    padding: 2rem 0;
}

.page-title {
    font-size: 3rem;
    color: #fff;
    text-align: center;
    margin-bottom: 1rem;
    text-shadow: 0 0 20px rgba(120, 119, 198, 0.5);
}

.page-subtitle {
    font-size: 1.2rem;
    color: #ccc;
    text-align: center;
    margin-bottom: 3rem;
}

.last-updated {
    text-align: center;
    color: #999;
    font-style: italic;
    margin-bottom: 2rem;
}

/* Policy Content Styles */
.policy-content, .terms-content, .disclaimer-content {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    padding: 2rem;
    border-radius: 15px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.policy-content h2, .terms-content h2, .disclaimer-content h2 {
    color: #fff;
    font-size: 1.8rem;
    margin: 2rem 0 1rem 0;
    border-bottom: 2px solid rgba(120, 119, 198, 0.3);
    padding-bottom: 0.5rem;
}

.policy-content h2:first-child, .terms-content h2:first-child, .disclaimer-content h2:first-child {
    margin-top: 0;
}

.policy-content p, .terms-content p, .disclaimer-content p {
    color: #ccc;
    line-height: 1.8;
    margin-bottom: 1rem;
}

.policy-content ul, .terms-content ul, .disclaimer-content ul {
    color: #ccc;
    margin: 1rem 0 1rem 2rem;
}

.policy-content li, .terms-content li, .disclaimer-content li {
    margin-bottom: 0.5rem;
    line-height: 1.6;
}

/* Contact Page Styles */
.contact-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    margin-bottom: 3rem;
}

.contact-info h2, .contact-form-container h2 {
    color: #fff;
    font-size: 2rem;
    margin-bottom: 1.5rem;
}

.contact-info p {
    color: #ccc;
    line-height: 1.8;
    margin-bottom: 2rem;
}

.contact-methods {
    display: grid;
    gap: 1.5rem;
}

.contact-method {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    padding: 1.5rem;
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    text-align: center;
}

.contact-icon {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.contact-method h3 {
    color: #fff;
    font-size: 1.3rem;
    margin-bottom: 0.5rem;
}

.contact-method p {
    color: #ccc;
    margin-bottom: 1rem;
}

.contact-link {
    color: #7877c6;
    text-decoration: none;
    font-weight: 600;
}

.contact-link:hover {
    text-decoration: underline;
}

.contact-status {
    color: #4CAF50;
    font-weight: 600;
}

/* Contact Form Styles */
.contact-form {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    padding: 2rem;
    border-radius: 15px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    color: #fff;
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 0.8rem;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #7877c6;
    box-shadow: 0 0 10px rgba(120, 119, 198, 0.3);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: #999;
}

.checkbox-label {
    display: flex;
    align-items: center;
    color: #ccc;
    cursor: pointer;
}

.checkbox-label input[type="checkbox"] {
    width: auto;
    margin-right: 0.5rem;
}

.btn-submit {
    width: 100%;
    padding: 1rem;
    font-size: 1.1rem;
    margin-top: 1rem;
}

/* FAQ Section Styles */
.faq-section {
    margin: 3rem 0;
}

.faq-section h2 {
    color: #fff;
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 2rem;
}

.faq-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 2rem;
}

.faq-item {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    padding: 1.5rem;
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.faq-item h3 {
    color: #fff;
    font-size: 1.3rem;
    margin-bottom: 1rem;
}

.faq-item p {
    color: #ccc;
    line-height: 1.6;
}

/* Support Section Styles */
.support-section {
    margin: 3rem 0;
}

.support-section h2 {
    color: #fff;
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 2rem;
}

.support-resources {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.support-resource {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    padding: 1.5rem;
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.support-resource h3 {
    color: #fff;
    font-size: 1.3rem;
    margin-bottom: 1rem;
}

.support-resource ul {
    color: #ccc;
    margin-left: 1.5rem;
}

.support-resource li {
    margin-bottom: 0.5rem;
    line-height: 1.6;
}

/* 404 Error Page Styles */
.error-section {
    text-align: center;
    padding: 4rem 0;
}

.error-content {
    max-width: 800px;
    margin: 0 auto;
}

.error-icon {
    font-size: 5rem;
    margin-bottom: 2rem;
    animation: bounce 2s infinite;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateY(0);
    }
    40% {
        transform: translateY(-20px);
    }
    60% {
        transform: translateY(-10px);
    }
}

.error-title {
    font-size: 3.5rem;
    color: #fff;
    margin-bottom: 1rem;
    text-shadow: 0 0 20px rgba(120, 119, 198, 0.5);
}

.error-message {
    font-size: 1.3rem;
    color: #ccc;
    margin-bottom: 1rem;
}

.error-description {
    font-size: 1.1rem;
    color: #999;
    margin-bottom: 2rem;
    line-height: 1.6;
}

.error-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
    margin-bottom: 3rem;
    flex-wrap: wrap;
}

.suggested-pages {
    margin: 3rem 0;
}

.suggested-pages h3 {
    color: #fff;
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
}

.suggested-links {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.suggested-link {
    color: #7877c6;
    text-decoration: none;
    padding: 0.5rem 1rem;
    border: 1px solid #7877c6;
    border-radius: 20px;
    transition: all 0.3s ease;
}

.suggested-link:hover {
    background: #7877c6;
    color: #fff;
}

.gaming-tips {
    margin: 3rem 0;
}

.gaming-tips h3 {
    color: #fff;
    font-size: 1.5rem;
    margin-bottom: 2rem;
}

.tips-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.tip-item {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    padding: 1.5rem;
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    text-align: center;
}

.tip-item h4 {
    color: #fff;
    font-size: 1.3rem;
    margin-bottom: 1rem;
}

.tip-item p {
    color: #ccc;
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

/* Responsive Design for Additional Pages */
@media (max-width: 768px) {
    .contact-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .faq-grid {
        grid-template-columns: 1fr;
    }
    
    .support-resources {
        grid-template-columns: 1fr;
    }
    
    .tips-grid {
        grid-template-columns: 1fr;
    }
    
    .error-actions {
        flex-direction: column;
        align-items: center;
    }
    
    .suggested-links {
        flex-direction: column;
        align-items: center;
    }
    
    .page-title {
        font-size: 2.5rem;
    }
}
