/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #FF0000;
    --secondary-color: #950101;
    --dark-red: #3D0000;
    --black: #000000;
    --white: #ffffff;
    --gray: #f5f5f5;
    --dark-gray: #333;
    --light-gray: #e0e0e0;
    --high-contrast-text: #1a1a1a;
    --high-contrast-bg: #ffffff;
    --accessible-red: #cc0000;
    --accessible-dark-red: #990000;
}

body {
    font-family: 'Arial', sans-serif;
    line-height: 1.6;
    color: var(--black);
    background-color: var(--white);
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1rem;
    color: var(--dark-red);
}

h1 {
    font-size: 2.5rem;
}

h2 {
    font-size: 2rem;
}

h3 {
    font-size: 1.5rem;
}

p {
    margin-bottom: 1rem;
    font-size: 1rem;
}

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

/* Header and Navigation */
.header {
    background: linear-gradient(135deg, var(--black) 0%, var(--dark-red) 100%);
    padding: 1rem 0;
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0,0,0,0.3);
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.nav-logo img {
    height: 50px;
    width: auto;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-menu a {
    color: var(--white);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
    padding: 0.5rem 1rem;
    border-radius: 5px;
}

.nav-menu a:hover {
    color: var(--primary-color);
    background-color: rgba(255,255,255,0.1);
}

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

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

.btn-login {
    background-color: var(--primary-color);
    color: var(--white);
}

.btn-login:hover {
    background-color: var(--secondary-color);
    transform: translateY(-2px);
}

.btn-register {
    background-color: var(--secondary-color);
    color: var(--white);
}

.btn-register:hover {
    background-color: var(--dark-red);
    transform: translateY(-2px);
}

.btn-primary {
    background-color: var(--primary-color);
    color: var(--white);
    padding: 1rem 2rem;
    font-size: 1.1rem;
}

.btn-primary:hover {
    background-color: var(--secondary-color);
    transform: translateY(-2px);
}

.btn-secondary {
    background-color: var(--secondary-color);
    color: var(--white);
    padding: 1rem 2rem;
    font-size: 1.1rem;
}

.btn-secondary:hover {
    background-color: var(--dark-red);
    transform: translateY(-2px);
}

.btn-outline {
    background-color: transparent;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
}

.btn-outline:hover {
    background-color: var(--primary-color);
    color: var(--white);
}

.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
}

.hamburger span {
    width: 25px;
    height: 3px;
    background-color: var(--white);
    margin: 3px 0;
    transition: 0.3s;
}

/* Main Content */
main {
    margin-top: 80px;
}

/* Hero Section */
.hero-section {
    background: linear-gradient(135deg, var(--black) 0%, var(--dark-red) 50%, var(--secondary-color) 100%);
    color: var(--white);
    padding: 6rem 0;
    min-height: 90vh;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grain" width="100" height="100" patternUnits="userSpaceOnUse"><circle cx="50" cy="50" r="0.5" fill="rgba(255,255,255,0.03)"/></pattern></defs><rect width="100" height="100" fill="url(%23grain)"/></svg>');
    pointer-events: none;
}

.hero-section::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 30% 20%, rgba(255, 0, 0, 0.1) 0%, transparent 50%),
                radial-gradient(circle at 70% 80%, rgba(149, 1, 1, 0.1) 0%, transparent 50%);
    pointer-events: none;
}

.hero-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    position: relative;
    z-index: 2;
}

.hero-content {
    animation: slideInLeft 1s ease-out;
}

