﻿/* OneVoice Project Website - Shared Stylesheet */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary: #00d4ff;
    --primary-dark: #1e3c72;
    --primary-light: #2a5298;
    --accent: #00ff88;
    --accent-alt: #ff00ff;
    --bg-dark: #0f0f1e;
    --bg-darker: #1a1a2e;
    --bg-card: #1a1a2e;
    --text-light: #e0e0e0;
    --text-muted: #a8d5ff;
    --border-color: rgba(0, 212, 255, 0.2);
    --shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    --shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.3);
}

html {
    scroll-behavior: smooth;
    background: var(--bg-darker) !important;
}

body {
    background: linear-gradient(135deg, var(--bg-dark) 0%, var(--bg-darker) 100%) !important;
    color: var(--text-light);
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    overflow-x: hidden;
}

/* Navigation */
nav {
    background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary-light) 100%);
    padding: 15px 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: var(--shadow-lg);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--primary);
    font-size: 1.3em;
    font-weight: bold;
    text-decoration: none;
    transition: all 0.3s ease;
}

.nav-logo:hover {
    color: var(--text-light);
    transform: scale(1.05);
}

.nav-logo img {
    width: 30px;
    height: 30px;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 30px;
    flex-wrap: wrap;
    justify-content: center;
}

.nav-item a {
    color: var(--text-light);
    text-decoration: none;
    font-size: 0.95em;
    padding: 8px 12px;
    border-radius: 4px;
    transition: all 0.3s ease;
    position: relative;
}

.nav-item a:hover {
    color: var(--primary);
    background: rgba(0, 212, 255, 0.1);
}

.nav-item a.active {
    color: var(--accent);
    border-bottom: 2px solid var(--accent);
}

/* Container */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

/* Main Content */
main {
    min-height: calc(100vh - 200px);
}

/* Header/Hero */
header {
    text-align: center;
    padding: 60px 20px;
    background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary-light) 100%);
    border-radius: 10px;
    margin-bottom: 40px;
    box-shadow: var(--shadow-lg);
}

header h1 {
    font-size: 2.5em;
    color: var(--primary);
    margin-bottom: 10px;
    text-shadow: 0 2px 10px rgba(0, 212, 255, 0.3);
}

header .subtitle {
    font-size: 1.1em;
    color: var(--text-muted);
}

/* Typography */
h1 {
    font-size: 2.2em;
    color: var(--primary);
    margin: 30px 0 20px 0;
}

h2 {
    font-size: 1.8em;
    color: var(--primary);
    margin: 25px 0 15px 0;
    border-bottom: 2px solid var(--border-color);
    padding-bottom: 10px;
}

h3 {
    font-size: 1.3em;
    color: var(--text-muted);
    margin: 20px 0 12px 0;
}

h4 {
    font-size: 1.1em;
    color: var(--text-light);
    margin: 15px 0 10px 0;
}

p {
    margin: 12px 0;
    line-height: 1.8;
}

strong {
    color: var(--accent);
    font-weight: 600;
}

/* Cards */
.card {
    background: linear-gradient(160deg, rgba(45, 63, 100, 0.62) 0%, rgba(32, 43, 75, 0.72) 100%) !important;
    border: 1px solid rgba(120, 170, 255, 0.28);
    border-left: 4px solid var(--primary);
    padding: 25px;
    border-radius: 8px;
    box-shadow: 0 8px 22px rgba(7, 16, 40, 0.34);
    margin: 20px 0;
    transition: all 0.3s ease;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 30px rgba(0, 212, 255, 0.24);
}

.card h3,
.card h4 {
    color: #d1e6ff;
}

.card p,
.card li {
    color: #e9f2ff;
}

.grid .card {
    backdrop-filter: blur(1.5px);
    border-color: rgba(145, 188, 255, 0.34);
}

.card.accent {
    border-left-color: var(--accent);
}

.card.alt {
    border-left-color: var(--accent-alt);
}

/* Layers */
.layer {
    background: rgba(0, 212, 255, 0.05);
    border-left: 3px solid var(--primary);
    padding: 15px;
    margin: 15px 0;
    border-radius: 4px;
}

