/* Behlight - Main Stylesheet */

/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #2563eb;
    --secondary-color: #1e40af;
    --accent-color: #f59e0b;
    --text-color: #1f2937;
    --text-light: #6b7280;
    --bg-color: #ffffff;
    --bg-light: #f9fafb;
    --border-color: #e5e7eb;
    --success-color: #10b981;
    --error-color: #ef4444;
    --warning-color: #f59e0b;
    --shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px 0 rgba(0, 0, 0, 0.06);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --transition: all 0.3s ease;
    --nav-h: 4.5rem;
    --font-sans: 'IRANSans', Tahoma, Arial, sans-serif;
}

@font-face {
    font-family: 'IRANSans';
    src: url('../fonts/IRANSansMobile_UltraLight.ttf') format('truetype');
    font-weight: 200;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'IRANSans';
    src: url('../fonts/IRANSansMobile_Light.ttf') format('truetype');
    font-weight: 300;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'IRANSans';
    src: url('../fonts/IRANSansMobile.ttf') format('truetype'),
         url('../fonts/iransans.ttf') format('truetype');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'IRANSans';
    src: url('../fonts/IRANSansMobile_Medium.ttf') format('truetype');
    font-weight: 500;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'IRANSans';
    src: url('../fonts/IRANSans-Medium-web.ttf') format('truetype');
    font-weight: 600;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'IRANSans';
    src: url('../fonts/IRANSansMobile_Bold.ttf') format('truetype');
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}

html {
    font-size: 16px;
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-sans);
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--bg-color);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

button,
input,
select,
textarea,
.btn {
    font-family: inherit;
}

/* RTL Support */
html[dir="rtl"] {
    direction: rtl;
}

html[dir="rtl"] body {
    font-family: var(--font-sans);
    text-align: right;
}

html[dir="rtl"] .container,
html[dir="rtl"] .nav-wrapper,
html[dir="rtl"] .footer-content {
    direction: rtl;
}

html[dir="rtl"] .nav-menu {
    flex-direction: row-reverse;
}

html[dir="rtl"] .dropdown-menu {
    right: auto;
    left: 0;
}

html[dir="rtl"] .breadcrumb {
    direction: rtl;
}

html[dir="rtl"] .breadcrumb a::after {
    content: ' / ';
    margin: 0 0.25rem;
}

html[dir="rtl"] .breadcrumb a:last-child::after {
    content: '';
}

a {
    color: var(--primary-color);
    text-decoration: none;
    transition: var(--transition);
}

a:hover, a:focus {
    color: var(--secondary-color);
    text-decoration: underline;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* Container */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}

/* Sidebar Layout */
.content-layout {
    display: flex;
    gap: 2rem;
    max-width: 1400px;
    margin: 0 auto;
    padding: 2rem 1rem;
    align-items: flex-start;
}

.main-content {
    flex: 1;
    min-width: 0; /* Allows flex item to shrink below content size */
}

.sidebar {
    width: 280px;
    flex-shrink: 0;
    background: var(--bg-light);
    border-radius: 8px;
    padding: 1.5rem;
    box-shadow: var(--shadow);
    position: sticky;
    top: 2rem;
    max-height: calc(100vh - 4rem);
    overflow-y: auto;
}

.sidebar-left {
    order: 1;
}

.main-content {
    order: 2;
}

.sidebar-right {
    order: 3;
}

.sidebar-content {
    width: 100%;
}

.sidebar-title {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--text-color);
    margin: 0 0 1rem 0;
    padding-bottom: 0.75rem;
    border-bottom: 2px solid var(--border-color);
}

.sidebar-body {
    font-size: 0.9375rem;
    line-height: 1.7;
    color: var(--text-color);
}

.sidebar-body p {
    margin: 0 0 1rem 0;
}

.sidebar-body p:last-child {
    margin-bottom: 0;
}

.sidebar-body ul,
.sidebar-body ol {
    margin: 0 0 1rem 1.5rem;
    padding: 0;
}

.sidebar-body li {
    margin: 0.5rem 0;
}

.sidebar-body a {
    color: var(--primary-color);
    text-decoration: none;
    transition: var(--transition);
}

.sidebar-body a:hover {
    color: var(--secondary-color);
    text-decoration: underline;
}

.sidebar-body img {
    max-width: 100%;
    height: auto;
    border-radius: 4px;
    margin: 1rem 0;
}

.sidebar-body h1,
.sidebar-body h2,
.sidebar-body h3,
.sidebar-body h4,
.sidebar-body h5,
.sidebar-body h6 {
    margin: 1.5rem 0 0.75rem 0;
    font-weight: 600;
    color: var(--text-color);
}

.sidebar-body h1:first-child,
.sidebar-body h2:first-child,
.sidebar-body h3:first-child,
.sidebar-body h4:first-child,
.sidebar-body h5:first-child,
.sidebar-body h6:first-child {
    margin-top: 0;
}

/* Responsive Sidebar Layout */
@media (max-width: 1024px) {
    .content-layout {
        flex-direction: column;
        gap: 1.5rem;
    }
    
    .sidebar {
        width: 100%;
        position: static;
        max-height: none;
        order: 3;
    }
    
    .sidebar-left {
        order: 1;
    }
    
    .main-content {
        order: 2;
    }
    
    .sidebar-right {
        order: 3;
    }
}

@media (max-width: 768px) {
    .content-layout {
        padding: 1rem 0.75rem;
    }
    
    .sidebar {
        padding: 1rem;
    }
}

/* Navigation */
.navbar {
    background-color: rgba(255, 255, 255, 0.96);
    box-shadow: var(--shadow);
    position: sticky;
    top: 0;
    z-index: 1000;
    border-bottom: 1px solid transparent;
    transition: background-color 0.35s ease, border-color 0.35s ease, box-shadow 0.35s ease;
}

.nav-wrapper {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 0;
    gap: 1.75rem;
}

.logo {
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--primary-color);
    flex-shrink: 0;
    margin-inline-end: 0.5rem;
}

.logo-mark {
    width: 1.35rem;
    height: 1.35rem;
    flex-shrink: 0;
    border-radius: 50%;
    background: radial-gradient(circle at 35% 30%, #fff 0%, var(--accent-color) 42%, var(--primary-color) 100%);
    box-shadow: 0 0 0 3px rgba(245, 158, 11, 0.22);
}

.logo:hover {
    text-decoration: none;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 1.5rem;
    align-items: center;
}

.nav-menu li {
    position: relative;
}

.nav-menu a {
    color: var(--text-color);
    font-weight: 500;
    padding: 0.5rem 0;
}

.nav-menu a:hover {
    color: var(--primary-color);
    text-decoration: none;
}

.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    gap: 4px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
}

.mobile-menu-toggle span {
    width: 25px;
    height: 3px;
    background-color: var(--text-color);
    transition: var(--transition);
}

/* Dropdown Menu */
.dropdown {
    position: relative;
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    background-color: var(--bg-color);
    box-shadow: var(--shadow-lg);
    border-radius: 0.5rem;
    padding: 0.5rem 0;
    min-width: 200px;
    list-style: none;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: var(--transition);
    z-index: 100;
}

.dropdown:hover .dropdown-menu,
.dropdown:focus-within .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-menu li {
    padding: 0;
}

.dropdown-menu a {
    display: block;
    padding: 0.75rem 1rem;
    color: var(--text-color);
}

.dropdown-menu a:hover {
    background-color: var(--bg-light);
    text-decoration: none;
}

/* Search Form */
.search-form {
    display: flex;
    gap: 0.5rem;
}

.search-input {
    padding: 0.5rem;
    border: 1px solid var(--border-color);
    border-radius: 0.25rem;
    font-size: 0.875rem;
}

.search-button {
    background: var(--primary-color);
    color: white;
    border: none;
    padding: 0.5rem 1rem;
    border-radius: 0.25rem;
    cursor: pointer;
}

/* Flash Messages */
.flash-messages {
    position: fixed;
    top: 80px;
    left: 0;
    right: 0;
    z-index: 999;
}

.flash-message {
    padding: 1rem;
    margin-bottom: 0.5rem;
    border-radius: 0.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: var(--shadow-md);
}

.flash-success {
    background-color: #d1fae5;
    color: #065f46;
    border-left: 4px solid var(--success-color);
}

.flash-error {
    background-color: #fee2e2;
    color: #991b1b;
    border-left: 4px solid var(--error-color);
}

.flash-info {
    background-color: #dbeafe;
    color: #1e40af;
    border-left: 4px solid var(--primary-color);
}

.flash-close {
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: inherit;
    opacity: 0.7;
}

.flash-close:hover {
    opacity: 1;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    border-radius: 0.5rem;
    font-weight: 500;
    text-align: center;
    cursor: pointer;
    transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease, transform 0.3s ease;
    border: none;
    text-decoration: none;
}

.btn-primary {
    background-color: var(--primary-color);
    color: white;
}

.btn-primary:hover {
    background-color: var(--secondary-color);
    color: white;
    text-decoration: none;
}

.btn-secondary {
    background-color: var(--text-light);
    color: white;
}

.btn-secondary:hover {
    background-color: var(--text-color);
    color: white;
    text-decoration: none;
}

.btn-outline {
    background-color: transparent;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
}

.btn-outline:hover {
    background-color: var(--primary-color);
    color: white;
    text-decoration: none;
}