.hero-content h1 {
    color: var(--white);
    font-size: 3.5rem;
    margin-bottom: 1.5rem;
    font-weight: 800;
    line-height: 1.1;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
    background: linear-gradient(45deg, var(--white), var(--primary-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-content p {
    font-size: 1.3rem;
    margin-bottom: 2.5rem;
    opacity: 0.95;
    line-height: 1.7;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.3);
}

.hero-buttons {
    display: flex;
    gap: 1.5rem;
    flex-wrap: wrap;
    animation: fadeInUp 1.2s ease-out 0.3s both;
}

.hero-image {
    animation: slideInRight 1s ease-out 0.2s both;
    position: relative;
    width: 300px;
    height: 300px;
    margin: 0 auto;
}

.hero-image::before {
    content: '';
    position: absolute;
    top: -15px;
    left: -15px;
    right: -15px;
    bottom: -15px;
    background: linear-gradient(45deg, var(--primary-color), var(--secondary-color), var(--dark-red));
    border-radius: 50%;
    z-index: -1;
    opacity: 0.3;
    filter: blur(15px);
}

.hero-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
    box-shadow: 0 15px 40px rgba(0,0,0,0.4);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    position: relative;
    z-index: 2;
}

.hero-image:hover img {
    transform: translateY(-8px) scale(1.05);
    box-shadow: 0 25px 60px rgba(0,0,0,0.5);
}

/* Hero Animations */
@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

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

/* Hero Responsive */
@media (max-width: 768px) {
    .hero-section {
        padding: 4rem 0;
        min-height: 70vh;
    }
    
    .hero-container {
        grid-template-columns: 1fr;
        gap: 2rem;
        text-align: center;
    }
    
    .hero-content h1 {
        font-size: 2.5rem;
    }
    
    .hero-content p {
        font-size: 1.1rem;
    }
    
    .hero-buttons {
        justify-content: center;
    }
    
    .hero-image {
        order: -1;
    }
}

/* Sections */
section {
    padding: 4rem 0;
}

section:nth-child(even) {
    background-color: var(--gray);
}

/* Features Section */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.feature-card {
    background: var(--white);
    padding: 2rem;
    border-radius: 10px;
    text-align: center;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
}

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

.feature-card .icon {
    font-size: 4rem;
    margin-bottom: 1rem;
    color: var(--primary-color);
}

.feature-card .icon.security {
    color: var(--primary-color);
}

.feature-card .icon.games {
    color: var(--secondary-color);
}

.feature-card .icon.live {
    color: var(--dark-red);
}

/* Login and Register Sections */
.login-section, .register-section {
    background: linear-gradient(135deg, var(--gray) 0%, var(--white) 100%);
}

/* Login Steps Container */
.login-steps-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin: 3rem 0;
}

.login-step {
    background: var(--white);
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    text-align: center;
    position: relative;
    transition: transform 0.3s ease;
}

.login-step:hover {
    transform: translateY(-5px);
}

.login-step .step-number {
    background: var(--primary-color);
    color: var(--white);
    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 1.5rem;
}

.login-step .step-content h3 {
    color: var(--dark-red);
    margin-bottom: 1rem;
    font-size: 1.3rem;
}

.login-step .step-content p {
    color: var(--dark-gray);
    line-height: 1.6;
}

/* Login Benefits */
.login-benefits {
    background: var(--white);
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    margin: 3rem 0;
    text-align: center;
}

.login-benefits h3 {
    color: var(--dark-red);
    margin-bottom: 2rem;
    font-size: 1.5rem;
}

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

.benefits-list .benefit-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    background: var(--gray);
    border-radius: 8px;
    transition: background-color 0.3s ease;
}

.benefits-list .benefit-item:hover {
    background: var(--light-gray);
}

.benefits-list .benefit-icon {
    font-size: 1.5rem;
    min-width: 30px;
}

.benefits-list .benefit-item span {
    font-weight: 500;
    color: var(--dark-gray);
}

/* Login Action */
.login-action {
    text-align: center;
    margin-top: 3rem;
}

.btn-login-large, .btn-register-large {
    font-size: 1.2rem;
    padding: 1.2rem 2.5rem;
    margin-bottom: 1rem;
}

/* Enhanced Login Button Styling */
.btn-login-large {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    border: 3px solid var(--dark-gray);
    box-shadow: 0 8px 25px rgba(255, 0, 0, 0.3);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    position: relative;
    overflow: hidden;
    transition: all 0.4s ease;
}

.btn-login-large::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s ease;
}

.btn-login-large:hover {
    background: linear-gradient(135deg, var(--secondary-color) 0%, var(--dark-red) 100%);
    transform: translateY(-3px);
    box-shadow: 0 12px 35px rgba(255, 0, 0, 0.4);
    border-color: var(--primary-color);
}

.btn-login-large:hover::before {
    left: 100%;
}

.btn-login-large:active {
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(255, 0, 0, 0.3);
}

