/* style.css */

/* CSS Variables for Theming */
:root {
    --font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol";
    --primary-accent-color: #5865F2;
    --secondary-accent-color: #43B581;
    --button-hover-darken-amount: 15%;
    --border-radius-small: 4px;
    --border-radius-medium: 8px;
    --text-line-height: 1.7;
    --section-padding-vertical: 60px;
    --section-padding-horizontal: 20px;
    --container-max-width: 1100px;

    /* Light Theme (Default) */
    --bg-color: #f7f9fc;
    --text-color: #333740;
    --text-color-muted: #5f6772;
    --header-bg: #ffffff;
    --nav-link-color: #4a545e;
    --nav-link-hover-color: var(--primary-accent-color);
    --hero-text-color: #ffffff;
    --hero-subtitle-color: rgba(255, 255, 255, 0.85);
    --section-bg: #ffffff;
    --section-alt-bg: #f0f2f5;
    --section-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    --hr-bg: #e1e4e8;
    --footer-bg: #e9ecef;
    --footer-text-color: #4a545e;
    --footer-border-top: #d1d5da;
    --button-primary-bg: var(--primary-accent-color);
    --button-primary-hover-bg: color-mix(in srgb, var(--primary-accent-color) calc(100% - var(--button-hover-darken-amount)), #000000);
    --button-primary-text: #ffffff;
    --button-secondary-bg: #6c757d;
    --button-secondary-hover-bg: color-mix(in srgb, #6c757d calc(100% - var(--button-hover-darken-amount)), #000000);
    --button-secondary-text: #ffffff;
    --input-bg: #ffffff;
    --input-border: #ced4da;
    --input-text: #495057;
    --input-focus-border: var(--primary-accent-color);
}

body.dark-mode {
    --bg-color: #1e1f22;
    --text-color: #dcddde;
    --text-color-muted: #96989e;
    --header-bg: #2a2d31;
    --nav-link-color: #b9bbbe;
    --nav-link-hover-color: var(--primary-accent-color);
    --hero-text-color: #ffffff;
    --hero-subtitle-color: rgba(220, 221, 222, 0.85);
    --section-bg: #2a2d31;
    --section-alt-bg: #25282c;
    --section-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    --hr-bg: #3a3e44;
    --footer-bg: #1e1f22;
    --footer-text-color: #96989e;
    --footer-border-top: #2a2d31;
    --button-primary-bg: var(--primary-accent-color);
    --button-primary-hover-bg: color-mix(in srgb, var(--primary-accent-color) calc(100% + var(--button-hover-darken-amount)), #ffffff);
    --button-secondary-bg: #4f545c;
    --button-secondary-hover-bg: color-mix(in srgb, #4f545c calc(100% + var(--button-hover-darken-amount)), #ffffff);
    --input-bg: #3a3e44;
    --input-border: #2a2d31;
    --input-text: #dcddde;
    --input-focus-border: var(--primary-accent-color);
}

/* Basic Reset & Global Styles */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: var(--font-family);
    background-color: var(--bg-color);
    color: var(--text-color);
    line-height: var(--text-line-height);
    transition: background-color 0.3s ease, color 0.3s ease;
    scroll-behavior: smooth;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    text-decoration: none;
    color: var(--primary-accent-color);
    transition: color 0.2s ease;
}

a:hover {
    color: color-mix(in srgb, var(--primary-accent-color) 80%, #000000);
}

body.dark-mode a:hover {
    color: color-mix(in srgb, var(--primary-accent-color) 80%, #ffffff);
}

h1,
h2,
h3 {
    margin-bottom: 0.75em;
    line-height: 1.3;
}

h1 {
    font-size: 2.8em;
}

h2 {
    font-size: 2em;
    text-align: center;
    margin-bottom: 1.5em;
}

h3 {
    font-size: 1.5em;
}

/* Utility Classes */
.container {
    width: 90%;
    max-width: var(--container-max-width);
    margin-left: auto;
    margin-right: auto;
}

.button {
    display: inline-block;
    padding: 12px 28px;
    border-radius: var(--border-radius-small);
    font-weight: 600;
    text-align: center;
    transition: background-color 0.2s ease, transform 0.1s ease;
    cursor: pointer;
    border: none;
    font-size: 1em;
}

.button:hover {
    transform: translateY(-2px);
}

.button:active {
    transform: translateY(0);
}

.button-primary {
    background-color: var(--button-primary-bg);
    color: var(--button-primary-text) !important;
}

.button-primary:hover {
    background-color: var(--button-primary-hover-bg);
}

.button-secondary {
    background-color: var(--button-secondary-bg);
    color: var(--button-secondary-text) !important;
}

.button-secondary:hover {
    background-color: var(--button-secondary-hover-bg);
}

/* Header & Navigation - Shared Styles */
nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 0;
    position: relative;
    width: 90%;
    max-width: var(--container-max-width);
    margin-left: auto;
    margin-right: auto;
}

.logo-container {
    display: flex;
    align-items: center;
    font-size: 1.5em;
    font-weight: bold;
}

#app-logo {
    width: 40px;
    height: 40px;
    margin-right: 10px;
}

.logo-container a {
    color: inherit;
    display: flex;
    align-items: center;
}

.logo-container a:hover {
    color: inherit;
}

/* Hero Section Header (index.html) */
header#hero-section {
    background-color: #1a1c1e;
    background-image: linear-gradient(rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.6)), url('images/header-background-image.png');
    background-size: cover;
    background-position: center center;
    color: var(--hero-text-color);
    padding-bottom: var(--section-padding-vertical);
    text-align: center;
}

header#hero-section nav {
    margin-bottom: 40px;
}

