/* تحسينات التصميم الشاملة - AL-AHMADY EXPRESS */

/* ========== نظام الألوان الموحد ========== */
:root {
    /* الألوان الأساسية */
    --primary-blue: #2360a5;
    --primary-blue-light: #3a7bc8;
    --primary-blue-dark: #1a4a7a;
    --primary-blue-lighter: #5a9bd4;
    
    --primary-orange: #ff6b35;
    --primary-orange-light: #ff8a5b;
    --primary-orange-dark: #e5552a;
    --primary-orange-lighter: #ffa77d;
    
    /* الألوان الثانوية */
    --accent-teal: #00d9ff;
    --accent-purple: #6c5ce7;
    --accent-green: #00b894;
    
    /* الألوان المحايدة */
    --bg-dark: #1A2B3C;
    --bg-light: #f8f9fa;
    --bg-white: #ffffff;
    --bg-gray: #e9ecef;
    
    --text-dark: #1A2B3C;
    --text-gray: #666666;
    --text-light: #999999;
    --text-white: #ffffff;
    
    /* الظلال */
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.08);
    --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.12);
    --shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.16);
    --shadow-xl: 0 16px 48px rgba(0, 0, 0, 0.20);
    --shadow-orange: 0 8px 24px rgba(255, 107, 53, 0.3);
    --shadow-blue: 0 8px 24px rgba(35, 96, 165, 0.3);
    --shadow-colored: 0 10px 30px rgba(255, 107, 53, 0.25), 0 4px 12px rgba(35, 96, 165, 0.15);
    
    /* التدرجات */
    --gradient-primary: linear-gradient(135deg, #ff6b35 0%, #2360a5 100%);
    --gradient-primary-reverse: linear-gradient(135deg, #2360a5 0%, #ff6b35 100%);
    --gradient-hero: linear-gradient(135deg, #1A2B3C 0%, #2360a5 50%, #1a4a7a 100%);
    --gradient-card: linear-gradient(135deg, rgba(255, 107, 53, 0.1) 0%, rgba(35, 96, 165, 0.1) 100%);
    --gradient-text: linear-gradient(135deg, #ff6b35 0%, #2360a5 100%);
    
    /* الأنيميشن */
    --transition-fast: 0.2s ease;
    --transition-normal: 0.3s ease;
    --transition-slow: 0.5s ease;
    --transition-bounce: 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

/* ========== تحسينات Hero Section ========== */
.hero {
    position: relative;
    overflow: hidden;
    background: var(--gradient-hero);
}

.hero::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: 
        radial-gradient(circle at 30% 30%, rgba(255, 107, 53, 0.15) 0%, transparent 50%),
        radial-gradient(circle at 70% 70%, rgba(35, 96, 165, 0.15) 0%, transparent 50%);
    animation: heroBackground 20s ease-in-out infinite;
}

@keyframes heroBackground {
    0%, 100% { transform: translate(0, 0) rotate(0deg); }
    50% { transform: translate(-5%, -5%) rotate(180deg); }
}

.hero::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        linear-gradient(45deg, transparent 30%, rgba(255, 255, 255, 0.03) 50%, transparent 70%),
        url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="dots" width="20" height="20" patternUnits="userSpaceOnUse"><circle cx="10" cy="10" r="1" fill="%23ffffff" opacity="0.1"/></pattern></defs><rect width="100" height="100" fill="url(%23dots)"/></svg>');
    pointer-events: none;
    animation: patternMove 30s linear infinite;
}

@keyframes patternMove {
    0% { background-position: 0 0; }
    100% { background-position: 100px 100px; }
}

.hero-content {
    position: relative;
    z-index: 2;
}

.hero-title {
    background: linear-gradient(135deg, #ffffff 0%, var(--primary-orange-light) 50%, #ffffff 100%);
    background-size: 200% auto;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: gradientShift 3s linear infinite;
    text-shadow: none !important;
    filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.3));
}

@keyframes gradientShift {
    to { background-position: 200% center; }
}

.hero-subtitle {
    color: rgba(255, 255, 255, 0.95);
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
    font-size: 1.25rem;
    line-height: 1.8;
}

.hero-buttons {
    gap: 1.5rem;
}

.btn-primary {
    background: var(--gradient-primary);
    box-shadow: var(--shadow-orange);
    position: relative;
    overflow: hidden;
    border: 2px solid transparent;
    font-weight: 700;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.btn-primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: left 0.5s ease;
}

.btn-primary:hover::before {
    left: 100%;
}

.btn-primary:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 12px 32px rgba(255, 107, 53, 0.4);
    border-color: rgba(255, 255, 255, 0.3);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 2px solid rgba(255, 255, 255, 0.5);
    color: #ffffff;
    font-weight: 600;
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: #ffffff;
    transform: translateY(-3px);
    box-shadow: 0 8px 24px rgba(255, 255, 255, 0.2);
}

