/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-bg: #0a1929;
    --secondary-bg: #1e3a5f;
    --card-bg: rgba(30, 58, 95, 0.4);
    --card-bg-solid: #1e3a5f;
    --accent-primary: #00b4d8;
    --accent-secondary: #0077b6;
    --accent-gold: #ffd700;
    --text-white: #e0f2fe;
    --text-light: #b3e5fc;
    --text-gray: #90caf9;
    --border-radius: 16px;
    --shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
    --shadow-glow: 0 0 30px rgba(0, 180, 216, 0.4);
    --glass-bg: rgba(30, 58, 95, 0.25);
    --glass-border: rgba(255, 255, 255, 0.18);
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(135deg, var(--primary-bg) 0%, #0d1b2a 50%, var(--secondary-bg) 100%);
    background-attachment: fixed;
    color: var(--text-white);
    line-height: 1.6;
    min-height: 100vh;
    overflow-x: hidden;
}

/* Header */
header {
    background: rgba(10, 25, 41, 0.85);
    backdrop-filter: blur(20px);
    padding: 1rem 2rem;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.6);
    border-bottom: 1px solid var(--glass-border);
}

.header-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
}

.burger-menu {
    display: none;
    flex-direction: column;
    cursor: pointer;
    gap: 5px;
    z-index: 1001;
    padding: 5px;
}

.burger-menu span {
    width: 25px;
    height: 3px;
    background: var(--text-white);
    border-radius: 3px;
    transition: all 0.3s ease;
}

.burger-menu.active span:nth-child(1) {
    transform: rotate(45deg) translate(8px, 8px);
}

.burger-menu.active span:nth-child(2) {
    opacity: 0;
}

.burger-menu.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -7px);
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    text-decoration: none;
    color: var(--text-white);
    font-size: 1.5rem;
    font-weight: bold;
}

.logo img {
    width: 40px;
    height: 40px;
}

nav {
    display: flex;
}

nav ul {
    display: flex;
    list-style: none;
    gap: 2rem;
}

nav.mobile-menu {
    position: fixed;
    top: 0;
    right: -100%;
    width: 300px;
    max-width: 85vw;
    height: 100vh;
    background: rgba(10, 25, 41, 0.98);
    backdrop-filter: blur(30px);
    padding: 5rem 2rem 2rem;
    transition: right 0.3s ease;
    z-index: 1000;
    box-shadow: -4px 0 30px rgba(0, 0, 0, 0.7);
    border-left: 1px solid var(--glass-border);
    overflow-y: auto;
    overflow-x: hidden;
    display: none;
}

nav.mobile-menu.active {
    right: 0;
    display: block;
}

.mobile-menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    z-index: 999;
    display: none;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.mobile-menu-overlay.active {
    display: block;
    opacity: 1;
}

nav.mobile-menu ul {
    flex-direction: column;
    gap: 0;
    list-style: none;
    padding: 0;
    margin: 0;
}

nav.mobile-menu li {
    margin: 0;
    padding: 0;
}

nav.mobile-menu a {
    font-size: 1.2rem;
    padding: 1rem 0;
    display: block;
    color: var(--text-white);
    text-decoration: none;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
    font-weight: 500;
}

nav.mobile-menu a:hover {
    color: var(--accent-primary);
    padding-left: 1rem;
    background: rgba(0, 180, 216, 0.1);
}

nav a {
    color: var(--text-light);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
    position: relative;
}

nav a:hover {
    color: var(--accent-primary);
}

nav a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--accent-primary);
    transition: width 0.3s ease;
}

nav a:hover::after {
    width: 100%;
}

/* Hero Section */
.hero {
    text-align: center;
    padding: 5rem 2rem;
    background: radial-gradient(ellipse at center, rgba(108, 92, 231, 0.1) 0%, transparent 70%);
    position: relative;
}

.hero-image {
    width: 100%;
    max-width: 1200px;
    height: 400px;
    object-fit: cover;
    border-radius: var(--border-radius);
    margin-bottom: 2rem;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.5);
    opacity: 0.9;
    transition: opacity 0.3s ease;
}

.hero-image:hover {
    opacity: 1;
}

