/* ========== نظام ألوان عام (Light / Dark) ========== */
/* منع التحديد بالكامل */
* {
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none !important;
}

/* منع حفظ الصور من الموبايل */
img {
    -webkit-touch-callout: none;
    -webkit-user-drag: none;
}


:root {
    --bg: #f3f6fb;
    --bg-soft: #e3edf8;
    --bg-card: #ffffff;
    --border-subtle: #dde4f0;

    --text-main: #0f172a;
    --text-muted: #6b7280;

    --primary: #0077c8;
    /* أزرق أساسي */
    --primary-soft: #e1f2ff;
    /* خلفيات خفيفة */
    --primary-strong: #005b96;
    --accent-warm: #ff8a3c;
    /* لمسة برتقالي بسيطة */

    --radius-lg: 18px;
    --radius-md: 12px;

    --shadow-soft: 0 14px 35px rgba(15, 23, 42, 0.08);
    --shadow-header: 0 4px 18px rgba(15, 23, 42, 0.06);

    --transition-fast: 0.18s ease-out;
}
html{
    scroll-behavior: smooth;
}
body.dark {
    --bg: #020617;
    --bg-soft: #020b1e;
    --bg-card: #020b1a;
    --border-subtle: #1e293b;

    --text-main: #f3f3f3;
    --text-muted: #b9bfca;

    --primary: #38bdf8;
    --primary-soft: rgba(56, 189, 248, 0.12);
    --primary-strong: #0ea5e9;
    --accent-warm: #fdba74;

    --shadow-soft: 0 20px 50px rgba(0, 0, 0, 0.65);
    --shadow-header: 0 10px 30px rgba(0, 0, 0, 0.5);
}

/* ========== Reset & Base ========== */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    font-family: "Cairo", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

body {
    background:  var(--bg);
    color: var(--text-main);
    min-height: 100vh;
    width: 100%;
    line-height: 1.7;
    transition: background 0.35s ease, color 0.25s ease;
}
/* Canvas الخلفية */
#techCanvasContainer {
    position: fixed;
    inset: 0;
    z-index: -2;
    pointer-events: none;
    overflow: hidden;
    pointer-events: none;
}

#techCanvas {
    width: 100%;
    height: 100%;
    display: block;
}

/* الشبكة السداسية */
.hex-tech-bg {
    position: fixed;
    inset: 0;
    z-index: -1;
    pointer-events: none;
    overflow: hidden;
}

/* النقاط السداسية */
.hex {
    position: absolute;
    width: 90px;
    height: 52px;
    border-left: 1.5px solid var(--hex-color);
    border-right: 1.5px solid var(--hex-color);
    opacity: 0.45;
    transform-origin: center;
}

.hex:before,
.hex:after {
    content: "";
    position: absolute;
    width: 64px;
    height: 64px;
    border-top: 1.5px solid var(--hex-color);
    border-right: 1.5px solid var(--hex-color);
    transform: rotate(60deg);
    top: -32px;
    left: -33px;
}
/* اللمعة */
.hex::after,
.hex::before {
    animation: shineHex 6s infinite ease-in-out;
}

/* العقد الضوئية */
.hex-dot {
    position: absolute;
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background: var(--hex-glow);
    box-shadow: 0 0 15px var(--hex-glow);
    opacity: .3;
    animation: glowDot 4s infinite ease-in-out;
}

/* Light Mode */
body:not(.dark) {
    --hex-color: rgba(0, 119, 200, 0.35);
    --hex-glow: rgba(0, 191, 255, 0.9);
}

/* Dark Mode */
body.dark {
    --hex-color: rgba(56, 189, 248, 0.25);
    --hex-glow: rgba(56, 189, 248, 1);
}

/* نبضات */
@keyframes glowDot {
    0% { opacity: 0.1; transform: scale(.7); }
    50% { opacity: 1;   transform: scale(1.2); }
    100% { opacity: 0.1; transform: scale(.7); }
}

/* لمعة الخط */
@keyframes shineHex {
    0% { border-color: var(--hex-color); opacity: .4; }
    50% { border-color: var(--hex-glow); opacity: 1; }
    100% { border-color: var(--hex-color); opacity: .4; }
}

