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

body {
    font-family: 'Nunito', -apple-system, BlinkMacSystemFont, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #FFF0F5;
    overflow-x: hidden;
}

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

/* Header Styles */
.header {
    background-color: #FF85A2;
    padding: 20px 0;
    box-shadow: 0 2px 10px rgba(255, 133, 162, 0.2);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo h1 {
    font-size: 28px;
    font-weight: 800;
    color: white;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.1);
}

.logo h1 span {
    color: #FFD1DC;
}

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

.nav a {
    color: white;
    text-decoration: none;
    font-weight: 600;
    padding: 10px 15px;
    border-radius: 25px;
    transition: all 0.3s ease;
}

.nav a:hover {
    background-color: rgba(255, 255, 255, 0.2);
}

.nav a.active {
    background-color: white;
    color: #FF85A2;
}

.play-button {
    background-color: #FFE66D;
    color: #FF6B6B !important;
    padding: 10px 25px !important;
    font-weight: 700;
}

.play-button:hover {
    background-color: #FFD93D !important;
    transform: translateY(-2px);
}

/* Hero Section */
.hero {
    padding: 80px 0;
    background: linear-gradient(135deg, #FFF0F5 0%, #FFE6F0 100%);
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: -50px;
    right: -50px;
    width: 300px;
    height: 300px;
    background-color: #FFD1DC;
    border-radius: 50%;
    opacity: 0.3;
    z-index: 0;
}

.hero::after {
    content: '';
    position: absolute;
    bottom: -100px;
    left: -100px;
    width: 400px;
    height: 400px;
    background-color: #FFB6C1;
    border-radius: 50%;
    opacity: 0.2;
    z-index: 0;
}

.hero .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: relative;
    z-index: 1;
}

.hero-content {
    max-width: 500px;
}

.hero-content h2 {
    font-size: 48px;
    font-weight: 800;
    color: #FF6B6B;
    margin-bottom: 20px;
    line-height: 1.2;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.05);
}

.hero-content p {
    font-size: 18px;
    color: #666;
    margin-bottom: 30px;
}

.btn-primary {
    display: inline-block;
    background-color: #FF6B6B;
    color: white;
    padding: 15px 30px;
    border-radius: 30px;
    text-decoration: none;
    font-weight: 700;
    font-size: 16px;
    transition: all 0.3s ease;
    margin-right: 15px;
    box-shadow: 0 4px 15px rgba(255, 107, 107, 0.3);
}

.btn-primary:hover {
    background-color: #FF5252;
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(255, 107, 107, 0.4);
}

.btn-secondary {
    display: inline-block;
    background-color: transparent;
    color: #FF6B6B;
    padding: 15px 30px;
    border-radius: 30px;
    text-decoration: none;
    font-weight: 700;
    font-size: 16px;
    transition: all 0.3s ease;
    border: 2px solid #FF6B6B;
}

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

.snake-preview {
    background-color: white;
    border-radius: 20px;
    padding: 30px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transform: rotate(5deg);
    transition: transform 0.3s ease;
}

.snake-preview:hover {
    transform: rotate(0);
}

/* Features Section */
.features {
    padding: 100px 0;
    background-color: #FFFBFE;
}

.section-title {
    text-align: center;
    font-size: 36px;
    font-weight: 800;
    color: #FF6B6B;
    margin-bottom: 60px;
    position: relative;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -15px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background-color: #FFD1DC;
    border-radius: 2px;
}

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

.feature-item {
    background-color: #FFF9F5;
    padding: 30px;
    border-radius: 20px;
    text-align: center;
    transition: all 0.3s ease;
    border: 2px solid #FFE6E6;
}

.feature-item:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 30px rgba(255, 133, 162, 0.1);
    border-color: #FFD1DC;
}

.feature-icon {
    font-size: 48px;
    margin-bottom: 20px;
}

.feature-item h3 {
    font-size: 20px;
    font-weight: 700;
    color: #FF6B6B;
    margin-bottom: 15px;
}

