/* Reset & Base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

:root {
    --primary: #2563eb;
    --primary-dark: #1d4ed8;
    --secondary: #0f172a;
    --accent: #f59e0b;
    --light: #f8fafc;
    --dark: #1e293b;
    --gray: #64748b;
    --success: #10b981;
    --border: #e2e8f0;
}

body {
    background-color: #ffffff;
    color: var(--dark);
    line-height: 1.6;
    transition: overflow 0.3s;
}

body.menu-open {
    overflow: hidden;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header */
header {
    background: linear-gradient(135deg, #ede4e5 0%, #952a2a 100%);
    color: white;
    z-index: 1000;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    position: relative;
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 0;
}

.logo {
    padding-left: 15px;
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 1.8rem;
    font-weight: 700;
    color: white;
    text-decoration: none;
}

.logo img {
    width: 180px;
    height: 46px;
    object-fit: contain;
}

.logo i {
    color: var(--accent);
    font-size: 2rem;
}

/* Navigation */
.nav-menu {
    display: flex;
    list-style: none;
    gap: 30px;
}

.nav-menu a {
    color: white;
    text-decoration: none;
    font-weight: 500;
    font-size: 1.1rem;
    transition: color 0.3s;
    position: relative;
    padding: 5px 0;
}

.nav-menu a:hover {
    color: var(--accent);
}

.nav-menu a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--accent);
    transition: width 0.3s;
}

.nav-menu a:hover::after {
    width: 100%;
}

.nav-menu a.active {
    color: var(--accent);
}

.nav-menu a.active::after {
    width: 100%;
}

/* Mobile Menu Button */
.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    color: white;
    font-size: 1.5rem;
    cursor: pointer;
    padding: 10px;
    z-index: 1001;
    transition: transform 0.3s;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 4px;
    width: 44px;
    height: 44px;
    align-items: center;
    justify-content: center;
}

.mobile-menu-btn:hover {
    transform: scale(1.1);
}

/* Hero Section */
.hero {
    background: url('/assets/hero_app_bg.png');
    background-size: cover;
    background-position: center;
    color: white;
    padding: 100px 0;
    text-align: center;
    margin-bottom: 60px;
}

.hero h1 {
    font-size: 3.5rem;
    margin-bottom: 20px;
    font-weight: 800;
    line-height: 1.2;
}

.hero p {
    font-size: 1.3rem;
    max-width: 700px;
    margin: 0 auto 30px;
    color: #e2e8f0;
}

/* Sections */
section {
    padding: 60px 0;
}

section:nth-child(even) {
    background-color: #f8fafc;
}

.section-title {
    text-align: center;
    margin-bottom: 50px;
    position: relative;
}

.section-title h2 {
    font-size: 2.5rem;
    color: var(--secondary);
    margin-bottom: 15px;
    font-weight: 700;
}

.section-title::after {
    content: '';
    position: absolute;
    width: 80px;
    height: 4px;
    background-color: var(--primary);
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    border-radius: 2px;
}

/* APK Table */
.apk-table {
    width: 100%;
    border-collapse: collapse;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    border-radius: 10px;
    overflow: hidden;
    background: white;
}

.apk-table th {
    background-color: var(--primary);
    color: white;
    text-align: left;
    padding: 18px 20px;
    font-weight: 600;
}

.apk-table td {
    padding: 16px 20px;
    border-bottom: 1px solid var(--border);
}

.apk-table tr:last-child td {
    border-bottom: none;
}

.apk-table tr:nth-child(even) {
    background-color: #f8fafc;
}

/* Download Button */
.download-btn {
    display: inline-block;
    background: linear-gradient(to right, var(--primary), var(--primary-dark));
    color: white;
    text-decoration: none;
    padding: 16px 40px;
    font-size: 1.2rem;
    font-weight: 600;
    border-radius: 8px;
    transition: all 0.3s;
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.3);
    text-align: center;
    margin: 30px 0;
    border: none;
    cursor: pointer;
}

