/* CSS Master File for HIprint */
:root {
    --primary-color: #2c5aa0;
    --secondary-color: #e74c3c;
    --dark-color: #2c3e50;
    --gray-100: #f8f9fa;
    --white-color: #ffffff;
    --gradient-primary: linear-gradient(135deg, #2c5aa0 0%, #3498db 100%);
    --shadow-md: 0 4px 6px rgba(0,0,0,0.1);
    --border-radius: 12px;
    --transition: all 0.3s ease;
}

/* Body margin fix for fixed header */
body {
    font-family: 'Cairo', 'Tajawal', sans-serif;
    line-height: 1.7;
    color: var(--dark-color);
    background-color: var(--white-color);
    margin-top: 0;
    padding-top: 0;
}

/* Header */
.header-section { 
    position: fixed; 
    top: 0; 
    left: 0;
    right: 0;
    z-index: 1000; 
    background: var(--white-color); 
    box-shadow: var(--shadow-md);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}
.main-nav { padding: 15px 0; }
.navbar-brand .logo { height: 50px; width: auto; }
.navbar-nav .nav-link { color: var(--dark-color); font-weight: 500; margin: 0 10px; }
.navbar-nav .nav-link.active, .navbar-nav .nav-link:hover { color: var(--primary-color); }

/* Footer */
.footer-section { background: var(--dark-color); color: var(--white-color); padding: 60px 0 20px; }
.footer-logo { height: 60px; margin-bottom: 20px; }
.footer-links h5 { color: var(--secondary-color); }
.footer-links a { color: var(--white-color); text-decoration: none; opacity: 0.8; }
.footer-links a:hover { opacity: 1; }
.footer-bottom { border-top: 1px solid rgba(255, 255, 255, 0.1); padding-top: 20px; text-align: center; opacity: 0.7; }

/* Enhanced Page Headers */
.page-header-redesigned {
    min-height: 85vh; /* Increased hero section height */
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    position: relative;
    display: flex;
    align-items: center;
    color: var(--white-color);
    overflow: hidden;
    padding-top: 80px; /* Add padding to move content below header */
}

/* Page Header Layout Restructuring */
.page-header-redesigned .row {
    display: flex;
    align-items: center;
    min-height: calc(65vh - 120px); /* Restored to original hero size */
    height: auto;
    margin: 0;
}

/* Page Header Row Centering - Equal spacing above and below */
.page-header-row-centered {
    min-height: calc(85vh - 120px); /* Increased hero size */
    align-items: center !important;
    justify-content: center;
    padding: 60px 0; /* Increased padding */
    display: flex;
}

/* Correct positioning for RTL layout - Text on right, Image on left */
.page-header-row-centered .col-lg-6:first-child {
    order: 2; /* Text on right for RTL */
    display: flex;
    align-items: center; /* Center the text container */
    justify-content: flex-end;
}

.page-header-row-centered .col-lg-6:last-child {
    order: 1; /* Image on left for RTL */
    display: flex;
    align-items: center; /* Center the image container */
    justify-content: center;
}

/* Page Header Content Restructuring */
.page-header-content-redesigned {
    padding: 60px 0; /* Increased padding */
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-height: 60vh; /* Increased content area */
}

/* Right alignment for page header text content - RTL Arabic layout */
.page-header-content-redesigned.text-end {
    text-align: right !important;
    align-items: flex-end;
    direction: rtl; /* RTL direction for Arabic alignment */
    display: flex;
    flex-direction: column;
    justify-content: center; /* Center vertically */
    height: 100%; /* Full height for centering */
}

.page-header-content-redesigned.text-end .page-title-redesigned {
    text-align: right !important;
    direction: rtl;
}

.page-header-content-redesigned.text-end .page-subtitle-redesigned {
    text-align: right !important;
    direction: rtl;
}

.page-header-content-redesigned.text-end .page-title-redesigned,
.page-header-content-redesigned.text-end .page-subtitle-redesigned {
    width: 100%;
}

/* Right-aligned breadcrumbs for RTL */
.page-header-content-redesigned.text-end .breadcrumb {
    justify-content: flex-end !important;
    text-align: right;
    direction: rtl;
}

/* Animated rotating background - same as CTA section */
.page-header-redesigned::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, transparent 70%);
    animation: rotate 20s linear infinite;
    z-index: 1;
}

.page-header-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(44, 90, 160, 0.9) 0%, rgba(231, 76, 60, 0.8) 100%);
    z-index: 2;
}

.page-header-redesigned .container {
    position: relative;
    z-index: 3;
}