header#hero-section .logo-container span {
    color: var(--hero-text-color);
}

header#hero-section .nav-links a {
    color: var(--hero-subtitle-color);
    margin-left: 25px;
    font-weight: 500;
}

header#hero-section .nav-links a:hover {
    color: var(--hero-text-color);
    border-bottom: 2px solid var(--primary-accent-color);
}

.hero-content {
    padding-top: 40px;
}

.hero-content h1 {
    font-size: 3em;
    margin-bottom: 0.5em;
}

.hero-content .subtitle {
    font-size: 1.2em;
    color: var(--hero-subtitle-color);
    margin-bottom: 1.5em;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.cta-buttons {
    margin-top: 30px;
    margin-bottom: 20px;
    display: flex;
    justify-content: center;
    gap: 20px;
}

.cta-buttons .button {
    padding: 15px 35px;
    font-size: 1.1em;
}

.release-info {
    font-size: 0.9em;
    color: var(--hero-subtitle-color);
}

/* Page Header (feedback.html) */
header#page-header {
    background-color: var(--header-bg);
    padding: 10px 0;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
    border-bottom: 1px solid var(--hr-bg);
}

body.dark-mode header#page-header {
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.15);
}

header#page-header nav {
    margin-bottom: 0;
}

header#page-header .logo-container span {
    color: var(--text-color);
}

header#page-header .nav-links a {
    color: var(--nav-link-color);
    margin-left: 25px;
    font-weight: 500;
}

header#page-header .nav-links a:hover {
    color: var(--nav-link-hover-color);
    border-bottom: 2px solid var(--primary-accent-color);
}

/* Main Content Sections General */
main {
    flex-grow: 1;
}

main section {
    padding-top: var(--section-padding-vertical);
    padding-bottom: var(--section-padding-vertical);
}

main section:last-of-type {
    margin-bottom: 0;
}

/* Features Section */
.features-section {
    background-color: var(--section-bg);
}

.features-section h2 {
    margin-bottom: 1.5em;
}

.feature-row {
    display: flex;
    align-items: center;
    gap: 40px;
    padding: 40px 20px;
    margin-bottom: 30px;
    border-radius: var(--border-radius-medium);
}

.feature-row:last-child {
    margin-bottom: 0;
}

.features-section .container .feature-row:nth-child(odd) {
    background-color: var(--section-bg);
}

.features-section .container .feature-row:nth-child(even) {
    background-color: var(--section-alt-bg);
}

.feature-image-container,
.feature-text-container {
    flex: 1;
    min-width: 0;
}

.feature-image-container img {
    width: 100%;
    max-height: 380px;
    object-fit: contain;
    border-radius: var(--border-radius-medium);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.07);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

body.dark-mode .feature-image-container img {
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

.feature-image-container img:hover {
    transform: scale(1.02);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

body.dark-mode .feature-image-container img:hover {
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.25);
}

.feature-row-reversed {
    flex-direction: row-reverse;
}

.feature-text-container {
    text-align: left;
}

.feature-text-container h3 {
    color: var(--primary-accent-color);
    margin-bottom: 15px;
    font-size: 1.7em;
}

.feature-text-container p {
    font-size: 1.05em;
    color: var(--text-color-muted);
    line-height: 1.6;
}

/* How It Works & Video Demo Sections */
.how-it-works-section,
.video-demo-section {
    text-align: center;
    background-color: var(--section-bg);
}

body.dark-mode .how-it-works-section,
body.dark-mode .video-demo-section {
    background-color: var(--section-alt-bg);
}

.video-placeholder {
    background-color: var(--bg-color);
    padding: 20px;
    border-radius: var(--border-radius-medium);
    max-width: 700px;
    margin: 20px auto 0;
    box-shadow: var(--section-shadow);
}

.video-placeholder img {
    border-radius: var(--border-radius-small);
}

/* Feedback Section & Form */
.feedback-section {
    background-color: var(--section-bg);
    text-align: center;
}

#feedback-form-section .container {
    max-width: 700px;
}

