/* ============================================================
   Goftar Forum Website — Minimal Stylesheet
   Supports LTR & RTL, dark (default) & light modes
   ============================================================ */

/* --- CSS Custom Properties — Dark Theme (DEFAULT) --- */
:root {
    /* Colors — Dark (Harmonized with Goftar Forum) */
    --color-bg: #0a0e1a;
    --color-surface: #141b2b;
    --color-surface-hover: #253648;
    --color-border: #2a3a5a;
    --color-text: #ffffff;
    --color-text-secondary: #b0c4de;
    --color-text-tertiary: #7a8daa;
    --color-primary: #4361ee;
    --color-primary-light: #5a7cff;
    --color-primary-bg: rgba(67, 97, 238, 0.1);
    --color-primary-border: rgba(67, 97, 238, 0.2);
    --color-accent: #f72585;
    --color-accent-hover: #ff4da6;
    --color-secondary: #3a0ca3;
    --color-navbar-bg: rgba(10, 14, 26, 0.85);

    /* Spacing */
    --space-xs: 0.25rem;
    --space-sm: 0.5rem;
    --space-md: 1rem;
    --space-lg: 1.5rem;
    --space-xl: 2rem;
    --space-2xl: 3rem;
    --space-3xl: 4rem;
    --space-4xl: 6rem;

    /* Typography */
    --font-body: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    --font-size-sm: 0.875rem;
    --font-size-base: 1rem;
    --font-size-lg: 1.125rem;
    --font-size-xl: 1.25rem;
    --font-size-2xl: 1.5rem;
    --font-size-3xl: 2rem;
    --font-size-4xl: 2.5rem;
    --font-size-5xl: 3.5rem;

    /* Layout */
    --container-max: 1120px;
    --border-radius-sm: 6px;
    --border-radius-md: 10px;
    --border-radius-lg: 16px;
    --border-radius-xl: 24px;

    /* Shadows */
    --shadow-sm: 0 1px 2px rgba(0,0,0,0.3);
    --shadow-md: 0 4px 12px rgba(0,0,0,0.4);
    --shadow-lg: 0 8px 30px rgba(0,0,0,0.5);
    --shadow-xl: 0 16px 50px rgba(0,0,0,0.6);

    /* Transitions */
    --transition-fast: 150ms ease;
    --transition-base: 250ms ease;
    --transition-slow: 400ms ease;
}

/* --- Light Theme Override --- */
[data-theme="light"] {
    --color-bg: #f0f2f5;
    --color-surface: #ffffff;
    --color-surface-hover: #e9ecef;
    --color-border: #dee2e6;
    --color-text: #212529;
    --color-text-secondary: #495057;
    --color-text-tertiary: #6c757d;
    --color-primary: #4361ee;
    --color-primary-light: #5a7cff;
    --color-primary-bg: rgba(67, 97, 238, 0.08);
    --color-primary-border: rgba(67, 97, 238, 0.15);
    --color-accent: #f72585;
    --color-accent-hover: #d61f72;
    --color-secondary: #3a0ca3;
    --color-navbar-bg: rgba(240, 242, 245, 0.85);
    --shadow-sm: 0 1px 2px rgba(0,0,0,0.04);
    --shadow-md: 0 4px 12px rgba(0,0,0,0.06);
    --shadow-lg: 0 8px 30px rgba(0,0,0,0.08);
    --shadow-xl: 0 16px 50px rgba(0,0,0,0.1);
}

/* RTL Font Override */
[dir="rtl"] {
    --font-body: 'Vazirmatn', 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
}

/* --- Reset --- */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
}

body {
    font-family: var(--font-body);
    font-size: var(--font-size-base);
    line-height: 1.7;
    color: var(--color-text);
    background-color: var(--color-bg);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
    transition: background-color 0.3s ease, color 0.3s ease;
}

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

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

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

/* --- Container --- */
.container {
    width: 100%;
    max-width: var(--container-max);
    margin-inline: auto;
    padding-inline: var(--space-lg);
}

/* --- Section Shared --- */
.section-header {
    text-align: center;
    margin-bottom: var(--space-3xl);
}