.hero-image {
    position: relative;
}

.hero-image::before {
    content: '';
    position: absolute;
    top: -20px;
    right: -20px;
    width: 100%;
    height: 100%;
    background: var(--gradient-primary);
    border-radius: 20px;
    opacity: 0.2;
    z-index: -1;
    animation: float 6s ease-in-out infinite;
}

.hero-img {
    position: relative;
    z-index: 1;
    border: 4px solid rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
}

/* ========== تحسينات Navigation Bar ========== */
.navbar {
    background: rgba(26, 43, 60, 0.98) !important;
    backdrop-filter: blur(20px);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.navbar-scrolled {
    background: rgba(26, 43, 60, 0.98) !important;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.15);
    backdrop-filter: blur(20px);
}

.nav-brand .logo {
    background: var(--gradient-text);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: 900;
    letter-spacing: 2px;
    position: relative;
}

.nav-brand .logo::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 100%;
    height: 3px;
    background: var(--gradient-primary);
    border-radius: 2px;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.nav-brand:hover .logo::after {
    opacity: 1;
}

.nav-link {
    position: relative;
    padding: 0.5rem 1rem;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    right: 50%;
    transform: translateX(50%);
    width: 0;
    height: 3px;
    background: var(--gradient-primary);
    border-radius: 2px;
    transition: width 0.3s ease;
}

.nav-link:hover,
.nav-link.active {
    color: var(--primary-orange);
    background: rgba(255, 107, 53, 0.1);
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 80%;
}

/* ========== تحسينات Alert Banner ========== */
.alert-banner {
    background: var(--gradient-primary);
    position: relative;
    overflow: hidden;
    box-shadow: var(--shadow-orange);
}

.alert-banner::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
    animation: bannerShine 3s infinite;
}

@keyframes bannerShine {
    0% { left: -100%; }
    100% { left: 100%; }
}

.alert-banner span {
    position: relative;
    z-index: 2;
    display: inline-block;
    animation: bannerPulse 2s ease-in-out infinite;
    font-weight: 700;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
    letter-spacing: 0.5px;
}

@keyframes bannerPulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.02); }
}

.alert-banner::after {
    content: '✨';
    position: absolute;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 1.5rem;
    animation: sparkle 2s ease-in-out infinite;
}

@keyframes sparkle {
    0%, 100% { opacity: 0.5; transform: translateY(-50%) scale(1); }
    50% { opacity: 1; transform: translateY(-50%) scale(1.2); }
}

/* ========== تحسينات البطاقات (Cards) ========== */
.service-card,
.info-card,
.feature-card,
.client-card {
    background: var(--bg-white);
    border-radius: 20px;
    position: relative;
    overflow: hidden;
    transition: all var(--transition-normal);
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.service-card::before,
.info-card::before,
.feature-card::before,
.client-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 5px;
    background: var(--gradient-primary);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 1;
}

.service-card:hover::before,
.info-card:hover::before,
.feature-card:hover::before,
.client-card:hover::before {
    transform: scaleX(1);
}

.service-card::after,
.info-card::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255, 107, 53, 0.05) 0%, transparent 70%);
    opacity: 0;
    transition: opacity 0.4s ease;
    pointer-events: none;
}

.service-card:hover::after,
.info-card:hover::after {
    opacity: 1;
}

.service-card:hover,
.info-card:hover,
.feature-card:hover,
.client-card:hover {
    transform: translateY(-12px) scale(1.02);
    box-shadow: var(--shadow-colored);
    border-color: var(--primary-orange);
}

.service-icon {
    background: var(--gradient-primary);
    box-shadow: var(--shadow-orange);
    transition: all var(--transition-normal);
    position: relative;
}

