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

:root {
    --primary-color: #4a90e2;
    --secondary-color: #50c878;
    --warning-color: #ff6b6b;
    --text-color: #333;
    --bg-color: #f8f9fa;
    --white: #ffffff;
    --border-color: #e0e0e0;
    --disclaimer-bg: #fff3cd;
    --disclaimer-border: #ffc107;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--bg-color);
}

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

.hidden {
    display: none !important;
}

/* Header */
.header {
    background-color: var(--white);
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    position: sticky;
    top: 0;
    z-index: 100;
}

.header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 20px;
}

.logo {
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--primary-color);
}

.logo a {
    text-decoration: none;
    color: inherit;
}

.nav {
    display: flex;
    gap: 1.5rem;
}

.nav a {
    text-decoration: none;
    color: var(--text-color);
    font-weight: 500;
    transition: color 0.3s;
}

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

/* Critical Disclaimer Banner */
.disclaimer-banner {
    background-color: var(--disclaimer-bg);
    border-bottom: 3px solid var(--disclaimer-border);
    padding: 1rem 0;
    position: relative;
    z-index: 99;
}

.disclaimer-content {
    text-align: center;
    padding: 0.5rem;
}

.disclaimer-content h3 {
    color: #856404;
    margin-bottom: 0.5rem;
    font-size: 1.1rem;
}

.disclaimer-content p {
    color: #856404;
    font-size: 0.95rem;
    margin: 0.25rem 0;
}

.disclaimer-content strong {
    font-weight: 700;
}

/* Age Verification Modal */
.modal {
    display: flex;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.7);
    justify-content: center;
    align-items: center;
}

.modal-content {
    background-color: var(--white);
    padding: 2rem;
    border-radius: 8px;
    max-width: 500px;
    width: 90%;
    text-align: center;
    box-shadow: 0 4px 20px rgba(0,0,0,0.3);
}

