/* Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Baloo+2:wght@400;500;600;700;800&family=Nunito:wght@400;600;700;800&subset=latin,latin-ext&display=swap');

:root {
    --primary-color: #00C853;
    /* Dragon Green */
    --primary-dark: #009624;
    --secondary-color: #6200EA;
    /* Magic Purple */
    --accent-color: #FFD600;
    /* Gold/Yellow for buttons */
    --text-color: #2D3748;
    --text-light: #F7FAFC;
    --bg-color: #F0F4F8;
    --glass-bg: rgba(255, 255, 255, 0.85);
    --glass-border: rgba(255, 255, 255, 0.3);
    --dark-glass-bg: rgba(0, 0, 0, 0.6);
    /* Restored to 0.6 for better aesthetic balance and transparency */
    --shadow-soft: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --shadow-strong: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

html {
    scroll-behavior: smooth;
}

section[id] {
    scroll-margin-top: 100px;
    /* Offset for fixed header */
}

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

body {
    font-family: 'Nunito', sans-serif;
    color: var(--text-color);
    line-height: 1.6;
    overflow-x: hidden;
    position: relative;
    min-height: 100vh;
}

.hero {
    height: 100vh;
    min-height: 700px;
    background: transparent;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    z-index: 10;
}


body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(rgba(0, 0, 0, 0.2), rgba(0, 0, 0, 0.2)), url('../images/heropic.webp') no-repeat center center;
    background-size: cover;
    z-index: -1;
    pointer-events: none;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: 'Baloo 2', sans-serif;
    color: var(--secondary-color);
    /* Pastel Purple */
    margin-bottom: 1rem;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
    /* Shadow for better readability */
}

a {
    text-decoration: none;
    transition: all 0.3s ease;
}

/* Utilities */
.container {
    max-width: 1400px;
    /* Wider layout */
    margin: 0 auto;
    padding: 0 40px;
    /* More padding */
}

.section-padding {
    padding: 40px 0;
}

.text-center {
    text-align: center;
}

.text-gradient {
    background: linear-gradient(135deg, var(--secondary-color), var(--primary-color));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 12px 30px;
    border-radius: 50px;
    font-weight: 700;
    font-size: 1.1rem;
    cursor: pointer;
    border: none;
    box-shadow: var(--shadow-soft);
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    color: white;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-strong);
}

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

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

.btn-accent {
    background: linear-gradient(135deg, var(--accent-color), #FFAB00);
    color: #212121;
}

/* Navbar */
nav {
    position: fixed;
    top: 0;
    width: 100%;
    padding: 20px 0;
    z-index: 1000;
    transition: background 0.3s ease, padding 0.3s ease;
    /* Added default background for readability on hero */
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(4px);
}

nav.scrolled {
    background: var(--glass-bg);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--glass-border);
    padding: 15px 0;
}

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

.logo {
    font-family: 'Baloo 2', sans-serif;
    font-size: 1.4rem;
    font-weight: 800;
    background: linear-gradient(135deg, #6200EA, #FFC107);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent !important;
    display: flex;
    align-items: center;
    gap: 10px;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.4));
    animation: logo-glow 3s ease-in-out infinite alternate;
}

@keyframes logo-glow {
    from {
        filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.4));
    }

    to {
        filter: drop-shadow(0 2px 15px rgba(255, 193, 7, 0.6));
    }
}

.nav-icon {
    height: 40px;
    width: auto;
}

.nav-links a {
    color: var(--text-color);
    margin-left: 20px;
    font-weight: 600;
}

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

/* Ensure links are white on hero initially */
nav:not(.scrolled) .nav-links a {
    color: white;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.5);
}

.mobile-lang-switcher {
    display: none;
    margin-left: auto;
    margin-right: 15px;
    font-family: 'Baloo 2', sans-serif;
    font-weight: 700;
    font-size: 0.9rem;
}

.mobile-lang-switcher a {
    color: white;
    text-decoration: none;
    padding: 5px;
}

.mobile-lang-switcher a.active {
    color: var(--accent-color);
    font-weight: 800;
}

nav.scrolled .mobile-lang-switcher a {
    color: var(--secondary-color);
}

nav.scrolled .mobile-lang-switcher a.active {
    color: var(--primary-color);
}


