/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: #333;
    background: linear-gradient(135deg, #0f0c29, #302b63, #24243e);
    min-height: 100vh;
    overflow-x: hidden;
}

/* Background Effects */
.background-effects {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    pointer-events: none;
}

.floating-shapes {
    position: absolute;
    width: 100%;
    height: 100%;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><circle cx="20" cy="20" r="2" fill="rgba(255,255,255,0.1)"/><circle cx="80" cy="40" r="1.5" fill="rgba(255,255,255,0.08)"/><circle cx="40" cy="80" r="1" fill="rgba(255,255,255,0.06)"/></svg>') repeat;
    animation: float 20s ease-in-out infinite;
}

.gradient-overlay {
    position: absolute;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 50% 50%, rgba(255,255,255,0.05) 0%, transparent 70%);
    animation: pulse 4s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    50% { transform: translateY(-20px) rotate(180deg); }
}

@keyframes pulse {
    0%, 100% { opacity: 0.5; }
    50% { opacity: 1; }
}

/* Container */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header */
.header {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
}

.navbar {
    padding: 1rem 0;
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo h1 {
    color: #fff;
    font-size: 2rem;
    font-weight: bold;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-link {
    color: #fff;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
    position: relative;
}

.nav-link:hover {
    color: #ffd700;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: #ffd700;
    transition: width 0.3s ease;
}

.nav-link:hover::after {
    width: 100%;
}

.auth-buttons {
    display: flex;
    gap: 1rem;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 12px 24px;
    border: none;
    border-radius: 25px;
    text-decoration: none;
    font-weight: 600;
    text-align: center;
    transition: all 0.3s ease;
    cursor: pointer;
    font-size: 1rem;
}

.btn-primary {
    background: linear-gradient(45deg, #ffd700, #ffed4e);
    color: #333;
    box-shadow: 0 4px 15px rgba(255, 215, 0, 0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 215, 0, 0.4);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
    border: 2px solid rgba(255, 255, 255, 0.3);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.5);
}

.btn-login {
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.btn-login:hover {
    background: rgba(255, 255, 255, 0.2);
}

.btn-register {
    background: linear-gradient(45deg, #ffd700, #ffed4e);
    color: #333;
}

.btn-register:hover {
    transform: translateY(-2px);
}

.btn-step {
    background: linear-gradient(45deg, #4CAF50, #45a049);
    color: #fff;
    margin-top: 1rem;
}

/* Hero Section */
.hero {
    padding: 120px 0 80px;
    text-align: center;
    background: linear-gradient(135deg, rgba(15, 12, 41, 0.8), rgba(48, 43, 99, 0.8));
    position: relative;
}

.hero-content {
    max-width: 800px;
    margin: 0 auto;
}

.hero-title {
    font-size: 3.5rem;
    color: #fff;
    margin-bottom: 1.5rem;
    text-shadow: 2px 2px 4px rgba(0,0,0,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);
    }
}

/* Main Content */
.main-content {
    padding: 80px 0;
}

/* Sections */
.games-section, .features-section, .registration-section, .cta-section {
    padding: 80px 0;
}

.games-section {
    background: rgba(255, 255, 255, 0.02);
}

.features-section {
    background: rgba(255, 255, 255, 0.05);
}

.registration-section {
    background: rgba(255, 255, 255, 0.02);
}

.cta-section {
    background: linear-gradient(135deg, rgba(255, 215, 0, 0.1), rgba(255, 237, 78, 0.1));
    text-align: center;
}

/* Section Headers */
.games-section h2, .features-section h2, .registration-section h2, .cta-section h2 {
    font-size: 2.5rem;
    color: #fff;
    text-align: center;
    margin-bottom: 2rem;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
}

.games-section p, .features-section p, .registration-section p, .cta-section p {
    font-size: 1.1rem;
    color: #ccc;
    text-align: center;
    max-width: 800px;
    margin: 0 auto 3rem;
    line-height: 1.8;
}

/* 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);
    border-radius: 15px;
    padding: 2rem;
    text-align: center;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.game-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.3);
}

.game-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 10px;
    margin-bottom: 1.5rem;
}

.game-card h3 {
    color: #fff;
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.game-card p {
    color: #ccc;
    line-height: 1.6;
}

/* Features Grid */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.feature {
    text-align: center;
    padding: 2rem;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 15px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: transform 0.3s ease;
}

.feature:hover {
    transform: translateY(-5px);
}

.feature-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.feature h3 {
    color: #fff;
    font-size: 1.3rem;
    margin-bottom: 1rem;
}

.feature p {
    color: #ccc;
    line-height: 1.6;
}

/* Registration Steps */
.steps-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.step {
    text-align: center;
    padding: 2rem;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 15px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    position: relative;
}

.step-number {
    position: absolute;
    top: -20px;
    left: 50%;
    transform: translateX(-50%);
    width: 40px;
    height: 40px;
    background: linear-gradient(45deg, #ffd700, #ffed4e);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    color: #333;
    font-size: 1.2rem;
}

.step h3 {
    color: #fff;
    font-size: 1.3rem;
    margin: 1rem 0 1rem 0;
}

.step p {
    color: #ccc;
    line-height: 1.6;
    margin-bottom: 1rem;
}

/* CTA Section */
.cta-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 2rem;
}

/* Footer */
.footer {
    background: rgba(0, 0, 0, 0.8);
    padding: 60px 0 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.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, .footer-section li {
    color: #ccc;
    line-height: 1.6;
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 0.5rem;
}

.footer-section a {
    color: #ccc;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-section a:hover {
    color: #ffd700;
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-bottom p {
    color: #999;
}

/* Breadcrumb Navigation */
.breadcrumb-nav {
    background: rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding: 1rem 0;
}

.breadcrumb-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.breadcrumb-item {
    display: flex;
    align-items: center;
}

.breadcrumb-item:not(:last-child)::after {
    content: ">";
    margin-left: 0.5rem;
    color: rgba(255, 255, 255, 0.6);
    font-weight: 300;
}

.breadcrumb-link {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    transition: color 0.3s ease;
}

.breadcrumb-link:hover {
    color: #00d4ff;
}

.breadcrumb-current {
    color: #00d4ff;
    font-weight: 600;
}

/* Responsive Design */
@media (max-width: 768px) {
    .nav-menu {
        display: none;
    }
    
    .hero-title {
        font-size: 2.5rem;
    }
    
    .hero-subtitle {
        font-size: 1.1rem;
    }
    
    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .games-grid, .features-grid, .steps-container {
        grid-template-columns: 1fr;
    }
    
    .container {
        padding: 0 15px;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 2rem;
    }
    
    .btn {
        padding: 10px 20px;
        font-size: 0.9rem;
    }
}

/* Accessibility */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* Focus styles for accessibility */
.btn:focus, .nav-link:focus {
    outline: 2px solid #ffd700;
    outline-offset: 2px;
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    body {
        background: #000;
        color: #fff;
    }
    
    .btn-primary {
        background: #fff;
        color: #000;
    }
}

/* Content Pages Styles */
.content-section {
    padding: 120px 0 80px;
}

.content-section h1 {
    font-size: 3rem;
    color: #fff;
    text-align: center;
    margin-bottom: 1rem;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
}

.last-updated {
    text-align: center;
    color: #ccc;
    font-style: italic;
    margin-bottom: 3rem;
}

.policy-content, .terms-content, .disclaimer-content {
    background: rgba(255, 255, 255, 0.05);
    padding: 3rem;
    border-radius: 15px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
}

.policy-content h2, .terms-content h2, .disclaimer-content h2 {
    color: #ffd700;
    font-size: 1.8rem;
    margin: 2rem 0 1rem 0;
    border-bottom: 2px solid rgba(255, 215, 0, 0.3);
    padding-bottom: 0.5rem;
}

.policy-content h3, .terms-content h3, .disclaimer-content h3 {
    color: #fff;
    font-size: 1.4rem;
    margin: 1.5rem 0 1rem 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;
    line-height: 1.8;
}

.policy-content li, .terms-content li, .disclaimer-content li {
    margin-bottom: 0.5rem;
}

.policy-content a, .terms-content a, .disclaimer-content a {
    color: #ffd700;
    text-decoration: none;
    transition: color 0.3s ease;
}

.policy-content a:hover, .terms-content a:hover, .disclaimer-content a:hover {
    color: #ffed4e;
}

/* Contact Page Styles */
.contact-intro {
    text-align: center;
    color: #ccc;
    font-size: 1.2rem;
    margin-bottom: 3rem;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.contact-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    margin-bottom: 4rem;
}

.contact-info 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;
    margin-bottom: 2rem;
}

.contact-method {
    background: rgba(255, 255, 255, 0.05);
    padding: 1.5rem;
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.contact-icon {
    font-size: 2rem;
    margin-bottom: 1rem;
}

.contact-method h3 {
    color: #fff;
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
}

.contact-method p {
    color: #ccc;
    margin-bottom: 0.5rem;
}

.contact-method a {
    color: #ffd700;
    text-decoration: none;
    font-weight: 600;
}

.contact-method a:hover {
    color: #ffed4e;
}

.support-hours h3 {
    color: #fff;
    font-size: 1.3rem;
    margin-bottom: 1rem;
}

.contact-form-container h2 {
    color: #fff;
    font-size: 2rem;
    margin-bottom: 2rem;
}

.contact-form {
    background: rgba(255, 255, 255, 0.05);
    padding: 2rem;
    border-radius: 15px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    color: #fff;
    margin-bottom: 0.5rem;
    font-weight: 500;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
    font-size: 1rem;
    transition: border-color 0.3s ease;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #ffd700;
    box-shadow: 0 0 10px rgba(255, 215, 0, 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: 10px;
}

.checkbox-label a {
    color: #ffd700;
    text-decoration: none;
}

.checkbox-label a:hover {
    color: #ffed4e;
}

/* FAQ Section */
.faq-section {
    margin-top: 4rem;
}

.faq-section h2 {
    color: #fff;
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 3rem;
}

.faq-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 2rem;
}

.faq-item {
    background: rgba(255, 255, 255, 0.05);
    padding: 2rem;
    border-radius: 15px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
}

.faq-item h3 {
    color: #ffd700;
    font-size: 1.3rem;
    margin-bottom: 1rem;
}

.faq-item p {
    color: #ccc;
    line-height: 1.6;
}

/* 404 Error Page Styles */
.error-section {
    padding: 120px 0 80px;
    text-align: center;
}

.error-content {
    max-width: 800px;
    margin: 0 auto;
}

.error-number {
    font-size: 8rem;
    font-weight: bold;
    color: #ffd700;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
    margin-bottom: 1rem;
    line-height: 1;
}

.error-section h1 {
    color: #fff;
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
}

.error-message {
    color: #ffd700;
    font-size: 1.3rem;
    margin-bottom: 1rem;
}

.error-description {
    color: #ccc;
    font-size: 1.1rem;
    line-height: 1.6;
    margin-bottom: 2rem;
}

.error-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
    margin-bottom: 3rem;
    flex-wrap: wrap;
}

.helpful-links {
    margin-bottom: 3rem;
}

.helpful-links h3 {
    color: #fff;
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
}

.links-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 1rem;
    max-width: 600px;
    margin: 0 auto;
}

.helpful-link {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 1rem;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    text-decoration: none;
    color: #ccc;
    transition: all 0.3s ease;
}

.helpful-link:hover {
    background: rgba(255, 255, 255, 0.1);
    color: #ffd700;
    transform: translateY(-2px);
}

.link-icon {
    font-size: 2rem;
    margin-bottom: 0.5rem;
}

.search-suggestion {
    background: rgba(255, 255, 255, 0.05);
    padding: 2rem;
    border-radius: 15px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
}

.search-suggestion h3 {
    color: #fff;
    font-size: 1.3rem;
    margin-bottom: 1rem;
}

.search-suggestion p {
    color: #ccc;
    margin-bottom: 1rem;
}

.search-suggestion ul {
    color: #ccc;
    text-align: left;
    max-width: 500px;
    margin: 0 auto;
}

.search-suggestion li {
    margin-bottom: 0.5rem;
    line-height: 1.6;
}

/* Responsive Design for Content Pages */
@media (max-width: 768px) {
    .contact-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .faq-grid {
        grid-template-columns: 1fr;
    }
    
    .policy-content, .terms-content, .disclaimer-content {
        padding: 2rem;
    }
    
    .error-number {
        font-size: 6rem;
    }
    
    .error-actions {
        flex-direction: column;
        align-items: center;
    }
    
    .links-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .breadcrumb-nav {
        padding: 0.5rem 0;
    }
    
    .breadcrumb-list {
        flex-wrap: wrap;
        gap: 0.25rem;
    }
    
    .breadcrumb-item::after {
        margin-left: 0.25rem;
    }
}
