/* DESIGN SYSTEM STYLES FOR GAMITRON GAMES ZONE */

:root {
    --primary: #38ef7d;
    --secondary: #11998e;
    --accent: #f39c12;
    --font-heading: 'Outfit', 'Comfortaa', cursive, sans-serif;
    --font-body: 'Quicksand', 'Comfortaa', sans-serif;

    
    --bg-overlay: rgba(13, 13, 29, 0.88);
    --bg-overlay-darker: rgba(7, 7, 18, 0.96);
    --card-bg: rgba(25, 25, 50, 0.65);
    --card-border: rgba(255, 255, 255, 0.08);
    --text-primary: #f5f6fa;
    --text-muted: #a0a0c0;
    --shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    --glass-blur: blur(20px);
    
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--font-body);
    color: var(--text-primary);
    line-height: 1.6;
    background-image: url('assets/bg.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: fixed;
    overflow-x: hidden;
    position: relative;
    min-height: 100vh;
}

body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: url('assets/bg.png');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    filter: none;
    z-index: -2;
}

body::after {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--bg-overlay);
    z-index: -1;
    transition: background 0.3s ease;
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

.bubble-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: -1;
    overflow: hidden;
}

.bubble {
    position: absolute;
    border-radius: 50%;
    background: var(--primary);
    opacity: 0.12;
    animation: floatUp 15s infinite linear;
}

.bubble-1 { width: 80px; height: 80px; left: 10%; animation-duration: 20s; animation-delay: 0s; }
.bubble-2 { width: 120px; height: 120px; left: 75%; animation-duration: 28s; animation-delay: 2s; background: var(--secondary); }
.bubble-3 { width: 50px; height: 50px; left: 45%; animation-duration: 16s; animation-delay: 5s; background: var(--accent); }

@keyframes floatUp {
    0% { transform: translateY(110vh) scale(0.8) rotate(0deg); opacity: 0; }
    10% { opacity: 0.15; }
    90% { opacity: 0.15; }
    100% { transform: translateY(-10vh) scale(1.2) rotate(360deg); opacity: 0; }
}

h1, h2, h3, h4 {
    font-family: var(--font-heading);
    font-weight: 800;
    margin-bottom: 1rem;
}

