/* ========== RESET & BASE ========== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Roboto', sans-serif;
    line-height: 1.6;
    color: #333;
    background: #f8f9fa;
}

h1, h2, h3 {
    font-family: 'Playfair Display', serif;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ========== VISIT COUNTER ========== */
.visit-counter {
    position: fixed;
    top: 80px;
    right: 20px;
    background: rgba(196, 30, 58, 0.9);
    color: white;
    padding: 10px 20px;
    border-radius: 30px;
    font-size: 14px;
    z-index: 999;
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    display: flex;
    align-items: center;
    gap: 8px;
    animation: pulse 2s infinite;
}

.visit-counter i {
    font-size: 16px;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

/* ========== SNAKE ICON ========== */
.snake-icon {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 40px;
    height: 40px;
    background: rgba(0, 0, 0, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    opacity: 0.15;
    transition: all 0.3s ease;
    z-index: 1000;
}

.snake-icon:hover {
    opacity: 0.8;
    background: #4CAF50;
    color: white;
    transform: scale(1.2);
}

/* ========== MODAL ========== */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    z-index: 2000;
    justify-content: center;
    align-items: center;
}

.modal.active {
    display: flex;
}

.modal-content {
    background: #1a1a2e;
    padding: 30px;
    border-radius: 15px;
    text-align: center;
    color: white;
    position: relative;
}

.modal-content h2 {
    margin-bottom: 15px;
    color: #4CAF50;
}

.close-btn {
    position: absolute;
    top: 10px;
    right: 15px;
    font-size: 30px;
    cursor: pointer;
    color: #ff6b6b;
    transition: transform 0.3s;
}

.close-btn:hover {
    transform: rotate(90deg);
}

.game-controls {
    margin-bottom: 15px;
}

.game-controls select {
    padding: 8px 15px;
    border-radius: 5px;
    border: none;
    margin: 0 10px;
    font-size: 14px;
}

.game-controls button {
    padding: 8px 25px;
    background: #4CAF50;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 14px;
    transition: background 0.3s;
}

.game-controls button:hover {
    background: #45a049;
}

#snakeCanvas {
    background: #16213e;
    border: 3px solid #4CAF50;
    border-radius: 10px;
}

#score {
    font-size: 24px;
    color: #4CAF50;
    font-weight: bold;
}

.controls-info {
    color: #888;
    font-size: 12px;
    margin-top: 10px;
}

/* ========== NAVBAR ========== */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.1);
    z-index: 1000;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 15px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 28px;
    font-weight: bold;
    color: #c41e3a;
    text-decoration: none;
    font-family: 'Playfair Display', serif;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 30px;
}

.nav-links a {
    text-decoration: none;
    color: #333;
    font-weight: 500;
    transition: color 0.3s;
    position: relative;
}

.nav-links a:hover {
    color: #c41e3a;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: #c41e3a;
    transition: width 0.3s;
}

.nav-links a:hover::after {
    width: 100%;
}

/* ========== HERO SECTION ========== */
.hero {
    height: 100vh;
    background: linear-gradient(135deg, #c41e3a 0%, #8b0000 50%, #1a1a2e 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><circle cx="50" cy="50" r="2" fill="rgba(255,255,255,0.1)"/></svg>');
    background-size: 50px 50px;
    animation: float 20s linear infinite;
}

@keyframes float {
    0% { transform: translateY(0); }
    100% { transform: translateY(-50px); }
}

.hero-content {
    z-index: 1;
    color: white;
}

.hero-content h1 {
    font-size: 4rem;
    margin-bottom: 10px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
    animation: fadeInUp 1s ease;
}

.hero-content .subtitle {
    font-size: 1.5rem;
    opacity: 0.9;
    margin-bottom: 20px;
    animation: fadeInUp 1s ease 0.2s backwards;
}

.hero-badge {
    display: inline-block;
    background: rgba(255, 255, 255, 0.2);
    padding: 10px 30px;
    border-radius: 50px;
    font-size: 1.2rem;
    margin-bottom: 30px;
    backdrop-filter: blur(5px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    animation: fadeInUp 1s ease 0.4s backwards;
}

.cta-btn {
    display: inline-block;
    padding: 15px 40px;
    background: white;
    color: #c41e3a;
    text-decoration: none;
    border-radius: 50px;
    font-weight: bold;
    font-size: 1.1rem;
    transition: all 0.3s;
    animation: fadeInUp 1s ease 0.6s backwards;
}

.cta-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ========== ABOUT SECTION ========== */
.about {
    padding: 100px 0;
    background: white;
}

.about h2 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 50px;
    color: #1a1a2e;
}

.about-content {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 50px;
    align-items: center;
}

.about-image img {
    width: 100%;
    border-radius: 20px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.15);
    transition: transform 0.3s;
}

