/* Artist Paint Mixer - Website Styles */

:root {
    --bg-primary: #0f1115;
    --bg-secondary: #181b21;
    --accent: #3b82f6;
    --accent-glow: rgba(59, 130, 246, 0.4);
    --text-primary: #f3f4f6;
    --text-secondary: #9ca3af;
    --border: rgba(255, 255, 255, 0.08);
    --container-width: 1200px;
    --nav-height: 70px;
}

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

html {
    scroll-behavior: smooth;
    scroll-padding-top: var(--nav-height);
}

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
}

body {
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    background-color: var(--bg-primary);
    background-image: 
        radial-gradient(circle at 10% 20%, rgba(59, 130, 246, 0.05), transparent 40%),
        radial-gradient(circle at 90% 80%, rgba(139, 92, 246, 0.05), transparent 40%);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 1.5rem;
}

/* Header & Nav */
header {
    background: rgba(15, 17, 21, 0.85);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    border-bottom: 1px solid var(--border);
    height: var(--nav-height);
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 100%;
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    font-weight: 700;
    font-size: 1.15rem;
    letter-spacing: -0.01em;
    text-decoration: none;
    color: var(--text-primary);
    z-index: 1001;
    white-space: nowrap;
    flex-shrink: 0;
}

.logo-img {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    object-fit: cover;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 32px;
    align-items: center;
    direction: ltr !important;
}

.nav-links a {
    text-decoration: none;
    color: var(--text-secondary);
    font-size: 0.9rem;
    font-weight: 500;
    transition: color 0.2s;
}

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

/* Hamburger Menu */
.hamburger {
    display: none;
    flex-direction: column;
    gap: 6px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 10px;
    z-index: 1001;
    direction: ltr !important;
}

.hamburger span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--text-primary);
    transition: 0.3s;
}

/* Reveal on Mobile */
@media (max-width: 768px) {
    .hamburger {
        display: flex;
    }

    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        width: 80%;
        height: 100vh;
        background: var(--bg-secondary);
        flex-direction: column;
        justify-content: flex-start;
        align-items: flex-start;
        padding: 72px 0 40px 40px;
        gap: 28px;
        transition: 0.4s cubic-bezier(0.4, 0, 0.2, 1);
        box-shadow: -10px 0 30px rgba(0,0,0,0.5);
        border-left: 1px solid var(--border);
    }

    .nav-links.active {
        right: 0;
    }

    .nav-links a {
        font-size: 1.25rem;
    }

    .nav-links li.lang-dropdown {
        order: -1;
        margin-bottom: 8px;
    }

    .nav-links li.lang-dropdown .lang-btn {
        font-size: 1.25rem;
    }

    .nav-links li.lang-dropdown .lang-menu {
        left: 0;
        right: auto;
    }

    .hamburger.active span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
    .hamburger.active span:nth-child(2) { opacity: 0; }
    .hamburger.active span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }
}

/* Language Dropdown */
.lang-dropdown {
    position: relative;
    overflow-anchor: none;
}

.lang-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    background: transparent;
    border: none;
    color: var(--text-secondary);
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    transition: color 0.2s;
    min-width: 140px;
    justify-content: flex-end;
}

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

.dropdown-arrow {
    transition: transform 0.2s;
}

.lang-menu.show + .lang-btn .dropdown-arrow {
    transform: rotate(180deg);
}

.lang-menu {
    position: absolute;
    top: calc(100% + 15px);
    right: 0;
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 8px;
    list-style: none;
    display: none;
    flex-direction: column;
    gap: 4px;
    min-width: 220px;
    box-shadow: 0 8px 24px rgba(0,0,0,0.4);
    max-height: 60vh;
    overflow-y: auto;
}

.lang-menu.show {
    display: flex;
}

.lang-menu-item {
    display: block;
    padding: 10px 16px;
    border-radius: 8px;
    text-decoration: none;
    color: var(--text-primary);
    font-weight: 500;
    transition: background-color 0.2s;
}