/* Logo style is now unified with glow */

/* Removed redundant hero overlay for transparency consistency */

/* Removed redundant hero overlay for transparency consistency */

.hero-content {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    max-width: 1000px;
    /* Increased from 800px */
    margin-top: 20vh;
}

.hero-text {
    background: var(--dark-glass-bg);
    backdrop-filter: blur(10px);
    padding: 60px 80px;
    /* Increased from 40px */
    border-radius: 30px;
    /* Slightly more rounded */
    border: 1px solid rgba(255, 255, 255, 0.1);
    width: 100%;
}

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

.hero-text p {
    font-size: 1.25rem;
    margin-bottom: 2.5rem;
    color: #f0f0f0;
}

.highlight-safe {
    color: var(--accent-color);
    font-weight: 800;
    text-shadow: 0 0 10px rgba(255, 214, 0, 0.3);
    display: block;
    margin-top: 10px;
    font-size: 1.4rem;
}

.hero-buttons {
    display: flex;
    gap: 30px;
    justify-content: center;
    align-items: flex-start;
    margin-top: 20px;
}

.store-button-group {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
}

.qr-code {
    background: white;
    /* Solid white for best contrast */
    padding: 10px;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    transition: transform 0.3s ease;
}

.qr-code:hover {
    transform: scale(1.05);
}

.qr-code img {
    width: 120px;
    /* Larger size */
    height: 120px;
    display: block;
}

@media (max-width: 600px) {
    .qr-code {
        display: none;
        /* Hide QR codes on very small screens to save space */
    }

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

/* Feature Cards (Glassmorphism) */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 20px;
    margin-top: 40px;
}

.feature-card {
    background: var(--glass-bg);
    backdrop-filter: blur(5px);
    border: 1px solid var(--glass-border);
    padding: 20px;
    border-radius: 20px;
    text-align: center;
    transition: transform 0.3s ease;
    box-shadow: var(--shadow-soft);
}

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

.feature-card h3 {
    font-size: 1.2rem !important;
    margin-bottom: 0.5rem !important;
}

.feature-card p {
    font-size: 0.95rem;
    line-height: 1.4;
}

.feature-icon {
    font-size: 3rem;
    margin-bottom: 20px;
    color: var(--primary-color);
}

/* Mini Games Grid */
.games-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    /* Smaller items */
    gap: 15px;
    /* Tighter gap */
}

.game-item {
    background: white;
    border-radius: 15px;
    padding: 20px;
    text-align: center;
    box-shadow: var(--shadow-soft);
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.game-item:hover {
    border-color: var(--primary-color);
    transform: scale(1.05);
}

.game-icon {
    font-size: 2.5rem;
    margin-bottom: 10px;
    display: block;
}

/* Testimonials */
.testimonials-row {
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
    justify-content: center;
}

.testimonial-card {
    background: white;
    padding: 30px;
    border-radius: 20px;
    box-shadow: var(--shadow-soft);
    max-width: 500px;
    flex: 1 1 300px;
    position: relative;
}

.testimonial-card::before {
    content: '"';
    font-family: serif;
    font-size: 5rem;
    color: rgba(98, 0, 234, 0.1);
    position: absolute;
    top: -20px;
    left: 20px;
}

.stars {
    color: var(--accent-color);
    margin-bottom: 10px;
}

/* Footer */
footer {
    background-color: var(--secondary-color);
    color: white;
    padding: 60px 0 30px;
    margin-top: 100px;
}

.footer-content {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 60px;
    text-align: left;
    max-width: 1200px;
    margin: 0 auto;
}

.footer-col {
    flex: 0 1 300px; /* Don't grow, just stay centered */
}

@media (max-width: 768px) {
    .footer-content {
        text-align: center;
        gap: 40px;
    }
}

.footer-content h3, 
.footer-content h4 {
    color: white;
    margin-bottom: 20px;
    font-family: 'Baloo 2', sans-serif;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.8);
    display: block;
    margin-bottom: 12px;
    transition: all 0.3s ease;
}

.footer-links a:hover {
    color: white;
    transform: translateX(5px);
}

.copyright {
    margin-top: 50px;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    text-align: center;
    font-size: 0.9rem;
    opacity: 0.7;
}

/* End of global styles */


