/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Global Image Rules */
img {
    max-width: 100%;
    height: auto;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    line-height: 1.6;
    color: #333;
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 50%, #ffffff 100%);
    position: relative;
    overflow-x: hidden;
}

/* Subtle banana pattern overlay */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: radial-gradient(circle at 20% 50%, rgba(255, 215, 0, 0.02) 0%, transparent 50%),
                      radial-gradient(circle at 80% 20%, rgba(255, 165, 0, 0.02) 0%, transparent 50%),
                      radial-gradient(circle at 40% 80%, rgba(255, 215, 0, 0.01) 0%, transparent 50%);
    pointer-events: none;
    z-index: -1;
}

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

/* Language Selector */
.language-selector {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 1000;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

.language-dropdown {
    position: relative;
    display: inline-block;
}

.language-button {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 14px;
    background: rgba(255, 255, 255, 0.95);
    border: 2px solid rgba(255, 255, 255, 0.2);
    border-radius: 12px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    color: #333;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    backdrop-filter: blur(10px);
    min-width: 120px;
}

.language-button:hover {
    background: rgba(255, 255, 255, 1);
    border-color: #ff6b35;
    box-shadow: 0 6px 20px rgba(255, 107, 53, 0.3);
    transform: translateY(-2px);
}

.flag-icon {
    width: 18px;
    height: 14px;
    border-radius: 2px;
    object-fit: cover;
    box-shadow: 0 1px 3px rgba(0,0,0,0.2);
}

.language-menu {
    position: absolute;
    top: 100%;
    right: 0;
    background: rgba(255, 255, 255, 0.98);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 12px;
    margin-top: 8px;
    max-height: 320px;
    overflow-y: auto;
    backdrop-filter: blur(15px);
    box-shadow: 0 8px 32px rgba(0,0,0,0.2);
    display: none;
    min-width: 180px;
}

.language-menu.show {
    display: block;
    animation: slideDown 0.3s ease;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.language-option {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 16px;
    cursor: pointer;
    transition: background-color 0.2s ease;
    border-bottom: 1px solid rgba(0,0,0,0.05);
    color: #333;
}

.language-option:last-child {
    border-bottom: none;
}

.language-option:hover {
    background-color: rgba(255, 107, 53, 0.08);
}

.language-option.active {
    background-color: rgba(255, 107, 53, 0.15);
    color: #ff6b35;
    font-weight: 600;
}

.lang-name {
    font-size: 14px;
    font-weight: 500;
    flex: 1;
}

.dropdown-arrow {
    font-size: 10px;
    transition: transform 0.3s ease;
    color: #666;
}

.language-button.active .dropdown-arrow {
    transform: rotate(180deg);
}

/* Mobile Responsive for Language Selector */
@media (max-width: 768px) {
    .language-selector {
        top: 15px;
        right: 15px;
    }
    
    .language-button {
        padding: 8px 12px;
        font-size: 13px;
        min-width: 100px;
    }
    
    .language-menu {
        position: fixed;
        top: auto;
        bottom: 0;
        left: 0;
        right: 0;
        max-height: 50vh;
        border-radius: 16px 16px 0 0;
        border: none;
        box-shadow: 0 -4px 24px rgba(0,0,0,0.25);
        min-width: auto;
        margin-top: 0;
    }
}

.lang-btn {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: white;
    padding: 8px 16px;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 14px;
}

.lang-btn:hover {
    background: rgba(255, 255, 255, 0.2);
}

.lang-btn.active {
    background: linear-gradient(135deg, #FFD700 0%, #FFA500 100%);
    border-color: #FFD700;
    color: #000;
    font-weight: bold;
}

/* Hero Section */
.hero {
    padding: 100px 0;
    background: linear-gradient(135deg, #ffffff 0%, #fdf5e6 50%, #ffffff 100%);
}

.hero-content {
    text-align: center;
}

.app-logo {
    width: 150px !important;
    height: 150px !important;
    max-width: 150px !important;
    max-height: 150px !important;
    margin: 0 auto 30px auto !important;
    border-radius: 30px;
    box-shadow: 0 20px 40px rgba(255, 215, 0, 0.4), 0 0 60px rgba(255, 165, 0, 0.2);
    animation: float 3s ease-in-out infinite;
    object-fit: cover !important;
    display: block !important;
    border: 3px solid transparent;
    background: linear-gradient(135deg, #FFD700, #FFA500) padding-box, linear-gradient(135deg, #FFD700, #FFA500) border-box;
}

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

.hero-title {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 20px;
    background: linear-gradient(135deg, #FFD700 0%, #FFA500 50%, #FF8C00 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-shadow: 0 0 30px rgba(255, 215, 0, 0.3);
}

.hero-subtitle {
    font-size: 1.25rem;
    color: #666;
    margin-bottom: 40px;
}

.app-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
}

/* App Store Button */
.app-store-link {
    display: inline-block;
    transition: all 0.3s ease;
}

.app-store-link:hover {
    transform: translateY(-2px);
    filter: brightness(1.1);
}

.app-store-badge {
    height: 50px !important;
    width: auto !important;
    max-width: 200px !important;
    max-height: 50px !important;
    object-fit: contain !important;
}

.app-store-badge-large {
    height: 60px !important;
    max-width: 240px !important;
    max-height: 60px !important;
}

/* Legacy button styles (kept for compatibility) */
.app-store-button {
    display: inline-flex;
    align-items: center;
    background: #000000;
    color: white;
    padding: 12px 24px;
    border-radius: 12px;
    text-decoration: none;
    transition: all 0.3s ease;
    border: 1px solid #333;
    min-width: 180px;
    justify-content: center;
}

.app-store-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
    background: #1a1a1a;
}

.app-store-content {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    line-height: 1.2;
}

.download-text {
    font-size: 11px;
    font-weight: 400;
    opacity: 0.8;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.store-name {
    font-size: 20px;
    font-weight: 600;
    margin-top: -2px;
}

.app-store-button-large {
    min-width: 200px;
    padding: 16px 32px;
}

.app-store-button-large .store-name {
    font-size: 24px;
}

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

.section-title {
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 60px;
    color: #333;
}

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

.feature-card {
    background: linear-gradient(135deg, rgba(255, 215, 0, 0.1) 0%, rgba(255, 165, 0, 0.05) 100%);
    padding: 40px 30px;
    border-radius: 16px;
    text-align: center;
    transition: transform 0.3s ease, background 0.3s ease;
    border: 1px solid rgba(255, 215, 0, 0.2);
    backdrop-filter: blur(10px);
}

.feature-card:hover {
    transform: translateY(-5px);
    background: linear-gradient(135deg, rgba(255, 215, 0, 0.2) 0%, rgba(255, 165, 0, 0.1) 100%);
    box-shadow: 0 20px 40px rgba(255, 215, 0, 0.2);
    border-color: rgba(255, 215, 0, 0.4);
}

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

.feature-card h3 {
    font-size: 1.5rem;
    margin-bottom: 15px;
    color: #333;
}

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

/* App Showcase Section */
.app-showcase {
    padding: 80px 0;
    background: #ffffff;
}

.showcase-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
    margin-top: 60px;
}

.phone-mockup {
    display: flex;
    justify-content: center;
    align-items: center;
}

.app-screenshot {
    width: 100% !important;
    max-width: 300px !important;
    height: auto !important;
    max-height: 650px !important;
    object-fit: contain !important;
    border-radius: 30px;
    box-shadow: 0 30px 60px rgba(255, 215, 0, 0.3), 0 0 100px rgba(255, 165, 0, 0.2);
    border: 2px solid rgba(255, 215, 0, 0.3);
}

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

.showcase-item {
    display: flex;
    align-items: center;
    gap: 20px;
}

.showcase-icon {
    font-size: 2rem;
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, rgba(255, 215, 0, 0.2) 0%, rgba(255, 165, 0, 0.1) 100%);
    border: 1px solid rgba(255, 215, 0, 0.3);
    border-radius: 12px;
    flex-shrink: 0;
}

.showcase-text h3 {
    color: #333;
    margin-bottom: 5px;
    font-size: 1.2rem;
}

.showcase-text p {
    color: #666;
    font-size: 0.95rem;
}

/* How It Works Section */
.how-it-works {
    padding: 80px 0;
    background: #f8f9fa;
}

.steps {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
    margin-top: 60px;
}

.step {
    text-align: center;
}

.step-number {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #FFD700 0%, #FFA500 100%);
    color: #000;
    font-size: 1.5rem;
    font-weight: bold;
    border-radius: 50%;
    margin-bottom: 20px;
    box-shadow: 0 10px 20px rgba(255, 215, 0, 0.3);
}

.step h3 {
    font-size: 1.5rem;
    margin-bottom: 15px;
    color: #333;
}

.step p {
    color: #666;
}

/* CTA Section */
.cta {
    padding: 80px 0;
    background: linear-gradient(135deg, #fdf5e6 0%, rgba(255, 215, 0, 0.1) 50%, #ffffff 100%);
    text-align: center;
    position: relative;
    overflow: hidden;
}

.cta::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255, 215, 0, 0.1) 0%, transparent 70%);
    animation: rotate 20s linear infinite;
    z-index: 0;
}

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

@keyframes rotate {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.cta h2 {
    font-size: 2.5rem;
    margin-bottom: 20px;
    color: #333;
}

.cta p {
    font-size: 1.25rem;
    color: #666;
    margin-bottom: 40px;
}

/* Footer */
.footer {
    padding: 40px 0;
    background: #f8f9fa;
    border-top: 1px solid rgba(0, 0, 0, 0.1);
}

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

.footer-info h3 {
    color: #333;
    margin-bottom: 10px;
}

.footer-info p {
    color: #666;
}

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

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

.footer-links a:hover {
    color: #FFD700;
    text-shadow: 0 0 10px rgba(255, 215, 0, 0.5);
}

/* Responsive Design */
@media (max-width: 768px) {
    .app-logo {
        width: 120px;
        height: 120px;
    }
    
    .hero-title {
        font-size: 2rem;
    }
    
    .hero-subtitle {
        font-size: 1rem;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .features-grid {
        grid-template-columns: 1fr;
    }
    
    .showcase-container {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .app-screenshot {
        max-width: 250px;
    }
    
    .showcase-features {
        padding: 0 20px;
    }
    
    .steps {
        grid-template-columns: 1fr;
    }
    
    .footer-content {
        flex-direction: column;
        text-align: center;
    }
    
    .footer-links {
        flex-direction: column;
        gap: 15px;
    }
}

/* Banana Vision Special Effects */
.feature-icon:hover {
    transform: scale(1.2) rotate(10deg);
    filter: drop-shadow(0 0 20px #FFD700);
    transition: all 0.3s ease;
}

/* Floating banana particles */
@keyframes floatBanana {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    50% { transform: translateY(-20px) rotate(5deg); }
}

.hero::after {
    content: '🍌';
    position: absolute;
    font-size: 30px;
    opacity: 0.1;
    animation: floatBanana 6s ease-in-out infinite;
    top: 20%;
    left: 10%;
}

.features::after {
    content: '🍌';
    position: absolute;
    font-size: 25px;
    opacity: 0.08;
    animation: floatBanana 8s ease-in-out infinite reverse;
    top: 10%;
    right: 15%;
}

/* Enhanced glow effects */
.hero-title:hover {
    text-shadow: 0 0 30px rgba(255, 215, 0, 0.6), 0 0 60px rgba(255, 165, 0, 0.4);
    transform: scale(1.02);
    transition: all 0.3s ease;
}

/* Banana button enhancement */
.app-store-link:hover .app-store-badge {
    filter: drop-shadow(0 0 20px rgba(255, 215, 0, 0.5));
}

/* Section position relative for pseudo elements */
.hero, .features {
    position: relative;
}