/* Global Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f9f9f9;
}

/* Header Styles */
.header {
    background-color: #2c3e50;
    color: white;
    position: fixed;
    width: 100%;
    top: 0;
    left: 0;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 5%;
}

.logo h1 {
    font-size: 1.8rem;
    font-weight: 700;
    display: flex;
    align-items: center;
}

.logo h1 i {
    margin-right: 0.5rem;
    color: #e74c3c;
}

.nav-links {
    display: flex;
    list-style: none;
}

.nav-links li {
    margin-left: 2rem;
}

.nav-links a {
    color: white;
    text-decoration: none;
    font-size: 1rem;
    font-weight: 500;
    transition: color 0.3s ease;
}

.nav-links a:hover {
    color: #e74c3c;
}

.btn-play {
    background-color: #e74c3c;
    padding: 0.5rem 1.5rem;
    border-radius: 50px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-play:hover {
    background-color: #c0392b;
    transform: translateY(-2px);
}

.menu-toggle {
    display: none;
    font-size: 1.5rem;
    cursor: pointer;
}

/* Hero Section */
.hero {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8rem 5% 4rem;
    background: linear-gradient(135deg, #3498db, #8e44ad);
    color: white;
    min-height: 100vh;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('../images/background-pattern.svg');
    opacity: 0.1;
    z-index: 0;
}

.hero-content {
    max-width: 50%;
    z-index: 1;
}

.hero-content h2 {
    font-size: 3rem;
    margin-bottom: 1rem;
    line-height: 1.2;
}

.snake-text {
    color: #f1c40f;
    font-weight: 700;
}

.hero-content p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
}

.btn-primary {
    display: inline-block;
    background-color: #e74c3c;
    color: white;
    padding: 0.8rem 2rem;
    border-radius: 50px;
    text-decoration: none;
    font-size: 1.1rem;
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-primary:hover {
    background-color: #c0392b;
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(231, 76, 60, 0.3);
}

/* Secondary Button */
.btn-secondary {
    display: inline-block;
    background-color: transparent;
    color: white;
    padding: 0.8rem 2rem;
    border-radius: 50px;
    text-decoration: none;
    font-size: 1.1rem;
    font-weight: 600;
    transition: all 0.3s ease;
    border: 2px solid white;
}

.btn-secondary:hover {
    background-color: white;
    color: #3498db;
    transform: translateY(-3px);
}

/* Hero Buttons Container */
.hero-buttons {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    margin-bottom: 2rem;
}

/* Hero Stats */
.hero-stats {
    display: flex;
    gap: 2rem;
    margin-top: 2rem;
    flex-wrap: wrap;
}

.stat-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.stat-item i {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
    color: #f1c40f;
}

.stat-number {
    font-size: 1.8rem;
    font-weight: 700;
    color: white;
}

.stat-text {
    font-size: 0.9rem;
    opacity: 0.8;
}

/* Mini Game Preview */
.game-preview-mini {
    position: absolute;
    bottom: -30px;
    right: -30px;
    background-color: rgba(255, 255, 255, 0.2);
    border-radius: 10px;
    padding: 1rem;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.2);
    backdrop-filter: blur(10px);
}

.preview-title {
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: white;
}

.preview-grid {
    width: 100px;
    height: 100px;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 5px;
    display: grid;
    grid-template-columns: repeat(10, 1fr);
    grid-template-rows: repeat(10, 1fr);
}

.social-links {
    margin-top: 2rem;
}

.social-icon {
    display: inline-block;
    color: white;
    background-color: rgba(255, 255, 255, 0.2);
    width: 40px;
    height: 40px;
    line-height: 40px;
    text-align: center;
    border-radius: 50%;
    margin-right: 1rem;
    transition: all 0.3s ease;
}

.social-icon:hover {
    background-color: #e74c3c;
    transform: translateY(-3px);
}

.hero-image {
    max-width: 45%;
    z-index: 1;
    position: relative;
}

.snake-animation {
    position: relative;
    width: 400px;
    height: 400px;
    margin: 0 auto;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    border: 2px solid rgba(255, 255, 255, 0.3);
}

.snake-head,
.snake-body,
.snake-food {
    position: absolute;
    width: 20px;
    height: 20px;
    border-radius: 3px;
}

.snake-head {
    background-color: #2ecc71;
    z-index: 2;
    animation: moveHead 6s infinite ease-in-out;
    border-radius: 4px;
}

.snake-body {
    background-color: #27ae60;
    z-index: 1;
    border-radius: 4px;
}

.snake-body:nth-child(2) {
    animation: moveBody1 6s infinite ease-in-out;
}

.snake-body:nth-child(3) {
    animation: moveBody2 6s infinite ease-in-out;
}

.snake-body:nth-child(4) {
    animation: moveBody3 6s infinite ease-in-out;
}

.snake-food {
    background-color: #e74c3c;
    top: 150px;
    left: 300px;
    animation: pulseFood 1s infinite alternate;
    position: relative;
}

.snake-eye {
    position: absolute;
    width: 5px;
    height: 5px;
    background-color: #fff;
    border-radius: 50%;
    top: 5px;
}

.snake-eye.left {
    left: 13px;
}

.snake-eye.right {
    right: 13px;
}

.food-inner {
    position: absolute;
    width: 8px;
    height: 8px;
    background-color: rgba(255, 255, 255, 0.5);
    border-radius: 50%;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    animation: pulseInner 1.5s infinite alternate;
}

/* Animation Keyframes */
@keyframes moveHead {
    0% { top: 50px; left: 50px; }
    15% { top: 50px; left: 200px; }
    30% { top: 150px; left: 200px; }
    45% { top: 150px; left: 300px; }
    60% { top: 250px; left: 300px; }
    75% { top: 250px; left: 100px; }
    90% { top: 100px; left: 100px; }
    100% { top: 50px; left: 50px; }
}

@keyframes moveBody1 {
    0% { top: 50px; left: 30px; }
    15% { top: 50px; left: 180px; }
    30% { top: 150px; left: 180px; }
    45% { top: 150px; left: 280px; }
    60% { top: 250px; left: 280px; }
    75% { top: 250px; left: 80px; }
    90% { top: 100px; left: 80px; }
    100% { top: 50px; left: 30px; }
}

@keyframes moveBody2 {
    0% { top: 50px; left: 10px; }
    15% { top: 50px; left: 160px; }
    30% { top: 150px; left: 160px; }
    45% { top: 150px; left: 260px; }
    60% { top: 250px; left: 260px; }
    75% { top: 250px; left: 60px; }
    90% { top: 100px; left: 60px; }
    100% { top: 50px; left: 10px; }
}

@keyframes moveBody3 {
    0% { top: 70px; left: 10px; }
    15% { top: 70px; left: 160px; }
    30% { top: 170px; left: 160px; }
    45% { top: 170px; left: 260px; }
    60% { top: 270px; left: 260px; }
    75% { top: 270px; left: 60px; }
    90% { top: 120px; left: 60px; }
    100% { top: 70px; left: 10px; }
}

@keyframes pulseFood {
    from { transform: scale(1); opacity: 1; }
    to { transform: scale(1.2); opacity: 0.8; }
}

@keyframes pulseInner {
    from { transform: translate(-50%, -50%) scale(1); opacity: 0.5; }
    to { transform: translate(-50%, -50%) scale(1.4); opacity: 0.8; }
}

/* Eye movement animation that follows the snake's direction */
@keyframes moveEyes {
    0% { transform: translateX(0); }
    15% { transform: translateX(2px); }
    30% { transform: translateY(2px); }
    45% { transform: translateX(2px); }
    60% { transform: translateY(2px); }
    75% { transform: translateX(-2px); }
    90% { transform: translateY(-2px); }
    100% { transform: translateX(0); }
}

.snake-eye {
    animation: moveEyes 6s infinite ease-in-out;
}

/* Section Title */
.section-title {
    text-align: center;
    margin-bottom: 3rem;
}

.section-title h2 {
    font-size: 2.5rem;
    color: #2c3e50;
    margin-bottom: 0.5rem;
}

.section-title p {
    font-size: 1.1rem;
    color: #7f8c8d;
}

/* Features Section */
.features {
    padding: 5rem 5%;
    background-color: white;
}

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

.feature-card {
    background-color: #f9f9f9;
    padding: 2rem;
    border-radius: 10px;
    text-align: center;
    transition: all 0.3s ease;
    border: 1px solid #eaeaea;
}

.feature-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.feature-icon {
    width: 80px;
    height: 80px;
    background-color: #3498db;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    margin: 0 auto 1.5rem;
    transition: all 0.3s ease;
}

.feature-card:hover .feature-icon {
    background-color: #e74c3c;
    transform: scale(1.1);
}

.feature-card h3 {
    font-size: 1.3rem;
    margin-bottom: 1rem;
    color: #2c3e50;
}

.feature-card p {
    color: #7f8c8d;
}

/* How To Play Section */
.how-to-play {
    padding: 5rem 5%;
    background-color: #f8f9fa;
}

.how-to-play-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
}

