/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Press Start 2P', cursive;
    background: linear-gradient(135deg, #87CEEB 0%, #98FB98 100%);
    min-height: 100vh;
    overflow-x: hidden;
    position: relative;
}

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

/* Animated Background Elements */
.bg-elements {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: -1;
}

.cloud {
    position: absolute;
    width: 60px;
    height: 30px;
    background: white;
    border-radius: 30px;
    opacity: 0.8;
    animation: float 6s ease-in-out infinite;
}

.cloud::before,
.cloud::after {
    content: '';
    position: absolute;
    background: white;
    border-radius: 50%;
}

.cloud::before {
    width: 25px;
    height: 25px;
    top: -12px;
    left: 10px;
}

.cloud::after {
    width: 35px;
    height: 35px;
    top: -15px;
    right: 8px;
}

.cloud-1 {
    top: 10%;
    left: 20%;
    animation-delay: 0s;
}

.cloud-2 {
    top: 20%;
    right: 30%;
    animation-delay: -2s;
}

.cloud-3 {
    top: 5%;
    left: 60%;
    animation-delay: -4s;
}

.coin {
    position: absolute;
    width: 20px;
    height: 20px;
    background: #FFD700;
    border-radius: 50%;
    border: 2px solid #FFA500;
    animation: spin 2s linear infinite, float 3s ease-in-out infinite;
}

.coin::after {
    content: '$';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: #FFA500;
    font-size: 8px;
    font-weight: bold;
}

.coin-1 {
    top: 15%;
    left: 10%;
    animation-delay: 0s;
}

.coin-2 {
    top: 25%;
    right: 20%;
    animation-delay: -1s;
}

.coin-3 {
    top: 35%;
    left: 70%;
    animation-delay: -0.5s;
}

.pipe {
    position: absolute;
    width: 30px;
    height: 60px;
    background: #228B22;
    border: 2px solid #006400;
    bottom: 20%;
}

.pipe::before {
    content: '';
    position: absolute;
    top: -8px;
    left: -4px;
    width: 38px;
    height: 12px;
    background: #228B22;
    border: 2px solid #006400;
}

.pipe-1 {
    right: 15%;
}

