/* 
 * Solar SCADA Website Styles
 * Theme: Modern Dark Industrial
 * Colors: Deep Blue/Black, Solar Orange, Cyber Cyan
 */

:root {
    --bg-dark: #0f172a;
    --bg-darker: #020617;
    --primary: #f59e0b;
    /* Solar Orange */
    --secondary: #06b6d4;
    /* Cyan */
    --text-main: #f8fafc;
    --text-muted: #94a3b8;
    --glass-bg: rgba(30, 41, 59, 0.7);
    --glass-border: rgba(255, 255, 255, 0.1);
    --font-main: 'Vazirmatn', sans-serif;
    --transition: all 0.3s ease;
}

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

.skip-link {
    position: absolute;
    top: -50px;
    right: 20px;
    padding: 12px 20px;
    background: var(--primary);
    color: white;
    font-weight: 600;
    text-decoration: none;
    border-radius: 8px;
    z-index: 10000;
    transition: top 0.2s;
}
.skip-link:focus {
    top: 20px;
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0,0,0,0);
    border: 0;
}

.feature-guides-seo {
    margin-top: 40px;
    padding-top: 24px;
    border-top: 1px solid var(--glass-border);
}

.feature-guides-seo .seo-guide-item {
    margin-bottom: 12px;
    padding: 12px 16px;
    background: rgba(255,255,255,0.03);
    border-radius: 10px;
    border: 1px solid var(--glass-border);
}

.feature-guides-seo .seo-guide-item summary {
    cursor: pointer;
    font-weight: 600;
    color: var(--text-main);
}

.feature-guides-seo .seo-guide-body {
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px solid var(--glass-border);
    font-size: 0.95rem;
    color: var(--text-muted);
}

.feature-guides-seo .seo-guide-body h4 {
    font-size: 1rem;
    margin: 12px 0 6px;
    color: var(--text-main);
}

.feature-guides-seo .seo-guide-body ul {
    margin: 8px 0;
    padding-left: 20px;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-main);
    background-color: var(--bg-darker);
    color: var(--text-main);
    line-height: 1.6;
    overflow-x: hidden;
    position: relative;
}

/* Background Effects */
.bg-gradient {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: radial-gradient(circle at 10% 20%, rgba(6, 182, 212, 0.1) 0%, transparent 40%),
        radial-gradient(circle at 90% 80%, rgba(245, 158, 11, 0.05) 0%, transparent 40%);
    z-index: -2;
    pointer-events: none;
}

.grid-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
    background-size: 50px 50px;
    z-index: -1;
    pointer-events: none;
    mask-image: radial-gradient(circle at center, black 40%, transparent 100%);
    -webkit-mask-image: radial-gradient(circle at center, black 40%, transparent 100%);
}

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

.section-padding {
    padding: 100px 0;
}

