:root {
    --primary: #007DBE;
    --primary-dark: #005a8c;
    --secondary: #1a1a2e;
    --accent: #F7D117;
    --text: #333;
    --text-light: #666;
    --bg: #fff;
    --bg-light: #f8f9fa;
    --border: #e0e0e0;
    --footer-bg: #1a1a2e;
    --footer-text: #fff;
    --footer-text-muted: rgba(255,255,255,0.7);
    --footer-border: rgba(255,255,255,0.1);
    --app-hero-bg: linear-gradient(135deg, #1a1a2e 0%, #2a2a4e 100%);
    --app-hero-text: #fff;
}

@media (prefers-color-scheme: dark) {
    :root {
        --primary: #4da8da;
        --primary-dark: #7bc4e8;
        --secondary: #e8e8e8;
        --accent: #F7D117;
        --text: #e0e0e0;
        --text-light: #b0b0b0;
        --bg: #1a1a2e;
        --bg-light: #252540;
        --border: #3a3a5a;
        --footer-bg: #0d0d1a;
        --footer-text: #e0e0e0;
        --footer-text-muted: rgba(255,255,255,0.6);
        --footer-border: rgba(255,255,255,0.1);
        --app-hero-bg: linear-gradient(135deg, #0d0d1a 0%, #1a1a2e 100%);
        --app-hero-text: #e0e0e0;
    }

    .app-card img,
    .screenshots-grid img,
    .gallery-item img {
        opacity: 0.9;
    }
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Noto Sans', Arial, Helvetica, sans-serif;
    line-height: 1.6;
    color: var(--text);
    background: var(--bg);
}

a {
    color: var(--primary);
    text-decoration: none;
    transition: color 0.2s;
}

a:hover {
    color: var(--primary-dark);
}

img {
    max-width: 100%;
    height: auto;
}

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

/* Header */
.header {
    background: var(--bg);
    border-bottom: 1px solid var(--border);
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
}

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

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    font-weight: 700;
    font-size: 1.4rem;
    color: var(--secondary);
}

.logo img {
    height: 40px;
    width: auto;
}

.nav {
    display: flex;
    gap: 30px;
}

.nav a {
    color: var(--text);
    font-weight: 500;
}

.nav a:hover {
    color: var(--primary);
}

.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--text);
}

/* Hero */
.hero {
    padding: 140px 0 80px;
    background: linear-gradient(135deg, var(--bg-light) 0%, var(--bg) 100%);
    text-align: center;
}

.hero-logo {
    display: block;
    margin: 0 auto 30px;
}

.hero-logo img {
    width: 280px;
    height: auto;
}

.hero h1 {
    font-size: 2.8rem;
    color: var(--secondary);
    margin-bottom: 20px;
    line-height: 1.2;
}

.hero .tagline {
    font-size: 1.3rem;
    color: var(--text-light);
    margin-bottom: 30px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.hero-btns {
    display: flex;
    gap: 15px;
    justify-content: center;
    flex-wrap: wrap;
}

.btn {
    display: inline-block;
    padding: 12px 28px;
    border-radius: 6px;
    font-weight: 600;
    transition: all 0.2s;
    cursor: pointer;
    border: none;
    font-size: 1rem;
}

.btn-primary {
    background: var(--primary);
    color: #fff;
}

.btn-primary:hover {
    background: var(--primary-dark);
    color: #fff;
}

.btn-outline {
    background: transparent;
    border: 2px solid var(--primary);
    color: var(--primary);
}

.btn-outline:hover {
    background: var(--primary);
    color: #fff;
}

/* Sections */
section {
    padding: 80px 0;
}

section + section.about {
    padding-top: 40px;
}

section h2 {
    text-align: center;
    font-size: 2rem;
    color: var(--secondary);
    margin-bottom: 50px;
}

/* Services */
.services {
    background: var(--bg-light);
}

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

.service-card {
    background: var(--bg);
    padding: 35px;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.06);
    transition: transform 0.2s, box-shadow 0.2s;
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 30px rgba(0,0,0,0.1);
}

