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

:root {
    --primary-color: #001A6E;
    --secondary-color: #074799;
    --accent-color: #009990;
    --highlight-color: #E1FFBB;
    --text-dark: #333;
    --text-light: #666;
    --white: #fff;
    --gray-light: #f8f9fa;
    --gray: #e9ecef;
    --shadow: 0 2px 10px rgba(0, 26, 110, 0.1);
    --shadow-hover: 0 4px 20px rgba(0, 26, 110, 0.2);
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: var(--text-dark);
    background-color: var(--white);
    overflow-x: hidden;
}

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

h1 { font-size: 2.5rem; }
h2 { font-size: 2rem; }
h3 { font-size: 1.5rem; }
h4 { font-size: 1.25rem; }

p {
    margin-bottom: 1rem;
    color: var(--text-light);
}

a {
    color: var(--accent-color);
    text-decoration: none;
    transition: color 0.3s ease;
}

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

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

/* Header and Navigation */
.header {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    box-shadow: var(--shadow);
}

.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: var(--white);
    font-size: 1.8rem;
    margin: 0;
}

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

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

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

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

/* Mobile Menu Styles */
.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: space-around;
    width: 30px;
    height: 30px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
    z-index: 1001;
    position: relative;
}

.mobile-menu-toggle:focus {
    outline: 2px solid var(--accent-color);
    outline-offset: 2px;
    border-radius: 4px;
}

.hamburger-line {
    width: 100%;
    height: 3px;
    background-color: var(--white);
    border-radius: 2px;
    transition: all 0.3s ease;
    transform-origin: center;
}

/* Mobile Menu Toggle Animation */
.mobile-menu-toggle.active .hamburger-line:nth-child(1) {
    transform: rotate(45deg) translate(6px, 6px);
}

.mobile-menu-toggle.active .hamburger-line:nth-child(2) {
    opacity: 0;
}

.mobile-menu-toggle.active .hamburger-line:nth-child(3) {
    transform: rotate(-45deg) translate(6px, -6px);
}