.download-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(37, 99, 235, 0.4);
}

.download-btn i {
    margin-right: 10px;
}

.btn-container {
    text-align: center;
}

/* Features */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.feature-card {
    background: white;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s, box-shadow 0.3s;
    text-align: center;
}

.feature-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.feature-icon {
    background-color: #eff6ff;
    color: var(--primary);
    width: 70px;
    height: 70px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    font-size: 1.8rem;
}

.feature-card h3 {
    font-size: 1.3rem;
    margin-bottom: 15px;
    color: var(--secondary);
}

/* Screenshots */
.screenshot-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 20px;
    margin-top: 40px;
}

.screenshot {
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s;
}

.screenshot:hover {
    transform: scale(1.03);
}

.screenshot img {
    width: 100%;
    height: auto;
    object-fit: cover;
    display: block;
}

/* FAQ */
.faq-container {
    max-width: 800px;
    margin: 40px auto 0;
}

.faq-item {
    margin-bottom: 20px;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.05);
}

.faq-question {
    background-color: white;
    padding: 20px;
    font-weight: 600;
    font-size: 1.1rem;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: var(--secondary);
}

.faq-answer {
    padding: 0 20px;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s, padding 0.3s;
    background-color: #f8fafc;
}

.faq-item.active .faq-answer {
    padding: 20px;
    max-height: 500px;
}

.faq-item.active .faq-question i {
    transform: rotate(180deg);
}

