/* تحسينات CSS متقدمة لموقع وكالة قات - Professional & Responsive */

/* === المتغيرات الأساسية === */
:root {
    --primary-green: #059669;
    --secondary-green: #10b981;
    --dark-green: #065f46;
    --light-green: #d1fae5;
    --amber-color: #f59e0b;
    --text-dark: #1f2937;
    --text-light: #6b7280;
    --white: #ffffff;
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 25px rgba(0, 0, 0, 0.15);
    --shadow-xl: 0 20px 40px rgba(0, 0, 0, 0.2);
    --transition-fast: 0.2s ease;
    --transition-normal: 0.3s ease;
    --transition-slow: 0.5s ease;
}

/* === إعدادات عامة === */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
}

body {
    font-family: 'Cairo', 'Segoe UI', 'Tahoma', 'Geneva', 'Verdana', sans-serif;
    background: #f0fdf4;
    color: var(--text-dark);
    line-height: 1.7;
    overflow-x: hidden;
}

/* === تحسينات الصور === */
img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* === الأنيميشنات الأساسية === */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-50px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(50px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes pulse {

    0%,
    100% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.05);
    }
}

@keyframes bounce {

    0%,
    20%,
    50%,
    80%,
    100% {
        transform: translateY(0);
    }

    40% {
        transform: translateY(-15px);
    }

    60% {
        transform: translateY(-7px);
    }
}

@keyframes shimmer {
    0% {
        background-position: -200% 0;
    }

    100% {
        background-position: 200% 0;
    }
}

@keyframes float {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-10px);
    }
}

@keyframes gradient {
    0% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }

    100% {
        background-position: 0% 50%;
    }
}

/* === فئات الأنيميشن === */
.animate-fade-up {
    animation: fadeInUp 0.6s ease-out forwards;
}

.animate-fade-down {
    animation: fadeInDown 0.6s ease-out forwards;
}

.animate-slide-left {
    animation: slideInLeft 0.6s ease-out forwards;
}

.animate-slide-right {
    animation: slideInRight 0.6s ease-out forwards;
}

.animate-pulse {
    animation: pulse 2s ease-in-out infinite;
}

.animate-bounce {
    animation: bounce 1.5s ease-in-out infinite;
}

/* === الهيدر === */
header {
    background: linear-gradient(135deg, #059669 0%, #10b981 50%, #34d399 100%);
    box-shadow: var(--shadow-lg);
    position: sticky;
    top: 0;
    z-index: 1000;
}

header .logo-container {
    transition: transform var(--transition-normal);
}

header .logo-container:hover {
    transform: scale(1.05);
}

header .logo-img {
    border: 3px solid rgba(255, 255, 255, 0.8);
    box-shadow: var(--shadow-md);
    transition: all var(--transition-normal);
}

header .logo-img:hover {
    transform: rotate(5deg) scale(1.1);
    border-color: #fff;
    box-shadow: var(--shadow-xl);
}

header nav a {
    position: relative;
    padding: 0.5rem 1rem;
    border-radius: 0.5rem;
    transition: all var(--transition-fast);
}

header nav a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 2px;
    background: #fff;
    transition: all var(--transition-fast);
    transform: translateX(-50%);
}

header nav a:hover::after,
header nav a.active::after {
    width: 80%;
}

header nav a:hover,
header nav a.active {
    background: rgba(255, 255, 255, 0.2);
}

/* === القائمة المتنقلة === */
#mobileMenuBtn {
    background: rgba(255, 255, 255, 0.2);
    border: none;
    padding: 0.5rem;
    border-radius: 0.5rem;
    cursor: pointer;
    transition: all var(--transition-fast);
}

#mobileMenuBtn:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: scale(1.1);
}

.mobile-menu-enter {
    animation: fadeInDown 0.3s ease-out;
}

/* === قسم الهيرو (الرئيسي) === */
#home {
    position: relative;
    height: 100vh;
    min-height: 600px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

#home::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(5, 150, 105, 0.9) 0%, rgba(16, 185, 129, 0.8) 50%, rgba(52, 211, 153, 0.7) 100%);
    z-index: 1;
}