.page-title-redesigned {
    font-size: 3.5rem; /* Restored to original size */
    font-weight: 800;
    margin-bottom: 20px; /* Original spacing */
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
    line-height: 1.2;
    direction: rtl; /* RTL for Arabic text */
}

.page-subtitle-redesigned {
    font-size: 1.4rem; /* Restored to original size */
    opacity: 0.95;
    line-height: 1.8;
    max-width: 100%; /* Full width for better layout */
    margin: 0;
    padding: 0;
    direction: rtl; /* RTL for Arabic text */
}

/* About Page Specific Styles */
.about-content-elegant {
    padding: 20px 0;
}

.section-title-elegant {
    color: var(--primary-color);
    font-weight: 700;
    position: relative;
}

.section-title-elegant::after {
    content: '';
    position: absolute;
    bottom: -10px;
    right: 0;
    width: 60px;
    height: 3px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    border-radius: 2px;
}

.about-description {
    font-size: 1.1rem;
    line-height: 1.8;
    color: #666;
    margin-bottom: 20px;
}

.about-features {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 15px;
    font-weight: 600;
    color: var(--dark-color);
}

.feature-item i {
    color: var(--primary-color);
    font-size: 1.2rem;
    width: 20px;
}

.about-image-container {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 15px 40px rgba(0,0,0,0.15);
}

.about-image {
    width: 100%;
    height: 400px;
    object-fit: cover;
    transition: all 0.4s ease;
}

.about-image-container:hover .about-image {
    transform: scale(1.05);
}

.image-overlay-stats {
    position: absolute;
    bottom: 20px;
    left: 20px;
    right: 20px;
    display: flex;
    gap: 20px;
}

.stat-item-overlay {
    background: rgba(255, 255, 255, 0.95);
    padding: 20px;
    border-radius: 15px;
    text-align: center;
    flex: 1;
    box-shadow: 0 8px 25px rgba(0,0,0,0.1);
    backdrop-filter: blur(10px);
}

.stat-item-overlay h3 {
    font-size: 2rem;
    font-weight: 800;
    color: var(--primary-color);
    margin-bottom: 5px;
}

.stat-item-overlay p {
    font-size: 0.9rem;
    color: var(--dark-color);
    margin: 0;
    font-weight: 600;
}

/* Values Section */
.values-section {
    background: linear-gradient(135deg, #f8f9fa 0%, #e8f4fd 100%);
}

.value-card {
    background: var(--white-color);
    padding: 40px 30px;
    border-radius: 20px;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    transition: all 0.4s ease;
    border: 1px solid rgba(44, 90, 160, 0.1);
    height: 100%;
}

.value-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 60px rgba(44, 90, 160, 0.15);
    border-color: var(--primary-color);
}

.value-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 25px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: var(--white-color);
    box-shadow: 0 8px 25px rgba(44, 90, 160, 0.3);
}

.value-card h4 {
    font-size: 1.4rem;
    font-weight: 700;
    margin-bottom: 20px;
    color: var(--dark-color);
}

.value-card p {
    color: #666;
    line-height: 1.7;
    margin: 0;
}

/* Feature Cards for Services */
.feature-card {
    background: var(--white-color);
    padding: 30px 20px;
    border-radius: 15px;
    text-align: center;
    box-shadow: 0 8px 25px rgba(0,0,0,0.08);
    transition: all 0.3s ease;
    border: 1px solid rgba(44, 90, 160, 0.1);
    height: 100%;
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(44, 90, 160, 0.12);
}

.feature-icon {
    width: 60px;
    height: 60px;
    margin: 0 auto 20px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: var(--white-color);
}

.feature-card h5 {
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 15px;
    color: var(--dark-color);
}

.feature-card p {
    color: #666;
    line-height: 1.6;
    margin: 0;
    font-size: 0.95rem;
}
.section-padding { padding: 80px 0; }

/* Remove the unnecessary fix for hero-services overlap */
.section-title { text-align: center; margin-bottom: 60px; }
.section-title h2 { font-size: 2.5rem; font-weight: 700; }
.card { border: none; border-radius: var(--border-radius); box-shadow: var(--shadow-md); }

/* Hero Section Redesigned - Complete Restructure */
.hero-section-redesigned {
    height: calc(100vh - 0px);
    background: linear-gradient(rgba(44, 90, 160, 0.3), rgba(52, 152, 219, 0.3)), url('../images/banner.jpg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white-color);
    margin: 0;
    padding: 0;
    overflow: hidden;
    margin-top: 0;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(44, 90, 160, 0.4) 0%, rgba(231, 76, 60, 0.3) 100%);
    z-index: 1;
}

