/* UPI Games - Main Styles */
:root {
    --primary-gold: #D4AF37;
    --light-gold: #FEF9E1;
    --black: #000000;
    --dark-red: #8B0000;
    --white: #ffffff;
    --gray: #4A4A4A;
    --light-gray: #f5f5f5;
    --shadow: rgba(0, 0, 0, 0.1);
    --transition: all 0.3s ease;
}

/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Performance optimizations */
* {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Critical rendering path optimizations */
.header,
.hero,
.features {
    contain: layout style paint;
}

/* Optimize animations */
@media (prefers-reduced-motion: no-preference) {
    .feature-card:hover,
    .game-card:hover,
    .step:hover,
    .download-step:hover {
        transform: translateY(-5px);
        transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    }
}

/* Optimize paint and layout */
.feature-card,
.game-card,
.step,
.download-step {
    will-change: transform;
    backface-visibility: hidden;
}

html, body {
    overflow-x: hidden;
    height: 100%;
    scroll-behavior: smooth;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: var(--black);
    background-color: var(--white);
    position: relative;
}

/* Header */
.header {
    background: linear-gradient(135deg, var(--dark-red), var(--black));
    box-shadow: 0 2px 10px var(--shadow);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.navbar {
    padding: 1rem 0;
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Logo */
.nav-logo {
    display: flex;
    align-items: center;
    gap: 10px;
}

.logo-img {
    width: 40px;
    height: 40px;
    border-radius: 50%;
}

.logo-text {
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--white);
}

/* Navigation Menu */
.nav-menu {
    display: flex;
    list-style: none;
    align-items: center;
}

.nav-item {
    list-style: none;
}

.nav-link {
    color: var(--white);
    text-decoration: none;
    font-weight: 500;
    transition: var(--transition);
    border-radius: 5px;
    position: relative;
    border: 2px solid transparent;
    display: inline-block;
    padding: 0.5rem 1rem;
}

.nav-link:hover {
    background-color: rgba(255, 255, 255, 0.2);
    color: var(--white);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(255, 255, 255, 0.3);
}

.nav-link.active {
    background: linear-gradient(135deg, var(--white), var(--dark-red));
    color: var(--black);
    box-shadow: 0 4px 20px rgba(255, 255, 255, 0.4);
    transform: translateY(-2px);
    border: 2px solid var(--white);
    font-weight: 600;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

/* Button Styles */
.nav-link.login-btn, 
.nav-link.register-btn {
    background: var(--white);
    color: var(--black);
    padding: 0.5rem 1.5rem;
    border-radius: 25px;
    transition: var(--transition);
    border: 2px solid transparent;
    font-weight: 600;
}

.nav-link.login-btn:hover, 
.nav-link.register-btn:hover {
    background: var(--dark-red);
    color: var(--white);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(139, 0, 0, 0.4);
    border-color: var(--white);
}
.nav-btnss{
    display: flex;
    gap: 10px;
    align-items: center;
}

/* Ensure nav-btnss list items are properly styled */
.nav-item.nav-btnss {
    margin: 0;
    padding: 0;
}
/* Hamburger Menu */
.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
    background: none;
    border: none;
    padding: 0;
    margin: 0;
    outline: none;
    z-index: 1001;
}

.bar {
    width: 25px;
    height: 3px;
    background-color: var(--white);
    margin: 3px 0;
    transition: var(--transition);
    transform-origin: center;
}

/* Hamburger Active State (Close Button) */
.hamburger.active .bar:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.hamburger.active .bar:nth-child(2) {
    opacity: 0;
}

.hamburger.active .bar:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -6px);
}

/* Hero Section */
.hero {
    background: linear-gradient(135deg, var(--dark-red), var(--black));
    color: var(--white);
    padding: 4rem 0;
    text-align: center;
}

.hero h1 {
    font-size: 3rem;
    margin-bottom: 1rem;
    color: var(--white);
}

.hero p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.hero-buttons {
    display: flex;
    /* gap: 1rem; */
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 2rem;
}

.hero-buttons .btn {
    margin: 0.5rem;
}

.btn {
    display: inline-block;
    padding: 1rem 2rem;
    background: var(--dark-red);
    color: var(--white);
    text-decoration: none;
    border-radius: 25px;
    font-weight: 600;
    transition: var(--transition);
    border: 2px solid transparent;
}