#feedback-form {
    text-align: left;
    margin-top: 30px;
}

#feedback-form .form-group {
    margin-bottom: 20px;
}

#feedback-form label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
}

#feedback-form input[type="text"],
#feedback-form input[type="email"],
#feedback-form textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid var(--input-border);
    border-radius: var(--border-radius-small);
    background-color: var(--input-bg);
    color: var(--input-text);
    font-family: var(--font-family);
    font-size: 1em;
    transition: border-color 0.2s ease;
}

#feedback-form input[type="text"]:focus,
#feedback-form input[type="email"]:focus,
#feedback-form textarea:focus {
    outline: none;
    border-color: var(--input-focus-border);
    box-shadow: 0 0 0 2px color-mix(in srgb, var(--input-focus-border) 30%, transparent);
}

#feedback-form textarea {
    resize: vertical;
    min-height: 120px;
}

#feedback-form button[type="submit"] {
    width: auto;
    padding: 12px 30px;
}

#feedback-status {
    font-weight: 500;
    min-height: 1.5em;
}

#feedback-status.success {
    color: var(--secondary-accent-color);
}

#feedback-status.error {
    color: #e74c3c;
}

/* Footer */
#footer {
    background-color: var(--footer-bg);
    color: var(--footer-text-color);
    padding: 40px var(--section-padding-horizontal);
    border-top: 1px solid var(--footer-border-top);
    text-align: center;
}

.footer-content {
    max-width: var(--container-max-width);
    margin: 0 auto;
}

.footer-links {
    margin-bottom: 20px;
}

.footer-links a {
    color: var(--footer-text-color);
    margin: 0 10px;
}

.footer-links a:hover {
    color: var(--primary-accent-color);
}

.support-links {
    margin-bottom: 20px;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 15px;
}

.footer-support-button {
    padding: 8px 15px;
    font-size: 0.9em;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.support-icon {
    width: 18px;
    height: 18px;
}

body:not(.dark-mode) .support-icon {
    filter: none;
}

body.dark-mode .support-icon {
    filter: invert(100%) sepia(0%) saturate(0%) hue-rotate(100deg) brightness(200%) contrast(100%);
}

.copyright {
    font-size: 0.9em;
}

/* Scroll Reveal Animation Base Styles */
.feature-row,
.how-it-works-section .container,
.video-demo-section .container,
.feedback-section .container,
#feedback-form-section .container {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.feature-row.visible-section,
.how-it-works-section .container.visible-section,
.video-demo-section .container.visible-section,
.feedback-section .container.visible-section,
#feedback-form-section .container.visible-section {
    opacity: 1;
    transform: translateY(0);
}

/* Lightbox/Modal Styles */
.feature-lightbox-trigger {
    cursor: pointer;
    transition: transform 0.2s ease-in-out, box-shadow 0.2s ease-in-out;
}

.feature-lightbox-trigger:hover {
    /* transform: scale(1.03); Already handled by .feature-image-container img:hover */
    /* box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15); Already handled */
}

.lightbox-modal {
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.85);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 20px;
    overflow: auto;
}

.lightbox-content {
    display: block;
    margin: auto;
    max-width: 90%;
    max-height: 80vh;
    object-fit: contain;
    border-radius: var(--border-radius-small);
    transition: transform 0.25s ease-out;
    cursor: grab;
}

.lightbox-content:active {
    cursor: grabbing;
}

.lightbox-close {
    position: absolute;
    top: 20px;
    right: 35px;
    color: #f1f1f1;
    font-size: 40px;
    font-weight: bold;
    transition: 0.3s;
    cursor: pointer;
    z-index: 1002;
}

.lightbox-close:hover,
.lightbox-close:focus {
    color: #bbb;
    text-decoration: none;
}

.lightbox-controls {
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    background-color: rgba(40, 40, 40, 0.8);
    padding: 10px 15px;
    border-radius: var(--border-radius-medium);
    display: flex;
    align-items: center;
    gap: 10px;
    z-index: 1001;
}