.lang-menu-item:hover {
    background-color: var(--accent);
    color: #fff;
}

/* Language Suggestion Prompt */
.lang-prompt {
    position: fixed;
    bottom: 24px;
    inset-inline-start: 24px;
    background: rgba(30, 30, 30, 0.9);
    backdrop-filter: blur(12px);
    padding: 12px 20px;
    border-radius: 12px;
    border: 1px solid var(--border);
    display: flex;
    align-items: center;
    gap: 16px;
    z-index: 10000;
    box-shadow: 0 8px 32px rgba(0,0,0,0.5);
    animation: slideUp 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

@keyframes slideUp {
    from { transform: translateY(100px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

.lang-prompt-actions {
    display: flex;
    align-items: center;
    gap: 12px;
}

.btn-prompt {
    background: var(--accent);
    color: #fff;
    text-decoration: none;
    padding: 6px 16px;
    border-radius: 6px;
    font-size: 0.85rem;
    font-weight: 600;
    transition: all 0.2s;
}

.btn-prompt:hover {
    background: #2563eb;
}

.btn-prompt-close {
    background: transparent;
    border: none;
    color: var(--text-secondary);
    font-size: 1.5rem;
    cursor: pointer;
    line-height: 1;
    padding: 0 4px;
}

.btn-prompt-close:hover {
    color: #fff;
}

@media (max-width: 600px) {
    .lang-prompt {
        inset-inline-start: 12px;
        inset-inline-end: 12px;
        justify-content: space-between;
    }
}

/* RTL Specific for Dropdown */
[dir="rtl"] .lang-menu {
    right: auto;
    left: 0;
}

/* Buttons */
.btn-main {
    background: var(--accent);
    color: #fff;
    text-decoration: none;
    padding: 16px 32px;
    border-radius: 10px;
    font-weight: 600;
    font-size: 0.95rem;
    white-space: nowrap;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
}

.btn-main:hover {
    background: #2563eb;
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(59, 130, 246, 0.4);
}

.btn-app {
    background: rgba(255, 255, 255, 0.05);
    color: #fff;
    text-decoration: none;
    padding: 16px 32px;
    border-radius: 10px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.btn-app:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: var(--accent);
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
}

/* Download CTA layout — Google Play badge + Web App button side by side */
.download-layout {
    display: flex;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
    justify-content: center;
    margin-bottom: 1.5rem;
}

.official-badge {
    display: inline-block;
    line-height: 0;
}

.official-badge img {
    height: 60px;
    width: auto;
    display: block;
}

/* Web App button — matches Google Play badge exactly */
.btn-web-app {
    background: #100f0d;
    color: #fff;
    text-decoration: none;
    height: 60px;
    min-width: 202px;
    padding: 0 16px 0 14px;
    border-radius: 7.5px;
    border: 1px solid #a2a2a1;
    font-family: 'Roboto', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    white-space: nowrap;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    transition: all 0.2s;
}

.btn-web-app svg {
    width: 40px !important;
    height: 40px !important;
    margin-right: 0 !important;
    flex-shrink: 0;
}

.wapp-text {
    display: flex;
    flex-direction: column;
    text-align: left;
}

.wapp-label,
.wapp-name {
    display: block;
    line-height: 1.15;
    text-align: left;
}

.wapp-label {
    font-size: 11px;
    font-weight: 400;
    letter-spacing: 0.05em;
    opacity: 0.85;
    text-transform: uppercase;
}

.wapp-name {
    font-size: 20px;
    font-weight: 500;
    letter-spacing: 0.01em;
}

.btn-web-app:hover {
    background: #1e1d1b;
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0,0,0,0.5);
}

/* Hero actions layout — badges side by side */
.hero-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px;
}

.btn-secondary {
    color: var(--text-primary);
    text-decoration: none;
    padding: 16px 32px;
    border-radius: 10px;
    font-weight: 500;
    font-size: 0.95rem;
    white-space: nowrap;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--border);
    background: rgba(255, 255, 255, 0.03);
    transition: all 0.2s;
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.08);
}