/* Main Content Wrapper */

.main-content {
    background: var(--dark-glass-bg);
    /* Use same transparent glass as hero text */
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 -30px 60px rgba(0, 0, 0, 0.4), 0 20px 50px rgba(0, 0, 0, 0.5);
    border-radius: 60px;
    width: 80%;
    /* Increased from 70% for better desktop balance */
    max-width: 1200px;
    margin: -120px auto 50px auto;
    padding: 80px 40px;
    color: #F5F5F5;
    position: relative;
    z-index: 20;
}

/* Soft glow peak at the top */
.main-content::before {
    content: '';
    position: absolute;
    top: -2px;
    left: 50%;
    transform: translateX(-50%);
    width: 30%;
    height: 4px;
    background: var(--accent-color);
    filter: blur(10px);
    opacity: 0.5;
}



/* Blobs removed */

/* Aurora float keyframes removed */

/* Ensure sections inside are transparent so background shows */
#about,
#features,
#games,
#reviews,
footer {
    position: relative;
    z-index: 1;
    background-color: transparent !important;
    /* Override white backgrounds */
}

/* Inner cards subtle style */
.feature-card,
.game-item,
.testimonial-card,
.glow-panel {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 24px;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    /* Bouncy transition */
    position: relative;
    overflow: hidden;
}

.feature-card:hover,
.game-item:hover,
.testimonial-card:hover {
    background: rgba(255, 255, 255, 0.08);
    transform: translateY(-8px) scale(1.02);
    border-color: var(--accent-color);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

/* Cheerful Headings inside content */
.main-content h2,
.main-content h3,
.main-content h4 {
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1px;
    background: linear-gradient(to right, #FFD54F, #FF8A65);
    /* Gold to Orange */
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent !important;
    /* Force override */
    margin-bottom: 1.5rem;
    text-shadow: none;
    /* Gradient needs no shadow or shadow on container */
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.3));
    /* Drop shadow for gradient text */
}

/* Paragraphs */
.main-content p {
    color: #E0E0E0;
    font-size: 1.1rem;
}

.feature-icon {
    font-size: 2.5rem;
    /* Zmenšeno z 3.5rem */
    margin-bottom: 1rem;
    animation: float-icon 4s ease-in-out infinite;
}

.game-icon {
    font-size: 2.2rem;
    /* Much smaller game icons */
    margin-bottom: 0.8rem;
    animation: float-icon 4s ease-in-out infinite;
}

.game-item h4 {
    font-size: 1rem !important;
    /* Smaller game titles */
    margin-bottom: 0.3rem !important;
}

.game-item p {
    font-size: 0.85rem !important;
    /* Smaller game description */
}

/* Stats & Pie Charts */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 40px;
    margin-top: 40px;
    justify-items: center;
}

.stat-item {
    text-align: center;
    max-width: 350px;
}

.pie-chart-container {
    position: relative;
    width: 180px;
    height: 180px;
    margin: 0 auto 25px;
}

.pie-chart {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: conic-gradient(var(--color) calc(var(--percent) * 1%),
            rgba(255, 255, 255, 0.1) 0);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    box-shadow: 0 0 30px rgba(0, 0, 0, 0.3);
    transition: transform 0.3s ease;
}

.pie-chart::after {
    content: '';
    position: absolute;
    width: 80%;
    height: 80%;
    background: rgba(40, 44, 52, 0.9);
    /* Same as panel but slight darker */
    border-radius: 50%;
    backdrop-filter: blur(10px);
}

.pie-text {
    position: relative;
    z-index: 2;
    font-size: 2.2rem;
    font-weight: 800;
    color: white;
    font-family: 'Baloo 2', sans-serif;
}

.pie-chart:hover {
    transform: scale(1.05);
}

@keyframes float-icon {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-10px);
    }
}

/* Responsive */
/* Mobile Nav & Hamburger */
.menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    height: 21px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
    z-index: 1001;
}

.menu-toggle span {
    width: 100%;
    height: 3px;
    background-color: white;
    border-radius: 10px;
    transition: all 0.3s ease;
}

nav.scrolled .menu-toggle span {
    background-color: var(--secondary-color);
}

.menu-toggle.active span:nth-child(1) {
    transform: translateY(9px) rotate(45deg);
}

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