/* Enhanced Register Button Styling */
.btn-register-large {
    background: linear-gradient(135deg, var(--secondary-color) 0%, var(--dark-red) 100%);
    border: 3px solid var(--dark-gray);
    box-shadow: 0 8px 25px rgba(149, 1, 1, 0.3);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    position: relative;
    overflow: hidden;
    transition: all 0.4s ease;
}

.btn-register-large::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s ease;
}

.btn-register-large:hover {
    background: linear-gradient(135deg, var(--dark-red) 0%, var(--black) 100%);
    transform: translateY(-3px);
    box-shadow: 0 12px 35px rgba(149, 1, 1, 0.4);
    border-color: var(--secondary-color);
}

.btn-register-large:hover::before {
    left: 100%;
}

.btn-register-large:active {
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(149, 1, 1, 0.3);
}

/* Register Steps Container */
.register-steps-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin: 3rem 0;
}

.register-step {
    background: var(--white);
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    text-align: center;
    position: relative;
    transition: transform 0.3s ease;
}

.register-step:hover {
    transform: translateY(-5px);
}

.register-step .step-number {
    background: var(--secondary-color);
    color: var(--white);
    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 1.5rem;
}

.register-step .step-content h3 {
    color: var(--dark-red);
    margin-bottom: 1rem;
    font-size: 1.3rem;
}

.register-step .step-content p {
    color: var(--dark-gray);
    line-height: 1.6;
}

/* Register Benefits */
.register-benefits {
    background: var(--white);
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    margin: 3rem 0;
    text-align: center;
}

.register-benefits h3 {
    color: var(--dark-red);
    margin-bottom: 2rem;
    font-size: 1.5rem;
}

/* Register Action */
.register-action {
    text-align: center;
    margin-top: 3rem;
}

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

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

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

.game-card {
    background: var(--white);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
}

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

.game-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.game-card h3, .game-card p {
    padding: 1rem;
}

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

.benefit-item {
    text-align: center;
    padding: 2rem;
    background: var(--white);
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.benefit-item h3 {
    color: var(--primary-color);
    margin-bottom: 1rem;
}

/* Testimonials Section */
.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.testimonial-card {
    background: var(--white);
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    text-align: center;
}

.testimonial-card p {
    font-style: italic;
    margin-bottom: 1rem;
}

.testimonial-card h4 {
    color: var(--primary-color);
}

/* Stats Section */
.stats-section {
    background: linear-gradient(135deg, var(--black) 0%, var(--dark-red) 100%);
    color: var(--white);
}

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

.stat-item {
    text-align: center;
    padding: 2rem;
}

.stat-item h3 {
    color: var(--primary-color);
    font-size: 3rem;
    margin-bottom: 0.5rem;
}

.stat-item p {
    opacity: 0.9;
}

/* CTA Section */
.cta-section {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    color: var(--white);
    text-align: center;
}

.cta-section h2 {
    color: var(--white);
}

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

/* Footer */
.footer {
    background: var(--black);
    color: var(--white);
    padding: 3rem 0 1rem;
}

.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: var(--primary-color);
    margin-bottom: 1rem;
}

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

.footer-section ul li {
    margin-bottom: 0.5rem;
}

