* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-blue: #3b82f6;
    --primary-green: #22c55e;
    --dark-bg: #0f172a;
    --darker-bg: #020617;
    --card-bg: #1e293b;
    --text-white: #f8fafc;
    --text-gray: #cbd5e1;
    --border-color: rgba(59, 130, 246, 0.2);
    --glow-blue: rgba(59, 130, 246, 0.4);
    --glow-green: rgba(34, 197, 94, 0.4);
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    background: var(--dark-bg);
    color: var(--text-white);
    line-height: 1.6;
    overflow-x: hidden;
}

/* Animated Background */
.stars-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    background: linear-gradient(135deg, #0f172a 0%, #020617 50%, #1e293b 100%);
}

.stars-bg::before {
    content: '';
    position: absolute;
    width: 2px;
    height: 2px;
    background: white;
    box-shadow:
        100px 200px #fff, 300px 100px #fff, 500px 300px #fff,
        700px 150px #fff, 900px 250px #fff, 200px 400px #fff,
        400px 500px #fff, 600px 450px #fff, 800px 550px #fff,
        150px 600px #fff, 350px 650px #fff, 550px 700px #fff,
        750px 750px #fff, 950px 800px #fff, 250px 50px #fff;
    animation: twinkle 3s infinite;
}

@keyframes twinkle {
    0%, 100% { opacity: 0.3; }
    50% { opacity: 1; }
}

/* Header/Navigation */
header {
    background: rgba(2, 6, 23, 0.8);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border-color);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    padding: 1rem 0;
}

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

.logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    text-decoration: none;
    color: var(--text-white);
}

.logo-icon {
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, var(--primary-blue), var(--primary-green));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 1.2rem;
    animation: float 3s ease-in-out infinite;
}

.logo-img {
    width: 40px;
    height: 40px;
    object-fit: contain;
    animation: float 3s ease-in-out infinite;
}

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

.logo-text {
    font-size: 1.5rem;
    font-weight: bold;
    background: linear-gradient(135deg, var(--primary-blue), var(--primary-green));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

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

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

.nav-links a:hover,
.nav-links a.active {
    color: var(--text-white);
    text-shadow: 0 0 10px var(--glow-blue);
}

.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    color: var(--text-white);
    font-size: 1.5rem;
    cursor: pointer;
}

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

.hero::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, var(--glow-blue) 0%, transparent 70%);
    opacity: 0.1;
    animation: pulse 8s ease-in-out infinite;
}

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

.hero-content {
    max-width: 900px;
    z-index: 1;
}

.hero h1 {
    font-size: clamp(2.5rem, 6vw, 5rem);
    margin-bottom: 1.5rem;
    line-height: 1.2;
    background: linear-gradient(135deg, var(--text-white), var(--primary-green));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: fadeInUp 1s ease-out;
}

.hero p {
    font-size: clamp(1rem, 2vw, 1.25rem);
    color: var(--text-gray);
    margin-bottom: 2rem;
    animation: fadeInUp 1s ease-out 0.2s backwards;
}

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

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 1rem 2rem;
    border: none;
    border-radius: 50px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    text-decoration: none;
    position: relative;
    overflow: hidden;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary-blue), var(--primary-green));
    color: white;
    box-shadow: 0 10px 30px rgba(59, 130, 246, 0.3);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 40px rgba(59, 130, 246, 0.5);
}

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

.btn-secondary:hover {
    background: var(--primary-blue);
    transform: translateY(-3px);
}

/* Section Styles */
section {
    padding: 5rem 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.section-title {
    font-size: clamp(2rem, 4vw, 3rem);
    text-align: center;
    margin-bottom: 3rem;
    background: linear-gradient(135deg, var(--text-white), var(--primary-green));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Game Cards */
.games-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

.game-card {
    background: var(--card-bg);
    border-radius: 20px;
    overflow: hidden;
    transition: all 0.3s;
    border: 1px solid var(--border-color);
    position: relative;
}

.game-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 50px rgba(59, 130, 246, 0.3);
    border-color: var(--primary-blue);
}

.game-card-image {
    width: 100%;
    height: 250px;
    object-fit: cover;
    transition: transform 0.3s;
}

.game-card:hover .game-card-image {
    transform: scale(1.1);
}

.game-card-content {
    padding: 1.5rem;
}

.game-card-title {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--text-white);
}

.game-card-description {
    color: var(--text-gray);
    margin-bottom: 1.5rem;
}