.hero h1 {
    font-size: 3.5rem;
    margin-bottom: 1.5rem;
    background: linear-gradient(135deg, var(--accent-primary) 0%, var(--accent-secondary) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: 800;
    text-shadow: 0 0 30px rgba(0, 180, 216, 0.3);
}

.hero p {
    font-size: 1.25rem;
    color: var(--text-light);
    margin-bottom: 2rem;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.btn-primary {
    display: inline-block;
    padding: 1rem 2.5rem;
    background: linear-gradient(135deg, var(--accent-primary) 0%, var(--accent-secondary) 100%);
    color: var(--text-white);
    text-decoration: none;
    border-radius: var(--border-radius);
    font-weight: 600;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    box-shadow: 0 8px 25px rgba(0, 180, 216, 0.4);
    border: none;
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.btn-primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: left 0.5s ease;
}

.btn-primary:hover::before {
    left: 100%;
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 40px rgba(0, 180, 216, 0.6);
}

/* Section Styles */
section {
    padding: 4rem 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.section-title {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: var(--text-white);
}

.section-subtitle {
    text-align: center;
    color: var(--text-gray);
    margin-bottom: 3rem;
    font-size: 1.1rem;
}

.section-image {
    width: 100%;
    max-width: 1200px;
    height: 300px;
    object-fit: cover;
    border-radius: var(--border-radius);
    margin: 0 auto 3rem;
    display: block;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
    opacity: 0.9;
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.section-image:hover {
    opacity: 1;
    transform: scale(1.01);
}

/* Game Cards Grid */
.games-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

.game-card {
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    border-radius: var(--border-radius);
    padding: 2rem;
    transition: all 0.4s ease;
    border: 1px solid var(--glass-border);
    position: relative;
    overflow: hidden;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

.game-card-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 12px;
    margin-bottom: 1.5rem;
    opacity: 0.9;
    transition: opacity 0.3s ease, transform 0.3s ease;
    display: block;
}

.game-card:hover .game-card-image {
    opacity: 1;
    transform: scale(1.02);
}

.game-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--accent-primary), var(--accent-secondary));
    transform: scaleX(0);
    transition: transform 0.4s ease;
    box-shadow: 0 0 20px rgba(0, 180, 216, 0.6);
}

.game-card::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(0, 180, 216, 0.1) 0%, transparent 70%);
    opacity: 0;
    transition: opacity 0.4s ease;
}

.game-card:hover::before {
    transform: scaleX(1);
}

.game-card:hover::after {
    opacity: 1;
}

.game-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 12px 40px rgba(0, 180, 216, 0.5), inset 0 0 60px rgba(0, 180, 216, 0.1);
    border-color: var(--accent-primary);
    background: rgba(30, 58, 95, 0.35);
}

.game-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary));
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
    font-size: 2.5rem;
    box-shadow: 0 8px 25px rgba(0, 180, 216, 0.4);
    position: relative;
    overflow: hidden;
}

.game-icon::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(45deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transform: rotate(45deg);
    animation: shine 3s infinite;
}

@keyframes shine {
    0% { transform: translateX(-100%) translateY(-100%) rotate(45deg); }
    100% { transform: translateX(100%) translateY(100%) rotate(45deg); }
}

.game-card h3 {
    font-size: 1.75rem;
    margin-bottom: 1rem;
    color: var(--text-white);
}

.game-card p {
    color: var(--text-gray);
    margin-bottom: 1.5rem;
    line-height: 1.7;
}

.btn-play {
    width: 100%;
    padding: 0.875rem;
    background: linear-gradient(135deg, var(--accent-primary) 0%, var(--accent-secondary) 100%);
    color: var(--text-white);
    text-decoration: none;
    border-radius: 12px;
    font-weight: 600;
    text-align: center;
    display: block;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(0, 180, 216, 0.3);
    position: relative;
    overflow: hidden;
}

.btn-play::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    transform: translate(-50%, -50%);
    transition: width 0.6s ease, height 0.6s ease;
}

.btn-play:hover::before {
    width: 300px;
    height: 300px;
}

.btn-play:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 180, 216, 0.5);
}

.btn-secondary {
    display: inline-block;
    padding: 0.875rem 2rem;
    background: var(--glass-bg);
    backdrop-filter: blur(10px);
    color: var(--text-white);
    text-decoration: none;
    border-radius: var(--border-radius);
    font-weight: 600;
    transition: all 0.3s ease;
    border: 1px solid var(--glass-border);
    margin: 2rem auto;
    display: block;
    text-align: center;
    max-width: 200px;
}