/* Enhanced Mobile Menu Animations */
.nav-menu {
    transition: right 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.nav-menu.active {
    animation: slideInRight 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

/* Menu Item Hover Effects - Desktop Only */
@media (min-width: 769px) {
    .nav-menu a {
        position: relative;
        overflow: hidden;
    }
    
    .nav-menu a::before {
        content: '';
        position: absolute;
        left: 0;
        top: 0;
        height: 100%;
        width: 0;
        background: linear-gradient(90deg, var(--accent-color), transparent);
        transition: width 0.3s ease;
        z-index: -1;
    }
    
    .nav-menu a:hover::before {
        width: 100%;
    }
}

/* Mobile Menu Overlay Animation */
.nav-menu::before {
    transition: opacity 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Mobile Menu Responsive Design */
@media (max-width: 768px) {
    .mobile-menu-toggle {
        display: flex;
    }
    
    .nav-menu {
        position: relative;
        flex-direction: column;
        justify-content: flex-start;
        align-items: flex-start;
        padding: 80px 2rem 2rem;
        gap: 0;
        margin: 0;
        list-style: none;
        width: 100%;
        height: auto;
        background: none;
        box-shadow: none;
        z-index: auto;
        overflow: visible;
    }
    
    .nav-menu li {
        width: 100%;
        margin: 0;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
        list-style: none;
        position: relative;
        z-index: 2;
    }
    
    .nav-menu li:last-child {
        border-bottom: none;
    }
    
    .nav-menu li:first-child {
        margin-top: 0;
    }
    
    .nav-menu a {
        display: block;
        padding: 1rem 0;
        width: 100%;
        border-radius: 0;
        font-size: 1.1rem;
        border-left: 3px solid transparent;
        transition: all 0.3s ease;
        color: var(--white);
        text-decoration: none;
        font-weight: 500;
        line-height: 1.4;
        position: relative;
        z-index: 2;
        text-align: left;
    }
    
    .nav-menu a:hover {
        background-color: rgba(255, 255, 255, 0.1);
        color: var(--highlight-color);
        border-left-color: var(--accent-color);
        padding-left: 1rem;
        transform: translateX(5px);
    }
    
    .nav-menu a:focus {
        outline: 2px solid var(--accent-color);
        outline-offset: 2px;
        background-color: rgba(255, 255, 255, 0.1);
        color: var(--highlight-color);
    }
    
    .nav-menu a:active {
        background-color: rgba(255, 255, 255, 0.2);
        transform: translateX(3px);
    }
    
    .nav-buttons {
        display: none;
    }
    
    /* Mobile Menu Container */
    .mobile-menu-container {
        position: fixed;
        top: 0;
        right: -100%;
        width: 280px;
        height: 100vh;
        background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
        z-index: 1000;
        transition: right 0.3s cubic-bezier(0.4, 0, 0.2, 1);
        box-shadow: -5px 0 15px rgba(0, 0, 0, 0.3);
        overflow: hidden;
        transform: translateX(0);
        display: flex; /* Show on mobile by default */
        flex-direction: column;
        animation: none;
    }
    
    .mobile-menu-container.active {
        right: 0;
        animation: slideInRight 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    }
    
    @keyframes slideInRight {
        from {
            transform: translateX(100%);
            opacity: 0;
        }
        to {
            transform: translateX(0);
            opacity: 1;
        }
    }
    
    /* Mobile Menu Overlay */
    .mobile-menu-container::before {
        content: '';
        position: fixed;
        top: 0;
        left: 0;
        width: 100vw;
        height: 100vh;
        background: rgba(0, 0, 0, 0.5);
        z-index: -1;
        opacity: 0;
        transition: opacity 0.3s ease;
        pointer-events: none;
    }
    
    .mobile-menu-container.active::before {
        opacity: 1;
    }
    
    /* Add overlay behind mobile menu */
    .mobile-menu-overlay {
        position: fixed;
        top: 0;
        left: 0;
        width: 100vw;
        height: 100vh;
        background: rgba(0, 0, 0, 0.5);
        z-index: 999;
        opacity: 0;
        transition: opacity 0.3s ease;
        pointer-events: none;
    }
    
    .mobile-menu-overlay.active {
        opacity: 1;
        pointer-events: auto;
    }
    
    /* Mobile Menu Close Button */
    .close-menu {
        position: absolute;
        top: 20px;
        right: 2rem;
        background: none;
        border: none;
        color: var(--white);
        font-size: 1.5rem;
        cursor: pointer;
        padding: 0.5rem;
        border-radius: 50%;
        transition: all 0.3s ease;
        z-index: 1002;
        min-width: 44px;
        min-height: 44px;
        display: flex;
        align-items: center;
        justify-content: center;
        background-color: rgba(255, 255, 255, 0.1);
        border-radius: 50%;
    }
    
    .close-menu:hover {
        background-color: rgba(255, 255, 255, 0.1);
        color: var(--highlight-color);
        transform: scale(1.1);
    }
    
    .close-menu:focus {
        outline: 2px solid var(--accent-color);
        outline-offset: 2px;
    }
    
    /* Mobile Navigation Menu Styling */
    .mobile-nav-menu {
        padding: 80px 2rem 2rem;
        margin: 0;
        list-style: none;
        width: 100%;
        height: auto;
        background: none;
        box-shadow: none;
        z-index: auto;
        overflow: visible;
        position: relative;
        flex: 1;
        display: flex;
        flex-direction: column;
        justify-content: flex-start;
        gap: 0;
        margin-bottom: 0;
    }
    
    .mobile-nav-menu li {
        width: 100%;
        margin: 0 0 8px 0;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
        list-style: none;
        position: relative;
        z-index: 2;
        background: rgba(255, 255, 255, 0.05);
        border-radius: 5px;
        overflow: hidden;
    }
    
    .mobile-nav-menu li:last-child {
        border-bottom: none;
    }
    
    .mobile-nav-menu li:first-child {
        margin-top: 0;
    }
    
    .mobile-nav-menu li:last-child {
        margin-bottom: 0;
    }
    
    .mobile-nav-menu a {
        display: block;
        padding: 1rem 1rem;
        width: 100%;
        border-radius: 0;
        font-size: 1.1rem;
        border-left: 3px solid transparent;
        transition: all 0.3s ease;
        color: var(--white);
        text-decoration: none;
        font-weight: 600;
        line-height: 1.4;
        position: relative;
        z-index: 2;
        text-align: left;
        background: none;
        outline: none;
        box-shadow: none;
        -webkit-appearance: none;
        -moz-appearance: none;
        appearance: none;
        content: none;
        margin: 0;
        box-sizing: border-box;
        text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
    }
    
    .mobile-nav-menu a:hover {
        background-color: rgba(255, 255, 255, 0.15);
        color: var(--highlight-color);
        border-left-color: var(--accent-color);
        padding-left: 1.5rem;
        transform: translateX(5px);
        box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    }
    
    .mobile-nav-menu a:focus {
        outline: 2px solid var(--accent-color);
        outline-offset: 2px;
        background-color: rgba(255, 255, 255, 0.15);
        color: var(--highlight-color);
        box-shadow: 0 0 0 3px rgba(0, 153, 144, 0.3);
    }
    
    .mobile-nav-menu a:active {
        background-color: rgba(255, 255, 255, 0.25);
        transform: translateX(3px);
        box-shadow: 0 1px 5px rgba(0, 0, 0, 0.2);
    }
    
    /* Remove any pseudo-element content that might cause duplicate text */
    .mobile-nav-menu a::before,
    .mobile-nav-menu a::after {
        content: none !important;
        display: none !important;
    }
    
    /* Mobile Navigation Buttons Styling */
    .mobile-nav-buttons {
        padding: 2rem;
        margin-top: auto;
        display: flex;
        flex-direction: column;
        gap: 1rem;
        border-top: 1px solid rgba(255, 255, 255, 0.1);
        background: rgba(0, 0, 0, 0.1);
        position: relative;
        z-index: 2;
    }
    
    .mobile-nav-buttons .btn {
        width: 100%;
        padding: 1rem 1.5rem;
        font-size: 1.1rem;
        font-weight: 600;
        text-align: center;
        border-radius: 8px;
        transition: all 0.3s ease;
        text-decoration: none;
        display: flex;
        align-items: center;
        justify-content: center;
        min-height: 48px;
    }
    
    .mobile-nav-buttons .btn-login {
        background: linear-gradient(135deg, var(--accent-color), var(--secondary-color));
        color: var(--white);
        border: none;
        box-shadow: 0 4px 15px rgba(0, 153, 144, 0.3);
    }
    
    .mobile-nav-buttons .btn-login:hover {
        background: linear-gradient(135deg, var(--secondary-color), var(--primary-color));
        transform: translateY(-2px);
        box-shadow: 0 6px 20px rgba(0, 26, 110, 0.4);
    }
    
    .mobile-nav-buttons .btn-register {
        background: linear-gradient(135deg, var(--highlight-color), var(--accent-color));
        color: var(--primary-color);
        border: 2px solid var(--highlight-color);
        box-shadow: 0 4px 15px rgba(225, 255, 187, 0.3);
    }
    
    .mobile-nav-buttons .btn-register:hover {
        background: linear-gradient(135deg, var(--accent-color), var(--highlight-color));
        color: var(--white);
        border-color: var(--accent-color);
        transform: translateY(-2px);
        box-shadow: 0 6px 20px rgba(0, 153, 144, 0.4);
    }
    
    .mobile-nav-buttons .btn:active {
        transform: translateY(0);
    }
    
    .mobile-nav-buttons .btn:focus {
        outline: 2px solid var(--accent-color);
        outline-offset: 2px;
    }
    
    /* Enhanced mobile nav buttons styling */
    .mobile-nav-buttons .btn {
        position: relative;
        overflow: hidden;
    }
    
    .mobile-nav-buttons .btn::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;
    }
    
    .mobile-nav-buttons .btn:hover::before {
        left: 100%;
    }
        align-items: center;
        justify-content: center;
    }
    
    .nav-menu .close-menu:hover {
        background-color: rgba(255, 255, 255, 0.1);
        color: var(--highlight-color);
        transform: scale(1.1);
    }
    
    .nav-menu .close-menu:focus {
        outline: 2px solid var(--accent-color);
        outline-offset: 2px;
    }
}

/* Tablet Responsive Design */
@media (max-width: 1024px) and (min-width: 769px) {
    .nav-menu {
        gap: 1rem;
    }
    
    .nav-menu a {
        padding: 0.4rem 0.8rem;
        font-size: 0.95rem;
    }
    
    .nav-buttons {
        gap: 0.8rem;
    }
    
    .btn {
        padding: 0.6rem 1.2rem;
        font-size: 0.95rem;
    }
}

/* Small Mobile Devices */
@media (max-width: 480px) {
    .mobile-menu-container {
        width: 100vw;
        right: -100vw;
    }
    
    .mobile-menu-container.active {
        right: 0;
    }
    
    .close-menu {
        right: 1rem;
    }
    
    .nav-container {
        padding: 0 15px;
    }
    
    .nav-logo h1 {
        font-size: 1.5rem;
    }
    
    .mobile-menu-toggle {
        width: 28px;
        height: 28px;
    }
    
    .hamburger-line {
        height: 2.5px;
    }
    
    .mobile-nav-buttons {
        padding: 1.5rem;
    }
    
    .mobile-nav-buttons .btn {
        padding: 0.8rem 1.2rem;
        font-size: 1rem;
        min-height: 44px;
    }
}

    /* Touch Device Optimizations */
    @media (hover: none) and (pointer: coarse) {
        .mobile-menu-toggle {
            min-height: 44px;
            min-width: 44px;
        }
        
        .nav-menu a {
            min-height: 44px;
            display: flex;
            align-items: center;
        }
        
        .close-menu {
            min-height: 44px;
            min-width: 44px;
            display: flex;
            align-items: center;
            justify-content: center;
        }
        
        .mobile-nav-menu a {
            min-height: 44px;
            display: flex;
            align-items: center;
        }
        
        .mobile-nav-buttons .btn {
            min-height: 44px;
            display: flex;
            align-items: center;
            justify-content: center;
        }
    }

/* High DPI Display Support */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
    .hamburger-line {
        border-radius: 1px;
    }
}

