/* Reset and Base Styles */

/* Skip link for accessibility */
.skip-link {
    position: absolute;
    top: -40px;
    left: 6px;
    background: var(--royal-gold);
    color: var(--black);
    padding: 8px 12px;
    z-index: 10000;
    text-decoration: none;
    border-radius: 4px;
    font-weight: 600;
    transition: top 0.3s ease;
}

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

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

/* Loading states */
.loading-spinner {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid var(--royal-gold);
    border-radius: 50%;
    border-top-color: transparent;
    animation: spin 1s ease-in-out infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Focus improvements */
*:focus {
    outline: 2px solid var(--royal-gold);
    outline-offset: 2px;
}
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: 'Noto Sans', sans-serif;
    line-height: 1.6;
    color: #333;
    background: linear-gradient(135deg, #1a0000 0%, #330000 50%, #1a0000 100%);
    overflow-x: hidden;
    min-height: 100vh;
}

/* Reduced motion for accessibility */
@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }
    
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

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

/* Casino Style - Eastern Royal Palace Theme */
:root {
    --primary-red: #DC143C;
    --royal-gold: #FFD700;
    --deep-gold: #B8860B;
    --dark-red: #8B0000;
    --black: #000000;
    --white: #FFFFFF;
    --light-gold: #FFF8DC;
    --gradient-primary: linear-gradient(135deg, var(--primary-red), var(--dark-red));
    --gradient-gold: linear-gradient(135deg, var(--royal-gold), var(--deep-gold));
    --shadow-gold: 0 0 20px rgba(255, 215, 0, 0.3);
    --shadow-red: 0 0 20px rgba(220, 20, 60, 0.3);
}

/* Header Styles */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(0, 0, 0, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 2px solid var(--royal-gold);
}

.navbar {
    padding: 1rem 0;
}

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

.nav-logo {
    display: flex;
    align-items: center;
    gap: 12px;
}

.nav-logo img {
    width: 40px;
    height: 40px;
    object-fit: contain;
}

.logo-text {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--royal-gold);
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

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

.nav-menu a {
    text-decoration: none;
    color: var(--white);
    font-weight: 500;
    transition: all 0.3s ease;
    position: relative;
}

.nav-menu a:hover {
    color: var(--royal-gold);
    transform: translateY(-2px);
}

.nav-menu a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--gradient-gold);
    transition: width 0.3s ease;
}

.nav-menu a:hover::after {
    width: 100%;
}

.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    cursor: pointer;
    gap: 4px;
}

.mobile-menu-toggle span {
    width: 25px;
    height: 3px;
    background: var(--royal-gold);
    transition: all 0.3s ease;
}

/* CTA Buttons */
.cta-button {
    display: inline-block;
    text-decoration: none;
    font-weight: 600;
    text-align: center;
    border-radius: 8px;
    transition: all 0.3s ease;
    cursor: pointer;
    border: none;
    text-transform: uppercase;
    letter-spacing: 1px;
    position: relative;
    overflow: hidden;
}

.cta-button::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;
}

.cta-button:hover::before {
    left: 100%;
}

.cta-button.primary {
    background: var(--gradient-primary);
    color: var(--white);
    padding: 12px 24px;
    box-shadow: var(--shadow-red);
    border: 2px solid var(--royal-gold);
}

.cta-button.primary:hover {
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 8px 25px rgba(220, 20, 60, 0.4);
}

.cta-button.secondary {
    background: transparent;
    color: var(--royal-gold);
    padding: 12px 24px;
    border: 2px solid var(--royal-gold);
}

.cta-button.secondary:hover {
    background: var(--royal-gold);
    color: var(--black);
    transform: translateY(-3px);
}

.cta-button.large {
    padding: 16px 32px;
    font-size: 1.1rem;
}

.cta-button.extra-large {
    padding: 20px 40px;
    font-size: 1.2rem;
    border-radius: 12px;
}

/* Hero Section */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    overflow: hidden;
    margin-top: 80px;
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -2;
}