/* Hero Section */
.hero {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 140px 0 100px;
    min-height: 100vh;
    gap: 40px;
    direction: ltr !important;
}

.hero-content {
    flex: 1;
    max-width: 600px;
    z-index: 2;
}

h1 {
    font-family: 'DM Serif Display', Georgia, serif;
    font-size: 4rem;
    font-weight: 400;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    letter-spacing: -0.02em;
}

.accent {
    background: linear-gradient(135deg, #60a5fa 0%, #a78bfa 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-sub {
    font-size: 1.25rem;
    color: var(--text-secondary);
    margin-bottom: 3rem;
    max-width: 520px;
    line-height: 1.6;
}

.hero-actions {
    display: flex;
    gap: 16px;
}

/* Intro Section */
.intro {
    padding: 80px 0;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    border-top: 1px solid var(--border);
    direction: ltr !important;
}

.intro-box h2 {
    font-family: 'DM Serif Display', Georgia, serif;
    font-size: 2rem;
    font-weight: 400;
    margin-bottom: 1.5rem;
    color: var(--accent);
}

.intro-box p {
    font-size: 1.15rem;
    color: var(--text-primary);
    line-height: 1.7;
    margin-bottom: 1.25rem;
}

.intro-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.intro-list li {
    font-size: 1rem;
    color: var(--text-secondary);
    padding-inline-start: 24px;
    position: relative;
    line-height: 1.5;
}

.intro-list li::before {
    content: "→";
    position: absolute;
    inset-inline-start: 0;
    color: var(--accent);
    font-weight: 800;
}

@media (max-width: 900px) {
    .intro {
        grid-template-columns: 1fr;
        gap: 40px;
        padding: 60px 0;
    }
}

.intro-box.full-width-box {
    grid-column: 1 / -1;
    text-align: center;
    border-top: 1px solid var(--border);
    padding-top: 40px;
}

.intro-box.full-width-box p {
    margin: 0 auto;
}

/* App Mockup */
.hero-visual {
    flex: 1;
    display: flex;
    justify-content: center;
    perspective: 1200px;
}

.app-mockup {
    width: 320px;
    height: 640px;
    background: #000;
    border-radius: 48px;
    padding: 12px;
    border: 6px solid #2d2d2d;
    box-shadow: 
        0 40px 100px -20px rgba(0, 0, 0, 0.8),
        0 0 80px -20px var(--accent-glow);
    position: relative;
    transform: rotateY(-15deg) rotateX(5deg) rotateZ(2deg);
    transition: transform 0.6s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.app-mockup:hover {
    transform: rotateY(-5deg) rotateX(2deg) scale(1.02);
}

.mockup-screen {
    width: 100%;
    height: 100%;
    background: #181b21;
    border-radius: 36px;
    overflow: hidden;
    position: relative;
    border: 1px solid rgba(255,255,255,0.05);
}

.app-screenshot {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: 85% center; 
}

.hero-qr {
    position: absolute;
    bottom: 24px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0,0,0,0.85);
    backdrop-filter: blur(12px);
    padding: 16px;
    border-radius: 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    border: 1px solid rgba(255,255,255,0.1);
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
}

.hero-qr img {
    width: 110px;
    height: 110px;
    border-radius: 10px;
}

.hero-qr span {
    font-size: 0.75rem;
    font-weight: 700;
    color: #fff;
    text-transform: uppercase;
    letter-spacing: 0.12em;
}

/* Features Section */
.features {
    padding: 120px 0;
    background: var(--bg-secondary);
    direction: ltr !important;
}

.section-title {
    font-family: 'DM Serif Display', Georgia, serif;
    text-align: center;
    font-size: 2.5rem;
    font-weight: 400;
    margin-bottom: 1.5rem;
    letter-spacing: -0.01em;
}

.section-sub {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 4rem;
    color: var(--text-secondary);
    font-size: 1.15rem;
}

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

.feature-card {
    background: var(--bg-primary);
    padding: 40px 30px;
    border-radius: 24px;
    border: 1px solid var(--border);
    transition: all 0.3s ease;
}

.feature-card:hover {
    transform: translateY(-8px);
    border-color: var(--accent);
}

.feature-icon {
    font-size: 2rem;
    margin-bottom: 1.5rem;
    background: rgba(59, 130, 246, 0.1);
    width: 64px;
    height: 64px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.feature-card h3 {
    font-size: 1.25rem;
    margin-bottom: 1rem;
    font-weight: 700;
}

.feature-card p {
    color: var(--text-secondary);
    font-size: 0.95rem;
    line-height: 1.6;
}

/* Science Section & Comparison */
.science-section {
    padding: 120px 0;
    direction: ltr !important;
}

.science-header {
    text-align: center;
    margin-bottom: 5rem;
}

.comparison-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 40px;
    margin-bottom: 80px;
}

.comparison-card {
    background: var(--bg-secondary);
    padding: 50px 40px;
    border-radius: 32px;
    border: 1px solid var(--border);
    position: relative;
    overflow: hidden;
}

.comp-type {
    font-size: 0.75rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--text-secondary);
    margin-bottom: 1rem;
}