.btn:hover {
    background: var(--black);
    color: var(--white);
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.4);
    border-color: var(--dark-red);
}

.btn-secondary {
    background: transparent;
    color: var(--dark-red);
    border: 2px solid var(--dark-red);
}

.btn-secondary:hover {
    background: var(--dark-red);
    color: var(--white);
}

/* Features Section */
.features {
    padding: 4rem 0;
    background: var(--light-gold);
}

.features h2 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 3rem;
    color: var(--dark-red);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.feature-card {
    background: var(--white);
    padding: 2rem;
    border-radius: 15px;
    text-align: center;
    box-shadow: 0 5px 15px var(--shadow);
    transition: var(--transition);
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px var(--shadow);
}

.feature-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
    color: var(--dark-red);
}

.feature-card h3 {
    color: var(--dark-red);
    margin-bottom: 1rem;
}

.feature-card p {
    color: var(--black);
    line-height: 1.6;
    font-size: 1rem;
}

/* Features section paragraph styling */
.features p,
.features .features-p {
    text-align: center;
    font-size: 1.1rem;
    margin-bottom: 2rem;
    color: var(--black);
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.6;
}

/* Games Section */
.games {
    padding: 4rem 0;
    background: var(--white);
}

.games h2 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 3rem;
    color: var(--dark-red);
}

/* Games section paragraph styling */
.games p,
.games .aboutS-p {
    text-align: center;
    font-size: 1.1rem;
    margin-bottom: 2rem;
    color: var(--black);
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.6;
}

/* Registration Steps Section */
.registration-steps {
    padding: 4rem 0;
    background: var(--light-gold);
}

.registration-steps h2 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 3rem;
    color: var(--dark-red);
}

.registration-steps p {
    text-align: center;
    font-size: 1.1rem;
    margin-bottom: 2rem;
    color: var(--black);
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.games-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.game-card {
    background: var(--light-gold);
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 5px 15px var(--shadow);
    transition: var(--transition);
}

.game-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px var(--shadow);
}

.game-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.game-content {
    padding: 1.5rem;
}

.game-content h3 {
    color: var(--dark-red);
    margin-bottom: 0.5rem;
}

/* Registration Steps */
.registration-steps {
    padding: 4rem 0;
    background: var(--light-gold);
}

.registration-steps h2 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 3rem;
    color: var(--dark-red);
}

.steps-container {
    max-width: 800px;
    margin: 0 auto;
    padding: 0 20px;
}

.step {
    background: var(--white);
    padding: 2rem;
    margin-bottom: 2rem;
    border-radius: 15px;
    box-shadow: 0 5px 15px var(--shadow);
    border-left: 5px solid var(--dark-red);
}

