/* Reset and base styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary: #6366f1;
    --primary-dark: #4f46e5;
    --secondary: #f3f4f6;
    --text-dark: #1f2937;
    --text-light: #6b7280;
    --background: #ffffff;
    --border: #e5e7eb;
    --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --radius: 8px;
    --transition: all 0.3s ease;
}

body {
    font-family: 'Inter', sans-serif;
    color: var(--text-dark);
    background-color: var(--background);
    line-height: 1.6;
}

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

/* Grid system */
.grid {
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    gap: 20px;
}

.grid-col-1 { grid-column: span 1; }
.grid-col-2 { grid-column: span 2; }
.grid-col-3 { grid-column: span 3; }
.grid-col-4 { grid-column: span 4; }
.grid-col-5 { grid-column: span 5; }
.grid-col-6 { grid-column: span 6; }
.grid-col-7 { grid-column: span 7; }
.grid-col-8 { grid-column: span 8; }
.grid-col-9 { grid-column: span 9; }
.grid-col-10 { grid-column: span 10; }
.grid-col-11 { grid-column: span 11; }
.grid-col-12 { grid-column: span 12; }

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

h1 {
    font-size: 3.5rem;
    margin-bottom: 1.5rem;
}

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

h3 {
    font-size: 1.5rem;
    margin-bottom: 0.75rem;
}

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

/* Buttons */
.btn {
    display: inline-block;
    padding: 12px 24px;
    border-radius: var(--radius);
    font-weight: 600;
    text-align: center;
    cursor: pointer;
    transition: var(--transition);
    border: none;
    font-size: 1rem;
}

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

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

.btn-secondary {
    background-color: var(--secondary);
    color: var(--text-dark);
}

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

.btn-small {
    padding: 8px 16px;
    font-size: 0.9rem;
}

/* Header */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background-color: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    z-index: 1000;
    padding: 1rem 0;
}

.header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo h1 {
    font-size: 1.8rem;
    margin: 0;
    color: var(--primary);
}

.logo-img {
    height: 40px;
    width: auto;
    margin-right: 10px;
    vertical-align: middle;
}

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

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

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

.header-cta .btn {
    padding: 10px 20px;
}

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

.mobile-menu-toggle span {
    width: 25px;
    height: 3px;
    background-color: var(--text-dark);
    margin: 3px 0;
    transition: var(--transition);
}

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

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

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

/* Cookie consent popup */
.cookie-popup {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background-color: white;
    border-radius: var(--radius);
    box-shadow: var(--shadow-lg);
    padding: 1.5rem;
    max-width: 400px;
    z-index: 1500;
    display: none;
    animation: slideUp 0.5s ease-out;
}

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

.cookie-content {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.cookie-text h3 {
    margin-bottom: 0.5rem;
    color: var(--text-dark);
}

.cookie-text p {
    margin-bottom: 0;
    color: var(--text-light);
    font-size: 0.9rem;
}

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

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

.cookie-buttons {
    display: flex;
    gap: 1rem;
    justify-content: flex-end;
}

.cookie-buttons .btn {
    padding: 8px 16px;
    font-size: 0.9rem;
}

/* Mobile menu styles */
.nav.mobile-active {
    display: block !important;
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background-color: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    padding: 1rem 0;
    animation: slideDown 0.3s ease-out;
    z-index: 1000;
}

.nav.mobile-active ul {
    flex-direction: column;
    gap: 0;
}

.nav.mobile-active ul li {
    margin: 0;
}

.nav.mobile-active ul li a {
    display: block;
    padding: 1rem 2rem;
    border-bottom: 1px solid #e5e7eb;
}

.nav.mobile-active ul li:last-child a {
    border-bottom: none;
}

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

/* Hero Section */
.hero {
    padding: 120px 0 80px;
    min-height: 100vh;
    display: flex;
    align-items: center;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    position: relative;
}

.hero::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.60);
    z-index: -1;
}

.hero .container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: center;
    position: relative;
    z-index: 1;
}

.hero-content h1 {
    font-size: 3.5rem;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    color: white;
}

.hero-content p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    max-width: 90%;
    color: rgba(255, 255, 255, 0.9);
}

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

/* Scroll Down Arrow */
.scroll-down {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 2;
}

.arrow-down {
    display: block;
    width: 30px;
    height: 30px;
    position: relative;
    text-decoration: none;
    margin: 0 auto;
}

.arrow-down::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 20px;
    height: 20px;
    border-bottom: 3px solid white;
    border-right: 3px solid white;
    transform: rotate(45deg);
    animation: bounce 2s infinite;
}

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

.macbook-mockup {
    position: relative;
    width: 100%;
    max-width: 600px;
    margin: 0 auto;
}

.macbook-mockup::before {
    content: "";
    position: absolute;
    width: 100%;
    height: 80%;
    background: #f3f4f6;
    border-radius: 20px;
    top: 10%;
    box-shadow: var(--shadow-lg);
    z-index: 1;
}