/* اتجاه بحسب الـ dir على الـ html */
html[dir="rtl"] body {
    direction: rtl;
}

html[dir="ltr"] body {
    direction: ltr;
}


.container {
    width: min(1200px, 95%);
    margin: 0 auto;
    backdrop-filter: blur(2px);
}

/* ========== Header ========== */
.main-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(18px);
    border-bottom: 1px solid rgba(226, 232, 240, 0.9);
    box-shadow: var(--shadow-header);
    padding: 10px 0;
    margin-bottom: 3px;
}
@media screen and (max-width: 800px) {
    .main-header{
        padding: 3px 0;
    }
}

body.dark .main-header {
    background: rgba(15, 23, 42, 0.96);
    border-bottom-color: rgba(30, 64, 175, 0.8);
}

.main-header .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.main-header .logo {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--primary-strong);
    display: flex;
    align-items: center;
    gap: 10px;

}

.logo img {
    width: 100px;
    cursor: pointer;
}

body.dark .main-header .logo {
    color: #38bdf8;
}



/* Nav */
.main-header nav {
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    justify-content: flex-end;
}

.pc-nav {
    display: flex;
}

.mob-nav {
    display: none;
}

@media screen and (max-width: 768px) {
    .mob-nav {
        display: flex;
    }

    .pc-nav {
        display: none !important;
    }

}

.main-header nav a {
    font-size: 0.88rem;
    color: var(--text-main);
    text-decoration: none;
    padding: 6px 12px;
    border-radius: 999px;
    border: 1px solid transparent;
    transition: background var(--transition-fast), color var(--transition-fast), border-color var(--transition-fast), transform 0.1s;
}

body.dark .main-header nav a {
    color: #e5e7eb;
}

.main-header nav a:hover {
    background: var(--primary-soft);
    border-color: rgba(148, 163, 184, 0.6);
    transform: translateY(-1px);
}

body.dark .main-header nav a:hover {
    background: rgba(15, 23, 42, 0.8);
}

/* ========== Theme toggle ========== */
.theme-toggle {
    border-radius: 999px;
    border: 1px solid rgba(148, 163, 184, 0.6);
    background: transparent;
    padding: 4px 10px;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    cursor: pointer;
    font-size: 0.78rem;
    color: var(--text-main);
    transition: background var(--transition-fast), border-color var(--transition-fast), transform 0.1s;
}

body.dark .theme-toggle {
    color: #e5e7eb;
}

.theme-toggle:hover {
    background: var(--primary-soft);
    border-color: var(--primary);
    transform: translateY(-1px);
}

.theme-toggle .theme-icon {
    font-size: 0.95rem;
    opacity: 0.5;
    transition: opacity 0.2s, transform 0.2s;
}

body.dark .theme-toggle .moon {
    opacity: 1;
    transform: translateY(-1px);
}

body.dark .theme-toggle .sun {
    opacity: 0.3;
}

body:not(.dark) .theme-toggle .sun {
    opacity: 1;
    transform: translateY(-1px);
}

.nav-links {
    display: none;
}

.nav-links.active {
    position: fixed;
    top: 0;
    right: 0;
    left: 0;
    bottom: 0;
    width: 100%;
    height: 100vh;
    background: var(--bg-soft);
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-start;
    padding: 20px;
    gap: 16px;
    z-index: 100;
    transform: translateX(100%);
    animation: transform2 0.4s ease-in forwards;
    box-shadow: var(--shadow-soft);
    padding-top: 100px;
    opacity: 0;
}

@keyframes transform2 {
    0% {
        transform: translateX(100%);
        opacity: 0;

    }

    70% {
        opacity: 0.2;
    }

    100% {
        transform: translateX(0);
        opacity: 1;
    }
}

.nav-links a {
    text-decoration: none;
    color: var(--text-main);
    font-size: 1rem;
    font-weight: 600;
}
.fa-xmark{
    animation: fading 0.9s forwards;
    z-index: 101;
}
@keyframes fading{
    0%{
        opacity: 0;
    }
    55%{
        opacity: 0;
    }
    100%{
        opacity: 1;
    }
}

