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

:root {
    --primary-gradient: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    --secondary-gradient: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    --accent-gradient: linear-gradient(45deg, #ff6b6b, #4ecdc4, #45b7d1);
    --dark-gradient: linear-gradient(45deg, #2c3e50, #34495e);
    --text-primary: #333;
    --text-secondary: #666;
    --text-light: #bdc3c7;
    --white: #ffffff;
    --overlay: rgba(0, 0, 0, 0.8);
    --glass: rgba(255, 255, 255, 0.95);
    --shadow-light: 0 2px 20px rgba(0, 0, 0, 0.1);
    --shadow-medium: 0 10px 30px rgba(0, 0, 0, 0.3);
    --shadow-heavy: 0 20px 40px rgba(0, 0, 0, 0.1);
    --border-radius: 15px;
    --border-radius-large: 20px;
    --transition: all 0.3s ease;
    --font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
    font-family: var(--font-family);
    line-height: 1.6;
    color: var(--text-primary);
    background: var(--primary-gradient);
    background-attachment: fixed;
    overflow-x: hidden;
}

/* Scrollbar Styling */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.1);
}

::-webkit-scrollbar-thumb {
    background: var(--accent-gradient);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(45deg, #ff5252, #3dd5f3, #2196f3);
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    margin-bottom: 1rem;
}

h1 {
    font-size: clamp(2.5rem, 5vw, 3.5rem);
    line-height: 1.2;
}

h2 {
    font-size: clamp(2rem, 4vw, 2.5rem);
    line-height: 1.3;
}

h3 {
    font-size: clamp(1.5rem, 3vw, 1.8rem);
    line-height: 1.4;
}

p {
    margin-bottom: 1rem;
    font-size: 1.1rem;
    line-height: 1.7;
}

/* Navigation Styles */
.navbar {
    background: var(--glass);
    -webkit-backdrop-filter: blur(20px);
    backdrop-filter: blur(20px);
    padding: 1rem 0;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    box-shadow: var(--shadow-light);
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
    transition: var(--transition);
}

.navbar.scrolled {
    background: rgba(255, 255, 255, 0.98);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.15);
}

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

.logo {
    font-size: 2.2rem;
    font-weight: 800;
    background: var(--accent-gradient);
    background-size: 200% 200%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: gradientShift 3s ease-in-out infinite;
    transition: var(--transition);
    cursor: pointer;
}

.logo:hover {
    transform: scale(1.05);
}

@keyframes gradientShift {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 2.5rem;
    align-items: center;
}

.nav-links li {
    position: relative;
}

.nav-links a {
    text-decoration: none;
    color: var(--text-primary);
    font-weight: 600;
    font-size: 1rem;
    padding: 0.5rem 1rem;
    border-radius: 25px;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.nav-links a::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: var(--accent-gradient);
    transition: var(--transition);
    z-index: -1;
    border-radius: 25px;
    display:none;
}

.nav-links a:hover::before {
    left: 0;
    display: flex;
}

.nav-links a:hover {
    color: white;
    transform: translateY(-2px);
}

/* Mobile Menu */
.mobile-menu {
    display: none;
    flex-direction: column;
    gap: 0.4rem;
    cursor: pointer;
    padding: 0.5rem;
    border-radius: 8px;
    transition: var(--transition);
}

.mobile-menu:hover {
    background: rgba(102, 126, 234, 0.1);
}

.mobile-menu span {
    width: 25px;
    height: 3px;
    background: var(--text-primary);
    transition: var(--transition);
    border-radius: 2px;
}

.mobile-menu.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

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

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

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 6rem 2rem 2rem;
    position: relative;
    overflow: hidden;
    background-size: cover;
    background-repeat: no-repeat;
    background-position: center;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('hero.svg');
    opacity: 0.3;
    animation: float 20s ease-in-out infinite;
    background-size: cover;
    background-repeat: no-repeat;
    background-position: center;

}

@keyframes float {
    0%, 100% { transform: translateY(0px) translateX(0px); }
    25% { transform: translateY(-10px) translateX(5px); }
    50% { transform: translateY(0px) translateX(-5px); }
    75% { transform: translateY(10px) translateX(0px); }
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 900px;
    animation: fadeInUp 1s ease-out;
}

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

.hero h1 {
    color: white;
    text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.3);
    margin-bottom: 1.5rem;
    animation: slideInDown 1s ease-out 0.3s both;
}

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