.lightbox-controls .button-small {
    padding: 8px 12px;
    font-size: 1.2em;
    line-height: 1;
    font-weight: bold;
    background-color: var(--button-secondary-bg);
    color: var(--button-secondary-text);
}

body.dark-mode .lightbox-controls .button-small {
    background-color: var(--button-secondary-bg);
}

.lightbox-controls .button-small:hover {
    background-color: var(--button-secondary-hover-bg);
}

#lightbox-zoom-level {
    color: #f1f1f1;
    font-size: 0.9em;
    min-width: 45px;
    text-align: center;
    font-weight: 500;
}

/* Consolidated Responsive Media Queries */
@media (max-width: 900px) {

    .feature-row,
    .feature-row-reversed {
        flex-direction: column;
        gap: 25px;
        padding-left: 15px;
        padding-right: 15px;
        text-align: center;
    }

    .features-section .container .feature-row:nth-child(even) {
        background-color: var(--section-bg);
        /* Optional: Reset alternating for stacked */
    }

    .feature-image-container {
        margin-bottom: 15px;
        max-width: 450px;
        margin-left: auto;
        margin-right: auto;
    }

    .feature-text-container {
        text-align: center;
        padding-left: 0;
        padding-right: 0;
    }

    .feature-text-container h3 {
        font-size: 1.4em;
    }
}

@media (max-width: 768px) {
    h1 {
        font-size: 2.0em;
    }

    .hero-content h1 {
        font-size: 2.2em;
    }

    h2 {
        font-size: 1.5em;
        margin-bottom: 1em;
    }

    h3 {
        font-size: 1.2em;
    }

    .feature-text-container h3 {
        font-size: 1.3em;
    }

    nav {
        flex-direction: column;
        gap: 15px;
        margin-bottom: 20px;
    }

    .logo-container {
        font-size: 1.3em;
    }

    #app-logo {
        width: 35px;
        height: 35px;
    }

    .nav-links {
        margin-top: 10px;
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
        flex-direction: column;
        align-items: center;
    }

    .nav-links a {
        margin: 5px 10px;
    }

    .cta-buttons {
        flex-direction: column;
        gap: 15px;
        align-items: center;
    }

    .cta-buttons .button {
        width: 100%;
        max-width: 300px;
        padding: 12px 25px;
    }

    .support-links {
        flex-direction: column;
    }

    /* Lightbox adjustments for smaller screens */
    .lightbox-content {
        max-width: 100%;
        max-height: 75vh;
    }

    .lightbox-close {
        top: 15px;
        right: 25px;
        font-size: 30px;
    }

    .lightbox-controls {
        padding: 8px 10px;
    }

    .lightbox-controls .button-small {
        padding: 6px 10px;
        font-size: 1em;
    }

    #lightbox-zoom-level {
        font-size: 0.8em;
    }

    .language-switcher {
        margin-top: 10px;
        /* Add space if nav items stack */
        margin-left: 0;
    }
}

/* Language Switcher Styles */
.language-switcher {
    display: flex;
    gap: 10px;
    align-items: center;
    margin-left: 20px;
    /* Adjust as needed */
}

.language-switcher button {
    background-color: transparent;
    color: var(--nav-link-color);
    /* Or --hero-subtitle-color if in hero */
    border: 1px solid transparent;
    /* Initially transparent */
    padding: 5px 10px;
    cursor: pointer;
    font-size: 0.9em;
    border-radius: var(--border-radius-small);
    transition: background-color 0.2s, color 0.2s, border-color 0.2s;
}

header#hero-section .language-switcher button {
    /* Specific for hero section */
    color: var(--hero-subtitle-color);
}

header#page-header .language-switcher button {
    /* Specific for page header */
    color: var(--nav-link-color);
}


.language-switcher button:hover {
    background-color: color-mix(in srgb, var(--primary-accent-color) 15%, transparent);
    color: var(--nav-link-hover-color);
}

header#hero-section .language-switcher button:hover {
    color: var(--hero-text-color);
}


.language-switcher button.active-lang {
    font-weight: bold;
    border-color: var(--primary-accent-color);
    color: var(--primary-accent-color);
    background-color: color-mix(in srgb, var(--primary-accent-color) 10%, transparent);
}

header#hero-section .language-switcher button.active-lang {
    color: var(--hero-text-color);
    /* Ensure active lang is visible on dark hero */
    border-color: var(--hero-text-color);
}