/* Footer */
footer {
    background-color: var(--secondary);
    color: white;
    padding: 60px 0 30px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

.footer-logo {
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 20px;
    color: white;
    display: flex;
    align-items: center;
    gap: 10px;
}

.footer-links h3 {
    font-size: 1.3rem;
    margin-bottom: 20px;
    color: var(--accent);
}

.footer-links ul {
    list-style: none;
}

.footer-links li {
    margin-bottom: 10px;
}

.footer-links a {
    color: #cbd5e1;
    text-decoration: none;
    transition: color 0.3s;
}

.footer-links a:hover {
    color: white;
}

.copyright {
    text-align: center;
    padding-top: 30px;
    border-top: 1px solid #334155;
    color: #94a3b8;
    font-size: 0.9rem;
}

/* Responsive */
@media (max-width: 992px) {
    .hero h1 {
        font-size: 2.8rem;
    }
    
    .section-title h2 {
        font-size: 2.2rem;
    }
}

/* Mobile Navigation - UPDATED FOR BETTER UX */
@media (max-width: 768px) {
    .mobile-menu-btn {
        display: flex;
    }
    
    .nav-menu {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100vh;
        background-color: rgba(15, 23, 42, 0.98);
        flex-direction: column;
        align-items: center;
        justify-content: flex-start;
        padding: 100px 20px 40px;
        gap: 0;
        opacity: 0;
        visibility: hidden;
        transition: all 0.3s ease-in-out;
        transform: translateY(-100%);
        z-index: 1000;
        overflow-y: auto;
    }
    
    .nav-menu.active {
        opacity: 1;
        visibility: visible;
        transform: translateY(0);
    }
    
    .nav-menu li {
        width: 100%;
        text-align: center;
        opacity: 0;
        transform: translateY(20px);
        transition: opacity 0.3s, transform 0.3s;
        margin-bottom: 8px;
    }
    
    .nav-menu.active li {
        opacity: 1;
        transform: translateY(0);
    }
    
    /* Staggered animation for menu items - UPDATED FOR 6 ITEMS */
    .nav-menu.active li:nth-child(1) { transition-delay: 0.1s; }
    .nav-menu.active li:nth-child(2) { transition-delay: 0.15s; }
    .nav-menu.active li:nth-child(3) { transition-delay: 0.2s; }
    .nav-menu.active li:nth-child(4) { transition-delay: 0.25s; }
    .nav-menu.active li:nth-child(5) { transition-delay: 0.3s; }
    .nav-menu.active li:nth-child(6) { transition-delay: 0.35s; }
    
    .nav-menu a, 
    .has-dropdown .dropdown-toggle {
        display: block;
        padding: 16px 20px;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
        font-size: 1.1rem;
        width: 100%;
        max-width: 280px;
        margin: 0 auto;
        border-radius: 8px;
        transition: all 0.3s;
        text-align: center;
        background: transparent;
        color: white;
        cursor: pointer;
    }
    
    .nav-menu a:hover,
    .nav-menu a.active,
    .has-dropdown .dropdown-toggle:hover {
        color: var(--accent);
        background-color: rgba(255, 255, 255, 0.05);
        border-color: rgba(245, 158, 11, 0.3);
    }
    
    /* Improved dropdown for mobile */
    .has-dropdown {
        width: 100%;
    }
    
    .has-dropdown .dropdown-toggle {
        display: flex;
        justify-content: space-between;
        align-items: center;
        cursor: pointer;
        width: 100%;
        border: none;
        background: transparent;
        color: white;
        font-size: 1.1rem;
        padding: 16px 20px;
        margin-bottom: 0;
    }
    
    .has-dropdown .dropdown-toggle i {
        transition: transform 0.3s ease;
        font-size: 0.9rem;
    }
    
    .has-dropdown.active .dropdown-toggle i {
        transform: rotate(180deg);
    }
    
    .has-dropdown .dropdown {
        position: static;
        width: 100%;
        max-width: 280px;
        margin: 0 auto;
        background: transparent;
        border: none;
        box-shadow: none;
        opacity: 1;
        visibility: visible;
        transform: none;
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.3s ease;
        padding: 0;
    }
    
    .has-dropdown.active .dropdown {
        max-height: 400px;
        margin-top: 5px;
        margin-bottom: 10px;
    }
    
    .has-dropdown .dropdown a {
        padding: 14px 20px;
        border-bottom: 1px solid rgba(255, 255, 255, 0.05);
        background-color: rgba(0, 0, 0, 0.2);
        margin-bottom: 2px;
        border-radius: 6px;
        font-size: 1rem;
        color: white;
        text-decoration: none;
        display: block;
    }
    
    .has-dropdown .dropdown li:last-child a {
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    }
    
    .has-dropdown .dropdown a:hover,
    .has-dropdown .dropdown a.active {
        background-color: rgba(245, 158, 11, 0.15);
        color: var(--accent);
    }
    
    /* Improved Language Switcher for Mobile */
    .language-switcher {
        margin-top: 20px;
        padding-top: 15px;
        border-top: 1px solid rgba(255, 255, 255, 0.1);
        width: 100%;
        position: relative;
    }
    
    .language-switcher select {
        width: 100%;
        max-width: 280px;
        margin: 0 auto;
        display: block;
        padding: 14px 40px 14px 15px;
        background-color: rgba(255, 255, 255, 0.15);
        border: 1px solid rgba(255, 255, 255, 0.3);
        border-radius: 8px;
        font-size: 1.1rem;
        color: white;
        cursor: pointer;
        appearance: none;
        -webkit-appearance: none;
        -moz-appearance: none;
    }
    
    .language-switcher::after {
        content: '▼';
        position: absolute;
        top: 50%;
        right: 50%;
        transform: translate(125px, -50%);
        color: white;
        font-size: 0.8rem;
        pointer-events: none;
        transition: transform 0.3s;
    }
    
    /* Header container adjustment for mobile */
    .header-container {
        padding: 15px 0;
        position: relative;
        min-height: 70px;
    }
    
    .logo img {
        width: 150px;
        height: auto;
    }
    
    .hero {
        padding: 80px 0;
    }
    
    .hero h1 {
        font-size: 2.2rem;
    }
    
    .hero p {
        font-size: 1.1rem;
        padding: 0 20px;
    }
    
    .section-title h2 {
        font-size: 1.8rem;
    }
    
    /* Mobile menu scrollbar */
    .nav-menu::-webkit-scrollbar {
        width: 5px;
    }
    
    .nav-menu::-webkit-scrollbar-track {
        background: rgba(255, 255, 255, 0.1);
        border-radius: 10px;
    }
    
    .nav-menu::-webkit-scrollbar-thumb {
        background: rgba(245, 158, 11, 0.5);
        border-radius: 10px;
    }
    
    .nav-menu::-webkit-scrollbar-thumb:hover {
        background: var(--accent);
    }
}

/* Optional: Add backdrop blur for modern browsers */
@supports (backdrop-filter: blur(10px)) {
    @media (max-width: 768px) {
        .nav-menu {
            backdrop-filter: blur(10px);
            background-color: rgba(15, 23, 42, 0.95);
        }
    }
}

/* Small mobile devices */
@media (max-width: 480px) {
    .nav-menu {
        padding: 90px 15px 30px;
    }
    
    .nav-menu a, 
    .has-dropdown .dropdown-toggle {
        max-width: 100%;
        padding: 14px 15px;
        font-size: 1rem;
    }
    
    .has-dropdown .dropdown a {
        padding: 12px 15px;
        font-size: 0.95rem;
    }
    
    .language-switcher select {
        max-width: 100%;
        font-size: 1rem;
        padding: 12px 35px 12px 15px;
    }
    
    .language-switcher::after {
        transform: translate(115px, -50%);
    }
    
    .hero h1 {
        font-size: 1.8rem;
    }
    
    .section-title h2 {
        font-size: 1.6rem;
    }
    
    .apk-table {
        font-size: 0.9rem;
    }
    
    .apk-table th, .apk-table td {
        padding: 12px 10px;
    }
    
    .feature-card {
        padding: 20px;
    }
    
    .features-grid {
        grid-template-columns: 1fr;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .logo img {
        width: 140px;
    }
}

/* Screenshot Gallery Styles */
.screenshot-container {
    position: relative;
    max-width: 900px;
    margin: 40px auto 0;
    padding: 0 40px;
}

.screenshot-gallery {
    display: flex;
    gap: 20px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    padding: 20px 10px 40px;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.screenshot-gallery::-webkit-scrollbar {
    display: none;
}

.screenshot-slide {
    flex: 0 0 auto;
    width: 280px;
    scroll-snap-align: center;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s, box-shadow 0.3s;
    background: white;
    position: relative;
}

.screenshot-slide:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 35px rgba(0, 0, 0, 0.15);
}

.screenshot-slide img {
    width: 100%;
    object-fit: cover;
    display: block;
    border-bottom: 1px solid var(--border);
}

.screenshot-caption {
    padding: 15px;
    text-align: center;
    background: white;
    font-weight: 600;
    color: var(--secondary);
    border-top: 1px solid var(--border);
}

/* Navigation Arrows */
.screenshot-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: white;
    border: none;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    color: var(--primary);
    z-index: 10;
    transition: all 0.3s;
    opacity: 0.9;
}

.screenshot-nav:hover {
    background: var(--primary);
    color: white;
    opacity: 1;
    transform: translateY(-50%) scale(1.1);
}

.screenshot-nav.prev {
    left: 0;
}

.screenshot-nav.next {
    right: 0;
}

/* Scroll Indicator */
.scroll-indicator {
    display: none;
    justify-content: center;
    align-items: center;
    gap: 10px;
    margin-top: 20px;
    color: var(--gray);
    font-size: 0.9rem;
    animation: bounce 2s infinite;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateX(0);
    }
    40% {
        transform: translateX(10px);
    }
    60% {
        transform: translateX(5px);
    }
}