.hero p {
    font-size: 1.3rem;
    margin-bottom: 2.5rem;
    color: rgba(255, 255, 255, 0.9);
    text-shadow: 1px 1px 4px rgba(0, 0, 0, 0.2);
    animation: slideInUp 1s ease-out 0.6s both;
}

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

/* Section Styles */
.section {
    padding: 5rem 2rem;
    position: relative;
}

.section.white {
    background: white;
}

.section.light {
    background: #f8f9fa;
}

.section.gradient {
    background: var(--secondary-gradient);
    color: white;
}

/* Disclaimer Card Section */
.disclaimer-section {
    display: flex;
    justify-content: center;
    align-items: center;
    background:var(--text-light);
    padding-top: 0;
    padding-bottom: 0;
}

.disclaimer-section .container {
    max-width: 600px;
    width: 100%;
    background: var(--glass);
    border-radius: var(--border-radius-large);
    box-shadow: var(--shadow-medium);
    padding: 3rem 2rem;
    margin: 3rem 0;
    border: 1px solid rgba(102, 126, 234, 0.15);
}

.disclaimer-section .section-title {
    color: #ff6b6b;
    font-size: 2rem;
    margin-bottom: 1.5rem;
}

.disclaimer-text p {
    color: var(--text-secondary);
    font-size: 1.15rem;
    line-height: 1.7;
    text-align: center;
    margin-bottom: 0;
}

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

.section-title {
    text-align: center;
    margin-bottom: 4rem;
    font-size: 2.8rem;
    color: var(--text-primary);
    position: relative;
    display: inline-block;
    width: 100%;
}

.section.gradient .section-title {
    color: white;
}

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

/* About Section */
.about-section {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.about-text h3 {
    font-size: 2rem;
    margin-bottom: 1.5rem;
    color: #667eea;
    position: relative;
}

.about-text h3::before {
    content: '';
    position: absolute;
    left: -20px;
    top: 50%;
    transform: translateY(-50%);
    width: 4px;
    height: 30px;
    background: var(--accent-gradient);
    border-radius: 2px;
}

.about-text p {
    color: var(--text-secondary);
    font-size: 1.1rem;
    line-height: 1.8;
}

.about-image {
    height: 300px;
    background: url('about.svg');
    border-radius: var(--border-radius-large);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-secondary);
    font-size: 1.1rem;
    border: 2px dashed rgba(102, 126, 234, 0.3);
    transition: var(--transition);
}

.about-image:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-medium);
}

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

.feature-card {
    background: var(--primary-gradient);
    padding: 3rem 2rem;
    border-radius: var(--border-radius-large);
    text-align: center;
    color: white;
    position: relative;
    overflow: hidden;
    transition: var(--transition);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.feature-card::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.1) 0%, transparent 70%);
    transition: var(--transition);
    transform: scale(0);
}

.feature-card:hover::before {
    transform: scale(1);
}

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

.feature-card h4 {
    font-size: 1.8rem;
    margin-bottom: 1.5rem;
    position: relative;
    z-index: 2;
}

.feature-card p {
    font-size: 1.1rem;
    line-height: 1.6;
    position: relative;
    z-index: 2;
    opacity: 0.9;
}

/* Games Section */
.games-section {
    background: var(--primary-gradient);
    color: white;
    position: relative;
    overflow: hidden;
}

.games-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--primary-gradient);
    opacity: 0.5;
}

.games-container {
    display: grid;
    grid-template-columns: 1fr;
    gap: 3rem;
    max-width: 900px;
    margin: 0 auto;
    position: relative;
    z-index: 2;
}

.game-wrapper {
    position: relative;
    border-radius: var(--border-radius-large);
    overflow: hidden;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.4);
    transition: var(--transition);
    background: white;
}

.game-wrapper:hover {
    transform: translateY(-5px);
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.5);
}

.game-frame {
    width: 100%;
    aspect-ratio: 16/9;
    border: none;
    display: block;
    background: white;
}

/* Page Header Styles */
.page-header {
    text-align: center;
    padding: 3rem 2rem;
    color: white;
    position: relative;
}

.page-header h1 {
    font-size: 3.5rem;
    margin-bottom: 1.5rem;
    text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.3);
}

.page-header p {
    font-size: 1.3rem;
    opacity: 0.9;
    text-shadow: 1px 1px 4px rgba(0, 0, 0, 0.2);
}

/* Main Content Styles */
.main-content {
    padding-top: 6rem;
    min-height: 100vh;
}