.service-card:hover .service-icon {
    transform: scale(1.15) rotate(5deg);
    box-shadow: 0 12px 32px rgba(255, 107, 53, 0.4);
}

.service-icon::before {
    content: '';
    position: absolute;
    inset: -4px;
    background: var(--gradient-primary);
    border-radius: 50%;
    opacity: 0;
    filter: blur(10px);
    transition: opacity 0.3s ease;
    z-index: -1;
}

.service-card:hover .service-icon::before {
    opacity: 0.5;
}

.service-title {
    position: relative;
    color: var(--text-dark);
    font-weight: 700;
}

.service-title::after {
    content: '';
    position: absolute;
    bottom: -8px;
    right: 50%;
    transform: translateX(50%);
    width: 0;
    height: 3px;
    background: var(--gradient-primary);
    border-radius: 2px;
    transition: width 0.4s ease;
}

.service-card:hover .service-title::after {
    width: 60px;
}

/* ========== تحسينات قسم الإحصائيات ========== */
.statistics-section {
    position: relative;
    overflow: hidden;
}

.statistics-section::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.15) 0%, transparent 70%);
    border-radius: 50%;
    animation: statFloat1 8s ease-in-out infinite;
}

.statistics-section::after {
    content: '';
    position: absolute;
    bottom: -30%;
    left: -15%;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.1) 0%, transparent 70%);
    border-radius: 50%;
    animation: statFloat2 10s ease-in-out infinite;
}

@keyframes statFloat1 {
    0%, 100% { transform: translate(0, 0) scale(1); }
    50% { transform: translate(-30px, -30px) scale(1.1); }
}

@keyframes statFloat2 {
    0%, 100% { transform: translate(0, 0) scale(1); }
    50% { transform: translate(20px, 20px) scale(1.1); }
}

.stat-item {
    background: rgba(255, 255, 255, 0.12) !important;
    backdrop-filter: blur(20px);
    border: 2px solid rgba(255, 255, 255, 0.25);
    position: relative;
    overflow: hidden;
    transition: all var(--transition-normal);
}

.stat-item::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.2) 0%, transparent 70%);
    opacity: 0;
    transition: opacity 0.4s ease;
}

.stat-item:hover::before {
    opacity: 1;
}

.stat-item:hover {
    transform: translateY(-15px) scale(1.05);
    background: rgba(255, 255, 255, 0.2) !important;
    border-color: rgba(255, 255, 255, 0.4);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3), 0 0 30px rgba(255, 255, 255, 0.2);
}

.stat-item i {
    filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.3));
    animation: statIconPulse 3s ease-in-out infinite;
}

@keyframes statIconPulse {
    0%, 100% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.1); opacity: 0.9; }
}

.stat-item h3 {
    position: relative;
    filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.3));
}

.stat-item:hover h3 {
    text-shadow: 0 0 20px rgba(255, 255, 255, 0.5);
}

/* ========== تحسينات قسم العملاء ========== */
.client-card {
    position: relative;
    overflow: visible;
}

.client-image-wrapper,
.client-card .service-icon {
    position: relative;
    transition: all var(--transition-normal);
}

.client-image-wrapper::before,
.client-card .service-icon::before {
    content: '';
    position: absolute;
    inset: -6px;
    background: var(--gradient-primary);
    border-radius: 50%;
    opacity: 0;
    filter: blur(15px);
    transition: opacity 0.4s ease;
    z-index: -1;
}

.client-card:hover .client-image-wrapper::before,
.client-card:hover .service-icon::before {
    opacity: 0.6;
}

.client-card:hover .client-image-wrapper img,
.client-card:hover .service-icon {
    transform: scale(1.1) rotate(5deg);
    box-shadow: 0 12px 32px rgba(255, 107, 53, 0.4);
}

.client-card .service-title {
    position: relative;
    transition: color 0.3s ease;
}

.client-card:hover .service-title {
    color: var(--primary-blue);
}

.client-card .service-title::after {
    content: '';
    position: absolute;
    bottom: -5px;
    right: 50%;
    transform: translateX(50%);
    width: 0;
    height: 2px;
    background: var(--gradient-primary);
    transition: width 0.4s ease;
}

.client-card:hover .service-title::after {
    width: 60px;
}

/* ========== تحسينات النماذج (Forms) ========== */
.contact-form {
    position: relative;
}