.modal-content h2 {
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.warning-text {
    color: var(--warning-color);
    font-weight: bold;
    font-size: 1.1rem;
    margin-bottom: 1rem;
}

.disclaimer-text {
    font-size: 0.85rem;
    color: #666;
    margin-top: 1rem;
    font-style: italic;
}

.button-group {
    display: flex;
    gap: 1rem;
    justify-content: center;
    margin-top: 1.5rem;
}

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

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

.btn-primary:hover {
    background-color: #357abd;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
}

.btn-secondary {
    background-color: #6c757d;
    color: var(--white);
}

.btn-secondary:hover {
    background-color: #5a6268;
}

/* Hero Section */
.hero {
    background: linear-gradient(135deg, var(--primary-color) 0%, #357abd 100%);
    color: var(--white);
    padding: 4rem 0;
    text-align: center;
}

.hero h1 {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.subtitle {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    opacity: 0.9;
}

.hero-description {
    font-size: 1.1rem;
    margin-bottom: 2rem;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

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

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

section h2 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 2rem;
    color: var(--text-color);
}

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

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

.login-feature-card {
    background: var(--white);
    padding: 2rem;
    border-radius: 8px;
    border-left: 4px solid var(--primary-color);
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    transition: transform 0.3s, box-shadow 0.3s;
}

.login-feature-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.login-feature-card h3 {
    color: var(--primary-color);
    margin-bottom: 1rem;
    font-size: 1.3rem;
}

.login-feature-card p {
    color: var(--text-color);
    line-height: 1.6;
}

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

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

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

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

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

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

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

.game-card {
    background: var(--bg-color);
    padding: 2rem;
    border-radius: 8px;
    border: 2px solid var(--border-color);
    text-align: center;
}

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

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

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

.compliance-item {
    background: var(--white);
    padding: 1.5rem;
    border-radius: 8px;
    border-left: 4px solid var(--secondary-color);
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.compliance-item h3 {
    color: var(--secondary-color);
    margin-bottom: 0.5rem;
    font-size: 1.1rem;
}

/* Responsible Gaming Section */
.responsible-gaming {
    background-color: var(--white);
}

.intro-text {
    text-align: center;
    font-size: 1.1rem;
    margin-bottom: 2rem;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.responsible-list {
    max-width: 800px;
    margin: 0 auto 2rem;
    list-style-position: inside;
}

.responsible-list li {
    margin-bottom: 0.5rem;
    padding-left: 1rem;
}

.resources {
    background: #e8f5e9;
    padding: 2rem;
    border-radius: 8px;
    max-width: 800px;
    margin: 0 auto;
}

.resources h3 {
    color: var(--secondary-color);
    margin-bottom: 1rem;
}

.resources ul {
    list-style-position: inside;
    margin-top: 1rem;
}

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

.resources a:hover {
    text-decoration: underline;
}

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

.about p {
    margin-bottom: 1rem;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    text-align: left;
}

.about ul {
    max-width: 800px;
    margin: 0 auto;
    text-align: left;
    list-style-position: inside;
}

.about li {
    margin-bottom: 0.5rem;
}

/* Legal Pages */
.legal-page {
    padding: 2rem 0;
    background-color: var(--white);
    min-height: calc(100vh - 200px);
}

.legal-page h1 {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
    color: var(--primary-color);
}

.last-updated {
    color: #666;
    font-style: italic;
    margin-bottom: 2rem;
}

.legal-section {
    margin-bottom: 2.5rem;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

.legal-section h2 {
    color: var(--primary-color);
    font-size: 1.8rem;
    margin-bottom: 1rem;
    text-align: left;
}

.legal-section h3 {
    color: var(--text-color);
    font-size: 1.3rem;
    margin-top: 1rem;
    margin-bottom: 0.5rem;
}

.legal-section p {
    margin-bottom: 1rem;
    line-height: 1.8;
}

.legal-section ul {
    margin-left: 2rem;
    margin-bottom: 1rem;
}

.legal-section li {
    margin-bottom: 0.5rem;
    line-height: 1.6;
}

.critical-notice {
    background-color: var(--disclaimer-bg);
    border: 3px solid var(--disclaimer-border);
    padding: 2rem;
    border-radius: 8px;
    margin-top: 3rem;
    text-align: center;
}

.critical-notice h3 {
    color: #856404;
    margin-bottom: 1rem;
    font-size: 1.5rem;
}

.critical-notice p {
    color: #856404;
    font-size: 1.1rem;
    font-weight: 600;
}

/* Footer */
.footer {
    background-color: #2c3e50;
    color: var(--white);
    padding: 3rem 0 1rem;
    margin-top: 3rem;
}

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

.footer-section h3 {
    margin-bottom: 1rem;
    color: var(--white);
}

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

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

.footer-section a {
    color: #bdc3c7;
    text-decoration: none;
    transition: color 0.3s;
}

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

.footer-disclaimer {
    font-size: 0.9rem;
    margin-top: 0.5rem;
    color: #ecf0f1;
}

.footer-disclaimers {
    list-style: none;
    padding: 0;
}

.footer-bottom {
    border-top: 1px solid #34495e;
    padding-top: 2rem;
    text-align: center;
}

.footer-bottom p {
    margin-bottom: 0.5rem;
    color: #bdc3c7;
}

.critical-disclaimer {
    font-size: 0.95rem;
    font-weight: 600;
    color: #ffc107 !important;
    margin-top: 1rem !important;
}

/* Responsive Design */
@media (max-width: 768px) {
    .nav {
        flex-direction: column;
        gap: 0.5rem;
    }

    .hero h1 {
        font-size: 2rem;
    }

    .subtitle {
        font-size: 1.2rem;
    }

    section h2 {
        font-size: 2rem;
    }

    .cta-buttons {
        flex-direction: column;
        align-items: center;
    }

    .button-group {
        flex-direction: column;
    }

    .modal-content {
        padding: 1.5rem;
    }
}

/* Contact Modal Styles */
.contact-modal-content {
    position: relative;
    text-align: left;
    max-width: 900px;
    width: 95%;
    padding: 0;
}

.contact-modal-columns {
    display: grid;
    grid-template-columns: 200px 1fr 200px;
    gap: 1rem;
    align-items: start;
    padding: 2rem;
}

.contact-column {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.contact-column-left,
.contact-column-right {
    min-height: 100%;
}

.contact-column-middle {
    text-align: center;
    padding: 0 1rem;
}

.contact-column-middle h2 {
    margin-bottom: 1rem;
    color: var(--primary-color);
}
/* Contact Modal Scrollable on Mobile */
#contactModal {
    overflow-y: auto;
    -webkit-overflow-scrolling: touch; /* Smooth scrolling on iOS */
}

.contact-gif {
    width: 100%;
    height: auto;
    max-width: 200px;
    border-radius: 8px;
    object-fit: contain;
}

@media (max-width: 768px) {
    #contactModal {
        align-items: flex-start; /* Align to top on mobile */
        padding: 1rem 0;
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
    }
    
    #contactModal .modal-content {
        max-height: 92vh;
        overflow-y: auto;
        margin: 1rem;
        -webkit-overflow-scrolling: touch;
    }
    
    .contact-modal-columns {
        grid-template-columns: 1fr 1fr;
        grid-template-rows: auto 1fr;
        gap: 1rem;
        padding: 1rem;
    }
    
    .contact-column-left {
        grid-column: 1;
        grid-row: 1;
        display: flex;
        justify-content: center;
    }
    
    .contact-column-right {
        grid-column: 2;
        grid-row: 1;
        display: flex;
        justify-content: center;
    }
    
    .contact-column-middle {
        grid-column: 1 / -1;
        grid-row: 2;
        padding: 0;
    }
    
    .contact-gif {
        max-width: 120px;
        width: 100%;
    }
    
    .contact-modal-content {
        max-width: 95%;
    }
    
    .form-input-row {
        gap: 0.5rem;
    }
    
    .btn-submit {
        padding: 0.75rem 1rem;
        font-size: 0.9rem;
    }
}

.close-btn {
    position: absolute;
    right: 15px;
    top: 15px;
    font-size: 28px;
    font-weight: bold;
    color: #aaa;
    cursor: pointer;
    line-height: 20px;
    transition: color 0.3s;
    z-index: 1001;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 50%;
    width: 35px;
    height: 35px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
}

.close-btn:hover {
    color: var(--text-color);
    background: rgba(255, 255, 255, 1);
}

.contact-description {
    margin-bottom: 1.5rem;
    color: #666;
    text-align: center;
}

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

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

.required {
    color: var(--warning-color);
}

.form-input-row {
    display: flex;
    gap: 1rem;
    align-items: flex-start;
}

.mobile-input-wrapper {
    flex: 1;
    min-width: 0;
}

.submit-button-wrapper {
    display: flex;
    align-items: flex-start;
    padding-top: 0;
}

.form-group input[type="tel"] {
    width: 100%;
    padding: 0.75rem;
    border: 2px solid var(--border-color);
    border-radius: 5px;
    font-size: 1rem;
    transition: border-color 0.3s;
}

.form-group input[type="tel"]:focus {
    outline: none;
    border-color: var(--primary-color);
}

.form-group input[type="tel"].error {
    border-color: var(--warning-color);
}

.form-group input[type="tel"].valid {
    border-color: var(--secondary-color);
}

.error-message {
    display: block;
    color: var(--warning-color);
    font-size: 0.85rem;
    margin-top: 0.5rem;
    min-height: 20px;
}

.success-message {
    display: block;
    color: var(--secondary-color);
    font-size: 0.85rem;
    margin-top: 0.5rem;
    min-height: 20px;
}

.btn-submit {
    white-space: nowrap;
    padding: 0.75rem 1.5rem;
    margin-top: 0;
    height: fit-content;
}

.success-message-box {
    background-color: #d4edda;
    border: 1px solid #c3e6cb;
    color: #155724;
    padding: 1rem;
    border-radius: 5px;
    margin-top: 1rem;
    text-align: center;
}

.error-message-box {
    background-color: #f8d7da;
    border: 1px solid #f5c6cb;
    color: #721c24;
    padding: 1rem;
    border-radius: 5px;
    margin-top: 1rem;
    text-align: center;
}

/* Hindi Offer Banner */
.hindi-offer-banner {
    background: linear-gradient(135deg, #ff6b6b 0%, #ff8e53 100%);
    border-radius: 8px;
    padding: 0.5rem;
    margin-bottom: 1.5rem;
    color: white;
    box-shadow: 0 4px 15px rgba(255, 107, 107, 0.3);
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% {
        box-shadow: 0 4px 15px rgba(255, 107, 107, 0.3);
    }
    50% {
        box-shadow: 0 4px 25px rgba(255, 107, 107, 0.5);
    }
}

.offer-title {
    color: white;
    font-size: 1.5rem;
    margin-bottom: 1rem;
    text-align: center;
    font-weight: bold;
}

.offer-list {
    list-style: none;
    padding: 0;
    margin: 0 0 0 0;
}

.offer-list li {
    padding: 0;
    font-size: 1.1rem;
    line-height: 1.6;
    color: white;
}

.offer-list li strong {
    font-weight: 700;
}

.offer-subtitle {
    text-align: center;
    font-size: 1rem;
    margin-top: 1rem;
    font-weight: 600;
    color: white;
    font-style: italic;
}

/* mobile responsive */
@media (max-width: 768px) {
    .contact-modal-content {
        max-width: 95%;
    }
}

/* desktop responsive */
@media (min-width: 769px) {
    .contact-modal-content {
        max-width: 75%;
    }
}