.gradient-text {
    background: linear-gradient(135deg, var(--secondary), var(--primary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.btn-primary {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: linear-gradient(135deg, var(--primary), #d97706);
    color: white;
    padding: 12px 30px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 700;
    transition: var(--transition);
    box-shadow: 0 4px 15px rgba(245, 158, 11, 0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(245, 158, 11, 0.5);
}

.btn-secondary {
    display: inline-flex;
    align-items: center;
    padding: 12px 30px;
    border-radius: 50px;
    text-decoration: none;
    color: var(--text-main);
    border: 1px solid var(--glass-border);
    backdrop-filter: blur(5px);
    transition: var(--transition);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: var(--secondary);
}

.glass-card {
    background: var(--glass-bg);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    padding: 30px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

/* Navbar - Redesigned */
.nav-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    overflow: visible;
}

.navbar {
    padding: 16px 24px;
    transition: var(--transition);
}

.navbar.scrolled {
    background: rgba(15, 23, 42, 0.92);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    box-shadow: 0 1px 0 rgba(255,255,255,0.05);
}

.nav-container {
    max-width: 1280px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 32px;
    position: relative;
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    color: var(--text-main);
    font-size: 1.35rem;
    font-weight: 800;
    letter-spacing: -0.02em;
    min-width: 0;
    flex-shrink: 1;
}

.nav-logo-img {
    height: 48px;
    width: auto;
    max-width: 180px;
    object-fit: contain;
    display: block;
}

.nav-logo-icon {
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.2), rgba(6, 182, 212, 0.15));
    border-radius: 12px;
    color: var(--primary);
    font-size: 1.2rem;
}

.nav-logo-accent {
    background: linear-gradient(135deg, var(--secondary), var(--primary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.nav-menu {
    display: flex;
    gap: 4px;
    list-style: none;
    align-items: center;
    flex-wrap: nowrap;
}

.nav-menu li {
    flex-shrink: 0;
}

.nav-menu a {
    padding: 10px 14px;
    color: var(--text-muted);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.9rem;
    border-radius: 10px;
    transition: var(--transition);
    white-space: nowrap;
}

.nav-menu a:hover {
    color: var(--text-main);
    background: rgba(255,255,255,0.05);
}

.nav-menu a.active {
    color: var(--primary);
    background: rgba(245, 158, 11, 0.12);
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 0;
    flex-shrink: 0;
}

.nav-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    background: rgba(255,255,255,0.05);
    border: 1px solid var(--glass-border);
    border-radius: 12px;
    color: var(--primary);
    font-size: 1.1rem;
    cursor: pointer;
    transition: var(--transition);
}

.nav-btn:hover {
    background: rgba(245, 158, 11, 0.15);
    border-color: rgba(245, 158, 11, 0.4);
}

.nav-cta {
    padding: 10px 22px !important;
    font-size: 0.95rem !important;
    border-radius: 12px !important;
    white-space: nowrap;
}

.nav-mobile-toggle {
    display: none;
    width: 44px;
    height: 44px;
    align-items: center;
    justify-content: center;
    background: rgba(255,255,255,0.05);
    border: 1px solid var(--glass-border);
    border-radius: 12px;
    color: var(--text-main);
    font-size: 1.25rem;
    cursor: pointer;
    transition: var(--transition);
}

.nav-mobile-toggle:hover {
    background: rgba(245, 158, 11, 0.15);
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding-top: 80px;
    position: relative;
    overflow: hidden;
}

.hero-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: center;
}

.badge {
    display: inline-block;
    padding: 5px 15px;
    background: rgba(6, 182, 212, 0.1);
    color: var(--secondary);
    border-radius: 50px;
    font-size: 0.9rem;
    margin-bottom: 20px;
    border: 1px solid rgba(6, 182, 212, 0.3);
}

.hero h1 {
    font-size: 3.5rem;
    line-height: 1.2;
    margin-bottom: 20px;
    font-weight: 900;
}

.hero p {
    font-size: 1.2rem;
    color: var(--text-muted);
    margin-bottom: 40px;
    max-width: 500px;
}

.hero-btns {
    display: flex;
    gap: 20px;
    margin-bottom: 50px;
}

.stats-row {
    display: flex;
    gap: 40px;
    border-top: 1px solid var(--glass-border);
    padding-top: 30px;
}

.stat-item {
    display: flex;
    flex-direction: column;
}

.stat-number {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-main);
}

.stat-label {
    font-size: 0.9rem;
    color: var(--text-muted);
}

.hero-visual {
    position: relative;
}

.img-container {
    position: relative;
    padding: 10px;
    transform: perspective(1000px) rotateY(-10deg) rotateX(5deg);
    transition: transform 0.5s ease-out;
}

.img-container:hover {
    transform: perspective(1000px) rotateY(0deg) rotateX(0deg);
}

.img-container img {
    width: 100%;
    border-radius: 10px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
}

.floating-card {
    position: absolute;
    background: rgba(15, 23, 42, 0.9);
    padding: 15px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    gap: 15px;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.3);
    border: 1px solid var(--glass-border);
    animation: float 3s ease-in-out infinite;
}

.floating-card i {
    font-size: 1.5rem;
    color: var(--primary);
}

.floating-card.c1 {
    top: -20px;
    right: -20px;
}

.floating-card.c2 {
    bottom: -20px;
    left: -20px;
    animation-delay: 1.5s;
}

@keyframes float {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-10px);
    }
}

/* Features Section */
.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-header h2 {
    font-size: 2.5rem;
    margin-bottom: 15px;
}

.section-header p {
    color: var(--text-muted);
    font-size: 1.2rem;
}

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

.feature-card {
    transition: var(--transition);
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.feature-card.glass-card {
    padding: 0;
}

.feature-card-img {
    height: 160px;
    min-height: 160px;
    overflow: hidden;
    background: linear-gradient(135deg, rgba(6, 182, 212, 0.15), rgba(245, 158, 11, 0.1));
    border-radius: 20px 20px 0 0;
}

.feature-card-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.4s ease;
}