.service-card .icon {
    font-size: 2.5rem;
    margin-bottom: 20px;
}

.service-card h3 {
    font-size: 1.3rem;
    color: var(--secondary);
    margin-bottom: 12px;
}

.service-card p {
    color: var(--text-light);
}

/* Apps */
.apps-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 40px;
}

.app-card {
    background: var(--bg);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
    transition: transform 0.2s, box-shadow 0.2s;
}

.app-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 30px rgba(0,0,0,0.12);
}

.app-card img {
    width: 100%;
    height: 220px;
    object-fit: cover;
    border-bottom: 1px solid var(--border);
}

.app-card-content {
    padding: 25px;
}

.app-card h3 {
    font-size: 1.4rem;
    color: var(--secondary);
    margin-bottom: 10px;
}

.app-card p {
    color: var(--text-light);
    margin-bottom: 20px;
}

/* About */
.about {
    background: var(--bg-light);
}

.about-content {
    max-width: 800px;
    margin: 0 auto;
    text-align: left;
}

.about-content p {
    font-size: 1.1rem;
    color: var(--text-light);
    margin-bottom: 20px;
}

/* Footer */
.footer {
    background: var(--footer-bg);
    color: var(--footer-text);
    padding: 50px 0 30px;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 40px;
    margin-bottom: 40px;
}

.footer-section h4 {
    font-size: 1.1rem;
    margin-bottom: 15px;
    color: var(--footer-text);
}

.footer-section a {
    color: var(--footer-text-muted);
    display: block;
    margin-bottom: 8px;
}

.footer-section a:hover {
    color: var(--footer-text);
}

.footer-section p {
    color: var(--footer-text-muted);
}

.footer-bottom {
    text-align: center;
    padding-top: 30px;
    border-top: 1px solid var(--footer-border);
    color: var(--footer-text-muted);
    font-size: 0.9rem;
}

/* App Detail Page */
.app-hero {
    padding: 120px 0 60px;
    background: var(--app-hero-bg);
    color: var(--app-hero-text);
}

.app-hero .container {
    display: flex;
    align-items: center;
    gap: 40px;
}

.app-hero-content {
    flex: 1;
}

.app-hero-preview {
    flex: 0 0 380px;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 10px 40px rgba(0,0,0,0.3);
}

.app-hero-preview img {
    width: 100%;
    height: auto;
    display: block;
}

.app-hero h1 {
    font-size: 2.5rem;
    margin-bottom: 15px;
}

.app-hero .tagline {
    font-size: 1.2rem;
    opacity: 0.9;
    margin-bottom: 25px;
}

.features {
    background: var(--bg);
}

.features-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 25px;
    margin-bottom: 40px;
}

.feature-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
}

.feature-item .check {
    color: var(--primary);
    font-size: 1.2rem;
    flex-shrink: 0;
}

.feature-item p {
    color: var(--text);
}

.screenshots {
    background: var(--bg-light);
}

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

.screenshots-grid img {
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
    cursor: pointer;
    transition: transform 0.2s;
}

.screenshots-grid img:hover {
    transform: scale(1.02);
}

.back-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 30px;
    color: rgba(255,255,255,0.8);
}

.back-link:hover {
    color: #fff;
}

/* Language Selector */
.lang-selector {
    position: relative;
    margin-left: 20px;
}

.lang-btn {
    background: none;
    border: 1px solid var(--border);
    padding: 6px 12px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 0.9rem;
    color: var(--text);
    display: flex;
    align-items: center;
    gap: 6px;
}

.lang-btn:hover {
    border-color: var(--primary);
    color: var(--primary);
}

.lang-dropdown {
    display: none;
    position: absolute;
    top: 100%;
    right: 0;
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: 6px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    min-width: 120px;
    z-index: 1001;
    margin-top: 5px;
}

.lang-dropdown.active {
    display: block;
}

