/* المتغيرات العامة */
:root {
    --primary-color: #3a86ff;
    --primary-dark: #2667cc;
    --primary-light: #a5c8ff;
    --secondary-color: #8338ec;
    --accent-color: #ff006e;
    --text-color: #2b2d42;
    --text-light: #8d99ae;
    --bg-color: #ffffff;
    --bg-light: #f8f9fa;
    --bg-dark: #e9ecef;
    --border-color: #dee2e6;
    --font-family: 'El Messiri', sans-serif;
    --box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    --transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

/* إعادة الضبط الأساسية */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--font-family);
    color: var(--text-color);
    background-color: var(--bg-color);
    line-height: 1.7;
    overflow-x: hidden;
}

body.rtl {
    direction: rtl;
    text-align: right;
}

/* شاشة التحميل */
.loader-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: var(--bg-color);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    transition: opacity 0.5s ease, visibility 0.5s ease;
}

.loader-circle {
    width: 100px;
    height: 100px;
    margin-bottom: 20px;
}

.loader-circle svg {
    width: 100%;
    height: 100%;
}

.loader-text {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-color);
    letter-spacing: 2px;
}

/* شريط التنقل الزجاجي */
.glass-navbar {
    position: fixed;
    top: 120px;
    left: 0;
    height: 120px;
    width: 100%;
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    z-index: 1000;
    transition: var(--transition);
}

.glass-navbar.scrolled {
    background: rgba(255, 255, 255, 0.95);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 2rem;
    max-width: 1400px;
    margin: 0 auto;
    padding-top: 35px;
}

.nav-logo {
    display: flex;
    align-items: center;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-color);
    text-decoration: none;
}

.nav-logo img {
    height: 70px;
    margin-left: 20px;
    margin-top: -15px;
}

.nav-menu {
    display: flex;
}

.nav-menu a {
    position: relative;
    margin: 0 1rem;
    color: var(--text-color);
    text-decoration: none;
    font-weight: 500;
    transition: var(--transition);
    padding: 0.5rem 0;
    transition: color 0.2s, background 0.2s;
    z-index: 1;
}