.feature-card-body {
    padding: 20px;
    display: flex;
    flex-direction: column;
    min-height: 110px;
}

.feature-card-body h3 {
    font-size: 1.1rem;
    margin-bottom: 8px;
}

.feature-card-body p {
    color: var(--text-muted);
    font-size: 0.9rem;
    line-height: 1.5;
}

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

.feature-card:hover .feature-card-img img {
    transform: scale(1.05);
    transition: transform 0.4s ease;
}

.feature-card {
    cursor: pointer;
}

.feature-expand-hint {
    display: block;
    margin-top: 10px;
    font-size: 0.8rem;
    color: var(--secondary);
    opacity: 0.8;
}

.feature-expand-hint i {
    margin-left: 4px;
}

.feature-guide-panel {
    display: none;
    margin-top: 30px;
    padding: 35px 40px !important;
    position: relative;
}

.feature-guide-panel.visible {
    display: block;
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
}

.feature-guide-close {
    position: absolute;
    top: 15px;
    left: 15px;
    width: 40px;
    height: 40px;
    border: none;
    background: rgba(255,255,255,0.05);
    color: var(--text-muted);
    border-radius: 50%;
    cursor: pointer;
    font-size: 1.2rem;
}

.feature-guide-close:hover {
    background: rgba(245, 158, 11, 0.2);
    color: var(--primary);
}

.feature-guide-content {
    padding-top: 20px;
}

.feature-guide-content h4 {
    font-size: 1.3rem;
    margin-bottom: 15px;
    color: var(--primary);
}

.feature-guide-content p {
    color: var(--text-muted);
    line-height: 1.9;
    margin-bottom: 15px;
}

.feature-guide-content ul {
    list-style: none;
    margin: 15px 0;
}

.feature-guide-content ul li {
    padding: 8px 0;
    padding-right: 25px;
    position: relative;
    color: var(--text-muted);
}

.feature-guide-content ul li::before {
    content: '\f00c';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    position: absolute;
    right: 0;
    color: var(--secondary);
}

/* Feature card image fallback */
.feature-card-img.use-fallback {
    display: flex;
    align-items: center;
    justify-content: center;
}
.feature-card-img .icon-fallback {
    display: none;
    font-size: 4rem;
    color: var(--secondary);
}
.feature-card-img.use-fallback .icon-fallback {
    display: flex !important;
}

/* Solar Program Info */
.solar-info {
    background: linear-gradient(180deg, transparent 0%, rgba(6, 182, 212, 0.03) 50%, transparent 100%);
}
.solar-info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 25px;
}
.solar-info-card {
    transition: var(--transition);
}
.solar-info-card:hover {
    transform: translateY(-6px);
    border-color: var(--secondary);
}
.solar-info-card i {
    font-size: 2.2rem;
    color: var(--primary);
    margin-bottom: 15px;
}
.solar-info-card h3 {
    font-size: 1.15rem;
    margin-bottom: 10px;
}
.solar-info-card p {
    color: var(--text-muted);
    font-size: 0.95rem;
}

/* Use Cases - override use-case-card for grid */
.use-cases-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 25px;
}
.use-case-list {
    list-style: none;
    margin-top: 15px;
}
.use-case-list li {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 8px;
    font-size: 0.9rem;
    color: var(--text-muted);
}
.use-case-list i {
    color: var(--secondary);
}

/* About section */
.about {
    background: linear-gradient(180deg, transparent 0%, rgba(245, 158, 11, 0.03) 50%, transparent 100%);
}
.about-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}
.about-card {
    transition: var(--transition);
}
.about-card:hover {
    transform: translateY(-6px);
    border-color: var(--primary);
}
.about-card i {
    font-size: 2.5rem;
    color: var(--primary);
    margin-bottom: 15px;
}
.about-card h3 {
    font-size: 1.2rem;
    margin-bottom: 12px;
}
.about-card p {
    color: var(--text-muted);
    font-size: 0.95rem;
}
.ai-features {
    list-style: none;
}
.ai-features li {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin-bottom: 12px;
    font-size: 0.95rem;
    color: var(--text-muted);
}
.ai-features i {
    font-size: 1rem;
    color: var(--secondary);
    margin-top: 3px;
}