/* Hero Section */
.hero {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    color: white;
    padding: 4rem 0;
    text-align: center;
    position: relative;
    overflow: hidden;
    min-height: 500px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-content {
    max-width: 800px;
    margin: 0 auto;
}

.hero-title {
    font-size: 3rem;
    margin-bottom: 1rem;
    font-weight: bold;
}

.hero-subtitle {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    opacity: 0.9;
}

.hero-description {
    font-size: 1.125rem;
    margin-bottom: 2rem;
    opacity: 0.8;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

/* Page Header */
.page-header {
    background-color: var(--bg-light);
    padding: 2rem 0;
    border-bottom: 1px solid var(--border-color);
}

.page-header h1 {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
}

.breadcrumb {
    color: var(--text-light);
    font-size: 0.875rem;
}

.breadcrumb a {
    color: var(--text-light);
}

.breadcrumb a:hover {
    color: var(--primary-color);
}

/* Sections */
.section {
    padding: 3rem 0;
}

.section-title {
    font-size: 2rem;
    margin-bottom: 2rem;
    text-align: center;
}

.section-footer {
    text-align: center;
    margin-top: 2rem;
}

/* Product Grid */
.product-grid,
.project-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.product-card,
.project-card {
    position: relative;
    background-color: var(--bg-color);
    border-radius: 0.5rem;
    overflow: visible;
    box-shadow: var(--shadow);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.product-card:hover,
.project-card:hover {
    box-shadow: var(--shadow-lg), 0 16px 40px rgba(37, 99, 235, 0.16);
    transform: translateY(-5px);
}

.product-image,
.project-image {
    width: 100%;
    height: 200px;
    overflow: hidden;
    background-color: var(--bg-light);
}

.product-image img,
.project-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
    display: block;
}

/* Responsive Images */
img {
    max-width: 100%;
    height: auto;
    display: block;
}

.product-card:hover .product-image img,
.project-card:hover .project-image img {
    transform: scale(1.05);
}

.product-info,
.project-info {
    padding: 1.5rem;
}

.product-name,
.project-name {
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
}

.product-name a,
.project-name a {
    color: var(--text-color);
}

.product-name a:hover,
.project-name a:hover {
    color: var(--primary-color);
    text-decoration: none;
}

.product-category,
.project-category {
    color: var(--text-light);
    font-size: 0.875rem;
    margin-bottom: 0.5rem;
}

.product-price {
    font-size: 1.25rem;
    font-weight: bold;
    color: var(--primary-color);
    margin-top: 0.5rem;
}

.project-summary {
    color: var(--text-light);
    margin-top: 0.5rem;
}

/* Forms */
.form-group {
    margin-bottom: 1.5rem;
}

.form-label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: var(--text-color);
}

.form-control {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid var(--border-color);
    border-radius: 0.5rem;
    font-size: 1rem;
    transition: var(--transition);
}

.form-control:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.form-errors {
    margin-top: 0.5rem;
}

.error {
    color: var(--error-color);
    font-size: 0.875rem;
}

/* Pagination */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1rem;
    margin-top: 3rem;
    flex-wrap: wrap;
}

.pagination-numbers {
    display: flex;
    gap: 0.5rem;
    align-items: center;
}

.pagination-link {
    padding: 0.625rem 1rem;
    background: white;
    border: 1px solid var(--border-color);
    border-radius: 0.375rem;
    color: var(--text-color);
    text-decoration: none;
    transition: var(--transition);
    font-weight: 500;
}

.pagination-link:hover {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
    transform: translateY(-2px);
    box-shadow: var(--shadow);
}

.pagination-current {
    padding: 0.625rem 1rem;
    background: var(--primary-color);
    color: white;
    border: 1px solid var(--primary-color);
    border-radius: 0.375rem;
    font-weight: 600;
}

.pagination-ellipsis {
    padding: 0.625rem 0.5rem;
    color: var(--text-light);
}

.pagination-prev,
.pagination-next {
    font-weight: 600;
}

.pagination-link:hover {
    background-color: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
    text-decoration: none;
}

.pagination-current {
    padding: 0.5rem 1rem;
    background-color: var(--primary-color);
    color: white;
    border-radius: 0.25rem;
}

.pagination-ellipsis {
    padding: 0.5rem;
}

/* Footer */
.footer {
    background-color: var(--text-color);
    color: white;
    padding: 3rem 0 1rem;
    margin-top: 4rem;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-section h3,
.footer-section h4 {
    margin-bottom: 1rem;
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 0.5rem;
}

.footer-section a {
    color: rgba(255, 255, 255, 0.8);
}

.footer-section a:hover {
    color: white;
    text-decoration: none;
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.6);
}

/* Contact Page */
.contact-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
}

.contact-details {
    margin-top: 2rem;
}

.contact-item {
    margin-bottom: 2rem;
}

.contact-item h3 {
    margin-bottom: 0.5rem;
}

/* Products/Projects Layout */
.products-layout,
.projects-layout {
    display: grid;
    grid-template-columns: 250px 1fr;
    gap: 2rem;
}

.products-sidebar,
.projects-sidebar {
    background-color: var(--bg-light);
    padding: 1.5rem;
    border-radius: 0.5rem;
    height: fit-content;
    position: sticky;
    top: 100px;
}

.category-list {
    list-style: none;
}

.category-list li {
    margin-bottom: 0.5rem;
}

.category-list a {
    display: block;
    padding: 0.5rem;
    color: var(--text-color);
    border-radius: 0.25rem;
}

.category-list a:hover,
.category-list a.active {
    background-color: var(--primary-color);
    color: white;
    text-decoration: none;
}

/* Detail Pages */
.product-detail-layout,
.project-detail-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    margin-bottom: 3rem;
}

.product-header,
.project-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid var(--border-color);
}

.product-meta,
.project-meta {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.product-category-badge,
.project-category-badge {
    display: inline-block;
    padding: 0.375rem 0.875rem;
    background: var(--primary-color);
    color: white;
    border-radius: 1rem;
    font-size: 0.875rem;
    font-weight: 500;
}

.featured-badge {
    display: inline-block;
    padding: 0.375rem 0.875rem;
    background: var(--accent-color);
    color: white;
    border-radius: 1rem;
    font-size: 0.875rem;
    font-weight: 500;
}

.product-price-large {
    font-size: 2rem;
    font-weight: 700;
    color: var(--primary-color);
    line-height: 1;
}

.product-description,
.project-description {
    margin: 2rem 0;
}

.product-description h2,
.project-description h2 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--text-color);
}

.description-content {
    line-height: 1.8;
    color: var(--text-color);
}

.product-actions,
.project-actions {
    display: flex;
    gap: 1rem;
    margin-top: 2rem;
    flex-wrap: wrap;
}

.btn-large {
    padding: 1rem 2rem;
    font-size: 1.125rem;
}

/* Content Sections */
.content-section {
    margin-top: 4rem;
    padding-top: 3rem;
    border-top: 2px solid var(--border-color);
}

.section-title {
    font-size: 2rem;
    margin-bottom: 2rem;
    color: var(--text-color);
    font-weight: 600;
}

.related-section {
    margin-top: 4rem;
    padding-top: 3rem;
    border-top: 2px solid var(--border-color);
}

.content-navigation {
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid var(--border-color);
}

/* Video Gallery */
.video-gallery-section {
    margin-top: 4rem;
    padding-top: 3rem;
    border-top: 2px solid var(--border-color);
}

.video-gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.video-item {
    background: white;
    border-radius: 0.5rem;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.video-item:hover {
    box-shadow: var(--shadow-lg);
    transform: translateY(-4px);
}

.video-player {
    width: 100%;
    min-height: 200px;
    height: auto;
    display: block;
    background: #000;
    border-radius: 0.5rem 0.5rem 0 0;
}

.video-title {
    padding: 1rem;
    text-align: center;
    font-weight: 500;
    color: var(--text-color);
    background: var(--bg-light);
    border-top: 1px solid var(--border-color);
    font-size: 0.875rem;
}

/* Image Placeholders */
.product-image-placeholder,
.project-image-placeholder {
    width: 100%;
    background: var(--bg-light);
    border-radius: 0.5rem;
    overflow: hidden;
    box-shadow: var(--shadow-md);
}

.product-image-placeholder img,
.project-image-placeholder img {
    width: 100%;
    height: auto;
    display: block;
}

.product-detail-image img,
.project-detail-gallery img {
    width: 100%;
    border-radius: 0.5rem;
    box-shadow: var(--shadow-md);
}

.project-detail-gallery {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
}

/* Image Slider with Magnifier */
.image-slider-container {
    position: relative;
    width: 100%;
}

.main-image-wrapper {
    position: relative;
    width: 100%;
    margin-bottom: 1rem;
    border-radius: 0.5rem;
    overflow: hidden;
    background: var(--bg-light);
}

.main-image-container {
    position: relative;
    width: 100%;
    cursor: crosshair;
    user-select: none;
    direction: ltr;
}

.main-image {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 0.5rem;
    box-shadow: var(--shadow-md);
}

/* Zoom Lens — LTR origin so RTL pages do not mirror cursor mapping */
.zoom-lens {
    position: absolute;
    border: 2px solid var(--primary-color);
    width: 150px;
    height: 150px;
    background: rgba(102, 126, 234, 0.1);
    pointer-events: none;
    display: none;
    z-index: 10;
    border-radius: 50%;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.3);
    direction: ltr;
    inset-inline-start: auto;
    left: 0;
    top: 0;
}

/* Zoom Result */
.zoom-result {
    position: fixed;
    width: 400px;
    height: 400px;
    border: 2px solid var(--primary-color);
    border-radius: 0.5rem;
    overflow: hidden;
    display: none;
    z-index: 1000;
    background: white;
    box-shadow: var(--shadow-lg);
    pointer-events: none;
    direction: ltr;
}

.phone-ltr {
    direction: ltr;
    unicode-bidi: isolate;
    display: inline-block;
}

/* Thumbnail Slider */
.thumbnail-slider {
    position: relative;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-top: 1rem;
}

.thumbnail-container {
    display: flex;
    gap: 0.5rem;
    overflow: visible;
    flex: 1;
    transition: transform 0.3s ease;
    min-height: 100px;
}

.thumbnail-item {
    flex: 0 0 auto;
    width: 100px;
    height: 100px;
    border: 2px solid transparent;
    border-radius: 0.5rem;
    overflow: hidden;
    cursor: pointer;
    transition: all 0.3s ease;
    background: var(--bg-light);
}

.thumbnail-item:hover {
    border-color: var(--primary-color);
    transform: scale(1.05);
}

.thumbnail-item.active {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 2px rgba(102, 126, 234, 0.3);
}

.thumbnail-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.slider-nav {
    background: var(--primary-color);
    color: white;
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    flex-shrink: 0;
}

.slider-nav:hover {
    background: var(--primary-dark);
    transform: scale(1.1);
}

.slider-nav:active {
    transform: scale(0.95);
}

.slider-nav:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.slider-nav.prev {
    order: -1;
}

.slider-nav.next {
    order: 1;
}