.section-badge {
    display: inline-block;
    font-size: var(--font-size-sm);
    font-weight: 600;
    color: var(--color-primary);
    background: var(--color-primary-bg);
    border: 1px solid var(--color-primary-border);
    padding: var(--space-xs) var(--space-md);
    border-radius: 999px;
    margin-bottom: var(--space-md);
    letter-spacing: 0.02em;
}

.section-title {
    font-size: var(--font-size-3xl);
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: var(--space-md);
    color: var(--color-text);
}

.section-subtitle {
    font-size: var(--font-size-lg);
    color: var(--color-text-secondary);
    max-width: 600px;
    margin-inline: auto;
    line-height: 1.7;
}

/* --- Navbar --- */
.navbar {
    position: fixed;
    top: 0;
    inset-inline: 0;
    z-index: 1000;
    background: var(--color-navbar-bg);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--color-border);
    transition: box-shadow var(--transition-base), background var(--transition-base);
}

.navbar.scrolled {
    box-shadow: var(--shadow-md);
}

.navbar-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 64px;
}

/* Logo */
.nav-brand {
    display: flex;
    align-items: center;
    gap: var(--space-md);
    color: var(--color-text);
    font-weight: 700;
    text-decoration: none;
}

.nav-brand:hover {
    color: var(--color-text);
}

.nav-logo-box {
    width: 44px;
    height: 44px;
    background: linear-gradient(135deg, var(--color-primary), var(--color-secondary));
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(67, 97, 238, 0.3);
}

.nav-logo-icon {
    font-size: 1.5rem;
    color: #ffffff;
}

.nav-brand-text {
    display: flex;
    flex-direction: column;
    line-height: 1.2;
}

.nav-title {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--color-text);
}

.nav-slogan {
    font-size: 0.65rem;
    font-weight: 400;
    color: var(--color-text-tertiary);
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

/* Navigation Links */
.nav-links {
    display: flex;
    align-items: center;
    gap: var(--space-lg);
}

.nav-link {
    font-size: var(--font-size-sm);
    font-weight: 500;
    color: var(--color-text-secondary);
    transition: color var(--transition-fast);
}

.nav-link:hover {
    color: var(--color-text);
}

.nav-link.active {
    color: var(--color-primary);
}

/* Language Dropdown */
.lang-dropdown {
    position: relative;
    display: inline-flex;
}

.lang-switch {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 36px;
    height: 36px;
    padding: 0 8px;
    border: 1px solid var(--color-border);
    border-radius: var(--border-radius-sm);
    font-weight: 600;
    font-size: var(--font-size-sm);
    color: var(--color-text-secondary);
    background: var(--color-surface);
    transition: all var(--transition-fast);
    cursor: pointer;
}

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

.lang-dropdown-menu {
    position: absolute;
    top: calc(100% + 6px);
    right: 0;
    min-width: 120px;
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--border-radius-md);
    box-shadow: var(--shadow-lg);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-4px);
    transition: all var(--transition-fast);
    z-index: 1000;
    overflow: hidden;
}

[dir="ltr"] .lang-dropdown-menu {
    right: auto;
    left: 0;
}

.lang-dropdown:hover .lang-dropdown-menu,
.lang-dropdown:focus-within .lang-dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.lang-dropdown-item {
    display: block;
    padding: 10px 16px;
    font-size: var(--font-size-sm);
    font-weight: 500;
    color: var(--color-text-secondary);
    transition: all var(--transition-fast);
    text-decoration: none;
}

.lang-dropdown-item:hover {
    background: var(--color-surface-hover);
    color: var(--color-primary);
}

/* Theme Toggle */
.theme-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border: 1px solid var(--color-border);
    border-radius: var(--border-radius-sm);
    background: var(--color-surface);
    color: var(--color-text-secondary);
    cursor: pointer;
    transition: all var(--transition-fast);
    padding: 0;
}

.theme-toggle:hover {
    border-color: var(--color-primary);
    color: var(--color-primary);
}

.theme-toggle .icon-sun,
.theme-toggle .icon-moon {
    width: 18px;
    height: 18px;
}

