::-webkit-scrollbar{
    width: 0.7vw;
  
}
::-webkit-scrollbar-thumb{
     background:#823140; border-radius: 60px; 
}

/* تعريف الخط المحلي Bahij */
@font-face {
    font-family: 'Bahij';
    src: url('Bahij.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
}

/* استدعاء خطوط اللغات الأجنبية (الإنجليزية) والشعار فقط */
@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@800&family=Poppins:wght@300;400;600;800&display=swap');

:root {
    --bg-color: #f8f9fa;
    --text-color: #1a1a1a;
    --primary-color: #823140; 
    --glass-bg: rgba(255, 255, 255, 0.7);
    --glass-border: rgba(255, 255, 255, 0.3);
    --nav-bg: rgba(255, 255, 255, 0.1);
    --nav-scrolled: rgba(255, 255, 255, 0.95);
    --card-hover: rgba(255, 255, 255, 0.9);
}

.dark-mode {
    --bg-color: #0f1115;
    --text-color: #f0f0f0;
    --primary-color: #823140;
    --glass-bg: rgba(15, 17, 21, 0.6);
    --glass-border: rgba(255, 255, 255, 0.1);
    --nav-bg: rgba(15, 17, 21, 0.1);
    --nav-scrolled: rgba(15, 17, 21, 0.95);
    --card-hover: rgba(30, 34, 42, 0.8);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-padding-top: 80px; 
}

body {
    /* الخط الافتراضي للغات اليسار لليمين (الإنجليزية) */
    font-family: 'Poppins', Tahoma, sans-serif;
    background-color: var(--bg-color);
    color: var(--text-color);
    transition: background-color 0.5s ease, color 0.5s ease;
    overflow-x: hidden;
    line-height: 1.6; 
    /* كود منع تحديد النصوص (Text Selection) */
    -webkit-user-select: none; /* Safari */
    -ms-user-select: none; /* IE 10 and IE 11 */
    user-select: none; /* Standard syntax */
}

#scroll-progress {
    position: fixed;
    top: 0;
    left: 0;
    width: 0%;
    height: 4px;
    background: var(--primary-color);
    z-index: 10000;
    transition: width 0.1s;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 1.5rem;
    color: var(--primary-color);
    text-transform: uppercase;
    letter-spacing: 2px;
}

header {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    background: var(--nav-bg);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--glass-border);
    transition: all 0.4s ease;
}

header.scrolled {
    background: var(--nav-scrolled);
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
    padding: 10px 0;
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 80px;
    transition: height 0.4s ease;
}

/* تصغير ارتفاع القائمة ليتناسب مع تصغير الشعار */
header.scrolled .nav-container {
    height: 50px; 
}

.logo {
    display: flex;
    align-items: center;
    text-decoration: none;
}

.logo img {
    height: 45px;
    width: auto;
    transition: height 0.4s ease;
    object-fit: contain;
}

header.scrolled .logo img {
    height: 35px;
}

.desktop-nav .nav-links {
    display: flex;
    list-style: none;
    gap: 30px;
}

.desktop-nav a {
    text-decoration: none;
    color: var(--text-color);
    font-weight: 600;
    transition: color 0.3s, font-size 0.4s ease; 
    position: relative;
    padding-bottom: 5px;
    font-size: 1rem;
}

/* تصغير خطوط المينيو عند التمرير للأسفل */
header.scrolled .desktop-nav a {
    font-size: 0.85rem;
}

.desktop-nav a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    background: var(--primary-color);
    bottom: 0;
    left: 0;
    transition: width 0.3s ease-in-out;
}

.desktop-nav a:hover::after,
.desktop-nav a.active::after {
    width: 100%;
}

.desktop-nav a:hover,
.desktop-nav a.active {
    color: var(--primary-color);
}

.nav-controls {
    display: flex;
    align-items: center;
    gap: 15px;
}