.btn-secondary:hover {
    background: var(--accent-primary);
    border-color: var(--accent-primary);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 180, 216, 0.4);
}

/* Features Section */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.feature-card {
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    border-radius: var(--border-radius);
    padding: 2rem;
    text-align: center;
    border: 1px solid var(--glass-border);
    transition: all 0.4s ease;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

.feature-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 40px rgba(0, 180, 216, 0.4), inset 0 0 60px rgba(0, 180, 216, 0.1);
    border-color: var(--accent-primary);
    background: rgba(30, 58, 95, 0.35);
}

.feature-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.feature-card h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--text-white);
}

.feature-card p {
    color: var(--text-gray);
    line-height: 1.7;
}

/* Reviews Section */
.reviews-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.review-card {
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    border-radius: var(--border-radius);
    padding: 2rem;
    border: 1px solid var(--glass-border);
    transition: all 0.4s ease;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

.review-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 40px rgba(0, 180, 216, 0.4), inset 0 0 60px rgba(0, 180, 216, 0.1);
    border-color: var(--accent-primary);
    background: rgba(30, 58, 95, 0.35);
}

.review-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.reviewer-name {
    font-weight: 600;
    color: var(--text-white);
}

.review-date {
    color: var(--text-gray);
    font-size: 0.9rem;
}

.stars {
    color: var(--accent-gold);
    font-size: 1.2rem;
    margin: 0.5rem 0;
}

.review-game {
    color: var(--accent-primary);
    font-weight: 500;
    margin-bottom: 1rem;
    display: block;
}

.review-text {
    color: var(--text-light);
    line-height: 1.7;
    font-style: italic;
}

/* Footer */
footer {
    background: var(--secondary-bg);
    padding: 4rem 2rem 2rem;
    margin-top: 5rem;
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 3rem;
    margin-bottom: 2rem;
}

.footer-section h4 {
    color: var(--text-white);
    margin-bottom: 1.5rem;
    font-size: 1.2rem;
}

.footer-section p,
.footer-section a {
    color: var(--text-gray);
    text-decoration: none;
    display: block;
    margin-bottom: 0.75rem;
    transition: color 0.3s ease;
}

.footer-section a:hover {
    color: var(--accent-primary);
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid var(--glass-border);
    color: var(--text-gray);
    font-size: 0.9rem;
}

/* Game Page Styles */
.game-page {
    padding: 2rem;
    max-width: 1400px;
    margin: 0 auto;
}

.game-header {
    text-align: center;
    margin-bottom: 3rem;
}

.game-header-image {
    width: 100%;
    max-width: 800px;
    height: 300px;
    object-fit: cover;
    border-radius: var(--border-radius);
    margin-bottom: 2rem;
    opacity: 0.7;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
}

.game-header h1 {
    font-size: 3rem;
    margin-bottom: 1rem;
    background: linear-gradient(135deg, var(--accent-primary) 0%, var(--accent-secondary) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-shadow: 0 0 30px rgba(0, 180, 216, 0.3);
}

.game-iframe-container {
    background: var(--card-bg);
    border-radius: var(--border-radius);
    padding: 1rem;
    margin-bottom: 3rem;
    box-shadow: var(--shadow);
    position: relative;
}

.game-preview-image {
    width: 100%;
    height: 300px;
    object-fit: cover;
    border-radius: 12px;
    margin-bottom: 1.5rem;
    display: block;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
    opacity: 0.9;
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.game-preview-image:hover {
    opacity: 1;
    transform: scale(1.02);
}

.game-iframe {
    width: 100%;
    min-height: 600px;
    border: none;
    border-radius: 8px;
    background: #000;
}

.game-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    margin-bottom: 3rem;
}

.content-block {
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    border-radius: var(--border-radius);
    padding: 2rem;
    border: 1px solid var(--glass-border);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

.content-block h2 {
    color: var(--accent-primary);
    margin-bottom: 1rem;
    font-size: 1.75rem;
}

.content-block h3 {
    color: var(--text-white);
    margin: 1.5rem 0 0.75rem;
    font-size: 1.3rem;
}

.content-block p,
.content-block ul {
    color: var(--text-light);
    line-height: 1.8;
}

.content-block ul {
    margin-left: 1.5rem;
    margin-top: 0.5rem;
}

.content-block li {
    margin-bottom: 0.5rem;
}

/* Popup Styles */
.popup-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    backdrop-filter: blur(5px);
}

.popup-overlay.active {
    display: flex;
}

.popup-content {
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    border-radius: var(--border-radius);
    padding: 3rem;
    max-width: 500px;
    width: 90%;
    text-align: center;
    border: 2px solid var(--accent-primary);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.6), 0 0 40px rgba(0, 180, 216, 0.3);
}