.hero-bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: brightness(0.4);
}

.hero-bg::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, rgba(220, 20, 60, 0.3), rgba(0, 0, 0, 0.5));
}

.hero-content {
    position: relative;
    z-index: 1;
    width: 100%;
}

.hero-text {
    max-width: 800px;
    text-align: center;
    margin: 0 auto;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 700;
    color: var(--white);
    margin-bottom: 1.5rem;
    line-height: 1.2;
    text-shadow: 3px 3px 6px rgba(0, 0, 0, 0.7);
}

.hero-title .highlight {
    color: var(--royal-gold);
    text-shadow: 3px 3px 6px rgba(0, 0, 0, 0.8), 0 0 15px rgba(255, 215, 0, 0.5);
}

.hero-subtitle {
    font-size: 1.3rem;
    color: var(--light-gold);
    margin-bottom: 2rem;
    line-height: 1.6;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7);
}

.hero-cta {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
    margin-bottom: 3rem;
    flex-wrap: wrap;
}

.hero-features {
    display: flex;
    justify-content: center;
    gap: 3rem;
    flex-wrap: wrap;
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--white);
    font-weight: 600;
    background: rgba(0, 0, 0, 0.5);
    padding: 12px 20px;
    border-radius: 25px;
    border: 1px solid var(--royal-gold);
}

.feature-item .icon {
    font-size: 1.2rem;
}

/* Section Styles */
section {
    padding: 80px 0;
    position: relative;
}

section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: repeating-linear-gradient(
        45deg,
        transparent,
        transparent 100px,
        rgba(255, 215, 0, 0.02) 100px,
        rgba(255, 215, 0, 0.02) 101px
    );
    pointer-events: none;
}

.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--royal-gold);
    margin-bottom: 1rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
    position: relative;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 3px;
    background: var(--gradient-gold);
    border-radius: 2px;
}

.section-subtitle {
    font-size: 1.2rem;
    color: var(--light-gold);
    max-width: 800px;
    margin: 0 auto;
    line-height: 1.6;
}

/* Content Blocks */
.content-blocks {
    display: flex;
    flex-direction: column;
    gap: 80px;
}

.content-block {
    display: flex;
    align-items: center;
    gap: 60px;
    background: rgba(0, 0, 0, 0.3);
    padding: 40px;
    border-radius: 15px;
    border: 1px solid var(--royal-gold);
    backdrop-filter: blur(5px);
}

.content-block.right-left {
    flex-direction: row-reverse;
}

.content-block.top-bottom {
    flex-direction: column;
    text-align: center;
}

.content-text {
    flex: 1;
}

.content-text h3 {
    font-size: 1.8rem;
    font-weight: 600;
    color: var(--royal-gold);
    margin-bottom: 1.5rem;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
}

.content-text p {
    font-size: 1.1rem;
    color: var(--white);
    margin-bottom: 1.2rem;
    line-height: 1.7;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
}

.content-image {
    flex: 1;
    max-width: 500px;
}

.content-image img {
    width: 100%;
    height: auto;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    border: 2px solid var(--royal-gold);
}

.cta-link {
    color: var(--royal-gold);
    text-decoration: none;
    font-weight: 600;
    font-size: 1.1rem;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    transition: all 0.3s ease;
}

.cta-link:hover {
    color: var(--white);
    transform: translateX(5px);
}

/* Content Grid */
.content-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-bottom: 50px;
}

.grid-item {
    background: rgba(0, 0, 0, 0.4);
    padding: 30px;
    border-radius: 12px;
    border: 1px solid var(--royal-gold);
    backdrop-filter: blur(5px);
    text-align: center;
    transition: all 0.3s ease;
}

.grid-item:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-gold);
    border-color: var(--white);
}

.grid-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
    filter: drop-shadow(0 0 10px var(--royal-gold));
}

.grid-item h3 {
    font-size: 1.4rem;
    font-weight: 600;
    color: var(--royal-gold);
    margin-bottom: 1rem;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
}