.comparison-card h3 {
    font-size: 1.75rem;
    margin-bottom: 1.5rem;
}

.comparison-card p {
    color: var(--text-secondary);
    margin-bottom: 2rem;
}

.mud-meter, .vibrant-meter {
    display: inline-block;
    padding: 8px 16px;
    border-radius: 100px;
    font-size: 0.85rem;
    font-weight: 700;
}

.mud-meter {
    background: rgba(239, 68, 68, 0.1);
    color: #ef4444;
}

.vibrant-meter {
    background: rgba(34, 197, 197, 0.1);
    color: #22c55e;
}

.comparison-card.featured {
    border-color: var(--accent);
    background: radial-gradient(circle at top right, rgba(59, 130, 246, 0.1), transparent);
}

/* KM Deep Dive */
.km-deep-dive {
    background: var(--bg-secondary);
    border-radius: 40px;
    padding: 80px;
    border: 1px solid var(--border);
}

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

.km-content p {
    font-size: 1.15rem;
}

.km-content h2 {
    font-family: 'DM Serif Display', Georgia, serif;
    font-size: 2.5rem;
    font-weight: 400;
    margin-bottom: 1.5rem;
}

.km-stats {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    margin: 40px 0;
    text-align: left;
}

.km-stat {
    background: var(--bg-primary);
    padding: 30px;
    border-radius: 20px;
    border: 1px solid var(--border);
}

.km-stat strong {
    display: block;
    font-size: 1.25rem;
    color: var(--accent);
    margin-bottom: 10px;
}

.km-stat span {
    font-size: 0.95rem;
    color: var(--text-secondary);
}

.km-closing {
    font-size: 1.15rem;
    color: var(--text-primary);
    margin-bottom: 30px;
}

.delta-e-tag {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: rgba(255, 255, 255, 0.15);
    padding: 10px 20px;
    border-radius: 100px;
    font-weight: 700;
    font-size: 0.9rem;
}

/* Showcase Section */
.showcase {
    padding: 120px 0;
    direction: ltr !important;
}

.gallery {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(450px, 1fr));
    gap: 40px;
}

.gallery-item {
    background: var(--bg-secondary);
    border-radius: 24px;
    overflow: hidden;
    border: 1px solid var(--border);
    transition: transform 0.4s ease;
}

.gallery-item:hover {
    transform: translateY(-8px);
}