[data-theme="dark"] .theme-toggle .icon-sun,
:root .theme-toggle .icon-sun {
    display: block;
}
[data-theme="dark"] .theme-toggle .icon-moon,
:root .theme-toggle .icon-moon {
    display: none;
}

[data-theme="light"] .theme-toggle .icon-sun {
    display: none;
}
[data-theme="light"] .theme-toggle .icon-moon {
    display: block;
}

/* GitHub Widget */
.github-widget-wrapper {
    display: inline-flex;
    align-items: center;
}

.github-widget {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 0 12px;
    height: 36px;
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--border-radius-sm);
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Helvetica, Arial, sans-serif;
    font-size: 13px;
    font-weight: 500;
    line-height: 1;
    color: var(--color-text-secondary);
    text-decoration: none;
    transition: all var(--transition-fast);
    white-space: nowrap;
}

.github-widget:hover {
    background: var(--color-surface-hover);
    border-color: var(--color-primary);
    color: var(--color-text);
    transform: translateY(-1px);
}

.github-widget i {
    font-size: 14px;
    color: currentColor;
}

.github-widget-text {
    font-weight: 500;
}

.github-widget-star {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding-left: 8px;
    margin-left: 4px;
    border-left: 1px solid var(--color-border);
    color: var(--color-primary);
    font-weight: 600;
}

[dir="rtl"] .github-widget-star {
    padding-left: 0;
    margin-left: 0;
    padding-right: 8px;
    margin-right: 4px;
    border-left: none;
    border-right: 1px solid var(--color-border);
}

.github-star-count {
    font-size: 13px;
    font-weight: 600;
}

/* Mobile Toggle */
.nav-mobile-toggle {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 36px;
    height: 36px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 6px;
}

.nav-mobile-toggle span {
    display: block;
    width: 100%;
    height: 2px;
    background: var(--color-text);
    border-radius: 2px;
    transition: all var(--transition-fast);
}

/* Mobile Menu */
.mobile-menu {
    display: none;
    position: fixed;
    top: 64px;
    inset-inline: 0;
    background: var(--color-surface);
    border-bottom: 1px solid var(--color-border);
    padding: var(--space-lg);
    z-index: 999;
    flex-direction: column;
    gap: var(--space-sm);
}

.mobile-menu.active {
    display: flex;
}

.mobile-link {
    display: block;
    padding: var(--space-sm) var(--space-md);
    font-size: var(--font-size-base);
    font-weight: 500;
    color: var(--color-text-secondary);
    border-radius: var(--border-radius-sm);
    transition: all var(--transition-fast);
}

.mobile-link:hover {
    background: var(--color-surface-hover);
    color: var(--color-text);
}

.mobile-star-badge {
    display: inline-block;
    margin-left: 8px;
    padding: 2px 8px;
    background: var(--color-primary-bg);
    border-radius: 20px;
    font-size: 11px;
    font-weight: 600;
    color: var(--color-primary);
}

/* --- Hero Section --- */
.hero {
    position: relative;
    padding-top: calc(64px + var(--space-4xl));
    padding-bottom: var(--space-4xl);
    text-align: center;
    overflow: hidden;
}

.hero-bg-pattern {
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse 80% 50% at 50% -20%, rgba(67, 97, 238, 0.08), transparent),
                radial-gradient(ellipse 60% 40% at 80% 60%, rgba(67, 97, 238, 0.04), transparent),
                radial-gradient(ellipse 60% 40% at 20% 60%, rgba(67, 97, 238, 0.04), transparent);
    pointer-events: none;
}

[data-theme="light"] .hero-bg-pattern {
    background: radial-gradient(ellipse 80% 50% at 50% -20%, rgba(67, 97, 238, 0.06), transparent),
                radial-gradient(ellipse 60% 40% at 80% 60%, rgba(67, 97, 238, 0.03), transparent),
                radial-gradient(ellipse 60% 40% at 20% 60%, rgba(67, 97, 238, 0.03), transparent);
}

.hero-inner {
    position: relative;
    z-index: 1;
}

.hero-badge {
    display: inline-block;
    font-size: var(--font-size-sm);
    font-weight: 500;
    color: var(--color-primary);
    background: var(--color-primary-bg);
    border: 1px solid var(--color-primary-border);
    padding: var(--space-xs) var(--space-lg);
    border-radius: 999px;
    margin-bottom: var(--space-xl);
}