/* Contact Form Styles */
.contact-container {
    background: var(--glass);
    -webkit-backdrop-filter: blur(20px);
    backdrop-filter: blur(20px);
    padding: 4rem;
    border-radius: var(--border-radius-large);
    box-shadow: var(--shadow-heavy);
    max-width: 700px;
    width: 100%;
    border: 1px solid rgba(255, 255, 255, 0.2);
    margin-left: auto;
    margin-right: auto;
}

.contact-header {
    text-align: center;
    margin-bottom: 3rem;
}

.contact-header h1 {
    font-size: 3rem;
    margin-bottom: 1rem;
    color: var(--text-primary);
}

.contact-header p {
    color: var(--text-secondary);
    font-size: 1.2rem;
}

.form-group {
    margin-bottom: 2rem;
    position: relative;
}

.form-group label {
    display: block;
    margin-bottom: 0.8rem;
    font-weight: 600;
    color: var(--text-primary);
    font-size: 1.1rem;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 1rem 1.2rem;
    border: 2px solid #e1e8ed;
    border-radius: 12px;
    font-size: 1rem;
    font-family: var(--font-family);
    transition: var(--transition);
    background: white;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
    transform: translateY(-2px);
}

.form-group textarea {
    resize: vertical;
    min-height: 150px;
    line-height: 1.6;
}

.submit-btn {
    background: var(--primary-gradient);
    color: white;
    padding: 1.2rem 3rem;
    border: none;
    border-radius: 50px;
    cursor: pointer;
    font-size: 1.1rem;
    font-weight: 600;
    width: 100%;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.submit-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: var(--transition);
}

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

.submit-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(102, 126, 234, 0.4);
}

.contact-info {
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid #e1e8ed;
    text-align: center;
}

.contact-info h3 {
    margin-bottom: 1.5rem;
    color: var(--text-primary);
}

.contact-info p {
    color: var(--text-secondary);
    margin-bottom: 0.8rem;
    font-size: 1.1rem;
}

/* Content Container for Legal Pages */
.content-container {
    background: var(--glass);
    -webkit-backdrop-filter: blur(20px);
    backdrop-filter: blur(20px);
    padding: 4rem;
    border-radius: var(--border-radius-large);
    box-shadow: var(--shadow-heavy);
    max-width: 900px;
    margin: 0 auto;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.content-container .page-header {
    color: var(--text-primary);
    padding: 0 0 2rem 0;
}

.content-container .page-header h1 {
    color: var(--text-primary);
    text-shadow: none;
}

.content-container .page-header p {
    color: var(--text-secondary);
    text-shadow: none;
}

.content-container .section {
    padding: 0;
    margin-bottom: 3rem;
}

.content-container .section h2 {
    font-size: 1.8rem;
    margin-bottom: 1.5rem;
    color: var(--text-primary);
    border-bottom: 3px solid #667eea;
    padding-bottom: 0.8rem;
    position: relative;
}

.content-container .section h2::after {
    content: '';
    position: absolute;
    bottom: -3px;
    left: 0;
    width: 50px;
    height: 3px;
    background: var(--accent-gradient);
}

.content-container .section p {
    margin-bottom: 1.5rem;
    color: var(--text-secondary);
    font-size: 1.1rem;
    line-height: 1.8;
}

.content-container .section ul {
    margin-left: 2rem;
    margin-bottom: 1.5rem;
}

.content-container .section li {
    margin-bottom: 0.8rem;
    color: var(--text-secondary);
    font-size: 1.1rem;
    line-height: 1.6;
}

/* Important Notice Styling */
.important-notice {
    background: linear-gradient(135deg, #ff6b6b, #ee5a52);
    color: white;
    padding: 3rem;
    border-radius: var(--border-radius-large);
    margin-bottom: 3rem;
    text-align: center;
    position: relative;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(255, 107, 107, 0.3);
}

.important-notice::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.1) 0%, transparent 70%);
    animation: pulse 3s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); opacity: 0.1; }
    50% { transform: scale(1.1); opacity: 0.2; }
}

.important-notice h2 {
    font-size: 2.2rem;
    margin-bottom: 1.5rem;
    position: relative;
    z-index: 2;
}

.important-notice p {
    font-size: 1.3rem;
    font-weight: 500;
    position: relative;
    z-index: 2;
    line-height: 1.6;
}

/* Footer Styles */
.footer {
    background: var(--dark-gradient);
    color: white;
    padding: 4rem 2rem 1rem;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: var(--accent-gradient);
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 3rem;
    margin-bottom: 3rem;
}

.footer-section {
    text-align: left;
}