/* ========== Slider (Animated & Responsive) ========== */
.slider-section {
    margin-bottom: 40px;
}

.slider {
    position: relative;
    overflow: hidden;
    border-radius: 24px;
    background: var(--bg-soft);
    box-shadow: var(--shadow-soft);
    direction: ltr;
}

/* كل سلايد */
.slide {
    position: relative;
    display: none;
    opacity: 0;
    transform: translateX(24px);
}

/* السلايد النشط مع أنيميشن */
.slide.active {
    display: block;
    animation: slideFadeIn 0.7s ease-out forwards;
}

/* صورة السلايد – ارتفاع مرن حسب عرض الشاشة */
.slide img {
    width: 100%;
    height: clamp(220px, 55vw, 620px);
    object-fit: cover;
    display: block;
    transform-origin: center center;
}

/* تكبير بسيط للصورة طول فترة عرض السلايد */
.slide.active img {
    animation: slideZoom 6s ease-out forwards;
}

/* overlay ناعم فوق الصورة */
.slide::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(120deg, rgba(15, 23, 42, 0.75), transparent 55%);
}

/* محتوى السلايد (النص) */
.slide-content {
    position: absolute;
    top: 50%;
    right: 7%;
    transform: translateY(-50%) translateY(14px);
    background: rgba(15, 23, 42, 0.9);
    color: #f9fafb;
    padding: 18px 22px;
    border-radius: 16px;
    max-width: 42%;
    border: 1px solid rgba(148, 163, 184, 0.5);
    box-shadow: 0 20px 40px rgba(15, 23, 42, 0.6);
    opacity: 0;
    display: none;
}

body:not(.dark) .slide-content {
    background: rgba(15, 23, 42, 0.9);
}

/* أنيميشن ظهور النص */
.slide.active .slide-content {
    animation: slideContentUp 0.55s ease-out 0.1s forwards;
}

.slide-content h2 {
    font-size: 1.7rem;
    margin-bottom: 6px;
}

.slide-content p {
    margin-bottom: 10px;
    font-size: 0.92rem;
    color: #e5e7eb;
}

/* أزرار السلايدر */
.slider-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(15, 23, 42, 0.8);
    border: none;
    color: #f9fafb;
    padding: 6px 10px;
    cursor: pointer;
    border-radius: 999px;
    font-size: 1.1rem;
    box-shadow: 0 10px 25px rgba(15, 23, 42, 0.7);
    transition: background 0.15s, transform 0.1s;
}

.slider-btn.prev {
    left: 12px;
}

.slider-btn.next {
    right: 12px;
}

.slider-btn:hover {
    background: rgba(15, 23, 42, 0.95);
    transform: translateY(-50%) translateY(-1px);
}

/* نقاط السلايدر */
.slider-dots {
    text-align: center;
    margin-top: 10px;
}

.slider-dots .dot {
    display: inline-block;
    width: 9px;
    height: 9px;
    margin: 0 4px;
    border-radius: 999px;
    background-color: rgba(148, 163, 184, 0.7);
    cursor: pointer;
    transition: background 0.18s, width 0.18s;
}

.slider-dots .dot.active {
    width: 20px;
    background: linear-gradient(90deg, var(--primary), var(--primary-strong));
}