.feature-item p {
    color: #666;
}

/* Game Stats Section */
.game-stats {
    padding: 100px 0;
    background-color: #FFEFF5;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 30px;
    text-align: center;
}

.stat-item {
    background-color: white;
    padding: 40px 20px;
    border-radius: 20px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
    border: 2px solid #FFE6E6;
}

.stat-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(255, 133, 162, 0.1);
}

.stat-number {
    font-size: 48px;
    font-weight: 800;
    color: #FF6B6B;
    margin-bottom: 10px;
    line-height: 1;
}

.stat-label {
    font-size: 18px;
    color: #666;
    font-weight: 600;
}

/* How to Play Section */
.how-to-play {
    padding: 100px 0;
    background-color: #FFF8FC;
}

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

.step {
    display: flex;
    align-items: flex-start;
    margin-bottom: 40px;
    position: relative;
    padding-left: 60px;
}

.step:not(:last-child)::before {
    content: '';
    position: absolute;
    left: 25px;
    top: 40px;
    bottom: -40px;
    width: 2px;
    background-color: #FFD1DC;
}

.step-number {
    position: absolute;
    left: 0;
    top: 0;
    width: 50px;
    height: 50px;
    background-color: #FF6B6B;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    font-weight: 700;
    box-shadow: 0 4px 10px rgba(255, 107, 107, 0.3);
}

.step-content h3 {
    font-size: 22px;
    font-weight: 700;
    color: #FF6B6B;
    margin-bottom: 10px;
}

.step-content p {
    font-size: 16px;
    color: #666;
}

/* Tips & Tricks Section */
.tips-tricks {
    padding: 100px 0;
    background-color: #FFF0F7;
}

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

.tip-item {
    background-color: white;
    padding: 30px;
    border-radius: 20px;
    text-align: center;
    transition: all 0.3s ease;
    border: 2px solid #E6FFF5;
}

.tip-item:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 30px rgba(76, 175, 80, 0.1);
    border-color: #C8E6C9;
}

.tip-icon {
    font-size: 48px;
    margin-bottom: 20px;
}

.tip-item h3 {
    font-size: 20px;
    font-weight: 700;
    color: #4CAF50;
    margin-bottom: 15px;
}

.tip-item p {
    color: #666;
}

/* Game Preview Section */
.game-preview {
    padding: 100px 0;
    background-color: #FFF2F6;
}

.preview-container {
    display: flex;
    justify-content: center;
}

.preview-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 40px;
    max-width: 800px;
    width: 100%;
}

.preview-item {
    text-align: center;
    transition: all 0.3s ease;
}

.preview-item:hover {
    transform: scale(1.05);
}

.preview-item svg {
    background-color: white;
    border-radius: 20px;
    padding: 20px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    margin-bottom: 15px;
    border: 2px solid #E6E6FA;
}

.preview-item p {
    font-size: 18px;
    font-weight: 700;
    color: #6A1B9A;
}

/* Testimonials Section */
.testimonials {
    padding: 100px 0;
    background-color: #FFFCFE;
}

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

.testimonial {
    background-color: #FFEFF5;
    padding: 30px;
    border-radius: 20px;
    border-left: 5px solid #FF85A2;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.testimonial-text p {
    font-size: 16px;
    color: #666;
    font-style: italic;
    margin-bottom: 20px;
}