.hero-section-redesigned .container {
    position: relative;
    z-index: 2;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

.hero-section-redesigned .row {
    display: flex;
    align-items: center;
    min-height: auto;
    height: auto;
    margin: 0;
}

.hero-content-redesigned {
    padding: 40px 0;
}

.hero-title-redesigned {
    font-size: 4rem;
    font-weight: 800;
    margin-bottom: 20px;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
    background: linear-gradient(45deg, #fff, #e3f2fd);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle-redesigned {
    font-size: 1.3rem;
    margin-bottom: 40px;
    line-height: 1.8;
    opacity: 0.95;
}

.hero-stats {
    display: flex;
    gap: 30px;
    margin: 50px 0;
    flex-wrap: wrap;
    justify-content: center;
}

.stat-item {
    text-align: center;
    flex: 1;
    min-width: 140px;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.15), rgba(255, 255, 255, 0.05));
    backdrop-filter: blur(15px);
    border-radius: 20px;
    padding: 25px 15px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.12);
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
}

.stat-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, 
        rgba(44, 90, 160, 0.1) 0%, 
        rgba(231, 76, 60, 0.05) 50%, 
        rgba(52, 152, 219, 0.1) 100%);
    opacity: 0;
    transition: opacity 0.4s ease;
    z-index: -1;
}

.stat-item:hover::before {
    opacity: 1;
}

.stat-item:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.2);
    border-color: rgba(255, 255, 255, 0.4);
}

/* Global Layout Fix */
.main-content-wrapper {
    margin-top: 0;
    position: relative;
}

/* First Section Spacer */
.hero-section-redesigned {
    margin-top: 0;
    position: relative;
}

/* Add space above first content section after hero */
.hero-section-redesigned + section {
    margin-top: -5px;
    padding-top: 120px;
}

/* Services Section - Proper Spacing */
#services {
    margin-top: 0;
    padding-top: 100px;
    position: relative;
    z-index: 10;
    background: var(--white-color);
}

/* Hero Statistics Icons */
.stat-item .stat-icon {
    width: 60px;
    height: 60px;
    margin: 0 auto 15px;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.25), rgba(187, 222, 251, 0.15));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    color: #ffffff;
    border: 2px solid rgba(255, 255, 255, 0.4);
    transition: all 0.4s ease;
    backdrop-filter: blur(10px);
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.8), 0 0 20px rgba(187, 222, 251, 0.6);
    filter: drop-shadow(0 0 8px rgba(255, 255, 255, 0.6));
}

.stat-item:hover .stat-icon {
    transform: scale(1.1) rotate(10deg);
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.35), rgba(187, 222, 251, 0.25));
    border-color: rgba(255, 255, 255, 0.6);
    box-shadow: 0 8px 25px rgba(255, 255, 255, 0.4), 0 0 20px rgba(187, 222, 251, 0.6);
    text-shadow: 0 0 15px rgba(255, 255, 255, 1), 0 0 30px rgba(187, 222, 251, 0.8);
}

.stat-number {
    font-size: 3.5rem;
    font-weight: 900;
    background: linear-gradient(135deg, #ffffff, #e3f2fd, #bbdefb);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 12px;
    text-shadow: 0 0 20px rgba(255, 255, 255, 0.8), 0 0 40px rgba(187, 222, 251, 0.6), 0 2px 8px rgba(255, 255, 255, 0.4);
    font-family: 'Cairo', sans-serif;
    line-height: 1;
    filter: drop-shadow(0 0 10px rgba(255, 255, 255, 0.7)) drop-shadow(0 0 20px rgba(187, 222, 251, 0.5));
    position: relative;
}

.stat-number::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, #ffffff, #e3f2fd);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.stat-item:hover .stat-number::after {
    opacity: 1;
}

.stat-item p {
    font-size: 1rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.95);
    margin: 0;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.5);
    letter-spacing: 0.5px;
}

/* Enhanced Animation Effects for Statistics */
@keyframes pulse-glow {
    0%, 100% {
        box-shadow: 0 8px 32px rgba(0, 0, 0, 0.12), 0 0 20px rgba(255, 255, 255, 0.3), 0 0 40px rgba(187, 222, 251, 0.2);
    }
    50% {
        box-shadow: 0 15px 40px rgba(0, 0, 0, 0.2), 0 0 30px rgba(255, 255, 255, 0.5), 0 0 60px rgba(187, 222, 251, 0.4);
    }
}