/* Show More Section */
.show-more-section {
    text-align: center;
    padding: 3rem 0;
}

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

.feature-card {
    text-align: center;
    padding: 2rem;
    background: var(--card-bg);
    border-radius: 15px;
    border: 1px solid var(--border-color);
    transition: all 0.3s;
}

.feature-card:hover {
    transform: translateY(-5px);
    border-color: var(--primary-blue);
}

.feature-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
    display: inline-block;
    animation: float 3s ease-in-out infinite;
}

.feature-title {
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
    color: var(--text-white);
}

.feature-description {
    color: var(--text-gray);
}

/* Game Page Layout */
.game-page-header {
    padding-top: 100px;
    text-align: center;
    margin-bottom: 2rem;
}

.game-iframe-container {
    max-width: 1200px;
    margin: 0 auto 3rem;
    border-radius: 20px;
    overflow: hidden;
    border: 2px solid var(--border-color);
}

.game-iframe-container iframe {
    width: 100%;
    height: 80vh;
    min-height: 600px;
    border: none;
}

.game-info-section {
    max-width: 1200px;
    margin: 0 auto;
    padding: 3rem 2rem;
}

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

.info-box {
    background: var(--card-bg);
    padding: 2rem;
    border-radius: 15px;
    border: 1px solid var(--border-color);
}

.info-box h3 {
    color: var(--primary-green);
    margin-bottom: 1rem;
}

.info-box ul {
    list-style: none;
    padding-left: 0;
}

.info-box li {
    padding: 0.5rem 0;
    color: var(--text-gray);
    position: relative;
    padding-left: 1.5rem;
}

.info-box li::before {
    content: '▸';
    position: absolute;
    left: 0;
    color: var(--primary-green);
}

/* Footer */
footer {
    background: var(--darker-bg);
    border-top: 1px solid var(--border-color);
    padding: 3rem 2rem 1rem;
}

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

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

.footer-section p,
.footer-section a {
    color: var(--text-gray);
    text-decoration: none;
    display: block;
    margin-bottom: 0.5rem;
}

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

.footer-links {
    list-style: none;
}

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

.contact-info a {
    color: var(--primary-blue);
    text-decoration: none;
}

.contact-info a:hover {
    text-decoration: underline;
}