.footer-section a {
    color: var(--light-gray);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-section a:hover {
    color: var(--primary-color);
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid var(--dark-gray);
    opacity: 0.8;
}

/* Responsive Design */
@media (max-width: 768px) {
    .hamburger {
        display: flex;
    }
    
    .nav-menu {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: var(--black);
        flex-direction: column;
        padding: 1rem;
        box-shadow: 0 4px 8px rgba(0,0,0,0.3);
        z-index: 999;
    }
    
    .nav-menu.active {
        display: flex;
        padding-bottom: 0; /* Remove bottom padding to connect with nav-buttons */
    }
    
    .nav-buttons {
        display: none;
    }
    
    /* Mobile Menu with Nav Buttons */
    /* Mobile Menu Integration - Hide desktop nav-buttons on mobile */
    .nav-menu.active ~ .nav-buttons {
        display: none !important;
    }
    
    /* Add nav-buttons to mobile menu */
    .nav-menu.active::after {
        content: '';
        display: block;
        width: 100%;
        height: 1px;
        background: var(--dark-gray);
        margin: 1rem 0;
    }
    
    .nav-menu.active li:last-child {
        margin-bottom: 0;
    }
    
    /* Mobile Menu Button Styles */
    .nav-menu.active .mobile-nav-buttons {
        display: flex;
        flex-direction: column;
        gap: 0.8rem;
        padding: 1rem 0 0 0;
        border-top: 1px solid var(--dark-gray);
        margin-top: 1rem;
    }
    
    .nav-menu.active .mobile-nav-buttons .btn {
        width: 100%;
        text-align: center;
        justify-content: center;
        padding: 0.8rem 1.5rem;
        font-size: 1rem;
        border-radius: 8px;
        margin: 0;
        transition: all 0.3s ease;
    }
    
    .nav-menu.active .mobile-nav-buttons .btn:hover {
        transform: translateY(-2px);
        box-shadow: 0 4px 12px rgba(255, 0, 0, 0.3);
    }
    
    /* Ensure mobile nav-buttons are hidden on desktop */
    .mobile-nav-buttons {
        display: none;
    }
    
    .hero-container {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .hero-content h1 {
        font-size: 2rem;
    }
    
    .login-content, .register-content, .about-content {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .cta-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    h1 {
        font-size: 2rem;
    }
    
    h2 {
        font-size: 1.5rem;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 15px;
    }
    
    .hero-content h1 {
        font-size: 1.8rem;
    }
    
    .btn {
        padding: 0.6rem 1.2rem;
        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 keyboard navigation */
a:focus, button:focus, input:focus, select:focus, textarea:focus {
    outline: 2px solid var(--primary-color);
    outline-offset: 2px;
    outline-style: solid;
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    :root {
        --primary-color: var(--accessible-red);
        --secondary-color: var(--accessible-dark-red);
        --dark-red: var(--accessible-dark-red);
        --black: var(--high-contrast-text);
        --white: var(--high-contrast-bg);
    }
    
    .btn {
        border: 2px solid var(--accessible-red);
    }
    
    .hero-content h1 {
        color: var(--accessible-red);
        text-shadow: 2px 2px 4px rgba(0,0,0,0.8);
    }
}

/* Screen reader only content */
.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;
}

/* Skip link for accessibility */
.skip-link {
    position: absolute;
    top: -40px;
    left: 6px;
    background: var(--primary-color);
    color: var(--white);
    padding: 8px;
    text-decoration: none;
    border-radius: 4px;
    z-index: 10000;
    transition: top 0.3s;
}

.skip-link:focus {
    top: 6px;
}

/* Ensure proper zoom support */
html {
    -webkit-text-size-adjust: 100%;
    -ms-text-size-adjust: 100%;
    text-size-adjust: 100%;
}

/* Improve readability when zoomed */
@media screen and (max-width: 480px) {
    body {
        font-size: 16px; /* Prevent iOS zoom on input focus */
    }
    
    input, select, textarea {
        font-size: 16px; /* Prevent iOS zoom on input focus */
    }
}

/* High zoom support */
@media screen and (min-resolution: 2dppx) {
    .hero-content h1 {
        text-shadow: 2px 2px 4px rgba(0,0,0,0.8);
    }
    
    .btn {
        border-width: 2px;
    }
}

/* Improved contrast for better readability */
.hero-content p {
    color: var(--white);
    text-shadow: 1px 1px 2px rgba(0,0,0,0.8);
}

.feature-card p {
    color: var(--high-contrast-text);
}

.login-step .step-content p,
.register-step .step-content p {
    color: var(--high-contrast-text);
}

/* Enhanced button accessibility */
.btn {
    position: relative;
    transition: all 0.3s ease;
}

.btn:focus {
    transform: scale(1.05);
    box-shadow: 0 0 0 4px rgba(255, 0, 0, 0.3);
}

/* Improved form accessibility */
.form-group label {
    font-weight: 600;
    color: var(--high-contrast-text);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    border-color: var(--accessible-red);
    box-shadow: 0 0 0 3px rgba(204, 0, 0, 0.2);
}

/* Better link contrast */
a {
    color: var(--accessible-red);
    text-decoration: underline;
    text-underline-offset: 2px;
}

a:hover {
    color: var(--accessible-dark-red);
    text-decoration-thickness: 2px;
}

/* Ensure sufficient contrast for all text */
p, li, span {
    color: var(--high-contrast-text);
}

/* High contrast for important elements */
.hero-content h1,
.feature-card h3,
.login-step h3,
.register-step h3 {
    color: var(--accessible-red);
    text-shadow: 1px 1px 2px rgba(0,0,0,0.3);
}

/* Testimonial author styling */
.testimonial-author {
    display: block;
    font-style: italic;
    color: var(--accessible-red);
    font-weight: 600;
    text-align: center;
    margin-top: 1rem;
    font-size: 1.1rem;
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    :root {
        --primary-color: #FF0000;
        --secondary-color: #950101;
        --dark-red: #3D0000;
        --black: #000000;
        --white: #ffffff;
    }
}

/* Contact Form Styles */
.contact-form-section {
    background: var(--white);
    padding: 4rem 0;
}

.contact-form-section h2 {
    text-align: center;
    color: var(--dark-red);
    margin-bottom: 1rem;
    font-size: 2.5rem;
}

.contact-form-section > .container > p {
    text-align: center;
    color: var(--dark-gray);
    margin-bottom: 3rem;
    font-size: 1.1rem;
}

.contact-form {
    max-width: 800px;
    margin: 0 auto;
    background: var(--white);
    padding: 2.5rem;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    border: 1px solid var(--light-gray);
}

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

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

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    color: var(--dark-red);
    font-weight: 600;
    font-size: 0.95rem;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 0.8rem 1rem;
    border: 2px solid var(--light-gray);
    border-radius: 8px;
    font-size: 1rem;
    transition: all 0.3s ease;
    background: var(--white);
    color: var(--dark-gray);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(255, 0, 0, 0.1);
    transform: translateY(-2px);
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
    font-family: inherit;
}

.checkbox-group {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    margin-bottom: 1.5rem;
}

.checkbox-group input[type="checkbox"] {
    width: auto;
    margin-top: 0.25rem;
    accent-color: var(--primary-color);
}

.checkbox-group label {
    margin-bottom: 0;
    font-size: 0.9rem;
    line-height: 1.4;
    color: var(--dark-gray);
}

.checkbox-group a {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
}

.checkbox-group a:hover {
    text-decoration: underline;
}

.form-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
    margin-top: 2rem;
}

.form-actions .btn {
    padding: 0.8rem 2rem;
    font-size: 1rem;
    min-width: 140px;
}

.form-info {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid var(--light-gray);
}

.info-item {
    text-align: center;
    padding: 1.5rem;
    background: var(--light-gray);
    border-radius: 10px;
    transition: transform 0.3s ease;
}

.info-item:hover {
    transform: translateY(-5px);
}

.info-item h4 {
    color: var(--dark-red);
    margin-bottom: 1rem;
    font-size: 1.2rem;
}

.info-item p {
    color: var(--dark-gray);
    line-height: 1.6;
    font-size: 0.95rem;
}

/* Contact Form Responsive */
@media (max-width: 768px) {
    .contact-form {
        padding: 2rem 1.5rem;
        margin: 0 1rem;
    }
    
    .form-row {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .form-actions {
        flex-direction: column;
        align-items: center;
    }
    
    .form-actions .btn {
        width: 100%;
        max-width: 300px;
    }
    
    .form-info {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
}

@media (max-width: 480px) {
    .contact-form-section {
        padding: 3rem 0;
    }
    
    .contact-form-section h2 {
        font-size: 2rem;
    }
    
    .contact-form {
        padding: 1.5rem 1rem;
    }
}

/* Form Validation Styles */
.form-group.focused label {
    color: var(--primary-color);
}

.form-group input.error,
.form-group select.error,
.form-group textarea.error {
    border-color: #f44336;
    box-shadow: 0 0 0 3px rgba(244, 67, 54, 0.1);
}

.form-group input.error:focus,
.form-group select.error:focus,
.form-group textarea.error:focus {
    border-color: #f44336;
    box-shadow: 0 0 0 3px rgba(244, 67, 54, 0.2);
}

/* Notification Styles */
.notification {
    font-family: inherit;
}

.notification-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.notification-message {
    flex: 1;
    font-size: 0.95rem;
    line-height: 1.4;
}

.notification-close {
    background: none;
    border: none;
    color: white;
    font-size: 1.5rem;
    cursor: pointer;
    padding: 0;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: background-color 0.3s ease;
}

.notification-close:hover {
    background-color: rgba(255, 255, 255, 0.2);
}

/* Notification Animation */
@keyframes slideInRight {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

/* Page Header Styles */
.page-header {
    background: linear-gradient(135deg, var(--dark-red) 0%, var(--secondary-color) 100%);
    color: var(--white);
    text-align: center;
    padding: 4rem 0;
    margin-top: 80px;
}

.page-header h1 {
    color: var(--white);
    font-size: 3rem;
    margin-bottom: 1rem;
}

.page-header p {
    font-size: 1.2rem;
    opacity: 0.9;
}

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

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

.value-card {
    background: var(--white);
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    text-align: center;
}

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

.team-member {
    background: var(--white);
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    text-align: center;
}

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

.achievement-item {
    text-align: center;
    padding: 2rem;
}

.achievement-item h3 {
    color: var(--primary-color);
    font-size: 3rem;
    margin-bottom: 0.5rem;
}

/* Contact Page Styles */
.contact-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.contact-card {
    background: var(--white);
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    text-align: center;
}

.contact-details {
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid var(--light-gray);
}

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

.support-item {
    background: var(--white);
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.faq-links {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-top: 2rem;
    justify-content: center;
}

.faq-link {
    background: var(--primary-color);
    color: var(--white);
    padding: 0.75rem 1.5rem;
    border-radius: 25px;
    text-decoration: none;
    transition: all 0.3s ease;
}

.faq-link:hover {
    background: var(--secondary-color);
    transform: translateY(-2px);
}

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

.hours-item {
    background: var(--white);
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    text-align: center;
}

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

.response-item {
    background: var(--white);
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.response-item.urgent {
    border-left: 4px solid var(--primary-color);
}

.response-item.standard {
    border-left: 4px solid var(--secondary-color);
}

.response-item.complex {
    border-left: 4px solid var(--dark-red);
}

/* FAQ Page Styles */
.faq-navigation {
    background: var(--gray);
    padding: 2rem 0;
}

.faq-nav-links {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-top: 2rem;
    justify-content: center;
}

.faq-nav-link {
    background: var(--primary-color);
    color: var(--white);
    padding: 0.75rem 1.5rem;
    border-radius: 25px;
    text-decoration: none;
    transition: all 0.3s ease;
}

.faq-nav-link:hover {
    background: var(--secondary-color);
    transform: translateY(-2px);
}

.faq-section {
    padding: 3rem 0;
}

.faq-section:nth-child(even) {
    background: var(--gray);
}

.faq-item {
    background: var(--white);
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    margin-bottom: 2rem;
}

.faq-item h3 {
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.need-help-section {
    background: var(--gray);
    text-align: center;
    padding: 3rem 0;
}

.help-options {
    display: flex;
    gap: 1rem;
    justify-content: center;
    margin-top: 2rem;
    flex-wrap: wrap;
}

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

.category-card {
    background: var(--white);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
}

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

.category-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.category-card h3, .category-card p, .category-card ul {
    padding: 1rem;
}

.category-card ul {
    margin-left: 1rem;
}

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

.featured-game {
    background: var(--white);
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.game-features {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 1rem;
}

.feature-tag {
    background: var(--primary-color);
    color: var(--white);
    padding: 0.25rem 0.75rem;
    border-radius: 15px;
    font-size: 0.8rem;
}

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

.provider-item {
    background: var(--white);
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    text-align: center;
}

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

.step-item {
    background: var(--white);
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    text-align: center;
    position: relative;
}

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

/* 404 Page Styles */
.error-section {
    padding: 4rem 0;
    text-align: center;
    margin-top: 80px;
}

.error-content h1 {
    font-size: 8rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.error-content h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

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

.helpful-links {
    margin-top: 3rem;
    text-align: left;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.helpful-links ul {
    list-style: none;
    padding: 0;
}

.helpful-links li {
    margin-bottom: 0.5rem;
}

.helpful-links a {
    color: var(--primary-color);
    text-decoration: none;
}

.helpful-links a:hover {
    text-decoration: underline;
}

/* Print styles */
@media print {
    .header, .footer, .nav-buttons {
        display: none;
    }
    
    body {
        font-size: 12pt;
        line-height: 1.4;
    }
    
    a {
        text-decoration: underline;
    }
} 