.lang-dropdown a {
    display: block;
    padding: 10px 15px;
    color: var(--text);
    font-size: 0.9rem;
}

.lang-dropdown a:hover {
    background: var(--bg-light);
    color: var(--primary);
}

.lang-dropdown a.active {
    background: var(--primary);
    color: #fff;
}

/* Gallery */
.gallery {
    background: var(--bg);
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: 8px;
    aspect-ratio: 3/4;
    cursor: pointer;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s;
}

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

.gallery-item::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.4) 0%, transparent 50%);
    opacity: 0;
    transition: opacity 0.3s;
}

.gallery-item:hover::after {
    opacity: 1;
}

/* Lightbox */
.lightbox {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.9);
    z-index: 2000;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.lightbox.active {
    display: flex;
}

.lightbox img {
    max-width: 90%;
    max-height: 90vh;
    object-fit: contain;
    border-radius: 4px;
}

.lightbox-close {
    position: absolute;
    top: 20px;
    right: 30px;
    color: #fff;
    font-size: 2rem;
    cursor: pointer;
    background: none;
    border: none;
    opacity: 0.8;
}

.lightbox-close:hover {
    opacity: 1;
}

/* Section Intro */
.section-intro {
    text-align: left;
    font-size: 1.1rem;
    color: var(--text-light);
    margin-bottom: 40px;
    max-width: 800px;
}

/* Apps Category Headers */
.apps-category {
    font-size: 1.3rem;
    color: var(--secondary);
    margin-bottom: 25px;
    margin-top: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--border);
}

/* App Subtitle */
.app-subtitle {
    font-size: 0.95rem;
    color: var(--primary);
    font-weight: 500;
    margin-bottom: 10px !important;
    font-style: italic;
}

/* Future Apps Styling */
.app-card-future {
    opacity: 0.65;
    filter: grayscale(40%);
    cursor: default;
    background: var(--bg);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
}

.app-card-future:hover {
    transform: none;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
}

.app-card-future img {
    width: 100%;
    height: 220px;
    object-fit: cover;
    border-bottom: 1px solid var(--border);
}

.app-card-future .app-card-content {
    padding: 25px;
}

.app-card-future h3 {
    font-size: 1.4rem;
    color: var(--secondary);
    margin-bottom: 10px;
}

.app-card-future p {
    color: var(--text-light);
    margin-bottom: 15px;
}

.app-status {
    display: inline-block;
    background: var(--text-light);
    color: white;
    padding: 4px 12px;
    border-radius: 4px;
    font-size: 0.75rem;
    text-transform: uppercase;
    font-weight: 600;
    letter-spacing: 0.5px;
    margin-bottom: 12px;
}

/* Sign In Button */
.btn-signin {
    padding: 8px 20px;
    font-size: 0.9rem;
    margin-left: 15px;
}

/* Responsive */
@media (max-width: 768px) {
    .nav {
        display: none;
        position: absolute;
        top: 70px;
        left: 0;
        right: 0;
        background: var(--bg);
        flex-direction: column;
        padding: 20px;
        gap: 15px;
        border-bottom: 1px solid var(--border);
        box-shadow: 0 4px 10px rgba(0,0,0,0.1);
    }

    .nav.active {
        display: flex;
    }

    .mobile-menu-btn {
        display: block;
    }

    .hero h1 {
        font-size: 2rem;
    }

    .hero .tagline {
        font-size: 1.1rem;
    }

    section h2 {
        font-size: 1.6rem;
    }

    .apps-grid {
        grid-template-columns: 1fr;
    }

    .screenshots-grid {
        grid-template-columns: 1fr;
    }

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

    .gallery-grid {
        grid-template-columns: 1fr;
    }

    .lang-selector {
        margin-left: 10px;
    }

    .btn-signin {
        display: none;
    }

    .app-hero .container {
        flex-direction: column;
        text-align: center;
    }

    .app-hero-preview {
        flex: none;
        width: 100%;
        max-width: 350px;
    }

    .app-hero .back-link {
        justify-content: center;
    }
}