/* Dots Indicator */
.dots-indicator {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 25px;
}

.dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #cbd5e1;
    cursor: pointer;
    transition: background 0.3s, transform 0.3s;
}

.dot.active {
    background: var(--primary);
    transform: scale(1.3);
}

.dot:hover {
    background: var(--primary-dark);
    transform: scale(1.2);
}

/* Mobile Styles */
@media (max-width: 768px) {
    .screenshot-container {
        padding: 0 20px;
    }
    
    .screenshot-slide {
        width: 85vw;
        max-width: 320px;
    }
    
    .screenshot-nav {
        display: none;
    }
    
    .scroll-indicator {
        display: flex;
    }
    
    .dots-indicator {
        margin-top: 20px;
    }
}

@media (max-width: 576px) {
    .screenshot-slide {
        width: 90vw;
    }
    
    .screenshot-caption {
        padding: 12px;
        font-size: 0.9rem;
    }
}

/* Desktop hover effects */
@media (hover: hover) and (min-width: 769px) {
    .screenshot-slide:hover {
        transform: translateY(-10px) scale(1.02);
    }
    
    .screenshot-nav {
        opacity: 0;
        transition: opacity 0.3s;
    }
    
    .screenshot-container:hover .screenshot-nav {
        opacity: 0.9;
    }
}