.nav-menu a::before {
    content: '';
    position: absolute;
    right: 50%;
    top: 50%;
    transform: translate(50%, -50%) scale(0.7);
    width: 120%;
    height: 70%;
    background: linear-gradient(90deg, #3a86ff 0%, #00b4d8 100%);
    opacity: 0.12;
    border-radius: 2em;
    z-index: -1;
    transition: transform 0.3s cubic-bezier(.4,2,.6,1), opacity 0.3s;
}

.nav-menu a:hover,
.nav-menu a:focus {
    color: #fff;
    background: none;
}

.nav-menu a:hover::before,
.nav-menu a:focus::before {
    opacity: 1;
    transform: translate(50%, -50%) scale(1.1);
    box-shadow: 0 4px 18px 0 rgba(58,134,255,0.18);
}

.nav-menu a:hover {
    text-shadow: 0 2px 12px #3a86ff55, 0 0px 2px #00b4d855;
    font-weight: 700;
    letter-spacing: 0.5px;
}

.nav-tools {
    display: flex;
    align-items: center;
}

.theme-toggle, .nav-toggle {
    background: none;
    border: none;
    color: var(--text-color);
    font-size: 1.2rem;
    cursor: pointer;
    margin-right: 1rem;
    transition: var(--transition);
}

.theme-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    background: linear-gradient(135deg, #f8fbff 60%, #e3f0ff 100%);
    border: 2px solid var(--primary-color);
    border-radius: 50%;
    color: var(--primary-color);
    font-size: 1.5rem;
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(58,134,255,0.08);
    margin-left: 0.7rem;
    transition: background 0.3s, color 0.3s, box-shadow 0.3s;
    z-index: 1202;
}

.theme-toggle:hover,
.theme-toggle.active {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: #fff;
    box-shadow: 0 4px 16px rgba(58,134,255,0.13);
}

.nav-toggle {
    display: none;
}

/* زر دخول المتجر البرتقالي في الهيدر */
.btn-store-access {
    background: linear-gradient(90deg, #fb5607, #ff8800);
    color: #fff !important;
    border: none;
    border-radius: 2rem;
    padding: 0.7rem 1.7rem;
    font-size: 1.08rem;
    font-weight: 600;
    margin: 0 0.5rem;
    box-shadow: 0 2px 12px rgba(251,86,7,0.10);
    transition: background 0.3s, color 0.3s;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}
.btn-store-access:hover {
    background: linear-gradient(90deg, #ff8800, #fb5607);
    color: #fff;
    box-shadow: 0 4px 18px rgba(251,86,7,0.18);
    transform: translateY(-2px) scale(1.04);
}
.btn-store-access:active {
    background: linear-gradient(90deg, #ff8800 60%, #fb5607 100%);
    color: #fff;
    box-shadow: 0 2px 8px rgba(251,86,7,0.18);
    transform: scale(0.98);
}
@media (max-width: 600px) {
    .btn-store-access {
        width: 100%;
        margin: 0.5rem 0 0 0;
    }
}

/* القسم البطولي مع تأثير المورف */
.morphing-hero {
    position: relative;
    height: 100vh;
    min-height: 600px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 0 2rem;
    overflow: hidden;
    background: linear-gradient(#2667cc, #ffffff 60%, #5eb1ff 80%, #959695 80%);
    box-shadow: 0 8px 32px rgba(58,134,255,0.07);
    margin-top: 0 !important;
}

.hero-shapes {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    overflow: hidden;
}

.shape {
    position: absolute;
    border-radius: 50%;
    filter: blur(60px);
    opacity: 0.6;
}

.shape-1 {
    width: 600px;
    height: 600px;
    background: var(--primary-color);
    top: -100px;
    left: -100px;
    animation: float 8s ease-in-out infinite;
}

.shape-2 {
    width: 400px;
    height: 400px;
    background: var(--secondary-color);
    bottom: -50px;
    right: -50px;
    animation: float 10s ease-in-out infinite;
}

.shape-3 {
    width: 300px;
    height: 300px;
    background: var(--accent-color);
    top: 50%;
    left: 30%;
    animation: float 12s ease-in-out infinite;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
    padding: 2.5rem 1.2rem 1.5rem 1.2rem;
    background: rgb(85, 85, 85);
    border-radius: 2.5rem;
    box-shadow: 0 4px 24px rgba(58,134,255,0.08);
    width: 1000px;
    max-width: 100%;
    color: white;
    transition: var(--transition);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 10px 30px rgba(58,134,255,0.1);
    padding: 3rem 2rem;
    margin-top: 100px;
}

.hero-content h1 {
    font-size: 3.2rem;
    margin-bottom: 18px;
    line-height: 1.25;
    font-weight: 800;
    color: var(--primary-color);
    letter-spacing: -1px;
}

.text-gradient {
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    -webkit-background-clip: text;
    background-clip: text;
}

.hero-content p {
    font-size: 1.25rem;
    margin-bottom: 32px;
    color: #444;
    opacity: 0.92;
}

.hero-buttons {
    display: flex;
    justify-content: center;
    gap: 1.2rem;
    flex-wrap: wrap;
    margin-bottom: 1.2rem;
}

.hero-buttons .btn {
  position: relative;
  overflow: hidden;
  border-radius: 50px;
  font-size: 1.15rem;
  font-weight: 700;
  padding: 1rem 2.2rem;
  margin: 0 0.5rem 0.7rem 0.5rem;
  box-shadow: 0 4px 24px rgba(58,134,255,0.10), 0 1.5px 8px rgba(0,0,0,0.04);
  background: linear-gradient(90deg, #3a86ff 0%, #00b4d8 100%);
  color: #fff;
  transition: background 0.3s, box-shadow 0.3s, transform 0.18s, color 0.2s;
  z-index: 1;
  cursor: url('../images/microscope-cursor.png'), pointer;
}
.hero-buttons .btn:hover, .hero-buttons .btn:focus {
  background: linear-gradient(90deg, #00b4d8 0%, #3a86ff 100%);
  color: #fff;
  box-shadow: 0 8px 32px rgba(58,134,255,0.18), 0 2px 12px rgba(0,0,0,0.08);
  transform: translateY(-3px) scale(1.045) rotate(-1deg);
}
.hero-buttons .btn span {
  position: relative;
  z-index: 2;
  letter-spacing: 0.5px;
}
.hero-buttons .btn i {
  margin-right: 0.7rem;
  font-size: 1.2em;
  transition: transform 0.3s;
}
.hero-buttons .btn:hover i {
  transform: scale(1.25) rotate(-10deg);
}

/* تأثير موجة متحركة عند الضغط */
.hero-buttons .btn::after {
  content: '';
  position: absolute;
  left: 50%;
  top: 50%;
  width: 0;
  height: 0;
  background: rgba(255,255,255,0.18);
  border-radius: 50%;
  transform: translate(-50%, -50%);
  transition: width 0.4s cubic-bezier(.4,2,.6,1), height 0.4s cubic-bezier(.4,2,.6,1), opacity 0.4s;
  opacity: 0;
  z-index: 0;
}
.hero-buttons .btn:active::after {
  width: 220px;
  height: 220px;
  opacity: 1;
  transition: 0s;
}

/* تخصيص زر المتجر */
.btn-store-access {
  background: linear-gradient(90deg, #fb5607, #ff8800);
  color: #fff !important;
  box-shadow: 0 2px 12px rgba(251,86,7,0.10);
}
.btn-store-access:hover, .btn-store-access:focus {
  background: linear-gradient(90deg, #ff8800, #fb5607);
  color: #fff;
}

/* تخصيص زر الاستشارة */
.btn-secondary {
  background: linear-gradient(90deg, #8338ec, #3a86ff);
  color: #fff;
}
.btn-secondary:hover, .btn-secondary:focus {
  background: linear-gradient(90deg, #3a86ff, #8338ec);
  color: #fff;
}

/* تخصيص مؤشر الماوس للبطولات */
.hero-buttons .btn, .hero-buttons .btn * {
  cursor: url('../images/microscope-cursor.png'), pointer !important;
}

/* شركاء الشركة */
.partners-slider {
    background-color: var(--bg-light);
    padding: 2rem 0;
    overflow: hidden;
}

.slider-track {
    display: flex;
    align-items: center;
    animation: scrollX 30s linear infinite;
    width: calc(200px * 14);
}

.partner-logo {
    width: 200px;
    padding: 0 2rem;
    flex-shrink: 0;
}

.partner-logo img {
    width: 100%;
    height: auto;
    filter: grayscale(100%);
    opacity: 0.6;
    transition: var(--transition);
}

.partner-logo:hover img {
    filter: grayscale(0%);
    opacity: 1;
}

/* الأقسام العامة */
.section-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2rem;
}

.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--text-color);
    margin-bottom: 1rem;
    position: relative;
    display: inline-block;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    right: 50%;
    transform: translateX(50%);
    width: 80px;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    border-radius: 2px;
}

.section-subtitle {
    color: var(--text-light);
    font-size: 1.1rem;
    max-width: 700px;
    margin: 0 auto;
}

/* قسم عن الشركة */
.about-section {
    padding: 6rem 0;
    position: relative;
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
}

.about-image {
    position: relative;
}

.image-wrapper {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: var(--box-shadow);
}

.main-image {
    width: 100%;
    height: auto;
    display: block;
}

.experience-badge {
    position: absolute;
    top: -20px;
    right: -20px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    width: 100px;
    height: 100px;
    border-radius: 50%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    z-index: 2;
}

.experience-badge span {
    font-size: 2rem;
    font-weight: 700;
    line-height: 1;
}

.experience-badge p {
    font-size: 0.8rem;
    margin-top: 0.3rem;
}

.about-features {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.feature-card {
    background-color: white;
    padding: 1.5rem;
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: var(--transition);
    text-align: center;
}

.feature-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.feature-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--primary-light), white);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 0 auto 1rem;
    font-size: 1.5rem;
    color: var(--primary-color);
}

.feature-card h3 {
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
    color: var(--text-color);
}

.feature-card p {
    font-size: 0.9rem;
    color: var(--text-light);
}

.about-text p {
    margin-bottom: 1.5rem;
    color: var(--text-light);
}

.btn-outline {
    display: inline-flex;
    align-items: center;
    padding: 0.8rem 1.8rem;
    border-radius: 50px;
    font-weight: 600;
    text-decoration: none;
    transition: var(--transition);
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
    background: transparent;
    margin-top: 1rem;
}

.btn-outline:hover {
    background: var(--primary-color);
    color: white;
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

/* إحصائيات الشركة */
.stats-section {
    position: relative;
    padding: 6rem 0;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    overflow: hidden;
}

.stats-wave {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    overflow: hidden;
    line-height: 0;
}

.stats-wave svg {
    position: relative;
    display: block;
    width: calc(100% + 1.3px);
    height: 120px;
}

.stats-wave .path {
    fill: var(--bg-color);
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
    position: relative;
    z-index: 1;
}

.stat-card {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-radius: 15px;
    padding: 2rem;
    text-align: center;
    transition: var(--transition);
}

.stat-card:hover {
    transform: translateY(-10px);
    background: rgba(255, 255, 255, 0.2);
}

.stat-number {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: white;
}

.stat-title {
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.8);
}

/* قسم المنتجات */
.products-section {
    padding: 6rem 0;
    background-color: var(--bg-light);
}

.products-filter {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 1rem;
    margin-bottom: 3rem;
}

.filter-btn {
    padding: 0.6rem 1.5rem;
    background-color: transparent;
    border: 2px solid var(--border-color);
    border-radius: 50px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    color: var(--text-light);
}

.filter-btn:hover,
.filter-btn.active {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    border-color: transparent;
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 2rem;
}

.product-card {
    background-color: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: var(--transition);
    position: relative;
}

.product-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.product-image {
    height: 220px;
    overflow: hidden;
}

.product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.product-card:hover .product-image img {
    transform: scale(1.1);
}

.product-info {
    padding: 1.5rem;
}

.product-category {
    display: inline-block;
    background-color: var(--primary-light);
    color: var(--primary-dark);
    padding: 0.3rem 0.8rem;
    border-radius: 50px;
    font-size: 0.7rem;
    font-weight: 600;
    margin-bottom: 0.8rem;
}

.product-title {
    font-size: 1.2rem;
    margin-bottom: 0.8rem;
    color: var(--text-color);
}

.product-description {
    color: var(--text-light);
    font-size: 0.9rem;
    margin-bottom: 1.2rem;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.product-price {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 1.2rem;
}

.product-actions {
    display: flex;
    justify-content: space-between;
}

.section-footer {
    text-align: center;
    margin-top: 4rem;
}

.btn-load-more {
    display: inline-flex;
    align-items: center;
    padding: 0.8rem 2rem;
    background-color: white;
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
    font-weight: 600;
    border-radius: 50px;
    transition: var(--transition);
}

.btn-load-more:hover {
    background-color: var(--primary-color);
    color: white;
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

/* قسم الخدمات */
.services-section {
    padding: 6rem 0;
    position: relative;
}

.services-tabs {
    background-color: white;
    border-radius: 20px;
    box-shadow: var(--box-shadow);
    overflow: hidden;
}

.tab-buttons {
    display: flex;
    border-bottom: 1px solid var(--border-color);
}

.tab-btn {
    flex: 1;
    padding: 1.5rem;
    background: none;
    border: none;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: var(--text-light);
    font-weight: 600;
    position: relative;
}

.tab-btn::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 0;
    width: 100%;
    height: 3px;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    transform: scaleX(0);
    transition: var(--transition);
}

.tab-btn.active {
    color: var(--primary-color);
}

.tab-btn.active::after {
    transform: scaleX(1);
}

.tab-btn i {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

.tab-content {
    padding: 2rem;
}

.tab-pane {
    display: none;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    align-items: center;
}

.tab-pane.active {
    display: grid;
}

.tab-image {
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.tab-image img {
    width: 100%;
    height: auto;
    display: block;
}

.tab-text h3 {
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
    color: var(--text-color);
}

.tab-text p {
    color: var(--text-light);
    margin-bottom: 1.5rem;
}

.tab-text ul {
    list-style: none;
    margin-bottom: 2rem;
}

.tab-text ul li {
    margin-bottom: 0.8rem;
    display: flex;
    align-items: flex-start;
}

.tab-text ul li i {
    color: var(--primary-color);
    margin-left: 0.5rem;
    margin-top: 0.2rem;
}

/* قسم التقنيات */
.tech-section {
    padding: 6rem 0;
    background-color: var(--bg-light);
}

.tech-slider {
    display: flex;
    gap: 2rem;
    overflow-x: auto;
    padding: 1rem 0;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
}

.tech-slider::-webkit-scrollbar {
    display: none;
}

.tech-slide {
    scroll-snap-align: start;
    min-width: 250px;
    flex: 1;
}

.tech-card {
    background-color: white;
    border-radius: 15px;
    padding: 2rem;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: var(--transition);
    height: 100%;
    position: relative;
    overflow: hidden;
    text-align: center;
}

.tech-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.tech-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, var(--primary-light), white);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 0 auto 1.5rem;
    font-size: 2rem;
    color: var(--primary-color);
    transition: var(--transition);
}

.tech-card:hover .tech-icon {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
}

.tech-card h3 {
    font-size: 1.2rem;
    margin-bottom: 0.8rem;
    color: var(--text-color);
}

.tech-card p {
    color: var(--text-light);
    font-size: 0.9rem;
    margin-bottom: 1.5rem;
}

.tech-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 2rem;
    opacity: 0;
    transition: var(--transition);
}

.tech-card:hover .tech-overlay {
    opacity: 1;
}

.tech-overlay h4 {
    font-size: 1.3rem;
    margin-bottom: 1rem;
}

.tech-overlay p {
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 1.5rem;
}

.tech-link {
    color: white;
    font-weight: 600;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-top: auto;
}

.tech-link i {
    margin-right: 0.5rem;
}

/* قسم اتصل بنا */
.contact-section {
    padding: 6rem 0 0;
    position: relative;
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    margin-bottom: 4rem;
}

.contact-info {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
}

.info-card {
    background-color: white;
    border-radius: 15px;
    padding: 1.5rem;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: var(--transition);
    display: flex;
    align-items: flex-start;
}

.info-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.info-icon {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, var(--primary-light), white);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1.2rem;
    color: var(--primary-color);
    margin-left: 1rem;
    flex-shrink: 0;
}

.info-content h3 {
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
    color: var(--text-color);
}

.info-content p {
    color: var(--text-light);
    font-size: 0.9rem;
    margin-bottom: 0.3rem;
}

.contact-form {
    background-color: white;
    border-radius: 15px;
    padding: 2rem;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 0.8rem 1.2rem;
    border: 1px solid var(--border-color);
    border-radius: 10px;
    font-family: var(--font-family);
    font-size: 1rem;
    transition: var(--transition);
    background-color: var(--bg-light);
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    border-color: var(--primary-color);
    outline: none;
    box-shadow: 0 0 0 3px rgba(58, 134, 255, 0.1);
    background-color: white;
}

.form-group textarea {
    resize: vertical;
    min-height: 150px;
}

.contact-map {
    height: 450px;
    width: 100%;
}

.contact-map iframe {
    width: 100%;
    height: 100%;
    border: none;
}

/* النشرة البريدية */
.newsletter-section {
    padding: 4rem 0;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
}

.newsletter-box {
    background-color: white;
    border-radius: 15px;
    padding: 3rem;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
}

.newsletter-text h3 {
    font-size: 1.8rem;
    margin-bottom: 1rem;
    color: var(--text-color);
}

.newsletter-text p {
    color: var(--text-light);
}

.newsletter-form .form-group {
    position: relative;
    margin-bottom: 0;
}

.newsletter-form input {
    width: 100%;
    padding: 1rem 1.5rem;
    border-radius: 50px;
    border: none;
    background-color: var(--bg-light);
    font-family: var(--font-family);
    font-size: 1rem;
    padding-right: 150px;
}

.newsletter-form button {
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    padding: 0 1.5rem;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    border: none;
    border-radius: 50px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
}

.newsletter-form button:hover {
    transform: translateX(5px);
}

/* الفوتر */
.main-footer {
    background-color: var(--text-color);
    color: white;
    padding: 4rem 0 0;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 3rem;
    margin-bottom: 3rem;
}

.footer-col h3 {
    font-size: 1.3rem;
    margin-bottom: 1.5rem;
    position: relative;
    padding-bottom: 0.8rem;
}

.footer-col h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    right: 0;
    width: 50px;
    height: 3px;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
}

.footer-about {
    grid-column: span 1;
}

.footer-logo {
    display: flex;
    align-items: center;
    margin-bottom: 1.5rem;
}

.footer-logo img {
    height: 40px;
    margin-left: 10px;
}

.footer-logo span {
    font-size: 1.5rem;
    font-weight: 700;
    color: white;
}

.footer-about p {
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 1.5rem;
}

.footer-social {
    display: flex;
    gap: 1rem;
}

.footer-social a {
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    color: white;
    transition: var(--transition);
}

.footer-social a img {
    width: 28px;
    height: 28px;
    object-fit: contain;
    border-radius: 50%;
    background: #fff;
    box-shadow: 0 2px 8px rgba(58,134,255,0.08);
    transition: box-shadow 0.3s, filter 0.3s;
    padding: 3px;
}
.footer-social a:hover img {
    box-shadow: 0 4px 16px rgba(58,134,255,0.13);
    filter: brightness(1.1) drop-shadow(0 0 4px var(--primary-color));
}
@media (max-width: 600px) {
    .footer-social a img {
        width: 22px;
        height: 22px;
        padding: 2px;
    }
}

.footer-links ul,
.footer-products ul {
    list-style: none;
}

.footer-links li,
.footer-products li {
    margin-bottom: 0.8rem;
}

.footer-links a,
.footer-products a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    transition: var(--transition);
    display: flex;
    align-items: center;
}

.footer-links a:hover,
.footer-products a:hover {
    color: white;
    transform: translateX(5px);
}

.footer-links a::before,
.footer-products a::before {
    content: '\f054';
    font-family: 'Font Awesome 5 Free';
    font-weight: 900;
    font-size: 0.8rem;
    margin-left: 0.5rem;
    color: var(--primary-color);
}

.footer-contact li {
    margin-bottom: 1rem;
    display: flex;
    align-items: flex-start;
    color: rgba(255, 255, 255, 0.7);
}

.footer-contact i {
    margin-left: 0.8rem;
    color: var(--primary-color);
    margin-top: 0.2rem;
}

.footer-copyright {
    background-color: rgba(0, 0, 0, 0.2);
    padding: 1.5rem 0;
}

.copyright-text {
    text-align: center;
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.9rem;
}

.footer-legal {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    margin-top: 1rem;
}

.footer-legal a {
    color: rgba(255, 255, 255, 0.5);
    text-decoration: none;
    font-size: 0.9rem;
    transition: var(--transition);
}

.footer-legal a:hover {
    color: white;
}

/* أداة التحكم في المظهر */
.theme-panel {
    position: fixed;
    top: 0;
    right: -350px;
    width: 350px;
    height: 100vh;
    background-color: #fff;
    box-shadow: -5px 0 30px rgba(0, 0, 0, 0.1);
    z-index: 2001;
    padding: 2rem 1.2rem 1.2rem 1.2rem;
    transition: right 0.5s cubic-bezier(.77,0,.18,1);
    overflow-y: auto;
    border-radius: 1.2rem 0 0 1.2rem;
}

.theme-panel.active {
    right: 0;
}

@media (max-width: 600px) {
    .theme-panel {
        width: 100vw;
        right: -100vw;
        border-radius: 0;
        padding: 1.2rem 0.5rem;
    }
    .theme-panel.active {
        right: 0;
    }
}

/* زر العودة للأعلى */
.back-to-top {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1.2rem;
    z-index: 999;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
}

.back-to-top.active {
    opacity: 1;
    visibility: visible;
}

.back-to-top:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

/* عداد الزوار العصري */
.visitor-counter-container {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    background: rgba(255,255,255,0.85);
    box-shadow: 0 4px 24px rgba(58,134,255,0.08);
    border-radius: 2rem;
    padding: 0.5rem 2rem 0.5rem 2rem;
    margin: 1.5rem auto 0 auto;
    width: fit-content;
    font-family: var(--font-family);
    font-size: 1.1rem;
    position: relative;
    z-index: 10;
    transition: var(--transition);
}
.visitor-counter-icon {
    color: var(--primary-color);
    font-size: 1.6rem;
    display: flex;
    align-items: center;
}
.visitor-counter-label {
    color: var(--text-color);
    font-weight: 600;
    margin-left: 0.5rem;
}
.visitor-counter-number {
    color: var(--primary-dark);
    font-size: 1.3rem;
    font-weight: bold;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    -webkit-background-clip: text;
    background-clip: text;
    margin-right: 0.5rem;
    letter-spacing: 2px;
    min-width: 2.5rem;
    text-align: center;
    transition: color 0.3s;
}
@media (max-width: 600px) {
    .visitor-counter-container {
        padding: 0.5rem 1rem;
        font-size: 1rem;
    }
    .visitor-counter-icon {
        font-size: 1.2rem;
    }
    .visitor-counter-number {
        font-size: 1.1rem;
    }
}

/* مفتاح دخول المتجر */
.store-access-container {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    margin: 1.2rem auto 0 auto;
    width: fit-content;
    background: rgba(255,255,255,0.85);
    box-shadow: 0 2px 12px rgba(58,134,255,0.07);
    border-radius: 1.5rem;
    padding: 0.5rem 1.5rem;
    position: relative;
    z-index: 10;
}
.store-access-input {
    border: 1px solid var(--border-color);
    border-radius: 1rem;
    padding: 0.4rem 1rem;
    font-size: 1rem;
    outline: none;
    transition: border 0.3s;
    font-family: inherit;
}
.store-access-input:focus {
    border-color: var(--primary-color);
}
.store-access-btn {
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    color: #fff;
    border: none;
    border-radius: 1rem;
    padding: 0.4rem 1.2rem;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.3s;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}
.store-access-btn:hover {
    background: linear-gradient(90deg, var(--secondary-color), var(--primary-color));
}
.store-access-msg {
    position: absolute;
    left: 50%;
    bottom: -2.2rem;
    transform: translateX(-50%);
    font-size: 0.95rem;
    color: var(--accent-color);
    min-height: 1.5rem;
    text-align: center;
    font-weight: 500;
}
@media (max-width: 600px) {
    .store-access-container {
        flex-direction: column;
        gap: 0.7rem;
        padding: 0.7rem 0.7rem;
    }
    .store-access-btn, .store-access-input {
        width: 100%;
    }
}

/* مفاتيح تبديل اللغة أعلى الصفحة */
.lang-switcher-container {
    position: absolute;
    top: 1.2rem;
    left: 2rem;
    display: flex;
    gap: 0.5rem;
    z-index: 1200;
}
.lang-btn {
    background: linear-gradient(90deg, #3a86ff, #fb5607);
    color: #fff;
    border: none;
    border-radius: 1.2rem;
    padding: 0.4rem 1.2rem;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.3s, color 0.3s, transform 0.2s, box-shadow 0.3s;
    outline: none;
    box-shadow: 0 2px 8px rgba(58,134,255,0.08);
    opacity: 0.7;
    position: relative;
    overflow: hidden;
}
.lang-btn.active, .lang-btn:hover, .lang-btn:focus {
    background: linear-gradient(90deg, #fb5607, #3a86ff);
    color: #fff;
    opacity: 1;
    transform: scale(1.08) translateY(-2px) rotate(-2deg);
    box-shadow: 0 4px 18px 0 rgba(58,134,255,0.13), 0 2px 8px #fb5607aa;
    z-index: 2;
}
.lang-btn::after {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 60% 40%, #fff7 0%, transparent 70%);
    opacity: 0;
    transition: opacity 0.3s;
    z-index: 1;
    border-radius: inherit;
}
.lang-btn.active::after, .lang-btn:hover::after, .lang-btn:focus::after {
    opacity: 0.18;
}
.lang-btn:active {
    transform: scale(0.97);
    filter: brightness(0.98);
}
@media (max-width: 600px) {
    .lang-switcher-container {
        left: 0.5rem;
        top: 0.5rem;
    }
    .lang-btn {
        font-size: 0.9rem;
        padding: 0.3rem 0.7rem;
    }
}

/* الرسوم المتحركة */
@keyframes float {
    0% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-20px);
    }
    100% {
        transform: translateY(0px);
    }
}

@keyframes scrollY {
    0% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(10px);
    }
    100% {
        transform: translateY(0);
    }
}

@keyframes scrollX {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(calc(-200px * 7));
    }
}

@keyframes medicalBgSpinModern {
    0% { transform: translate(-50%, -50%) scale(1.08) rotate(0deg); }
    100% { transform: translate(-50%, -50%) scale(1.08) rotate(360deg); }
}

/* التكيف مع الأجهزة المحمولة */
@media (max-width: 1200px) {
    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 992px) {
    .nav-menu {
        position: fixed;
        top: 0;
        right: -100%;
        width: 80%;
        max-width: 300px;
        height: 100vh;
        background-color: white;
        flex-direction: column;
        justify-content: center;
        box-shadow: -5px 0 20px rgba(0, 0, 0, 0.1);
        transition: var(--transition);
        z-index: 1000;
    }
    
    .nav-menu.active {
        right: 0;
    }
    
    .nav-menu a {
        margin: 1rem 0;
        padding: 0.8rem 2rem;
    }
    
    .nav-toggle {
        display: block;
        z-index: 1001;
    }
    
    .about-grid,
    .contact-grid,
    .tab-pane.active,
    .newsletter-box {
        grid-template-columns: 1fr;
    }
    
    .tab-image {
        order: -1;
    }
    
    .hero-content h1 {
        font-size: 2.5rem;
    }
    
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .hero-content h1 {
        font-size: 2rem;
    }
    
    .hero-content p {
        font-size: 1rem;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .about-features {
        grid-template-columns: 1fr;
    }
    
    .footer-grid {
        grid-template-columns: 1fr;
    }
    
    .theme-panel {
        width: 100%;
        right: -100%;
    }
}

@media (max-width: 576px) {
    .nav-container {
        padding: 1rem;
    }
    
    .hero-content h1 {
        font-size: 1.8rem;
    }
    
    .hero-buttons {
        flex-direction: column;
        gap: 1rem;
    }
    
    .btn {
        width: 100%;
    }
    
    .section-container {
        padding: 0 1rem;
    }
    
    .stats-grid {
        grid-template-columns: 1fr;
    }
    
    .form-row {
        grid-template-columns: 1fr;
    }
}

/* خلفية صور طبية مبتكرة ل .morphing-hero */
.morphing-hero .medical-bg-slideshow {
    position: relative;
    width: 100vw;
    max-width: 100vw;
    height: 320px;
    overflow: hidden;
    display: flex;
    align-items: center;
    z-index: 0;
    pointer-events: auto;
    background: linear-gradient(120deg, #f8fbff 60%, #e3f0ff 100%);
    border-radius: 0 0 2.5rem 2.5rem;
    box-shadow: 0 8px 32px rgba(58,134,255,0.07);
    transition: box-shadow 0.4s;
}
.morphing-hero .medical-bg-slideshow-inner {
    display: flex;
    height: 100%;
    will-change: transform;
    transition: transform 1.2s cubic-bezier(.77,0,.18,1);
}
.morphing-hero .medical-bg-slideshow img {
    min-width: 100vw;
    width: 100vw;
    height: 320px;
    object-fit: cover;
    object-position: center;
    border-radius: 0 0 2.5rem 2.5rem;
    box-shadow: 0 4px 24px rgba(58,134,255,0.10);
    opacity: 0.93;
    filter: blur(0.5px) brightness(0.98) saturate(1.08);
    transition: filter 0.7s, opacity 0.7s;
    pointer-events: auto;
}
.morphing-hero .medical-bg-slideshow img.active {
    opacity: 1;
    filter: blur(0px) brightness(1) saturate(1.12);
    z-index: 2;
}
@media (max-width: 900px) {
    .morphing-hero .medical-bg-slideshow,
    .morphing-hero .medical-bg-slideshow img {
        height: 180px;
        border-radius: 0 0 1.2rem 1.2rem;
    }
}
@media (max-width: 600px) {
    .morphing-hero .medical-bg-slideshow,
    .morphing-hero .medical-bg-slideshow img {
        height: 110px;
        border-radius: 0 0 0.7rem 0.7rem;
    }
}

/* الهيدر العلوي لمعلومات التواصل */
.top-contact-header {
    width: 100vw;
    background: linear-gradient(90deg, #3a86ff 0%, #00b4d8 100%);
    color: #fff;
    font-family: var(--font-family);
    font-size: 1rem;
    letter-spacing: 0.01em;
    box-shadow: 0 2px 12px rgba(58,134,255,0.08);
    padding: 0.3rem 0;
    position: relative;
    z-index: 1001;
}
.container-contact {
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2.5rem;
    flex-wrap: wrap;
    padding: 0 2rem;
}
.contact-info-group {
    display: flex;
    align-items: center;
    gap: 2.2rem;
    direction: rtl;
}
.contact-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 500;
    opacity: 0.92;
    transition: color 0.2s;
    white-space: nowrap;
}
.contact-item i {
    font-size: 1.15em;
    color: #fff;
    opacity: 0.85;
    margin-left: 0.3em;
    transition: color 0.3s, text-shadow 0.3s;
}
.location-icon {
    color: #ffea00;
    text-shadow: 0 0 8px #fff70099, 0 0 2px #fff;
    font-size: 1.25em;
}
.contact-social-group {
    display: flex;
    align-items: center;
    gap: 0.7rem;
}
.contact-social {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: rgba(255,255,255,0.13);
    color: #fff;
    font-size: 1.1rem;
    transition: background 0.2s, color 0.2s, box-shadow 0.2s, transform 0.2s;
    box-shadow: 0 2px 8px rgba(0,0,0,0.04);
    margin-left: 0.1rem;
    text-decoration: none;
}
.contact-social:hover {
    background: linear-gradient(135deg, #fb5607, #3a86ff);
    color: #fff;
    transform: translateY(-2px) scale(1.08);
    box-shadow: 0 4px 16px rgba(58,134,255,0.13);
}

/* أيقونات التواصل الاجتماعي في الهيدر العلوي */
.contact-social-group img {
    width: 26px;
    height: 26px;
    object-fit: contain;
    border-radius: 50%;
    background: #fff;
    box-shadow: 0 1px 6px rgba(0,0,0,0.07);
    transition: transform 0.2s, box-shadow 0.2s;
    padding: 2px;
    display: block;
}
.contact-social:hover img {
    transform: scale(1.12) rotate(-7deg);
    box-shadow: 0 4px 16px rgba(58,134,255,0.13);
    background: #f5f5f5;
}

.contact-icon-img {
    width: 22px;
    height: 22px;
    object-fit: contain;
    margin-left: 0.35em;
    vertical-align: middle;
    border-radius: 50%;
    background: #fff;
    box-shadow: 0 1px 6px rgba(0,0,0,0.07);
    padding: 2px;
    display: inline-block;
}

/* شريط البحث وعداد الزوار العصري */
.search-bar-under-navbar {
    width: 100vw;
    background: #2b2d42;
    box-shadow: 0 2px 16px rgba(58,134,255,0.07);
    padding: 0.7rem 0 1.1rem 0;
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    z-index: 999;
    margin-top: 0;
    gap: 1.5rem;
}
.site-search-form {
    margin-right: 2.5vw;
    margin-left: auto;
    display: flex;
    align-items: center;
    background: #fff;
    border-radius: 2rem;
    box-shadow: 0 2px 12px rgba(58,134,255,0.08);
    padding: 0.2rem 0.7rem 0.2rem 0.2rem;
    transition: box-shadow 0.2s;
    width: 500px;
}
.site-search-input {
    padding: 10px 18px;
    border-radius: 25px;
    border: 1px solid #e0e0e0;
    font-size: 1.08rem;
    outline: none;
    transition: box-shadow 0.2s, border 0.2s;
    box-shadow: 0 1px 6px rgba(0,0,0,0.07);
    margin-left: 8px;
    background: #f9f9f9;
}
.site-search-input:focus {
    border: 1.5px solid var(--primary-color);
    box-shadow: 0 2px 12px rgba(58,134,255,0.13);
    background: #fff;
}
.site-search-btn {
    background: linear-gradient(90deg, #3a86ff, #8338ec);
    color: #fff;
    border: none;
    border-radius: 25px;
    padding: 10px 22px;
    font-weight: 600;
    font-size: 1.08rem;
    cursor: pointer;
    transition: background 0.2s, box-shadow 0.2s;
    box-shadow: 0 2px 8px rgba(58,134,255,0.08);
    display: flex;
    align-items: center;
    height: 42px;
    
}
.site-search-btn:hover {
    background: linear-gradient(90deg, #8338ec, #3a86ff);
    box-shadow: 0 4px 16px rgba(58,134,255,0.13);
}
.visitor-counter-container {
    position: static;
    left: unset;
    top: unset;
    transform: none;
    margin: 0 2.5vw 0 0;
    display: flex;
    align-items: center;
    gap: 1rem;
    background: rgba(255,255,255,0.85);
    box-shadow: 0 4px 24px rgba(58,134,255,0.08);
    border-radius: 2rem;
    padding: 0.5rem 2rem;
    width: fit-content;
    font-family: var(--font-family);
    font-size: 1.1rem;
    z-index: 10;
    transition: var(--transition);
    margin-left: 40px;

}
@media (max-width: 900px) {
    .search-bar-under-navbar {
        flex-direction: column;
        align-items: stretch;
        padding: 0.5rem 0 0.7rem 0;
        gap: 0.7rem;
    }
    .site-search-form {
        margin: 0 auto 0.7rem auto;
        justify-content: center;
    }
    .visitor-counter-container {
        margin: 0.7rem auto 0 auto;
        justify-content: center;
    }
}

.search-toggle {
  background: linear-gradient(135deg, #3a86ff 60%, #00b4d8 100%);
  border: none;
  border-radius: 50%;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 1.3rem;
  box-shadow: 0 2px 8px rgba(58,134,255,0.13);
  transition: background 0.3s, box-shadow 0.3s, transform 0.2s;
  margin-right: 0.5rem;
  cursor: pointer;
  position: relative;
  z-index: 2;
}
.search-toggle:hover, .search-toggle:focus {
  background: linear-gradient(135deg, #00b4d8 60%, #3a86ff 100%);
  box-shadow: 0 4px 16px rgba(58,134,255,0.18);
  transform: scale(1.08);
}
.search-toggle i {
  pointer-events: none;
}

/* تحسين شكل قائمة نوع البحث بجانب مربع البحث */
.search-type-select {
    border: 1px solid #e0e0e0;
    border-radius: 20px;
    padding: 8px 16px 8px 10px;
    font-size: 1.05rem;
    background: #f3f7fa;
    color: #3a86ff;
    margin-left: 8px;
    margin-right: 0;
    outline: none;
    transition: border 0.2s, box-shadow 0.2s;
    box-shadow: 0 1px 6px rgba(58,134,255,0.06);
    cursor: pointer;
    appearance: none;
    min-width: 120px;
}
.search-type-select:focus {
    border: 1.5px solid var(--primary-color);
    box-shadow: 0 2px 12px rgba(58,134,255,0.13);
    background: #fff;
}

/* تأثير بسيط عند ظهور شريط البحث */
.search-bar-under-navbar {
    animation: fadeInDown 0.7s cubic-bezier(.4,2,.6,1);
}
@keyframes fadeInDown {
    from { opacity: 0; transform: translateY(-30px); }
    to { opacity: 1; transform: translateY(0); }
}

/* تحسين زر البحث */
.site-search-btn {
    box-shadow: 0 4px 16px rgba(58,134,255,0.13);
    font-size: 1.15rem;
    padding: 10px 26px;
    border-radius: 25px 25px 25px 8px;
    background: linear-gradient(90deg, #3a86ff 60%, #00b4d8 100%);
    transition: background 0.3s, box-shadow 0.2s, border-radius 0.2s;
}
.site-search-btn:hover {
    background: linear-gradient(90deg, #00b4d8 60%, #3a86ff 100%);
    border-radius: 8px 25px 25px 25px;
}
@media (max-width: 600px) {
    .top-contact-header {
        font-size: 0.85rem;
        padding: 0.2rem 0;
    }
    .container-contact {
        flex-direction: column;
        gap: 0.7rem;
        padding: 0 0.5rem;
        align-items: flex-start;
    }
    .contact-info-group {
        flex-direction: column;
        gap: 0.5rem;
        align-items: flex-start;
    }
    .contact-social-group {
        gap: 0.3rem;
        margin-top: 0.3rem;
    }
    .glass-navbar {
        position: static;
        height: auto;
        padding: 0.5rem 0.5rem 0.2rem 0.5rem;
        box-shadow: 0 2px 8px rgba(58,134,255,0.08);
    }
    .nav-container {
        flex-direction: column;
        gap: 0.5rem;
        padding: 0.5rem 0.2rem 0.2rem 0.2rem;
        align-items: flex-start;
    }
    .nav-menu {
        flex-direction: column;
        width: 100%;
        gap: 0.2rem;
    }
    .nav-menu a {
        margin: 0.2rem 0;
        padding: 0.5rem 0.7rem;
        font-size: 1.05rem;
        width: 100%;
        border-radius: 8px;
    }
    .nav-tools {
        margin-top: 0.3rem;
        width: 100%;
        display: flex;
        justify-content: flex-end;
        gap: 0.5rem;
    }
    .lang-switcher-container {
        margin-top: 0.3rem;
        width: 100%;
        display: flex;
        justify-content: flex-end;
        gap: 0.5rem;
    }
}