.age-restriction {
    background: linear-gradient(135deg, #dc2626, #ea580c);
    padding: 0.5rem 1rem;
    border-radius: 5px;
    display: inline-block;
    font-weight: bold;
    margin-top: 1rem;
}

.footer-bottom {
    border-top: 1px solid var(--border-color);
    padding-top: 2rem;
    text-align: center;
    color: var(--text-gray);
}

/* Modal */
.modal {
    display: none;
    position: fixed;
    z-index: 9999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    animation: fadeIn 0.3s;
}

.modal.active {
    display: flex;
    align-items: center;
    justify-content: center;
}

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

.modal-content {
    background: var(--card-bg);
    padding: 3rem;
    border-radius: 20px;
    max-width: 500px;
    width: 90%;
    text-align: center;
    border: 2px solid var(--primary-blue);
    animation: slideUp 0.3s;
}

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

.modal-icon {
    font-size: 4rem;
    margin-bottom: 1rem;
}

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

.modal-content p {
    color: var(--text-gray);
    margin-bottom: 2rem;
}

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

/* Content Pages */
.content-page {
    max-width: 900px;
    margin: 0 auto;
    padding: 120px 2rem 4rem;
}

.content-page h1 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    background: linear-gradient(135deg, var(--text-white), var(--primary-green));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.content-page h2 {
    color: var(--primary-blue);
    margin-top: 2rem;
    margin-bottom: 1rem;
}

.content-page h3 {
    color: var(--primary-green);
    margin-top: 1.5rem;
    margin-bottom: 0.75rem;
}

.content-page p {
    color: var(--text-gray);
    margin-bottom: 1rem;
    line-height: 1.8;
}

.content-page ul,
.content-page ol {
    color: var(--text-gray);
    margin-bottom: 1rem;
    padding-left: 2rem;
}

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

.content-page a {
    color: var(--primary-blue);
    text-decoration: none;
}

.content-page a:hover {
    text-decoration: underline;
}

/* Responsive */

/* Large Tablets and Small Desktops */
@media (max-width: 1024px) {
    nav {
        padding: 0 1.5rem;
    }

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

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

    .info-grid {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    }

    .game-iframe-container iframe {
        height: 70vh;
        min-height: 500px;
    }
}

/* Tablets */
@media (max-width: 768px) {
    nav {
        padding: 0 1rem;
    }

    .nav-links {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: var(--darker-bg);
        flex-direction: column;
        padding: 1.5rem;
        border-top: 1px solid var(--border-color);
        gap: 1rem;
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    }

    .nav-links.active {
        display: flex;
    }

    .nav-links li {
        width: 100%;
    }

    .nav-links a {
        display: block;
        padding: 0.75rem 0;
        font-size: 1.1rem;
    }

    .mobile-menu-btn {
        display: block;
        font-size: 1.8rem;
        padding: 0.5rem;
    }

    .logo-text {
        font-size: 1.3rem;
    }

    .logo-img,
    .logo-icon {
        width: 35px;
        height: 35px;
    }

    .hero {
        padding: 5rem 1.5rem 3rem;
        min-height: 80vh;
    }

    .hero-content {
        max-width: 100%;
    }

    section {
        padding: 3rem 1.5rem;
    }

    .games-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

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

    .info-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

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

    .content-page {
        padding: 100px 1.5rem 3rem;
    }

    .content-page h1 {
        font-size: 2rem;
    }

    .content-page h2 {
        font-size: 1.5rem;
    }

    .game-page-header {
        padding-top: 80px;
        padding-left: 1.5rem;
        padding-right: 1.5rem;
    }

    .game-page-header h1 {
        font-size: 2rem !important;
    }

    .game-iframe-container {
        margin: 0 1.5rem 2rem;
        border-radius: 15px;
    }

    .game-iframe-container iframe {
        height: 60vh;
        min-height: 400px;
    }

    .game-info-section {
        padding: 2rem 1.5rem;
    }

    .modal-content {
        padding: 2rem 1.5rem;
        margin: 1rem;
        max-width: 90%;
    }

    .modal-icon {
        font-size: 3rem;
    }

    .modal-buttons {
        flex-direction: column;
        gap: 0.75rem;
    }

    .btn {
        padding: 0.875rem 1.5rem;
        font-size: 0.95rem;
        width: 100%;
        justify-content: center;
    }

    .section-title {
        font-size: 2rem;
        margin-bottom: 2rem;
    }

    .game-card-content {
        padding: 1.25rem;
    }

    .game-card-title {
        font-size: 1.25rem;
    }

    .feature-card {
        padding: 1.5rem;
    }

    .feature-icon {
        font-size: 2.5rem;
    }

    #responsible-gaming {
        padding: 3rem 1.5rem !important;
        margin: 3rem 0 !important;
    }

    #responsible-gaming div[style*="display: flex"] {
        flex-direction: column !important;
        gap: 1.5rem !important;
    }

    #responsible-gaming img {
        width: 120px !important;
        max-width: 100% !important;
    }

    footer {
        padding: 2rem 1.5rem 1rem;
    }

    .footer-bottom {
        padding-top: 1.5rem;
        font-size: 0.85rem;
    }
}