.nav-controls button {
    background: none;
    border: none;
    color: var(--text-color);
    font-size: 1.2rem;
    cursor: pointer;
    transition: color 0.3s, transform 0.3s, font-size 0.4s ease; 
}

/* تصغير أزرار التحكم (الترجمة، النمط المظلم) عند التمرير للأسفل */
header.scrolled .nav-controls button {
    font-size: 1rem;
}

.nav-controls button:hover {
    color: var(--primary-color);
    transform: scale(1.1);
}

.lang-switcher {
    position: relative;
}

.lang-dropdown {
    position: absolute;
    top: 150%;
    right: 0;
    background: var(--glass-bg);
    backdrop-filter: blur(15px);
    border: 1px solid var(--glass-border);
    list-style: none;
    border-radius: 8px;
    overflow: hidden;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    min-width: 120px;
}

.lang-switcher:hover .lang-dropdown {
    opacity: 1;
    visibility: visible;
    top: 100%;
}

.lang-dropdown li {
    padding: 10px 15px;
    cursor: pointer;
    transition: background 0.3s;
}

.lang-dropdown li:hover {
    background: var(--primary-color);
    color: #fff;
}

#mobile-toggle {
    display: none;
}

#mobile-menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    z-index: 2000;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-100%);
    transition: all 0.6s cubic-bezier(0.77, 0, 0.175, 1);
}

#mobile-menu-overlay.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

#close-menu {
    position: absolute;
    top: 30px;
    right: 30px;
    background: none;
    border: none;
    font-size: 2rem;
    color: var(--text-color);
    cursor: pointer;
}

.mobile-links {
    list-style: none;
    text-align: center;
}

.mobile-links li {
    margin: 30px 0;
}

.mobile-links a {
    font-size: 2rem;
    font-weight: 800;
    text-decoration: none;
    color: var(--text-color);
    transition: color 0.3s;
    position: relative;
    padding-bottom: 5px;
}

.mobile-links a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 3px;
    background: var(--primary-color);
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    transition: width 0.3s ease-in-out;
}

.mobile-links a:hover::after,
.mobile-links a.active::after {
    width: 100%;
}

.mobile-links a:hover,
.mobile-links a.active {
    color: var(--primary-color);
}

.hero {
    position: relative;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    z-index: -1;
}

.hero-bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transform: scale(1.1);
    animation: zoomInOut 20s infinite alternate;
}

.overlay {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: linear-gradient(to bottom, rgba(0,0,0,0.7), rgba(0,0,0,0.3));
}

.hero-content {
    color: #fff;
}

.welcome-text {
    font-size: 1.5rem;
    letter-spacing: 3px;
    margin-bottom: 5px;
    font-weight: 400;
}

.company-name {
    font-size: 1.8rem;
    font-weight: 600;
    line-height: 1.5;
    margin-bottom: 20px;
}

.brand-title {
    font-family: 'Montserrat', sans-serif;
    font-size: 5rem;
    font-weight: 800;
    color: var(--primary-color);
    margin-bottom: 20px;
    text-shadow: 2px 4px 10px rgba(0,0,0,0.5);
    line-height: 1.1;
}

.btn {
    display: inline-block;
    padding: 12px 30px;
    background: var(--primary-color);
    color: #fff;
    text-decoration: none;
    border-radius: 30px;
    font-weight: 600;
    margin-top: 20px;
    transition: all 0.3s;
    border: 1px solid transparent;
}

.btn:hover {
    background: transparent;
    border: 1px solid var(--primary-color);
    color: var(--primary-color);
    transform: translateY(-3px);
}

.about-section {
    padding: 100px 0;
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: center;
}

.about-text p {
    font-size: 1.15rem; 
    line-height: 1.8;
    margin-bottom: 20px;
    color: var(--text-color);
    opacity: 0.9; 
}

/* تعديلات السلايدشو في CSS */
.slideshow-container {
    position: relative;
    width: 100%;
    height: 450px; 
    border-radius: 15px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.2);
    overflow: hidden;
}