@keyframes number-glow {
    0%, 100% {
        filter: drop-shadow(0 0 10px rgba(255, 255, 255, 0.7)) drop-shadow(0 0 20px rgba(187, 222, 251, 0.5));
        text-shadow: 0 0 20px rgba(255, 255, 255, 0.8), 0 0 40px rgba(187, 222, 251, 0.6), 0 2px 8px rgba(255, 255, 255, 0.4);
    }
    50% {
        filter: drop-shadow(0 0 15px rgba(255, 255, 255, 0.9)) drop-shadow(0 0 30px rgba(187, 222, 251, 0.8));
        text-shadow: 0 0 30px rgba(255, 255, 255, 1), 0 0 50px rgba(187, 222, 251, 0.8), 0 0 60px rgba(144, 202, 249, 0.6);
    }
}

.stat-item:hover {
    transform: translateY(-8px) scale(1.02);
    animation: pulse-glow 2s ease-in-out infinite;
    border-color: rgba(255, 255, 255, 0.4);
}

.stat-item:hover .stat-number {
    animation: number-glow 1.5s ease-in-out infinite;
}

/* Additional Visual Enhancement */
.stat-item::after {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: linear-gradient(45deg, 
        rgba(255, 255, 255, 0.3),
        rgba(187, 222, 251, 0.2),
        rgba(144, 202, 249, 0.2),
        rgba(100, 181, 246, 0.2));
    border-radius: 22px;
    opacity: 0;
    transition: opacity 0.4s ease;
    z-index: -2;
    filter: blur(8px);
}

.stat-item:hover::after {
    opacity: 1;
}

.hero-buttons {
    margin-top: 40px;
}

.hero-buttons .btn {
    margin: 10px 10px 10px 0;
    padding: 15px 35px;
    font-size: 1.1rem;
    border-radius: 50px;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
}

.hero-buttons .btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 35px rgba(0,0,0,0.25);
}

/* Page Header Image Placeholder - Keep original large size and center it */
.page-header-image-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 500px; /* Keep original large size */
    max-height: 60vh; /* Keep original max height */
    background: rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    backdrop-filter: blur(15px);
    border: 2px dashed rgba(255, 255, 255, 0.3);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    margin: 0 auto; /* Center the placeholder */
    width: 100%; /* Full width */
}

.page-header-image-placeholder:hover {
    background: rgba(255, 255, 255, 0.15);
    border-color: rgba(255, 255, 255, 0.5);
    transform: scale(1.02);
}

.page-header-image-placeholder-content {
    text-align: center;
    color: rgba(255, 255, 255, 0.8);
    padding: 60px 20px; /* Keep substantial padding */
}

.page-header-image-placeholder-content i {
    font-size: 4rem; /* Keep large icon size */
    margin-bottom: 20px;
    opacity: 0.7;
    display: block;
}

.page-header-image-placeholder-content p {
    font-size: 1.2rem; /* Moderate text size */
    margin: 0;
    opacity: 0.8;
    line-height: 1.5;
    direction: rtl; /* Keep RTL direction for Arabic text */
    text-align: center;
    font-weight: 500; /* Medium weight for better readability */
}

/* Video Container Styling for Portfolio Page */
.page-header-video-container {
    position: relative;
    width: 100%;
    height: 400px;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 15px 40px rgba(0,0,0,0.2);
    border: 3px solid rgba(255, 255, 255, 0.3);
    transition: all 0.4s ease;
}

.page-header-video-container:hover {
    box-shadow: 0 25px 60px rgba(0,0,0,0.3);
    border-color: rgba(255, 255, 255, 0.5);
    transform: scale(1.02);
}

.page-header-video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 17px;
}

/* Fallback styling for video placeholder */
.page-header-video-container .page-header-image-placeholder {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(44, 90, 160, 0.9), rgba(52, 152, 219, 0.8));
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 17px;
}

/* Add subtle animation for page headers */
.page-header-image-placeholder::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.1), transparent);
    animation: shimmer-page 3s infinite;
}

@keyframes shimmer-page {
    0% { left: -100%; }
    100% { left: 100%; }
}

/* Floating Cards in Hero */
.hero-image-container {
    position: relative;
    height: 500px;
}

.floating-card {
    position: absolute;
    background: rgba(255, 255, 255, 0.95);
    border-radius: 20px;
    padding: 25px;
    text-align: center;
    box-shadow: 0 15px 35px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
    color: var(--dark-color);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.floating-card:nth-child(1) {
    top: 20px;
    right: 20px;
    width: 200px;
    animation: float 6s ease-in-out infinite;
}

.floating-card:nth-child(2) {
    top: 180px;
    left: 30px;
    width: 190px;
    animation: float 6s ease-in-out infinite 2s;
}

.floating-card:nth-child(3) {
    bottom: 40px;
    right: 50px;
    width: 180px;
    animation: float 6s ease-in-out infinite 4s;
}

.floating-card:hover {
    transform: translateY(-10px) scale(1.05);
    box-shadow: 0 25px 50px rgba(0,0,0,0.2);
}

.floating-card i {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 15px;
}

.floating-card h4 {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 10px;
    color: var(--dark-color);
}

.floating-card p {
    font-size: 0.9rem;
    margin: 0;
    opacity: 0.7;
}

@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-20px); }
}