/* Mobile Devices */
@media (max-width: 480px) {
    nav {
        padding: 0.75rem 1rem;
    }

    .logo-text {
        font-size: 1.1rem;
    }

    .logo-img,
    .logo-icon {
        width: 30px;
        height: 30px;
    }

    .mobile-menu-btn {
        font-size: 1.5rem;
    }

    .hero {
        padding: 4rem 1rem 2rem;
        min-height: 70vh;
    }

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

    .hero p {
        font-size: 0.95rem;
        margin-bottom: 1.5rem;
    }

    section {
        padding: 2.5rem 1rem;
    }

    .section-title {
        font-size: 1.75rem;
        margin-bottom: 1.5rem;
    }

    .games-grid {
        gap: 1.25rem;
    }

    .game-card-image {
        height: 200px;
    }

    .game-card-content {
        padding: 1rem;
    }

    .game-card-title {
        font-size: 1.1rem;
        margin-bottom: 0.75rem;
    }

    .game-card-description {
        font-size: 0.9rem;
        margin-bottom: 1rem;
    }

    .features-grid {
        grid-template-columns: 1fr;
        gap: 1.25rem;
    }

    .feature-card {
        padding: 1.25rem;
    }

    .feature-icon {
        font-size: 2rem;
        margin-bottom: 0.75rem;
    }

    .feature-title {
        font-size: 1.1rem;
    }

    .feature-description {
        font-size: 0.9rem;
    }

    .info-grid {
        gap: 1.25rem;
    }

    .info-box {
        padding: 1.5rem;
    }

    .info-box h3 {
        font-size: 1.1rem;
        margin-bottom: 0.75rem;
    }

    .info-box ul {
        font-size: 0.9rem;
    }

    .footer-content {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .footer-section h3 {
        font-size: 1.1rem;
    }

    .footer-section p,
    .footer-section a {
        font-size: 0.9rem;
    }

    .content-page {
        padding: 90px 1rem 2rem;
    }

    .content-page h1 {
        font-size: 1.75rem;
        margin-bottom: 0.75rem;
    }

    .content-page h2 {
        font-size: 1.35rem;
        margin-top: 1.5rem;
        margin-bottom: 0.75rem;
    }

    .content-page h3 {
        font-size: 1.15rem;
        margin-top: 1.25rem;
        margin-bottom: 0.5rem;
    }

    .content-page p {
        font-size: 0.95rem;
        margin-bottom: 0.875rem;
    }

    .content-page ul,
    .content-page ol {
        font-size: 0.95rem;
        padding-left: 1.5rem;
    }

    .content-page li {
        margin-bottom: 0.375rem;
    }

    .game-page-header {
        padding-top: 70px;
        padding-left: 1rem;
        padding-right: 1rem;
        margin-bottom: 1.5rem;
    }

    .game-page-header h1 {
        font-size: 1.75rem !important;
    }

    .game-page-header p {
        font-size: 1rem !important;
    }

    .game-iframe-container {
        margin: 0 1rem 1.5rem;
        border-radius: 10px;
    }

    .game-iframe-container iframe {
        height: 50vh;
        min-height: 350px;
    }

    .game-info-section {
        padding: 1.5rem 1rem;
    }

    .modal-content {
        padding: 1.5rem 1rem;
        margin: 0.5rem;
        border-radius: 15px;
    }

    .modal-icon {
        font-size: 2.5rem;
        margin-bottom: 0.75rem;
    }

    .modal-content h2 {
        font-size: 1.5rem;
        margin-bottom: 0.75rem;
    }

    .modal-content p {
        font-size: 0.9rem;
        margin-bottom: 1.5rem;
    }

    .btn {
        padding: 0.75rem 1.25rem;
        font-size: 0.9rem;
    }

    #responsible-gaming {
        padding: 2rem 1rem !important;
        margin: 2rem 0 !important;
        border-radius: 10px !important;
    }

    #responsible-gaming .section-title {
        font-size: 1.5rem;
        margin-bottom: 1.5rem;
    }

    #responsible-gaming p {
        font-size: 0.95rem !important;
        margin-bottom: 1.5rem !important;
    }

    #responsible-gaming div[style*="display: flex"] {
        gap: 1.25rem !important;
    }

    #responsible-gaming img {
        width: 100px !important;
    }

    footer {
        padding: 1.5rem 1rem 0.75rem;
    }

    .footer-bottom {
        padding-top: 1rem;
        font-size: 0.75rem;
        line-height: 1.5;
    }

    .age-restriction {
        font-size: 0.85rem;
        padding: 0.4rem 0.75rem;
    }

    .show-more-section {
        padding: 2rem 0;
    }

    .contact-info p {
        font-size: 0.9rem;
    }
}

/* Extra Small Devices */
@media (max-width: 360px) {
    .hero h1 {
        font-size: 1.75rem;
    }

    .section-title {
        font-size: 1.5rem;
    }

    .content-page h1 {
        font-size: 1.5rem;
    }

    .game-page-header h1 {
        font-size: 1.5rem !important;
    }

    .btn {
        padding: 0.7rem 1rem;
        font-size: 0.85rem;
    }

    .modal-content {
        padding: 1.25rem 0.875rem;
    }
}

/* Landscape Orientation for Mobile */
@media (max-width: 768px) and (orientation: landscape) {
    .hero {
        min-height: 60vh;
        padding: 4rem 1.5rem 2rem;
    }

    .game-iframe-container iframe {
        height: 70vh;
        min-height: 450px;
    }
}

/* Utilities */
.text-center {
    text-align: center;
}

.mb-1 { margin-bottom: 0.5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }
.mb-4 { margin-bottom: 2rem; }

.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mt-4 { margin-top: 2rem; }

section#responsible-gaming {
    margin: 40px auto !important;
}