.footer-section h4 {
    margin-bottom: 1.5rem;
    color: #ecf0f1;
    font-size: 1.4rem;
    position: relative;
}

.footer-section h4::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 30px;
    height: 2px;
    background: var(--accent-gradient);
}

.footer-section p,
.footer-section a {
    color: var(--text-light);
    text-decoration: none;
    margin-bottom: 0.8rem;
    display: block;
    font-size: 1rem;
    line-height: 1.6;
    transition: var(--transition);
}

.footer-section a:hover {
    color: #ecf0f1;
    transform: translateX(5px);
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 2rem;
    font-size: 0.95rem;
    color: #95a5a6;
}

.disclaimer-notice {
    background: rgba(52, 73, 94, 0.8);
    padding: 1rem;
    font-size: 0.9rem;
    margin-top: 1.5rem;
    border-radius: 8px;
    border-left: 4px solid #ff6b6b;
}

/* Modal Styles */
.modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: var(--overlay);
    -webkit-backdrop-filter: blur(5px);
    backdrop-filter: blur(5px);
}

.modal-content {
    background: white;
    margin: 10% auto;
    padding: 3rem;
    border-radius: var(--border-radius-large);
    width: 90%;
    max-width: 500px;
    text-align: center;
    position: relative;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.3);
    animation: modalSlideIn 0.3s ease-out;
}

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: translateY(-50px) scale(0.9);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.modal-content h3 {
    margin-bottom: 1.5rem;
    color: var(--text-primary);
    font-size: 1.8rem;
}

.modal-content p {
    margin-bottom: 2rem;
    color: var(--text-secondary);
    font-size: 1.1rem;
    line-height: 1.6;
}

.btn {
    background: var(--primary-gradient);
    color: white;
    padding: 1rem 2.5rem;
    border: none;
    border-radius: 50px;
    cursor: pointer;
    font-size: 1.1rem;
    font-weight: 600;
    margin: 0.5rem;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.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: var(--transition);
}

.btn:hover::before {
    left: 100%;
}

.btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(102, 126, 234, 0.4);
}

/* Responsive Design */
@media (max-width: 992px) {
    .nav-container {
        padding: 0 1.5rem;
    }
    
    .about-grid {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
    
    .features-grid {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
        gap: 2rem;
    }
    
    .section {
        padding: 4rem 1.5rem;
    }
}

@media (max-width: 768px) {
    .nav-links {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: white;
        flex-direction: column;
        gap: 0;
        padding: 1rem 0;
        box-shadow: var(--shadow-medium);
        border-radius: 0 0 15px 15px;
    }
    
    .nav-links.active {
        display: flex;
    }
    
    .nav-links li {
        width: 100%;
        text-align: center;
    }
    
    .nav-links a {
        display: block;
        padding: 1rem 2rem;
        border-radius: 0;
    }

    .mobile-menu {
        display: flex;
    }

    .hero {
        padding: 8rem 1rem 3rem;
    }

    .section {
        padding: 3rem 1rem;
    }

    .contact-container {
        margin: 1rem;
        padding: 2.5rem;
    }

    .content-container {
        margin: 1rem;
        padding: 2.5rem;
    }

    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 2rem;
    }
    
    .footer-section {
        text-align: center;
    }
    
    .footer-section h4::after {
        left: 50%;
        transform: translateX(-50%);
    }

    .games-container {
        gap: 2rem;
    }

    .modal-content {
        margin: 20% auto;
        padding: 2rem;
    }
}

@media (max-width: 480px) {
    .nav-container {
        padding: 0 1rem;
    }
    
    .hero {
        padding: 7rem 0.5rem 2rem;
    }
    
    .section {
        padding: 2.5rem 0.5rem;
    }
    
    .contact-container,
    .content-container {
        margin: 0.5rem;
        padding: 2rem;
    }
    
    .games-container {
        gap: 1.5rem;
    }
    
    .feature-card {
        padding: 2rem 1.5rem;
    }
}

/* Loading Animation */
.loading {
    opacity: 0;
    animation: fadeIn 0.5s ease-in forwards;
}

@keyframes fadeIn {
    to {
        opacity: 1;
    }
}

/* Smooth Scroll */
html {
    scroll-behavior: smooth;
}

/* Focus Styles for Accessibility */
*:focus {
    outline: 2px solid #667eea;
    outline-offset: 2px;
}

/* High Contrast Mode Support */
@media (prefers-contrast: high) {
    :root {
        --text-primary: #000;
        --text-secondary: #333;
    }
}

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