.popup-content h2 {
    color: var(--accent-blue);
    margin-bottom: 1.5rem;
    font-size: 2rem;
}

.popup-content p {
    color: var(--text-light);
    margin-bottom: 2rem;
    line-height: 1.7;
}

.popup-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
}

.popup-btn {
    padding: 0.875rem 2rem;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    border: none;
    transition: all 0.3s ease;
    font-size: 1rem;
}

.popup-btn-accept {
    background: linear-gradient(135deg, var(--accent-primary) 0%, var(--accent-secondary) 100%);
    color: var(--text-white);
}

.popup-btn-accept:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(108, 92, 231, 0.4);
}

.popup-btn-decline {
    background: transparent;
    color: var(--text-white);
    border: 2px solid var(--text-gray);
}

.popup-btn-decline:hover {
    border-color: var(--accent-primary);
    color: var(--accent-primary);
}

/* Cookie Banner */
.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    padding: 1.5rem 2rem;
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.4);
    z-index: 9999;
    border-top: 2px solid var(--accent-primary);
    display: none;
}

.cookie-banner.active {
    display: block;
}

.cookie-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 2rem;
    flex-wrap: wrap;
}

.cookie-text {
    flex: 1;
    min-width: 300px;
    color: var(--text-light);
}

.cookie-buttons {
    display: flex;
    gap: 1rem;
}

/* Responsive */
@media (min-width: 769px) {
    .burger-menu {
        display: none !important;
    }
    
    nav.mobile-menu {
        display: none !important;
    }
    
    .mobile-menu-overlay {
        display: none !important;
    }
}

@media (max-width: 768px) {
    body {
        overflow-x: hidden;
    }
    
    header {
        padding: 1rem;
    }
    
    .burger-menu {
        display: flex;
    }
    
    nav#main-nav {
        display: none;
    }
    
    nav.mobile-menu {
        display: none;
    }
    
    nav.mobile-menu.active {
        display: block;
    }
    
    .hero {
        padding: 3rem 1rem;
    }
    
    .hero-image {
        height: 250px;
        margin-bottom: 1.5rem;
    }
    
    .hero h1 {
        font-size: 2.5rem;
    }
    
    .hero p {
        font-size: 1.1rem;
    }
    
    .section-image {
        height: 200px;
        margin-bottom: 2rem;
    }
    
    .game-preview-image {
        height: 200px;
        margin-bottom: 1rem;
    }
    
    section {
        padding: 3rem 1rem;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .games-grid,
    .features-grid,
    .reviews-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .game-content {
        grid-template-columns: 1fr;
    }
    
    .game-page {
        padding: 1rem;
    }
    
    .game-header h1 {
        font-size: 2rem;
    }
    
    .game-iframe {
        min-height: 400px;
    }
    
    .footer-container {
        grid-template-columns: 1fr;
        gap: 2rem;
        text-align: center;
    }
    
    .cookie-content {
        flex-direction: column;
        text-align: center;
        gap: 1rem;
    }
    
    .cookie-buttons {
        width: 100%;
        justify-content: center;
        flex-wrap: wrap;
    }
    
    .popup-content {
        padding: 2rem 1.5rem;
    }
    
    .popup-buttons {
        flex-direction: column;
        gap: 0.75rem;
    }
    
    .popup-btn {
        width: 100%;
    }
    
    .btn-primary {
        padding: 0.875rem 2rem;
        font-size: 1rem;
    }
}

@media (max-width: 480px) {
    .hero h1 {
        font-size: 2rem;
    }
    
    .section-title {
        font-size: 1.75rem;
    }
    
    .game-card,
    .feature-card,
    .review-card {
        padding: 1.5rem;
    }
    
    .content-block {
        padding: 1.5rem;
    }
}