.form-group {
    position: relative;
    margin-bottom: 1.5rem;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 1rem 1.5rem;
    border: 2px solid rgba(0, 0, 0, 0.1);
    border-radius: 12px;
    background: var(--bg-white);
    font-size: 1rem;
    transition: all var(--transition-normal);
    font-family: inherit;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-orange);
    box-shadow: 0 0 0 4px rgba(255, 107, 53, 0.1), var(--shadow-md);
    transform: translateY(-2px);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: var(--text-light);
    transition: opacity 0.3s ease;
}

.form-group input:focus::placeholder,
.form-group textarea:focus::placeholder {
    opacity: 0.5;
}

.form-group select {
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23ff6b35' d='M6 9L1 4h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: left 1.5rem center;
    padding-left: 3.5rem;
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

/* Label animation */
.form-group label {
    position: absolute;
    top: 1rem;
    right: 1.5rem;
    color: var(--text-gray);
    transition: all var(--transition-normal);
    pointer-events: none;
    background: var(--bg-white);
    padding: 0 0.5rem;
}

.form-group input:focus ~ label,
.form-group input:valid ~ label {
    top: -0.75rem;
    font-size: 0.85rem;
    color: var(--primary-orange);
    font-weight: 600;
}

/* ========== تحسينات Section Headers ========== */
.section-header {
    position: relative;
    margin-bottom: 4rem;
}

.section-title {
    position: relative;
    display: inline-block;
    padding-bottom: 1rem;
}

.section-title::before {
    content: '';
    position: absolute;
    bottom: 0;
    right: 50%;
    transform: translateX(50%);
    width: 100px;
    height: 5px;
    background: var(--gradient-primary);
    border-radius: 3px;
    box-shadow: var(--shadow-orange);
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -2px;
    right: 50%;
    transform: translateX(50%);
    width: 200px;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255, 107, 53, 0.3), transparent);
}

.section-subtitle {
    color: var(--text-gray);
    font-size: 1.15rem;
    margin-top: 1rem;
    line-height: 1.8;
}

/* ========== تحسينات الأقسام العامة ========== */
section {
    position: relative;
    overflow: hidden;
}

section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        radial-gradient(circle at 20% 20%, rgba(255, 107, 53, 0.03) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(35, 96, 165, 0.03) 0%, transparent 50%);
    pointer-events: none;
    z-index: 0;
}

section > .container {
    position: relative;
    z-index: 1;
}

.services,
.projects {
    background: linear-gradient(180deg, #f8f9fa 0%, #ffffff 100%);
}

/* ========== تحسينات Contact Section ========== */
.contact-item {
    background: var(--bg-white);
    border-radius: 15px;
    padding: 1.5rem;
    transition: all var(--transition-normal);
    border: 2px solid transparent;
    box-shadow: var(--shadow-sm);
}

.contact-item:hover {
    transform: translateY(-5px);
    border-color: var(--primary-orange);
    box-shadow: var(--shadow-orange);
}

.contact-item i {
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--gradient-primary);
    border-radius: 12px;
    color: #ffffff;
    font-size: 1.5rem;
    transition: all var(--transition-normal);
}

.contact-item:hover i {
    transform: scale(1.15) rotate(5deg);
    box-shadow: var(--shadow-orange);
}

/* ========== تحسينات Footer ========== */
.footer {
    background: linear-gradient(135deg, #1A2B3C 0%, #2360a5 100%);
    position: relative;
    overflow: hidden;
}

.footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="footerPattern" width="20" height="20" patternUnits="userSpaceOnUse"><circle cx="10" cy="10" r="0.5" fill="%23ffffff" opacity="0.05"/></pattern></defs><rect width="100" height="100" fill="url(%23footerPattern)"/></svg>');
    opacity: 0.5;
}

.footer-section h3,
.footer-section h4 {
    color: var(--primary-orange);
    position: relative;
    padding-bottom: 1rem;
    margin-bottom: 1.5rem;
}

.footer-section h3::after,
.footer-section h4::after {
    content: '';
    position: absolute;
    bottom: 0;
    right: 0;
    width: 50px;
    height: 3px;
    background: var(--gradient-primary);
    border-radius: 2px;
}