.about-image img:hover {
    transform: scale(1.02);
}

.about-text .lead {
    font-size: 1.3rem;
    font-weight: 500;
    color: #c41e3a;
    margin-bottom: 20px;
}

.about-text p {
    margin-bottom: 15px;
    color: #555;
    font-size: 1.1rem;
}

.about-text .tagline {
    font-size: 1.5rem;
    font-weight: bold;
    color: #c41e3a;
    text-align: center;
    margin-top: 30px;
}

/* ========== GALLERY SECTION ========== */
.gallery {
    padding: 100px 0;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
}

.gallery h2 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 50px;
    color: #1a1a2e;
}

.gallery-slider {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
}

.slider-container {
    position: relative;
    width: 600px;
    height: 450px;
    overflow: hidden;
    border-radius: 20px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.2);
}

.slides {
    position: relative;
    width: 100%;
    height: 100%;
}

.slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0;
    transition: opacity 0.5s ease;
}

.slide.active {
    opacity: 1;
}

.slider-btn {
    width: 50px;
    height: 50px;
    border: none;
    background: #c41e3a;
    color: white;
    border-radius: 50%;
    cursor: pointer;
    font-size: 18px;
    transition: all 0.3s;
}

.slider-btn:hover {
    background: #8b0000;
    transform: scale(1.1);
}

.slider-dots {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
}

.dot {
    width: 12px;
    height: 12px;
    background: rgba(255, 255, 255, 0.5);
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s;
}

.dot.active {
    background: white;
    transform: scale(1.2);
}

/* ========== PROGRAM SECTION ========== */
.program {
    padding: 100px 0;
    background: white;
}

.program h2 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 10px;
    color: #1a1a2e;
}

.section-subtitle {
    text-align: center;
    color: #666;
    font-size: 1.2rem;
    margin-bottom: 50px;
}

.program-cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.program-card {
    background: #f8f9fa;
    padding: 40px 30px;
    border-radius: 20px;
    text-align: center;
    transition: all 0.3s;
    position: relative;
    border: 2px solid transparent;
}

.program-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.15);
    border-color: #c41e3a;
}

.program-card.featured {
    background: linear-gradient(135deg, #c41e3a 0%, #8b0000 100%);
    color: white;
    transform: scale(1.05);
}

.program-card.featured:hover {
    transform: scale(1.05) translateY(-10px);
    border-color: white;
}

.card-badge {
    position: absolute;
    top: -10px;
    right: 20px;
    background: gold;
    color: #333;
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: bold;
}

.card-icon {
    font-size: 4rem;
    margin-bottom: 20px;
}

.program-card h3 {
    font-size: 1.5rem;
    margin-bottom: 15px;
}

.program-card p {
    margin-bottom: 20px;
    line-height: 1.7;
}

.program-card ul {
    list-style: none;
    text-align: left;
}

.program-card ul li {
    padding: 8px 0;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
    position: relative;
    padding-left: 25px;
}

.program-card.featured ul li {
    border-color: rgba(255, 255, 255, 0.2);
}

.program-card ul li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: #4CAF50;
}

.program-card.featured ul li::before {
    color: #90EE90;
}

/* ========== VOTE SECTION ========== */
.vote {
    padding: 100px 0;
    background: linear-gradient(135deg, #f8f9fa 0%, #fff5f5 100%);
}

.vote h2 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 10px;
    color: #1a1a2e;
}

.vote-box {
    max-width: 500px;
    margin: 0 auto;
    background: white;
    padding: 50px 40px;
    border-radius: 25px;
    box-shadow: 0 20px 60px rgba(196, 30, 58, 0.15);
    text-align: center;
    border: 3px solid #c41e3a;
}

.vote-counter {
    margin-bottom: 30px;
}