h1 {
    font-size: 3rem;
    line-height: 1.15;
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

h2 {
    font-size: 2.2rem;
    color: var(--primary);
}

h3 {
    font-size: 1.6rem;
    color: var(--secondary);
}

p {
    margin-bottom: 1.5rem;
}

.btn {
    display: inline-block;
    padding: 0.8rem 2rem;
    border-radius: 50px;
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 1rem;
    text-decoration: none;
    text-align: center;
    border: none;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.btn-primary {
    background: var(--primary);
    color: #ffffff;
}

.btn-primary:hover {
    background: var(--secondary);
    transform: translateY(-4px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
}

.btn-secondary {
    background: var(--accent);
    color: #1a1a3a;
}

.btn-secondary:hover {
    background: var(--primary);
    color: #ffffff;
    transform: translateY(-4px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
}

.btn-lg {
    padding: 1rem 2.5rem;
    font-size: 1.1rem;
}

.btn-bounce {
    animation: bounceMild 3s infinite;
}

@keyframes bounceMild {
    0%, 20%, 50%, 80%, 100% { transform: translateY(0); }
    40% { transform: translateY(-10px); }
    60% { transform: translateY(-5px); }
}

.header {
    position: sticky;
    top: 0;
    background: var(--bg-overlay-darker);
    backdrop-filter: var(--glass-blur);
    border-bottom: 2px solid var(--card-border);
    padding: 0.8rem 0;
    z-index: 100;
    box-shadow: var(--shadow);
}

.nav-wrapper {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    height: 48px;
    width: 200px;
    text-decoration: none;
}

.nav {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.nav-link {
    text-decoration: none;
    color: var(--text-primary);
    font-weight: 700;
    font-size: 0.95rem;
    position: relative;
    padding: 0.5rem 0;
    transition: color 0.3s ease;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 3px;
    background: var(--primary);
    border-radius: 5px;
    transition: width 0.3s ease;
}

.nav-link.active, .nav-link:hover {
    color: var(--primary);
}

.nav-link.active::after, .nav-link:hover::after {
    width: 100%;
}

.menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    height: 21px;
    background: transparent;
    border: none;
    cursor: pointer;
}

.menu-toggle .bar {
    width: 100%;
    height: 3px;
    background-color: var(--primary);
    border-radius: 10px;
    transition: all 0.3s ease;
}

.hero {
    padding: 6rem 0;
    position: relative;
}

.hero-grid {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 4rem;
    align-items: center;
}

.badge {
    display: inline-block;
    padding: 0.4rem 1.2rem;
    background: rgba(255, 94, 126, 0.12);
    color: var(--primary);
    border-radius: 50px;
    font-weight: 700;
    font-size: 0.9rem;
    margin-bottom: 1.5rem;
    border: 1px solid rgba(255, 94, 126, 0.25);
}

.hero-lead {
    font-size: 1.25rem;
    color: var(--text-muted);
    margin-bottom: 2rem;
}

.hero-actions {
    display: flex;
    gap: 1.2rem;
}

.glow-card {
    background: var(--card-bg);
    border: 3px solid var(--card-border);
    backdrop-filter: var(--glass-blur);
    border-radius: 30px;
    padding: 3rem;
    box-shadow: var(--shadow);
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    animation: floatingArt 5s infinite ease-in-out;
}

.hero-mascot {
    width: 100%;
    max-width: 250px;
    height: auto;
    filter: drop-shadow(0 10px 15px rgba(0,0,0,0.2));
}

@keyframes floatingArt {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    50% { transform: translateY(-15px) rotate(2deg); }
}

.pillars {
    padding: 4rem 0;
}

.pillars-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

.pillar-card {
    background: var(--card-bg);
    border: 2px solid var(--card-border);
    backdrop-filter: var(--glass-blur);
    border-radius: 24px;
    padding: 2.5rem;
    text-align: center;
    box-shadow: var(--shadow);
    transition: transform 0.3s ease, border-color 0.3s ease;
}

.pillar-card:hover {
    transform: translateY(-8px);
    border-color: var(--primary);
}

.pillar-icon {
    font-size: 3.5rem;
    margin-bottom: 1.2rem;
    display: block;
}

.games-section {
    padding: 6rem 0;
}

.section-header {
    margin-bottom: 3.5rem;
}

.text-center {
    text-align: center;
}

.games-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2.5rem;
}

.game-card {
    background: var(--card-bg);
    border: 2px solid var(--card-border);
    backdrop-filter: var(--glass-blur);
    border-radius: 24px;
    overflow: hidden;
    box-shadow: var(--shadow);
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.game-card:hover {
    transform: scale(1.04) translateY(-5px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.2);
    border-color: var(--accent);
}

.game-image-wrapper {
    position: relative;
    overflow: hidden;
    padding-top: 62.5%; /* 16:10 ratio */
    background: #1a1a3a;
}

.game-image-wrapper img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.game-card:hover .game-image-wrapper img {
    transform: scale(1.1);
}

.game-hover-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(26, 26, 58, 0.6);
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.game-card:hover .game-hover-overlay {
    opacity: 1;
}

.play-icon {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 60px;
    height: 60px;
    background: var(--accent);
    color: #1a1a3a;
    border-radius: 50%;
    font-size: 1.8rem;
    font-weight: bold;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    transform: scale(0.8);
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.game-card:hover .play-icon {
    transform: scale(1);
}

.game-details {
    padding: 1.8rem;
}

.game-genre {
    display: inline-block;
    padding: 0.25rem 0.8rem;
    background: var(--accent);
    color: #1a1a3a;
    font-size: 0.8rem;
    font-weight: 700;
    border-radius: 50px;
    margin-bottom: 0.8rem;
}

.game-details h3 {
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}

.game-details p {
    color: var(--text-muted);
    font-size: 0.95rem;
    margin-bottom: 0;
}

.about-section {
    padding: 6rem 0;
}

.about-grid {
    display: grid;
    grid-template-columns: 0.8fr 1.2fr;
    gap: 4rem;
    align-items: center;
}

.floating-badge-art {
    background: var(--card-bg);
    border: 3px solid var(--card-border);
    backdrop-filter: var(--glass-blur);
    border-radius: 50%;
    width: 250px;
    height: 250px;
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow: var(--shadow);
    margin: 0 auto;
    animation: floatingArt 6s infinite ease-in-out;
}

.giant-emoji {
    font-size: 7rem;
}

.about-text h2 {
    margin-bottom: 1.5rem;
}

.bullet-list {
    margin-top: 1.5rem;
}

.bullet-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
    font-weight: 600;
}

.bullet-check {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 28px;
    height: 28px;
    background: var(--primary);
    color: #ffffff;
    border-radius: 50%;
    font-size: 0.85rem;
    font-weight: bold;
}

.interactive-box {
    padding: 6rem 0;
    background: var(--bg-overlay-darker);
    border-top: 2px solid var(--card-border);
    border-bottom: 2px solid var(--card-border);
}

.flask-container {
    display: flex;
    justify-content: center;
    margin: 2.5rem 0;
}

.flask {
    width: 140px;
    height: 200px;
    border: 8px solid var(--text-primary);
    border-radius: 30px 30px 80px 80px;
    position: relative;
    background: rgba(255, 255, 255, 0.05);
    overflow: hidden;
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
}

.liquid {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 0%;
    background: linear-gradient(180deg, var(--accent) 0%, var(--primary) 100%);
    border-radius: 0 0 70px 70px;
    transition: height 0.4s ease;
}

.flask-counter {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-family: var(--font-heading);
    font-weight: 800;
    font-size: 1.8rem;
    color: var(--text-primary);
    text-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

.contact-section {
    padding: 6rem 0;
}

.contact-box {
    background: var(--card-bg);
    border: 2px solid var(--card-border);
    backdrop-filter: var(--glass-blur);
    border-radius: 32px;
    padding: 4rem;
    box-shadow: var(--shadow);
    max-width: 800px;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
}

.form-group {
    margin-bottom: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

label {
    font-weight: 700;
    font-size: 0.95rem;
    color: var(--text-primary);
}

input, textarea {
    font-family: var(--font-body);
    font-weight: 600;
    padding: 1rem 1.5rem;
    border-radius: 20px;
    border: 3px solid var(--card-border);
    background: rgba(255, 255, 255, 0.08);
    color: var(--text-primary);
    outline: none;
    transition: all 0.3s ease;
}

.theme-bright input, .theme-bright textarea {
    background: rgba(0, 0, 0, 0.03);
}

input:focus, textarea:focus {
    border-color: var(--primary);
    background: rgba(255, 255, 255, 0.15);
}

.toast-success {
    display: none;
    margin-top: 1.5rem;
    padding: 1rem;
    background: var(--accent);
    color: #1a1a3a;
    font-weight: 700;
    border-radius: 15px;
    text-align: center;
    animation: popToast 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

@keyframes popToast {
    0% { transform: scale(0.8); opacity: 0; }
    100% { transform: scale(1); opacity: 1; }
}

.footer {
    background: var(--bg-overlay-darker);
    border-top: 2px solid var(--card-border);
    padding: 5rem 0 2rem 0;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr 1fr;
    gap: 4rem;
    margin-bottom: 3.5rem;
}

.footer-logo {
    height: 48px;
    margin-bottom: 1.5rem;
}

.footer-brand p {
    color: var(--text-muted);
    font-size: 0.95rem;
}

.footer-links {
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
}

.footer-links h4, .footer-newsletter h4 {
    color: var(--secondary);
    margin-bottom: 1.2rem;
}

.footer-links a {
    text-decoration: none;
    color: var(--text-muted);
    font-weight: 600;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: var(--primary);
}

.footer-newsletter p {
    color: var(--text-muted);
    font-size: 0.95rem;
    margin-bottom: 1rem;
}

.newsletter-form {
    display: flex;
    gap: 0.8rem;
}

.newsletter-form input {
    flex: 1;
    padding: 0.8rem 1.2rem;
    border-radius: 12px;
}

.footer-bottom {
    border-top: 2px solid var(--card-border);
    padding-top: 2rem;
    color: var(--text-muted);
    font-size: 0.9rem;
}

.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(13, 13, 29, 0.7);
    backdrop-filter: blur(10px);
    z-index: 1000;
    justify-content: center;
    align-items: center;
}

.modal-content {
    background: var(--bg-overlay-darker);
    border: 3px solid var(--primary);
    border-radius: 32px;
    padding: 3rem;
    width: 90%;
    max-width: 550px;
    position: relative;
    box-shadow: 0 20px 50px rgba(0,0,0,0.5);
    text-align: center;
}

.modal-close {
    position: absolute;
    top: 15px;
    right: 25px;
    font-size: 2rem;
    cursor: pointer;
    color: var(--text-muted);
    transition: color 0.3s ease;
}

.modal-close:hover {
    color: var(--primary);
}

.game-sandbox {
    background: #0d0d1d;
    border-radius: 20px;
    padding: 2.5rem;
    margin-top: 1.5rem;
    border: 2px solid var(--card-border);
}

.sandbox-loader {
    color: var(--accent);
    font-weight: 700;
    margin-bottom: 1.5rem;
    display: none;
}

.sandbox-gameplay {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.2rem;
}

.mascot-avatar {
    font-size: 4rem;
    animation: mascotBob 1s infinite alternate;
}

@keyframes mascotBob {
    0% { transform: translateY(0); }
    100% { transform: translateY(-10px); }
}

@media (max-width: 992px) {
    h1 { font-size: 2.5rem; }
    .hero { padding: 4rem 0; }
    .hero-grid {
        grid-template-columns: 1fr;
        gap: 3rem;
        text-align: center;
    }
    .hero-actions {
        justify-content: center;
    }
    .hero-graphic {
        max-width: 450px;
        margin: 0 auto;
    }
    .about-grid {
        grid-template-columns: 1fr;
        gap: 3rem;
        text-align: center;
    }
    .floating-badge-art {
        width: 200px;
        height: 200px;
    }
    .giant-emoji { font-size: 5rem; }
    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }
    .footer-newsletter {
        grid-column: span 2;
    }
}

@media (max-width: 768px) {
    h1 { font-size: 2.2rem; }
    h2 { font-size: 1.8rem; }
    .header { padding: 0.5rem 0; }
    .menu-toggle { display: flex; }
    .nav {
        display: none;
        flex-direction: column;
        width: 100%;
        position: absolute;
        top: 100%;
        left: 0;
        background: var(--bg-overlay-darker);
        border-bottom: 3px solid var(--primary);
        padding: 2rem 0;
        gap: 1.5rem;
        box-shadow: var(--shadow);
    }
    .nav.open {
        display: flex;
    }
    .btn-nav {
        width: 80%;
    }
    .hero-actions {
        flex-direction: column;
        align-items: center;
        width: 100%;
    }
    .hero-actions .btn {
        width: 100%;
        max-width: 320px;
    }
    .form-row {
        grid-template-columns: 1fr;
        gap: 0;
    }
    .contact-box {
        padding: 2rem;
    }
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 2.5rem;
    }
    .footer-newsletter {
        grid-column: span 1;
    }
}