/* Landscape Mobile Optimization */
@media (max-width: 768px) and (orientation: landscape) {
    .mobile-nav-menu {
        padding-top: 60px;
    }
    
    .close-menu {
        top: 15px;
    }
    
    .mobile-nav-buttons {
        padding: 1.5rem;
    }
    
    .mobile-nav-buttons .btn {
        padding: 0.8rem 1.2rem;
        min-height: 44px;
    }
}

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

.btn-primary {
    background: linear-gradient(135deg, var(--accent-color), var(--secondary-color));
    color: var(--white);
    box-shadow: var(--shadow);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-hover);
    color: var(--white);
}

.btn-secondary {
    background: var(--secondary-color);
    color: var(--white);
    border: 2px solid var(--secondary-color);
}

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

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

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

.btn-register {
    background-color: var(--highlight-color);
    color: var(--primary-color);
}

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

.btn-login-large, .btn-register-large {
    padding: 1rem 2rem;
    font-size: 1.1rem;
    margin-top: 1rem;
}

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

/* Hero Section */
.hero-section {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: var(--white);
    padding: 4rem 0;
    min-height: 80vh;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
}

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

.hero-content h1 {
    color: var(--white);
    font-size: 3rem;
    margin-bottom: 1.5rem;
}

.hero-content p {
    color: var(--highlight-color);
    font-size: 1.2rem;
    margin-bottom: 2rem;
}

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

