/* ============================================
   PROFESSIONAL ENHANCEMENTS
   تحسينات احترافية إضافية
   ============================================ */

/* ===== GLASS MORPHISM EFFECTS ===== */
.glass-card {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 20px;
    box-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.37);
}

/* ===== MODERN HEADER WITH GLASSMORPHISM ===== */
.modern-header {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(0, 108, 222, 0.1);
}

.modern-header.scrolled {
    background: rgba(255, 255, 255, 0.98);
    box-shadow: 0 5px 30px rgba(0, 108, 222, 0.15);
}

/* ===== ENHANCED SERVICE CARDS ===== */
.service-card {
    position: relative;
    background: white;
    border-radius: 24px;
    padding: 50px 40px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    overflow: hidden;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 6px;
    background: linear-gradient(90deg, #006cde 0%, #00e1d5 50%, #f02356 100%);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.service-card:hover::before {
    transform: scaleX(1);
}

.service-card:hover {
    transform: translateY(-15px) scale(1.02);
    box-shadow: 0 20px 60px rgba(0, 108, 222, 0.25);
}

/* ===== MODERN SERVICE ICON ===== */
.service-icon {
    width: 90px;
    height: 90px;
    background: linear-gradient(135deg, #006cde 0%, #00e1d5 100%);
    border-radius: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 30px;
    font-size: 40px;
    color: white;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
}

.service-icon::after {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #f02356 0%, #901534 100%);
    border-radius: 24px;
    opacity: 0;
    transition: opacity 0.4s ease;
}

.service-card:hover .service-icon {
    transform: scale(1.15) rotate(-5deg);
}

.service-card:hover .service-icon::after {
    opacity: 1;
}

.service-icon i {
    position: relative;
    z-index: 2;
}

/* ===== ENHANCED PORTFOLIO ITEMS ===== */
.portfolio-item {
    position: relative;
    height: 450px;
    border-radius: 24px;
    overflow: hidden;
    cursor: pointer;
    box-shadow: 0 15px 50px rgba(0, 0, 0, 0.2);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ===== PORTFOLIO CARD DESCRIPTION ===== */
.portfolio-card-description {
    line-height: 1.6;
    min-height: 3.2em; /* 2 lines minimum */
}

.portfolio-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(0, 108, 222, 0.3) 0%, rgba(0, 225, 213, 0.3) 100%);
    z-index: 1;
    opacity: 0;
    transition: opacity 0.4s ease;
}

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

.portfolio-item:hover {
    transform: translateY(-10px);
    box-shadow: 0 25px 70px rgba(16, 113, 226, 0.35);
}

/* ===== STATISTICS WITH ANIMATION ===== */
.stats-section {
    padding: 80px 0;
    background: linear-gradient(135deg, #006cde 0%, #00e1d5 50%, #f02356 100%);
    color: white;
    position: relative;
    overflow: hidden;
}

.stats-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('data:image/svg+xml,<svg width="100" height="100" xmlns="http://www.w3.org/2000/svg"><circle cx="50" cy="50" r="2" fill="rgba(255,255,255,0.1)"/></svg>');
    opacity: 0.3;
}

.stat-item {
    text-align: center;
    position: relative;
    z-index: 2;
}

.stat-number {
    font-size: 72px;
    font-weight: 900;
    margin-bottom: 15px;
    display: block;
    background: linear-gradient(135deg, #ffffff 0%, #f0f0f0 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
}

.stat-label {
    font-size: 20px;
    opacity: 0.95;
    font-weight: 400;
    letter-spacing: 1px;
}

/* ===== MODERN CONTACT FORM ===== */
.modern-form {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.form-group {
    position: relative;
}

.form-input,
.form-textarea {
    width: 100%;
    padding: 20px 25px;
    border: 2px solid rgba(255, 255, 255, 0.2);
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.1);
    color: white;
    font-size: 16px;
    font-family: 'Cairo', 'Poppins', sans-serif;
    transition: all 0.3s ease;
}

.form-input:focus,
.form-textarea:focus {
    outline: none;
    border-color: rgba(255, 255, 255, 0.6);
    background: rgba(255, 255, 255, 0.15);
    box-shadow: 0 0 0 4px rgba(255, 255, 255, 0.1);
}

.form-input::placeholder,
.form-textarea::placeholder {
    color: rgba(255, 255, 255, 0.7);
}

.form-textarea {
    min-height: 160px;
    resize: vertical;
}

/* ===== ENHANCED BUTTONS ===== */
.btn-primary,
.btn-secondary {
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.btn-primary::before,
.btn-secondary::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
    z-index: -1;
}

.btn-primary:hover::before,
.btn-secondary:hover::before {
    width: 300px;
    height: 300px;
}

/* ===== SCROLL TO TOP BUTTON ===== */
.scroll-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 55px;
    height: 55px;
    background: linear-gradient(135deg, #006cde 0%, #00e1d5 100%);
    color: white;
    border: none;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    box-shadow: 0 10px 30px rgba(0, 108, 222, 0.4);
    z-index: 999;
}

.scroll-to-top.visible {
    opacity: 1;
    visibility: visible;
}

.scroll-to-top:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0, 225, 213, 0.6);
    background: linear-gradient(135deg, #f02356 0%, #901534 100%);
}

/* ===== SECTION DIVIDER ===== */
.section-divider {
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, transparent 0%, #006cde 25%, #00e1d5 50%, #f02356 75%, transparent 100%);
    margin: 60px 0;
}

/* ===== BREADCRUMB ANIMATION ===== */
.breadcrumb-animation {
    position: relative;
    overflow: hidden;
}

.breadcrumb-animation::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    animation: shimmer 2s infinite;
}