/* Service Cards Elegant */
.service-card-elegant {
    background: var(--white-color);
    border-radius: 20px;
    padding: 40px 30px;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    transition: all 0.4s ease;
    border: 1px solid rgba(44, 90, 160, 0.1);
    position: relative;
    overflow: hidden;
}

.service-card-elegant::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(44, 90, 160, 0.1), transparent);
    transition: left 0.5s ease;
}

.service-card-elegant:hover::before {
    left: 100%;
}

.service-card-elegant:hover {
    transform: translateY(-15px);
    box-shadow: 0 20px 60px rgba(44, 90, 160, 0.15);
    border-color: var(--primary-color);
}

.service-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 25px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: var(--white-color);
    box-shadow: 0 8px 25px rgba(44, 90, 160, 0.3);
    transition: all 0.3s ease;
}

.service-card-elegant:hover .service-icon {
    transform: scale(1.1) rotate(10deg);
}

.service-card-elegant h4 {
    font-size: 1.4rem;
    font-weight: 700;
    margin-bottom: 20px;
    color: var(--dark-color);
}

.service-card-elegant p {
    color: #666;
    line-height: 1.7;
    margin-bottom: 25px;
}

.service-link {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.service-link:hover {
    color: var(--secondary-color);
    transform: translateX(-5px);
}

/* Portfolio Cards Elegant */
.portfolio-card-elegant {
    background: var(--white-color);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    transition: all 0.4s ease;
    position: relative;
}

.portfolio-card-elegant:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 60px rgba(0,0,0,0.15);
}

.portfolio-image-container {
    position: relative;
    overflow: hidden;
    height: 250px;
}

.portfolio-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: all 0.4s ease;
}

.portfolio-card-elegant:hover .portfolio-image {
    transform: scale(1.1);
}

.portfolio-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(44, 90, 160, 0.9), rgba(231, 76, 60, 0.8));
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: all 0.4s ease;
}

.portfolio-card-elegant:hover .portfolio-overlay {
    opacity: 1;
}

.portfolio-overlay-content {
    display: flex;
    gap: 15px;
}

.portfolio-view-btn,
.portfolio-zoom-btn {
    width: 50px;
    height: 50px;
    background: var(--white-color);
    color: var(--primary-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}

.portfolio-view-btn:hover,
.portfolio-zoom-btn:hover {
    background: var(--primary-color);
    color: var(--white-color);
    transform: scale(1.1);
}

.portfolio-content {
    padding: 25px;
}

.portfolio-category {
    color: var(--primary-color);
    font-size: 0.9rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.portfolio-title {
    font-size: 1.3rem;
    font-weight: 700;
    margin: 10px 0 15px;
    color: var(--dark-color);
}

.portfolio-description {
    color: #666;
    line-height: 1.6;
    margin: 0;
}

/* Section Subtitle */
.section-subtitle {
    font-size: 1.1rem;
    color: #666;
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.7;
}

/* Testimonials Redesigned */
.testimonials-section-redesigned {
    background: linear-gradient(135deg, #f8f9fa 0%, #e3f2fd 100%);
    position: relative;
}

.testimonials-section-redesigned::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grain" width="100" height="100" patternUnits="userSpaceOnUse"><circle cx="50" cy="50" r="1" fill="%23ffffff" opacity="0.1"/></pattern></defs><rect width="100" height="100" fill="url(%23grain)"/></svg>') repeat;
    opacity: 0.5;
}

.testimonials-carousel {
    position: relative;
    z-index: 2;
}

.testimonial-card-elegant {
    background: var(--white-color);
    border-radius: 20px;
    padding: 35px;
    box-shadow: 0 15px 35px rgba(0,0,0,0.08);
    transition: all 0.4s ease;
    position: relative;
    border: 1px solid rgba(44, 90, 160, 0.1);
    height: 100%;
}

.testimonial-card-elegant:hover {
    transform: translateY(-10px);
    box-shadow: 0 25px 60px rgba(44, 90, 160, 0.15);
    border-color: var(--primary-color);
}

.testimonial-quote-icon {
    position: absolute;
    top: -15px;
    right: 20px;
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white-color);
    font-size: 1.2rem;
    box-shadow: 0 8px 25px rgba(44, 90, 160, 0.3);
}

.testimonial-content {
    margin-bottom: 30px;
}

.testimonial-text {
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--dark-color);
    font-style: italic;
    margin: 0;
    position: relative;
    padding-top: 20px;
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 20px;
}