/* Why Harmony */
.why-harmony {
    background: linear-gradient(180deg, transparent 0%, rgba(6, 182, 212, 0.03) 50%, transparent 100%);
}
.why-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
}
.why-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    padding: 25px 30px;
    min-width: 160px;
    transition: var(--transition);
}
.why-card:hover {
    transform: translateY(-6px);
    border-color: var(--secondary);
}
.why-card i {
    font-size: 2rem;
    color: var(--secondary);
}
.why-card span {
    font-size: 0.95rem;
    font-weight: 600;
}

/* FAQ Accordion */
.faq-list {
    max-width: 700px;
    margin: 0 auto;
}
.faq-item {
    margin-bottom: 15px;
    padding: 0 !important;
    overflow: hidden;
}
.faq-question {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 25px;
    background: none;
    border: none;
    color: var(--text-main);
    font-family: var(--font-main);
    font-size: 1.05rem;
    font-weight: 600;
    text-align: right;
    cursor: pointer;
    transition: var(--transition);
}
.faq-question:hover {
    color: var(--primary);
}
.faq-question i {
    margin-left: 15px;
    color: var(--secondary);
    transition: transform 0.3s ease;
}
.faq-item.active .faq-question i {
    transform: rotate(180deg);
}
.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
}
.faq-item.active .faq-answer {
    max-height: 200px;
}
.faq-answer p {
    padding: 0 25px 20px;
    color: var(--text-muted);
    font-size: 0.95rem;
    line-height: 1.7;
}

/* For Solar Farm Owner Section */
.for-owner {
    background: linear-gradient(180deg, transparent 0%, rgba(6, 182, 212, 0.03) 50%, transparent 100%);
}

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

.owner-card {
    transition: var(--transition);
}

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

.owner-card i {
    font-size: 2.5rem;
    color: var(--primary);
    margin-bottom: 20px;
}

.owner-card h3 {
    margin-bottom: 15px;
    font-size: 1.2rem;
}

.owner-card p {
    color: var(--text-muted);
    font-size: 0.95rem;
}

/* Use Cases Section */
.use-cases {
    background: linear-gradient(180deg, transparent 0%, rgba(245, 158, 11, 0.03) 50%, transparent 100%);
}

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

.use-case-card {
    transition: var(--transition);
}

.use-case-card:hover {
    transform: translateY(-8px);
    border-color: var(--secondary);
}

.use-case-card i {
    font-size: 2.2rem;
    color: var(--secondary);
    margin-bottom: 18px;
}

.use-case-card h3 {
    margin-bottom: 12px;
    font-size: 1.15rem;
}

.use-case-card p {
    color: var(--text-muted);
    font-size: 0.95rem;
}

/* Gallery Section */
.split-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: center;
}

.check-list {
    list-style: none;
    margin: 30px 0;
}

.check-list li {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 15px;
    font-size: 1.1rem;
}

.check-list i {
    color: var(--secondary);
}

.image-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    grid-template-rows: repeat(2, 1fr);
    gap: 20px;
    height: 500px;
}

.image-grid img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 15px;
    transition: var(--transition);
}

.g-img-1 {
    grid-column: 1 / 2;
    grid-row: 1 / 3;
}

.g-img-2 {
    grid-column: 2 / 3;
    grid-row: 2 / 3;
}

.mt-4 {
    margin-top: 2rem;
}

/* Showcase Cards (Gallery redesign) */
.showcase-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 25px;
    margin-bottom: 40px;
}
.showcase-card {
    text-align: center;
    transition: var(--transition);
}
.showcase-card:hover {
    transform: translateY(-8px);
    border-color: var(--secondary);
}
.showcase-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 20px;
    background: linear-gradient(135deg, rgba(6, 182, 212, 0.2), rgba(245, 158, 11, 0.15));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}
.showcase-icon i {
    font-size: 2rem;
    color: var(--primary);
}
.showcase-card h3 {
    font-size: 1.2rem;
    margin-bottom: 10px;
}
.showcase-card p {
    color: var(--text-muted);
    font-size: 0.95rem;
}
.gallery-cta {
    text-align: center;
}