#home img {
    position: absolute;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

#home>div:first-of-type {
    position: relative;
    z-index: 2;
}

.hero-content h2 {
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
    animation: fadeInUp 0.8s ease-out;
}

.hero-content p {
    animation: fadeInUp 0.8s ease-out 0.2s both;
}

.hero-content .btn {
    animation: fadeInUp 0.8s ease-out 0.4s both;
}

/* === الأزرار === */
.btn {
    display: inline-block;
    padding: 0.875rem 2rem;
    border-radius: 9999px;
    font-weight: 600;
    text-decoration: none;
    transition: all var(--transition-normal);
    cursor: pointer;
    border: none;
    font-size: 1rem;
}

.btn-primary {
    background: linear-gradient(135deg, #059669 0%, #10b981 100%);
    color: #fff;
    box-shadow: var(--shadow-md);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-xl);
    background: linear-gradient(135deg, #047857 0%, #059669 100%);
}

.btn-secondary {
    background: transparent;
    border: 2px solid #fff;
    color: #fff;
}

.btn-secondary:hover {
    background: #fff;
    color: #059669;
    transform: translateY(-3px);
}

.btn-shimmer {
    position: relative;
    overflow: hidden;
}

.btn-shimmer::after {
    content: '';
    position: absolute;
    top: 0;
    left: -200%;
    width: 200%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
    animation: shimmer 2s infinite;
}

/* === الأقسام === */
section {
    padding: 5rem 0;
    position: relative;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--dark-green);
    margin-bottom: 1rem;
    position: relative;
    display: inline-block;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    width: 80px;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-green), var(--secondary-green));
    border-radius: 2px;
    transform: translateX(-50%);
}

.section-divider {
    width: 100px;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-green), var(--secondary-green));
    margin: 1.5rem auto;
    border-radius: 2px;
}

/* === قسم عن الوكالة === */
.about-card {
    background: linear-gradient(135deg, #fff 0%, #f0fdf4 100%);
    border-radius: 1rem;
    padding: 2rem;
    box-shadow: var(--shadow-lg);
    transition: all var(--transition-normal);
}

.about-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-xl);
}

.feature-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--primary-green), var(--secondary-green));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 1.5rem;
    margin: 0 auto 1rem;
    transition: all var(--transition-normal);
}

.feature-icon:hover {
    transform: scale(1.1) rotate(10deg);
}

.highlight-box {
    background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
    border-right: 4px solid var(--amber-color);
    padding: 1.5rem;
    border-radius: 0.5rem;
    margin: 1.5rem 0;
}

/* === قسم المنتجات === */
.product-card {
    background: #fff;
    border-radius: 1rem;
    overflow: hidden;
    box-shadow: var(--shadow-md);
    transition: all var(--transition-normal);
    position: relative;
}

.product-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-xl);
}

.product-image {
    position: relative;
    overflow: hidden;
    height: 250px;
}

.product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--transition-slow);
}

.product-card:hover .product-image img {
    transform: scale(1.15);
}

.product-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.7) 0%, transparent 100%);
    opacity: 0;
    transition: opacity var(--transition-normal);
}

.product-card:hover .product-overlay {
    opacity: 1;
}

.product-content {
    padding: 1.5rem;
}

.product-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--dark-green);
    margin-bottom: 0.5rem;
}

.product-description {
    color: var(--text-light);
    font-size: 0.95rem;
}

.product-badge {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: linear-gradient(135deg, var(--amber-color), #f97316);
    color: #fff;
    padding: 0.5rem 1rem;
    border-radius: 9999px;
    font-size: 0.875rem;
    font-weight: 600;
    z-index: 10;
}

/* === معرض الصور === */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.5rem;
}

.gallery-item {
    position: relative;
    border-radius: 1rem;
    overflow: hidden;
    box-shadow: var(--shadow-md);
    cursor: pointer;
}

.gallery-item img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    transition: transform var(--transition-slow);
}

.gallery-item:hover img {
    transform: scale(1.15);
}

