/* 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;
}

/* Hero Section - Asymmetric Layout */
.hero {
    min-height: 100vh;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    position: relative;
    display: flex;
    align-items: center;
    overflow: hidden;
}

/* Override background when banner image is present */
.hero[style*="background-image"] {
    background-attachment: fixed;
}

.hero-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    position: relative;
    z-index: 2;
}

.hero-left {
    padding-right: 40px;
}

.game-icon {
    font-size: 4rem;
    color: #ff6b6b;
    margin-bottom: 20px;
    animation: bounce 2s infinite;
}

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

.hero-title {
    font-size: 4rem;
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 20px;
}

.title-main {
    color: #fff;
    display: block;
}

.title-master {
    color: #ffd93d;
    display: block;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

.hero-subtitle {
    font-size: 1.5rem;
    color: #ffd93d;
    font-weight: 600;
    margin-bottom: 15px;
}

.hero-description {
    font-size: 1.1rem;
    color: #fff;
    margin-bottom: 30px;
    opacity: 0.9;
}

.cta-buttons {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

.btn-primary, .btn-secondary {
    padding: 15px 30px;
    border: none;
    border-radius: 50px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 10px;
}

.btn-primary {
    background: linear-gradient(45deg, #ff6b6b, #ff8e8e);
    color: white;
    box-shadow: 0 4px 15px rgba(255, 107, 107, 0.4);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 107, 107, 0.6);
}

.btn-secondary {
    background: transparent;
    color: white;
    border: 2px solid white;
}

.btn-secondary:hover {
    background: white;
    color: #667eea;
    transform: translateY(-2px);
}

/* Hero Right - Phone Mockup */
.hero-right {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
}

.phone-mockup {
    width: auto;
    height: 540px;
    background: #1a1a1a;
    border-radius: 40px;
    padding: 20px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.3);
    position: relative;
    transform: rotate(5deg);
    transition: transform 0.3s ease;
}

.phone-mockup:hover {
    transform: rotate(0deg) scale(1.05);
}

.phone-screen {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #ff9a9e 0%, #fecfef 100%);
    border-radius: 25px;
    position: relative;
    overflow: hidden;
}

.game-preview {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.fruit-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 8px;
    width: 200px;
    height: 200px;
}

.fruit-item {
    background: rgba(255,255,255,0.9);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    animation: float 3s ease-in-out infinite;
}

.fruit-item:nth-child(2n) {
    animation-delay: 0.5s;
}

.fruit-item:nth-child(3n) {
    animation-delay: 1s;
}

@keyframes float {
    0%, 100% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-10px);
    }
}

/* Floating Fruits Animation */
.floating-fruits {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
}

.fruit-float {
    position: absolute;
    font-size: 2rem;
    animation: floatAround 8s linear infinite;
    opacity: 0.7;
}

.fruit-1 { top: 10%; left: 10%; animation-delay: 0s; }
.fruit-2 { top: 20%; right: 15%; animation-delay: 1s; }
.fruit-3 { top: 60%; left: 5%; animation-delay: 2s; }
.fruit-4 { top: 70%; right: 10%; animation-delay: 3s; }
.fruit-5 { top: 40%; left: 80%; animation-delay: 4s; }
.fruit-6 { top: 80%; left: 70%; animation-delay: 5s; }

@keyframes floatAround {
    0% {
        transform: translateY(0px) rotate(0deg);
    }
    25% {
        transform: translateY(-20px) rotate(90deg);
    }
    50% {
        transform: translateY(0px) rotate(180deg);
    }
    75% {
        transform: translateY(-20px) rotate(270deg);
    }
    100% {
        transform: translateY(0px) rotate(360deg);
    }
}

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

.features-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: start;
}

.features-left {
    padding-right: 40px;
}