/* Language Switcher */
.lang-dropdown {
    position: relative;
}
.lang-btn {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    background: rgba(255,255,255,0.05);
    border: 1px solid var(--glass-border);
    border-radius: 25px;
    color: var(--text-main);
    font-family: var(--font-main);
    font-size: 0.95rem;
    cursor: pointer;
}
.lang-btn:hover {
    border-color: var(--secondary);
}
.lang-btn i {
    font-size: 0.75rem;
    transition: transform 0.2s;
}
.lang-dropdown.open .lang-btn i {
    transform: rotate(180deg);
}
.lang-menu {
    position: absolute;
    top: 100%;
    right: 0;
    margin-top: 8px;
    background: var(--bg-dark);
    border: 1px solid var(--glass-border);
    border-radius: 12px;
    padding: 8px;
    min-width: 160px;
    display: none;
    box-shadow: 0 10px 30px rgba(0,0,0,0.4);
}
[dir="ltr"] .lang-menu { right: auto; left: 0; }
.lang-dropdown.open .lang-menu {
    display: block;
}
.lang-menu button {
    display: block;
    width: 100%;
    padding: 10px 14px;
    text-align: right;
    background: none;
    border: none;
    color: var(--text-main);
    font-family: var(--font-main);
    cursor: pointer;
    border-radius: 8px;
}
[dir="ltr"] .lang-menu button { text-align: left; }
.lang-menu button:hover {
    background: rgba(6, 182, 212, 0.15);
}

/* Contact / Demo Request Form */
.contact-form-section {
    background: linear-gradient(180deg, transparent 0%, rgba(6, 182, 212, 0.04) 50%, transparent 100%);
}
.demo-request-form {
    max-width: 800px;
    margin: 0 auto;
    padding: 40px !important;
}
.form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px 25px;
}
.form-group-full {
    grid-column: 1 / -1;
}
.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: var(--text-main);
}
.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px 18px;
    background: rgba(15, 23, 42, 0.6);
    border: 1px solid var(--glass-border);
    border-radius: 12px;
    color: var(--text-main);
    font-family: var(--font-main);
    font-size: 1rem;
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--secondary);
}
.form-group textarea {
    resize: vertical;
    min-height: 100px;
}
.form-submit {
    margin-top: 10px;
}
.form-submit button {
    cursor: pointer;
}
@media (max-width: 600px) {
    .form-grid {
        grid-template-columns: 1fr;
    }
}

/* Tech Section - removed, keep for any leftover refs */
.tech-logos {
    display: flex;
    justify-content: center;
    gap: 50px;
    flex-wrap: wrap;
    margin-top: 40px;
}

.tech-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--text-muted);
    transition: var(--transition);
}

.tech-item i {
    font-size: 3rem;
    color: var(--glass-border);
    transition: var(--transition);
}

.tech-item:hover i {
    color: var(--primary);
    transform: scale(1.1);
}

/* Footer */
.footer {
    border-top: 1px solid var(--glass-border);
    background: var(--bg-dark);
    margin-top: 100px;
}

.footer-content {
    padding: 32px 20px 36px;
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr;
    gap: 32px;
    align-items: start;
}

.footer-col-logo {
    display: flex;
    justify-content: center;
    align-items: center;
}

.footer-logo {
    height: 140px;
    width: auto;
    max-width: 300px;
    object-fit: contain;
    display: block;
}

.footer h3 {
    font-size: 1.4rem;
    margin-bottom: 12px;
    color: var(--text-main);
}

.footer p {
    color: var(--text-muted);
    margin-bottom: 12px;
}

.social-links {
    display: flex;
    gap: 12px;
    margin-top: 4px;
}

.social-links a {
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.05);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    color: var(--text-main);
    text-decoration: none;
    transition: var(--transition);
}

.social-links a:hover {
    background: var(--primary);
}

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

.footer-col ul {
    list-style: none;
}

.footer-col ul li {
    margin-bottom: 15px;
}

.footer-col ul li a {
    color: var(--text-muted);
    text-decoration: none;
    transition: var(--transition);
}

.footer-col ul li a:hover {
    color: var(--secondary);
}

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

/* Nav lang dropdown inside nav-actions */
.nav-actions .lang-dropdown .lang-btn {
    padding: 10px 16px;
    height: 44px;
    border-radius: 12px;
}