.screen {
    position: relative;
    width: 85%;
    height: 75%;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 10px;
    margin: 0 auto;
    top: 12.5%;
    overflow: hidden;
    z-index: 2;
    box-shadow: inset 0 0 20px rgba(0, 0, 0, 0.2);
    border: 10px solid #1f2937;
}

.game-preview {
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, #ff9a9e 0%, #fad0c4 100%);
    position: relative;
    overflow: hidden;
}

.game-preview::before {
    content: "";
    position: absolute;
    width: 150%;
    height: 40%;
    background: rgba(255, 255, 255, 0.1);
    top: 30%;
    left: -25%;
    transform: rotate(-20deg);
}

/* Popular Games Section */
.popular-games {
    padding: 80px 0;
    background-color: #f9fafb;
}

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

.section-header h2 {
    margin-bottom: 0.5rem;
}

.filters {
    display: flex;
    justify-content: center;
    margin-bottom: 2rem;
}

.filter-group {
    display: flex;
    gap: 1rem;
    background: white;
    padding: 0.5rem;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}

.filter-btn {
    background: none;
    border: none;
    padding: 0.5rem 1rem;
    border-radius: var(--radius);
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition);
}

.filter-btn.active,
.filter-btn:hover {
    background-color: var(--primary);
    color: white;
}

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

.game-card {
    background: white;
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
    position: relative;
}

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

.game-image {
    height: 200px;
    background: linear-gradient(45deg, #a78bfa 0%, #ec4899 100%);
    position: relative;
    display: flex;
    align-items: flex-start;
    justify-content: flex-end;
    padding: 1rem;
    overflow: hidden;
}

.game-thumbnail {
    width: 100%;
    height: 100%;
    object-fit: cover;
    position: absolute;
    top: 0;
    left: 0;
}

.tag {
    background: rgba(255, 255, 255, 0.9);
    color: var(--primary);
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    z-index: 1;
}

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

.game-card p {
    padding: 0 1rem;
    margin: 0;
    font-size: 0.9rem;
}

.game-card .btn {
    margin: 1rem;
    width: calc(100% - 2rem);
}

/* How It Works Section */
.how-it-works {
    padding: 80px 0;
}

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

.step {
    text-align: center;
    padding: 2rem;
    border-radius: var(--radius);
    transition: var(--transition);
}

.step:hover {
    background-color: #f9fafb;
}

.step-icon {
    width: 60px;
    height: 60px;
    background: var(--primary);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: 700;
    margin: 0 auto 1.5rem;
}

/* Rewards Section */
.rewards {
    padding: 80px 0;
    background-color: #f9fafb;
}

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

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

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

.reward-icon {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

/* Community Section */
.community {
    padding: 80px 0;
}

.community-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin: 3rem 0;
    text-align: center;
}

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

.testimonials {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
    margin: 3rem 0;
}

.testimonial {
    background: white;
    padding: 2rem;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    position: relative;
}

.testimonial::before {
    content: '"';
    position: absolute;
    top: 10px;
    left: 10px;
    font-size: 4rem;
    color: var(--primary);
    opacity: 0.2;
    font-family: serif;
    line-height: 1;
}

.testimonial-author {
    margin-top: 1rem;
    font-weight: 600;
}

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

.social-link {
    display: inline-block;
    padding: 12px 24px;
    background: var(--primary);
    color: white;
    text-decoration: none;
    border-radius: var(--radius);
    font-weight: 600;
    transition: var(--transition);
}

.social-link:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
}

/* FAQ Section */
.faq {
    padding: 80px 0;
    background-color: #f9fafb;
}

.faq-items {
    max-width: 800px;
    margin: 3rem auto 0;
}

.faq-item {
    background: white;
    padding: 1.5rem;
    border-radius: var(--radius);
    margin-bottom: 1rem;
    box-shadow: var(--shadow);
}

.faq-item h3 {
    margin-bottom: 0.5rem;
    color: var(--text-dark);
}

/* Footer */
.footer {
    background: var(--text-dark);
    color: white;
    padding: 4rem 0 2rem;
}

.footer-content {
    display: grid;
    grid-template-columns: 2fr 3fr;
    gap: 3rem;
    margin-bottom: 3rem;
}

.footer-logo h2 {
    color: white;
    margin-bottom: 1rem;
}

.footer-logo p {
    color: #d1d5db;
    margin-bottom: 1rem;
}

.footer-logo .disclaimer {
    font-size: 0.8rem;
    margin-bottom: 0.5rem;
}