/* أنيميشنات السلايدر */
@keyframes slideFadeIn {
    from {
        opacity: 0;
        transform: translateX(24px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideZoom {
    from {
        transform: scale(1.02);
    }

    to {
        transform: scale(1.06);
    }
}

@keyframes slideContentUp {
    from {
        opacity: 0;
        transform: translateY(-50%) translateY(16px);
    }

    to {
        opacity: 1;
        transform: translateY(-50%) translateY(0);
    }
}

/* موبايل – نخلي النص تحت الصورة بدون أنيميشن مزعجة */
@media (max-width: 768px) {
    .slide-content {
        position: static;
        transform: none;
        max-width: 100%;
        margin: -70px 12px 14px;
        opacity: 1;
        animation: none !important;
    }

    .slider {
        border-radius: 0 0 24px 24px;
    }

    .slide img {
        height: clamp(220px, 65vw, 320px);
    }
}


/* ========== Buttons عامّة ========== */
.btn {
    display: inline-block;
    padding: 7px 18px;
    border-radius: 999px;
    border: none;
    background: linear-gradient(135deg, var(--primary), var(--primary-strong));
    color: #f9fafb;
    cursor: pointer;
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: 600;
    transition: transform 0.1s, box-shadow 0.15s, opacity 0.15s;
    box-shadow: 0 10px 25px rgba(15, 23, 42, 0.35);
}

.btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 14px 32px rgba(15, 23, 42, 0.45);
}

.btn:active {
    transform: translateY(0);
    box-shadow: 0 6px 18px rgba(15, 23, 42, 0.3);
    opacity: 0.95;
}

.btn.btn-outline {
    background: transparent;
    color: var(--primary-strong);
    border: 1px solid var(--primary);
    box-shadow: none;
}

.btn.btn-outline:hover {
    background: var(--primary-soft);
}

/* ========== Section Header ========== */
.section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 16px;
    gap: 8px;
}
@media screen and (max-width: 768px) {
    .section-header {
        flex-direction: column;
        align-items: flex-start;
    }
    
}

.section-header h2 {
    font-size: 1.3rem;
    font-weight: 600;
    position: relative;
    padding-inline-start: 10px;
}

.section-header h2::before {
    content: "";
    position: absolute;
    right: -2px;
    top: 50%;
    transform: translateY(-50%);
    width: 3px;
    height: 22px;
    border-radius: 999px;
    background: linear-gradient(180deg, var(--primary), var(--primary-strong));
}

.section-header .view-all {
    font-size: 0.82rem;
    color: var(--primary-strong);
    text-decoration: none;
    padding: 4px 10px;
    border-radius: 999px;
    border: 1px solid var(--border-subtle);
    background: var(--bg-card);
    transition: background 0.15s, color 0.15s, transform 0.1s;
}

.section-header .view-all:hover {
    background: var(--primary-soft);
    transform: translateY(-1px);
}

/* ========== Articles ========== */
.articles-section {
    margin-bottom: 40px;
}

.articles-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 18px;
}

.article-card {
    background-color: var(--bg-card);
    border-radius: var(--radius-lg);
    padding: 14px 14px 16px;
    box-shadow: var(--shadow-soft);
    border: 1px solid var(--border-subtle);
    transition: transform 0.12s, box-shadow 0.15s, border-color 0.15s;
    max-width: 280px;
}

.article-card:hover {
    transform: translateY(-3px);
    border-color: rgba(148, 163, 184, 0.9);
    box-shadow: 0 18px 40px rgba(15, 23, 42, 0.16);
}
.article-card img {
    width: 100%;
    border-radius: var(--radius-lg);
    margin-bottom: 8px;
    object-fit: cover;
    max-height: 210px;
}

.article-meta {
    display: flex;
    justify-content: space-between;
    font-size: 0.75rem;
    margin-bottom: 6px;
    color: var(--text-muted);
}

.article-meta .tag {
    background-color: var(--primary-soft);
    padding: 2px 8px;
    border-radius: 999px;
    font-size: 0.75rem;
    color: var(--primary-strong);
}

.article-card h3 {
    font-size: 1rem;
    margin-bottom: 6px;
}

.article-card p {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-bottom: 8px;
}

.article-card .read-more {
    font-size: 0.8rem;
    color: var(--primary-strong);
    text-decoration: none;
    position: relative;
    padding-bottom: 2px;
}

.article-card .read-more::after {
    content: "";
    position: absolute;
    right: 0;
    bottom: -1px;
    width: 0;
    height: 1px;
    background: var(--primary-strong);
    transition: width 0.18s;
}

.article-card .read-more:hover::after {
    width: 100%;
}

/* ========== Products ========== */
.products-section {
    margin-bottom: 56px;
}