.step h3 {
    color: var(--dark-red);
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.step-number {
    background: var(--dark-red);
    color: var(--white);
    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
}

/* Footer */
.footer {
    background: var(--black);
    color: var(--white);
    padding: 3rem 0 1rem;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.footer-section h3 {
    color: var(--white);
    margin-bottom: 1rem;
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 0.5rem;
}

.footer-section ul li a {
    color: var(--white);
    text-decoration: none;
    transition: var(--transition);
}

.footer-section ul li a:hover {
    color: var(--white);
}

.footer-bottom {
    text-align: center;
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid var(--gray);
}

/* Main Content */
.main-content {
    padding: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

/* Testimonials and Statistics */
.main-content h4 {
    color: var(--dark-red);
    margin-top: 1rem;
    font-size: 1.1rem;
}

.main-content h4 strong {
    color: var(--dark-red);
}

/* Statistics Cards */
.features-grid .feature-card h3 {
    /* font-size: 2.5rem; */
    color: var(--dark-red);
    margin-bottom: 0.5rem;
}

.features-grid .feature-card p {
    color: var(--black);
    font-size: 1rem;
}

/* Testimonials Section Styling */
.features .feature-card:has(p:first-child) {
    text-align: left;
}

.features .feature-card:has(p:first-child) p {
    font-style: italic;
    font-size: 1.1rem;
    line-height: 1.8;
    margin-bottom: 1.5rem;
    color: var(--black);
}

.features .feature-card:has(p:first-child) h4 {
    color: var(--dark-red);
    font-size: 1.1rem;
    margin: 0;
}

.features .feature-card:has(p:first-child) h4 strong {
    color: var(--dark-red);
    font-weight: 600;
}

/* Statistics Cards in Testimonials */
.features .feature-card:has(h3:only-child) {
    text-align: center;
}

.features .feature-card:has(h3:only-child) h3 {
    /* font-size: 2.5rem; */
    color: var(--dark-red);
    margin-bottom: 0.5rem;
    font-weight: bold;
}

.features .feature-card:has(h3:only-child) p {
    color: var(--black);
    /* font-size: 1rem; */
    margin: 0;
}

/* Download Section Styling */
.download-section {
    padding: 4rem 0;
    background: var(--white);
}

.download-section h2 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: var(--dark-red);
}

.download-section p {
    text-align: center;
    font-size: 1.1rem;
    margin-bottom: 3rem;
    color: var(--black);
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.6;
}

.download-steps {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    margin-bottom: 3rem;
}

.download-step {
    text-align: center;
    background: var(--light-gold);
    padding: 1.5rem;
    border-radius: 15px;
    box-shadow: 0 5px 15px var(--shadow);
    transition: var(--transition);
}

.download-step:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px var(--shadow);
}

.step-image {
    margin-bottom: 1rem;
}

.step-image img {
    width: 100%;
    height: auto;
    border-radius: 10px;
    box-shadow: 0 3px 10px var(--shadow);
}

.step-content h3 {
    color: var(--dark-red);
    margin-bottom: 0.5rem;
    font-size: 1.1rem;
}

.step-content p {
    color: var(--black);
    font-size: 0.9rem;
    line-height: 1.4;
    margin: 0;
}

/* Features Stats Section Styling */
.features_stats {
    padding: 1rem 0;
    background: var(--light-gold);
}

.features_stats .features-grid {
    margin-top: 0;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
}

.features_stats .feature-card {
    text-align: center;
    background: var(--white);
    padding: 1.5rem 1rem;
    border-radius: 15px;
    box-shadow: 0 5px 15px var(--shadow);
    transition: var(--transition);
}

.features_stats .feature-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px var(--shadow);
}

.features_stats .feature-card h3 {
    font-size: 2rem;
    color: var(--dark-red);
    margin-bottom: 0.5rem;
    font-weight: bold;
}

.features_stats .feature-card p {
    color: var(--black);
    font-size: 1rem;
    margin: 0;
    line-height: 1.4;
}

.main-content h1 {
    color: var(--dark-red);
    margin-bottom: 1rem;
    font-size: 2.5rem;
    text-align: center;
}

.main-content h2 {
    color: var(--dark-red);
    margin: 2rem 0 1rem 0;
    font-size: 2rem;
}

.main-content h3 {
    color: var(--dark-red);
    margin: 1.5rem 0 1rem 0;
    font-size: 1.5rem;
}

.main-content p {
    color: var(--black);
    font-size: 1.1rem;
    margin-bottom: 1rem;
    line-height: 1.6;
}

.main-content ul {
    margin: 1rem 0;
    padding-left: 2rem;
}

.main-content ul li {
    margin-bottom: 0.5rem;
    color: var(--black);
}

.main-content ul li strong {
    color: var(--dark-red);
}

/* Container for sections */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Hero Content */
.hero-content {
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
}

.hero-content h1 {
    font-size: 3rem;
    margin-bottom: 1.5rem;
    color: var(--dark-red);
}

.hero-content h2 {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
    color: var(--dark-red);
}

.hero-content p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    color: var(--white);
}

/* Steps Container */
.steps-container {
    max-width: 800px;
    margin: 2rem auto;
}

.step {
    background: var(--white);
    padding: 2rem;
    margin-bottom: 2rem;
    border-radius: 15px;
    box-shadow: 0 5px 15px var(--shadow);
    border-left: 5px solid var(--dark-red);
}