.footer-links {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.footer-column h4 {
    color: white;
    margin-bottom: 1rem;
}

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

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

.footer-column a {
    color: #d1d5db;
    text-decoration: none;
    transition: var(--transition);
}

.footer-column a:hover {
    color: white;
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 2rem;
    border-top: 1px solid #374151;
}

.age-icon {
    background: #ef4444;
    color: white;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 0.8rem;
}

.responsible-gaming-logos {
    display: flex;
    gap: 1rem;
    align-items: center;
    justify-content: center;
    flex: 1;
    flex-wrap: wrap;
}

.responsible-gaming-logo {
    height: 40px;
    width: auto;
    max-width: 100%;
    object-fit: contain;
}

.copyright p {
    color: #9ca3af;
    font-size: 0.9rem;
}

/* Game Detail Page */
.game-detail {
    padding: 120px 0 80px;
}

.game-header {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    margin-bottom: 2rem;
    text-align: center;
}

.game-info h1 {
    text-align: center;
}

.game-description {
    text-align: center;
    margin: 0 auto 1rem;
    max-width: 700px;
}

.game-meta {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
}

.game-iframe-container {
    height: 500px;
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    position: relative;
    margin: 2rem auto;
    width: 100%;
    max-width: 960px;
}

.game-iframe {
    width: 100%;
    height: 100%;
    border: none;
}

.game-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    margin: 3rem 0;
}

.game-features ul {
    list-style: none;
}

.game-features li {
    padding: 0.75rem 0;
    border-bottom: 1px solid var(--border);
}

.game-features li:last-child {
    border-bottom: none;
}

.game-rules p {
    margin-bottom: 1.5rem;
}

.disclaimer-section {
    background: #fef3c7;
    border-radius: var(--radius);
    padding: 2rem;
    text-align: center;
    margin-bottom: 3rem;
}

.disclaimer-box h3 {
    color: #92400e;
    margin-bottom: 1rem;
}

.disclaimer-box p {
    color: #92400e;
    margin: 0;
}

/* Contact Section */
.contact-section {
    padding: 80px 0;
    background-color: #f9fafb;
}

.contact-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    margin-top: 3rem;
}

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

.contact-details {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.contact-item h4 {
    margin-bottom: 0.5rem;
    color: var(--primary);
}

.contact-item p {
    margin: 0;
    color: var(--text-light);
}

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

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

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

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    font-family: 'Inter', sans-serif;
    font-size: 1rem;
    transition: var(--transition);
    background-color: white;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1);
}

/* Legal Pages */
.legal-page {
    padding: 120px 0 80px;
}

.legal-content h2 {
    margin-top: 2rem;
    margin-bottom: 1rem;
    padding-top: 1rem;
}

.legal-content h3 {
    margin-top: 1.5rem;
    margin-bottom: 0.5rem;
}

.legal-content ul {
    margin-left: 1.5rem;
    margin-bottom: 1rem;
}

.legal-content li {
    margin-bottom: 0.5rem;
}

.faq-page {
    padding: 120px 0 80px;
}

/* Disclaimer Page */
.disclaimer-page {
    padding: 120px 0 80px;
    text-align: center;
}

.age-icon-large {
    display: flex;
    justify-content: center;
    margin-bottom: 2rem;
}

.age-icon-large .age-icon {
    width: 80px;
    height: 80px;
    font-size: 1.5rem;
}

.disclaimer-content h2 {
    margin-bottom: 1rem;
}

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

@media (max-width: 768px) {
    .disclaimer-actions {
        flex-direction: column;
        gap: 1rem;
    }
    
    .disclaimer-actions .btn {
        width: 100%;
    }
}

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

.modal-content {
    background: white;
    padding: 2rem;
    border-radius: var(--radius);
    max-width: 500px;
    width: 90%;
    text-align: center;
    box-shadow: var(--shadow-lg);
}

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

/* Animations */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.hero-content, .section-header {
    animation: fadeIn 0.8s ease-out;
}

/* Responsive Design */
@media (max-width: 992px) {
    h1 {
        font-size: 2.8rem;
    }
    
    .hero .container {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .hero-content p {
        max-width: 100%;
        margin: 0 auto 2rem;
    }
    
    .hero-buttons {
        justify-content: center;
    }
    
    .steps {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .community-stats {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .testimonials {
        grid-template-columns: 1fr;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .footer-links {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 768px) {
    .nav {
        display: none;
    }
    
    .mobile-menu-toggle {
        display: flex;
    }
    
    .filters {
        overflow-x: auto;
        justify-content: flex-start;
    }
    
    .filter-group {
        min-width: max-content;
    }
    
    .contact-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .games-grid {
        grid-template-columns: 1fr;
    }
    
    .footer-links {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .footer-bottom {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }
    
    .responsible-gaming-logos {
        order: 2;
        width: 100%;
        justify-content: center;
    }
    
    .copyright {
        order: 3;
        width: 100%;
    }
    
    .age-icon {
        order: 1;
    }
}

@media (max-width: 576px) {
    .container {
        padding: 0 15px;
    }
    
    h1 {
        font-size: 2.2rem;
    }
    
    h2 {
        font-size: 2rem;
    }
    
    .hero {
        padding: 100px 0 60px;
    }
    
    .hero-buttons {
        flex-direction: column;
        gap: 1rem;
    }
    
    .btn {
        width: 100%;
    }
    
    .popular-games, .how-it-works, .rewards, .community, .faq {
        padding: 60px 0;
    }
}