/* Responsive - نوار منو در عرض کم به همبرگر تبدیل می‌شود */
@media (max-width: 1150px) {
    .nav-menu {
        display: none;
    }

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

    /* دکمه تماس در هدر مخفی؛ دسترسی از منوی همبرگر */
    .nav-actions .nav-cta {
        display: none;
    }

    .nav-menu.active {
        display: flex !important;
        position: fixed;
        top: 72px;
        right: 12px;
        left: 12px;
        flex-direction: column;
        background: var(--glass-bg);
        backdrop-filter: blur(16px);
        -webkit-backdrop-filter: blur(16px);
        padding: 16px;
        border-radius: 16px;
        border: 1px solid var(--glass-border);
        box-shadow: 0 20px 50px rgba(0,0,0,0.35);
        gap: 4px;
        z-index: 99999;
        max-height: calc(100vh - 100px);
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
    }

    .nav-menu.active a {
        padding: 14px 18px;
        border-radius: 10px;
        display: block;
    }

    .nav-menu-contact { display: list-item !important; }
}

.nav-menu-contact {
    display: none;
}

/* هدر موبایل: فشرده‌تر برای نمایش کامل */
@media (max-width: 700px) {
    .navbar {
        padding: 12px 16px;
    }

    .nav-actions {
        gap: 8px;
    }

    .nav-container {
        gap: 12px;
    }

    .nav-logo-img {
        height: 40px;
        max-width: 140px;
    }
}