.instructions {
    max-width: 50%;
    margin-right: 2rem;
}

.instruction-step {
    display: flex;
    margin-bottom: 1.5rem;
    align-items: flex-start;
}

.step-number {
    width: 40px;
    height: 40px;
    background-color: #3498db;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    margin-right: 1rem;
    flex-shrink: 0;
}

.instruction-step p {
    font-size: 1.1rem;
    color: #555;
}

.game-preview {
    max-width: 45%;
}

.game-preview-image {
    position: relative;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.game-preview-image img {
    width: 100%;
    height: auto;
    display: block;
}

.preview-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(44, 62, 80, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.game-preview-image:hover .preview-overlay {
    opacity: 1;
}

.btn-play-now {
    display: inline-block;
    background-color: #e74c3c;
    color: white;
    padding: 0.8rem 2rem;
    border-radius: 50px;
    text-decoration: none;
    font-size: 1.1rem;
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-play-now:hover {
    background-color: #c0392b;
    transform: scale(1.1);
}

/* Testimonials Section */
.testimonials {
    padding: 5rem 5%;
    background-color: white;
}

.testimonials-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.testimonial-card {
    background-color: #f9f9f9;
    padding: 2rem;
    border-radius: 10px;
    position: relative;
    transition: all 0.3s ease;
    border: 1px solid #eaeaea;
}

.testimonial-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.testimonial-rating {
    color: #f1c40f;
    margin-bottom: 1rem;
    font-size: 1.2rem;
}

.testimonial-card p {
    font-style: italic;
    color: #555;
    margin-bottom: 1.5rem;
}

.testimonial-author {
    display: flex;
    align-items: center;
}

.testimonial-author img {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    margin-right: 1rem;
}

.author-info h4 {
    font-size: 1.1rem;
    color: #2c3e50;
}

.author-info p {
    font-size: 0.9rem;
    color: #7f8c8d;
    margin: 0;
    font-style: normal;
}

/* Game History Section */
.game-history {
    background-color: #f9f9f9;
    padding: 5rem 5%;
}

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

.history-content {
    display: flex;
    justify-content: space-between;
    gap: 2rem;
    flex-wrap: wrap;
}

.history-item {
    flex: 1;
    min-width: 250px;
    background-color: white;
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
    position: relative;
    overflow: hidden;
}

.history-item:hover {
    transform: translateY(-5px);
}

.history-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 5px;
    height: 100%;
    background-color: #3498db;
}

.history-year {
    font-size: 1.5rem;
    font-weight: 700;
    color: #3498db;
    margin-bottom: 1rem;
}

.history-item h3 {
    color: #2c3e50;
    margin-bottom: 1rem;
}

.history-item p {
    color: #7f8c8d;
    line-height: 1.7;
}

/* Difficulty Levels Section */
.difficulty-levels {
    padding: 5rem 5%;
}

.levels-container {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.level-card {
    background-color: white;
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    text-align: center;
}

.level-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}

.level-icon {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background-color: #ecf0f1;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    margin: 0 auto 1.5rem;
    color: #3498db;
}

.level-card:nth-child(2) .level-icon {
    background-color: #f5f5f5;
    color: #e67e22;
}

.level-card:nth-child(3) .level-icon {
    background-color: #f0f0f0;
    color: #e74c3c;
}

.level-card:nth-child(4) .level-icon {
    background-color: #eaeaea;
    color: #9b59b6;
}

.level-card h3 {
    color: #2c3e50;
    margin-bottom: 1rem;
    font-size: 1.3rem;
}

.level-card p {
    color: #7f8c8d;
    margin-bottom: 1.5rem;
    line-height: 1.7;
}

.level-card ul {
    text-align: left;
    padding-left: 1.5rem;
}

.level-card li {
    color: #555;
    margin-bottom: 0.5rem;
    line-height: 1.7;
}

/* FAQ Section */
.faq {
    background-color: #f9f9f9;
    padding: 5rem 5%;
}

.faq-container {
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    margin-bottom: 1.5rem;
    background-color: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem;
    background-color: #f8f9fa;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.faq-question:hover {
    background-color: #e9ecef;
}

.faq-question h3 {
    color: #2c3e50;
    font-size: 1.1rem;
    margin: 0;
}

.faq-question i {
    color: #3498db;
    transition: transform 0.3s ease;
}

.faq-item.active .faq-question i {
    transform: rotate(180deg);
}

.faq-answer {
    padding: 0 1.5rem;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease, padding 0.3s ease;
}

.faq-item.active .faq-answer {
    padding: 1.5rem;
    max-height: 200px;
}

.faq-answer p {
    color: #555;
    line-height: 1.7;
    margin: 0;
}

/* Latest Updates Section */
.latest-updates {
    padding: 5rem 5%;
}

.updates-container {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.update-card {
    background-color: white;
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.update-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}

.update-date {
    font-size: 0.9rem;
    color: #3498db;
    font-weight: 600;
    margin-bottom: 1rem;
}

.update-card h3 {
    color: #2c3e50;
    margin-bottom: 1rem;
    font-size: 1.3rem;
}

.update-card p {
    color: #555;
    line-height: 1.7;
}

/* Newsletter Section */
.newsletter {
    background-color: #3498db;
    color: white;
    padding: 5rem 5%;
    text-align: center;
}

.newsletter-form {
    max-width: 600px;
    margin: 0 auto;
}

.newsletter-form form {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    justify-content: center;
    margin-bottom: 1rem;
}

.newsletter-form input[type="email"] {
    padding: 0.8rem 1.5rem;
    border: none;
    border-radius: 50px;
    font-size: 1rem;
    flex: 1;
    min-width: 250px;
    outline: none;
}

.newsletter-form button {
    padding: 0.8rem 2rem;
    background-color: #e74c3c;
    color: white;
    border: none;
    border-radius: 50px;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.newsletter-form button:hover {
    background-color: #c0392b;
    transform: translateY(-3px);
}

.newsletter-note {
    font-size: 0.9rem;
    opacity: 0.8;
}

/* CTA Section */
.cta {
    background: linear-gradient(135deg, #9b59b6, #3498db);
    color: white;
    padding: 4rem 5%;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.cta::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('../images/cta-pattern.svg');
    opacity: 0.1;
    z-index: 0;
}

.cta-content {
    position: relative;
    z-index: 1;
}

.cta-content h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.cta-content p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

/* Footer */
.footer {
    background-color: #2c3e50;
    color: white;
    padding: 3rem 5% 1rem;
}

.footer-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-logo h2 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
}

.footer-logo h2 i {
    margin-right: 0.5rem;
    color: #e74c3c;
}

.footer-logo p {
    color: #bdc3c7;
    font-size: 0.9rem;
}

.footer-links h3 {
    font-size: 1.2rem;
    margin-bottom: 1.5rem;
    color: white;
}

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

.footer-links li {
    margin-bottom: 0.8rem;
}

.footer-links a {
    color: #bdc3c7;
    text-decoration: none;
    transition: color 0.3s ease;
    font-size: 0.95rem;
}

.footer-links a:hover {
    color: #e74c3c;
}

.footer-social h3 {
    font-size: 1.2rem;
    margin-bottom: 1rem;
    color: white;
}

.footer-social .social-links {
    margin-top: 1rem;
}

.footer-bottom {
    text-align: center;
    padding-top: 1.5rem;
    border-top: 1px solid #34495e;
}

.footer-bottom p {
    color: #bdc3c7;
    font-size: 0.9rem;
}

/* Media Queries for Responsive Design */
@media screen and (max-width: 1024px) {
    .hero-content h2 {
        font-size: 2.5rem;
    }
    
    .snake-animation {
        width: 300px;
        height: 300px;
    }
    
    .how-to-play-container {
        flex-direction: column;
        align-items: center;
    }
    
    .instructions,
    .game-preview {
        max-width: 100%;
        margin-right: 0;
        margin-bottom: 2rem;
    }
}

@media screen and (max-width: 768px) {
    .nav-links {
        display: none;
    }
    
    .menu-toggle {
        display: block;
    }
    
    .hero {
        flex-direction: column;
        text-align: center;
    }
    
    .hero-content {
        max-width: 100%;
        margin-bottom: 2rem;
    }
    
    .hero-image {
        max-width: 100%;
    }
    
    .section-title h2 {
        font-size: 2rem;
    }
}

@media screen and (max-width: 480px) {
    .hero-content h2 {
        font-size: 2rem;
    }
    
    .btn-primary {
        padding: 0.6rem 1.5rem;
        font-size: 1rem;
    }
    
    .snake-animation {
        width: 250px;
        height: 250px;
    }
    
    .section-title h2 {
        font-size: 1.8rem;
    }
}