.gallery-overlay {
    position: absolute;
    inset: 0;
    background: rgba(5, 150, 105, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity var(--transition-normal);
}

.gallery-item:hover .gallery-overlay {
    opacity: 1;
}

.gallery-icon {
    font-size: 3rem;
    color: #fff;
    transform: scale(0);
    transition: transform var(--transition-normal);
}

.gallery-item:hover .gallery-icon {
    transform: scale(1);
}

/* === قسم التواصل === */
.contact-section {
    background: linear-gradient(135deg, #059669 0%, #10b981 50%, #34d399 100%);
}

.contact-card {
    background: rgba(255, 255, 255, 0.2);
    border-radius: 1rem;
    padding: 1.5rem;
    border: 1px solid rgba(255, 255, 255, 0.3);
    transition: transform 0.2s ease, background 0.2s ease;
}

.contact-card:hover {
    background: rgba(255, 255, 255, 0.25);
    transform: translateY(-5px);
}

.contact-icon {
    width: 50px;
    height: 50px;
    background: rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    margin-left: 1rem;
}

.contact-label {
    font-weight: 600;
    margin-bottom: 0.25rem;
}

.contact-value {
    color: rgba(255, 255, 255, 0.9);
}

/* === نموذج الاتصال === */
.contact-form {
    background: #fff;
    border-radius: 1rem;
    padding: 2rem;
    box-shadow: var(--shadow-xl);
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-label {
    display: block;
    font-weight: 600;
    color: var(--dark-green);
    margin-bottom: 0.5rem;
}

.form-input {
    width: 100%;
    padding: 0.875rem 1rem;
    border: 2px solid #e5e7eb;
    border-radius: 0.5rem;
    font-size: 1rem;
    transition: all var(--transition-fast);
}

.form-input:focus {
    outline: none;
    border-color: var(--primary-green);
    box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.2);
}

.form-textarea {
    min-height: 150px;
    resize: vertical;
}

.form-btn {
    width: 100%;
    padding: 1rem;
    background: linear-gradient(135deg, var(--primary-green), var(--secondary-green));
    color: #fff;
    border: none;
    border-radius: 0.5rem;
    font-size: 1.125rem;
    font-weight: 600;
    cursor: pointer;
    transition: all var(--transition-normal);
}

.form-btn:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

/* === الفوتر === */
footer {
    background: linear-gradient(135deg, #064e3b 0%, #065f46 50%, #047857 100%);
    color: #fff;
    padding: 3rem 0 1.5rem;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-section h3 {
    font-size: 1.25rem;
    margin-bottom: 1rem;
    position: relative;
    padding-bottom: 0.5rem;
}

.footer-section h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    right: 0;
    width: 50px;
    height: 3px;
    background: var(--secondary-green);
    border-radius: 2px;
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: 0.5rem;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    transition: all var(--transition-fast);
}

.footer-links a:hover {
    color: #fff;
    padding-right: 0.5rem;
}

.social-links {
    display: flex;
    gap: 1rem;
    margin-top: 1rem;
}

.social-link {
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    text-decoration: none;
    transition: all var(--transition-normal);
}

.social-link:hover {
    background: var(--primary-green);
    transform: translateY(-3px);
}

.footer-bottom {
    text-align: center;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    color: rgba(255, 255, 255, 0.8);
}

/* === Lightbox === */
.lightbox {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.95);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    opacity: 0;
    transition: opacity var(--transition-normal);
}

.lightbox.active {
    display: flex;
    opacity: 1;
}

.lightbox img {
    max-width: 95%;
    max-height: 90vh;
    object-fit: contain;
    border-radius: 0.5rem;
    transform: scale(0.9);
    transition: transform var(--transition-normal);
}

.lightbox.active img {
    transform: scale(1);
}

.lightbox-controls {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 1rem;
}

.lightbox-btn {
    width: 50px;
    height: 50px;
    background: rgba(255, 255, 255, 0.2);
    border: none;
    border-radius: 50%;
    color: #fff;
    font-size: 1.5rem;
    cursor: pointer;
    transition: all var(--transition-fast);
}

.lightbox-btn:hover {
    background: var(--primary-green);
    transform: scale(1.1);
}

.lightbox-close {
    position: absolute;
    top: 1rem;
    left: 1rem;
}

/* === الرسائل === */
.success-message {
    background: linear-gradient(135deg, #d1fae5 0%, #a7f3d0 100%);
    border: 2px solid var(--primary-green);
    color: var(--dark-green);
    padding: 1rem;
    border-radius: 0.5rem;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.error-message {
    background: linear-gradient(135deg, #fee2e2 0%, #fecaca 100%);
    border: 2px solid #ef4444;
    color: #dc2626;
    padding: 1rem;
    border-radius: 0.5rem;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

/* === Scrollbar مخصص === */
::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, var(--primary-green), var(--secondary-green));
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--dark-green);
}

/* === تحديد النص === */
::selection {
    background: var(--primary-green);
    color: #fff;
}

/* === تحسينات التجاوب === */

/* الأجهزة الصغيرة جداً */
@media (max-width: 480px) {
    section {
        padding: 3rem 0;
    }

    .section-title {
        font-size: 1.75rem;
    }

    #home {
        min-height: 500px;
    }

    .hero-content h2 {
        font-size: 2rem;
    }

    .hero-content p {
        font-size: 1rem;
    }

    .product-image {
        height: 200px;
    }

    .gallery-item img {
        height: 200px;
    }

    .contact-form {
        padding: 1.5rem;
    }
}

/* الأجهزة اللوحية */
@media (min-width: 481px) and (max-width: 768px) {
    section {
        padding: 4rem 0;
    }

    .section-title {
        font-size: 2rem;
    }

    #home {
        min-height: 550px;
    }

    .hero-content h2 {
        font-size: 2.5rem;
    }
}

/* الأجهزة المتوسطة */
@media (min-width: 769px) and (max-width: 1024px) {
    section {
        padding: 4.5rem 0;
    }

    .section-title {
        font-size: 2.25rem;
    }
}

/* === تحسينات الأداء === */
@media (prefers-reduced-motion: reduce) {

    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}

/* === تحسينات الطباعة === */
@media print {

    header,
    #home,
    .btn,
    .lightbox {
        display: none !important;
    }

    body {
        background: #fff;
        color: #000;
    }

    section {
        padding: 2rem 0;
    }
}

/* === وضع الداكن (اختياري) === */
@media (prefers-color-scheme: dark) {
    /* يمكن إضافة أنماط الوضع الداكن هنا إذا需要的 */
}

/* === تأثيرات إضافية === */
.card-hover-effect {
    position: relative;
    overflow: hidden;
}

.card-hover-effect::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left var(--transition-slow);
}