.filters {
    margin-bottom: 14px;
}

.filter-btn {
    display: inline-block;
    margin-left: 8px;
    margin-bottom: 8px;
    padding: 5px 12px;
    border-radius: 999px;
    border: 1px solid var(--border-subtle);
    background-color: var(--bg-card);
    cursor: pointer;
    font-size: 0.82rem;
    color: var(--text-muted);
    transition: background 0.15s, color 0.15s, border-color 0.15s, transform 0.1s;
}

.filter-btn:hover {
    transform: translateY(-1px);
    border-color: rgba(148, 163, 184, 0.85);
}

.filter-btn.active {
    background: linear-gradient(135deg, var(--primary), var(--primary-strong));
    color: #f9fafb;
    border-color: transparent;
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
    gap: 18px;
    justify-content: center; 
}

.product-card {
    background-color: var(--bg-card);
    border-radius: 20px;
    padding: 10px 10px 14px;
    text-align: center;
    box-shadow: var(--shadow-soft);
    border: 1px solid var(--border-subtle);
    transition: transform 0.12s, box-shadow 0.15s, border-color 0.15s;
    max-width: 280px; 
}
@media (max-width: 768px) {
    .products-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }

    .product-card {
        max-width: 100%;
        margin: 0;
    }

    .product-card img {
        max-height: 150px;
    }

    .product-card h3 {
        font-size: 0.85rem;
    }

    .product-card .product-note {
        font-size: 0.72rem;
    }
}

.product-card:hover {
    transform: translateY(-3px);
    border-color: rgba(148, 163, 184, 0.9);
    box-shadow: 0 18px 40px rgba(15, 23, 42, 0.18);
}

.product-card img {
    width: 100%;
    border-radius: 14px;
    margin-bottom: 8px;
    object-fit: cover;
    max-height: 210px;
}

.product-card h3 {
    font-size: 0.95rem;
    margin-bottom: 4px;
}

.product-card .price {
    font-weight: 600;
    margin-bottom: 4px;
    font-size: 0.86rem;
    color: var(--primary-strong);
}

.product-card .product-note {
    font-size: 0.78rem;
    color: var(--text-muted);
    margin-bottom: 8px;
}

/* ========== Responsive ========== */
@media (max-width: 768px) {
    .main-header .container {
        flex-direction: row;
        align-items: center;
        gap: 8px;
        width: 90%;
    }

    .main-header nav {

        justify-content: flex-start;
        flex-wrap: wrap;
    }

    .slide-content {
        position: static;
        transform: none;
        max-width: 100%;
        margin: -70px 12px 14px;
    }

    .slider {
        border-radius: 0 0 24px 24px;
    }

    .slide img {
        height: 250px;
    }
}



/* ===== About Section ===== */
.about-section {
    margin-bottom: 40px;
}

.about-grid {
    display: grid;
    grid-template-columns: minmax(0, 2fr) minmax(0, 1.5fr);
    gap: 20px;
}

.about-text h2 {
    font-size: 1.4rem;
    margin-bottom: 10px;
}

.about-text p {
    font-size: 0.92rem;
    color: var(--text-muted);
    margin-bottom: 8px;
}

.about-text p strong {
    color: var(--primary-strong);
}

.about-highlights {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
}

.about-card {
    background-color: var(--bg-card);
    border-radius: 14px;
    padding: 12px;
    text-align: center;
    border: 1px solid var(--border-subtle);
    box-shadow: var(--shadow-soft);
}

.about-number {
    display: block;
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--primary-strong);
}

.about-label {
    font-size: 0.82rem;
    color: var(--text-muted);
}

/* ===== Contact Section ===== */
.contact-section {
    margin-bottom: 40px;
}

.contact-card {
    background-color: var(--bg-card);
    border-radius: 18px;
    padding: 18px;
    border: 1px solid var(--border-subtle);
    box-shadow: var(--shadow-soft);
    display: grid;
    grid-template-columns: minmax(0, 1.4fr) minmax(0, 1.2fr);
    gap: 18px;
}

.contact-text h2 {
    font-size: 1.3rem;
    margin-bottom: 8px;
}