/* Responsive adjustments for slider */
@media (max-width: 768px) {
    .zoom-result {
        width: 300px;
        height: 300px;
    }
    
    .zoom-lens {
        width: 100px;
        height: 100px;
    }
    
    .thumbnail-item {
        width: 80px;
        height: 80px;
    }
    
    .slider-nav {
        width: 35px;
        height: 35px;
        font-size: 1.25rem;
    }
    
    .thumbnail-container {
        max-width: calc(100vw - 100px);
    }
}

/* Video Gallery */
.project-video-gallery {
    margin-top: 4rem;
    padding-top: 3rem;
    border-top: 2px solid var(--border-color);
}

.project-video-gallery h2 {
    font-size: 2rem;
    margin-bottom: 2rem;
    color: var(--text-color);
}

.video-gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.video-item {
    background: var(--bg-color);
    border-radius: 0.5rem;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.video-item:hover {
    box-shadow: var(--shadow-lg);
    transform: translateY(-5px);
}

.video-player {
    width: 100%;
    height: auto;
    display: block;
    background: #000;
    border-radius: 0.5rem 0.5rem 0 0;
}

.video-title {
    padding: 1rem;
    text-align: center;
    font-weight: 500;
    color: var(--text-color);
    background: var(--bg-light);
    border-top: 1px solid var(--border-color);
}

/* Responsive video gallery */
@media (max-width: 768px) {
    .video-gallery-grid {
        grid-template-columns: 1fr;
    }
    
    .project-video-gallery h2 {
        font-size: 1.5rem;
    }
}

.gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: 0.5rem;
}

.gallery-item img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    transition: var(--transition);
}

.gallery-item:hover img {
    transform: scale(1.1);
}

.gallery-link {
    display: block;
    position: relative;
    width: 100%;
    height: 100%;
    overflow: hidden;
    border-radius: 0.5rem;
}

.gallery-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.85), rgba(0,0,0,0.4), transparent);
    color: white;
    padding: 1.5rem;
    transform: translateY(100%);
    transition: var(--transition);
    z-index: 3;
}

.gallery-item-title {
    font-size: 1.125rem;
    font-weight: 600;
    margin: 0 0 0.5rem 0;
    color: white;
}

.gallery-item-description {
    font-size: 0.875rem;
    margin: 0;
    color: rgba(255, 255, 255, 0.9);
    line-height: 1.5;
}

.gallery-item:hover .gallery-overlay {
    transform: translateY(0);
}

/* Gallery Page */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1.5rem;
}

.gallery-filters {
    margin-bottom: 3rem;
    padding-bottom: 2rem;
    border-bottom: 2px solid var(--border-color);
}

.filter-title {
    font-size: 1.25rem;
    margin-bottom: 1rem;
    color: var(--text-color);
    font-weight: 600;
}

.filter-list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    list-style: none;
    margin: 0;
    padding: 0;
}

.filter-btn {
    display: inline-block;
    padding: 0.625rem 1.25rem;
    background: var(--bg-light);
    color: var(--text-color);
    border: 2px solid var(--border-color);
    border-radius: 2rem;
    text-decoration: none;
    font-weight: 500;
    transition: var(--transition);
}

.filter-btn:hover {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
    transform: translateY(-2px);
    box-shadow: var(--shadow);
}

.filter-btn.active {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}

.filter-list a {
    padding: 0.5rem 1rem;
    border: 1px solid var(--border-color);
    border-radius: 0.25rem;
    color: var(--text-color);
}

.filter-list a:hover,
.filter-list a.active {
    background-color: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
    text-decoration: none;
}

/* News/Articles */
.news-list,
.articles-list {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.news-card,
.article-card {
    position: relative;
    display: grid;
    grid-template-columns: 300px 1fr;
    gap: 2rem;
    padding: 1.5rem;
    background-color: var(--bg-color);
    border-radius: 0.5rem;
    box-shadow: var(--shadow);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.news-image,
.article-image {
    width: 100%;
    height: 200px;
    overflow: hidden;
    border-radius: 0.5rem;
}

.news-image img,
.article-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.news-date,
.article-date {
    color: var(--text-light);
    font-size: 0.875rem;
    margin-bottom: 0.5rem;
}

.news-title,
.article-title {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

.news-title a,
.article-title a {
    color: var(--text-color);
}

.news-title a:hover,
.article-title a:hover {
    color: var(--primary-color);
    text-decoration: none;
}

.news-excerpt,
.article-excerpt {
    color: var(--text-light);
    margin-bottom: 1rem;
}

.read-more {
    color: var(--primary-color);
    font-weight: 500;
}

.read-more:hover {
    text-decoration: none;
}

/* Detail Pages */
.news-detail,
.article-detail {
    max-width: 800px;
    margin: 0 auto;
}

.news-header,
.article-header {
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--border-color);
}

.news-meta,
.article-meta {
    margin-bottom: 1rem;
}

.news-date,
.article-date {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-light);
    font-size: 0.9375rem;
}

.news-date svg,
.article-date svg {
    width: 16px;
    height: 16px;
}

.news-image,
.article-image {
    margin: 2rem 0;
    border-radius: 0.5rem;
    overflow: hidden;
    box-shadow: var(--shadow-md);
}

.news-image img,
.article-image img {
    width: 100%;
    height: auto;
    display: block;
}

.news-content,
.article-content {
    margin-top: 2rem;
}

.news-excerpt,
.article-excerpt {
    font-size: 1.125rem;
    line-height: 1.7;
    color: var(--text-light);
    font-style: italic;
    margin-bottom: 2rem;
    padding: 1rem;
    background: var(--bg-light);
    border-left: 4px solid var(--primary-color);
    border-radius: 0.25rem;
}

.news-body,
.article-body {
    line-height: 1.8;
    color: var(--text-color);
    font-size: 1.0625rem;
}

.news-body p,
.article-body p {
    margin-bottom: 1.5rem;
}

.summary-text {
    font-size: 1.125rem;
    line-height: 1.7;
    color: var(--text-color);
    margin: 0;
}

.news-meta,
.article-meta {
    margin-bottom: 1rem;
}

.news-date,
.article-date {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-light);
    font-size: 0.9375rem;
}

.news-date svg,
.article-date svg {
    width: 16px;
    height: 16px;
}

.news-image,
.article-image {
    margin: 2rem 0;
    border-radius: 0.5rem;
    overflow: hidden;
    box-shadow: var(--shadow-md);
}

.news-image img,
.article-image img {
    width: 100%;
    height: auto;
    display: block;
}

.news-content,
.article-content {
    margin-top: 2rem;
}

.news-excerpt,
.article-excerpt {
    font-size: 1.125rem;
    line-height: 1.7;
    color: var(--text-light);
    font-style: italic;
    margin-bottom: 2rem;
    padding: 1rem;
    background: var(--bg-light);
    border-left: 4px solid var(--primary-color);
    border-radius: 0.25rem;
}

.news-body,
.article-body {
    line-height: 1.8;
    color: var(--text-color);
    font-size: 1.0625rem;
}

.news-body p,
.article-body p {
    margin-bottom: 1.5rem;
}

.summary-text {
    font-size: 1.125rem;
    line-height: 1.7;
    color: var(--text-color);
    margin: 0;
}

.news-content,
.article-content {
    margin-top: 2rem;
}

.news-body,
.article-body {
    line-height: 1.8;
    font-size: 1.125rem;
}

.related-news,
.related-articles {
    margin-top: 3rem;
}

.news-grid,
.articles-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

/* News cards in grid layout (home page) - vertical card style */
.news-grid .news-card,
.articles-grid .article-card {
    display: flex;
    flex-direction: column;
    grid-template-columns: none;
    padding: 0;
    overflow: visible;
}

.news-grid .news-image,
.articles-grid .article-image {
    width: 100%;
    height: 200px;
    overflow: hidden;
    border-radius: 0.5rem 0.5rem 0 0;
}

.news-grid .news-image img,
.articles-grid .article-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.news-grid .news-card:hover .news-image img,
.articles-grid .article-card:hover .article-image img {
    transform: scale(1.05);
}

.news-grid .news-info,
.articles-grid .article-info {
    padding: 1.5rem;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.news-grid .news-title,
.articles-grid .article-title {
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
}

.news-grid .news-card:hover,
.articles-grid .article-card:hover {
    box-shadow: var(--shadow-lg), 0 16px 40px rgba(37, 99, 235, 0.16);
    transform: translateY(-5px);
}

/* Search Page */
.search-form-large {
    display: flex;
    gap: 1rem;
    margin-bottom: 2rem;
}

.search-input-large {
    flex: 1;
    padding: 1rem;
    border: 2px solid var(--border-color);
    border-radius: 0.5rem;
    font-size: 1rem;
}

.search-results {
    margin-top: 2rem;
}

.search-section {
    margin-bottom: 3rem;
}

.search-section h3 {
    margin-bottom: 1rem;
}

/* Empty State */
.empty-state {
    text-align: center;
    padding: 4rem 2rem;
    color: var(--text-light);
}

.empty-state svg {
    margin: 0 auto 1.5rem;
    color: var(--text-light);
    opacity: 0.5;
}

.empty-state h2 {
    font-size: 1.5rem;
    margin: 0 0 0.5rem 0;
    color: var(--text-color);
}

.empty-state p {
    margin: 0;
    font-size: 1rem;
    color: var(--text-light);
}

/* Expertise Grid */
.expertise-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin: 2rem 0;
}

.expertise-item {
    background-color: var(--bg-light);
    padding: 1.5rem;
    border-radius: 0.5rem;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.expertise-item:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-5px);
}

.expertise-image {
    width: 100%;
    height: 200px;
    overflow: hidden;
    border-radius: 0.5rem;
    margin-bottom: 1rem;
    background-color: var(--bg-light);
}

.expertise-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.expertise-item:hover .expertise-image img {
    transform: scale(1.05);
}

.expertise-item h3 {
    font-size: 1.25rem;
    margin-bottom: 0.75rem;
    color: var(--primary-color);
}

.expertise-item p {
    color: var(--text-light);
    line-height: 1.6;
}

/* Hero Background Image */
.hero {
    position: relative;
    overflow: hidden;
    min-height: 500px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    z-index: 0;
}