/* Persian Hero Title */
.hero-title-fa {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    font-size: var(--font-size-5xl);
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: var(--space-lg);
    color: var(--color-text);
    letter-spacing: -0.02em;
}

.hero-line-1,
.hero-line-2 {
    display: block;
}

/* English Hero Title */
.hero-title {
    font-size: var(--font-size-5xl);
    font-weight: 800;
    line-height: 1.15;
    margin-bottom: var(--space-lg);
    color: var(--color-text);
    letter-spacing: -0.02em;
}

.hero-highlight {
    background: linear-gradient(135deg, var(--color-primary), var(--color-primary-light));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    display: inline-block;
}

.hero-subtitle {
    font-size: var(--font-size-lg);
    color: var(--color-text-secondary);
    max-width: 560px;
    margin-inline: auto;
    margin-bottom: var(--space-2xl);
    line-height: 1.8;
}

.hero-actions {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-md);
    flex-wrap: wrap;
}

/* --- Buttons --- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-sm);
    padding: 0.7rem 1.5rem;
    font-family: var(--font-body);
    font-size: var(--font-size-sm);
    font-weight: 600;
    border-radius: var(--border-radius-md);
    cursor: pointer;
    transition: all var(--transition-fast);
    border: none;
    text-decoration: none;
    white-space: nowrap;
}

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

.btn-primary:hover {
    background: var(--color-primary-light);
    color: #ffffff;
}

.btn-secondary {
    background: transparent;
    color: var(--color-text);
    border: 1px solid var(--color-border);
}

.btn-secondary:hover {
    border-color: var(--color-text);
}

.btn-lg {
    padding: 0.85rem 2rem;
    font-size: var(--font-size-base);
}

/* --- Philosophy Section --- */
.philosophy {
    padding: var(--space-4xl) 0;
    background: var(--color-surface);
    position: relative;
    overflow: hidden;
}

.philosophy-inner {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: var(--space-3xl);
    align-items: start;
}

.philosophy-visual {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--space-md);
}

.faravahar-img {
    width: 180px;
    height: auto;
    filter: drop-shadow(0 0 30px rgba(67, 97, 238, 0.3)) hue-rotate(200deg) saturate(1.5) brightness(1.2);
    animation: floatGlow 4s ease-in-out infinite;
}

.faravahar-mirror {
    animation: floatGlowMirror 4s ease-in-out infinite;
    transform: scaleX(-1);
}

@keyframes floatGlow {
    0%, 100% { filter: drop-shadow(0 0 30px rgba(67, 97, 238, 0.3)); transform: translateY(0); }
    50% { filter: drop-shadow(0 0 50px rgba(67, 97, 238, 0.5)); transform: translateY(-8px); }
}

@keyframes floatGlowMirror {
    0%, 100% { filter: drop-shadow(0 0 30px rgba(67, 97, 238, 0.3)); transform: scaleX(-1) translateY(0); }
    50% { filter: drop-shadow(0 0 50px rgba(67, 97, 238, 0.5)); transform: scaleX(-1) translateY(-8px); }
}

.philosophy-visual-label {
    font-size: var(--font-size-sm);
    color: var(--color-text-tertiary);
    font-weight: 500;
}

.philosophy-content {
    display: flex;
    flex-direction: column;
    gap: var(--space-xl);
}

.philosophy-motto {
    display: flex;
    align-items: center;
    gap: var(--space-md);
    flex-wrap: wrap;
}

.motto-item {
    display: inline-flex;
    align-items: center;
    gap: var(--space-sm);
    font-size: var(--font-size-xl);
    font-weight: 700;
    color: var(--color-primary);
}

.motto-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--color-primary);
    opacity: 0.5;
}

/* Meaning Section */
.philosophy-meaning {
    background: var(--color-primary-bg);
    border: 1px solid var(--color-primary-border);
    border-radius: var(--border-radius-lg);
    padding: var(--space-lg) var(--space-xl);
    margin: var(--space-md) 0;
}