.menu-toggle.active span:nth-child(3) {
    transform: translateY(-9px) rotate(-45deg);
}

@media (max-width: 1024px) {
    .container {
        padding: 0 8px;
    }

    .hero {
        height: auto;
        min-height: 100vh;
        padding-bottom: 60px;
    }

    .hero-content {
        margin-top: 10vh;
    }

    .hero-text {
        padding: 25px 15px;
    }

    .main-content {
        width: 96%;
        margin-top: 20px;
        padding: 35px 15px;
    }

    /* Hamburger Menu Visibility */
    .menu-toggle {
        display: flex;
    }

    .mobile-lang-switcher {
        display: block;
    }

    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        width: 100%;
        height: 100vh;
        background: rgba(15, 15, 25, 0.95);
        backdrop-filter: blur(20px);
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        transition: right 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
        z-index: 1000;
        gap: 30px;
    }

    .nav-links.active {
        right: 0;
    }

    .nav-links a {
        margin: 0;
        font-family: 'Baloo 2', sans-serif;
        font-size: 1.8rem;
        font-weight: 800;
        color: white !important;
        text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
        letter-spacing: 0.5px;
        text-transform: uppercase;
    }

    .nav-links a:hover {
        color: var(--accent-color) !important;
        transform: scale(1.1);
    }

    .nav-links .lang-switcher {
        margin-top: 20px !important;
        font-size: 1.4rem;
        color: white;
    }

    body::before {
        background-attachment: scroll;
    }
}

@media (max-width: 768px) {
    .hero-text h1 {
        font-size: 2.1rem;
    }

    .hero-text p {
        font-size: 0.95rem;
    }

    .main-content {
        width: 98%;
        margin-top: 20px;
        padding: 30px 10px;
        border-radius: 20px;
    }

    .section-padding {
        padding: 40px 0;
    }

    .features-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }

    .games-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 8px;
    }

    .feature-card,
    .game-item {
        padding: 12px 8px;
    }

    .feature-card h3,
    .game-item h4 {
        font-size: 0.9rem !important;
        white-space: normal;
        overflow-wrap: break-word;
        height: auto;
        min-height: 2.2em;
        display: flex;
        align-items: center;
        justify-content: center;
        text-align: center;
    }

    .feature-card p,
    .game-item p {
        font-size: 0.75rem !important;
        line-height: 1.3;
    }

    .pie-chart-container {
        width: 120px;
        height: 120px;
    }

    .pie-text {
        font-size: 1.5rem;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 5px;
    }

    .hero-text h1 {
        font-size: 1.7rem;
        text-align: center;
    }

    .hero-text {
        padding: 20px 10px;
        text-align: center;
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    .hero-buttons {
        gap: 12px;
        width: 100%;
        max-width: 320px;
        margin: 0 auto;
    }

    .btn {
        padding: 10px 12px;
        font-size: 0.9rem;
        width: 100%;
        justify-content: center;
    }

    .qr-code {
        display: none !important;
    }

    .features-grid,
    .games-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 6px;
    }

    .stats-grid {
        grid-template-columns: 1fr;
        justify-items: center;
        gap: 25px;
    }

    .stat-item {
        width: 100%;
        display: flex;
        flex-direction: column;
        align-items: center;
        text-align: center;
        margin: 0 auto;
    }

    .pie-chart-container {
        width: 110px;
        height: 110px;
    }

    .pie-text {
        font-size: 1.4rem;
    }

    @media (max-width: 380px) {

        .features-grid,
        .games-grid {
            grid-template-columns: 1fr;
            gap: 15px;
        }

        .feature-card,
        .game-item {
            padding: 15px;
            min-height: auto;
        }

        .main-content {
            width: 99%;
            padding: 25px 8px;
        }

        .hero-text h1 {
            font-size: 1.6rem;
        }
    }
}
/* Social Media Links */
.social-links {
    display: flex;
    gap: 15px;
    margin-top: 15px;
}

.social-icon {
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.2rem;
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.social-icon:hover {
    background: var(--accent-color);
    color: var(--secondary-color);
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.social-icon.youtube:hover {
    background: #FF0000;
    color: white;
}

.social-icon.facebook:hover {
    background: #1877F2;
    color: white;
}