.hero-image img {
    width: 100%;
    height: auto;
    border-radius: 10px;
    box-shadow: var(--shadow-hover);
    transition: all 0.3s ease;
}

.hero-image:hover img {
    transform: scale(1.02) rotate(1deg);
    box-shadow: 0 15px 40px rgba(0,0,0,0.4);
}

/* Hero Section Animations */
.hero-content h1 {
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUp 1s ease-out 0.3s forwards;
    position: relative;
}

.hero-content p {
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUp 1s ease-out 0.6s forwards;
}

.hero-buttons {
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUp 1s ease-out 0.9s forwards;
}

/* Scroll-triggered animations */
.hero-content.animate-in h1,
.hero-content.animate-in p,
.hero-content.animate-in .hero-buttons {
    animation: none;
    opacity: 1;
    transform: translateY(0);
    transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.hero-image.animate-in {
    animation: none;
    opacity: 1;
    transform: translateX(0) scale(1);
    transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.hero-buttons .btn {
    transform: scale(1);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.hero-buttons .btn:hover {
    transform: scale(1.05);
    box-shadow: 0 8px 25px rgba(0,0,0,0.3);
}

.hero-buttons .btn:active {
    transform: scale(0.98);
}

.hero-image {
    opacity: 0;
    transform: translateX(30px) scale(0.9);
    animation: fadeInRight 1s ease-out 1.2s forwards;
}

/* Floating particles animation */
.hero-section::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: 
        radial-gradient(circle at 20% 80%, rgba(255,255,255,0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(255,255,255,0.1) 0%, transparent 50%),
        radial-gradient(circle at 40% 40%, rgba(255,255,255,0.05) 0%, transparent 50%);
    animation: particleFloat 15s ease-in-out infinite;
    pointer-events: none;
}

/* Shimmer effect on hero content */
.hero-content h1::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    animation: shimmer 3s ease-in-out infinite;
}

/* Pulse animation for CTA buttons */
.hero-buttons .btn-primary {
    animation: pulse 2s ease-in-out infinite;
}

.hero-buttons .btn-primary:hover {
    animation: none;
}

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

section h2 {
    text-align: center;
    margin-bottom: 3rem;
    font-size: 2.5rem;
}

/* Features Section */
.features-section {
    background-color: var(--gray-light);
}

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

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

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

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

/* Login and Register Sections */
.login-section, .register-section {
    background: linear-gradient(135deg, var(--accent-color), var(--secondary-color));
    color: var(--white);
}

.login-section h2, .register-section h2 {
    color: var(--white);
}

.login-section p, .register-section p {
    color: var(--highlight-color);
}

/* Large Button Styles */
.btn-login-large, .btn-register-large {
    display: inline-block;
    padding: 1.2rem 2.5rem;
    font-size: 1.2rem;
    font-weight: 600;
    text-decoration: none;
    border-radius: 50px;
    text-align: center;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    min-width: 200px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
    border: 2px solid transparent;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.btn-login-large {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: var(--white);
    border-color: rgba(255, 255, 255, 0.3);
}

.btn-register-large {
    background: linear-gradient(135deg, var(--accent-color), var(--highlight-color));
    color: var(--primary-color);
    border-color: rgba(0, 26, 110, 0.3);
}

/* Hover Effects */
.btn-login-large:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 15px 35px rgba(0, 26, 110, 0.4);
    border-color: rgba(255, 255, 255, 0.5);
    color: var(--white);
}

.btn-register-large:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 15px 35px rgba(0, 153, 144, 0.4);
    border-color: rgba(0, 26, 110, 0.5);
    color: var(--primary-color);
}

/* Active States */
.btn-login-large:active, .btn-register-large:active {
    transform: translateY(-1px) scale(0.98);
    transition: all 0.1s ease;
}

/* Focus States */
.btn-login-large:focus, .btn-register-large:focus {
    outline: 3px solid var(--highlight-color);
    outline-offset: 3px;
    box-shadow: 0 0 0 6px rgba(225, 255, 187, 0.3);
}

/* Shimmer Effect */
.btn-login-large::before, .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-login-large:hover::before, .btn-register-large:hover::before {
    left: 100%;
}

/* Responsive Design */
@media (max-width: 768px) {
    .btn-login-large, .btn-register-large {
        padding: 1rem 2rem;
        font-size: 1.1rem;
        min-width: 180px;
    }
}

@media (max-width: 480px) {
    .btn-login-large, .btn-register-large {
        padding: 0.9rem 1.8rem;
        font-size: 1rem;
        min-width: 160px;
        border-radius: 40px;
    }
}

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

/* About Section */
.about-section {
    background-color: var(--white);
}

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

/* Games Section */
.games-section {
    background-color: var(--gray-light);
}

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

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

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

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

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

.game-card h3 {
    color: var(--primary-color);
}

/* Benefits Section */
.benefits-section {
    background-color: var(--white);
}

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

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

.benefit-item h3 {
    color: var(--accent-color);
}

/* Testimonials Section */
.testimonials-section {
    background-color: var(--gray-light);
}

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

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

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

.testimonial-author {
    color: var(--accent-color);
    font-weight: 600;
}

/* Stats Section */
.stats-section {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: var(--white);
}

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

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

.stat-item {
    text-align: center;
}

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

.stat-item p {
    color: var(--white);
    font-size: 1.1rem;
}

/* CTA Section */
.cta-section {
    background-color: var(--highlight-color);
    text-align: center;
}

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

.cta-section p {
    color: var(--text-dark);
    font-size: 1.2rem;
    margin-bottom: 2rem;
}

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

/* Footer */
.footer {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    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(--highlight-color);
    margin-bottom: 1rem;
}

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

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

.footer-section a {
    color: var(--white);
    transition: color 0.3s ease;
}

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

.social-links {
    display: flex;
    gap: 1rem;
}

.social-links a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    transition: all 0.3s ease;
    text-decoration: none;
    color: var(--white);
    font-size: 1.2rem;
}