.brick {
    position: absolute;
    width: 25px;
    height: 25px;
    background: #D2691E;
    border: 2px solid #8B4513;
    background-image: 
        linear-gradient(45deg, #CD853F 25%, transparent 25%), 
        linear-gradient(-45deg, #CD853F 25%, transparent 25%);
    background-size: 6px 6px;
    background-position: 0 0, 3px 3px;
}

.brick-1 {
    top: 40%;
    left: 25%;
}

.brick-2 {
    top: 50%;
    right: 40%;
}

.mushroom {
    position: absolute;
    width: 20px;
    height: 20px;
    background: #FF4500;
    border-radius: 50% 50% 50% 50% / 60% 60% 40% 40%;
    border: 2px solid #DC143C;
}

.mushroom::before {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 50%;
    transform: translateX(-50%);
    width: 8px;
    height: 8px;
    background: #F5DEB3;
    border: 2px solid #DEB887;
}

.mushroom::after {
    content: '';
    position: absolute;
    top: 4px;
    left: 6px;
    width: 4px;
    height: 4px;
    background: white;
    border-radius: 50%;
}

.mushroom-1 {
    bottom: 30%;
    left: 80%;
}

/* Header Styles */
.pixel-header {
    background: linear-gradient(45deg, #4285f4, #34a853);
    border-bottom: 4px solid #1a73e8;
    padding: 10px 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0,0,0,0.3);
}

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

.logo h1 {
    color: white;
    font-size: 18px;
    text-shadow: 2px 2px 0px #000;
    margin-bottom: 2px;
}

.logo .subtitle {
    color: #FFD700;
    font-size: 8px;
    display: block;
    text-shadow: 1px 1px 0px #000;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 20px;
}

.nav-link {
    color: white;
    text-decoration: none;
    font-size: 10px;
    padding: 8px 12px;
    border: 2px solid transparent;
    transition: all 0.3s ease;
    text-shadow: 1px 1px 0px #000;
}

.nav-link:hover {
    background: rgba(255,255,255,0.2);
    border-color: #FFD700;
    transform: translateY(-2px);
}

.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
}

.hamburger span {
    width: 20px;
    height: 3px;
    background: white;
    margin: 2px 0;
    transition: 0.3s;
}

/* Hero Section */
.hero {
    position: relative;
    height: 60vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #87CEEB 0%, #98FB98 100%);
    overflow: hidden;
}

.hero-banner {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.banner-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.3;
    filter: brightness(1.2) contrast(1.1);
}

.parallax-ground {
    position: absolute;
    bottom: 0;
    width: 100%;
    height: 100px;
    background: #228B22;
    background-image: 
        repeating-linear-gradient(90deg, #32CD32 0, #32CD32 20px, #228B22 20px, #228B22 40px);
    border-top: 4px solid #006400;
    z-index: 2;
}

.hero-content {
    text-align: center;
    z-index: 3;
    background: rgba(255,255,255,0.95);
    padding: 30px;
    border: 4px solid #000;
    border-radius: 0;
    box-shadow: 8px 8px 0px #000;
}

.hero-title {
    font-size: 24px;
    color: #1a73e8;
    margin-bottom: 15px;
    text-shadow: 2px 2px 0px #000;
}

.hero-subtitle {
    font-size: 12px;
    color: #ea4335;
    margin-bottom: 15px;
}

.hero-description {
    font-size: 8px;
    color: #333;
    margin-bottom: 20px;
    line-height: 1.4;
}

.cta-button {
    display: inline-block;
    background: #ea4335;
    color: white;
    padding: 12px 24px;
    text-decoration: none;
    font-size: 10px;
    border: 3px solid #000;
    box-shadow: 4px 4px 0px #000;
    transition: all 0.2s ease;
    text-shadow: 1px 1px 0px #000;
}

.mario-jump:hover {
    transform: translateY(-8px);
    box-shadow: 4px 12px 0px #000;
}

/* Section Styles */
.section-title {
    text-align: center;
    font-size: 20px;
    color: #1a73e8;
    margin-bottom: 30px;
    text-shadow: 2px 2px 0px #000;
}

.section-subtitle {
    text-align: center;
    font-size: 10px;
    color: #666;
    margin-bottom: 40px;
}

/* About Section */
.about-section {
    padding: 60px 0;
    background: rgba(255,255,255,0.1);
}

.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: center;
}

.about-text {
    position: relative;
}

.bouncing-blocks {
    position: absolute;
    top: -20px;
    right: -20px;
    display: flex;
    gap: 10px;
}

.bounce-block {
    width: 15px;
    height: 15px;
    background: #FFD700;
    border: 2px solid #FFA500;
    animation: bounce 1s ease-in-out infinite;
}

.bounce-block:nth-child(2) {
    animation-delay: 0.2s;
}

.bounce-block:nth-child(3) {
    animation-delay: 0.4s;
}

.about-text h3 {
    font-size: 14px;
    color: #ea4335;
    margin-bottom: 15px;
}

.about-text p {
    font-size: 8px;
    line-height: 1.5;
    margin-bottom: 15px;
    color: #333;
}

.pixel-button {
    display: inline-block;
    background: #34a853;
    color: white;
    padding: 8px 16px;
    text-decoration: none;
    font-size: 8px;
    border: 2px solid #000;
    box-shadow: 2px 2px 0px #000;
    transition: all 0.2s ease;
}

.pixel-button:hover {
    transform: translateY(-2px);
    box-shadow: 2px 4px 0px #000;
}

.character-timeline {
    position: relative;
    height: 200px;
    background: linear-gradient(to right, #87CEEB, #98FB98);
    border: 3px solid #000;
    overflow: hidden;
}

.running-character {
    position: absolute;
    bottom: 20px;
    width: 30px;
    height: 30px;
    background: #ea4335;
    border: 2px solid #000;
    animation: run 3s linear infinite;
}

.running-character::before {
    content: '';
    position: absolute;
    top: -8px;
    left: 50%;
    transform: translateX(-50%);
    width: 20px;
    height: 20px;
    background: #FFD700;
    border: 2px solid #000;
    border-radius: 50%;
}

.timeline-track {
    position: absolute;
    bottom: 0;
    width: 100%;
    height: 20px;
    background: #228B22;
    background-image: repeating-linear-gradient(90deg, #32CD32 0, #32CD32 10px, #228B22 10px, #228B22 20px);
}

/* Features Section */
.features-section {
    padding: 60px 0;
    background: rgba(255,255,255,0.9);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.feature-card {
    background: white;
    padding: 30px 20px;
    border: 3px solid #000;
    text-align: center;
    box-shadow: 4px 4px 0px #000;
    transition: all 0.3s ease;
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: 4px 9px 0px #000;
}

.feature-icon {
    font-size: 24px;
    margin-bottom: 15px;
}

.feature-card h3 {
    font-size: 12px;
    color: #1a73e8;
    margin-bottom: 15px;
}

.feature-card p {
    font-size: 8px;
    color: #666;
    line-height: 1.4;
}

/* Games Section */
.games-section {
    padding: 60px 0;
    background: rgba(0,0,0,0.05);
}

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

.game-card {
    background: white;
    border: 4px solid #000;
    overflow: hidden;
    transition: all 0.3s ease;
    position: relative;
}

.game-card:hover {
    transform: translateY(-8px);
    box-shadow: 8px 8px 0px #000;
}

.game-image {
    position: relative;
    height: 150px;
    overflow: hidden;
}

.game-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.coin-sparkle {
    position: absolute;
    top: 10px;
    right: 10px;
    width: 20px;
    height: 20px;
    background: #FFD700;
    border-radius: 50%;
    opacity: 0;
    animation: sparkle 2s ease-in-out infinite;
}

.coin-sparkle::after {
    content: '✨';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 12px;
}

.game-content {
    padding: 20px;
    text-align: center;
}

.game-content h3 {
    font-size: 12px;
    color: #1a73e8;
    margin-bottom: 10px;
}

.game-content p {
    font-size: 8px;
    color: #666;
    margin-bottom: 15px;
    line-height: 1.4;
}

.play-button {
    display: inline-block;
    background: #ea4335;
    color: white;
    padding: 10px 20px;
    text-decoration: none;
    font-size: 8px;
    border: 3px solid #000;
    box-shadow: 3px 3px 0px #000;
    transition: all 0.2s ease;
    text-shadow: 1px 1px 0px #000;
}

/* Disclaimer Section */
.disclaimer-section {
    padding: 40px 0;
    background: rgba(255,0,0,0.1);
}

.disclaimer-box {
    background: white;
    padding: 30px;
    border: 4px solid #ea4335;
    text-align: center;
    box-shadow: 4px 4px 0px #ea4335;
}

.disclaimer-box h3 {
    font-size: 16px;
    color: #ea4335;
    margin-bottom: 15px;
}

.disclaimer-box p {
    font-size: 8px;
    color: #333;
    line-height: 1.5;
}

/* Footer */
.pixel-footer {
    position: relative;
    background: #2c3e50;
    color: white;
    padding: 40px 0 20px;
    margin-top: 60px;
}

.brick-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #D2691E;
    background-image: 
        linear-gradient(45deg, #CD853F 25%, transparent 25%), 
        linear-gradient(-45deg, #CD853F 25%, transparent 25%);
    background-size: 20px 20px;
    background-position: 0 0, 10px 10px;
    opacity: 0.1;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    position: relative;
    z-index: 2;
}

.footer-section h4 {
    font-size: 12px;
    color: #FFD700;
    margin-bottom: 15px;
    text-shadow: 1px 1px 0px #000;
}

.footer-section p,
.footer-section ul {
    font-size: 8px;
    line-height: 1.5;
}

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

.footer-section ul li {
    margin-bottom: 8px;
}

.footer-section ul li a {
    color: white;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-section ul li a:hover {
    color: #FFD700;
}

.footer-bottom {
    margin-top: 30px;
    padding-top: 20px;
    border-top: 2px solid #FFD700;
    text-align: center;
    position: relative;
    z-index: 2;
}

.disclaimer-text {
    font-size: 10px;
    color: #FFD700;
    margin-bottom: 10px;
    font-weight: bold;
}

.footer-bottom p {
    font-size: 8px;
    color: #bbb;
}

/* Contact Form Styles */
.contact-form {
    margin-top: 30px;
}

.pixel-form {
    background: rgba(255,255,255,0.1);
    padding: 20px;
    border: 3px solid #000;
    box-shadow: 4px 4px 0px #000;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    font-size: 8px;
    color: #333;
    margin-bottom: 5px;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 8px;
    border: 2px solid #000;
    background: white;
    font-family: 'Press Start 2P', cursive;
    font-size: 6px;
    box-shadow: 2px 2px 0px #000;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #1a73e8;
    box-shadow: 2px 2px 0px #1a73e8;
}

/* Game Info Styles */
.game-info {
    background: rgba(255,255,255,0.9);
    padding: 20px;
    margin: 20px 0;
    border: 3px solid #000;
    box-shadow: 4px 4px 0px #000;
}

.game-info h2 {
    font-size: 14px;
    color: #1a73e8;
    margin-bottom: 15px;
    text-shadow: 1px 1px 0px #000;
}

.game-info p {
    font-size: 8px;
    line-height: 1.5;
    color: #333;
}

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

@keyframes spin {
    from { transform: rotateY(0deg); }
    to { transform: rotateY(360deg); }
}

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

@keyframes run {
    0% { left: -50px; }
    100% { left: calc(100% + 50px); }
}

@keyframes sparkle {
    0%, 100% { opacity: 0; transform: scale(1); }
    50% { opacity: 1; transform: scale(1.2); }
}

/* Responsive Design */
@media (max-width: 768px) {
    .nav-menu {
        display: none;
        position: fixed;
        top: 60px;
        left: 0;
        width: 100%;
        background: #4285f4;
        flex-direction: column;
        padding: 20px;
        box-shadow: 0 2px 10px rgba(0,0,0,0.3);
    }

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

    .hamburger {
        display: flex;
    }

    .hero-title {
        font-size: 18px;
    }

    .hero-subtitle {
        font-size: 10px;
    }

    .hero-description {
        font-size: 7px;
    }

    .about-content {
        grid-template-columns: 1fr;
        gap: 30px;
    }

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

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

    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .hero {
        height: 50vh;
    }

    .hero-content {
        padding: 20px;
    }

    .hero-title {
        font-size: 14px;
    }

    .section-title {
        font-size: 16px;
    }

    .games-grid,
    .features-grid {
        gap: 20px;
    }
}

/* Game Page Styles */
.game-page {
    min-height: 100vh;
    background: linear-gradient(135deg, #1a1a1a, #2c2c2c);
}

.game-header {
    background: #000;
    color: white;
    padding: 20px 0;
    border-bottom: 4px solid #FFD700;
}

.game-header h1 {
    text-align: center;
    font-size: 16px;
    color: #FFD700;
    text-shadow: 2px 2px 0px #000;
}

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

.game-frame {
    background: white;
    border: 8px solid #000;
    box-shadow: 8px 8px 0px #333;
    margin-bottom: 20px;
}

.back-button {
    display: inline-block;
    background: #34a853;
    color: white;
    padding: 10px 20px;
    text-decoration: none;
    font-size: 10px;
    border: 3px solid #000;
    box-shadow: 3px 3px 0px #000;
    transition: all 0.2s ease;
    margin-bottom: 20px;
}

.back-button:hover {
    transform: translateY(-2px);
    box-shadow: 3px 5px 0px #000;
}