.testimonial-author {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.author-name {
    font-weight: 700;
    color: #FF6B6B;
}

.author-rating {
    color: #FFD700;
}

/* CTA Section */
.cta {
    padding: 80px 0;
    background: linear-gradient(135deg, #FF6B6B 0%, #FF85A2 100%);
    text-align: center;
    color: white;
}

.cta h2 {
    font-size: 36px;
    font-weight: 800;
    margin-bottom: 20px;
}

.cta p {
    font-size: 18px;
    margin-bottom: 30px;
    opacity: 0.9;
}

.cta .btn-primary {
    background-color: white;
    color: #FF6B6B;
    margin: 0;
}

.cta .btn-primary:hover {
    background-color: #FFE6E6;
}

/* Footer Styles */
.footer {
    background-color: #333;
    color: white;
    padding: 40px 0;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.footer-info h3 {
    font-size: 20px;
    margin-bottom: 10px;
    color: #FF85A2;
}

.footer-info p {
    color: #ccc;
    font-size: 14px;
}

.footer-links ul {
    display: flex;
    gap: 20px;
    list-style: none;
}

.footer-links a {
    color: #ccc;
    text-decoration: none;
    transition: color 0.3s ease;
}

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

.footer-social {
    display: flex;
    gap: 15px;
}

.social-icon {
    color: white;
    font-size: 20px;
    transition: color 0.3s ease;
    text-decoration: none;
}

.social-icon:hover {
    color: #FF85A2;
}

/* Game Page Styles */
.game-page {
    padding: 40px 0;
    background-color: #FFEFF5;
}

.game-container {
    background-color: white;
    border-radius: 20px;
    padding: 30px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    text-align: center;
}

.game-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    flex-wrap: wrap;
    gap: 20px;
}

.game-title {
    font-size: 28px;
    font-weight: 800;
    color: #FF6B6B;
}

.game-stats {
    display: flex;
    gap: 30px;
    align-items: center;
}

.stat-item {
    background-color: #FFEFF5;
    padding: 10px 20px;
    border-radius: 20px;
    border: 2px solid #FFE6E6;
}

.stat-item span {
    font-weight: 700;
    color: #FF6B6B;
}

.game-controls {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
    justify-content: center;
}

.control-btn {
    background-color: #FF85A2;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 25px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
}

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

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

.game-board {
    display: flex;
    justify-content: center;
    margin: 30px 0;
}

#gameCanvas {
    border-radius: 10px;
    background-color: #f8f8f8;
    border: 3px solid #FFE6E6;
}

.mobile-controls {
    display: none;
    grid-template-columns: repeat(3, 1fr);
    grid-template-rows: repeat(3, 1fr);
    gap: 10px;
    max-width: 300px;
    margin: 30px auto 0;
}

.mobile-btn {
    aspect-ratio: 1;
    border-radius: 10px;
    background-color: #FF85A2;
    color: white;
    border: none;
    font-size: 24px;
    cursor: pointer;
    transition: all 0.1s ease;
}

.mobile-btn:active {
    background-color: #FF6B6B;
    transform: scale(0.95);
}

.mobile-btn:nth-child(1) {
    grid-column: 2;
    grid-row: 1;
}

.mobile-btn:nth-child(2) {
    grid-column: 1;
    grid-row: 2;
}

.mobile-btn:nth-child(3) {
    grid-column: 2;
    grid-row: 3;
}

.mobile-btn:nth-child(4) {
    grid-column: 3;
    grid-row: 2;
}

/* About Page Styles */
.about-page {
    padding: 80px 0;
    background-color: #FFFBFE;
}

.about-content {
    max-width: 800px;
    margin: 0 auto;
    background-color: #FFEFF5;
    padding: 40px;
    border-radius: 20px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.about-content h2 {
    font-size: 32px;
    font-weight: 800;
    color: #FF6B6B;
    margin-bottom: 20px;
}

.about-content h3 {
    font-size: 24px;
    font-weight: 700;
    color: #FF85A2;
    margin: 30px 0 15px;
}

.about-content p {
    margin-bottom: 20px;
    color: #666;
    line-height: 1.8;
}

/* Contact Page Styles */
.contact-page {
    padding: 80px 0;
    background-color: #FFF8FC;
}

.contact-content {
    max-width: 600px;
    margin: 0 auto;
    background-color: #FFEFF5;
    padding: 40px;
    border-radius: 20px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    text-align: center;
}

.contact-content h2 {
    font-size: 32px;
    font-weight: 800;
    color: #FF6B6B;
    margin-bottom: 20px;
}

.contact-content p {
    margin-bottom: 30px;
    color: #666;
}

.contact-email {
    background-color: white;
    padding: 20px;
    border-radius: 10px;
    border: 2px solid #FFE6E6;
    display: inline-block;
    margin: 20px 0;
}

.contact-email a {
    color: #FF6B6B;
    font-weight: 700;
    text-decoration: none;
    font-size: 18px;
}

.contact-email a:hover {
    text-decoration: underline;
}

/* Privacy Policy and Terms Pages */
.privacy-page, .terms-page {
    padding: 80px 0;
    background-color: #FFF2F6;
}

.policy-content {
    max-width: 900px;
    margin: 0 auto;
    background-color: #FFEFF5;
    padding: 40px;
    border-radius: 20px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.policy-content h2 {
    font-size: 32px;
    font-weight: 800;
    color: #FF6B6B;
    margin-bottom: 30px;
    text-align: center;
}

.policy-content h3 {
    font-size: 24px;
    font-weight: 700;
    color: #FF85A2;
    margin: 30px 0 15px;
    padding-bottom: 10px;
    border-bottom: 2px solid #FFE6E6;
}

.policy-content h4 {
    font-size: 18px;
    font-weight: 700;
    color: #FF6B6B;
    margin: 20px 0 10px;
}

.policy-content p {
    margin-bottom: 15px;
    color: #666;
    line-height: 1.8;
}

.policy-content ul {
    margin-bottom: 20px;
    padding-left: 20px;
}

.policy-content li {
    margin-bottom: 10px;
    color: #666;
}

.policy-content table {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
}

.policy-content th, .policy-content td {
    padding: 12px;
    text-align: left;
    border-bottom: 1px solid #FFE6E6;
}

.policy-content th {
    background-color: #FFEFF5;
    color: #FF6B6B;
    font-weight: 700;
}

/* Responsive Styles */
@media (max-width: 992px) {
    .hero .container {
        flex-direction: column;
        text-align: center;
    }
    
    .hero-content {
        max-width: 100%;
        margin-bottom: 50px;
    }
    
    .btn-primary, .btn-secondary {
        margin: 10px;
    }
}

@media (max-width: 768px) {
    .header .container {
        flex-direction: column;
        gap: 20px;
    }
    
    .nav ul {
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .hero-content h2 {
        font-size: 36px;
    }
    
    .game-header {
        justify-content: center;
    }
    
    .game-stats {
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .footer-content {
        flex-direction: column;
        gap: 30px;
        text-align: center;
    }
    
    .footer-links ul {
        flex-direction: column;
        gap: 10px;
    }
    
    .mobile-controls {
        display: grid;
    }
}

@media (max-width: 576px) {
    .section-title {
        font-size: 28px;
    }
    
    .hero-content h2 {
        font-size: 28px;
    }
    
    .btn-primary, .btn-secondary {
        padding: 12px 20px;
        font-size: 14px;
    }
    
    .policy-content {
        padding: 20px;
    }
    
    .about-content, .contact-content {
        padding: 20px;
    }
}

/* Animation */
@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateY(0);
    }
    40% {
        transform: translateY(-10px);
    }
    60% {
        transform: translateY(-5px);
    }
}

@keyframes wiggle {
    0%, 7% {
        transform: rotateZ(0);
    }
    15% {
        transform: rotateZ(-15deg);
    }
    20% {
        transform: rotateZ(10deg);
    }
    25% {
        transform: rotateZ(-10deg);
    }
    30% {
        transform: rotateZ(6deg);
    }
    35% {
        transform: rotateZ(-4deg);
    }
    40%, 100% {
        transform: rotateZ(0);
    }
}

.feature-icon:hover {
    animation: wiggle 1s ease;
}

.snake-preview {
    animation: bounce 3s ease infinite;
}

/* Scrollbar Styles */
::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: #FFF9F5;
}

::-webkit-scrollbar-thumb {
    background: #FFD1DC;
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: #FF85A2;
}