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

body {
    font-family: 'Poppins', sans-serif;
    line-height: 1.6;
    color: #333;
    overflow-x: hidden;
}

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

/* Header Styles */
.header {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    z-index: 1000;
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.1);
}

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

.nav-brand h1 {
    font-size: 1.8rem;
    font-weight: 700;
    color: #2d5a27;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
    align-items: center;
}

.nav-menu a {
    text-decoration: none;
    color: #333;
    font-weight: 500;
    transition: color 0.3s ease;
}

.nav-menu a:hover {
    color: #2d5a27;
}

.btn-play {
    background: linear-gradient(135deg, #4CAF50, #2d5a27);
    color: white !important;
    padding: 0.5rem 1.5rem;
    border-radius: 25px;
    transition: transform 0.3s ease;
}

.btn-play:hover {
    transform: translateY(-2px);
    color: white !important;
}

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

.hamburger span {
    width: 25px;
    height: 3px;
    background: #333;
    margin: 3px 0;
    transition: 0.3s;
}

/* Hero Section */
.hero {
    min-height: 100vh;
    background: #f0f4f0;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 2rem;
    margin-top: 80px;
    position: relative;
    overflow: hidden;
}

.game-container {
    text-align: center;
    max-width: 800px;
    width: 100%;
    position: relative;
    z-index: 10;
}

/* Game Title */
.game-title h1 {
    font-size: 2.8rem;
    font-weight: 600;
    color: #4a5c4a;
    margin-bottom: 2rem;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

/* Game Stats */
.game-stats {
    display: flex;
    justify-content: center;
    gap: 4rem;
    margin-bottom: 3rem;
}

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

.stat-label {
    font-size: 1rem;
    color: #888;
    margin-bottom: 0.5rem;
    font-weight: 400;
}

.stat-value {
    font-size: 2.5rem;
    font-weight: bold;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

.clicks-value {
    color: #4CAF50;
}

.cps-value {
    color: #FF9800;
}

/* Lizard Container */
.lizard-container {
    margin: 3rem 0;
    display: flex;
    justify-content: center;
    align-items: center;
}

/* Lizard Character */
.lizard-character {
    background: none;
    border: none;
    cursor: pointer;
    position: relative;
    transition: transform 0.1s ease;
    touch-action: manipulation;
    padding: 0;
}

.lizard-character:hover {
    transform: scale(1.05);
}

.lizard-character:active {
    transform: scale(0.95);
}

.lizard-image {
    width: 300px;
    height: auto;
    max-width: 100%;
    border-radius: 20px;
    box-shadow: 
        0 20px 40px rgba(0, 0, 0, 0.2),
        0 10px 20px rgba(0, 0, 0, 0.1);
    animation: lizard-breathe 3s ease-in-out infinite;
    user-select: none;
    -webkit-user-drag: none;
    -khtml-user-drag: none;
    -moz-user-drag: none;
    -o-user-drag: none;
    transition: transform 0.1s ease;
}

/* Game Description */
.game-description {
    margin: 2rem 0;
    color: #666;
}

.main-text {
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
    color: #555;
}

.sub-text {
    font-size: 1rem;
    color: #888;
}

/* Control Buttons */
.control-buttons {
    position: absolute;
    bottom: 20px;
    right: 20px;
    display: flex;
    gap: 10px;
    z-index: 100;
}

.control-btn {
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.9);
    border: none;
    border-radius: 8px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transition: all 0.2s ease;
}

.control-btn:hover {
    background: rgba(255, 255, 255, 1);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.control-btn:active {
    transform: translateY(0);
}

/* Flying Lizards */
.flying-lizards {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
}

.flying-lizard {
    position: absolute;
    font-size: 2rem;
    opacity: 0;
    user-select: none;
    pointer-events: none;
}

.flying-lizard.animate {
    animation: flyAway 2s ease-out forwards;
}

/* Click effect */
.click-effect {
    position: absolute;
    color: #4CAF50;
    font-weight: bold;
    font-size: 1.5rem;
    pointer-events: none;
    user-select: none;
    z-index: 100;
}

.click-effect.animate {
    animation: clickPop 1s ease-out forwards;
}

/* Animations */
@keyframes lizard-breathe {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.02);
    }
}

@keyframes flyAway {
    0% {
        opacity: 1;
        transform: translateY(0) scale(1) rotate(0deg);
    }
    100% {
        opacity: 0;
        transform: translateY(-100px) scale(0.5) rotate(360deg);
    }
}

@keyframes clickPop {
    0% {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
    100% {
        opacity: 0;
        transform: translateY(-50px) scale(1.5);
    }
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .hamburger {
        display: flex;
    }
    
    .nav-menu {
        position: fixed;
        left: -100%;
        top: 80px;
        flex-direction: column;
        background-color: white;
        width: 100%;
        text-align: center;
        transition: 0.3s;
        box-shadow: 0 10px 27px rgba(0, 0, 0, 0.05);
        padding: 2rem 0;
    }
    
    .nav-menu.active {
        left: 0;
    }
    
    .hero {
        padding: 1rem;
    }
    
    .game-title h1 {
        font-size: 2rem;
    }
    
    .game-stats {
        gap: 2rem;
    }
    
    .stat-value {
        font-size: 2rem;
    }
    
    .lizard-image {
        width: 200px;
    }
    
    .control-buttons {
        bottom: 10px;
        right: 10px;
    }
    
    .control-btn {
        width: 35px;
        height: 35px;
        font-size: 1rem;
    }
}

@media (max-width: 480px) {
    .game-title h1 {
        font-size: 1.8rem;
    }
    
    .game-stats {
        gap: 1.5rem;
    }
    
    .stat-value {
        font-size: 1.8rem;
    }
    
    .lizard-image {
        width: 180px;
    }
    
    .main-text {
        font-size: 1rem;
    }
    
    .sub-text {
        font-size: 0.9rem;
    }
}