.grid-item p {
    color: var(--white);
    line-height: 1.6;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
}

/* CTA Section */
.cta-section {
    text-align: center;
    margin-top: 50px;
}

/* Specific Section Backgrounds */
.about {
    background: radial-gradient(ellipse at center, rgba(220, 20, 60, 0.1) 0%, transparent 70%);
}

.registration {
    background: radial-gradient(ellipse at center, rgba(255, 215, 0, 0.1) 0%, transparent 70%);
}

.login {
    background: radial-gradient(ellipse at center, rgba(220, 20, 60, 0.1) 0%, transparent 70%);
}

.deposit {
    background: radial-gradient(ellipse at center, rgba(255, 215, 0, 0.1) 0%, transparent 70%);
}

.withdrawal {
    background: radial-gradient(ellipse at center, rgba(220, 20, 60, 0.1) 0%, transparent 70%);
}

.contact {
    background: radial-gradient(ellipse at center, rgba(255, 215, 0, 0.1) 0%, transparent 70%);
}

/* Footer */
.footer {
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.9), rgba(139, 0, 0, 0.3));
    border-top: 2px solid var(--royal-gold);
    padding: 50px 0 20px;
    margin-top: 100px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

.footer-section h3,
.footer-section h4 {
    color: var(--royal-gold);
    margin-bottom: 1rem;
    font-weight: 600;
}

.footer-section p,
.footer-section a {
    color: var(--white);
    text-decoration: none;
    line-height: 1.6;
    transition: color 0.3s ease;
}

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

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

.footer-section ul li {
    margin-bottom: 8px;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 1rem;
}

.footer-logo img {
    width: 40px;
    height: 40px;
}

.footer-cta {
    display: inline-block;
    background: var(--gradient-primary);
    color: var(--white) !important;
    padding: 10px 20px;
    border-radius: 6px;
    margin-top: 1rem;
    border: 1px solid var(--royal-gold);
    transition: all 0.3s ease;
}

.footer-cta:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-red);
}

.footer-bottom {
    border-top: 1px solid var(--royal-gold);
    padding-top: 20px;
    text-align: center;
}

.footer-disclaimer p {
    color: var(--white);
    font-size: 0.9rem;
    margin-bottom: 5px;
}

.age-warning {
    color: var(--royal-gold) !important;
    font-weight: 600;
}

/* Floating CTA */
.floating-cta {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 1000;
    animation: pulse 2s infinite;
}

.float-button {
    display: flex;
    align-items: center;
    gap: 10px;
    background: var(--gradient-primary);
    color: var(--white);
    padding: 15px 25px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    box-shadow: var(--shadow-red);
    border: 2px solid var(--royal-gold);
    transition: all 0.3s ease;
}

.float-button:hover {
    transform: scale(1.1);
    box-shadow: 0 10px 30px rgba(220, 20, 60, 0.5);
}

.float-icon {
    font-size: 1.2rem;
    animation: bounce 1s infinite;
}

@keyframes pulse {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
    100% {
        transform: scale(1);
    }
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateY(0);
    }
    40% {
        transform: translateY(-5px);
    }
    60% {
        transform: translateY(-3px);
    }
}