.social-links a {
    width: 45px;
    height: 45px;
    background: var(--gradient-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all var(--transition-normal);
    position: relative;
    overflow: hidden;
}

.social-links a::before {
    content: '';
    position: absolute;
    inset: 0;
    background: var(--gradient-primary-reverse);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.social-links a:hover::before {
    opacity: 1;
}

.social-links a:hover {
    transform: translateY(-5px) scale(1.1);
    box-shadow: var(--shadow-orange);
}

.social-links a i {
    position: relative;
    z-index: 1;
    color: #ffffff;
}

/* ========== تحسينات Floating Button ========== */
.floating-btn {
    position: fixed !important;
    bottom: 30px !important;
    left: 30px !important;
    width: 70px !important;
    height: 70px !important;
    background: var(--gradient-primary) !important;
    border-radius: 50% !important;
    box-shadow: var(--shadow-orange) !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    color: white !important;
    font-size: 1.75rem !important;
    text-decoration: none !important;
    z-index: 9999 !important;
    transition: all var(--transition-normal) !important;
    overflow: visible !important;
    border: 3px solid rgba(255, 255, 255, 0.3) !important;
    animation: floatButton 3s ease-in-out infinite !important;
}

.floating-btn::before {
    content: '';
    position: absolute;
    inset: -4px;
    background: var(--gradient-primary);
    border-radius: 50%;
    opacity: 0;
    filter: blur(10px);
    transition: opacity 0.3s ease;
    z-index: -1;
}

.floating-btn:hover::before {
    opacity: 0.6;
}

.floating-btn:hover {
    transform: scale(1.15) translateY(-5px) !important;
    box-shadow: 0 12px 40px rgba(255, 107, 53, 0.6), 0 0 30px rgba(35, 96, 165, 0.4) !important;
    border-color: rgba(255, 255, 255, 0.5) !important;
}

.floating-btn i {
    position: relative;
    z-index: 1;
    color: white !important;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.3));
}

@keyframes floatButton {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-12px);
    }
}

/* تحسينات للجوال */
@media (max-width: 768px) {
    .floating-btn {
        width: 60px !important;
        height: 60px !important;
        font-size: 1.5rem !important;
        bottom: 20px !important;
        left: 20px !important;
    }
}

@media (max-width: 480px) {
    .floating-btn {
        width: 55px !important;
        height: 55px !important;
        min-width: 55px !important;
        min-height: 55px !important;
        font-size: 1.3rem !important;
        bottom: 15px !important;
        left: 15px !important;
    }
}

/* ضمان عدم قطع الزر العائم */
html, body {
    overflow-x: hidden !important;
}

body {
    position: relative !important;
    padding: 0 !important;
    margin: 0 !important;
}

/* التأكد من أن الزر يظهر فوق كل شيء */
.floating-btn {
    pointer-events: auto !important;
    visibility: visible !important;
    opacity: 1 !important;
}

/* ========== تحسينات Gallery ========== */
.gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: 15px;
    box-shadow: var(--shadow-md);
    transition: all var(--transition-normal);
}

.gallery-item::before {
    content: '';
    position: absolute;
    inset: 0;
    background: var(--gradient-primary);
    opacity: 0;
    transition: opacity 0.4s ease;
    z-index: 1;
}

.gallery-item:hover::before {
    opacity: 0.8;
}

.gallery-item:hover {
    transform: translateY(-8px) scale(1.03);
    box-shadow: var(--shadow-colored);
}

.gallery-img {
    transition: transform 0.5s ease;
}

.gallery-item:hover .gallery-img {
    transform: scale(1.15);
}

.gallery-caption {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.8));
    color: #ffffff;
    padding: 2rem 1.5rem 1.5rem;
    transform: translateY(100%);
    transition: transform 0.4s ease;
    z-index: 2;
}

.gallery-item:hover .gallery-caption {
    transform: translateY(0);
}

/* ========== تحسينات Info Cards ========== */
.info-card {
    position: relative;
    border-top: 5px solid var(--primary-orange);
    transition: all var(--transition-normal);
}

.info-card::after {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 60px;
    height: 60px;
    background: var(--gradient-primary);
    border-radius: 0 15px 0 100%;
    opacity: 0.1;
    transition: opacity 0.3s ease;
}

.info-card:hover::after {
    opacity: 0.2;
}

.info-card:hover {
    border-top-color: var(--primary-blue);
    transform: translateY(-8px);
}

.info-card i {
    transition: all var(--transition-normal);
}

.info-card:hover i {
    color: var(--primary-blue);
    transform: scale(1.2) rotate(10deg);
}