.vote-number {
    font-size: 5rem;
    font-weight: bold;
    color: #c41e3a;
    font-family: 'Playfair Display', serif;
    line-height: 1;
    animation: countPulse 1s ease;
}

@keyframes countPulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.1); }
}

.vote-label {
    font-size: 1.2rem;
    color: #666;
    margin-top: 10px;
}

.vote-bar-container {
    width: 100%;
    height: 20px;
    background: #e9ecef;
    border-radius: 10px;
    overflow: hidden;
    margin-bottom: 10px;
}

.vote-bar {
    height: 100%;
    background: linear-gradient(90deg, #c41e3a 0%, #ff6b6b 100%);
    border-radius: 10px;
    transition: width 0.5s ease;
    width: 0%;
}

.vote-goal {
    font-size: 0.9rem;
    color: #888;
    margin-bottom: 30px;
}

.vote-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 20px 50px;
    font-size: 1.3rem;
    font-weight: bold;
    color: white;
    background: linear-gradient(135deg, #c41e3a 0%, #8b0000 100%);
    border: none;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s;
    box-shadow: 0 10px 30px rgba(196, 30, 58, 0.4);
}

.vote-btn:hover {
    transform: translateY(-5px) scale(1.05);
    box-shadow: 0 15px 40px rgba(196, 30, 58, 0.5);
}

.vote-btn:active {
    transform: scale(0.95);
}

.vote-btn.voted {
    background: linear-gradient(135deg, #4CAF50 0%, #2e7d32 100%);
    cursor: default;
    box-shadow: 0 10px 30px rgba(76, 175, 80, 0.4);
}

.vote-btn.voted:hover {
    transform: none;
}

.vote-thanks {
    margin-top: 20px;
    font-size: 1.2rem;
    color: #4CAF50;
    font-weight: bold;
    display: none;
}

.vote-thanks.show {
    display: block;
    animation: fadeInUp 0.5s ease;
}

.vote-features {
    display: flex;
    justify-content: center;
    gap: 40px;
    margin-top: 50px;
    flex-wrap: wrap;
}

.vote-feature {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #666;
    font-size: 0.95rem;
}

.vote-feature i {
    color: #c41e3a;
    font-size: 1.2rem;
}

/* ========== CONTACT SECTION ========== */
.contact {
    padding: 100px 0;
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
    color: white;
}

.contact h2 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 10px;
}

.contact .section-subtitle {
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 50px;
}

.contact-cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.contact-card {
    background: rgba(255, 255, 255, 0.1);
    padding: 40px;
    border-radius: 20px;
    text-align: center;
    backdrop-filter: blur(10px);
    transition: all 0.3s;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.contact-card:hover {
    transform: translateY(-10px);
    background: rgba(255, 255, 255, 0.15);
    border-color: #c41e3a;
}

.contact-icon {
    width: 70px;
    height: 70px;
    background: #c41e3a;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    font-size: 28px;
}

.contact-card h3 {
    margin-bottom: 15px;
    font-size: 1.3rem;
}

.contact-card a {
    color: #f8f9fa;
    text-decoration: none;
    font-size: 1.1rem;
    transition: color 0.3s;
}

.contact-card a:hover {
    color: #c41e3a;
}

/* ========== FOOTER ========== */
.footer {
    background: #0d0d1a;
    padding: 30px 0;
    text-align: center;
    color: rgba(255, 255, 255, 0.6);
}

.footer-slogan {
    margin-top: 10px;
    color: #c41e3a;
    font-weight: bold;
}

/* ========== RESPONSIVE ========== */
@media (max-width: 992px) {
    .nav-links {
        display: none;
    }
    
    .hero-content h1 {
        font-size: 2.5rem;
    }
    
    .about-content {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .program-cards,
    .contact-cards {
        grid-template-columns: 1fr;
    }
    
    .program-card.featured {
        transform: none;
    }
    
    .slider-container {
        width: 100%;
        max-width: 500px;
        height: 350px;
    }
    
    .visit-counter {
        top: auto;
        bottom: 70px;
        right: 10px;
        font-size: 12px;
        padding: 8px 15px;
    }
    
    .vote-features {
        flex-direction: column;
        align-items: center;
        gap: 15px;
    }
}