.layer.layer1 {
    border-left-color: var(--accent);
    background: rgba(0, 255, 136, 0.05);
}

.layer.layer2 {
    border-left-color: #ffaa00;
    background: rgba(255, 170, 0, 0.05);
}

.layer.layer3 {
    border-left-color: var(--accent-alt);
    background: rgba(255, 0, 255, 0.05);
}

/* Badges */
.badge {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.85em;
    font-weight: bold;
    margin: 5px 5px 5px 0;
}

.badge.high {
    background: rgba(0, 255, 136, 0.2);
    color: var(--accent);
}

.badge.medium {
    background: rgba(255, 170, 0, 0.2);
    color: #ffaa00;
}

.badge.low {
    background: rgba(255, 0, 255, 0.2);
    color: var(--accent-alt);
}

/* Lists */
ul, ol {
    margin: 15px 0 15px 30px;
}

ul li, ol li {
    margin: 8px 0;
    line-height: 1.8;
}

.feature-list {
    list-style: none;
    margin: 15px 0;
}

.feature-list li {
    padding: 10px 0 10px 25px;
    position: relative;
}

.feature-list li:before {
    content: "→";
    position: absolute;
    left: 0;
    color: var(--primary);
    font-weight: bold;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 12px 24px;
    background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary-light) 100%);
    color: var(--text-light);
    text-decoration: none;
    border-radius: 5px;
    border: none;
    cursor: pointer;
    font-size: 1em;
    transition: all 0.3s ease;
    margin: 10px 10px 10px 0;
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 212, 255, 0.3);
    color: var(--primary);
}

.btn-secondary {
    background: rgba(0, 212, 255, 0.1);
    border: 2px solid var(--primary);
}

/* Grid */
.grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin: 20px 0;
}

.grid-col-2 {
    grid-template-columns: repeat(2, 1fr);
}

/* Code */
code {
    background: rgba(0, 0, 0, 0.3);
    padding: 2px 6px;
    border-radius: 3px;
    color: var(--primary);
    font-family: 'Courier New', monospace;
}

pre {
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid var(--border-color);
    padding: 15px;
    border-radius: 5px;
    overflow-x: auto;
    margin: 15px 0;
}

pre code {
    background: transparent;
    padding: 0;
    color: var(--primary);
}

/* Stats Box */
.stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 15px;
    margin: 20px 0;
}

.stat-box {
    background: rgba(0, 212, 255, 0.1);
    padding: 20px;
    border-radius: 6px;
    text-align: center;
    border: 1px solid var(--border-color);
}

.stat-number {
    font-size: 2em;
    color: var(--accent);
    font-weight: bold;
    margin-bottom: 5px;
}

.stat-label {
    font-size: 0.9em;
    color: var(--text-muted);
}

/* Timeline */
.timeline {
    position: relative;
    padding: 20px 0;
    margin: 20px 0;
}

.timeline-item {
    padding: 15px 15px 15px 30px;
    margin: 10px 0;
    background: rgba(0, 212, 255, 0.08);
    border-left: 3px solid var(--primary);
    border-radius: 4px;
    position: relative;
}

.timeline-item:before {
    content: "";
    position: absolute;
    left: -8px;
    top: 20px;
    width: 12px;
    height: 12px;
    background: var(--primary);
    border-radius: 50%;
    border: 2px solid var(--bg-darker);
}

/* Highlight */
.highlight {
    background: rgba(0, 212, 255, 0.15);
    padding: 2px 6px;
    border-radius: 3px;
    color: var(--primary);
}

/* Box */
.box {
    background: rgba(0, 0, 0, 0.2);
    padding: 20px;
    border-radius: 8px;
    margin: 15px 0;
    border: 1px solid var(--border-color);
}

/* ============================================================================
   FRONT-END DARK MODE - Forums, Content Wrappers, and Plugin Areas
   ============================================================================ */

/* bbPress Forums - Dark mode for all forum containers */
#bbpress-forums,
.bbpress-content,
.bbpress,
.bbp-forums,
.bbp-forum-content {
    background: var(--bg-darker) !important;
    color: var(--text-light) !important;
}