.hero-content {
    position: relative;
    z-index: 1;
}

/* Gallery Item Responsive */
.gallery-item {
    aspect-ratio: 4 / 3;
    overflow: hidden;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Login Page */
.login-wrapper {
    max-width: 500px;
    margin: 0 auto;
}

.login-form-wrapper {
    background-color: var(--bg-light);
    padding: 2rem;
    border-radius: 0.5rem;
    box-shadow: var(--shadow-md);
}

/* CTA Section */
.cta-section {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    color: white;
    text-align: center;
}

.cta-content h2 {
    font-size: 2rem;
    margin-bottom: 1rem;
}

.cta-content p {
    font-size: 1.25rem;
    margin-bottom: 2rem;
    opacity: 0.9;
}

/* Language Switcher */
.language-switcher {
    position: relative;
}

.language-dropdown {
    position: relative;
}

.language-toggle {
    background: none;
    border: 1px solid var(--border-color);
    padding: 0.5rem 1rem;
    border-radius: 0.25rem;
    cursor: pointer;
    color: var(--text-color);
    font-size: 0.875rem;
    white-space: nowrap;
    transition: var(--transition);
}

.language-toggle:hover {
    background-color: var(--bg-light);
    border-color: var(--primary-color);
}

.language-menu {
    position: absolute;
    top: 100%;
    right: 0;
    background-color: var(--bg-color);
    box-shadow: var(--shadow-lg);
    border-radius: 0.5rem;
    padding: 0.5rem 0;
    min-width: 120px;
    list-style: none;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: var(--transition);
    z-index: 100;
    margin-top: 0.5rem;
}

html[dir="rtl"] .language-menu {
    right: auto;
    left: 0;
}

.language-dropdown:hover .language-menu,
.language-dropdown:focus-within .language-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.language-menu li {
    padding: 0;
}

.language-menu a {
    display: block;
    padding: 0.75rem 1rem;
    color: var(--text-color);
    text-decoration: none;
}

.language-menu a:hover,
.language-menu a.active {
    background-color: var(--bg-light);
    color: var(--primary-color);
    text-decoration: none;
}

/* Responsive Design */
@media (max-width: 768px) {
    .mobile-menu-toggle {
        display: flex;
    }
    
    .nav-menu {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background-color: var(--bg-color);
        flex-direction: column;
        padding: 1rem;
        box-shadow: var(--shadow-lg);
        display: none;
    }
    
    .nav-menu.active {
        display: flex;
    }
    
    .hero-title {
        font-size: 2rem;
    }
    
    .hero-subtitle {
        font-size: 1.25rem;
    }
    
    .contact-wrapper {
        grid-template-columns: 1fr;
    }
    
    .products-layout,
    .projects-layout {
        grid-template-columns: 1fr;
    }
    
    .products-sidebar,
    .projects-sidebar {
        position: static;
    }
    
    .product-detail-layout,
    .project-detail-layout {
        grid-template-columns: 1fr;
    }
    
    .news-card,
    .article-card {
        grid-template-columns: 1fr;
    }
    
    .product-grid,
    .project-grid {
        grid-template-columns: 1fr;
    }
    
    .expertise-grid {
        grid-template-columns: 1fr;
    }
    
    .gallery-grid {
        grid-template-columns: 1fr;
    }
    
    .project-detail-gallery {
        grid-template-columns: 1fr;
    }
    
    .hero {
        min-height: 400px;
        padding: 2rem 0;
    }
    
    .hero-title {
        font-size: 1.75rem;
    }
    
    .hero-subtitle {
        font-size: 1.125rem;
    }
    
    .hero-description {
        font-size: 1rem;
    }
}

/* Accessibility */
:focus-visible {
    outline: 2px solid var(--primary-color);
    outline-offset: 2px;
}

/* Visual effects — CSS-first, compositor-friendly */
@property --fx-angle {
    syntax: "<angle>";
    inherits: false;
    initial-value: 0deg;
}

.nav-scroll-sentinel {
    height: 1px;
    width: 1px;
    pointer-events: none;
    overflow: hidden;
}

.navbar.is-scrolled {
    background-color: rgba(255, 255, 255, 0.72);
    border-bottom-color: rgba(229, 231, 235, 0.85);
    box-shadow: 0 8px 24px -16px rgba(15, 23, 42, 0.28);
}

@supports ((backdrop-filter: blur(16px)) or (-webkit-backdrop-filter: blur(16px))) {
    .navbar.is-scrolled {
        background-color: rgba(255, 255, 255, 0.62);
        -webkit-backdrop-filter: blur(16px) saturate(160%);
        backdrop-filter: blur(16px) saturate(160%);
    }
}

.btn-primary,
.btn-secondary {
    position: relative;
    overflow: hidden;
    isolation: isolate;
}

.btn-primary::after,
.btn-secondary::after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 55%;
    height: 100%;
    background: linear-gradient(
        120deg,
        transparent 0%,
        rgba(255, 255, 255, 0.1) 40%,
        rgba(255, 255, 255, 0.45) 50%,
        rgba(255, 255, 255, 0.1) 60%,
        transparent 100%
    );
    transform: translateX(-180%) skewX(-18deg);
    transition: transform 0.65s ease;
    pointer-events: none;
    z-index: 1;
}

html[dir="rtl"] .btn-primary::after,
html[dir="rtl"] .btn-secondary::after {
    transform: translateX(180%) skewX(18deg);
}

.hero-orbs {
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 0;
    overflow: hidden;
}

.hero-orb {
    position: absolute;
    border-radius: 50%;
    opacity: 0.38;
    will-change: transform;
}

.hero-orb-1 {
    width: 22rem;
    height: 22rem;
    top: -18%;
    left: -6%;
    background: radial-gradient(circle, rgba(245, 158, 11, 0.7) 0%, transparent 68%);
    animation: fx-orb-drift-a 28s ease-in-out infinite;
}

.hero-orb-2 {
    width: 26rem;
    height: 26rem;
    right: -8%;
    bottom: -22%;
    background: radial-gradient(circle, rgba(147, 197, 253, 0.65) 0%, transparent 70%);
    animation: fx-orb-drift-b 34s ease-in-out infinite;
}

.hero-orb-3 {
    width: 16rem;
    height: 16rem;
    top: 28%;
    left: 42%;
    background: radial-gradient(circle, rgba(37, 99, 235, 0.5) 0%, transparent 72%);
    animation: fx-orb-drift-a 22s ease-in-out infinite reverse;
}

.hero-content {
    position: relative;
    z-index: 2;
}

.page-projector {
    --origin-x: calc(100% - 22px);
    --origin-y: 18px;
    --beam-angle: 150deg;
    --spot-x: 50%;
    --spot-y: 42%;
    position: fixed;
    inset: 0;
    z-index: 1100;
    pointer-events: none;
}

.page-projector-toggle {
    position: absolute;
    left: var(--origin-x);
    top: var(--origin-y);
    width: 88px;
    height: 44px;
    transform: translate(-72%, -50%);
    padding: 0;
    border: 0;
    background: transparent;
    cursor: pointer;
    pointer-events: auto;
    z-index: 5;
}

.page-projector-toggle:focus-visible {
    outline: 2px solid var(--accent-color);
    outline-offset: 4px;
    border-radius: 999px;
}

