/* Heros Section */
.heros {
    background: linear-gradient(135deg, #0f394c, #49b4e7);
    color: white;
    padding: 6rem 1rem;
    text-align: center;
}

.hero-content {
    max-width: 800px;
    margin: 0 auto;
}

.heros h1 {
    font-size: 2.8rem;
    margin-bottom: 1.5rem;
    color: #fff;
    font-weight: 600;
}

.heros p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    opacity: 0.9;
}

/* Features Section */
.features {
    padding: 4rem 1rem;
    background: #fff;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.feature-card {
    text-align: center;
    padding: 2rem;
    border-radius: 15px;
    background: rgba(73, 180, 231, 0.05);
    border: 1px solid #49b5e7;
}

.feature-icon {
    font-size: 2.5rem;
    color: #49b4e7;
    margin-bottom: 1rem;
}

/* How to Play */
.how-to-play {
    padding: 4rem 1rem;
    background: #fff;
}

.steps-container {
    max-width: 800px;
    margin: 0 auto;
}

.step {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    margin-bottom: 2rem;
    padding: 1.5rem;
    background: #fff;
    border-radius: 15px;
    background: #f5fbff;
    border: 1px solid #49b5e7;
}

.step-number {
    width: 40px;
    height: 40px;
    background: #49b4e7;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    font-weight: bold;
}

/* Game Section */
.game-section {
    padding: 4rem 1rem;
    background: #f5fbff;
}

.stats-bar {
    background: #fff;
    padding: 1rem;
    position: sticky;
    z-index: 100;
    box-shadow: 0 2px 10px rgba(15, 57, 76, 0.05);
    max-width: 800px;
    width: 100%;
    margin: auto;
    border-radius: 8px;
}

.game-stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
    margin: 0 auto;
}

.stat {
    text-align: center;
    padding: 0.5rem;
    background: rgba(73, 180, 231, 0.05);
    border-radius: 8px;
    border: 1px solid rgba(73, 180, 231, 0.1);
}

.game-container {
    width: 95%;
    height: 65vh;
    min-height: 400px;
    max-width: 800px;
    margin: 2rem auto;
    background: #fff;
    border-radius: 15px;
    border: 3px dashed #49b4e7;
    position: relative;
    overflow: hidden;
}

.target {
    position: absolute;
    background: #49b4e7;
    border-radius: 50%;
    cursor: pointer;
    box-shadow: 0 5px 15px rgba(73, 180, 231, 0.3);
    display: none;
}

.controls {
    text-align: center;
    padding: 1rem;
    max-width: 800px;
    margin: 0 auto;
}

.difficulty-selector {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.difficulty-btn {
    padding: 0.6rem 1.2rem;
    border-radius: 25px;
    background: #fff;
    border: 2px solid #49b4e7;
    color: #0f394c;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}

.difficulty-btn.active {
    background: #49b4e7;
    color: #fff;
}

.cta-button {
    background: #49b4e7;
    color: #fff;
    padding: 1rem 2rem;
    border-radius: 30px;
    border: none;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.2s ease;
    width: 200px;
    margin: 1rem auto;
    display: block;
    text-decoration: none;
}

.cta-button:hover {
  background: #0f394c;
  transform: translateY(-2px);
  color: #fff;
}

#startBtn {
    margin: 2rem auto;
}

/* End Game Modal */
.end-game-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(15, 57, 76, 0.95);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

.modal-content {
    background: #fff;
    padding: 2rem;
    border-radius: 15px;
    text-align: center;
    max-width: 400px;
    width: 90%;
    position: relative;
}

.close-btn {
    position: absolute;
    top: 15px;
    right: 15px;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: #49b4e7;
    color: white;
    border: none;
    cursor: pointer;
    font-size: 1.2rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.close-btn:hover {
    opacity: 0.5;
}

.stat-label {
    font-size: 12px;
}

.end-game-modal p {
    margin: 0;
}

@media (max-width: 768px) {
    .heros h1 {
        font-size: 2rem;
    }
    
    .step {
        flex-direction: column;
        text-align: center;
    }
    
    .game-container {
        height: 60vh;
        min-height: 300px;
    }
}

@keyframes targetPulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.1); }
    100% { transform: scale(1); }
}

@media (max-width: 1199px) {
    .stats-bar {
      top: 70px;
    }
}


@media (max-width: 880px) {
    #game-section {
      padding-left: 0;
      padding-right: 0;
    }
}