/* Mobile Responsiveness */
@media (max-width: 768px) {
    .nav-menu {
        display: none;
    }
    
    .mobile-menu-toggle {
        display: flex;
    }
    
    .hero-title {
        font-size: 2.8rem; /* Increased from 2.5rem */
        line-height: 1.1;
        margin-bottom: 1rem;
    }
    
    .hero-subtitle {
        font-size: 1.1rem;
    }
    
    .hero-cta {
        flex-direction: column;
        align-items: center;
    }
    
    .hero-features {
        flex-direction: column;
        gap: 1rem;
    }
    
    .content-block {
        flex-direction: column !important;
        gap: 30px;
        padding: 30px 20px;
    }
    
    .content-grid {
        grid-template-columns: 1fr;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .floating-cta {
        bottom: 10px;
        right: 10px;
        transform: scale(0.9);
    }
    
    .float-button {
        padding: 12px 20px;
        font-size: 0.9rem;
    }
    
    .container {
        padding: 0 15px;
    }
    
    /* Better mobile navigation */
    .nav-menu.active {
        transform: translateX(0);
        transition: transform 0.3s ease;
    }
    
    /* Mobile-first approach improvements */
    .cta-button {
        padding: 14px 28px;
        font-size: 1rem;
        min-height: 48px; /* Touch-friendly */
    }
    
    .grid-item {
        padding: 20px 15px;
    }
    
    /* Trust badges responsive */
    .trust-badges {
        display: flex;
        gap: 10px;
        justify-content: center;
        margin: 15px 0;
    }
    
    .trust-badges img {
        max-width: 50px;
        height: auto;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 2rem;
    }
    
    .hero-subtitle {
        font-size: 1rem;
    }
    
    .section-title {
        font-size: 1.8rem;
    }
    
    .content-text h3 {
        font-size: 1.5rem;
    }
    
    .grid-item {
        padding: 20px;
    }
    
    .cta-button.extra-large {
        padding: 16px 30px;
        font-size: 1rem;
    }
}

/* Loading Animation */
.loading {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s ease;
}

.loading.loaded {
    opacity: 1;
    transform: translateY(0);
}

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

/* High contrast mode support */
@media (prefers-contrast: high) {
    :root {
        --primary-red: #FF0000;
        --royal-gold: #FFFF00;
        --white: #FFFFFF;
        --black: #000000;
    }
    
    .nav-menu a {
        border: 2px solid transparent;
    }
    
    .nav-menu a:hover {
        border-color: var(--royal-gold);
    }
    
    .cta-button {
        border: 2px solid currentColor;
    }
}

/* Responsible gaming styles */
.responsible-gaming {
    background: rgba(220, 20, 60, 0.1);
    border: 1px solid var(--primary-red);
    border-radius: 8px;
    padding: 15px;
    margin: 20px 0;
    text-align: center;
}

.responsible-gaming p {
    margin: 5px 0;
    font-size: 0.9rem;
    color: var(--white);
}

.responsible-gaming a {
    color: var(--royal-gold);
    text-decoration: none;
    font-weight: 600;
}

.responsible-gaming a:hover {
    text-decoration: underline;
}

/* Trust badges styling */
.trust-badges {
    display: flex;
    gap: 15px;
    align-items: center;
    justify-content: flex-start;
    margin: 20px 0;
}

.trust-badges img {
    max-width: 60px;
    height: 40px;
    object-fit: contain;
    filter: brightness(1.1);
    transition: transform 0.3s ease;
}

.trust-badges img:hover {
    transform: scale(1.05);
}

/* Enhanced notification styles */
.notification {
    position: fixed;
    top: 100px;
    right: 20px;
    padding: 15px 20px;
    border-radius: 8px;
    z-index: 10000;
    max-width: 300px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    transform: translateX(100%);
    opacity: 0;
    transition: all 0.3s ease;
    border: 1px solid var(--royal-gold);
}

.notification.show {
    transform: translateX(0);
    opacity: 1;
}

.notification.hide {
    transform: translateX(100%);
    opacity: 0;
}

.notification.success {
    background: var(--gradient-gold);
    color: var(--black);
}

.notification.error {
    background: var(--gradient-primary);
    color: var(--white);
}

.notification.info {
    background: linear-gradient(135deg, var(--primary-red), var(--dark-red));
    color: var(--white);
}

@keyframes slideIn {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

/* Better focus indicators */
button:focus, 
a:focus, 
input:focus {
    outline: 3px solid var(--royal-gold);
    outline-offset: 2px;
    border-radius: 4px;
}

/* Performance optimizations */
.content-image img {
    will-change: transform;
    backface-visibility: hidden;
}

/* Dark mode support */
@media (prefers-color-scheme: dark) {
    .trust-badges img {
        filter: brightness(1.2) contrast(1.1);
    }
}