.gallery-img-container {
    width: 100%;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    background: #000;
}

.gallery-img-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

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

.gallery-caption {
    padding: 30px;
}

/* FAQ Section */
.faq {
    padding: 100px 0;
    direction: ltr !important;
}

.faq-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 40px;
}

.faq-item {
    background: rgba(255,255,255,0.02);
    padding: 32px;
    border-radius: 20px;
    border: 1px solid var(--border);
}

.faq-item h3 {
    font-size: 1.15rem;
    color: var(--accent);
    margin-bottom: 1rem;
}

.faq-learn-more {
    display: inline-block;
    margin-top: 0.75rem;
    font-size: 0.85rem;
    color: var(--accent);
    opacity: 0.75;
    text-decoration: none;
    transition: opacity 0.2s;
}
.faq-learn-more:hover { opacity: 1; }

/* CTA Section */
.cta-section {
    padding: 120px 0;
    direction: ltr !important;
}

.cta-card {
    text-align: center;
    padding: 100px 40px;
    border-radius: 40px;
    background: radial-gradient(circle at center, rgba(59, 130, 246, 0.15), transparent 80%);
    border: 1px solid var(--border);
}

.cta-card p {
    font-size: 1.15rem;
    color: var(--text-secondary);
    margin-bottom: 4rem;
}

.tech-specs-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 40px;
    margin-top: 40px;
}

.spec-item {
    font-size: 0.95rem;
    color: var(--text-secondary);
}

.spec-item strong {
    color: #fff;
    margin-right: 8px;
}

/* Contact Form Styles */
.contact-section {
    padding: 120px 0;
    max-width: 600px;
    margin: 0 auto;
}

.contact-form {
    background: var(--bg-secondary);
    padding: 40px;
    border-radius: 32px;
    border: 1px solid var(--border);
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.form-group label {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-primary);
}

.form-control {
    background: var(--bg-primary);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 12px 16px;
    color: var(--text-primary);
    font-family: inherit;
    font-size: 1rem;
    transition: border-color 0.2s;
}

.form-control:focus {
    outline: none;
    border-color: var(--accent);
}

textarea.form-control {
    min-height: 150px;
    resize: vertical;
}

/* Honeypot */
.hidden-field {
    display: none !important;
}

.form-status {
    padding: 16px;
    border-radius: 12px;
    font-size: 0.95rem;
    display: none;
}

.form-status.success {
    display: block;
    background: rgba(34, 197, 94, 0.1);
    color: #22c55e;
    border: 1px solid rgba(34, 197, 94, 0.2);
}

.form-status.error {
    display: block;
    background: rgba(239, 68, 68, 0.1);
    color: #ef4444;
    border: 1px solid rgba(239, 68, 68, 0.2);
}

/* Lightbox Modal */
.lightbox {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    backdrop-filter: blur(8px);
    justify-content: center;
    align-items: center;
    flex-direction: column;
    padding: 20px;
}

.lightbox-content {
    max-width: 90%;
    max-height: 80vh;
    border-radius: 12px;
    box-shadow: 0 0 40px rgba(0, 0, 0, 0.5);
    object-fit: contain;
}

#caption {
    margin-top: 20px;
    color: var(--text-primary);
    font-size: 1.1rem;
    font-weight: 500;
    text-align: center;
}

.close-lightbox {
    position: absolute;
    top: 30px;
    right: 40px;
    color: #fff;
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
    transition: 0.3s;
    background: none;
    border: none;
    padding: 0;
    line-height: 1;
    font-family: inherit;
}

.close-lightbox:hover {
    color: var(--accent);
}

/* Gallery Page Specific */
.gallery-full-view {
    padding: 120px 0 80px;
}

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

.full-image-item {
    width: 100%;
    background: var(--bg-secondary);
    padding: 10px;
    border-radius: 20px;
    border: 1px solid var(--border);
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
    transition: all 0.3s ease;
}