@media (max-width: 900px) {
    .hero-content {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .hero-text {
        order: 1;
    }

    .hero-visual {
        order: 2;
        margin-top: 30px;
    }

    .stats-row {
        justify-content: center;
    }

    .split-layout {
        grid-template-columns: 1fr;
    }

    .footer-content {
        grid-template-columns: 1fr;
    }

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

    .why-grid {
        gap: 15px;
    }

    .why-card {
        min-width: 140px;
        padding: 20px;
    }

    .nav-links {
        gap: 15px;
    }
}

@media (max-width: 768px) {

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

    .section-header h2 {
        font-size: 1.8rem;
    }

    .hero-btns {
        flex-wrap: wrap;
        justify-content: center;
    }

    .faq-question {
        font-size: 0.95rem;
    }
}

/* ========== LIGHT THEME (Clean Solar Energy) - Matches main app templates/index.html ========== */
html:not(.dark) {
    --bg-dark: #e8eef5;
    --bg-darker: #e0eafc;
    --primary: #d97706;
    --secondary: #0d9488;
    --text-main: #111827;
    --text-muted: #4b5563;
    --glass-bg: rgba(255, 255, 255, 0.75);
    --glass-border: rgba(0, 0, 0, 0.08);
}

html:not(.dark) body {
    background: linear-gradient(135deg, #e0eafc 0%, #cfdef3 50%, #e8eef5 100%);
}

html:not(.dark) .bg-gradient {
    background: radial-gradient(circle at 10% 20%, rgba(13, 148, 136, 0.08) 0%, transparent 40%),
        radial-gradient(circle at 90% 80%, rgba(245, 158, 11, 0.12) 0%, transparent 40%);
}

html:not(.dark) .grid-overlay {
    background-image:
        linear-gradient(rgba(13, 148, 136, 0.06) 1px, transparent 1px),
        linear-gradient(90deg, rgba(13, 148, 136, 0.06) 1px, transparent 1px);
}

html:not(.dark) .navbar.scrolled {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    box-shadow: 0 1px 0 rgba(0,0,0,0.06);
}

html:not(.dark) .nav-logo { color: var(--text-main); }
html:not(.dark) .nav-logo-icon { color: var(--primary); }
html:not(.dark) .nav-menu a { color: var(--text-muted); }
html:not(.dark) .nav-menu a:hover {
    color: var(--text-main);
    background: rgba(0,0,0,0.04);
}
html:not(.dark) .nav-menu a.active {
    color: var(--primary);
    background: rgba(245, 158, 11, 0.15);
}
html:not(.dark) .nav-mobile-toggle {
    color: var(--text-main);
    background: rgba(255,255,255,0.6);
    border-color: rgba(0,0,0,0.1);
}

html:not(.dark) .nav-btn {
    background: rgba(255, 255, 255, 0.6);
    border-color: rgba(0, 0, 0, 0.1);
    color: var(--primary);
}
html:not(.dark) .nav-btn:hover {
    background: rgba(245, 158, 11, 0.2);
    border-color: var(--primary);
}

html:not(.dark) .badge {
    background: rgba(13, 148, 136, 0.15);
    color: var(--secondary);
    border-color: rgba(13, 148, 136, 0.35);
}

html:not(.dark) .btn-secondary {
    color: var(--text-main);
    border-color: rgba(0, 0, 0, 0.15);
}
html:not(.dark) .btn-secondary:hover {
    background: rgba(255, 255, 255, 0.8);
    border-color: var(--secondary);
}

html:not(.dark) .glass-card {
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
}

html:not(.dark) .floating-card {
    background: rgba(255, 255, 255, 0.95);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
    border-color: rgba(0, 0, 0, 0.08);
}

html:not(.dark) .solar-info-card,
html:not(.dark) .feature-card,
html:not(.dark) .use-case-card,
html:not(.dark) .about-card,
html:not(.dark) .why-card,
html:not(.dark) .owner-card,
html:not(.dark) .showcase-card {
    border-color: rgba(0, 0, 0, 0.06);
}

html:not(.dark) .feature-card-img {
    background: linear-gradient(135deg, rgba(13, 148, 136, 0.12), rgba(245, 158, 11, 0.1));
}

html:not(.dark) .feature-guide-close {
    background: rgba(0, 0, 0, 0.05);
    color: var(--text-muted);
}
html:not(.dark) .feature-guide-close:hover {
    background: rgba(245, 158, 11, 0.2);
    color: var(--primary);
}

html:not(.dark) .lang-btn {
    background: rgba(255, 255, 255, 0.6);
    border-color: rgba(0, 0, 0, 0.1);
    color: var(--text-main);
}
html:not(.dark) .lang-menu {
    background: rgba(255, 255, 255, 0.98);
    border-color: rgba(0, 0, 0, 0.1);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.12);
}
html:not(.dark) .lang-menu button {
    color: var(--text-main);
}
html:not(.dark) .lang-menu button:hover {
    background: rgba(13, 148, 136, 0.1);
}

html:not(.dark) .demo-request-form.glass-card {
    background: rgba(255, 255, 255, 0.9);
}

html:not(.dark) .form-group input,
html:not(.dark) .form-group select,
html:not(.dark) .form-group textarea {
    background: rgba(255, 255, 255, 0.9);
    border-color: rgba(0, 0, 0, 0.12);
    color: var(--text-main);
}

html:not(.dark) .footer {
    background: rgba(255, 255, 255, 0.6);
    border-top-color: rgba(0, 0, 0, 0.08);
}

html:not(.dark) .footer-bottom {
    border-top-color: rgba(0, 0, 0, 0.08);
}

html:not(.dark) .social-links a {
    background: rgba(13, 148, 136, 0.1);
    color: var(--secondary);
}
html:not(.dark) .social-links a:hover {
    background: var(--primary);
    color: white;
}

@media (max-width: 1150px) {
    html:not(.dark) .nav-menu.active {
        background: rgba(255, 255, 255, 0.98);
        border-color: rgba(0, 0, 0, 0.08);
        box-shadow: 0 20px 50px rgba(0,0,0,0.12);
    }
}

/* ========== پایگاه دانش / وبلاگ ========== */
.blog-hero {
    padding: 100px 0 50px;
    text-align: center;
}
.blog-hero h1 {
    font-size: 2.5rem;
    margin-bottom: 12px;
}
.blog-hero p {
    color: var(--text-muted);
    font-size: 1.1rem;
}
.blog-main {
    padding-bottom: 80px;
}
.blog-container {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 40px;
    align-items: start;
}
.blog-sidebar {
    position: sticky;
    top: 100px;
}
.sidebar-widget {
    padding: 20px;
    border-radius: 12px;
    margin-bottom: 20px;
}
.sidebar-widget h3 {
    font-size: 1rem;
    margin-bottom: 16px;
    color: var(--text-main);
    display: flex;
    align-items: center;
    gap: 10px;
}
.sidebar-widget h3 i {
    color: var(--secondary);
}
.category-list {
    list-style: none;
}
.category-list li { margin-bottom: 6px; }
.category-list a {
    display: block;
    padding: 10px 14px;
    color: var(--text-muted);
    text-decoration: none;
    border-radius: 8px;
    transition: var(--transition);
}
.category-list a:hover,
.category-list a.active {
    background: rgba(6, 182, 212, 0.15);
    color: var(--secondary);
}
.category-list a i { margin-left: 8px; }
.recent-posts { list-style: none; }
.recent-posts li {
    padding: 10px 0;
    border-bottom: 1px solid var(--glass-border);
}
.recent-posts li:last-child { border-bottom: none; }
.recent-posts a {
    color: var(--text-main);
    text-decoration: none;
    font-size: 0.95rem;
    display: block;
}
.recent-posts a:hover { color: var(--primary); }
.recent-posts .meta {
    font-size: 0.8rem;
    color: var(--text-muted);
    display: block;
    margin-top: 4px;
}
.tag-cloud {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}
.tag-cloud a.tag,
.post-tags .tag {
    display: inline-block;
    padding: 6px 12px;
    background: rgba(6, 182, 212, 0.15);
    color: var(--secondary);
    border-radius: 20px;
    font-size: 0.85rem;
    text-decoration: none;
    transition: var(--transition);
}
.tag-cloud a.tag:hover {
    background: var(--secondary);
    color: white;
}
.post-tags { margin-top: 12px; display: flex; flex-wrap: wrap; gap: 8px; }
.posts-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
}
.posts-header h2 { font-size: 1.5rem; }
.posts-count { color: var(--text-muted); font-size: 0.95rem; }
.posts-grid { display: block; }
.posts-cards {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 24px;
}
.post-card {
    overflow: hidden;
    transition: var(--transition);
}
.post-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.3);
}
.post-card a {
    text-decoration: none;
    color: inherit;
    display: block;
}
.post-card-img {
    height: 180px;
    overflow: hidden;
    background: rgba(0,0,0,0.2);
}
.post-card-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.post-card-body { padding: 20px; }
.post-card-cat {
    display: inline-block;
    font-size: 0.8rem;
    color: var(--secondary);
    margin-bottom: 10px;
}
.post-card-cat i { margin-left: 6px; }
.post-card h3 {
    font-size: 1.15rem;
    margin-bottom: 10px;
    line-height: 1.4;
}
.post-card p {
    font-size: 0.9rem;
    color: var(--text-muted);
    line-height: 1.6;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.post-card-meta {
    display: flex;
    gap: 16px;
    margin-top: 12px;
    font-size: 0.85rem;
    color: var(--text-muted);
}
.posts-empty {
    text-align: center;
    padding: 60px 20px;
    color: var(--text-muted);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
}
.posts-empty i { font-size: 3rem; opacity: 0.5; }
.back-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--secondary);
    text-decoration: none;
    margin-bottom: 24px;
    font-size: 0.95rem;
}
.back-link:hover { color: var(--primary); }
.single-post .post-header { margin-bottom: 24px; }
.single-post .post-category-badge {
    display: inline-block;
    padding: 6px 14px;
    background: rgba(6, 182, 212, 0.2);
    color: var(--secondary);
    border-radius: 20px;
    font-size: 0.9rem;
    margin-bottom: 16px;
}
.single-post .post-category-badge i { margin-left: 6px; }
.single-post h1 {
    font-size: 2rem;
    margin-bottom: 16px;
    line-height: 1.4;
}
.post-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 24px;
    color: var(--text-muted);
    font-size: 0.95rem;
}
.post-meta span { display: flex; align-items: center; gap: 8px; }
.post-meta i { color: var(--secondary); }
.post-thumbnail {
    margin-bottom: 28px;
    border-radius: 12px;
    overflow: hidden;
}
.post-thumbnail img {
    width: 100%;
    max-height: 400px;
    object-fit: cover;
}
.post-body {
    font-size: 1.05rem;
    line-height: 1.8;
}
.post-body h3 {
    font-size: 1.3rem;
    margin: 28px 0 12px;
    color: var(--text-main);
}
.post-body p { margin-bottom: 16px; color: var(--text-muted); }
.post-body ul {
    margin: 16px 0;
    padding-right: 24px;
}
.post-body li {
    margin-bottom: 8px;
    color: var(--text-muted);
}
.post-body li strong { color: var(--text-main); }
.post-body .post-figure {
    margin: 24px 0;
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid var(--glass-border);
}
.post-body .post-figure img {
    width: 100%;
    display: block;
}
.post-body .post-figure figcaption {
    padding: 12px 16px;
    font-size: 0.9rem;
    color: var(--text-muted);
    text-align: center;
}
.post-body a {
    color: var(--secondary);
    text-decoration: underline;
}
.post-body a:hover { color: var(--primary); }

@media (max-width: 900px) {
    .blog-container { grid-template-columns: 1fr; }
    .blog-sidebar { position: static; }
    .blog-sidebar {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 16px;
    }
}
@media (max-width: 600px) {
    .blog-sidebar { grid-template-columns: 1fr; }
    .posts-cards { grid-template-columns: 1fr; }
    .blog-hero h1 { font-size: 1.8rem; }
}