.section-title {
    font-size: 3rem;
    font-weight: 700;
    color: #333;
    margin-bottom: 50px;
    position: relative;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 0;
    width: 60px;
    height: 4px;
    background: linear-gradient(45deg, #ff6b6b, #ffd93d);
    border-radius: 2px;
}

.feature-list {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.feature-item {
    display: flex;
    align-items: flex-start;
    gap: 20px;
    padding: 20px;
    background: white;
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

.feature-icon {
    font-size: 2.5rem;
    flex-shrink: 0;
}

.feature-text h3 {
    font-size: 1.3rem;
    font-weight: 600;
    color: #333;
    margin-bottom: 10px;
}

.feature-text p {
    color: #666;
    line-height: 1.6;
}

/* Features Right - Screenshots */
.features-right {
    position: relative;
}

.game-screenshots {
    display: flex;
    flex-direction: column;
    gap: 30px;
    position: sticky;
    top: 100px;
}

.screenshot {
    width: 240px;
    height: auto;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 10px;
    padding: 10px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
    transform: rotate(-5deg);
    transition: transform 0.3s ease;
    margin-top: 40px;
}

.screenshot:hover {
    transform: rotate(0deg) scale(1.05);
}

.screenshot-2 {
    transform: rotate(5deg);
    margin-left: 100px;
    margin-top: 5px;
}

.screenshot-2:hover {
    transform: rotate(0deg) scale(1.05);
}

.screenshot-content {
    width: 100%;
    height: 100%;
    background: white;
    border-radius: 15px;
    padding: 15px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.score-display {
    font-size: 1.2rem;
    font-weight: 600;
    color: #333;
    margin-bottom: 20px;
}

.mini-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
    width: 120px;
    height: 120px;
}

.mini-fruit {
    background: #f0f0f0;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
}

/* Gameplay Section */
.gameplay {
    padding: 100px 0;
    background: linear-gradient(135deg, #ffecd2 0%, #fcb69f 100%);
}

.gameplay-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
}

.gameplay-left {
    display: flex;
    justify-content: center;
}

.game-demo {
    position: relative;
}

.demo-phone {
    width: auto;
    height: 500px;
    background: #1a1a1a;
    border-radius: 30px;
    padding: 15px;
    box-shadow: 0 15px 35px rgba(0,0,0,0.3);
    transform: rotate(-3deg);
    transition: transform 0.3s ease;
}

.demo-phone:hover {
    transform: rotate(0deg) scale(1.05);
}

.demo-screen {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #a8edea 0%, #fed6e3 100%);
    border-radius: 20px;
    padding: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.demo-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 6px;
    width: 180px;
    height: 180px;
}

.demo-cell {
    background: rgba(255,255,255,0.9);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    animation: pulse 2s ease-in-out infinite;
}

.demo-cell:nth-child(odd) {
    animation-delay: 0.5s;
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.1);
    }
}

.gameplay-right {
    padding-left: 40px;
}

.instructions {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.instruction-step {
    display: flex;
    align-items: flex-start;
    gap: 20px;
    padding: 25px;
    background: white;
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
}

.instruction-step:hover {
    transform: translateX(10px);
}

.step-number {
    width: 50px;
    height: 50px;
    background: linear-gradient(45deg, #ff6b6b, #ffd93d);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: 700;
    flex-shrink: 0;
}

.step-content h3 {
    font-size: 1.4rem;
    font-weight: 600;
    color: #333;
    margin-bottom: 10px;
}

.step-content p {
    color: #666;
    line-height: 1.6;
}

/* Download Section */
.download {
    padding: 100px 0;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.download-content {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 80px;
    align-items: center;
}

.download-left .section-title {
    color: white;
    margin-bottom: 30px;
}

.download-left .section-title::after {
    background: linear-gradient(45deg, #ffd93d, #ff6b6b);
}

.download-description {
    font-size: 1.2rem;
    line-height: 1.8;
    margin-bottom: 40px;
    opacity: 0.9;
}

.download-buttons {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

.download-btn {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 15px 25px;
    background: rgba(255,255,255,0.1);
    border: 2px solid rgba(255,255,255,0.3);
    border-radius: 15px;
    color: white;
    text-decoration: none;
    transition: all 0.3s ease;
    cursor: pointer;
    backdrop-filter: blur(10px);
}

.download-btn:hover {
    background: rgba(255,255,255,0.2);
    border-color: rgba(255,255,255,0.5);
    transform: translateY(-2px);
}

.download-btn i {
    font-size: 2rem;
}

.btn-text {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.btn-label {
    font-size: 0.9rem;
    opacity: 0.8;
}

.btn-store {
    font-size: 1.2rem;
    font-weight: 600;
}

.download-right {
    display: flex;
    justify-content: center;
    align-items: center;
}

.final-cta {
    text-align: center;
    padding: 20px;
    background: rgba(255,255,255,0.1);
    border-radius: 20px;
    backdrop-filter: blur(10px);
    border: 2px solid rgba(255,255,255,0.2);
}

.cta-icon {
    font-size: 4rem;
    margin-bottom: 20px;
    animation: bounce 2s infinite;
}

.final-cta h3 {
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 15px;
}

.final-cta p {
    font-size: 1.1rem;
    opacity: 0.9;
}

/* Footer */
.footer {
    background: #1a1a1a;
    color: white;
    padding: 60px 0 20px;
}

.footer-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    margin-bottom: 40px;
}

.footer-left {
    max-width: 400px;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 15px;
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 20px;
}

.footer-logo i {
    color: #ff6b6b;
    font-size: 2rem;
}

.footer-description {
    color: #ccc;
    line-height: 1.6;
}

.footer-right {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.footer-links {
    display: flex;
    gap: 30px;
    flex-wrap: wrap;
}

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

.footer-link:hover {
    color: #ff6b6b;
}


.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid #333;
    color: #999;
}

/* Image Optimization */
.hero img, .screenshot img, .demo-screen img, .final-cta img {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.hero img:hover, .screenshot img:hover, .demo-screen img:hover, .final-cta img:hover {
    transform: scale(1.05);
    box-shadow: 0 15px 40px rgba(0,0,0,0.3);
}

/* Game Icon Animation */
.game-icon img {
    animation: bounce 2s infinite;
}

/* Screenshot Hover Effects */
.screenshot img {
    border-radius: 15px;
    transition: all 0.3s ease;
}

.screenshot:hover img {
    transform: scale(1.1);
}

/* Final CTA Image Styling */
.final-cta img {
    border: 3px solid rgba(255,255,255,0.3);
    transition: all 0.3s ease;
}

.final-cta img:hover {
    border-color: rgba(255,255,255,0.6);
    transform: scale(1.05);
}

/* Responsive Design */
@media (max-width: 768px) {
    .hero-content {
        grid-template-columns: 1fr;
        gap: 40px;
        text-align: center;
    }
    
    .hero-left {
        padding-right: 0;
    }
    
    .hero-title {
        font-size: 2.5rem;
    }
    
    .features-content {
        grid-template-columns: 1fr;
        gap: 50px;
    }
    
    .features-left {
        padding-right: 0;
    }
    
    .gameplay-content {
        grid-template-columns: 1fr;
        gap: 50px;
    }
    
    .gameplay-right {
        padding-left: 0;
    }
    
    .download-content {
        grid-template-columns: 1fr;
        gap: 50px;
        text-align: center;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        gap: 40px;
        text-align: center;
    }
    
    .footer-links {
        justify-content: center;
    }
    
    
    .phone-mockup {
        width: 250px;
        height: auto;
    }
    
    .demo-phone {
        width: 260px;
        height: 400px;
    }
    
    .screenshot {
        width: 250px;
        height: auto;
    }
    
    .screenshot-2 {
        margin-left: 20px;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 2rem;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .cta-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .download-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .phone-mockup {
        width: 200px;
        height: 400px;
    }
    
    .demo-phone {
        width: 240px;
        height: 360px;
    }
}