.social-links a:hover {
    background-color: var(--accent-color);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 153, 144, 0.3);
}

.social-links a.facebook {
    background: linear-gradient(135deg, #1877f2, #0d6efd);
}

.social-links a.twitter {
    background: linear-gradient(135deg, #1da1f2, #0ea5e9);
}

.social-links a.instagram {
    background: linear-gradient(135deg, #e4405f, #f77737);
}

.social-links a.youtube {
    background: linear-gradient(135deg, #ff0000, #cc0000);
}

.social-links a.telegram {
    background: linear-gradient(135deg, #0088cc, #229ed9);
}

.social-links a.whatsapp {
    background: linear-gradient(135deg, #25d366, #128c7e);
}

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

.footer-bottom p {
    color: var(--highlight-color);
    margin: 0;
}

/* Responsive Design */
@media (max-width: 768px) {
    .nav-menu {
        display: none;
    }
    
    .hero-container {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .hero-content h1 {
        font-size: 2rem;
    }
    
    .hero-content p {
        font-size: 1rem;
    }
    
    .hero-buttons {
        justify-content: center;
    }
    
    .cta-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .features-grid,
    .games-grid,
    .benefits-grid,
    .testimonials-grid,
    .stats-grid {
        grid-template-columns: 1fr;
    }
    
    section {
        padding: 2rem 0;
    }
    
    section h2 {
        font-size: 2rem;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 15px;
    }
    
    .nav-container {
        padding: 0 15px;
    }
    
    .hero-content h1 {
        font-size: 1.8rem;
    }
    
    .btn {
        padding: 0.6rem 1.2rem;
        font-size: 0.9rem;
    }
}

/* Accessibility Improvements */
@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 */
.btn:focus,
a:focus,
.nav-menu a:focus {
    outline: 2px solid var(--highlight-color);
    outline-offset: 2px;
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    :root {
        --text-light: #000;
        --gray-light: #fff;
    }
}

/* About Us Page Specific Styles */
.about-section .feature-card,
.about-section .benefit-item,
.about-section .testimonial-card {
    transition: all 0.3s ease;
}

.about-section .feature-card:hover,
.about-section .benefit-item:hover,
.about-section .testimonial-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
}

/* Social Links Enhanced Hover Effects */
.social-links a {
    transition: all 0.3s ease;
}

.social-links a:hover {
    transform: translateY(-3px) scale(1.1);
    box-shadow: 0 6px 20px rgba(0, 153, 144, 0.4);
}

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

@keyframes fadeInRight {
    from {
        opacity: 0;
        transform: translateX(30px) scale(0.9);
    }
    to {
        opacity: 1;
        transform: translateX(0) scale(1);
    }
}

@keyframes particleFloat {
    0%, 100% {
        transform: translateY(0px) rotate(0deg);
    }
    25% {
        transform: translateY(-20px) rotate(90deg);
    }
    50% {
        transform: translateY(-40px) rotate(180deg);
    }
    75% {
        transform: translateY(-20px) rotate(270deg);
    }
}

@keyframes shimmer {
    0% {
        left: -100%;
    }
    100% {
        left: 100%;
    }
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(255, 255, 255, 0.7);
    }
    50% {
        transform: scale(1.05);
        box-shadow: 0 0 0 10px rgba(255, 255, 255, 0);
    }
}

@keyframes float {
    0%, 100% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-20px);
    }
}

/* Mobile Menu Visibility Control */
@media (min-width: 769px) {
    /* Hide on desktop */
    .mobile-menu-container,
    .mobile-menu-overlay {
        display: none !important;
        visibility: hidden !important;
        opacity: 0 !important;
        pointer-events: none !important;
    }
}

@media (max-width: 768px) {
    /* Show on mobile */
    .mobile-menu-container {
        display: flex !important;
        visibility: visible !important;
        opacity: 1 !important;
        pointer-events: auto !important;
    }
    
    /* Mobile menu overlay - properly configured for mobile */
    .mobile-menu-overlay {
        display: block !important;
        /* Keep original overlay behavior - hidden by default, visible when active */
        opacity: 0 !important;
        pointer-events: none !important;
        transition: opacity 0.3s ease;
    }
    
    /* Only show overlay when mobile menu is active */
    .mobile-menu-overlay.active {
        opacity: 1 !important;
        pointer-events: auto !important;
    }
}

/* Button Hover Enhancements */
.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0,0,0,0.2);
}

/* Card Hover Effects */
.feature-card:hover,
.game-card:hover,
.testimonial-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
}

/* Smooth Transitions */
* {
    transition: all 0.3s ease;
}

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