.full-image-item:hover {
    transform: translateY(-5px);
    border-color: var(--accent);
    box-shadow: 0 20px 40px rgba(0,0,0,0.4);
}

.full-image-item img {
    width: 100%;
    height: auto;
    border-radius: 12px;
    display: block;
}

/* Animations */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

/* Back to Top Button */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: var(--accent);
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    font-size: 1.5rem;
    z-index: 999;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s;
    box-shadow: 0 4px 15px rgba(59, 130, 246, 0.4);
}

.back-to-top.show {
    opacity: 1;
    visibility: visible;
}

.back-to-top:hover {
    transform: translateY(-5px);
    background: #2563eb;
}

/* Footer */
footer {
    padding: 80px 0;
    border-top: 1px solid var(--border);
}

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

.footer-contact a {
    color: inherit;
}

.social-links {
    display: flex;
    align-items: center;
    gap: 20px;
}

.social-links a {
    display: flex;
    align-items: center;
    gap: 6px;
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.875rem;
    transition: color 0.2s;
}

.social-links a:hover {
    color: var(--accent);
}

.social-links svg {
    flex-shrink: 0;
}

/* Responsive Design */
@media (max-width: 900px) {
    .comparison-grid {
        grid-template-columns: 1fr;
    }

    .km-deep-dive {
        padding: 40px 20px;
    }

    .km-stats {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    h1 {
        font-size: 2.75rem;
        letter-spacing: -0.01em;
    }

    .hero {
        flex-direction: column;
        text-align: center;
        padding-top: 120px;
    }

    .hero-actions {
        flex-direction: column;
        align-items: center;
    }

    .app-mockup {
        width: 280px;
        height: 560px;
        transform: none !important;
    }

    .hero-qr {
        display: none;
    }
}

@media (max-width: 1100px) {
    .nav-links {
        gap: 16px;
    }
}

@media (max-width: 768px) {
    :root {
        --nav-height: 60px;
    }

    .logo-img {
        width: 28px;
        height: 28px;
    }

    .lang-btn {
        font-size: 0.8rem;
    }

    .section-title {
        font-size: 2rem;
    }

    .hero {
        padding-top: 100px;
        min-height: auto;
    }

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

    .hero-sub {
        font-size: 1rem;
        margin-bottom: 2rem;
    }

    .btn-main, .btn-secondary {
        width: 100%;
        padding: 14px 24px;
        font-size: 0.9rem;
    }

    .intro {
        padding: 40px 0;
        gap: 30px;
    }

    .intro-box h2 {
        font-size: 1.5rem;
    }

    .intro-box p {
        font-size: 1rem;
    }

    .km-deep-dive {
        padding: 40px 20px;
        border-radius: 24px;
    }

    .km-content h2 {
        font-size: 1.75rem;
    }

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

    .gallery-caption h4 {
        font-size: 1.1rem;
    }

    .gallery-caption p {
        font-size: 0.9rem;
    }

    .cta-card {
        padding: 60px 20px;
        border-radius: 24px;
    }

    .tech-specs-grid {
        gap: 20px;
    }

    .footer-content {
        flex-direction: column;
        gap: 20px;
        text-align: center;
    }

    .social-links {
        flex-wrap: wrap;
        justify-content: center;
        gap: 12px 20px;
    }

    .social-links a {
        white-space: nowrap;
    }

    .lang-prompt {
        bottom: 12px;
        inset-inline-start: 12px;
        inset-inline-end: 12px;
        padding: 10px 16px;
        font-size: 0.9rem;
    }
}

@media (max-width: 480px) {
    .nav-links {
        display: none; /* Hide nav links on very small screens to keep only Logo and Lang Switcher */
    }

    .nav-links.active {
        display: flex; /* Re-show when hamburger is open */
    }

    header nav {
        justify-content: space-between;
    }

    .lang-dropdown {
        display: block;
    }
}