.card-hover-effect:hover::before {
    left: 100%;
}

/* === تأثير العد التنازلي === */
.countdown-item {
    text-align: center;
}

.countdown-value {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--primary-green);
}

.countdown-label {
    font-size: 0.875rem;
    color: var(--text-light);
    text-transform: uppercase;
}

/* === تأثير التحميل === */
.loading-spinner {
    width: 40px;
    height: 40px;
    border: 4px solid #f3f3f3;
    border-top: 4px solid var(--primary-green);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

/* === تصفية الصور === */
.filter-btn {
    padding: 0.5rem 1.5rem;
    border: 2px solid var(--primary-green);
    background: transparent;
    color: var(--primary-green);
    border-radius: 9999px;
    cursor: pointer;
    transition: all var(--transition-fast);
    margin: 0.25rem;
}

.filter-btn:hover,
.filter-btn.active {
    background: var(--primary-green);
    color: #fff;
}

/* === شارة مميزة === */
.featured-badge {
    background: linear-gradient(135deg, var(--amber-color), #f97316);
    color: #fff;
    padding: 0.25rem 0.75rem;
    border-radius: 9999px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    display: inline-block;
    margin-bottom: 0.5rem;
}

/* === قائمة الفرز === */
.sort-select {
    padding: 0.5rem 1rem;
    border: 2px solid #e5e7eb;
    border-radius: 0.5rem;
    background: #fff;
    cursor: pointer;
    min-width: 150px;
}

/* === تأثير الضبابية === */
.backdrop-blur {
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

/* === تدرجات لونية إضافية === */
.gradient-text {
    background: linear-gradient(135deg, var(--primary-green), var(--secondary-green));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.gradient-border {
    position: relative;
    background: #fff;
    border-radius: 1rem;
}

.gradient-border::before {
    content: '';
    position: absolute;
    inset: -3px;
    background: linear-gradient(135deg, var(--primary-green), var(--secondary-green));
    border-radius: 1.2rem;
    z-index: -1;
}

/* === بطاقة الفريق === */
.team-card {
    background: #fff;
    border-radius: 1rem;
    overflow: hidden;
    box-shadow: var(--shadow-md);
    text-align: center;
}

.team-image {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    object-fit: cover;
    margin: 1.5rem auto;
    border: 4px solid var(--light-green);
}

.team-name {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--dark-green);
    margin-bottom: 0.25rem;
}

.team-role {
    color: var(--text-light);
    margin-bottom: 1rem;
}

/* === إحصائيات === */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 2rem;
}

.stat-item {
    text-align: center;
}

.stat-value {
    font-size: 3rem;
    font-weight: 700;
    color: var(--primary-green);
    line-height: 1;
    margin-bottom: 0.5rem;
}

.stat-label {
    color: var(--text-light);
    font-size: 0.875rem;
    text-transform: uppercase;
}

/* === شريط الأخبار === */
.news-ticker {
    background: var(--dark-green);
    color: #fff;
    padding: 0.75rem 0;
    overflow: hidden;
}

.news-ticker-content {
    display: flex;
    animation: ticker 30s linear infinite;
    will-change: transform;
}

.news-item {
    white-space: nowrap;
    padding-left: 2rem;
}

@keyframes ticker {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-50%);
    }
}