.contact-text p {
    font-size: 0.9rem;
    color: var(--text-muted);
    margin-bottom: 10px;
}

.contact-text ul {
    list-style: none;
    font-size: 0.85rem;
    color: var(--text-muted);
}

.contact-text li {
    margin-bottom: 4px;
}

.contact-form .form-row {
    margin-bottom: 8px;
}

.contact-form label {
    display: block;
    font-size: 0.8rem;
    margin-bottom: 4px;
    color: var(--text-muted);
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: 7px 9px;
    border-radius: 10px;
    border: 1px solid var(--border-subtle);
    font-size: 0.85rem;
    background: #fff;
}

body.dark .contact-form input,
body.dark .contact-form textarea {
    background: #020617;
    color: var(--text-main);
    border-color: #1f2937;
}

.contact-form input:focus,
.contact-form textarea:focus {
    outline: none;
    border-color: var(--primary);
}

/* responsive */
@media (max-width: 768px) {
    .about-grid {
        grid-template-columns: minmax(0, 1fr);
    }

    .about-highlights {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .contact-card {
        grid-template-columns: minmax(0, 1fr);
    }
}



/* ===== Language Switch ===== */
.lang-switch {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 0.8rem;
    margin-inline: 4px;
}

.lang-btn {
    background: transparent;
    border: none;
    padding: 3px 6px;
    cursor: pointer;
    font-size: 0.8rem;
    color: var(--text-muted);
    border-radius: 999px;
    transition: background 0.15s, color 0.15s;
}

.lang-btn:hover {
    background: var(--primary-soft);
    color: var(--primary-strong);
}

.lang-btn.active {
    font-weight: 600;
    color: var(--primary-strong);
}

.lang-divider {
    color: var(--text-muted);
    font-size: 0.8rem;
}

/* إخفاء أي حاجة تخص جوجل ترانسليت */
#google_translate_element {
    display: none !important;
}

.goog-te-banner-frame.skiptranslate {
    display: none !important;
}

.goog-logo-link {
    display: none !important;
}

.goog-te-gadget span {
    display: none !important;
}

/* منع الـ body من النزول تحت البانر */
body {
    top: 0 !important;
}



/* ===== Fullscreen Loader أثناء الترجمة ===== */
.page-loader {
    position: fixed;
    inset: 0;
    background: rgba(15, 23, 42, 0.9);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 999;
}

body.dark .page-loader {
    background: rgba(15, 23, 42, 0.96);
}

.page-loader.active {
    display: flex;
}

.loader-circle {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    border: 4px solid rgba(148, 163, 184, 0.4);
    border-top-color: var(--primary);
    animation: loader-spin 0.9s linear infinite;
}

@keyframes loader-spin {
    to {
        transform: rotate(360deg);
    }
}


/* ===== Search Form in Header ===== */
.search-form {
    position: relative;
    display: flex;
    align-items: center;
    gap: 6px;
}

.search-form input {
    padding: 5px 10px;
    border-radius: 999px;
    border: 1px solid var(--border-subtle);
    font-size: 0.8rem;
    background-color: var(--bg-card);
    color: var(--text-main);
    min-width: 150px;
}

.search-form input::placeholder {
    font-size: 0.78rem;
    color: var(--text-muted);
}

.search-btn {
    padding: 5px 10px;
    border-radius: 999px;
    border: none;
    background: linear-gradient(135deg, var(--primary), var(--primary-strong));
    color: #f9fafb;
    font-size: 0.78rem;
    cursor: pointer;
    white-space: nowrap;
    transition: background 0.15s, transform 0.1s;
}

.search-btn:hover {
    transform: translateY(-1px);
}

body.dark .search-form input {
    background-color: #020617;
    border-color: #1f2937;
    color: #e5e7eb;
}

@media (max-width: 768px) {
    .search-form {
        width: 100%;
        margin-top: 6px;
    }

    .search-form input {
        width: 100%;
    }
}

#techCanvasContainer,
#techCanvas,
#hexBg {
    pointer-events: none ;
}