@keyframes shimmer {
    100% {
        left: 100%;
    }
}

/* ===== LOADING SKELETON ===== */
.skeleton {
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: loading 1.5s infinite;
    border-radius: 8px;
}

@keyframes loading {
    0% {
        background-position: 200% 0;
    }
    100% {
        background-position: -200% 0;
    }
}

/* ===== TOOLTIP ===== */
.tooltip-custom {
    position: relative;
    display: inline-block;
}

.tooltip-custom::before {
    content: attr(data-tooltip);
    position: absolute;
    bottom: 125%;
    left: 50%;
    transform: translateX(-50%);
    padding: 8px 12px;
    background: #111;
    color: white;
    font-size: 14px;
    border-radius: 8px;
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.tooltip-custom:hover::before {
    opacity: 1;
    visibility: visible;
}

/* ===== BADGE ===== */
.badge-new {
    display: inline-block;
    padding: 6px 12px;
    background: linear-gradient(135deg, #00e1d5 0%, #008780 100%);
    color: white;
    font-size: 12px;
    font-weight: 700;
    border-radius: 20px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* ===== ENHANCED HERO CONTENT ===== */
.hero-content {
    animation: fadeInUp 1s ease, float 3s ease-in-out infinite 1s;
}

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

/* ===== PROFESSIONAL SHADOWS ===== */
.shadow-soft {
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
}

.shadow-medium {
    box-shadow: 0 10px 40px rgba(16, 113, 226, 0.15);
}

.shadow-strong {
    box-shadow: 0 20px 60px rgba(16, 113, 226, 0.25);
}

/* ===== RESPONSIVE TYPOGRAPHY ===== */
@media (max-width: 1200px) {
    .hero-title {
        font-size: 64px;
    }
    
    .stat-number {
        font-size: 60px;
    }
}

@media (max-width: 992px) {
    .hero-title {
        font-size: 52px;
    }
    
    .section-title {
        font-size: 42px;
    }
    
    .stat-number {
        font-size: 48px;
    }
}

@media (max-width: 768px) {
    .hero-title {
        font-size: 38px;
    }
    
    .section-title {
        font-size: 32px;
    }
    
    .service-card {
        padding: 35px 25px;
    }
    
    .portfolio-item {
        height: 350px;
    }
    
    .scroll-to-top {
        bottom: 20px;
        right: 20px;
        width: 50px;
        height: 50px;
    }
}

/* ===== PRINT STYLES ===== */
@media print {
    .modern-header,
    .language-toggle,
    .scroll-to-top,
    .btn-primary,
    .btn-secondary {
        display: none !important;
    }
    
    .hero-section {
        height: auto;
        min-height: auto;
        page-break-after: always;
    }
}

/* ===== ACCESSIBILITY IMPROVEMENTS ===== */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border-width: 0;
}

/* Focus visible for keyboard navigation */
*:focus-visible {
    outline: 3px solid #006cde;
    outline-offset: 3px;
}

/* Reduced motion for accessibility */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}