.meaning-label {
    font-size: var(--font-size-sm);
    font-weight: 600;
    color: var(--color-primary);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: var(--space-sm);
}

.meaning-text {
    font-size: var(--font-size-base);
    color: var(--color-text-secondary);
    line-height: 1.8;
}

.philosophy-quote {
    font-size: var(--font-size-lg);
    color: var(--color-text-secondary);
    line-height: 1.9;
    padding-inline-start: var(--space-lg);
    border-inline-start: 3px solid var(--color-primary-border);
    font-style: italic;
}

.philosophy-quote-author {
    font-size: var(--font-size-sm);
    color: var(--color-text-tertiary);
    font-style: normal;
    margin-top: var(--space-sm);
}

.philosophy-quote-en {
    font-family: 'Inter', sans-serif;
    direction: ltr;
    text-align: left;
}

/* --- Features Section --- */
.features {
    padding: var(--space-4xl) 0;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-xl);
}

.feature-card {
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--border-radius-lg);
    padding: var(--space-2xl);
    transition: all var(--transition-base);
}

.feature-card:hover {
    border-color: var(--color-primary-border);
    box-shadow: var(--shadow-lg);
    transform: translateY(-2px);
}

.feature-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 52px;
    height: 52px;
    border-radius: var(--border-radius-md);
    margin-bottom: var(--space-lg);
}

.feature-icon-security { background: rgba(247, 37, 133, 0.12); color: #f72585; }
.feature-icon-lang     { background: rgba(67, 97, 238, 0.12);  color: #4361ee; }
.feature-icon-themes   { background: rgba(168, 85, 247, 0.12); color: #a855f7; }
.feature-icon-admin    { background: rgba(58, 12, 163, 0.12);  color: #7c3aed; }
.feature-icon-comm     { background: rgba(46, 196, 182, 0.12); color: #2ec4b6; }
.feature-icon-perf     { background: rgba(67, 97, 238, 0.12);  color: #4361ee; }

[data-theme="light"] .feature-icon-security { background: rgba(247, 37, 133, 0.08); }
[data-theme="light"] .feature-icon-lang     { background: rgba(67, 97, 238, 0.08); }
[data-theme="light"] .feature-icon-themes   { background: rgba(168, 85, 247, 0.08); }
[data-theme="light"] .feature-icon-admin    { background: rgba(58, 12, 163, 0.08); }
[data-theme="light"] .feature-icon-comm     { background: rgba(46, 196, 182, 0.08); }
[data-theme="light"] .feature-icon-perf     { background: rgba(67, 97, 238, 0.08); }

.feature-card-title {
    font-size: var(--font-size-xl);
    font-weight: 700;
    margin-bottom: var(--space-sm);
    color: var(--color-text);
}

.feature-card-desc {
    font-size: var(--font-size-base);
    color: var(--color-text-secondary);
    line-height: 1.7;
}

/* --- Screenshots Section --- */
.screenshots {
    padding: var(--space-4xl) 0;
    background: var(--color-surface);
}

.screenshots-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-xl);
}

.screenshot-card {
    border-radius: var(--border-radius-lg);
    overflow: hidden;
    border: 1px solid var(--color-border);
    background: var(--color-bg);
    transition: all var(--transition-base);
}

.screenshot-card:hover {
    box-shadow: var(--shadow-lg);
    transform: translateY(-3px);
}

.screenshot-img-wrap {
    aspect-ratio: 16/9;
    overflow: hidden;
}

.screenshot-img-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--transition-slow);
}

.screenshot-card:hover .screenshot-img-wrap img {
    transform: scale(1.03);
}

.screenshot-label {
    padding: var(--space-md) var(--space-lg);
    font-size: var(--font-size-sm);
    font-weight: 600;
    color: var(--color-text-secondary);
    text-align: center;
}

/* --- CTA Section --- */
.cta-section {
    position: relative;
    padding: var(--space-4xl) 0;
    text-align: center;
    overflow: hidden;
}

.cta-bg-pattern {
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse 80% 50% at 50% 50%, rgba(67, 97, 238, 0.06), transparent);
    pointer-events: none;
}

[data-theme="light"] .cta-bg-pattern {
    background: radial-gradient(ellipse 80% 50% at 50% 50%, rgba(67, 97, 238, 0.05), transparent);
}

.cta-inner {
    position: relative;
    z-index: 1;
}

.cta-title {
    font-size: var(--font-size-4xl);
    font-weight: 800;
    margin-bottom: var(--space-md);
    color: var(--color-text);
}

.cta-subtitle {
    font-size: var(--font-size-lg);
    color: var(--color-text-secondary);
    max-width: 560px;
    margin-inline: auto;
    margin-bottom: var(--space-2xl);
    line-height: 1.8;
}

.cta-meta {
    display: flex;
    justify-content: center;
    gap: var(--space-2xl);
    margin-bottom: var(--space-2xl);
}

.cta-meta-item {
    text-align: center;
}

.cta-meta-label {
    display: block;
    font-size: var(--font-size-sm);
    color: var(--color-text-tertiary);
    margin-bottom: var(--space-xs);
}

.cta-meta-value {
    display: block;
    font-size: var(--font-size-xl);
    font-weight: 700;
    color: var(--color-text);
}

.cta-actions {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-md);
    flex-wrap: wrap;
}