.bbp-forum-list,
.bbp-topic-list,
.bbp-reply-list,
.bbp-single-forum,
.bbp-single-topic,
.bbp-single-reply,
.bbp-forum-list table,
.bbp-topic-list table,
.bbp-reply-list table,
.forums table {
    background: var(--bg-darker) !important;
    color: var(--text-light) !important;
    border-color: rgba(0, 212, 255, 0.1) !important;
}

/* Force all list elements to be dark */
ul, ol, li {
    background: transparent !important;
}

.bbp-forum-list,
.bbp-forum-list ul,
.bbp-forum-list ol,
.bbp-forum-list li,
.bbp-topic-list,
.bbp-topic-list ul,
.bbp-topic-list ol,
.bbp-topic-list li,
.bbp-reply-list,
.bbp-reply-list ul,
.bbp-reply-list ol,
.bbp-reply-list li {
    background: var(--bg-darker) !important;
    color: var(--text-light) !important;
}

.bbp-forum-list li,
.bbp-topic-list li,
.bbp-reply-list li,
.forums li {
    background: transparent !important;
    border-color: rgba(0, 212, 255, 0.1) !important;
}

.bbp-forum-list li:hover,
.bbp-topic-list li:hover,
.bbp-reply-list li:hover,
.forums li:hover {
    background: rgba(0, 212, 255, 0.05) !important;
}

.bbp-forum-list tr,
.bbp-topic-list tr,
.bbp-reply-list tr,
.bbp-forum-list td,
.bbp-topic-list td,
.bbp-reply-list td,
.bbp-forum-list th,
.bbp-topic-list th,
.bbp-reply-list th {
    background: var(--bg-darker) !important;
    color: var(--text-light) !important;
    border-color: rgba(0, 212, 255, 0.1) !important;
}

.bbp-forum-list tr:hover,
.bbp-topic-list tr:hover,
.bbp-reply-list tr:hover {
    background: rgba(0, 212, 255, 0.05) !important;
}

/* Forum title/header styles */
.bbp-forum-title,
.bbp-topic-title,
.bbp-forum-title h2,
.bbp-topic-title h2 {
    color: var(--primary) !important;
}

.bbp-forum-title a,
.bbp-topic-title a {
    color: var(--primary) !important;
}

.bbp-forum-title a:hover,
.bbp-topic-title a:hover {
    color: var(--accent) !important;
}

/* Forum pagination and navigation */
.bbp-pagination,
.bbp-pagination a,
.page-numbers {
    color: var(--text-light) !important;
    background: rgba(0, 0, 0, 0.3) !important;
    border-color: rgba(0, 212, 255, 0.1) !important;
}

.bbp-pagination a:hover,
.page-numbers.current,
.page-numbers:hover {
    background: rgba(0, 212, 255, 0.2) !important;
    color: var(--primary) !important;
}

/* Forum user info / meta data */
.bbp-author,
.bbp-author-name,
.bbp-meta,
.bbp-topic-meta,
.bbp-forum-meta {
    color: var(--text-muted) !important;
}

/* Main content wrapper for all pages */
main,
.content,
.site-content,
.page-content,
.entry-content,
.post-content {
    background: transparent !important;
    color: var(--text-light) !important;
}

/* Sidebar and widget areas */
.sidebar,
.widget-area,
.widget,
.widget-content {
    background: rgba(0, 0, 0, 0.2) !important;
    color: var(--text-light) !important;
    border-color: rgba(0, 212, 255, 0.1) !important;
}

.widget-title,
.widget-title h3 {
    color: var(--primary) !important;
}

/* Form elements on front-end */
.form-control,
input[type="text"],
input[type="email"],
input[type="password"],
input[type="search"],
textarea,
select {
    background: rgba(0, 0, 0, 0.4) !important;
    color: var(--text-light) !important;
    border: 1px solid rgba(0, 212, 255, 0.1) !important;
}

input[type="text"]:focus,
input[type="email"]:focus,
input[type="password"]:focus,
input[type="search"]:focus,
textarea:focus,
select:focus {
    background: rgba(0, 0, 0, 0.6) !important;
    border-color: var(--primary) !important;
    box-shadow: 0 0 0 2px rgba(0, 212, 255, 0.2) !important;
}