.about-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0;
    transition: opacity 1s ease-in-out, transform 0.5s;
    border-radius: 15px;
}

.about-slide.active {
    opacity: 1;
}

.slideshow-container:hover .about-slide.active {
    transform: scale(1.03);
}

.products-section {
    padding: 100px 0;
    background: var(--glass-bg);
}

.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.product-card {
    background: var(--glass-bg);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid var(--glass-border);
    padding: 40px 20px;
    border-radius: 20px;
    text-align: center;
    transition: all 0.4s ease;
    cursor: pointer;
}

.product-card:hover {
    transform: translateY(-10px);
    background: var(--card-hover);
    box-shadow: 0 15px 30px rgba(0,0,0,0.1);
    border-color: var(--primary-color);
}

.icon-wrapper {
    font-size: 3.5rem; 
    color: var(--primary-color);
    margin-bottom: 20px;
    height: 80px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.icon-wrapper.image-icon {
    overflow: hidden;
    display: flex;
    justify-content: center;
    align-items: center;
}

.custom-squat-icon {
    height: 85%;
    width: auto;
    object-fit: contain;
    filter: invert(70%) sepia(19%) saturate(882%) hue-rotate(352deg) brightness(91%) contrast(87%);
}

.dark-mode .custom-squat-icon {
    filter: invert(85%) sepia(18%) saturate(1469%) hue-rotate(344deg) brightness(94%) contrast(92%);
}

.icon-wrapper i,
.icon-wrapper iconify-icon {
    color: var(--primary-color);
}

.contact-section {
    position: relative;
    min-height: 100vh; 
    padding: 100px 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.contact-bg {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    z-index: -1;
}

.contact-bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.contact-container {
    width: 100%;
    z-index: 1;
}

.contact-glass-card {
    background: rgba(15, 17, 21, 0.7);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    padding: 50px;
    border-radius: 20px;
    max-width: 900px;
    margin: 0 auto;
    color: #fff;
    text-align: center;
}

.contact-glass-card .section-title {
    color: #fff;
}

.contact-content-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    margin-top: 30px;
    align-items: center;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 25px;
    text-align: left;
}

[dir="rtl"] .contact-info {
    text-align: right;
}

.info-item {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 15px;
    font-size: 1.1rem;
}

.info-item i {
    color: var(--primary-color);
    font-size: 1.5rem;
    min-width: 30px;
    text-align: center;
}

.map-container {
    width: 100%;
}

.map-container iframe {
    border-radius: 15px;
    box-shadow: 0 10px 20px rgba(0,0,0,0.3);
}

#back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background: var(--primary-color);
    color: #fff;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    border: none;
    font-size: 1.2rem;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s;
    z-index: 999;
}

#back-to-top.show {
    opacity: 1;
    visibility: visible;
}

#back-to-top:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.3);
}

@keyframes zoomInOut {
    0% { transform: scale(1); }
    100% { transform: scale(1.1); }
}

.hidden-element {
    opacity: 0;
    transform: translateY(50px);
    transition: all 0.8s cubic-bezier(0.5, 0, 0, 1);
}

.show-element {
    opacity: 1;
    transform: translateY(0);
}

@media (max-width: 768px) {
    .desktop-nav { display: none; }
    #mobile-toggle { display: block; }
    .about-grid { grid-template-columns: 1fr; }
    .brand-title { font-size: 3.5rem; }
    .company-name { font-size: 1.4rem; }
    .contact-glass-card { padding: 30px; }
    .contact-content-wrapper { grid-template-columns: 1fr; }
    .slideshow-container { height: 300px; } 
}

/* استخدام خط Bahij للغات اليمين إلى اليسار (كوردى وعربى) */
[dir="rtl"] body {
    font-family: 'Bahij', Tahoma, sans-serif;
    letter-spacing: 0; 
}

[dir="rtl"] .lang-dropdown {
    right: auto;
    left: 0;
}