/* === قائمة المنسدلة === */
.dropdown {
    position: relative;
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    right: 0;
    background: #fff;
    border-radius: 0.5rem;
    box-shadow: var(--shadow-lg);
    min-width: 200px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all var(--transition-fast);
    z-index: 100;
}

.dropdown:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-item {
    display: block;
    padding: 0.75rem 1rem;
    color: var(--text-dark);
    text-decoration: none;
    transition: all var(--transition-fast);
}

.dropdown-item:hover {
    background: var(--light-green);
    color: var(--primary-green);
}

/* === زر العودة للأعلى === */
.back-to-top {
    position: fixed;
    bottom: 2rem;
    left: 2rem;
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, var(--primary-green), var(--secondary-green));
    color: #fff;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    box-shadow: var(--shadow-lg);
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: all var(--transition-normal);
    z-index: 999;
    font-size: 1.25rem;
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.back-to-top:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-xl);
}

/* === تحسينات الأداء للموبايل === */
@media (max-width: 768px) {

    /* إيقاف الأنيميشنات المستمرة على الموبايل */
    .animate-pulse {
        animation: none !important;
    }

    .animate-bounce {
        animation: none !important;
    }

    .news-ticker-content {
        animation: ticker 40s linear infinite;
    }

    /* تبسيط التحولات */
    .product-card:hover {
        transform: none;
    }

    .gallery-item:hover img {
        transform: scale(1.05);
    }

    .product-card:hover .product-image img {
        transform: scale(1.05);
    }

    .contact-card:hover {
        transform: none;
    }

    /* إزالة backdrop-filter على الموبايل */
    .stat-item {
        backdrop-filter: none !important;
        -webkit-backdrop-filter: none !important;
        background: rgba(255, 255, 255, 0.15);
    }
}

/* === تحسين GPU compositing === */
.news-ticker-content,
.lightbox img {
    will-change: transform;
}

/* تجنب layout thrashing */
.product-card,
.gallery-item,
.contact-card {
    contain: layout style;
}

/* تحسين رسم الصور */
img {
    content-visibility: auto;
}