input[type="text"]::placeholder,
input[type="email"]::placeholder,
textarea::placeholder {
    color: var(--text-muted) !important;
}

/* Buttons on front-end */
.btn,
button,
.button,
input[type="submit"],
input[type="button"] {
    background: rgba(0, 212, 255, 0.2) !important;
    color: var(--primary) !important;
    border: 1px solid var(--primary) !important;
}

.btn:hover,
button:hover,
.button:hover,
input[type="submit"]:hover,
input[type="button"]:hover {
    background: rgba(0, 212, 255, 0.3) !important;
    color: var(--accent) !important;
}

.btn-primary,
button.btn-primary,
.button.button-primary {
    background: var(--primary) !important;
    color: var(--bg-darker) !important;
    border: 1px solid var(--primary) !important;
}

.btn-primary:hover,
button.btn-primary:hover,
.button.button-primary:hover {
    background: #8ab4f8 !important;
    border-color: #8ab4f8 !important;
    color: #1a1a2e !important;
}

/* Comments and discussion areas */
.comments,
.comment-form,
.comment-list li {
    background: rgba(0, 0, 0, 0.2) !important;
    color: var(--text-light) !important;
    border-color: rgba(0, 212, 255, 0.1) !important;
}

.comment-author,
.comment-author-name {
    color: var(--primary) !important;
}

.comment-meta,
.comment-date {
    color: var(--text-muted) !important;
}

/* Generic content containers */
.container,
.wrapper,
.inner-wrapper,
.section {
    background: transparent !important;
}

/* Tables on front-end */
table {
    background: var(--bg-darker) !important;
    color: var(--text-light) !important;
    border-color: rgba(0, 212, 255, 0.1) !important;
}

table thead,
table tbody tr {
    background: var(--bg-darker) !important;
}

table thead th {
    background: rgba(0, 212, 255, 0.1) !important;
    color: var(--primary) !important;
}

table tbody tr:hover {
    background: rgba(0, 212, 255, 0.05) !important;
}

table td {
    border-color: rgba(0, 212, 255, 0.1) !important;
}

/* Code blocks */
code,
pre {
    background: rgba(0, 0, 0, 0.3) !important;
    color: #a5f3fc !important;
    border-color: rgba(0, 212, 255, 0.1) !important;
}

/* Blockquotes */
blockquote {
    background: rgba(0, 0, 0, 0.2) !important;
    border-left: 3px solid var(--primary) !important;
    color: var(--text-light) !important;
}

/* Catch-all for any remaining light backgrounds */
body > * {
    color: var(--text-light) !important;
}

.wrap,
.page,
.post {
    background: transparent !important;
}

/* Ensure body and core page containers are dark */
body,
html {
    background: var(--bg-darker) !important;
}

body {
    background: linear-gradient(135deg, var(--bg-dark) 0%, var(--bg-darker) 100%) !important;
}

/* All major page sections should be dark or transparent */
#page,
.site,
.site-content,
.site-inner,
.content,
.page-content,
main,
.wp-site-blocks,
[role="main"] {
    background: transparent !important;
}

/* Any generic div wrapper should not have a white background */
main > *,
main > div,
main > div > div {
    background: transparent !important;
}

/* Footer */
footer {
    text-align: center;
    padding: 30px 20px;
    color: #666;
    font-size: 0.9em;
    border-top: 1px solid var(--border-color);
    margin-top: 60px;
}

footer p {
    margin: 5px 0;
}

/* Responsive */
@media (max-width: 768px) {
    h1 {
        font-size: 1.8em;
    }

    h2 {
        font-size: 1.4em;
    }

    header {
        padding: 40px 20px;
    }

    header h1 {
        font-size: 1.8em;
    }

    .nav-menu {
        gap: 15px;
        font-size: 0.9em;
    }

    .grid-col-2 {
        grid-template-columns: 1fr;
    }

    .stats {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 480px) {
    .nav-menu {
        flex-direction: column;
        gap: 5px;
    }

    .nav-item a {
        padding: 5px 8px;
        font-size: 0.85em;
    }

    header {
        padding: 30px 15px;
    }

    header h1 {
        font-size: 1.4em;
    }

    h1 {
        font-size: 1.4em;
    }

    .stats {
        grid-template-columns: 1fr;
    }
}

/* ───────────────────────────────────────────
   CONTACT PAGE STYLES
   (Merged from legacy_html_backup/contact.html)
   ─────────────────────────────────────────── */

.container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 0;
}