.author-image-container {
    position: relative;
    flex-shrink: 0;
}

.author-image-elegant {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    object-fit: cover;
    border: 4px solid var(--white-color);
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
}

/* Author Image Container for Testimonials */
.author-image-container {
    position: relative;
    flex-shrink: 0;
}

/* Default Avatar Styling */
.author-avatar {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 1.2rem;
    color: white;
    background: linear-gradient(135deg, #2c5aa0, #3498db);
    border: 4px solid var(--white-color);
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.status-badge {
    position: absolute;
    bottom: -5px;
    right: -5px;
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 0.7rem;
    font-weight: 700;
    color: var(--white-color);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.vip-badge {
    background: linear-gradient(135deg, #ffd700, #ffb347);
    box-shadow: 0 4px 15px rgba(255, 215, 0, 0.4);
}

.active-badge {
    background: linear-gradient(135deg, #27ae60, #2ecc71);
    box-shadow: 0 4px 15px rgba(39, 174, 96, 0.4);
}

.author-info {
    flex: 1;
}

.author-name {
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 5px;
    color: var(--dark-color);
}

.author-company {
    color: var(--primary-color);
    font-weight: 600;
    font-size: 0.95rem;
}

.author-stats {
    margin-top: 8px;
}

.orders-count {
    font-size: 0.85rem;
    color: #666;
    display: flex;
    align-items: center;
    gap: 6px;
}

.orders-count i {
    color: var(--secondary-color);
}

.testimonial-rating {
    text-align: center;
}

.testimonial-rating i {
    color: #ffd700;
    font-size: 1.1rem;
    margin: 0 2px;
}

.empty-testimonials {
    text-align: center;
    padding: 60px 20px;
    color: #666;
}

.empty-testimonials i {
    color: var(--primary-color);
    opacity: 0.5;
}

/* Call to Action Section */
.cta-section {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    color: var(--white-color);
    position: relative;
    overflow: hidden;
}

.cta-section::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, transparent 70%);
    animation: rotate 20s linear infinite;
}

.cta-content {
    position: relative;
    z-index: 2;
}

.cta-title {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 20px;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.2);
}

.cta-subtitle {
    font-size: 1.2rem;
    margin-bottom: 40px;
    opacity: 0.95;
    line-height: 1.7;
}

.cta-buttons .btn {
    margin: 10px;
    padding: 15px 35px;
    font-size: 1.1rem;
    border-radius: 50px;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 8px 25px rgba(0,0,0,0.2);
}

.cta-buttons .btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 35px rgba(0,0,0,0.3);
}

.cta-buttons .btn-outline-primary {
    border: 2px solid var(--white-color);
    color: var(--white-color);
    background: transparent;
}

.cta-buttons .btn-outline-primary:hover {
    background: var(--white-color);
    color: var(--primary-color);
    border-color: var(--white-color);
}

@keyframes rotate {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Featured Portfolio Background */
.featured-portfolio {
    background: linear-gradient(135deg, #f8f9fa 0%, #e8f4fd 100%);
}

/* Responsive Design Enhancements */
@media (max-width: 768px) {
    .page-header-redesigned {
        min-height: 55vh; /* Adjusted for mobile */
    }
    
    .page-title-redesigned {
        font-size: 3.2rem; /* Increased from 2.8rem for mobile */
        margin-bottom: 20px;
    }
    
    .page-subtitle-redesigned {
        font-size: 1.4rem; /* Increased from 1.2rem for mobile */
        padding: 0 15px;
        line-height: 1.6;
    }
    
    .hero-title-redesigned {
        font-size: 2.5rem;
    }
    
    /* Mobile page header layout adjustments */
    .page-header-redesigned {
        min-height: 70vh; /* Increased mobile height */
    }
    
    .page-header-row-centered {
        min-height: calc(70vh - 80px); /* Adjusted for mobile */
        flex-direction: column;
        padding: 40px 0;
    }
    
    .page-header-content-redesigned {
        padding: 40px 0;
        min-height: auto;
    }
    
    .page-header-content-redesigned.text-start {
        text-align: center !important; /* Center text on mobile for better readability */
        align-items: center;
        direction: ltr; /* Keep LTR on mobile for better layout */
    }
    
    .page-header-content-redesigned.text-end .page-title-redesigned {
        text-align: right !important;
    }
    
    .page-header-content-redesigned.text-end .page-subtitle-redesigned {
        text-align: right !important;
    }
    
    .page-header-content-redesigned.text-end .breadcrumb {
        justify-content: flex-end !important;
    }
    
    .page-header-image-placeholder {
        height: 300px; /* Smaller on mobile */
        max-height: 40vh;
        margin-bottom: 30px;
        order: -1; /* Show image placeholder first on mobile */
    }
    
    .page-header-image-placeholder-content i {
        font-size: 3rem; /* Smaller icon on mobile */
    }
    
    .page-header-image-placeholder-content p {
        font-size: 1.1rem; /* Adjusted text size for mobile */
    }
    
    .hero-stats {
        justify-content: center;
        gap: 15px;
        margin: 30px 0;
        flex-direction: column;
        align-items: center;
    }
    
    .stat-item {
        min-width: 200px;
        max-width: 300px;
        margin-bottom: 15px;
    }
    
    .stat-number {
        font-size: 2.8rem;
    }
    
    .stat-item p {
        font-size: 0.95rem;
    }
    
    .stat-item .stat-icon {
        width: 50px;
        height: 50px;
        font-size: 1.5rem;
        margin-bottom: 12px;
    }
    
    .floating-card {
        position: relative;
        margin: 20px auto;
        width: 90% !important;
        top: auto !important;
        left: auto !important;
        right: auto !important;
        bottom: auto !important;
    }
    
    .hero-image-container {
        height: auto;
        margin-top: 40px;
    }
    
    .cta-title {
        font-size: 2rem;
    }
    
    .hero-buttons .btn,
    .cta-buttons .btn {
        width: 100%;
        margin: 10px 0;
    }
    
    .testimonial-author {
        flex-direction: column;
        text-align: center;
        gap: 15px;
    }
}

/* Client Logos */
.client-logo img { max-width: 100%; max-height: 80px; object-fit: contain; filter: grayscale(100%); transition: var(--transition); }
.client-logo:hover img { filter: grayscale(0%); }

/* Top Bar */
.top-bar { background: var(--gray-100); padding: 10px 0; font-size: 14px; }
.top-bar .contact-info span { margin-left: 20px; color: var(--dark-color); }
.top-bar .social-links a { color: var(--dark-color); margin-left: 10px; transition: var(--transition); }
.top-bar .social-links a:hover { color: var(--primary-color); }

/* Buttons */
.btn-primary { background: var(--primary-color); border-color: var(--primary-color); font-weight: 600; }
.btn-primary:hover { background: var(--secondary-color); border-color: var(--secondary-color); }
.btn-secondary { background: var(--secondary-color); border-color: var(--secondary-color); }

/* Portfolio Cards */
.portfolio-card { transition: var(--transition); text-decoration: none; color: inherit; }
.portfolio-card:hover { transform: translateY(-5px); color: inherit; }
.portfolio-card .card-img-top { transition: var(--transition); }
.portfolio-card:hover .card-img-top { transform: scale(1.05); }

/* Contact Form */
.form-control:focus { border-color: var(--primary-color); box-shadow: 0 0 0 0.2rem rgba(44, 90, 160, 0.25); }
.form-select:focus { border-color: var(--primary-color); box-shadow: 0 0 0 0.2rem rgba(44, 90, 160, 0.25); }

/* About Page */
.about-content h2 { color: var(--primary-color); }

/* Services Cards */
.service-card { transition: var(--transition); }
.service-card:hover { transform: translateY(-5px); }
.service-card .fa-3x { color: var(--primary-color); }

/* Footer Enhancements */
.footer-social a { background: rgba(255, 255, 255, 0.1); width: 40px; height: 40px; display: inline-flex; align-items: center; justify-content: center; border-radius: 50%; margin-left: 10px; transition: var(--transition); }
.footer-social a:hover { background: var(--primary-color); color: var(--white-color); }
.footer-contact { margin-bottom: 15px; }
.footer-contact i { color: var(--primary-color); margin-left: 10px; width: 20px; }
.footer-links ul { list-style: none; padding: 0; }
.footer-links li { margin-bottom: 8px; }

/* Scroll to Top Button */
.scroll-top { position: fixed; bottom: 30px; left: 30px; width: 50px; height: 50px; background: var(--primary-color); color: var(--white-color); border: none; border-radius: 50%; cursor: pointer; display: none; z-index: 999; transition: var(--transition); }
.scroll-top:hover { background: var(--secondary-color); }
.scroll-top.show { display: block; }

/* Animation Classes */
.hover-scale { transition: var(--transition); }
.hover-scale:hover { transform: scale(1.02); }

/* Breadcrumbs */
.breadcrumb { background: transparent; padding: 0; margin-bottom: 15px; }
.breadcrumb-item + .breadcrumb-item::before { content: "/"; color: rgba(255, 255, 255, 0.7); }
.breadcrumb-item a { color: rgba(255, 255, 255, 0.9); text-decoration: none; }
.breadcrumb-item a:hover { color: var(--white-color); }

/* Responsive Adjustments */
@media (max-width: 768px) {
    .hero-title { font-size: 2.5rem; }
    .page-header h1 { font-size: 2rem; }
    .section-title h2 { font-size: 2rem; }
    .top-bar .contact-info span { margin-left: 10px; font-size: 13px; }
    .top-bar .social-links a { margin-left: 5px; }
    
    /* Mobile RTL layout adjustments */
    .page-header-row-centered .col-lg-6:first-child,
    .page-header-row-centered .col-lg-6:last-child {
        order: initial; /* Reset order on mobile */
    }
    
    .page-header-redesigned {
        min-height: 70vh; /* Smaller on mobile but still larger */
        padding-top: 60px;
    }
    
    .page-header-content-redesigned {
        padding: 40px 0;
        min-height: 40vh;
    }
}

/* Service Links Styles */
.service-card-elegant .service-links {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 15px;
}

.service-card-elegant .service-links .service-link {
    display: inline-flex;
    align-items: center;
    justify-content: space-between;
    padding: 8px 15px;
    background: var(--gradient-primary);
    color: white;
    text-decoration: none;
    border-radius: 25px;
    font-size: 14px;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 3px 10px rgba(0,0,0,0.1);
}

.service-card-elegant .service-links .service-link:first-child {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.service-card-elegant .service-links .service-link:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
    color: white;
}

.service-card-elegant .service-links .service-link i {
    margin-left: 8px;
    transition: transform 0.3s ease;
}

.service-card-elegant .service-links .service-link:hover i {
    transform: translateX(-3px);
}

/* ===== CLIENT STATISTICS STYLES ===== */
.stat-card-elegant {
    background: var(--white-color);
    border-radius: 15px;
    padding: 30px;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    height: 100%;
    border: 1px solid var(--light-color);
}

.stat-card-elegant::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--gradient-primary);
}

.stat-card-elegant:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

.stat-icon {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    background: var(--gradient-primary);
    color: var(--white-color);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    margin: 0 auto 20px;
    transition: all 0.3s ease;
    box-shadow: 0 8px 25px rgba(44, 90, 160, 0.3);
}

.stat-icon.vip {
    background: linear-gradient(135deg, #f39c12 0%, #e67e22 100%);
    box-shadow: 0 8px 25px rgba(243, 156, 18, 0.3);
}

.stat-icon.active {
    background: linear-gradient(135deg, #27ae60 0%, #2ecc71 100%);
    box-shadow: 0 8px 25px rgba(39, 174, 96, 0.3);
}

.stat-card-elegant:hover .stat-icon {
    transform: scale(1.1) rotate(5deg);
}

.stat-content {
    margin-top: 15px;
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 900;
    color: var(--dark-color);
    margin-bottom: 10px;
    font-family: 'Cairo', sans-serif;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.stat-label {
    color: var(--gray-600);
    font-weight: 600;
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin: 0;
}

/* Statistics Animation */
@keyframes countUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.stat-number {
    animation: countUp 0.8s ease-out;
}

/* Responsive Statistics */
@media (max-width: 768px) {
    .stat-card-elegant {
        padding: 20px;
        margin-bottom: 20px;
    }
    
    .stat-icon {
        width: 60px;
        height: 60px;
        font-size: 1.5rem;
    }
    
    .stat-number {
        font-size: 2rem;
    }
    
    .stat-label {
        font-size: 0.9rem;
    }
}

/* ===== CLIENT CARDS STYLES ===== */
.client-card-simple {
    background: var(--white-color);
    border-radius: 12px;
    padding: 20px;
    text-align: center;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    border: 1px solid var(--light-color);
    height: 100%;
}

.client-card-simple:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.12);
    border-color: var(--primary-color);
}

.client-info h5 {
    color: var(--dark-color);
    font-weight: 700;
    margin-bottom: 15px;
    font-size: 1.1rem;
}

.client-contact, .client-location {
    color: var(--gray-600);
    font-size: 0.9rem;
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.client-contact i, .client-location i {
    color: var(--primary-color);
    font-size: 0.8rem;
}

/* Responsive Client Cards */
@media (max-width: 768px) {
    .client-card-simple {
        padding: 15px;
        margin-bottom: 15px;
    }
    
    .client-info h5 {
        font-size: 1rem;
    }
    
    .client-contact, .client-location {
        font-size: 0.8rem;
    }
}