.step h3 {
    color: var(--dark-red);
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.step-number {
    background: var(--dark-red);
    color: var(--white);
    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
}

.step p {
    color: var(--black);
    line-height: 1.6;
}

/* Contact Form Styles */
.contact-form {
    max-width: 600px;
    margin: 2rem auto;
    background: var(--white);
    padding: 2rem;
    border-radius: 15px;
    box-shadow: 0 5px 15px var(--shadow);
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    color: var(--dark-red);
    font-weight: 600;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 0.75rem;
    border: 2px solid var(--light-gray);
    border-radius: 8px;
    font-size: 1rem;
    transition: var(--transition);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--dark-red);
    box-shadow: 0 0 0 3px rgba(139, 0, 0, 0.1);
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

/* FAQ Styles */
.faq-section {
    margin-bottom: 3rem;
}

.faq-section h2 {
    color: var(--dark-red);
    margin-bottom: 1.5rem;
    border-bottom: 3px solid var(--dark-red);
    padding-bottom: 0.5rem;
}

.faq-item {
    background: var(--white);
    padding: 1.5rem;
    margin-bottom: 1rem;
    border-radius: 10px;
    box-shadow: 0 3px 10px var(--shadow);
    border-left: 4px solid var(--dark-red);
}

.faq-item h3 {
    color: var(--dark-red);
    margin-bottom: 1rem;
    font-size: 1.2rem;
}

.faq-item p {
    color: var(--black);
    line-height: 1.6;
}

/* Error Page Styles */
.error-page {
    text-align: center;
    padding: 2rem;
}

.error-icon {
    font-size: 4rem;
    margin: 2rem 0;
}

.error-actions {
    margin: 2rem 0;
}

.error-help,
.error-search,
.error-contact {
    margin: 3rem 0;
    text-align: left;
}

.error-help ul {
    list-style: none;
    padding: 0;
}

.error-help ul li {
    margin-bottom: 0.5rem;
}

.error-help ul li a {
    color: var(--dark-red);
    text-decoration: none;
    font-weight: 600;
}

.error-help ul li a:hover {
    color: var(--dark-red);
}

.search-form {
    display: flex;
    gap: 1rem;
    max-width: 400px;
    margin: 1rem 0;
}

.search-form input {
    flex: 1;
    padding: 0.75rem;
    border: 2px solid var(--light-gray);
    border-radius: 8px;
    font-size: 1rem;
}

.search-form button {
    padding: 0.75rem 1.5rem;
    background: var(--dark-red);
    color: var(--white);
    border: none;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
}

.search-form button:hover {
    background: var(--dark-red);
    color: var(--white);
}

/* Image optimization */
img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* Font optimization */
body {
    font-display: swap;
}

/* Responsive Design */
@media (max-width: 768px) {
    .hamburger {
        display: flex;
        position: relative;
        z-index: 1001;
    }
    
    .nav-menu {
        position: fixed;
        left: -100%;
        top: 0;
        flex-direction: column;
        background-color: var(--dark-red);
        width: 100%;
        height: 100vh;
        text-align: center;
        transition: 0.3s ease-in-out;
        box-shadow: 0 10px 27px rgba(0, 0, 0, 0.05);
        padding: 2rem 0;
        gap: 1rem;
        overflow-y: auto;
        overflow-x: hidden;
        z-index: 999;
    }

    .nav-menu.active {
        left: 0;
    }
    
    .nav-item {
        width: 100%;
        /* margin: 0.5rem 0; */
    }
    
    .nav-link {
        display: block;
        /* padding: 1rem 2rem; */
        width: 100%;
        font-size: 1.1rem;
        /* margin: 0.5rem 0; */
    }
    
    .hero h1 {
        font-size: 2rem;
    }
    
    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .features-grid,
    .games-grid {
        grid-template-columns: 1fr;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
         /* Statistics boxes stack vertically on mobile */
     .features_stats .features-grid {
         grid-template-columns: 1fr;
         gap: 1rem;
     }
     
     .features_stats .feature-card {
         padding: 1.5rem;
     }
     
     /* Download steps stack vertically on mobile */
     .download-steps {
         grid-template-columns: 1fr;
         gap: 1.5rem;
     }
     
     .download-step {
         padding: 1rem;
     }
}

@media (max-width: 480px) {
    .nav-container {
        padding: 0 15px;
    }
    
    .logo-text {
        font-size: 1.2rem;
    }
    
    .main-content {
        padding: 1rem;
    }
    
    .hero {
        padding: 2rem 0;
    }
    
    .hero h1 {
        font-size: 1.8rem;
    }
    
    .features,
    .games,
    .registration-steps {
        padding: 2rem 0;
    }
}

/* 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 */
.nav-link:focus,
.btn:focus,
.nav-link:focus-visible,
.btn:focus-visible {
    outline: 3px solid var(--dark-red);
    outline-offset: 2px;
}

/* Enhanced focus indicators */
.nav-link:focus-visible,
.btn:focus-visible {
    box-shadow: 0 0 0 3px rgba(139, 0, 0, 0.3);
}

/* Keyboard navigation indicator */
.keyboard-navigation .nav-link:focus,
.keyboard-navigation .btn:focus {
    outline: 3px solid var(--dark-red);
    outline-offset: 2px;
}

/* High contrast focus indicators */
@media (prefers-contrast: high) {
    .nav-link:focus,
    .btn:focus {
        outline: 3px solid var(--white);
        outline-offset: 2px;
    }
}

/* Enhanced accessibility for interactive elements */
.nav-link:focus-visible,
.btn:focus-visible,
a:focus-visible {
    outline: 3px solid var(--dark-red);
    outline-offset: 2px;
    box-shadow: 0 0 0 3px rgba(139, 0, 0, 0.3);
}

/* Ensure sufficient touch targets on mobile */
@media (max-width: 768px) {
    .nav-link,
    .btn {
        min-height: 44px;
        min-width: 44px;
        display: flex;
        align-items: center;
        justify-content: center;
    }
}

/* Skip link styles */
.skip-link {
    position: absolute;
    top: -40px;
    left: 6px;
    background: var(--dark-red);
    color: var(--white);
    padding: 8px 16px;
    text-decoration: none;
    border-radius: 4px;
    z-index: 10000;
    transition: top 0.3s ease;
}

.skip-link:focus {
    top: 6px;
}

/* Screen reader only class */
.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;
}

/* Blockquote styling for testimonials */
blockquote {
    margin: 0;
    padding: 0;
    border: none;
    font-style: italic;
}

blockquote cite {
    display: block;
    margin-top: 1rem;
    font-style: normal;
    font-size: 1.1rem;
    color: var(--dark-red);
}

/* Body scroll lock when mobile menu is open */
body.menu-open {
    overflow: hidden;
    position: fixed;
    width: 100%;
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    :root {
        --primary-gold: #000000;
        --light-gold: #ffffff;
        --dark-red: #000000;
        --gray: #000000;
    }
}

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::before {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}

/* Dark mode support */
@media (prefers-color-scheme: dark) {
    :root {
        --white: #1a1a1a;
        --black: #ffffff;
        --light-gray: #2a2a2a;
        --shadow: rgba(255, 255, 255, 0.1);
    }
} 

/* Breadcrumb Navigation Styles */
.breadcrumb {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    padding: 15px 0;
    margin-bottom: 30px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.breadcrumb-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.breadcrumb-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
}

.breadcrumb-item {
    display: flex;
    align-items: center;
    font-size: 14px;
    color: rgba(255, 255, 255, 0.9);
}

.breadcrumb-item:not(:last-child)::after {
    content: '›';
    margin: 0 10px;
    color: rgba(255, 255, 255, 0.6);
    font-weight: bold;
}

.breadcrumb-link {
    color: rgba(255, 255, 255, 0.9);
    text-decoration: none;
    transition: color 0.3s ease;
    font-weight: 500;
}

.breadcrumb-link:hover {
    color: #ffffff;
    text-decoration: underline;
}

.breadcrumb-current {
    color: #ffffff;
    font-weight: 600;
}

/* Responsive breadcrumb */
@media (max-width: 768px) {
    .breadcrumb {
        padding: 10px 0;
        margin-bottom: 20px;
    }
    
    .breadcrumb-container {
        padding: 0 15px;
    }
    
    .breadcrumb-list {
        font-size: 13px;
    }
    
    .breadcrumb-item:not(:last-child)::after {
        margin: 0 8px;
    }
}

/* Enhanced breadcrumb with icons */
.breadcrumb-item.home .breadcrumb-link::before {
    content: '🏠';
    margin-right: 5px;
}

.breadcrumb-item.about .breadcrumb-link::before {
    content: 'ℹ️';
    margin-right: 5px;
}

.breadcrumb-item.games .breadcrumb-link::before {
    content: '🎮';
    margin-right: 5px;
}

.breadcrumb-item.download .breadcrumb-link::before {
    content: '⬇️';
    margin-right: 5px;
}

.breadcrumb-item.contact .breadcrumb-link::before {
    content: '📞';
    margin-right: 5px;
}

.breadcrumb-item.faq .breadcrumb-link::before {
    content: '❓';
    margin-right: 5px;
}

.breadcrumb-item.support .breadcrumb-link::before {
    content: '🛠️';
    margin-right: 5px;
}

.breadcrumb-item.terms .breadcrumb-link::before {
    content: '📋';
    margin-right: 5px;
}

.breadcrumb-item.privacy .breadcrumb-link::before {
    content: '🔒';
    margin-right: 5px;
}

.breadcrumb-item.disclaimer .breadcrumb-link::before {
    content: '⚠️';
    margin-right: 5px;
} 

/* CSS containment for better performance */
.feature-card,
.game-card,
.step,
.download-step,
.nav-item {
    contain: layout style paint;
}

/* Additional performance optimizations */
.hero,
.features,
.games,
.registration-steps,
.download-section {
    contain: layout style paint;
}

/* Optimize critical rendering path */
.header,
.nav-container,
.hero-content {
    contain: layout style paint;
}

/* Reduce paint complexity */
.feature-card,
.game-card,
.step,
.download-step {
    transform: translateZ(0);
    backface-visibility: hidden;
}

/* AOS (Animate On Scroll) Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInLeft {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes fadeInRight {
    from {
        opacity: 0;
        transform: translateX(30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(50px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes zoomIn {
    from {
        opacity: 0;
        transform: scale(0.8);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes bounceIn {
    0% {
        opacity: 0;
        transform: scale(0.3);
    }
    50% {
        opacity: 1;
        transform: scale(1.05);
    }
    70% {
        transform: scale(0.9);
    }
    100% {
        opacity: 1;
        transform: scale(1);
    }
}

/* AOS Animation Classes */
.aos-fade-up {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s ease;
}

.aos-fade-up.aos-animate {
    opacity: 1;
    transform: translateY(0);
}

.aos-fade-left {
    opacity: 0;
    transform: translateX(-30px);
    transition: all 0.8s ease;
}

.aos-fade-left.aos-animate {
    opacity: 1;
    transform: translateX(0);
}

.aos-fade-right {
    opacity: 0;
    transform: translateX(30px);
    transition: all 0.8s ease;
}

.aos-fade-right.aos-animate {
    opacity: 1;
    transform: translateX(0);
}

.aos-fade-down {
    opacity: 0;
    transform: translateY(-30px);
    transition: all 0.8s ease;
}

.aos-fade-down.aos-animate {
    opacity: 1;
    transform: translateY(0);
}

.aos-fade-in {
    opacity: 0;
    transition: all 0.8s ease;
}

.aos-fade-in.aos-animate {
    opacity: 1;
}

.aos-slide-up {
    opacity: 0;
    transform: translateY(50px);
    transition: all 0.8s ease;
}

.aos-slide-up.aos-animate {
    opacity: 1;
    transform: translateY(0);
}

.aos-zoom-in {
    opacity: 0;
    transform: scale(0.8);
    transition: all 0.8s ease;
}

.aos-zoom-in.aos-animate {
    opacity: 1;
    transform: scale(1);
}

.aos-bounce-in {
    opacity: 0;
    transform: scale(0.3);
    transition: all 0.8s ease;
}

.aos-bounce-in.aos-animate {
    opacity: 1;
    transform: scale(1);
}

/* Animation Delays */
.aos-delay-100 {
    transition-delay: 0.1s;
}

.aos-delay-200 {
    transition-delay: 0.2s;
}

.aos-delay-300 {
    transition-delay: 0.3s;
}

.aos-delay-400 {
    transition-delay: 0.4s;
}

.aos-delay-500 {
    transition-delay: 0.5s;
}

/* Animation Duration */
.aos-duration-300 {
    transition-duration: 0.3s;
}

.aos-duration-500 {
    transition-duration: 0.5s;
}

.aos-duration-700 {
    transition-duration: 0.7s;
}

.aos-duration-1000 {
    transition-duration: 1s;
}

/* Responsive animations */
@media (max-width: 768px) {
    .aos-fade-up,
    .aos-fade-left,
    .aos-fade-right,
    .aos-slide-up {
        transform: none;
        opacity: 1;
    }
    
    .aos-fade-up.aos-animate,
    .aos-fade-left.aos-animate,
    .aos-fade-right.aos-animate,
    .aos-slide-up.aos-animate {
        transform: none;
    }
} 