.page-header {
    background: linear-gradient(135deg, #0f3460 0%, #533483 50%, #6b4a8f 100%);
    border-radius: 20px;
    padding: 38px 32px;
    text-align: center;
    color: white;
    margin: 16px 0 10px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}

.page-header h1 {
    font-size: 2.45em;
    margin-bottom: 8px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.page-header p {
    font-size: 1.05em;
    color: #f0f4ff;
}

.content-section {
    background: rgba(15, 15, 35, 0.8);
    border-radius: 15px;
    padding: 40px;
    margin: 18px 0;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.content-section h2 {
    color: #8ab4f8;
    font-size: 2em;
    margin-bottom: 25px;
    text-align: center;
}

.contact-info {
    text-align: center;
    margin-bottom: 40px;
}

.contact-grid {
    display: grid;
    grid-template-columns: minmax(280px, 360px) minmax(0, 1fr);
    gap: 30px;
    align-items: start;
}

.contact-card,
.contact-form-panel {
    background: linear-gradient(135deg, rgba(138, 180, 248, 0.08) 0%, rgba(83, 52, 131, 0.14) 100%);
    border: 1px solid rgba(138, 180, 248, 0.22);
    border-radius: 16px;
    padding: 28px;
}

.contact-card h3,
.contact-form-panel h3 {
    color: #f0f4ff;
    font-size: 1.35em;
    margin-bottom: 14px;
}

.contact-card p,
.contact-form-panel p {
    color: #d4d4d4;
}

.contact-methods {
    display: grid;
    gap: 14px;
    margin-top: 22px;
}

.contact-method {
    padding: 16px 18px;
    border-radius: 12px;
    background: rgba(10, 14, 39, 0.5);
    border: 1px solid rgba(138, 180, 248, 0.18);
}

.contact-method strong {
    display: block;
    color: #8ab4f8;
    margin-bottom: 6px;
    font-size: 0.95em;
    letter-spacing: 0.02em;
    text-transform: uppercase;
}

.contact-method span,
.contact-method a {
    color: #f0f4ff;
    text-decoration: none;
    word-break: break-word;
}

.contact-method a:hover {
    color: #ffa500;
}

.contact-email {
    font-size: 1.3em;
    margin-bottom: 15px;
}

.contact-email a {
    color: #ff8c00;
    text-decoration: none;
    font-weight: bold;
    transition: all 0.3s ease;
}

.contact-email a:hover {
    color: #ffa500;
    text-decoration: underline;
}

.contact-description {
    color: #d4d4d4;
    font-size: 1.05em;
    max-width: 600px;
    margin: 0 auto 30px;
    line-height: 1.8;
}

.contact-form {
    margin-top: 24px;
}

.form-row {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
}

.form-group {
    display: grid;
    gap: 8px;
    margin-bottom: 16px;
}

.form-group label {
    color: #f0f4ff;
    font-weight: 600;
    font-size: 0.95em;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    border: 1px solid rgba(138, 180, 248, 0.25);
    border-radius: 12px;
    background: rgba(10, 14, 39, 0.72);
    color: #f0f4ff;
    padding: 14px 16px;
    font: inherit;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: #98a3c2;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #8ab4f8;
    box-shadow: 0 0 0 3px rgba(138, 180, 248, 0.18);
}

.form-group textarea {
    min-height: 180px;
    resize: vertical;
}

.form-note {
    color: #aab7d8;
    font-size: 0.92em;
    margin-bottom: 18px;
}

.form-actions {
    display: flex;
    align-items: center;
    gap: 14px;
    flex-wrap: wrap;
    margin-top: 8px;
}

.form-submit {
    min-width: 190px;
}

.form-status {
    display: none;
    flex: 1 1 100%;
    align-items: flex-start;
    gap: 14px;
    border-radius: 16px;
    padding: 18px 20px;
    border: 1px solid rgba(138, 180, 248, 0.2);
    background: rgba(10, 14, 39, 0.68);
    color: #d4d4d4;
    font-size: 0.95em;
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.22);
}

.form-status:not(:empty) {
    display: flex;
}

.form-status-icon {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    flex: 0 0 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2em;
    font-weight: 700;
    color: #f0f4ff;
    background: linear-gradient(135deg, rgba(138, 180, 248, 0.22) 0%, rgba(102, 126, 234, 0.28) 100%);
}

.form-status-content {
    display: grid;
    gap: 4px;
}

.form-status-title {
    color: #f8fbff;
    font-size: 1em;
    font-weight: 700;
}

.form-status-message {
    color: #cfd7ec;
    line-height: 1.65;
}

.form-status.success {
    border-color: rgba(88, 201, 123, 0.38);
    background: linear-gradient(135deg, rgba(23, 64, 44, 0.92) 0%, rgba(18, 36, 62, 0.92) 100%);
}

.form-status.success .form-status-icon {
    background: linear-gradient(135deg, rgba(88, 201, 123, 0.85) 0%, rgba(51, 181, 229, 0.88) 100%);
}

.form-status.success .form-status-title {
    color: #dff8e6;
}

.form-status.error {
    border-color: rgba(255, 138, 138, 0.36);
    background: linear-gradient(135deg, rgba(78, 26, 35, 0.94) 0%, rgba(38, 14, 28, 0.94) 100%);
}

.form-status.error .form-status-icon {
    background: linear-gradient(135deg, rgba(255, 126, 126, 0.88) 0%, rgba(224, 78, 112, 0.92) 100%);
}

.form-status.error .form-status-title {
    color: #ffd5d5;
}

.form-status.pending {
    border-color: rgba(138, 180, 248, 0.28);
    background: linear-gradient(135deg, rgba(17, 40, 74, 0.94) 0%, rgba(29, 24, 66, 0.94) 100%);
}

.form-status.pending .form-status-title {
    color: #e6efff;
}

.faq-container {
    margin-top: 40px;
}

.faq-item {
    margin-bottom: 20px;
    background: linear-gradient(135deg, rgba(138, 180, 248, 0.1) 0%, rgba(83, 52, 131, 0.1) 100%);
    border-radius: 10px;
    border: 1px solid rgba(138, 180, 248, 0.2);
    overflow: hidden;
}

.faq-question {
    padding: 20px;
    background: linear-gradient(135deg, rgba(138, 180, 248, 0.15) 0%, rgba(83, 52, 131, 0.15) 100%);
    cursor: pointer;
    color: #8ab4f8;
    font-weight: 600;
    font-size: 1.05em;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: all 0.3s ease;
}

button.faq-question {
    width: 100%;
    border: 0;
    text-align: left;
    font: inherit;
}

.faq-question:hover {
    background: linear-gradient(135deg, rgba(138, 180, 248, 0.25) 0%, rgba(83, 52, 131, 0.25) 100%);
}

.faq-toggle {
    font-size: 1.3em;
    transition: transform 0.3s ease;
}

.faq-answer {
    padding: 0 20px;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease, padding 0.3s ease;
    color: #d4d4d4;
    line-height: 1.8;
}

.faq-answer.open {
    max-height: 500px;
    padding: 0 20px 20px 20px;
}

.cta-section {
    background: linear-gradient(135deg, rgba(138, 180, 248, 0.1) 0%, rgba(83, 52, 131, 0.15) 100%);
    border: 2px solid rgba(138, 180, 248, 0.3);
    border-radius: 15px;
    padding: 40px;
    text-align: center;
    margin-top: 40px;
}

.cta-section h3 {
    color: #8ab4f8;
    font-size: 1.8em;
    margin-bottom: 15px;
}

.cta-section p {
    color: #f0f4ff;
    font-size: 1.1em;
    margin-bottom: 25px;
}

.cta-buttons {
    display: flex;
    gap: 15px;
    justify-content: center;
    flex-wrap: wrap;
}

.btn-primary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    box-shadow: 0 10px 25px rgba(102, 126, 234, 0.4);
}

.btn-primary:hover {
    background: #8ab4f8 !important;
    border-color: #8ab4f8 !important;
    color: #1a1a2e !important;
    transform: translateY(-3px);
    box-shadow: 0 15px 35px rgba(138, 180, 248, 0.4);
}

.btn-secondary {
    background: rgba(15, 15, 35, 0.6);
    color: #8ab4f8;
    border: 2px solid #8ab4f8;
}

.btn-secondary:hover {
    background: #8ab4f8;
    color: #1a1a2e;
    transform: translateY(-3px);
}

.footer {
    text-align: center;
    color: white;
    padding: 40px 20px;
    margin-top: 40px;
    border-top: 1px solid rgba(138, 180, 248, 0.3);
}

.footer h3 {
    margin-bottom: 10px;
}

.footer p {
    opacity: 0.9;
    font-size: 0.95em;
    margin: 5px 0;
}

@media (max-width: 768px) {
    .page-header {
        padding: 28px 20px;
    }

    .page-header h1 {
        font-size: 1.8em;
    }

    .page-header p {
        font-size: 0.96em;
    }

    .content-section {
        padding: 25px;
    }

    .content-section h2 {
        font-size: 1.5em;
    }

    .contact-grid,
    .form-row {
        grid-template-columns: 1fr;
    }

    .contact-card,
    .contact-form-panel,
    .cta-section {
        padding: 24px;
    }

    .faq-question {
        font-size: 0.95em;
    }

    .cta-buttons {
        flex-direction: column;
    }

    .btn {
        width: 100%;
    }
}

/* Global dark-mode hardening for form controls (front-end) */
input,
textarea,
select,
button {
    color-scheme: dark;
}

input[type="text"],
input[type="email"],
input[type="password"],
input[type="search"],
input[type="url"],
input[type="tel"],
input[type="number"],
input[type="date"],
input[type="datetime-local"],
input[type="month"],
input[type="time"],
input[type="week"],
input[type="file"],
textarea,
select {
    background: rgba(10, 14, 39, 0.72) !important;
    color: #f0f4ff !important;
    border: 1px solid rgba(138, 180, 248, 0.28) !important;
}

input[type="text"]:focus,
input[type="email"]:focus,
input[type="password"]:focus,
input[type="search"]:focus,
input[type="url"]:focus,
input[type="tel"]:focus,
input[type="number"]:focus,
input[type="date"]:focus,
input[type="datetime-local"]:focus,
input[type="month"]:focus,
input[type="time"]:focus,
input[type="week"]:focus,
textarea:focus,
select:focus {
    border-color: #8ab4f8 !important;
    box-shadow: 0 0 0 3px rgba(138, 180, 248, 0.18) !important;
    outline: none !important;
}

select option,
select optgroup {
    background: #10162f !important;
    color: #f0f4ff !important;
}

input[type="checkbox"],
input[type="radio"] {
    accent-color: #8ab4f8 !important;
    background-color: #0f1329 !important;
    border: 1px solid rgba(138, 180, 248, 0.35) !important;
}

input::placeholder,
textarea::placeholder {
    color: #98a3c2 !important;
    opacity: 1;
}

input:-webkit-autofill,
input:-webkit-autofill:hover,
input:-webkit-autofill:focus,
textarea:-webkit-autofill,
textarea:-webkit-autofill:hover,
textarea:-webkit-autofill:focus,
select:-webkit-autofill,
select:-webkit-autofill:hover,
select:-webkit-autofill:focus {
    -webkit-text-fill-color: #f0f4ff !important;
    -webkit-box-shadow: 0 0 0 1000px #10162f inset !important;
    transition: background-color 9999s ease-in-out 0s;
}

/* Hide legacy static-HTML modals by default (JS handles display) */
#shareModal,
#imageModal {
    display: none !important;
}

/* Project cards: icon emoji inline with heading */
.project-card .icon {
    display: inline;
}
.project-card .icon img.emoji {
    width: 1.3em !important;
    height: 1.3em !important;
    vertical-align: middle;
    margin-right: 6px;
}
.project-card h3 {
    display: inline;
}
.project-card .icon + h3::before {
    content: '';
}

/* Clear float after features-section so following content flows normally */
.features-section::after {
    content: '';
    display: table;
    clear: both;
}