.page-projector-mount {
    position: absolute;
    left: 72%;
    top: -18px;
    width: 5px;
    height: 18px;
    background: linear-gradient(#6b7280, #374151);
    transform: translateX(-50%);
    border-radius: 0 0 2px 2px;
    pointer-events: none;
}

.page-projector-pivot {
    position: absolute;
    left: 72%;
    top: 50%;
    width: 28px;
    height: 28px;
    transform: translate(-50%, -50%) rotate(var(--beam-angle));
    z-index: 3;
    pointer-events: none;
}

.page-projector-housing {
    position: absolute;
    right: 12px;
    top: 50%;
    width: 52px;
    height: 22px;
    transform: translateY(-50%);
    background: linear-gradient(180deg, #4b5563 0%, #111827 55%, #030712 100%);
    border-radius: 5px 12px 12px 5px;
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.18),
        0 4px 10px rgba(0, 0, 0, 0.35);
}

.page-projector-housing::before {
    content: "";
    position: absolute;
    left: 8px;
    top: 5px;
    width: 8px;
    height: 12px;
    border-radius: 2px;
    background: #1f2937;
    box-shadow: 14px 0 0 #1f2937;
}

.page-projector-lens {
    position: absolute;
    left: 50%;
    top: 50%;
    width: 22px;
    height: 22px;
    transform: translate(-50%, -50%);
    border-radius: 50%;
    background: radial-gradient(circle at 35% 32%, #fffbeb 0%, #fde68a 28%, #f59e0b 62%, #b45309 100%);
    box-shadow:
        0 0 10px 3px rgba(251, 191, 36, 0.85),
        0 0 28px 8px rgba(245, 158, 11, 0.45);
}

.page-projector-beam {
    position: absolute;
    left: var(--origin-x);
    top: var(--origin-y);
    width: 160vmax;
    height: 46vmax;
    transform: translateY(-50%) rotate(var(--beam-angle));
    transform-origin: 0 50%;
    background: linear-gradient(
        90deg,
        rgba(255, 220, 90, 0.42) 0%,
        rgba(253, 224, 71, 0.18) 22%,
        rgba(254, 243, 199, 0.08) 52%,
        transparent 78%
    );
    clip-path: polygon(0 46%, 100% 0, 100% 100%, 0 54%);
    opacity: 0.8;
}

.page-projector.is-aiming.is-on .page-projector-beam {
    opacity: 1;
}

.page-projector-hotspot {
    position: absolute;
    inset: 0;
    background: radial-gradient(
        circle 140px at var(--spot-x) var(--spot-y),
        rgba(255, 248, 210, 0.5) 0%,
        rgba(253, 224, 71, 0.16) 34%,
        transparent 68%
    );
    opacity: 0.4;
}

.page-projector.is-aiming.is-on .page-projector-hotspot {
    opacity: 1;
}

.page-projector:not(.is-on) .page-projector-beam,
.page-projector:not(.is-on) .page-projector-hotspot {
    opacity: 0;
    visibility: hidden;
}

.page-projector:not(.is-on) .page-projector-lens {
    background: radial-gradient(circle at 35% 32%, #d1d5db 0%, #6b7280 45%, #111827 100%);
    box-shadow: none;
}

.product-card,
.project-card,
.news-card,
.article-card {
    --spot-x: 50%;
    --spot-y: 30%;
}

.product-card::before,
.project-card::before,
.news-card::before,
.article-card::before {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: inherit;
    background: radial-gradient(
        220px circle at var(--spot-x) var(--spot-y),
        rgba(245, 158, 11, 0.16),
        transparent 58%
    );
    opacity: 0;
    pointer-events: none;
    z-index: 2;
    transition: opacity 0.35s ease;
}

.card-featured {
    --fx-angle: 0deg;
}

.card-featured::before {
    inset: 0;
    padding: 2px;
    background: conic-gradient(
        from var(--fx-angle),
        var(--primary-color),
        var(--accent-color),
        #93c5fd,
        var(--primary-color)
    );
    -webkit-mask:
        linear-gradient(#000 0 0) content-box,
        linear-gradient(#000 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    opacity: 1;
    z-index: 3;
    transition: none;
    animation: fx-spin-angle 7s linear infinite;
}

.gallery-item::before {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 0% 0%, rgba(255, 255, 255, 0.28), transparent 52%);
    opacity: 0;
    pointer-events: none;
    z-index: 2;
    transition: opacity 0.35s ease;
}

.cta-section {
    position: relative;
    overflow: hidden;
}

.cta-section::after {
    content: "";
    position: absolute;
    inset: auto -10% -40% auto;
    width: 18rem;
    height: 18rem;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(245, 158, 11, 0.28), transparent 70%);
    pointer-events: none;
}

@keyframes fx-spin-angle {
    to {
        --fx-angle: 360deg;
    }
}

@keyframes fx-orb-drift-a {
    0%,
    100% {
        transform: translate3d(0, 0, 0) scale(1);
    }
    50% {
        transform: translate3d(6%, 8%, 0) scale(1.08);
    }
}

@keyframes fx-orb-drift-b {
    0%,
    100% {
        transform: translate3d(0, 0, 0) scale(1);
    }
    50% {
        transform: translate3d(-7%, -5%, 0) scale(1.06);
    }
}

@media (hover: hover) and (pointer: fine) {
    .btn-primary:hover::after,
    .btn-secondary:hover::after {
        transform: translateX(220%) skewX(-18deg);
    }

    html[dir="rtl"] .btn-primary:hover::after,
    html[dir="rtl"] .btn-secondary:hover::after {
        transform: translateX(-220%) skewX(18deg);
    }

    .product-card:hover::before,
    .project-card:hover::before,
    .news-card:hover::before,
    .article-card:hover::before {
        opacity: 1;
    }

    .card-featured:hover::before {
        opacity: 1;
    }

    .gallery-item:hover::before {
        opacity: 1;
    }
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    .hero-orb,
    .card-featured::before,
    .is-inview,
    .flash-message {
        animation: none !important;
    }

    .page-projector-pivot,
    .page-projector-beam {
        transition: none;
    }

    .btn-primary::after,
    .btn-secondary::after,
    .product-card::before,
    .project-card::before,
    .news-card::before,
    .article-card::before,
    .gallery-item::before {
        transition: none;
        opacity: 0;
        transform: none;
    }

    .card-featured::before {
        opacity: 1;
        animation: none !important;
        background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    }

    .product-card:hover,
    .project-card:hover,
    .news-grid .news-card:hover,
    .articles-grid .article-card:hover {
        transform: none;
    }
}

@media (max-width: 768px) {
    .hero-orb-1,
    .hero-orb-2,
    .hero-orb-3 {
        width: 14rem;
        height: 14rem;
        opacity: 0.18;
    }

    .card-featured::before {
        animation: none;
        background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    }

    .page-projector {
        display: none;
    }
}

@media (min-width: 769px) {
    .nav-wrapper {
        padding-right: 3.5rem;
    }
}

/* Homepage redesign — CSS-only stage, no extra assets */
.page-home {
    --home-ink: #e8edf7;
    --home-muted: rgba(232, 237, 247, 0.72);
    --home-night: #070b14;
    --home-paper: #f6f4ef;
}

.page-home .content-layout {
    display: block;
    max-width: none;
    margin: 0;
    padding: 0;
}

.page-home .main-content {
    width: 100%;
}

.page-home .navbar:not(.is-scrolled) {
    background-color: transparent;
    box-shadow: none;
    border-bottom-color: transparent;
}

.page-home .navbar:not(.is-scrolled) .logo,
.page-home .navbar:not(.is-scrolled) .nav-menu > li > a,
.page-home .navbar:not(.is-scrolled) .language-toggle {
    color: #f8fafc;
}

.page-home .navbar:not(.is-scrolled) .logo-mark {
    box-shadow: 0 0 0 3px rgba(253, 224, 71, 0.35), 0 0 16px rgba(245, 158, 11, 0.55);
}

.page-home .navbar:not(.is-scrolled) .mobile-menu-toggle span {
    background-color: #f8fafc;
}

.page-home .navbar:not(.is-scrolled) .search-input {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.22);
    color: #f8fafc;
}

.page-home .navbar:not(.is-scrolled) .search-input::placeholder {
    color: rgba(248, 250, 252, 0.55);
}

.page-home .navbar:not(.is-scrolled) .search-button {
    background: rgba(255, 255, 255, 0.14);
    color: #fff;
}

.page-home .navbar:not(.is-scrolled) .language-toggle {
    border-color: rgba(255, 255, 255, 0.28);
}

.page-home .navbar:not(.is-scrolled) .dropdown-arrow {
    color: inherit;
}

.page-home .home-hero {
    min-height: 48rem;
    min-height: min(100svh, 48rem);
    margin-top: calc(var(--nav-h) * -1);
    padding: calc(var(--nav-h) + 3rem) 0 4.5rem;
    background: var(--home-night);
    color: var(--home-ink);
    text-align: start;
    align-items: flex-end;
    justify-content: flex-start;
}

.page-home .home-hero .container {
    position: relative;
    z-index: 2;
    width: 100%;
}

.page-home .home-hero .hero-content {
    max-width: 38rem;
    margin: 0;
    text-align: start;
}

.hero-stage {
    position: absolute;
    inset: 0;
    z-index: 0;
    background:
        radial-gradient(ellipse 70% 55% at 78% 108%, rgba(245, 158, 11, 0.22), transparent 58%),
        radial-gradient(ellipse 45% 40% at 12% 0%, rgba(37, 99, 235, 0.22), transparent 52%),
        radial-gradient(circle at 88% 8%, rgba(253, 224, 71, 0.16), transparent 22%),
        linear-gradient(180deg, #05070e 0%, #0b1220 58%, #101826 100%);
}

.hero-grid {
    position: absolute;
    left: -10%;
    right: -10%;
    bottom: -8%;
    height: 48%;
    z-index: 0;
    background-image:
        linear-gradient(rgba(148, 163, 184, 0.18) 1px, transparent 1px),
        linear-gradient(90deg, rgba(148, 163, 184, 0.18) 1px, transparent 1px);
    background-size: 72px 72px;
    transform: perspective(520px) rotateX(62deg);
    transform-origin: center bottom;
    -webkit-mask-image: linear-gradient(to top, rgba(0, 0, 0, 0.55), transparent 78%);
    mask-image: linear-gradient(to top, rgba(0, 0, 0, 0.55), transparent 78%);
    pointer-events: none;
}

.hero-rig {
    position: absolute;
    inset: 0;
    z-index: 1;
    pointer-events: none;
}

.rig-lamp {
    position: absolute;
    top: 0;
    left: var(--x);
    width: 2px;
    height: var(--len);
    background: linear-gradient(#94a3b8, #1e293b);
    transform-origin: top center;
    animation: rig-sway 7.5s ease-in-out infinite;
    animation-delay: var(--delay);
}

.rig-lamp::before {
    content: "";
    position: absolute;
    left: 50%;
    bottom: -14px;
    width: 14px;
    height: 14px;
    transform: translateX(-50%);
    border-radius: 50%;
    background: radial-gradient(circle at 35% 30%, #fffbeb, #f59e0b 58%, #b45309);
    box-shadow: 0 0 18px 5px rgba(245, 158, 11, 0.5);
}

.rig-lamp::after {
    content: "";
    position: absolute;
    left: 50%;
    top: 100%;
    width: 11rem;
    height: 16rem;
    transform: translateX(-50%);
    background: linear-gradient(to bottom, rgba(253, 224, 71, 0.28), rgba(245, 158, 11, 0.05) 42%, transparent 78%);
    clip-path: polygon(46% 0, 54% 0, 100% 100%, 0 100%);
}

@keyframes rig-sway {
    0%,
    100% {
        transform: rotate(-2.4deg);
    }
    50% {
        transform: rotate(2.4deg);
    }
}

.hero-kicker,
.home-kicker {
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
    margin-bottom: 1rem;
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--accent-color);
}

.hero-kicker::before,
.home-kicker::before {
    content: "";
    width: 1.75rem;
    height: 1px;
    background: currentColor;
}

html[dir="rtl"] .hero-kicker,
html[dir="rtl"] .home-kicker {
    letter-spacing: 0.04em;
    text-transform: none;
}

.page-home .home-hero .hero-title {
    font-size: clamp(2.6rem, 6vw, 4.6rem);
    line-height: 1.05;
    letter-spacing: -0.04em;
    font-weight: 700;
    margin-bottom: 1.15rem;
    color: #fff;
}

.page-home .home-hero .hero-description {
    font-size: 1.08rem;
    line-height: 1.65;
    max-width: 34rem;
    margin-bottom: 1.75rem;
    color: var(--home-muted);
    opacity: 1;
}

.page-home .home-hero .hero-buttons {
    justify-content: flex-start;
    margin-bottom: 2.5rem;
}

.page-home .home-hero .btn-primary {
    background: var(--accent-color);
    color: #111827;
    border-radius: 999px;
    padding: 0.85rem 1.6rem;
    font-weight: 600;
}

.page-home .home-hero .btn-primary:hover {
    background: #fbbf24;
    color: #111827;
}

.page-home .home-hero .btn-secondary {
    background: transparent;
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.32);
    border-radius: 999px;
    padding: 0.85rem 1.6rem;
}

.page-home .home-hero .btn-secondary:hover {
    background: rgba(255, 255, 255, 0.08);
    color: #fff;
    border-color: rgba(255, 255, 255, 0.55);
}

.hero-stats {
    display: flex;
    flex-wrap: wrap;
    gap: 1.75rem 2.5rem;
    margin: 0;
}

.hero-stats div {
    min-width: 5rem;
}

.hero-stats dt {
    font-size: 1.85rem;
    font-weight: 700;
    letter-spacing: -0.03em;
    color: #fff;
    line-height: 1.1;
}

.hero-stats dd {
    margin: 0.2rem 0 0;
    font-size: 0.8rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--home-muted);
}

.page-home .home-pillars-section {
    background: var(--home-paper);
    padding-top: 0;
}

.page-home .home-pillars {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.1rem;
    margin-top: -2.75rem;
    position: relative;
    z-index: 3;
}

.home-pillar {
    display: block;
    padding: 1.5rem 1.4rem 1.35rem;
    background: #fff;
    border-radius: 1.1rem;
    box-shadow: 0 18px 40px -24px rgba(15, 23, 42, 0.45);
    color: inherit;
    text-decoration: none;
    border: 1px solid rgba(15, 23, 42, 0.06);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.home-pillar:hover,
.home-pillar:focus {
    text-decoration: none;
    color: inherit;
    transform: translateY(-4px);
    box-shadow: 0 22px 44px -20px rgba(37, 99, 235, 0.28);
}

.home-pillar h2 {
    font-size: 1.15rem;
    margin: 0.85rem 0 0.45rem;
}

.home-pillar p {
    color: var(--text-light);
    font-size: 0.95rem;
    margin-bottom: 0.9rem;
}

.home-pillar-link {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--primary-color);
}

.home-pillar-icon {
    display: block;
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 0.75rem;
    position: relative;
    background: #eff6ff;
}

.home-pillar-icon-light {
    background: #fff7ed;
}

.home-pillar-icon-light::before {
    content: "";
    position: absolute;
    inset: 0.55rem;
    border-radius: 50%;
    background: radial-gradient(circle at 35% 30%, #fff, var(--accent-color) 62%);
}

.home-pillar-icon-cam::before {
    content: "";
    position: absolute;
    left: 0.55rem;
    top: 0.75rem;
    width: 1.15rem;
    height: 0.95rem;
    border-radius: 0.28rem;
    background: var(--primary-color);
}

.home-pillar-icon-cam::after {
    content: "";
    position: absolute;
    right: 0.55rem;
    top: 0.95rem;
    width: 0.45rem;
    height: 0.55rem;
    clip-path: polygon(0 0, 100% 50%, 0 100%);
    background: #93c5fd;
}

.home-pillar-icon-site::before {
    content: "";
    position: absolute;
    left: 0.55rem;
    right: 0.55rem;
    bottom: 0.5rem;
    height: 0.95rem;
    background: #1e3a8a;
    clip-path: polygon(0 100%, 0 40%, 50% 0, 100% 40%, 100% 100%);
}

.home-section-head {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    gap: 1rem;
    margin-bottom: 1.75rem;
}

.page-home .section-title {
    text-align: start;
    margin: 0;
    font-size: clamp(1.7rem, 3vw, 2.2rem);
    letter-spacing: -0.03em;
}

.page-home .home-kicker {
    margin-bottom: 0.45rem;
}

.home-section-link {
    font-weight: 600;
    font-size: 0.92rem;
    white-space: nowrap;
}

.page-home .home-catalog {
    background: var(--home-paper);
}

.page-home .home-products {
    grid-template-columns: 1.45fr 1fr 1fr;
    gap: 1.15rem;
}

.page-home .home-product-lead {
    grid-column: span 2;
}

.page-home .home-product-lead .product-image {
    height: 22rem;
}

.page-home .product-card {
    overflow: hidden;
    border-radius: 1rem;
    background: #fff;
}

.page-home .product-image {
    height: 11.5rem;
    border-radius: 1rem 1rem 0 0;
}

.page-home .home-work {
    background: #fff;
}

.page-home .home-projects {
    grid-template-columns: repeat(3, 1fr);
    gap: 1.15rem;
}

.page-home .home-project-card {
    overflow: hidden;
    border-radius: 1rem;
    min-height: 18rem;
}

.page-home .home-project-card .project-image {
    height: 18rem;
}

.page-home .home-project-card .project-info {
    position: absolute;
    inset: auto 0 0 0;
    padding: 1.35rem 1.25rem 1.2rem;
    background: linear-gradient(to top, rgba(7, 11, 20, 0.88), rgba(7, 11, 20, 0.2) 70%, transparent);
    z-index: 2;
}

.page-home .home-project-card .project-name a,
.page-home .home-project-card .project-category,
.page-home .home-project-card .project-summary {
    color: #fff;
}

.page-home .home-project-card .project-category {
    opacity: 0.75;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-size: 0.72rem;
}

.page-home .home-project-card .project-summary {
    display: none;
}

.page-home .home-journal {
    background: var(--home-paper);
}

.page-home .home-news {
    display: grid;
    grid-template-columns: 1.35fr 1fr;
    grid-template-rows: auto auto;
    gap: 1.15rem;
}

.page-home .home-news-lead {
    grid-row: 1 / span 2;
}

.page-home .home-news-lead .news-image {
    height: 16rem;
}

.page-home .home-news .news-card:not(.home-news-lead) {
    display: grid;
    grid-template-columns: 8.5rem 1fr;
    align-items: stretch;
}

.page-home .home-news .news-card:not(.home-news-lead) .news-image {
    height: 100%;
    min-height: 7.5rem;
    border-radius: 1rem 0 0 1rem;
}

html[dir="rtl"] .page-home .home-news .news-card:not(.home-news-lead) .news-image {
    border-radius: 0 1rem 1rem 0;
}

.page-home .news-card {
    overflow: hidden;
    border-radius: 1rem;
    background: #fff;
}

.page-home .home-cta {
    background:
        radial-gradient(circle at 88% 120%, rgba(245, 158, 11, 0.28), transparent 42%),
        linear-gradient(160deg, #0b1220 0%, #111827 55%, #1e3a8a 140%);
    text-align: start;
    overflow: hidden;
}

.page-home .home-cta .cta-content {
    max-width: 36rem;
}

.page-home .home-cta .home-kicker {
    color: var(--accent-color);
}

.page-home .home-cta h2 {
    font-size: clamp(1.8rem, 4vw, 2.6rem);
    letter-spacing: -0.03em;
    line-height: 1.15;
}

.page-home .home-cta .btn-primary {
    background: var(--accent-color);
    color: #111827;
    border-radius: 999px;
}

.page-home .home-cta .btn-primary:hover {
    background: #fbbf24;
    color: #111827;
}

.page-home .footer {
    margin-top: 0;
}

@media (max-width: 1024px) {
    .page-home .home-products,
    .page-home .home-projects,
    .page-home .home-pillars,
    .page-home .home-news {
        grid-template-columns: 1fr 1fr;
    }

    .page-home .home-product-lead,
    .page-home .home-news-lead {
        grid-column: 1 / -1;
        grid-row: auto;
    }
}

@media (max-width: 768px) {
    .page-home .navbar:not(.is-scrolled) .nav-menu {
        background-color: #0b1220;
    }

    .page-home .home-hero {
        align-items: center;
        padding: calc(var(--nav-h) + 2rem) 0 5.5rem;
        min-height: auto;
    }

    .page-home .home-hero .hero-title {
        font-size: 2.35rem;
    }

    .hero-grid,
    .hero-rig {
        opacity: 0.55;
    }

    .rig-lamp:nth-child(n + 3) {
        display: none;
    }

    .page-home .home-pillars,
    .page-home .home-products,
    .page-home .home-projects,
    .page-home .home-news {
        grid-template-columns: 1fr;
    }

    .page-home .home-pillars {
        margin-top: -1.5rem;
    }

    .page-home .home-news .news-card:not(.home-news-lead) {
        grid-template-columns: 1fr;
    }

    .page-home .home-news .news-card:not(.home-news-lead) .news-image {
        border-radius: 1rem 1rem 0 0;
        height: 10rem;
    }

    .page-home .home-section-head {
        flex-direction: column;
        align-items: flex-start;
    }

    .page-home .home-product-lead .product-image,
    .page-home .home-news-lead .news-image {
        height: 12rem;
    }
}

@media (prefers-reduced-motion: reduce) {
    .rig-lamp {
        animation: none;
    }
}

img.is-broken {
    display: none !important;
}

.product-image,
.project-image,
.news-image,
.article-image,
.product-image-placeholder,
.project-image-placeholder {
    position: relative;
    min-height: 11rem;
    background:
        radial-gradient(circle at 30% 20%, rgba(253, 224, 71, 0.35), transparent 42%),
        linear-gradient(135deg, #1e3a8a, #0b1220 58%, #b45309);
}

.media-fallback {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    text-align: center;
    color: #fff;
    font-weight: 600;
    letter-spacing: -0.02em;
    z-index: 0;
    pointer-events: none;
}

@keyframes rise-in {
    from {
        opacity: 0;
        transform: translateY(12px);
    }
    to {
        opacity: 1;
        transform: none;
    }
}

.is-inview {
    animation: rise-in 0.45s ease both;
}

.flash-message {
    animation: rise-in 0.35s ease both;
}

.site-lightbox {
    border: 0;
    padding: 2.5rem 3.5rem 1.5rem;
    max-width: min(94vw, 1100px);
    width: 100%;
    background: #0b1220;
    color: #f8fafc;
    border-radius: 1.1rem;
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.45);
}

.site-lightbox::backdrop {
    background: rgba(7, 11, 20, 0.84);
}

.site-lightbox img {
    width: 100%;
    max-height: 78vh;
    object-fit: contain;
    border-radius: 0.6rem;
}

.site-lightbox-caption {
    margin: 0.85rem 0 0;
    text-align: center;
    color: rgba(248, 250, 252, 0.8);
}

.site-lightbox-close,
.site-lightbox-prev,
.site-lightbox-next {
    position: absolute;
    border: 0;
    background: rgba(255, 255, 255, 0.12);
    color: #fff;
    cursor: pointer;
    border-radius: 999px;
}

.site-lightbox-close {
    top: 0.6rem;
    right: 0.6rem;
    width: 2.2rem;
    height: 2.2rem;
    font-size: 1.4rem;
    line-height: 1;
}

.site-lightbox-prev,
.site-lightbox-next {
    top: 50%;
    transform: translateY(-50%);
    width: 2.4rem;
    height: 2.4rem;
    font-size: 1.6rem;
}

.site-lightbox-prev {
    left: 0.45rem;
}

.site-lightbox-next {
    right: 0.45rem;
}

html[dir="rtl"] .site-lightbox-close {
    right: auto;
    left: 0.6rem;
}

html[dir="rtl"] .site-lightbox-prev {
    left: auto;
    right: 0.45rem;
}

html[dir="rtl"] .site-lightbox-next {
    right: auto;
    left: 0.45rem;
}

.site-lightbox-close:hover,
.site-lightbox-prev:hover,
.site-lightbox-next:hover {
    background: var(--accent-color);
    color: #111827;
}

/* Inner pages — colorful body, header/footer unchanged */
.page-inner {
    --paper: #f4efe6;
    --ink: #0f172a;
    background: var(--paper);
}

.page-inner .content-layout {
    display: block;
    max-width: none;
    margin: 0;
    padding: 0;
}

.page-inner .page-header {
    position: relative;
    overflow: hidden;
    background:
        radial-gradient(ellipse 50% 80% at 100% 0%, rgba(245, 158, 11, 0.38), transparent 55%),
        radial-gradient(ellipse 40% 70% at 0% 100%, rgba(37, 99, 235, 0.4), transparent 50%),
        linear-gradient(135deg, #0b1220 0%, #1e3a8a 58%, #0f172a 100%);
    color: #fff;
    padding: 3.25rem 0 2.75rem;
    border-bottom: 0;
}

.page-inner .page-header::after {
    content: "";
    position: absolute;
    inset: auto -8% -45% auto;
    width: 18rem;
    height: 18rem;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(253, 224, 71, 0.28), transparent 68%);
    pointer-events: none;
}

.page-inner .page-header .container {
    position: relative;
    z-index: 1;
}

.page-inner .page-header h1 {
    color: #fff;
    letter-spacing: -0.03em;
    font-size: clamp(1.9rem, 4vw, 2.75rem);
    line-height: 1.15;
}

.page-inner .page-header h1::before {
    content: "";
    display: block;
    width: 2.4rem;
    height: 3px;
    margin-bottom: 0.85rem;
    border-radius: 99px;
    background: var(--accent-color);
}

.page-inner .breadcrumb,
.page-inner .breadcrumb a {
    color: rgba(255, 255, 255, 0.72);
}

.page-inner .breadcrumb a:hover {
    color: var(--accent-color);
}

.page-inner .section {
    padding: 2.75rem 0 3.5rem;
}

.page-inner .product-card,
.page-inner .project-card,
.page-inner .news-card,
.page-inner .article-card {
    overflow: hidden;
    border-radius: 1.1rem;
    background: #fff;
    border: 1px solid rgba(15, 23, 42, 0.06);
    box-shadow: 0 16px 36px -28px rgba(15, 23, 42, 0.55);
}

.page-inner .product-category,
.page-inner .project-category {
    display: inline-block;
    padding: 0.2rem 0.65rem;
    border-radius: 99px;
    background: #fff7ed;
    color: #b45309;
    font-weight: 600;
    font-size: 0.72rem;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.page-inner .product-price {
    color: #1d4ed8;
}

.page-inner .product-image,
.page-inner .project-image {
    background:
        linear-gradient(135deg, rgba(37, 99, 235, 0.12), rgba(245, 158, 11, 0.14));
}

.page-inner .products-sidebar,
.page-inner .projects-sidebar {
    background: #fff;
    border-radius: 1.15rem;
    border: 1px solid rgba(15, 23, 42, 0.06);
    box-shadow: 0 16px 36px -28px rgba(15, 23, 42, 0.5);
    padding: 1.25rem;
}

.page-inner .products-sidebar h3,
.page-inner .projects-sidebar h3 {
    font-size: 0.78rem;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: #b45309;
    margin-bottom: 0.9rem;
}

.page-inner .category-list a {
    border-radius: 0.7rem;
    padding: 0.6rem 0.75rem;
}

.page-inner .category-list a.active {
    background: linear-gradient(135deg, #2563eb, #1d4ed8);
    box-shadow: 0 8px 18px -10px rgba(37, 99, 235, 0.8);
}

.page-inner .category-list a:hover:not(.active) {
    background: #fff7ed;
    color: #b45309;
}

.page-inner .news-list,
.page-inner .articles-list {
    gap: 1.25rem;
}

.page-inner .news-card,
.page-inner .article-card {
    padding: 0;
    gap: 0;
    align-items: stretch;
}

.page-inner .news-image,
.page-inner .article-image {
    border-radius: 1.1rem 0 0 1.1rem;
    height: 100%;
    min-height: 12rem;
    background: linear-gradient(135deg, #1e3a8a, #f59e0b);
}

html[dir="rtl"] .page-inner .news-image,
html[dir="rtl"] .page-inner .article-image {
    border-radius: 0 1.1rem 1.1rem 0;
}

.page-inner .news-info,
.page-inner .article-info {
    padding: 1.4rem 1.5rem;
    display: flex;
    flex-direction: column;
}

.page-inner .news-date,
.page-inner .article-date {
    display: inline-flex;
    padding: 0.2rem 0.65rem;
    border-radius: 99px;
    background: #eff6ff;
    color: #1d4ed8;
    font-weight: 600;
    font-size: 0.75rem;
}

.page-inner .read-more {
    display: inline-flex;
    margin-top: auto;
    color: #b45309;
    font-weight: 600;
}

.page-inner .news-excerpt,
.page-inner .article-excerpt {
    background: #fff7ed;
    border-inline-start: 4px solid var(--accent-color);
    color: #7c2d12;
    font-style: normal;
    border-radius: 0.7rem;
}

.page-inner .article-excerpt {
    background: #eff6ff;
    border-inline-start-color: #2563eb;
    color: #1e3a8a;
}

.page-inner .gallery-filters {
    border-bottom: 0;
    padding-bottom: 0;
    margin-bottom: 1.75rem;
}

.page-inner .filter-title {
    font-size: 0.78rem;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: #b45309;
}

.page-inner .filter-btn,
.page-inner .filter-list a {
    background: #fff;
    border-radius: 99px;
    border: 1px solid rgba(15, 23, 42, 0.08);
}

.page-inner .filter-btn.active,
.page-inner .filter-list a.active {
    background: var(--accent-color);
    border-color: var(--accent-color);
    color: #111827;
}

.page-inner .gallery-item {
    border-radius: 1rem;
    box-shadow: 0 18px 36px -24px rgba(15, 23, 42, 0.55);
}

.page-inner .gallery-overlay {
    background: linear-gradient(to top, rgba(11, 18, 32, 0.92), rgba(30, 58, 138, 0.28), transparent);
}

.page-inner .contact-wrapper {
    gap: 1.5rem;
    align-items: stretch;
}

.page-inner .contact-info {
    background:
        radial-gradient(circle at 100% 0%, rgba(245, 158, 11, 0.28), transparent 42%),
        linear-gradient(165deg, #0b1220, #1e3a8a);
    color: #e8edf7;
    padding: 2rem 1.75rem;
    border-radius: 1.25rem;
}

.page-inner .contact-info h2,
.page-inner .contact-info h3 {
    color: #fff;
}

.page-inner .contact-info a {
    color: var(--accent-color);
}

.page-inner .contact-item {
    background: rgba(255, 255, 255, 0.08);
    border-radius: 0.9rem;
    padding: 1rem 1rem 1rem 3.1rem;
    position: relative;
    margin-bottom: 0.85rem;
}

.page-inner .contact-item::before {
    content: "";
    position: absolute;
    left: 1rem;
    top: 1.15rem;
    width: 1.15rem;
    height: 1.15rem;
    border-radius: 0.3rem;
    background: var(--accent-color);
}

html[dir="rtl"] .page-inner .contact-item {
    padding: 1rem 3.1rem 1rem 1rem;
}

html[dir="rtl"] .page-inner .contact-item::before {
    left: auto;
    right: 1rem;
}

.page-inner .contact-item-phone::before {
    background: #93c5fd;
}

.page-inner .contact-item-hours::before {
    background: #34d399;
}

.page-inner .contact-form-wrapper {
    background: #fff;
    padding: 2rem 1.75rem;
    border-radius: 1.25rem;
    box-shadow: 0 18px 40px -28px rgba(15, 23, 42, 0.5);
}

.page-inner .contact-form-wrapper h2 {
    margin-bottom: 1.25rem;
}

.page-inner .form-control {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 0.75rem;
}

.page-inner .form-control:focus {
    border-color: var(--accent-color);
    box-shadow: 0 0 0 4px rgba(245, 158, 11, 0.18);
    background: #fff;
}

.page-inner .contact-form .btn-primary {
    background: var(--accent-color);
    color: #111827;
    border-radius: 999px;
    padding: 0.85rem 1.6rem;
    font-weight: 600;
}

.page-inner .contact-form .btn-primary:hover {
    background: #fbbf24;
    color: #111827;
}

.page-inner .pagination-current {
    background: var(--accent-color);
    color: #111827;
    border-radius: 999px;
}

.page-inner .pagination-link {
    border-radius: 999px;
}

.page-inner .empty-state {
    background: #fff;
    border-radius: 1.25rem;
    border: 1px dashed rgba(37, 99, 235, 0.28);
}

.about-lead {
    display: grid;
    grid-template-columns: 1.1fr 1fr;
    gap: 1.15rem;
    margin-bottom: 2.5rem;
}

.about-lead-card {
    border-radius: 1.25rem;
    padding: 1.75rem 1.6rem;
    color: #fff;
}

.about-lead-card h2 {
    margin-bottom: 0.75rem;
    letter-spacing: -0.02em;
}

.about-lead-mission {
    background:
        radial-gradient(circle at 100% 0%, rgba(253, 224, 71, 0.35), transparent 42%),
        linear-gradient(145deg, #0b1220, #1d4ed8);
}

.about-lead-who {
    background:
        radial-gradient(circle at 0% 100%, rgba(37, 99, 235, 0.28), transparent 46%),
        linear-gradient(145deg, #7c2d12, #f59e0b);
}

.about-heading {
    font-size: 1.65rem;
    letter-spacing: -0.03em;
    margin: 0 0 1.15rem;
}

.page-inner .expertise-item {
    background: #fff;
    border-radius: 1.15rem;
    padding: 0 0 1.35rem;
    overflow: hidden;
    box-shadow: 0 16px 36px -28px rgba(15, 23, 42, 0.55);
    border: 1px solid rgba(15, 23, 42, 0.06);
}

.page-inner .expertise-item h3,
.page-inner .expertise-item p {
    padding: 0 1.25rem;
}

.page-inner .expertise-item h3 {
    margin-top: 1rem;
}

.expertise-swatch {
    height: 7.5rem;
    position: relative;
}

.tone-amber .expertise-swatch {
    background: linear-gradient(135deg, #fde68a, #f59e0b 55%, #b45309);
}

.tone-blue .expertise-swatch {
    background: linear-gradient(135deg, #93c5fd, #2563eb 55%, #1e3a8a);
}

.tone-gold .expertise-swatch {
    background: linear-gradient(135deg, #fef3c7, #fbbf24 50%, #d97706);
}

.tone-navy .expertise-swatch {
    background: linear-gradient(135deg, #1e3a8a, #0b1220);
}

.expertise-swatch::after {
    content: "";
    position: absolute;
    left: 50%;
    top: 50%;
    width: 2.4rem;
    height: 2.4rem;
    transform: translate(-50%, -50%);
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.9);
    box-shadow: 0 0 24px rgba(255, 251, 235, 0.8);
}

.page-inner .feature-list {
    list-style: none;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.9rem;
    margin: 0 0 2.5rem;
}

.page-inner .feature-list li {
    background: #fff;
    border-radius: 1rem;
    padding: 1.1rem 1.15rem 1.1rem 1.35rem;
    border-inline-start: 4px solid var(--accent-color);
    box-shadow: 0 12px 28px -24px rgba(15, 23, 42, 0.5);
}

.page-inner .feature-list li:nth-child(2n) {
    border-inline-start-color: #2563eb;
}

.page-inner .feature-list li:nth-child(3n) {
    border-inline-start-color: #059669;
}

.page-inner .feature-list strong {
    display: block;
    margin-bottom: 0.25rem;
    color: var(--ink);
}

.about-commit {
    background:
        radial-gradient(circle at 88% 120%, rgba(245, 158, 11, 0.3), transparent 42%),
        linear-gradient(160deg, #0b1220, #1e3a8a);
    color: #e8edf7;
    border-radius: 1.25rem;
    padding: 2rem 1.75rem;
}

.about-commit h2 {
    color: #fff;
    margin-bottom: 0.75rem;
}

.page-inner .news-detail,
.page-inner .article-detail,
.page-inner .product-detail-layout,
.page-inner .project-detail-layout {
    background: #fff;
    border-radius: 1.25rem;
    padding: 1.75rem;
    box-shadow: 0 18px 40px -28px rgba(15, 23, 42, 0.45);
}

.page-inner .product-category-badge,
.page-inner .project-category-badge {
    background: var(--accent-color);
    color: #111827;
}

.page-inner .search-form-large {
    background: #fff;
    padding: 1rem;
    border-radius: 1.15rem;
    box-shadow: 0 16px 36px -28px rgba(15, 23, 42, 0.45);
}

/* Comments */
.comment-section {
    margin-top: 3rem;
    padding-top: 2.5rem;
    border-top: 2px solid var(--border-color);
}

.comments-header {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    justify-content: space-between;
    gap: 0.5rem 1.25rem;
    margin-bottom: 1.5rem;
}

.comments-header h2 {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    margin: 0;
    font-size: 1.65rem;
    letter-spacing: -0.02em;
}

.comments-count {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 1.75rem;
    height: 1.75rem;
    padding: 0 0.5rem;
    border-radius: 99px;
    background: #eff6ff;
    color: #1d4ed8;
    font-size: 0.85rem;
    font-weight: 700;
}

.comment-note {
    margin: 0;
    color: var(--text-light);
    font-size: 0.9rem;
}

.comment-list,
.comment-replies {
    list-style: none;
    margin: 0;
    padding: 0;
}

.comment-list {
    display: grid;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.comment-card,
.comment-composer,
.comment-empty {
    background: #fff;
    border-radius: 1.25rem;
    box-shadow: 0 18px 40px -28px rgba(15, 23, 42, 0.45);
}

.comment-card {
    position: relative;
    padding: 1.35rem 1.35rem 1.15rem;
    overflow: hidden;
}

.comment-card::before {
    content: "";
    position: absolute;
    inset-block-start: 0;
    inset-inline: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--accent-color), #2563eb);
}

.comment-head {
    display: flex;
    align-items: center;
    gap: 0.85rem;
    margin-bottom: 0.85rem;
}

.comment-avatar {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.75rem;
    height: 2.75rem;
    border-radius: 50%;
    background: linear-gradient(160deg, #fde68a, #f59e0b);
    color: #111827;
    font-weight: 700;
    font-size: 1.05rem;
    text-transform: uppercase;
    flex-shrink: 0;
}

.comment-item:nth-child(2n) .comment-avatar {
    background: linear-gradient(160deg, #93c5fd, #2563eb);
    color: #fff;
}

.comment-item:nth-child(3n) .comment-avatar {
    background: linear-gradient(160deg, #1e3a8a, #0b1220);
    color: #fff;
}

.comment-avatar.is-admin,
.comment-avatar-sm.is-admin {
    background: linear-gradient(160deg, #0b1220, #1e3a8a);
    color: #fde68a;
}

.comment-avatar-sm {
    width: 2.1rem;
    height: 2.1rem;
    font-size: 0.9rem;
}

.comment-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.4rem 0.7rem;
    min-width: 0;
}

.comment-author {
    font-size: 1rem;
    color: var(--text-color);
}

.comment-date {
    display: inline-flex;
    padding: 0.15rem 0.6rem;
    border-radius: 99px;
    background: #eff6ff;
    color: #1d4ed8;
    font-weight: 600;
    font-size: 0.75rem;
}

.comment-badge {
    display: inline-flex;
    padding: 0.15rem 0.55rem;
    border-radius: 99px;
    background: var(--accent-color);
    color: #111827;
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.comment-body {
    color: var(--text-color);
    line-height: 1.7;
    overflow-wrap: anywhere;
}

.comment-replies {
    display: grid;
    gap: 0.9rem;
    margin-top: 1.1rem;
    padding-inline-start: 1rem;
    border-inline-start: 3px solid #fde68a;
}

.comment-reply {
    background: #f8fafc;
    border-radius: 0.9rem;
    padding: 0.9rem 1rem;
}

.comment-reply-box {
    margin-top: 1rem;
}

.comment-reply-toggle {
    display: inline-flex;
    align-items: center;
    cursor: pointer;
    list-style: none;
    color: var(--primary-color);
    font-weight: 600;
    font-size: 0.9rem;
}

.comment-reply-toggle::marker {
    content: "";
    display: none;
}

.comment-reply-toggle::-webkit-details-marker {
    display: none;
}

.comment-reply-toggle::before {
    content: "";
    width: 0.45rem;
    height: 0.45rem;
    margin-inline-end: 0.45rem;
    border-inline-end: 2px solid currentColor;
    border-block-end: 2px solid currentColor;
    transform: rotate(-45deg);
    translate: 0 -1px;
}

html[dir="rtl"] .comment-reply-toggle::before {
    transform: rotate(135deg);
}

.comment-reply-box[open] > .comment-reply-toggle {
    margin-bottom: 0.9rem;
}

.comment-reply-box .comment-form {
    background: #f8fafc;
    border-radius: 0.9rem;
    padding: 1rem;
}

.comment-empty {
    padding: 1.4rem 1.35rem;
    margin-bottom: 1.5rem;
    border: 1px dashed rgba(37, 99, 235, 0.28);
    color: var(--text-light);
}

.comment-composer {
    padding: 1.6rem 1.5rem 1.4rem;
}

.comment-composer h3 {
    margin: 0 0 1.15rem;
    font-size: 1.2rem;
}

.comment-form .form-group {
    margin-bottom: 1rem;
}

.comment-form .btn {
    border-radius: 999px;
    padding: 0.7rem 1.35rem;
    font-weight: 600;
}

.page-inner .comment-section {
    border-top-color: rgba(15, 23, 42, 0.08);
}

.page-inner .comment-form .form-control {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 0.75rem;
}

.page-inner .comment-form .form-control:focus {
    border-color: var(--accent-color);
    box-shadow: 0 0 0 4px rgba(245, 158, 11, 0.18);
    background: #fff;
}

.page-inner .comment-form .btn-primary {
    background: var(--accent-color);
    color: #111827;
}

.page-inner .comment-form .btn-primary:hover {
    background: #fbbf24;
    color: #111827;
}

@media (max-width: 768px) {
    .about-lead,
    .page-inner .feature-list {
        grid-template-columns: 1fr;
    }

    .page-inner .news-card,
    .page-inner .article-card {
        grid-template-columns: 1fr;
    }

    .page-inner .news-image,
    .page-inner .article-image,
    html[dir="rtl"] .page-inner .news-image,
    html[dir="rtl"] .page-inner .article-image {
        border-radius: 1.1rem 1.1rem 0 0;
        min-height: 10rem;
        height: 10rem;
    }
}

/* Print Styles */
@media print {
    .navbar,
    .footer,
    .btn,
    .pagination,
    .hero-orbs,
    .hero-rig,
    .hero-grid,
    .hero-stage,
    .page-projector,
    .site-lightbox,
    .nav-scroll-sentinel {
        display: none;
    }
}