/* --- Footer --- */
.footer {
    padding: var(--space-2xl) 0;
    border-top: 1px solid var(--color-border);
    background: var(--color-surface);
}

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

.footer-row-top {
    padding-bottom: var(--space-lg);
    border-bottom: 1px solid var(--color-border);
    margin-bottom: var(--space-lg);
}

.footer-row-bottom {
    justify-content: center;
}

.footer-brand {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    font-weight: 700;
    color: var(--color-text);
}

.footer-logo-icon {
    font-size: 1.2rem;
    color: var(--color-primary);
}

.footer-brand-name {
    font-weight: 700;
}

.footer-brand-slogan {
    font-size: 0.7rem;
    font-weight: 400;
    color: var(--color-text-tertiary);
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.footer-links {
    display: flex;
    gap: var(--space-lg);
}

.footer-links a {
    font-size: var(--font-size-sm);
    font-weight: 500;
    color: var(--color-text-secondary);
    transition: color var(--transition-fast);
}

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

.footer-center {
    text-align: center;
}

.footer-center p {
    font-size: var(--font-size-sm);
    color: var(--color-text-secondary);
}

.footer-license {
    font-size: var(--font-size-sm) !important;
    color: var(--color-text-tertiary) !important;
    margin-top: var(--space-xs);
}

/* --- Responsive --- */
@media (max-width: 1024px) {
    .features-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .screenshots-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .section-title {
        font-size: var(--font-size-2xl);
    }

    .hero-title, .hero-title-fa {
        font-size: var(--font-size-4xl);
    }

    .cta-title {
        font-size: var(--font-size-3xl);
    }

    .philosophy-inner {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .philosophy-visual {
        order: -1;
    }

    .philosophy-motto {
        justify-content: center;
    }

    .philosophy-quote {
        text-align: start;
    }
    
    .philosophy-meaning {
        text-align: start;
    }
}

@media (max-width: 768px) {
    .nav-links {
        display: none;
    }

    .nav-mobile-toggle {
        display: flex;
    }

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

    .hero {
        padding-top: calc(64px + var(--space-2xl));
        padding-bottom: var(--space-2xl);
    }

    .hero-title, .hero-title-fa {
        font-size: var(--font-size-3xl);
    }

    .hero-subtitle {
        font-size: var(--font-size-base);
    }

    .features,
    .philosophy,
    .screenshots,
    .cta-section {
        padding: var(--space-3xl) 0;
    }

    .cta-meta {
        flex-direction: column;
        gap: var(--space-md);
    }

    .footer-row-top {
        flex-direction: column;
        gap: var(--space-md);
        text-align: center;
    }

    .footer-links {
        justify-content: center;
    }

    .footer-row-bottom {
        text-align: center;
    }

    .motto-item {
        font-size: var(--font-size-lg);
    }
    
    .github-widget-text {
        display: none;
    }
    
    .github-widget-star {
        padding-left: 0;
        margin-left: 0;
        border-left: none;
    }
}

@media (max-width: 480px) {
    .container {
        padding-inline: var(--space-md);
    }

    .hero-title, .hero-title-fa {
        font-size: var(--font-size-2xl);
    }

    .section-title {
        font-size: var(--font-size-xl);
    }

    .cta-title {
        font-size: var(--font-size-2xl);
    }

    .feature-card {
        padding: var(--space-lg);
    }

    .hero-actions,
    .cta-actions {
        flex-direction: column;
    }

    .hero-actions .btn,
    .cta-actions .btn {
        width: 100%;
    }

    .faravahar-img {
        width: 120px;
    }
    
    .nav-brand-text {
        display: none;
    }
}

/* --- Animations --- */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero-inner > * {
    animation: fadeInUp 0.6s ease backwards;
}

.hero-inner > *:nth-child(1) { animation-delay: 0.1s; }
.hero-inner > *:nth-child(2) { animation-delay: 0.2s; }
.hero-inner > *:nth-child(3) { animation-delay: 0.3s; }
.hero-inner > *:nth-child(4) { animation-delay: 0.4s; }
.hero-inner > *:nth-child(5) { animation-delay: 0.5s; }

.feature-card {
    animation: fadeInUp 0.5s ease backwards;
}

.feature-card:nth-child(1) { animation-delay: 0.1s; }
.feature-card:nth-child(2) { animation-delay: 0.15s; }
.feature-card:nth-child(3) { animation-delay: 0.2s; }
.feature-card:nth-child(4) { animation-delay: 0.25s; }
.feature-card:nth-child(5) { animation-delay: 0.3s; }
.feature-card:nth-child(6) { animation-delay: 0.35s; }

/* --- Scroll Reveal --- */
.reveal {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

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

/* --- Selection --- */
::selection {
    background: var(--color-primary-bg);
    color: var(--color-primary);
}

/* --- Screenshots Section with Lightbox --- */
.screenshots {
    padding: var(--space-4xl) 0;
    background: var(--color-surface);
}

.screenshots-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-xl);
}

.screenshot-card {
    border-radius: var(--border-radius-lg);
    overflow: hidden;
    border: 1px solid var(--color-border);
    background: var(--color-bg);
    transition: all var(--transition-base);
    cursor: pointer;
}

.screenshot-card:hover {
    border-color: var(--color-primary-border);
    box-shadow: var(--shadow-lg);
    transform: translateY(-3px);
}

.screenshot-card a {
    display: block;
    text-decoration: none;
    color: inherit;
}

.screenshot-img-wrap {
    aspect-ratio: 16/9;
    overflow: hidden;
    position: relative;
}

.screenshot-img-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--transition-slow);
}