/* ========== تحسينات Responsive ========== */
@media (max-width: 768px) {
    .hero-title {
        font-size: 2.5rem !important;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .service-card,
    .info-card,
    .client-card {
        margin-bottom: 1.5rem;
    }
    
    .hero-buttons {
        flex-direction: column;
        width: 100%;
    }
    
    .hero-buttons .btn {
        width: 100%;
        text-align: center;
    }
    
    .stat-item {
        padding: 1.5rem !important;
    }
    
    .stat-item h3 {
        font-size: 2rem !important;
    }
    
    .nav-menu {
        flex-direction: column;
        gap: 1rem;
    }
    
    .contact-content {
        grid-template-columns: 1fr !important;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 2rem !important;
        line-height: 1.3;
    }
    
    .section-title {
        font-size: 1.75rem;
    }
    
    .btn {
        padding: 10px 24px;
        font-size: 0.9rem;
    }
    
    .service-icon {
        width: 60px;
        height: 60px;
        font-size: 1.5rem;
    }
}

/* ========== تأثيرات إضافية ========== */
.gradient-border {
    position: relative;
    background: var(--bg-white);
    border-radius: 20px;
}

.gradient-border::before {
    content: '';
    position: absolute;
    inset: -2px;
    background: var(--gradient-primary);
    border-radius: 22px;
    z-index: -1;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.gradient-border:hover::before {
    opacity: 1;
}

/* Shimmer effect */
.shimmer {
    position: relative;
    overflow: hidden;
}

.shimmer::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
    animation: shimmer 3s infinite;
}

@keyframes shimmer {
    0% { left: -100%; }
    100% { left: 100%; }
}

/* Glow effect */
.glow-on-hover {
    transition: all var(--transition-normal);
}

.glow-on-hover:hover {
    box-shadow: 0 0 30px rgba(255, 107, 53, 0.6), 0 0 60px rgba(35, 96, 165, 0.4);
}

/* Magnetic effect (for interactive elements) */
.magnetic {
    transition: transform var(--transition-normal);
}

.magnetic:hover {
    transform: translate(5px, -5px);
}

/* ========== تحسينات Typography ========== */
h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    line-height: 1.3;
    letter-spacing: 0.5px;
}

.text-gradient {
    background: var(--gradient-text);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* ========== تحسينات الصور ========== */
img {
    image-rendering: -webkit-optimize-contrast;
    image-rendering: crisp-edges;
}

img[loading="lazy"] {
    opacity: 0;
    transition: opacity 0.5s ease;
}

img[loading="lazy"].loaded {
    opacity: 1;
}

/* ========== تحسينات الأداء ========== */
* {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* ========== تحسينات إضافية للأنيميشن ========== */
@keyframes pulse {
    0%, 100% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.05); opacity: 0.9; }
}

@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-20px); }
}

.float-animation {
    animation: float 6s ease-in-out infinite;
}

.fade-in-left {
    animation: fadeInLeft 0.8s ease-out forwards;
}

.fade-in-right {
    animation: fadeInRight 0.8s ease-out forwards;
}

.fade-in-up {
    animation: fadeInUp 0.8s ease-out forwards;
}

.fade-in-scale {
    animation: fadeInScale 0.6s ease-out forwards;
}

.image-zoom {
    transition: transform 0.5s ease;
}

.image-zoom:hover {
    transform: scale(1.05);
}

@keyframes fadeInLeft {
    from {
        opacity: 0;
        transform: translateX(-50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes fadeInRight {
    from {
        opacity: 0;
        transform: translateX(50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInScale {
    from {
        opacity: 0;
        transform: scale(0.9);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

.btn-animated {
    position: relative;
    overflow: hidden;
}

.btn-animated::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    transform: translate(-50%, -50%);
    transition: width 0.6s ease, height 0.6s ease;
}

.btn-animated:active::after {
    width: 300px;
    height: 300px;
}

/* ========== Dark Mode Support (Optional) ========== */
@media (prefers-color-scheme: dark) {
    /* يمكن إضافة دعم الوضع الداكن لاحقاً */
}

/* ========== تحسينات الطباعة ========== */
@media print {
    .page-loader,
    .back-to-top,
    .scroll-progress,
    .navbar,
    .floating-btn {
        display: none !important;
    }
}

