/* 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, #1a1a2e 0%, #16213e 50%, #0f3460 100%);
    min-height: 100vh;
}

/* Accessibility */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* Focus styles for accessibility */
a:focus,
button:focus,
input:focus,
textarea:focus {
    outline: 3px solid #ffd700;
    outline-offset: 2px;
}

/* Container */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header and Navigation */
.header {
    background: rgba(0, 0, 0, 0.9);
    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: #ffd700;
    font-size: 2rem;
    font-weight: bold;
    text-shadow: 0 0 10px rgba(255, 215, 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,
.nav-link:focus {
    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,
.nav-link:focus::after {
    width: 100%;
}

.nav-auth {
    display: flex;
    gap: 1rem;
}

.btn {
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 25px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    cursor: pointer;
    display: inline-block;
    text-align: center;
    font-size: 0.9rem;
}

.btn-login {
    background: transparent;
    color: #fff;
    border: 2px solid #ffd700;
}

.btn-login:hover,
.btn-login:focus {
    background: #ffd700;
    color: #000;
    transform: translateY(-2px);
}

.btn-register {
    background: #ffd700;
    color: #000;
}

.btn-register:hover,
.btn-register:focus {
    background: #ffed4e;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(255, 215, 0, 0.4);
}

.btn-primary {
    background: linear-gradient(45deg, #ffd700, #ffed4e);
    color: #000;
    font-size: 1.1rem;
    padding: 1rem 2rem;
}

.btn-primary:hover,
.btn-primary:focus {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(255, 215, 0, 0.5);
}

.btn-secondary {
    background: transparent;
    color: #fff;
    border: 2px solid #fff;
}

.btn-secondary:hover,
.btn-secondary:focus {
    background: #fff;
    color: #000;
    transform: translateY(-2px);
}

/* Hamburger Menu */
.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
}

.bar {
    width: 25px;
    height: 3px;
    background: #fff;
    margin: 3px 0;
    transition: 0.3s;
}

/* Main Content */
.main-content {
    margin-top: 80px;
    padding-top: 2rem;
}

/* Hero Section - Updated to remove hero-bg.webp reference */
.hero-section {
    background: linear-gradient(135deg, rgba(26, 26, 46, 0.9), rgba(22, 33, 62, 0.9));
    padding: 4rem 0;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    opacity: 0.1;
    z-index: -1;
}

.hero-container {
    max-width: 800px;
    margin: 0 auto;
    padding: 0 20px;
}

.hero-title {
    font-size: 3.5rem;
    color: #ffd700;
    margin-bottom: 1rem;
    text-shadow: 0 0 20px rgba(255, 215, 0, 0.5);
    animation: fadeInUp 1s ease;
}

.hero-subtitle {
    font-size: 1.3rem;
    color: #fff;
    margin-bottom: 2rem;
    opacity: 0.9;
    animation: fadeInUp 1s ease 0.2s both;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
    animation: fadeInUp 1s ease 0.4s both;
}

/* Sections */
.section-title {
    font-size: 2.5rem;
    color: #ffd700;
    text-align: center;
    margin-bottom: 3rem;
    text-shadow: 0 0 15px rgba(255, 215, 0, 0.3);
}

.features-section,
.games-section,
.cta-section {
    padding: 4rem 0;
    background: rgba(255, 255, 255, 0.02);
}

.registration-section {
    padding: 4rem 0;
    background: rgba(0, 0, 0, 0.3);
}

/* 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.05);
    padding: 2rem;
    border-radius: 15px;
    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;
}

.feature-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.feature-image {
    width: 80px;
    height: 80px;
    margin-bottom: 1rem;
    border-radius: 50%;
}

.feature-card h4 {
    color: #ffd700;
    font-size: 1.3rem;
    margin-bottom: 1rem;
}

.feature-card p {
    color: #fff;
    opacity: 0.9;
}

/* Registration Steps */
.registration-steps {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.step {
    background: rgba(255, 255, 255, 0.05);
    padding: 2rem;
    border-radius: 15px;
    text-align: center;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    position: relative;
}

.step-number {
    background: linear-gradient(45deg, #ffd700, #ffed4e);
    color: #000;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: bold;
    margin: 0 auto 1rem;
}

.step h4 {
    color: #ffd700;
    font-size: 1.2rem;
    margin-bottom: 1rem;
}

.step p {
    color: #fff;
    opacity: 0.9;
    line-height: 1.7;
}

/* Games Grid */
.games-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.game-card {
    background: rgba(255, 255, 255, 0.05);
    padding: 1.5rem;
    border-radius: 15px;
    text-align: center;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: transform 0.3s ease;
}

.game-card:hover {
    transform: translateY(-5px);
}

.game-image {
    width: 100%;
    height: 150px;
    object-fit: cover;
    border-radius: 10px;
    margin-bottom: 1rem;
}

.game-card h4 {
    color: #ffd700;
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
}

.game-card p {
    color: #fff;
    opacity: 0.9;
    font-size: 0.9rem;
}

/* CTA Section */
.cta-section {
    text-align: center;
    background: linear-gradient(135deg, rgba(255, 215, 0, 0.1), rgba(255, 237, 78, 0.1));
}

.cta-section p {
    color: #fff;
    font-size: 1.2rem;
    margin-bottom: 2rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.cta-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

/* Footer */
.footer {
    background: rgba(0, 0, 0, 0.95);
    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 h4 {
    color: #ffd700;
    margin-bottom: 1rem;
    font-size: 1.2rem;
}

.footer-section p,
.footer-section li {
    color: #fff;
    opacity: 0.8;
    margin-bottom: 0.5rem;
}

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

.footer-section a {
    color: #fff;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-section a:hover {
    color: #ffd700;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 1rem;
    text-align: center;
}

.footer-bottom p {
    color: #fff;
    opacity: 0.7;
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    .hamburger {
        display: flex;
    }

    .nav-menu {
        position: fixed;
        left: -100%;
        top: 70px;
        flex-direction: column;
        background-color: rgba(0, 0, 0, 0.95);
        width: 100%;
        text-align: center;
        transition: 0.3s;
        padding: 2rem 0;
        backdrop-filter: blur(10px);
    }

    .nav-menu.active {
        left: 0;
    }

    .nav-menu li {
        margin: 1rem 0;
    }

    .nav-auth {
        display: none;
    }

    .hero-title {
        font-size: 2.5rem;
    }

    .hero-subtitle {
        font-size: 1.1rem;
    }

    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }

    .section-title {
        font-size: 2rem;
    }

    .features-grid,
    .registration-steps,
    .games-grid {
        grid-template-columns: 1fr;
    }

    .cta-buttons {
        flex-direction: column;
        align-items: center;
    }

    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 15px;
    }

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

    .btn {
        padding: 0.6rem 1.2rem;
        font-size: 0.85rem;
    }

    .feature-card,
    .step,
    .game-card {
        padding: 1.5rem;
    }
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    .btn {
        border: 2px solid currentColor;
    }
    
    .feature-card,
    .step,
    .game-card {
        border: 2px solid #fff;
    }
}

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* Page Header Styles */
.page-header {
    background: linear-gradient(135deg, rgba(26, 26, 46, 0.9), rgba(22, 33, 62, 0.9));
    padding: 3rem 0;
    text-align: center;
    margin-bottom: 2rem;
}

.page-title {
    font-size: 3rem;
    color: #ffd700;
    margin-bottom: 1rem;
    text-shadow: 0 0 20px rgba(255, 215, 0, 0.5);
}

.page-subtitle {
    font-size: 1.2rem;
    color: #fff;
    opacity: 0.9;
    margin-bottom: 0.5rem;
}

.last-updated {
    color: #ffd700;
    font-size: 0.9rem;
    opacity: 0.8;
}

/* FAQ Page Styles */
.faq-container {
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    background: rgba(255, 255, 255, 0.05);
    margin-bottom: 1.5rem;
    border-radius: 15px;
    overflow: hidden;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.faq-question {
    background: rgba(255, 215, 0, 0.1);
    color: #ffd700;
    padding: 1.5rem;
    margin: 0;
    cursor: pointer;
    font-size: 1.2rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.faq-answer {
    padding: 1.5rem;
}

.faq-answer p {
    color: #fff;
    opacity: 0.9;
    line-height: 1.7;
}

.faq-cta {
    text-align: center;
    margin-top: 3rem;
    padding: 2rem;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 15px;
    backdrop-filter: blur(10px);
}

.faq-cta h3 {
    color: #ffd700;
    margin-bottom: 1rem;
}

.faq-cta p {
    color: #fff;
    opacity: 0.9;
    margin-bottom: 2rem;
}

.faq-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

/* About Us Page Styles */
.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
    margin-bottom: 3rem;
}

.about-text h2 {
    color: #ffd700;
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
}

.about-text p {
    color: #fff;
    opacity: 0.9;
    line-height: 1.7;
    margin-bottom: 1rem;
}

.about-image img {
    width: 100%;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.mission-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

.mission-card {
    background: rgba(255, 255, 255, 0.05);
    padding: 2rem;
    border-radius: 15px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.mission-card h3 {
    color: #ffd700;
    margin-bottom: 1rem;
}

.mission-card p {
    color: #fff;
    opacity: 0.9;
    line-height: 1.7;
}

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

.value-card {
    background: rgba(255, 255, 255, 0.05);
    padding: 2rem;
    border-radius: 15px;
    text-align: center;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

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

.value-card h3 {
    color: #ffd700;
    margin-bottom: 1rem;
}

.value-card p {
    color: #fff;
    opacity: 0.9;
    line-height: 1.7;
}

.team-intro {
    text-align: center;
    color: #fff;
    opacity: 0.9;
    margin-bottom: 3rem;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

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

.team-member {
    background: rgba(255, 255, 255, 0.05);
    padding: 1.5rem;
    border-radius: 15px;
    text-align: center;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.member-image,
.member-placeholder {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    margin-bottom: 1rem;
}

.member-image {
    object-fit: cover;
}

.member-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.team-member h3 {
    color: #ffd700;
    margin-bottom: 0.5rem;
}

.team-member p {
    color: #fff;
    opacity: 0.9;
    font-size: 0.9rem;
}

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

.achievement-item {
    text-align: center;
    background: rgba(255, 255, 255, 0.05);
    padding: 2rem;
    border-radius: 15px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.achievement-number {
    font-size: 3rem;
    color: #ffd700;
    font-weight: bold;
    margin-bottom: 0.5rem;
}

.achievement-item p {
    color: #fff;
    opacity: 0.9;
}

/* Privacy Policy, Terms, and Disclaimer Styles */
.privacy-content,
.terms-content,
.disclaimer-content {
    max-width: 900px;
    margin: 0 auto;
}

.privacy-section,
.terms-section,
.disclaimer-section {
    background: rgba(255, 255, 255, 0.05);
    padding: 2rem;
    border-radius: 15px;
    margin-bottom: 2rem;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.privacy-section h2,
.terms-section h2,
.disclaimer-section h2 {
    color: #ffd700;
    margin-bottom: 1rem;
    font-size: 1.5rem;
}

.privacy-section h3,
.terms-section h3,
.disclaimer-section h3 {
    color: #ffd700;
    margin: 1.5rem 0 1rem 0;
    font-size: 1.2rem;
}

.privacy-section p,
.terms-section p,
.disclaimer-section p {
    color: #fff;
    opacity: 0.9;
    line-height: 1.7;
    margin-bottom: 1rem;
}

.privacy-section ul,
.terms-section ul,
.disclaimer-section ul {
    color: #fff;
    opacity: 0.9;
    margin: 1rem 0;
    padding-left: 2rem;
}

.privacy-section li,
.terms-section li,
.disclaimer-section li {
    margin-bottom: 0.5rem;
    line-height: 1.6;
}

.privacy-cta,
.terms-cta,
.disclaimer-cta {
    text-align: center;
    margin-top: 3rem;
    padding: 2rem;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 15px;
    backdrop-filter: blur(10px);
}

.privacy-cta h3,
.terms-cta h3,
.disclaimer-cta h3 {
    color: #ffd700;
    margin-bottom: 1rem;
}

.privacy-cta p,
.terms-cta p,
.disclaimer-cta p {
    color: #fff;
    opacity: 0.9;
    margin-bottom: 2rem;
}

.privacy-buttons,
.terms-buttons,
.disclaimer-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

/* Contact Us Page Styles */
.contact-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
    margin-bottom: 3rem;
}

.contact-text h2 {
    color: #ffd700;
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
}

.contact-text p {
    color: #fff;
    opacity: 0.9;
    line-height: 1.7;
    margin-bottom: 1rem;
}

.contact-image img {
    width: 100%;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.contact-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

.contact-method {
    background: rgba(255, 255, 255, 0.05);
    padding: 2rem;
    border-radius: 15px;
    text-align: center;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

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

.contact-method h3 {
    color: #ffd700;
    margin-bottom: 1rem;
}

.contact-method p {
    color: #fff;
    opacity: 0.9;
    margin-bottom: 1.5rem;
}

.contact-details p {
    color: #fff;
    opacity: 0.8;
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
}

.contact-form-section {
    background: rgba(255, 255, 255, 0.05);
    padding: 3rem;
    border-radius: 15px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    margin-bottom: 3rem;
}

.form-intro {
    text-align: center;
    color: #fff;
    opacity: 0.9;
    margin-bottom: 2rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.contact-form {
    max-width: 800px;
    margin: 0 auto;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    margin-bottom: 1rem;
}

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

.form-group label {
    display: block;
    color: #ffd700;
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
    font-size: 1rem;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: rgba(255, 255, 255, 0.6);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #ffd700;
    box-shadow: 0 0 0 2px rgba(255, 215, 0, 0.2);
}

.checkbox-group {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.checkbox-group input[type="checkbox"] {
    width: auto;
    margin: 0;
}

.checkbox-group label {
    margin: 0;
    font-size: 0.9rem;
}

.form-submit {
    text-align: center;
    margin-top: 2rem;
}

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

.topic-card {
    background: rgba(255, 255, 255, 0.05);
    padding: 2rem;
    border-radius: 15px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.topic-card h3 {
    color: #ffd700;
    margin-bottom: 1rem;
}

.topic-card p {
    color: #fff;
    opacity: 0.9;
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

.topic-link {
    color: #ffd700;
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s ease;
}

.topic-link:hover {
    color: #ffed4e;
}

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

.response-item {
    background: rgba(255, 255, 255, 0.05);
    padding: 2rem;
    border-radius: 15px;
    text-align: center;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

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

.response-item h3 {
    color: #ffd700;
    margin-bottom: 0.5rem;
}

.response-time {
    color: #ffd700;
    font-size: 1.2rem;
    font-weight: bold;
    margin-bottom: 1rem;
}

.response-item p {
    color: #fff;
    opacity: 0.9;
    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-number {
    font-size: 8rem;
    color: #ffd700;
    font-weight: bold;
    text-shadow: 0 0 30px rgba(255, 215, 0, 0.5);
    margin-bottom: 1rem;
}

.error-title {
    font-size: 2.5rem;
    color: #ffd700;
    margin-bottom: 1rem;
}

.error-message {
    color: #fff;
    opacity: 0.9;
    font-size: 1.2rem;
    margin-bottom: 2rem;
    line-height: 1.6;
}

.error-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 3rem;
}

.error-help {
    background: rgba(255, 255, 255, 0.05);
    padding: 2rem;
    border-radius: 15px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    margin-bottom: 2rem;
}

.error-help h3 {
    color: #ffd700;
    margin-bottom: 1rem;
}

.error-help p {
    color: #fff;
    opacity: 0.9;
    margin-bottom: 1.5rem;
}

.help-links {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
}

.help-category h4 {
    color: #ffd700;
    margin-bottom: 0.5rem;
}

.help-category ul {
    list-style: none;
    padding: 0;
}

.help-category li {
    margin-bottom: 0.5rem;
}

.help-category a {
    color: #fff;
    text-decoration: none;
    opacity: 0.8;
    transition: opacity 0.3s ease;
}

.help-category a:hover {
    opacity: 1;
    color: #ffd700;
}

.error-search {
    background: rgba(255, 255, 255, 0.05);
    padding: 2rem;
    border-radius: 15px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    margin-bottom: 2rem;
}

.error-search h3 {
    color: #ffd700;
    margin-bottom: 1rem;
}

.error-search p {
    color: #fff;
    opacity: 0.9;
    margin-bottom: 1.5rem;
}

.search-form {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.search-input {
    flex: 1;
    min-width: 300px;
    padding: 0.75rem;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
    font-size: 1rem;
}

.search-input::placeholder {
    color: rgba(255, 255, 255, 0.6);
}

.error-support {
    background: rgba(255, 255, 255, 0.05);
    padding: 2rem;
    border-radius: 15px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    margin-bottom: 2rem;
}

.error-support h3 {
    color: #ffd700;
    margin-bottom: 1rem;
}

.error-support p {
    color: #fff;
    opacity: 0.9;
    margin-bottom: 1.5rem;
}

.support-options {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

/* Responsive Design for New Pages */
@media (max-width: 768px) {
    .page-title {
        font-size: 2.5rem;
    }
    
    .about-content,
    .contact-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .mission-grid {
        grid-template-columns: 1fr;
    }
    
    .form-row {
        grid-template-columns: 1fr;
    }
    
    .search-form {
        flex-direction: column;
        align-items: center;
    }
    
    .search-input {
        min-width: 100%;
    }
    
    .error-number {
        font-size: 6rem;
    }
    
    .help-links {
        grid-template-columns: 1fr;
    }
}

/* Print styles */
@media print {
    .header,
    .footer,
    .btn {
        display: none;
    }
    
    body {
        background: white;
        color: black;
    }
    
    .main-content {
        margin-top: 0;
    }
}

/* Register Section Styles */
.register-section {
    padding: 4rem 0;
    background: linear-gradient(135deg, rgba(26, 26, 46, 0.95), rgba(22, 33, 62, 0.95));
    position: relative;
    overflow: hidden;
}

.register-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    opacity: 0.05;
    z-index: -1;
}

.register-section .container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
}

.register-content h2 {
    font-size: 2.5rem;
    color: #ffd700;
    margin-bottom: 1.5rem;
    text-shadow: 0 0 20px rgba(255, 215, 0, 0.3);
}

.register-content h3 {
    font-size: 1.8rem;
    color: #fff;
    margin: 2rem 0 1rem;
}

.register-content p {
    color: #e0e0e0;
    line-height: 1.8;
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
}

.register-steps-list {
    margin: 2rem 0;
    padding-left: 1.5rem;
}

.register-steps-list li {
    color: #e0e0e0;
    margin-bottom: 1.5rem;
    line-height: 1.6;
    font-size: 1.1rem;
    position: relative;
    padding-left: 3rem;
    display: flex;
    align-items: flex-start;
    gap: 1rem;
}

.step-icon {
    font-size: 1.5rem;
    position: absolute;
    left: 0;
    top: 0;
    background: linear-gradient(135deg, #ffd700, #ffed4e);
    border-radius: 50%;
    width: 2.5rem;
    height: 2.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 15px rgba(255, 215, 0, 0.3);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.step-icon:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 20px rgba(255, 215, 0, 0.4);
}

.register-steps-list li strong {
    color: #ffd700;
    font-weight: 600;
}

.register-note {
    margin-top: 2rem;
    color: #b0b0b0;
    font-style: italic;
}

.register-note a {
    color: #ffd700;
    text-decoration: none;
    transition: color 0.3s ease;
}

.register-note a:hover {
    color: #fff;
    text-decoration: underline;
}

.hero-image,
.contact-placeholder {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    align-items: center;
}

.contact-placeholder {
    width: 100%;
    height: 300px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 6rem;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border-radius: 12px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

.hero-image img {
    max-width: 100%;
    height: auto;
    border-radius: 12px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.hero-image img:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.4);
}

/* Login Section Styles */
.login-section {
    padding: 4rem 0;
    background: linear-gradient(135deg, rgba(22, 33, 62, 0.95), rgba(26, 26, 46, 0.95));
    position: relative;
    overflow: hidden;
}

.login-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    opacity: 0.05;
    z-index: -1;
}

.login-section .container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
}

.login-content h2 {
    font-size: 2.5rem;
    color: #ffd700;
    margin-bottom: 1.5rem;
    text-shadow: 0 0 20px rgba(255, 215, 0, 0.3);
}

.login-content h3 {
    font-size: 1.8rem;
    color: #fff;
    margin: 2rem 0 1rem;
}

.login-content p {
    color: #e0e0e0;
    line-height: 1.8;
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
}

.login-benefits {
    margin: 2rem 0;
    padding-left: 1.5rem;
}

.login-benefits li {
    color: #e0e0e0;
    margin-bottom: 1.5rem;
    line-height: 1.6;
    font-size: 1.1rem;
    position: relative;
    padding-left: 3rem;
    display: flex;
    align-items: flex-start;
    gap: 1rem;
}

.benefit-icon {
    font-size: 1.3rem;
    position: absolute;
    left: 0;
    top: 0;
    background: linear-gradient(135deg, #4CAF50, #45a049);
    border-radius: 50%;
    width: 2.2rem;
    height: 2.2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 15px rgba(76, 175, 80, 0.3);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.benefit-icon:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 20px rgba(76, 175, 80, 0.4);
}

.login-note {
    margin-top: 2rem;
    color: #b0b0b0;
    font-style: italic;
}

.login-note a {
    color: #ffd700;
    text-decoration: none;
    transition: color 0.3s ease;
}

.login-note a:hover {
    color: #fff;
    text-decoration: underline;
}

.hero-image-login {
    display: flex;
    justify-content: center;
    align-items: center;
}

.hero-image-login img {
    max-width: 100%;
    height: auto;
    border-radius: 12px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.hero-image-login img:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.4);
}

/* Games Slider Section Styles */
.games-slider-section {
    padding: 4rem 0 2rem 0; /* Reduced bottom padding to eliminate gap */
    background: linear-gradient(135deg, rgba(26, 26, 46, 0.95), rgba(22, 33, 62, 0.95));
    position: relative;
    overflow: hidden;
}

.games-slider-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    opacity: 0.05;
    z-index: -1;
}

.slider-container {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 3rem;
    align-items: start;
    margin-top: 2rem;
}

.selected-interface {
    display: flex;
    justify-content: center;
    align-items: center;
}

.main-image-container {
    position: relative;
    width: 100%;
    max-width: 500px;
    border-radius: 20px;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    aspect-ratio: 9/16; /* Mobile phone aspect ratio */
}

.main-image-container:hover {
    transform: translateY(-5px);
    box-shadow: 0 25px 80px rgba(0, 0, 0, 0.5);
}

.main-image {
    width: 100%;
    height: auto;
    display: block;
    transition: opacity 0.5s ease;
}

.nav-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 215, 0, 0.9);
    border: none;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 1.5rem;
    color: #1a1a2e;
    font-weight: bold;
    transition: all 0.3s ease;
    z-index: 10;
}

.nav-arrow:hover {
    background: rgba(255, 215, 0, 1);
    transform: translateY(-50%) scale(1.1);
    box-shadow: 0 5px 20px rgba(255, 215, 0, 0.4);
}

.nav-prev {
    left: 20px;
}

.nav-next {
    right: 20px;
}

.thumbnails {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    align-items: center;
}

.thumbnail-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    grid-template-rows: repeat(3, 1fr);
    gap: 1rem;
    max-width: 300px;
    width: 100%;
}

.thumbnail-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
    max-width: 300px;
}

.thumbnail-item {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 3px solid transparent;
    width: 100%;
    height: 120px; /* Fixed height for all thumbnails */
    display: block; /* Changed to block for better image fitting */
    background: linear-gradient(135deg, #ff6b6b, #ff8e8e); /* Coral-pink background */
}

.thumbnail-item img {
    width: 100%;
    height: 100%;
    object-fit: contain; /* This shows the full image without cropping */
    object-position: center; /* Center the image content */
    display: block;
    transition: transform 0.3s ease;
}

.thumbnail-item:hover {
    transform: scale(1.05);
    border-color: #ffd700;
    box-shadow: 0 8px 25px rgba(255, 215, 0, 0.3);
}

.thumbnail-item.active {
    border-color: #ffd700;
    box-shadow: 0 8px 25px rgba(255, 215, 0, 0.5);
}

.thumbnail-item.active::after {
    content: '✓';
    position: absolute;
    top: 10px;
    right: 10px;
    background: #ffd700;
    color: #1a1a2e;
    border-radius: 50%;
    width: 25px;
    height: 25px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 0.9rem;
    z-index: 5;
}

/* Ensure perfect grid alignment - all boxes same size */
.thumbnail-item:nth-child(1) { grid-area: 1 / 1 / 2 / 2; }
.thumbnail-item:nth-child(2) { grid-area: 1 / 2 / 2 / 3; }
.thumbnail-item:nth-child(3) { grid-area: 2 / 1 / 3 / 2; } /* Same size as others */
.thumbnail-item:nth-child(4) { grid-area: 2 / 2 / 3 / 3; } /* Same size as others */
.thumbnail-item:nth-child(5) { grid-area: 3 / 2 / 4 / 3; } /* Bottom right - Motorace */



/* Responsive Design for Games Slider */
@media (max-width: 768px) {
    .slider-container {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .thumbnails {
        order: -1;
    }
    
    .thumbnail-grid {
        display: flex;
        overflow-x: auto;
        gap: 1rem;
        padding: 0.5rem 0;
        max-width: 100%;
        scroll-snap-type: x mandatory;
    }
    
    .thumbnail-item {
        flex: 0 0 120px;
        height: 120px;
        scroll-snap-align: start;
    }
    
    .thumbnail-item:nth-child(3) {
        grid-column: auto;
        max-width: 120px;
        height: 120px;
        width: 120px;
    }
    
    .main-image-container {
        max-width: 100%;
        width: 100%;
        height: auto;
        min-height: 400px; /* Ensure minimum height on mobile */
    }
    
    .main-image {
        width: 100%;
        height: auto;
        min-height: 400px;
        object-fit: contain; /* Show full image on mobile */
    }
    
    .nav-arrow {
        width: 40px;
        height: 40px;
        font-size: 1.2rem;
    }
    
    .nav-prev {
        left: 15px;
    }
    
    .nav-next {
        right: 15px;
    }
}

@media (max-width: 480px) {
    .thumbnail-item {
        flex: 0 0 100px;
        height: 100px;
    }
    
    .main-image-container {
        min-height: 350px;
        aspect-ratio: 9/16;
    }
    
    .main-image {
        min-height: 350px;
    }
    
    .nav-arrow {
        width: 35px;
        height: 35px;
        font-size: 1rem;
    }
}

/* Responsive Design for Register and Login Sections */
@media (max-width: 768px) {
    .register-section .container,
    .login-section .container {
        grid-template-columns: 1fr;
        gap: 2rem;
        text-align: center;
    }
    
    .register-content h2,
    .login-content h2 {
        font-size: 2rem;
    }
    
    .register-content h3,
    .login-content h3 {
        font-size: 1.5rem;
    }
    
    .hero-image {
        order: -1;
    }
    
    .hero-image-login {
        order: -1;
    }
    
    .register-steps-list {
        text-align: left;
        padding-left: 2rem;
    }
    
    .register-steps-list li {
        padding-left: 3.5rem;
    }
    
    .step-icon {
        width: 2rem;
        height: 2rem;
        font-size: 1.2rem;
    }
    
    .login-benefits {
        text-align: left;
        padding-left: 2rem;
    }
    
    .login-benefits li {
        padding-left: 3.5rem;
    }
    
    .benefit-icon {
        width: 1.8rem;
        height: 1.8rem;
        font-size: 1.1rem;
    }
}