.screenshot-card:hover .screenshot-img-wrap img {
    transform: scale(1.05);
}

/* Overlay effect on hover */
.screenshot-img-wrap::after {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.4);
    opacity: 0;
    transition: opacity var(--transition-base);
    pointer-events: none;
}

.screenshot-card:hover .screenshot-img-wrap::after {
    opacity: 1;
}

.screenshot-label {
    padding: var(--space-md) var(--space-lg);
    font-size: var(--font-size-sm);
    font-weight: 600;
    color: var(--color-text-secondary);
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-sm);
    transition: color var(--transition-base);
}

.screenshot-card:hover .screenshot-label {
    color: var(--color-primary);
}

.screenshot-label i {
    font-size: 12px;
    opacity: 0.7;
}

.screenshot-card:hover .screenshot-label i {
    opacity: 1;
}

/* GLightbox custom styles - مطابق با تم سایت */

/* حذف بخش توضیحات (description-bottom) لایت‌باکس */
.gslide-description {
    display: none !important;
}

/* ارتفاع تصویر لایت‌باکس روی ۹۰ درصد */
.gslide-image img {
    max-height: 90vh !important;
    object-fit: contain !important;
}

.gslide-image {
    height: 90vh !important;
}

/* Responsive */
@media (max-width: 768px) {
    .screenshots-grid {
        grid-template-columns: 1fr;
        gap: var(--space-lg);
    }
    
    .screenshot-label {
        padding: var(--space-sm) var(--space-md);
        font-size: var(--font-size-sm);
    }
}