/* Dropdown Menu - UPDATED */
.has-dropdown {
    position: relative;
}

.has-dropdown .dropdown-toggle {
    background: none;
    border: none;
    color: white;
    font-weight: 500;
    font-size: 1.1rem;
    cursor: pointer;
    padding: 5px 0;
    display: flex;
    align-items: center;
    gap: 5px;
    font-family: inherit;
    position: relative;
    transition: color 0.3s;
}

.has-dropdown .dropdown-toggle:hover {
    color: var(--accent);
}

.has-dropdown .dropdown-toggle::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--accent);
    transition: width 0.3s;
}

.has-dropdown .dropdown-toggle:hover::after {
    width: 100%;
}

.has-dropdown .dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 5px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    min-width: 200px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all 0.3s ease;
    z-index: 1000;
    max-height: 0;
    overflow: hidden;
}

.has-dropdown:hover .dropdown,
.has-dropdown.active .dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    max-height: 500px;
    overflow: visible;
}

.has-dropdown .dropdown li {
    display: block;
    width: 100%;
}

.has-dropdown .dropdown a {
    display: block;
    padding: 10px 15px;
    color: #333;
    text-decoration: none;
    border-bottom: 1px solid #f5f5f5;
    transition: all 0.3s;
}

.has-dropdown .dropdown a:hover {
    background: #f8f8f8;
    color: #007bff;
}

.has-dropdown .dropdown a.active {
    background: #007bff;
    color: white;
}

/* Language Switcher - UPDATED */
.language-switcher {
    position: relative;
}

.language-switcher select {
    background-color: rgba(255, 255, 255, 0.15);
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 6px;
    padding: 8px 30px 8px 12px;
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    transition: all 0.3s ease;
    min-width: 120px;
}

.language-switcher select:hover {
    background-color: rgba(255, 255, 255, 0.25);
    border-color: rgba(255, 255, 255, 0.5);
}

.language-switcher select:focus {
    outline: none;
    background-color: rgba(255, 255, 255, 0.25);
    border-color: var(--accent);
    box-shadow: 0 0 0 2px rgba(245, 158, 11, 0.2);
}

/* Custom dropdown arrow */
.language-switcher::after {
    content: '▼';
    position: absolute;
    top: 50%;
    right: 12px;
    transform: translateY(-50%);
    color: white;
    font-size: 0.7rem;
    pointer-events: none;
    transition: transform 0.3s;
}

.language-switcher select:focus + ::after {
    color: var(--accent);
}

/* Options styling */
.language-switcher option {
    background-color: var(--secondary);
    color: white;
    padding: 10px;
}

/* For Firefox */
@-moz-document url-prefix() {
    .language-switcher select {
        padding-right: 12px;
    }
}

/* For IE11 */
@media all and (-ms-high-contrast: none), (-ms-high-contrast: active) {
    .language-switcher::after {
        display: none;
    }
}

