/* DEVEXA Portfolio Styles - Modern Luxury Theme with Gradients */

:root {
    --primary-black: #000000;
    --primary-white: #ffffff;
    --accent-gray: #1a1a1a;
    --text-gray: #cccccc;
    --hover-gray: #333333;
    
    /* Modern Gradient Colors */
    --gradient-primary: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    --gradient-secondary: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    --gradient-dark: linear-gradient(135deg, #0c0c0c 0%, #1a1a1a 50%, #0c0c0c 100%);
    --gradient-hero: linear-gradient(135deg, #000000 0%, #1a0033 50%, #000000 100%);
    --gradient-accent: linear-gradient(135deg, #667eea 0%, #764ba2 50%, #f093fb 100%);
    --gradient-gold: linear-gradient(135deg, #f6d365 0%, #fda085 100%);
    --gradient-purple: linear-gradient(135deg, #a8edea 0%, #fed6e3 100%);
    --gradient-blue: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    
    /* Glassmorphism */
    --glass-bg: rgba(255, 255, 255, 0.05);
    --glass-border: rgba(255, 255, 255, 0.1);
    --glass-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.37);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Performance optimizations */
* {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

img, video {
    max-width: 100%;
    height: auto;
}

/* GPU acceleration for animations */
.animate-fade-in-up,
.service-card,
.project-card,
.hero-section,
.navbar {
    will-change: transform, opacity;
    transform: translateZ(0);
    backface-visibility: hidden;
}

body {
    font-family: 'Inter', sans-serif;
    background: var(--gradient-dark);
    background-attachment: fixed;
    color: var(--primary-white);
    line-height: 1.6;
    overflow-x: hidden;
    position: relative;
}

body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        radial-gradient(circle at 20% 50%, rgba(102, 126, 234, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(118, 75, 162, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 40% 20%, rgba(240, 147, 251, 0.05) 0%, transparent 50%);
    pointer-events: none;
    z-index: 0;
}

body > * {
    position: relative;
    z-index: 1;
}

/* Navbar Styles */
.navbar {
    background: rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    padding: 1rem 0;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.3);
}

.navbar.scrolled {
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(30px) saturate(180%);
    -webkit-backdrop-filter: blur(30px) saturate(180%);
    box-shadow: 0 8px 32px rgba(102, 126, 234, 0.2);
    border-bottom: 1px solid rgba(102, 126, 234, 0.3);
    padding: 0.5rem 0;
}

.navbar-brand {
    display: flex;
    align-items: center;
}

.navbar-brand .logo {
    height: 40px;
    width: auto;
    min-width: 150px;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    filter: drop-shadow(0 0 10px rgba(102, 126, 234, 0.5));
    display: block;
}

.navbar-brand:hover .logo {
    transform: scale(1.1);
    filter: drop-shadow(0 0 20px rgba(102, 126, 234, 0.8));
}

.navbar-nav .nav-link {
    color: var(--primary-white) !important;
    font-weight: 500;
    margin: 0 0.5rem;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    padding: 0.5rem 1rem !important;
    border-radius: 8px;
}

.navbar-nav .nav-link::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 8px;
    background: var(--gradient-accent);
    opacity: 0;
    transition: opacity 0.4s ease;
    z-index: -1;
}

.navbar-nav .nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 2px;
    background: var(--gradient-accent);
    transition: width 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border-radius: 2px;
}

.navbar-nav .nav-link:hover {
    transform: translateY(-2px);
    color: var(--primary-white) !important;
}

.navbar-nav .nav-link:hover::before {
    opacity: 0.2;
}

.navbar-nav .nav-link:hover::after {
    width: 80%;
}

/* Hero Section */
.hero-section {
    background: var(--gradient-hero);
    background-size: 200% 200%;
    animation: gradientShift 15s ease infinite;
    padding: 120px 0 120px;
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    z-index: 1;
    overflow: hidden;
    margin-bottom: 0;
}

.hero-section .container {
    position: relative;
    z-index: 2;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: 
        radial-gradient(circle, rgba(102, 126, 234, 0.15) 0%, transparent 70%),
        radial-gradient(circle at 100% 100%, rgba(118, 75, 162, 0.15) 0%, transparent 70%);
    animation: rotate 20s linear infinite;
    pointer-events: none;
}

@keyframes gradientShift {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

@keyframes rotate {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.hero-content {
    padding: 2rem 0;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 800;
    margin-bottom: 1.5rem;
    line-height: 1.2;
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.hero-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    right: 0;
    width: 100%;
    height: 4px;
    background: var(--gradient-accent);
    border-radius: 2px;
    animation: expandLine 1s ease-out 0.5s both;
    box-shadow: 0 0 15px rgba(102, 126, 234, 0.6);
}

.title-line-1,
.title-line-2 {
    display: block;
    opacity: 1 !important;
    visibility: visible !important;
    background: var(--gradient-accent);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    background-size: 200% 200%;
    animation: gradientText 5s ease infinite, titleReveal 1s ease-out;
}

.title-line-2 {
    animation-delay: 0.3s;
    animation-fill-mode: both;
}

@keyframes gradientText {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

@keyframes expandLine {
    from { width: 0; opacity: 0; }
    to { width: 100%; opacity: 1; }
}

.hero-subtitle {
    font-size: 1.5rem;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 1rem;
    font-weight: 500;
}

.hero-description {
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 2rem;
    line-height: 1.8;
    max-width: 95%;
}

.btn-primary {
    background: var(--gradient-accent);
    color: var(--primary-white);
    border: none;
    padding: 14px 35px;
    font-weight: 600;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border-radius: 50px;
    position: relative;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.4);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.btn-primary::before {
    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-primary:hover::before {
    width: 300px;
    height: 300px;
}

.btn-primary:hover {
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.6);
}

.btn-primary:active {
    transform: translateY(-1px) scale(1.02);
}

/* Hero Badge */
.hero-badge {
    display: inline-block;
    margin-bottom: 1.5rem;
}

.badge-text {
    display: inline-block;
    padding: 8px 20px;
    background: rgba(102, 126, 234, 0.15);
    border: 1px solid rgba(102, 126, 234, 0.3);
    border-radius: 50px;
    color: var(--text-gray);
    font-size: 0.9rem;
    font-weight: 500;
    backdrop-filter: blur(10px);
    animation: badgePulse 2s ease-in-out infinite;
}

@keyframes badgePulse {
    0%, 100% { 
        box-shadow: 0 0 20px rgba(102, 126, 234, 0.3);
        transform: scale(1);
    }
    50% { 
        box-shadow: 0 0 30px rgba(102, 126, 234, 0.6);
        transform: scale(1.05);
    }
}

@keyframes titleReveal {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Ensure title-line-2 is always visible */
.title-line-2 {
    opacity: 1 !important;
    visibility: visible !important;
    display: block !important;
}

/* Hero Buttons */
.hero-buttons {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    margin-bottom: 0;
}

.btn-hero-primary,
.btn-hero-secondary {
    position: relative;
    overflow: hidden;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    text-decoration: none;
}

.btn-hero-primary {
    background: var(--gradient-accent);
    border: none;
    color: white;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
}

.btn-hero-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.5);
    color: white;
}

.btn-hero-secondary {
    background: transparent;
    border: 2px solid rgba(255, 255, 255, 0.3);
    color: white;
}

.btn-hero-secondary:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.5);
    transform: translateY(-3px);
    color: white;
}


/* Hero Visual Enhancements */
.hero-visual {
    position: relative;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-code-visual {
    position: relative;
    width: 100%;
    height: 450px;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 400px;
}

.code-icon-wrapper {
    position: relative;
    z-index: 2;
}

.code-icon {
    width: 250px;
    height: 250px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 50%;
    backdrop-filter: blur(20px);
    border: 2px solid rgba(102, 126, 234, 0.2);
    animation: codeIconFloat 8s ease-in-out infinite;
    position: relative;
}

.code-icon::before {
    content: '';
    position: absolute;
    inset: -15px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(102, 126, 234, 0.2) 0%, transparent 70%);
    animation: codeIconPulse 4s ease-in-out infinite;
    z-index: -1;
}

.code-tag {
    font-size: 6rem;
    font-weight: 300;
    color: rgba(255, 255, 255, 0.7);
    font-family: 'Courier New', monospace;
    letter-spacing: -8px;
}

@keyframes codeIconFloat {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-15px); }
}

@keyframes codeIconPulse {
    0%, 100% { transform: scale(1); opacity: 0.3; }
    50% { transform: scale(1.1); opacity: 0.5; }
}

/* Code Rings */
.code-rings {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 400px;
    height: 400px;
}

.ring {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    border: 2px solid rgba(102, 126, 234, 0.2);
    border-radius: 50%;
    animation: ringRotate 20s linear infinite;
}

.ring-1 {
    width: 300px;
    height: 300px;
    animation-duration: 25s;
}

.ring-2 {
    width: 350px;
    height: 350px;
    border-color: rgba(118, 75, 162, 0.15);
    animation-duration: 30s;
    animation-direction: reverse;
}

.ring-3 {
    width: 400px;
    height: 400px;
    border-color: rgba(240, 147, 251, 0.15);
    animation-duration: 35s;
}

@keyframes ringRotate {
    from { transform: translate(-50%, -50%) rotate(0deg); }
    to { transform: translate(-50%, -50%) rotate(360deg); }
}

/* Floating Elements */
.floating-elements {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
    height: 100%;
    pointer-events: none;
}

.float-element {
    position: absolute;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(102, 126, 234, 0.08);
    border-radius: 50%;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(102, 126, 234, 0.2);
    color: rgba(255, 255, 255, 0.5);
    font-size: 1.2rem;
    animation: floatElement 10s ease-in-out infinite;
}

/* Position icons on the rings themselves */
.float-1 {
    top: 50%;
    left: 50%;
    /* Position on ring-2 (middle ring) at top */
    --float-y: -175px; /* Half of ring-2 height (350px / 2) */
    --float-x: 0px;
    animation-delay: 0s;
}

.float-2 {
    top: 50%;
    left: 50%;
    /* Position on ring-2 at right */
    --float-y: 0px;
    --float-x: 175px; /* Half of ring-2 width (350px / 2) */
    animation-delay: 2s;
}

.float-3 {
    top: 50%;
    left: 50%;
    /* Position on ring-2 at bottom */
    --float-y: 175px;
    --float-x: 0px;
    animation-delay: 4s;
}

.float-4 {
    top: 50%;
    left: 50%;
    /* Position on ring-2 at left */
    --float-y: 0px;
    --float-x: -175px;
    animation-delay: 6s;
}

@keyframes floatElement {
    0%, 100% { 
        transform: translate(-50%, -50%) translateY(var(--float-y, 0)) translateX(var(--float-x, 0)) scale(1) rotate(0deg);
        opacity: 0.8;
    }
    25% { 
        transform: translate(-50%, -50%) translateY(calc(var(--float-y, 0) - 10px)) translateX(calc(var(--float-x, 0) + 5px)) scale(1.1) rotate(5deg);
        opacity: 1;
    }
    50% { 
        transform: translate(-50%, -50%) translateY(var(--float-y, 0)) translateX(var(--float-x, 0)) scale(1) rotate(0deg);
        opacity: 0.9;
    }
    75% { 
        transform: translate(-50%, -50%) translateY(calc(var(--float-y, 0) + 10px)) translateX(calc(var(--float-x, 0) - 5px)) scale(1.1) rotate(-5deg);
        opacity: 1;
    }
}

/* Hero Image Wrapper */
.hero-image-wrapper {
    position: relative;
    width: 100%;
    max-width: 600px;
    margin: 0 auto;
}

.hero-main-image {
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
    animation: imageFloat 6s ease-in-out infinite;
}

.hero-image-glow {
    position: absolute;
    inset: -20px;
    background: radial-gradient(circle, rgba(102, 126, 234, 0.4) 0%, transparent 70%);
    border-radius: 20px;
    z-index: -1;
    animation: glowPulse 3s ease-in-out infinite;
    filter: blur(20px);
}

@keyframes imageFloat {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    50% { transform: translateY(-15px) rotate(2deg); }
}

@keyframes glowPulse {
    0%, 100% { opacity: 0.5; transform: scale(1); }
    50% { opacity: 0.8; transform: scale(1.1); }
}

/* Hero Particles */
.hero-particles {
    position: absolute;
    inset: 0;
    overflow: hidden;
    pointer-events: none;
    z-index: 1;
}

.hero-particles::before,
.hero-particles::after {
    content: '';
    position: absolute;
    width: 4px;
    height: 4px;
    background: rgba(102, 126, 234, 0.6);
    border-radius: 50%;
    animation: particleFloat 15s linear infinite;
}

.hero-particles::before {
    top: 20%;
    left: 10%;
    animation-delay: 0s;
}

.hero-particles::after {
    top: 60%;
    right: 15%;
    animation-delay: 5s;
    background: rgba(118, 75, 162, 0.6);
}

@keyframes particleFloat {
    0% {
        transform: translateY(0) translateX(0);
        opacity: 0;
    }
    10% {
        opacity: 1;
    }
    90% {
        opacity: 1;
    }
    100% {
        transform: translateY(-100vh) translateX(50px);
        opacity: 0;
    }
}

/* RTL Adjustments for Hero */
[dir="rtl"] .hero-buttons {
    flex-direction: row-reverse;
}

[dir="rtl"] .btn-hero-primary i,
[dir="rtl"] .btn-hero-secondary i {
    margin-right: 0.5rem;
    margin-left: 0;
}

[dir="rtl"] .hero-title::after {
    right: 0;
    left: auto;
}

[dir="rtl"] .hero-content {
    text-align: right;
}

[dir="rtl"] .hero-visual {
    text-align: left;
}

/* Responsive Hero */
@media (max-width: 992px) {
    .hero-title {
        font-size: 2.5rem;
    }
    
    .hero-subtitle {
        font-size: 1.3rem;
    }
    
    .hero-description {
        font-size: 1rem;
        max-width: 100%;
    }
    
    .code-icon {
        width: 200px;
        height: 200px;
    }
    
    .code-tag {
        font-size: 5rem;
    }
    
    .hero-code-visual {
        height: 400px;
    }
    
    .ring-1 {
        width: 250px;
        height: 250px;
    }
    
    .ring-2 {
        width: 300px;
        height: 300px;
    }
    
    .ring-3 {
        width: 350px;
        height: 350px;
    }
    
    .float-element {
        width: 50px;
        height: 50px;
        font-size: 1.2rem;
    }
    
}

@media (max-width: 768px) {
    .hero-title {
        font-size: 2rem;
    }
    
    .hero-buttons {
        flex-direction: column;
        width: 100%;
    }
    
    .btn-hero-primary,
    .btn-hero-secondary {
        width: 100%;
        justify-content: center;
    }
    
}

/* Scroll Indicator */
.hero-scroll-arrow {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 3;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
}

.scroll-down-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    color: rgba(255, 255, 255, 0.8);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
}

.scroll-down-btn:hover {
    color: rgba(255, 255, 255, 1);
    transform: translateY(-5px);
}

.scroll-arrow-icon {
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(102, 126, 234, 0.2);
    border: 2px solid rgba(102, 126, 234, 0.4);
    border-radius: 50%;
    backdrop-filter: blur(10px);
    transition: all 0.4s ease;
    animation: arrowBounce 2s ease-in-out infinite;
    position: relative;
}

.scroll-down-btn:hover .scroll-arrow-icon {
    background: rgba(102, 126, 234, 0.3);
    border-color: rgba(102, 126, 234, 0.6);
    transform: scale(1.1);
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.4);
}

.scroll-arrow-icon i {
    font-size: 1.2rem;
    color: rgba(255, 255, 255, 0.9);
    animation: arrowMove 1.5s ease-in-out infinite;
}

.scroll-down-btn:hover .scroll-arrow-icon i {
    color: rgba(255, 255, 255, 1);
}

@keyframes arrowBounce {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-10px);
    }
}

@keyframes arrowMove {
    0%, 100% {
        transform: translateY(0);
        opacity: 0.8;
    }
    50% {
        transform: translateY(5px);
        opacity: 1;
    }
}

.scroll-arrow-text {
    font-size: 0.85rem;
    font-weight: 500;
    letter-spacing: 1px;
    text-transform: uppercase;
    opacity: 0.8;
    transition: opacity 0.4s ease;
}

.scroll-down-btn:hover .scroll-arrow-text {
    opacity: 1;
}

/* Hide scroll arrow when scrolling past hero */
.hero-scroll-arrow.hidden {
    opacity: 0 !important;
    visibility: hidden !important;
    transform: translateX(-50%) translateY(20px) !important;
    pointer-events: none !important;
}

/* Ensure about section covers scroll indicator */
.hero-image {
    text-align: center;
}

.hero-placeholder {
    color: var(--text-gray);
    opacity: 0.3;
}

/* Section Styles */
section {
    padding: 80px 0;
    position: relative;
    overflow: hidden;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 1rem;
    background: var(--gradient-accent);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    background-size: 200% 200%;
    animation: gradientText 5s ease infinite;
    position: relative;
    display: inline-block;
}

.about-section .section-title {
    font-size: 3rem;
    font-weight: 900;
}

.title-underline {
    width: 100px;
    height: 3px;
    background: var(--gradient-accent);
    margin: 0 auto 1.5rem;
    border-radius: 2px;
    position: relative;
    animation: expandUnderline 1s ease-out;
    box-shadow: 0 0 15px rgba(102, 126, 234, 0.5);
}

.about-header .title-underline {
    margin: 1.5rem auto;
    width: 120px;
    height: 4px;
}

/* Apply same spacing for services, projects, and contact sections */
.services-section .title-underline,
.projects-section .title-underline,
.contact-section .title-underline {
    margin: 1.5rem auto;
    width: 120px;
    height: 4px;
}

.title-underline::after {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 120%;
    height: 100%;
    background: var(--gradient-accent);
    opacity: 0.5;
    filter: blur(10px);
    animation: pulse 2s ease-in-out infinite;
}

@keyframes expandUnderline {
    from {
        width: 0;
        opacity: 0;
    }
    to {
        width: 80px;
        opacity: 1;
    }
}

.section-description {
    color: rgba(255, 255, 255, 0.8);
    font-size: 1.1rem;
    font-weight: 400;
    line-height: 1.6;
    margin-top: 1rem;
}

.about-header .section-description {
    font-size: 1.15rem;
    color: rgba(255, 255, 255, 0.85);
    margin-top: 0;
}

/* About Section */
.about-section {
    background: linear-gradient(135deg, rgba(26, 26, 26, 0.95) 0%, rgba(0, 0, 0, 1) 100%);
    position: relative;
    z-index: 20;
    overflow: hidden;
    padding: 100px 0;
    margin-top: 0;
}

.about-pattern {
    position: absolute;
    inset: 0;
    background-image: 
        radial-gradient(circle at 20% 30%, rgba(102, 126, 234, 0.08) 0%, transparent 50%),
        radial-gradient(circle at 80% 70%, rgba(118, 75, 162, 0.08) 0%, transparent 50%);
    animation: patternMove 20s ease-in-out infinite;
    pointer-events: none;
}

@keyframes patternMove {
    0%, 100% { 
        transform: translate(0, 0) scale(1);
        opacity: 0.5;
    }
    50% { 
        transform: translate(20px, -20px) scale(1.1);
        opacity: 0.8;
    }
}

.about-header {
    text-align: center;
    margin-bottom: 4rem;
    position: relative;
}

.about-title-glow {
    position: relative;
    display: inline-block;
    margin-bottom: 1.5rem;
    filter: drop-shadow(0 0 30px rgba(102, 126, 234, 0.6));
    animation: titleGlowPulse 3s ease-in-out infinite;
}

.about-title-glow::before {
    content: 'من نحن';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--gradient-accent);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    filter: blur(20px);
    opacity: 0.7;
    z-index: -1;
    animation: glowBlur 3s ease-in-out infinite;
}

.about-title-glow::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 120%;
    height: 120%;
    background: radial-gradient(circle, rgba(102, 126, 234, 0.3) 0%, transparent 70%);
    border-radius: 50%;
    z-index: -2;
    animation: glowRing 4s ease-in-out infinite;
}

@keyframes titleGlowPulse {
    0%, 100% { 
        filter: drop-shadow(0 0 30px rgba(102, 126, 234, 0.6));
        transform: scale(1);
    }
    50% { 
        filter: drop-shadow(0 0 50px rgba(102, 126, 234, 0.9));
        transform: scale(1.02);
    }
}

@keyframes glowBlur {
    0%, 100% { 
        opacity: 0.5;
        transform: scale(1);
    }
    50% { 
        opacity: 0.8;
        transform: scale(1.05);
    }
}

@keyframes glowRing {
    0%, 100% { 
        opacity: 0.3;
        transform: translate(-50%, -50%) scale(1);
    }
    50% { 
        opacity: 0.6;
        transform: translate(-50%, -50%) scale(1.2);
    }
}

.about-underline-glow {
    position: relative;
    filter: drop-shadow(0 0 15px rgba(102, 126, 234, 0.8));
    animation: underlineGlow 2s ease-in-out infinite;
}

.about-underline-glow::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 150%;
    height: 200%;
    background: var(--gradient-accent);
    filter: blur(15px);
    opacity: 0.6;
    z-index: -1;
    animation: underlineBlur 2s ease-in-out infinite;
}

@keyframes underlineGlow {
    0%, 100% { 
        filter: drop-shadow(0 0 15px rgba(102, 126, 234, 0.8));
        box-shadow: 0 0 20px rgba(102, 126, 234, 0.6);
    }
    50% { 
        filter: drop-shadow(0 0 25px rgba(102, 126, 234, 1));
        box-shadow: 0 0 30px rgba(102, 126, 234, 0.9);
    }
}

@keyframes underlineBlur {
    0%, 100% { 
        opacity: 0.4;
        transform: translate(-50%, -50%) scale(1);
    }
    50% { 
        opacity: 0.7;
        transform: translate(-50%, -50%) scale(1.3);
    }
}

.about-description-glow {
    position: relative;
    text-shadow: 0 0 20px rgba(255, 255, 255, 0.3);
    animation: descriptionGlow 3s ease-in-out infinite;
}

@keyframes descriptionGlow {
    0%, 100% { 
        text-shadow: 0 0 20px rgba(255, 255, 255, 0.3);
        opacity: 0.85;
    }
    50% { 
        text-shadow: 0 0 30px rgba(255, 255, 255, 0.5);
        opacity: 1;
    }
}

.section-title {
    margin-bottom: 0;
    display: inline-block;
}

.about-content-wrapper {
    position: relative;
    z-index: 2;
}

.about-text-block {
    text-align: right;
}

.about-subtitle {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    background: var(--gradient-accent);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1.3;
    text-align: right;
}

.about-description {
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.9;
    margin-bottom: 2.5rem;
    text-align: right;
}

.about-features {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.feature-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
    padding: 1.5rem;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 15px;
    backdrop-filter: blur(10px);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    text-align: right;
}

.feature-item::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 4px;
    height: 100%;
    background: var(--gradient-accent);
    transform: scaleY(0);
    transition: transform 0.4s ease;
}

.feature-item:hover::before {
    transform: scaleY(1);
}

.feature-item:hover {
    transform: translateX(-5px);
    background: rgba(102, 126, 234, 0.1);
    border-color: rgba(102, 126, 234, 0.3);
    box-shadow: 0 10px 30px rgba(102, 126, 234, 0.2);
}

.feature-content {
    flex: 1;
    text-align: right;
}

.feature-content h4 {
    text-align: right;
}

.feature-content p {
    text-align: right;
}

.feature-icon {
    width: 60px;
    height: 60px;
    min-width: 60px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--gradient-accent);
    border-radius: 15px;
    font-size: 1.5rem;
    color: white;
    box-shadow: 0 8px 20px rgba(102, 126, 234, 0.4);
    transition: all 0.4s ease;
    order: 2;
}

.feature-item:hover .feature-icon {
    transform: scale(1.1) rotate(-5deg);
    box-shadow: 0 12px 30px rgba(102, 126, 234, 0.6);
}

.feature-content {
    order: 1;
    flex: 1;
}

.feature-content h4 {
    font-size: 1.2rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.95);
    margin-bottom: 0.5rem;
    text-align: right;
}

.feature-content p {
    font-size: 0.95rem;
    color: rgba(255, 255, 255, 0.7);
    margin: 0;
    line-height: 1.6;
    text-align: right;
}

.about-stats {
    position: relative;
}

.about-stats .row {
    display: flex;
    justify-content: center;
    align-items: stretch;
}

.stat-box {
    text-align: center;
    padding: 2rem;
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    min-height: 200px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    border-radius: 20px;
    position: relative;
    overflow: hidden;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    width: 100%;
    animation: statFloat 6s ease-in-out infinite;
    cursor: pointer;
}

.stat-float-1 {
    animation-delay: 0s;
}

.stat-float-2 {
    animation-delay: 2s;
}

.stat-float-3 {
    animation-delay: 4s;
}

@keyframes statFloat {
    0%, 100% { 
        transform: translateY(0) scale(1);
    }
    50% { 
        transform: translateY(-15px) scale(1.02);
    }
}

.stat-box::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: var(--gradient-accent);
    opacity: 0;
    transition: opacity 0.5s ease;
    z-index: -1;
}

.stat-box::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at center, rgba(102, 126, 234, 0.1) 0%, transparent 70%);
    opacity: 0;
    transition: opacity 0.5s ease;
    z-index: -1;
}

.stat-box:hover {
    animation-play-state: paused !important;
    transform: translateY(-20px) scale(1.05) !important;
    background: rgba(102, 126, 234, 0.15) !important;
    border-color: rgba(102, 126, 234, 0.5) !important;
    box-shadow: 0 25px 60px rgba(102, 126, 234, 0.5) !important;
    z-index: 10;
}

.stat-box:hover::before {
    opacity: 0.15 !important;
}

.stat-box:hover::after {
    opacity: 1 !important;
}

.stat-icon-wrapper {
    width: 100%;
    display: flex;
    justify-content: flex-end;
    align-items: center;
    margin-bottom: 1rem;
    padding-right: 0;
}

[dir="rtl"] .stat-icon-wrapper {
    justify-content: flex-start;
    padding-right: 0;
    padding-left: 0;
}

.stat-icon {
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--gradient-accent);
    border-radius: 50%;
    font-size: 1.5rem;
    color: white;
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.5);
    transition: all 0.4s ease;
    animation: iconPulse 2s ease-in-out infinite;
    margin-left: auto;
    margin-right: 0;
}

[dir="rtl"] .stat-icon {
    margin-left: 0;
    margin-right: auto;
}

.stat-box:hover .stat-icon {
    transform: scale(1.2) rotate(10deg) !important;
    box-shadow: 0 15px 40px rgba(102, 126, 234, 0.8) !important;
    animation: iconRotate 0.6s ease !important;
}

@keyframes iconPulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

@keyframes iconRotate {
    0% { transform: scale(1) rotate(0deg); }
    50% { transform: scale(1.2) rotate(180deg); }
    100% { transform: scale(1.15) rotate(10deg); }
}

.stat-progress {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--gradient-accent);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 1s ease;
}

.stat-box:hover .stat-progress {
    transform: scaleX(1);
}

.stat-number {
    font-size: 3.5rem;
    font-weight: 900;
    background: var(--gradient-accent);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 0.5rem;
    min-height: 3.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
    position: relative;
    transition: all 0.3s ease;
}

.stat-number::after {
    content: '+';
    font-size: 2rem;
    background: var(--gradient-accent);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-right: 0.2rem;
    opacity: 0.7;
}

.stat-box:hover .stat-number {
    transform: scale(1.15) !important;
}

.stat-box:hover .stat-label {
    color: rgba(255, 255, 255, 1) !important;
    transform: translateY(-2px);
}

.stat-label {
    color: rgba(255, 255, 255, 0.9);
    font-size: 1rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin: 0;
}

/* RTL Adjustments for About Section */
[dir="rtl"] .feature-item {
    flex-direction: row;
    text-align: right;
}

[dir="rtl"] .feature-item:hover {
    transform: translateX(-5px);
}

[dir="rtl"] .feature-item::before {
    right: 0;
    left: auto;
}

[dir="rtl"] .feature-content {
    text-align: right;
    order: 1;
}

[dir="rtl"] .feature-icon {
    order: 2;
}

[dir="rtl"] .stat-progress {
    transform-origin: right;
}

[dir="rtl"] .stat-number::after {
    margin-right: 0;
    margin-left: 0.2rem;
}

/* Responsive About Section */
@media (max-width: 992px) {
    .about-title-glow {
        font-size: 2rem;
    }
    
    .about-subtitle {
        font-size: 1.5rem;
    }
    
    .about-description {
        font-size: 1rem;
    }
    
    .feature-item {
        padding: 1.2rem;
    }
    
    .feature-icon {
        width: 50px;
        height: 50px;
        min-width: 50px;
        font-size: 1.2rem;
    }
    
    .stat-box {
        min-height: 180px;
        padding: 1.5rem;
    }
    
    .stat-number {
        font-size: 2.5rem;
    }
    
    .stat-icon {
        width: 55px;
        height: 55px;
        font-size: 1.4rem;
    }
    
    .about-stats .row {
        justify-content: center;
    }
    
    .about-stats .col-md-6.col-lg-4 {
        max-width: 100%;
        flex: 0 0 100%;
    }
}

@media (min-width: 993px) {
    .about-stats .col-lg-4 {
        flex: 0 0 33.333333%;
        max-width: 33.333333%;
    }
}

@media (max-width: 768px) {
    .about-section {
        padding: 60px 0;
    }
    
    .about-features {
        gap: 1rem;
    }
    
    .feature-item {
        flex-direction: column;
        text-align: center;
        align-items: center;
        gap: 1rem;
    }
    
    .feature-content {
        text-align: center;
        order: 1;
    }
    
    .feature-icon {
        order: 2;
    }
    
    [dir="rtl"] .feature-item {
        flex-direction: column;
    }
    
    [dir="rtl"] .feature-item:hover {
        transform: translateY(-5px);
    }
    
    [dir="rtl"] .feature-content {
        text-align: center;
    }
}

/* Services Section */
.services-section {
    background: linear-gradient(180deg, rgba(0, 0, 0, 0.95) 0%, rgba(26, 0, 51, 0.9) 100%);
    position: relative;
    overflow: hidden;
    padding: 100px 0;
}

.services-pattern {
    position: absolute;
    inset: 0;
    background-image: 
        radial-gradient(circle at 25% 40%, rgba(102, 126, 234, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 75% 60%, rgba(118, 75, 162, 0.1) 0%, transparent 50%);
    animation: servicesPatternMove 25s ease-in-out infinite;
    pointer-events: none;
}

@keyframes servicesPatternMove {
    0%, 100% { 
        transform: translate(0, 0) scale(1);
        opacity: 0.6;
    }
    50% { 
        transform: translate(30px, -30px) scale(1.1);
        opacity: 0.9;
    }
}

.services-title-glow {
    position: relative;
    display: inline-block;
    filter: drop-shadow(0 0 25px rgba(102, 126, 234, 0.5));
    animation: servicesTitleGlow 3s ease-in-out infinite;
}

.services-title-glow::before {
    content: 'خدماتنا';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--gradient-accent);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    filter: blur(15px);
    opacity: 0.6;
    z-index: -1;
    animation: servicesTitleBlur 3s ease-in-out infinite;
}

@keyframes servicesTitleGlow {
    0%, 100% { 
        filter: drop-shadow(0 0 25px rgba(102, 126, 234, 0.5));
    }
    50% { 
        filter: drop-shadow(0 0 40px rgba(102, 126, 234, 0.8));
    }
}

@keyframes servicesTitleBlur {
    0%, 100% { 
        opacity: 0.5;
        transform: scale(1);
    }
    50% { 
        opacity: 0.8;
        transform: scale(1.05);
    }
}

.services-underline-glow {
    position: relative;
    filter: drop-shadow(0 0 12px rgba(102, 126, 234, 0.7));
    animation: servicesUnderlineGlow 2.5s ease-in-out infinite;
}

.services-underline-glow::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 150%;
    height: 200%;
    background: var(--gradient-accent);
    filter: blur(12px);
    opacity: 0.5;
    z-index: -1;
    animation: servicesUnderlineBlur 2.5s ease-in-out infinite;
}

@keyframes servicesUnderlineGlow {
    0%, 100% { 
        filter: drop-shadow(0 0 12px rgba(102, 126, 234, 0.7));
        box-shadow: 0 0 18px rgba(102, 126, 234, 0.5);
    }
    50% { 
        filter: drop-shadow(0 0 20px rgba(102, 126, 234, 0.9));
        box-shadow: 0 0 25px rgba(102, 126, 234, 0.7);
    }
}

@keyframes servicesUnderlineBlur {
    0%, 100% { 
        opacity: 0.4;
        transform: translate(-50%, -50%) scale(1);
    }
    50% { 
        opacity: 0.6;
        transform: translate(-50%, -50%) scale(1.2);
    }
}

.services-description-glow {
    position: relative;
    text-shadow: 0 0 15px rgba(255, 255, 255, 0.2);
    animation: servicesDescriptionGlow 3.5s ease-in-out infinite;
}

@keyframes servicesDescriptionGlow {
    0%, 100% { 
        text-shadow: 0 0 15px rgba(255, 255, 255, 0.2);
        opacity: 0.8;
    }
    50% { 
        text-shadow: 0 0 25px rgba(255, 255, 255, 0.4);
        opacity: 1;
    }
}

.service-card {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    padding: 2.5rem 2rem;
    text-align: center;
    height: 100%;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    border-radius: 20px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    cursor: pointer;
}

.service-card::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: var(--gradient-accent);
    opacity: 0;
    transition: opacity 0.5s ease, transform 0.5s ease;
    transform: rotate(45deg);
    z-index: 0;
}

.service-card::after {
    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 0.8s ease;
    z-index: 1;
}

.service-card:hover::before {
    opacity: 0.15;
    transform: rotate(45deg) scale(1.2);
}

.service-card:hover::after {
    left: 100%;
}

.service-card:hover {
    transform: translateY(-20px) scale(1.05) !important;
    border-color: rgba(102, 126, 234, 0.6) !important;
    box-shadow: 0 25px 60px rgba(102, 126, 234, 0.5) !important;
    background: rgba(102, 126, 234, 0.1) !important;
}

.service-card > * {
    position: relative;
    z-index: 2;
}

.service-icon {
    font-size: 3.5rem;
    background: var(--gradient-accent);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 1.5rem;
    display: inline-block;
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    filter: drop-shadow(0 0 20px rgba(102, 126, 234, 0.5));
    position: relative;
    animation: serviceIconFloat 4s ease-in-out infinite;
}

.service-card:nth-child(1) .service-icon {
    animation-delay: 0s;
}

.service-card:nth-child(2) .service-icon {
    animation-delay: 0.5s;
}

.service-card:nth-child(3) .service-icon {
    animation-delay: 1s;
}

.service-card:nth-child(4) .service-icon {
    animation-delay: 1.5s;
}

.service-card:nth-child(5) .service-icon {
    animation-delay: 2s;
}

.service-card:nth-child(6) .service-icon {
    animation-delay: 2.5s;
}

@keyframes serviceIconFloat {
    0%, 100% { 
        transform: translateY(0);
        filter: drop-shadow(0 0 20px rgba(102, 126, 234, 0.5));
    }
    50% { 
        transform: translateY(-8px);
        filter: drop-shadow(0 0 30px rgba(102, 126, 234, 0.7));
    }
}

.service-card:hover .service-icon {
    transform: scale(1.25) rotate(10deg) !important;
    filter: drop-shadow(0 0 40px rgba(102, 126, 234, 0.9)) !important;
    animation-play-state: paused !important;
}

.service-card h4 {
    color: rgba(255, 255, 255, 0.95);
    font-weight: 700;
    font-size: 1.3rem;
    margin-bottom: 1rem;
    transition: all 0.4s ease;
}

.service-card:hover h4 {
    color: rgba(255, 255, 255, 1) !important;
    transform: translateY(-3px);
}

.service-card p {
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.8;
    font-size: 0.95rem;
    transition: all 0.4s ease;
}

.service-card:hover p {
    color: rgba(255, 255, 255, 0.9) !important;
}

/* RTL Adjustments for Services */
[dir="rtl"] .service-card {
    text-align: center;
}

/* Responsive Services */
@media (max-width: 992px) {
    .service-card {
        padding: 2rem 1.5rem;
    }
    
    .service-icon {
        font-size: 3rem;
    }
    
    .service-card h4 {
        font-size: 1.2rem;
    }
}

@media (max-width: 768px) {
    .services-section {
        padding: 60px 0;
    }
    
    .service-card {
        margin-bottom: 1.5rem;
    }
}

/* Projects Section */
.projects-section {
    background: linear-gradient(135deg, rgba(26, 0, 51, 0.9) 0%, rgba(0, 0, 0, 1) 100%);
    position: relative;
    overflow: hidden;
    padding: 100px 0;
}

.projects-pattern {
    position: absolute;
    inset: 0;
    background-image: 
        radial-gradient(circle at 30% 50%, rgba(102, 126, 234, 0.08) 0%, transparent 50%),
        radial-gradient(circle at 70% 50%, rgba(118, 75, 162, 0.08) 0%, transparent 50%);
    animation: projectsPatternMove 20s ease-in-out infinite;
    pointer-events: none;
}

@keyframes projectsPatternMove {
    0%, 100% { 
        transform: translate(0, 0) scale(1);
        opacity: 0.5;
    }
    50% { 
        transform: translate(-25px, 25px) scale(1.1);
        opacity: 0.8;
    }
}

.projects-title-glow {
    position: relative;
    display: inline-block;
    filter: drop-shadow(0 0 25px rgba(102, 126, 234, 0.5));
    animation: projectsTitleGlow 3s ease-in-out infinite;
}

.projects-title-glow::before {
    content: 'مشاريعنا';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--gradient-accent);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    filter: blur(15px);
    opacity: 0.6;
    z-index: -1;
    animation: projectsTitleBlur 3s ease-in-out infinite;
}

@keyframes projectsTitleGlow {
    0%, 100% { 
        filter: drop-shadow(0 0 25px rgba(102, 126, 234, 0.5));
    }
    50% { 
        filter: drop-shadow(0 0 40px rgba(102, 126, 234, 0.8));
    }
}

@keyframes projectsTitleBlur {
    0%, 100% { 
        opacity: 0.5;
        transform: scale(1);
    }
    50% { 
        opacity: 0.8;
        transform: scale(1.05);
    }
}

.projects-underline-glow {
    position: relative;
    filter: drop-shadow(0 0 12px rgba(102, 126, 234, 0.7));
    animation: projectsUnderlineGlow 2.5s ease-in-out infinite;
}

.projects-underline-glow::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 150%;
    height: 200%;
    background: var(--gradient-accent);
    filter: blur(12px);
    opacity: 0.5;
    z-index: -1;
    animation: projectsUnderlineBlur 2.5s ease-in-out infinite;
}

@keyframes projectsUnderlineGlow {
    0%, 100% { 
        filter: drop-shadow(0 0 12px rgba(102, 126, 234, 0.7));
        box-shadow: 0 0 18px rgba(102, 126, 234, 0.5);
    }
    50% { 
        filter: drop-shadow(0 0 20px rgba(102, 126, 234, 0.9));
        box-shadow: 0 0 25px rgba(102, 126, 234, 0.7);
    }
}

@keyframes projectsUnderlineBlur {
    0%, 100% { 
        opacity: 0.4;
        transform: translate(-50%, -50%) scale(1);
    }
    50% { 
        opacity: 0.6;
        transform: translate(-50%, -50%) scale(1.2);
    }
}

.projects-description-glow {
    position: relative;
    text-shadow: 0 0 15px rgba(255, 255, 255, 0.2);
    animation: projectsDescriptionGlow 3.5s ease-in-out infinite;
}

@keyframes projectsDescriptionGlow {
    0%, 100% { 
        text-shadow: 0 0 15px rgba(255, 255, 255, 0.2);
        opacity: 0.8;
    }
    50% { 
        text-shadow: 0 0 25px rgba(255, 255, 255, 0.4);
        opacity: 1;
    }
}

.projects-grid {
    position: relative;
}

.project-card {
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    height: 100%;
    border-radius: 20px;
    position: relative;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    animation: projectCardFloat 6s ease-in-out infinite;
}

.project-item:nth-child(1) .project-card {
    animation-delay: 0s;
}

.project-item:nth-child(2) .project-card {
    animation-delay: 1s;
}

.project-item:nth-child(3) .project-card {
    animation-delay: 2s;
}

.project-item:nth-child(4) .project-card {
    animation-delay: 0.5s;
}

.project-item:nth-child(5) .project-card {
    animation-delay: 1.5s;
}

.project-item:nth-child(6) .project-card {
    animation-delay: 2.5s;
}

@keyframes projectCardFloat {
    0%, 100% { 
        transform: translateY(0);
    }
    50% { 
        transform: translateY(-8px);
    }
}

.project-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: var(--gradient-accent);
    opacity: 0;
    transition: opacity 0.5s ease;
    z-index: 1;
    border-radius: 20px;
}

.project-card:hover::before {
    opacity: 0.12;
}

.project-card:hover {
    animation-play-state: paused !important;
    transform: translateY(-15px) scale(1.03) !important;
    box-shadow: 0 25px 70px rgba(102, 126, 234, 0.5) !important;
    border-color: rgba(102, 126, 234, 0.6) !important;
    background: rgba(102, 126, 234, 0.08) !important;
}

.project-image {
    position: relative;
    overflow: hidden;
    height: 280px;
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.1) 0%, rgba(118, 75, 162, 0.1) 100%);
}

.project-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.project-card:hover .project-image img {
    transform: scale(1.15);
}

.project-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.15) 0%, rgba(118, 75, 162, 0.15) 100%);
    color: rgba(255, 255, 255, 0.4);
}

.project-badge {
    position: absolute;
    top: 15px;
    right: 15px;
    width: 40px;
    height: 40px;
    background: var(--gradient-accent);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 0.9rem;
    z-index: 3;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.5);
    animation: badgePulse 2s ease-in-out infinite;
}

@keyframes badgePulse {
    0%, 100% { 
        transform: scale(1);
        box-shadow: 0 4px 15px rgba(102, 126, 234, 0.5);
    }
    50% { 
        transform: scale(1.1);
        box-shadow: 0 6px 20px rgba(102, 126, 234, 0.7);
    }
}

.project-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.95) 0%, rgba(118, 75, 162, 0.95) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 2;
    backdrop-filter: blur(5px);
}

.project-overlay-content {
    text-align: center;
    padding: 2rem;
}

.btn-project-view {
    background: rgba(255, 255, 255, 0.95);
    color: #333;
    border: none;
    padding: 12px 24px;
    border-radius: 50px;
    font-weight: 600;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    transition: all 0.4s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.btn-project-view:hover {
    background: white;
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
    color: #333;
}

.project-tech-tags {
    margin-top: 1rem;
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.tech-tag {
    background: rgba(255, 255, 255, 0.2);
    color: white;
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    backdrop-filter: blur(10px);
}

.project-card:hover .project-overlay {
    opacity: 1;
}

.project-info {
    padding: 2rem;
    position: relative;
    z-index: 2;
}

.project-info h4 {
    color: rgba(255, 255, 255, 0.95);
    font-weight: 700;
    font-size: 1.3rem;
    margin-bottom: 0.75rem;
    transition: color 0.4s ease;
}

.project-card:hover .project-info h4 {
    color: rgba(255, 255, 255, 1) !important;
}

.project-category {
    color: rgba(102, 126, 234, 0.9);
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    margin-bottom: 1rem;
    font-weight: 600;
    display: inline-block;
    padding: 4px 12px;
    background: rgba(102, 126, 234, 0.15);
    border-radius: 15px;
}

.project-description {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.95rem;
    line-height: 1.7;
    margin-bottom: 1.5rem;
    min-height: 50px;
}

.project-footer {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 1rem;
    margin-top: 1rem;
}

.project-link {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: all 0.4s ease;
}

.project-link:hover {
    color: rgba(102, 126, 234, 1);
    gap: 12px;
}

.project-link i {
    transition: transform 0.4s ease;
}

.project-link:hover i {
    transform: translateX(-5px);
}

/* More Projects Section */
.projects-more {
    padding: 3rem 2rem;
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 25px;
    margin-top: 3rem;
}

.more-projects-badge {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 12px 25px;
    background: rgba(102, 126, 234, 0.15);
    border: 1px solid rgba(102, 126, 234, 0.3);
    border-radius: 50px;
    color: rgba(255, 255, 255, 0.9);
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    backdrop-filter: blur(10px);
    animation: badgeFloat 3s ease-in-out infinite;
}

@keyframes badgeFloat {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-5px); }
}

.more-projects-text {
    color: rgba(255, 255, 255, 0.8);
    font-size: 1.1rem;
    margin-bottom: 2rem;
    line-height: 1.8;
}

.projects-stats-mini {
    display: flex;
    justify-content: center;
    gap: 3rem;
    flex-wrap: wrap;
}

.mini-stat {
    text-align: center;
}

.mini-stat-number {
    display: block;
    font-size: 2rem;
    font-weight: 800;
    background: var(--gradient-accent);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 0.5rem;
}

.mini-stat-label {
    display: block;
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.9rem;
    font-weight: 500;
}

/* RTL Adjustments for Projects */
[dir="rtl"] .project-badge {
    right: auto;
    left: 15px;
}

[dir="rtl"] .project-link:hover i {
    transform: translateX(5px);
}

/* Responsive Projects */
@media (max-width: 992px) {
    .projects-section {
        padding: 60px 0;
    }
    
    .project-image {
        height: 250px;
    }
    
    .projects-stats-mini {
        gap: 2rem;
    }
}

@media (max-width: 768px) {
    .project-card {
        margin-bottom: 2rem;
    }
    
    .projects-stats-mini {
        gap: 1.5rem;
    }
    
    .mini-stat-number {
        font-size: 1.5rem;
    }
}

/* Team Section */
.team-section {
    background: linear-gradient(180deg, rgba(0, 0, 0, 0.9) 0%, rgba(26, 26, 26, 0.8) 100%);
    position: relative;
    overflow: hidden;
}

.team-card {
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    text-align: center;
    padding: 2.5rem 2rem;
    border: 1px solid var(--glass-border);
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    height: 100%;
    border-radius: 25px;
    position: relative;
    overflow: hidden;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

.team-card::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: var(--gradient-accent);
    opacity: 0;
    transition: opacity 0.5s ease;
    z-index: 0;
    border-radius: 50%;
}

.team-card:hover::before {
    opacity: 0.1;
}

.team-card:hover {
    transform: translateY(-15px) scale(1.05);
    border-color: rgba(102, 126, 234, 0.6);
    box-shadow: 0 20px 50px rgba(102, 126, 234, 0.4);
}

.team-card > * {
    position: relative;
    z-index: 1;
}

.team-image {
    width: 150px;
    height: 150px;
    margin: 0 auto 1.5rem;
    border-radius: 50%;
    overflow: hidden;
    border: 4px solid transparent;
    background: var(--gradient-accent);
    padding: 4px;
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 0 30px rgba(102, 126, 234, 0.5);
}

.team-card:hover .team-image {
    transform: scale(1.1) rotate(5deg);
    box-shadow: 0 0 50px rgba(102, 126, 234, 0.8);
}

.team-image img {
    border-radius: 50%;
}

.team-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.team-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: var(--primary-black);
    color: var(--text-gray);
}

.team-info h5 {
    color: var(--primary-white);
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.team-position {
    color: var(--text-gray);
    font-size: 0.9rem;
    margin-bottom: 1rem;
}

.team-social {
    display: flex;
    justify-content: center;
    gap: 1rem;
}

.team-social a {
    color: var(--text-gray);
    font-size: 1.2rem;
    transition: all 0.3s ease;
}

.team-social a:hover {
    color: var(--primary-white);
    transform: scale(1.2);
}

/* Testimonials Section */
.testimonials-section {
    background: linear-gradient(135deg, rgba(26, 26, 26, 0.8) 0%, rgba(26, 0, 51, 0.8) 100%);
    position: relative;
    overflow: hidden;
}

.testimonial-card {
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    padding: 2.5rem;
    border: 1px solid var(--glass-border);
    height: 100%;
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    border-radius: 25px;
    position: relative;
    overflow: hidden;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

.testimonial-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--gradient-accent);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.5s ease;
}

.testimonial-card:hover::before {
    transform: scaleX(1);
}

.testimonial-card:hover {
    transform: translateY(-10px) scale(1.02);
    border-color: rgba(102, 126, 234, 0.6);
    box-shadow: 0 20px 50px rgba(102, 126, 234, 0.4);
}

.testimonial-rating {
    background: var(--gradient-gold);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 1rem;
    font-size: 1.3rem;
    filter: drop-shadow(0 0 10px rgba(246, 211, 101, 0.5));
}

.testimonial-text {
    color: var(--text-gray);
    font-style: italic;
    margin-bottom: 1.5rem;
    line-height: 1.8;
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.author-image {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    overflow: hidden;
    border: 2px solid var(--primary-white);
}

.author-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.author-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: var(--accent-gray);
    color: var(--text-gray);
}

.author-info h6 {
    color: var(--primary-white);
    margin-bottom: 0.25rem;
}

.author-info p {
    color: var(--text-gray);
    font-size: 0.9rem;
}

/* Contact Section - Base Styles */
.contact-section {
    background: linear-gradient(135deg, rgba(26, 0, 51, 0.95) 0%, rgba(0, 0, 0, 1) 100%);
    position: relative;
    overflow: hidden;
    padding: 6rem 0;
}

.contact-section .container {
    position: relative;
    z-index: 2;
}

/* Enhanced Contact Section Styles */
.contact-section {
    background: linear-gradient(135deg, rgba(26, 0, 51, 0.9) 0%, rgba(0, 0, 0, 0.95) 100%);
}

.contact-pattern {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 30% 30%, rgba(102, 126, 234, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 70% 70%, rgba(118, 75, 162, 0.1) 0%, transparent 50%);
    pointer-events: none;
    animation: pulse 8s ease-in-out infinite;
}

.contact-title-glow {
    position: relative;
    display: inline-block;
    filter: drop-shadow(0 0 25px rgba(102, 126, 234, 0.5));
    animation: contactTitleGlow 3s ease-in-out infinite;
}

.contact-title-glow::before {
    content: 'اتصل بنا';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--gradient-accent);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    filter: blur(15px);
    opacity: 0.6;
    z-index: -1;
    animation: contactTitleBlur 3s ease-in-out infinite;
}

@keyframes contactTitleGlow {
    0%, 100% {
        filter: drop-shadow(0 0 25px rgba(102, 126, 234, 0.5));
    }
    50% {
        filter: drop-shadow(0 0 40px rgba(102, 126, 234, 0.8));
    }
}

@keyframes contactTitleBlur {
    0%, 100% {
        opacity: 0.6;
        filter: blur(15px);
    }
    50% {
        opacity: 0.8;
        filter: blur(20px);
    }
}

.contact-underline-glow {
    position: relative;
    filter: drop-shadow(0 0 12px rgba(102, 126, 234, 0.7));
    animation: contactUnderlineGlow 2.5s ease-in-out infinite;
}

.contact-underline-glow::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 150%;
    height: 200%;
    background: var(--gradient-accent);
    filter: blur(12px);
    opacity: 0.5;
    z-index: -1;
    animation: contactUnderlineBlur 2.5s ease-in-out infinite;
}

@keyframes contactUnderlineGlow {
    0%, 100% {
        filter: drop-shadow(0 0 12px rgba(102, 126, 234, 0.7));
    }
    50% {
        filter: drop-shadow(0 0 20px rgba(102, 126, 234, 0.9));
    }
}

@keyframes contactUnderlineBlur {
    0%, 100% {
        opacity: 0.5;
        filter: blur(12px);
    }
    50% {
        opacity: 0.7;
        filter: blur(18px);
    }
}

.contact-description-glow {
    position: relative;
    text-shadow: 0 0 15px rgba(255, 255, 255, 0.2);
    animation: contactDescriptionGlow 3.5s ease-in-out infinite;
}

@keyframes contactDescriptionGlow {
    0%, 100% { 
        text-shadow: 0 0 15px rgba(255, 255, 255, 0.2);
        opacity: 0.8;
    }
    50% { 
        text-shadow: 0 0 25px rgba(255, 255, 255, 0.4);
        opacity: 1;
    }
}

/* Contact Info Card */
.contact-info-wrapper {
    height: 100%;
}

.contact-info-card {
    background: rgba(255, 255, 255, 0.04);
    backdrop-filter: blur(25px);
    -webkit-backdrop-filter: blur(25px);
    padding: 3rem;
    border: 1px solid rgba(102, 126, 234, 0.2);
    border-radius: 30px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.4), 0 0 30px rgba(102, 126, 234, 0.1);
    height: 100%;
    position: relative;
    overflow: hidden;
    transition: all 0.4s ease;
}

.contact-info-card:hover {
    border-color: rgba(102, 126, 234, 0.4);
    box-shadow: 0 15px 50px rgba(0, 0, 0, 0.5), 0 0 40px rgba(102, 126, 234, 0.2);
    transform: translateY(-5px);
}

.contact-info-card::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 100px;
    height: 100px;
    background: var(--gradient-accent);
    border-radius: 50%;
    filter: blur(60px);
    opacity: 0.2;
    animation: float 6s ease-in-out infinite;
}

.contact-info-title {
    font-size: 2rem;
    font-weight: 800;
    margin-bottom: 0.75rem;
    background: var(--gradient-accent);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-shadow: 0 0 30px rgba(102, 126, 234, 0.3);
}

.contact-info-subtitle {
    color: rgba(255, 255, 255, 0.7);
    font-size: 1rem;
    margin-bottom: 2.5rem;
}

.contact-info-items {
    margin-bottom: 2.5rem;
    padding-top: 1rem;
}

.contact-info-item {
    display: flex;
    align-items: flex-start;
    gap: 1.5rem;
    padding: 1.5rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
}

.contact-info-item:last-child {
    border-bottom: none;
}

.contact-info-item:hover {
    transform: translateX(-5px);
    padding-right: 10px;
}

.contact-info-icon {
    width: 55px;
    height: 55px;
    min-width: 55px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--gradient-accent);
    border-radius: 15px;
    color: var(--primary-white);
    font-size: 1.3rem;
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.4);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.contact-info-icon::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.4s ease, height 0.4s ease;
}

.contact-info-item:hover .contact-info-icon::before {
    width: 100px;
    height: 100px;
}

.contact-info-item:hover .contact-info-icon {
    transform: scale(1.1) rotate(5deg);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.5);
}

.contact-info-content {
    flex: 1;
}

.contact-info-content h5 {
    color: var(--primary-white);
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    transition: color 0.3s ease;
}

.contact-info-item:hover .contact-info-content h5 {
    color: rgba(102, 126, 234, 1);
}

.contact-info-content a {
    color: rgba(102, 126, 234, 0.9);
    text-decoration: none;
    transition: all 0.3s ease;
    display: inline-block;
}

.contact-info-content a:hover {
    color: rgba(102, 126, 234, 1);
    transform: translateX(-3px);
}

.contact-phone-number {
    font-size: 1.15rem;
    font-weight: 600;
    letter-spacing: 1.5px;
    word-spacing: 2px;
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.15) 0%, rgba(118, 75, 162, 0.15) 100%);
    padding: 0.5rem 1rem;
    border-radius: 8px;
    border: 1px solid rgba(102, 126, 234, 0.3);
    display: inline-block;
    margin-top: 0.25rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 2px 8px rgba(102, 126, 234, 0.1);
    font-family: 'Cairo', 'Tajawal', Arial, sans-serif;
    white-space: nowrap;
}

.contact-phone-number:hover {
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.25) 0%, rgba(118, 75, 162, 0.25) 100%);
    border-color: rgba(102, 126, 234, 0.5);
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
    transform: translateX(-3px) translateY(-2px);
    color: rgba(102, 126, 234, 1);
}

.contact-info-content p {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.95rem;
    margin: 0;
}

.contact-social-links {
    display: flex;
    gap: 1.2rem;
    justify-content: center;
    padding-top: 2.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    margin-top: 1rem;
}

.social-link {
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 15px;
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    font-size: 1.2rem;
    position: relative;
    overflow: hidden;
}

.social-link::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    transform: translate(-50%, -50%);
    transition: width 0.4s ease, height 0.4s ease;
}

.social-link:hover::before {
    width: 100px;
    height: 100px;
}

.social-link:hover {
    background: var(--gradient-accent);
    border-color: transparent;
    color: var(--primary-white);
    transform: translateY(-5px) scale(1.1);
    box-shadow: 0 8px 20px rgba(102, 126, 234, 0.4);
}

/* Enhanced Contact Form */
.contact-form-wrapper {
    height: 100%;
}

.contact-form {
    background: rgba(255, 255, 255, 0.04);
    backdrop-filter: blur(25px);
    -webkit-backdrop-filter: blur(25px);
    padding: 3.5rem;
    border: 1px solid rgba(102, 126, 234, 0.2);
    border-radius: 30px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.4), 0 0 30px rgba(102, 126, 234, 0.1);
    position: relative;
    overflow: hidden;
    height: 100%;
    transition: all 0.4s ease;
}

.contact-form::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: var(--gradient-accent);
    opacity: 0.03;
    animation: rotate 25s linear infinite;
    pointer-events: none;
}

.contact-form:hover {
    border-color: rgba(102, 126, 234, 0.4);
    box-shadow: 0 15px 50px rgba(0, 0, 0, 0.5), 0 0 40px rgba(102, 126, 234, 0.2);
    transform: translateY(-5px);
}

.form-header {
    text-align: center;
    margin-bottom: 3rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.form-header h4 {
    font-size: 2rem;
    font-weight: 800;
    margin-bottom: 0.75rem;
    background: var(--gradient-accent);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-shadow: 0 0 30px rgba(102, 126, 234, 0.3);
}

.form-header p {
    color: rgba(255, 255, 255, 0.7);
    font-size: 1rem;
}

.form-group {
    position: relative;
    margin-bottom: 0;
}

.form-label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: rgba(255, 255, 255, 0.9);
    font-size: 0.95rem;
    font-weight: 500;
    margin-bottom: 0.75rem;
}

.form-label i {
    color: rgba(102, 126, 234, 0.9);
    font-size: 0.9rem;
}

.contact-input,
.contact-textarea {
    background-color: rgba(0, 0, 0, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--primary-white);
    padding: 16px 20px;
    border-radius: 15px;
    width: 100%;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    font-size: 1rem;
    font-family: inherit;
}

.contact-input:focus,
.contact-textarea:focus {
    background-color: rgba(0, 0, 0, 0.6);
    border-color: rgba(102, 126, 234, 0.9);
    color: var(--primary-white);
    box-shadow: 0 0 0 4px rgba(102, 126, 234, 0.15), 0 0 30px rgba(102, 126, 234, 0.4);
    outline: none;
    transform: translateY(-3px);
}

.contact-input:hover,
.contact-textarea:hover {
    border-color: rgba(102, 126, 234, 0.5);
    background-color: rgba(0, 0, 0, 0.55);
}

.contact-input::placeholder,
.contact-textarea::placeholder {
    color: rgba(255, 255, 255, 0.4);
}

.contact-textarea {
    resize: vertical;
    min-height: 150px;
}

.btn-contact-submit {
    background: var(--gradient-accent);
    color: var(--primary-white);
    border: none;
    padding: 18px 45px;
    font-weight: 700;
    font-size: 1.1rem;
    border-radius: 50px;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.5);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    cursor: pointer;
}

.btn-contact-submit::before {
    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-contact-submit:hover::before {
    width: 300px;
    height: 300px;
}

.btn-contact-submit:hover {
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.6);
}

.btn-contact-submit:active {
    transform: translateY(-1px) scale(1.02);
}

/* RTL Adjustments for Contact */
[dir="rtl"] .contact-info-item:hover {
    transform: translateX(5px);
    padding-right: 0;
    padding-left: 10px;
}

[dir="rtl"] .contact-info-content a:hover {
    transform: translateX(3px);
}

[dir="rtl"] .contact-phone-number:hover {
    transform: translateX(3px) translateY(-2px);
}

[dir="rtl"] .contact-input,
[dir="rtl"] .contact-textarea {
    text-align: right;
}

/* Footer */
.footer {
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.98) 0%, rgba(26, 0, 51, 0.95) 100%);
    padding: 4rem 0 2.5rem;
    border-top: 1px solid rgba(102, 126, 234, 0.2);
    position: relative;
    overflow: hidden;
}

.footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: var(--gradient-accent);
    opacity: 0.6;
    box-shadow: 0 0 20px rgba(102, 126, 234, 0.4);
}

.footer::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 20% 50%, rgba(102, 126, 234, 0.05) 0%, transparent 50%),
        radial-gradient(circle at 80% 50%, rgba(118, 75, 162, 0.05) 0%, transparent 50%);
    pointer-events: none;
    z-index: 0;
}

.footer .container {
    position: relative;
    z-index: 1;
}

.footer h5 {
    color: var(--primary-white);
    font-weight: 800;
    margin-bottom: 1rem;
    font-size: 1.5rem;
    background: var(--gradient-accent);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-shadow: 0 0 20px rgba(102, 126, 234, 0.3);
}

.footer p {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.95rem;
    line-height: 1.8;
    margin: 0;
}

.footer .row {
    align-items: flex-start;
}

.footer-brand {
    margin-bottom: 1.5rem;
}

.footer-description {
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.9rem;
    line-height: 1.8;
    margin-top: 1rem;
}

.footer-links,
.footer-services,
.footer-contact {
    margin-bottom: 1.5rem;
}

.footer-links h6,
.footer-services h6,
.footer-contact h6 {
    color: var(--primary-white);
    font-weight: 700;
    font-size: 1.1rem;
    margin-bottom: 1.2rem;
    position: relative;
    padding-bottom: 0.5rem;
}

.footer-links h6::after,
.footer-services h6::after,
.footer-contact h6::after {
    content: '';
    position: absolute;
    bottom: 0;
    right: 0;
    width: 40px;
    height: 2px;
    background: var(--gradient-accent);
    border-radius: 2px;
}

.footer-links ul,
.footer-services ul,
.footer-contact ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-links ul li,
.footer-services ul li,
.footer-contact ul li {
    margin-bottom: 0.8rem;
    transition: all 0.3s ease;
}

.footer-links ul li a,
.footer-services ul li a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    display: inline-block;
}

.footer-links ul li a:hover,
.footer-services ul li a:hover {
    color: rgba(102, 126, 234, 1);
    transform: translateX(-5px);
    padding-right: 5px;
}

.footer-contact ul li {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.9rem;
}

.footer-contact ul li i {
    color: rgba(102, 126, 234, 0.9);
    font-size: 1rem;
    width: 20px;
    text-align: center;
}

.footer-contact ul li a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    transition: all 0.3s ease;
}

.footer-contact ul li a:hover {
    color: rgba(102, 126, 234, 1);
}

.footer-social {
    display: flex;
    gap: 1rem;
    margin-top: 1.5rem;
}

.footer-social .social-icon {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    transition: all 0.3s ease;
    font-size: 1rem;
}

.footer-social .social-icon:hover {
    background: var(--gradient-accent);
    border-color: transparent;
    color: var(--primary-white);
    transform: translateY(-5px) scale(1.1);
    box-shadow: 0 8px 20px rgba(102, 126, 234, 0.4);
}

.footer-bottom {
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-copyright {
    text-align: center;
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.9rem;
}

.footer-copyright p {
    margin: 0.5rem 0;
}

.footer-made-with {
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.85rem;
}

.footer-made-with i {
    color: rgba(240, 147, 251, 0.8);
    margin: 0 5px;
    animation: heartbeat 2s ease-in-out infinite;
}

@keyframes heartbeat {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.2); }
}

[dir="rtl"] .footer .text-md-end {
    text-align: left !important;
}

[dir="rtl"] .footer-links ul li a:hover,
[dir="rtl"] .footer-services ul li a:hover {
    transform: translateX(5px);
    padding-right: 0;
    padding-left: 5px;
}

/* Contact Form Success/Error Messages */
.contact-message-alert {
    position: fixed;
    top: 100px;
    left: 50%;
    transform: translateX(-50%) translateY(-100px);
    z-index: 10000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    max-width: 500px;
    width: 90%;
}

.contact-message-alert.show {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
}

.contact-message-alert .alert-content {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-radius: 20px;
    padding: 1.5rem 2rem;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
    display: flex;
    align-items: center;
    gap: 1.2rem;
    position: relative;
    border: 2px solid transparent;
}

.contact-success-alert .alert-content {
    border-color: rgba(40, 167, 69, 0.3);
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.98) 0%, rgba(240, 255, 244, 0.95) 100%);
}

.contact-error-alert .alert-content {
    border-color: rgba(220, 53, 69, 0.3);
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.98) 0%, rgba(255, 240, 240, 0.95) 100%);
}

.contact-message-alert .alert-icon {
    width: 50px;
    height: 50px;
    min-width: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    font-size: 1.5rem;
    flex-shrink: 0;
}

.contact-success-alert .alert-icon {
    background: linear-gradient(135deg, #28a745 0%, #20c997 100%);
    color: white;
    box-shadow: 0 4px 15px rgba(40, 167, 69, 0.4);
}

.contact-error-alert .alert-icon {
    background: linear-gradient(135deg, #dc3545 0%, #c82333 100%);
    color: white;
    box-shadow: 0 4px 15px rgba(220, 53, 69, 0.4);
}

.contact-message-alert .alert-message {
    flex: 1;
    font-size: 1rem;
    font-weight: 600;
    line-height: 1.6;
    color: #333;
}

.contact-success-alert .alert-message {
    color: #155724;
}

.contact-error-alert .alert-message {
    color: #721c24;
}

.contact-message-alert .alert-close {
    background: transparent;
    border: none;
    color: rgba(0, 0, 0, 0.5);
    font-size: 1.2rem;
    cursor: pointer;
    padding: 0.5rem;
    border-radius: 50%;
    width: 35px;
    height: 35px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    flex-shrink: 0;
}

.contact-message-alert .alert-close:hover {
    background: rgba(0, 0, 0, 0.1);
    color: rgba(0, 0, 0, 0.8);
    transform: rotate(90deg);
}

/* Error message styling for form fields */
.error-message {
    color: #dc3545;
    font-size: 0.875rem;
    margin-top: 0.25rem;
    display: block;
    animation: slideDown 0.3s ease;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.contact-input.is-invalid,
.contact-textarea.is-invalid {
    border-color: #dc3545 !important;
    box-shadow: 0 0 0 3px rgba(220, 53, 69, 0.15) !important;
}

/* Responsive for alerts */
@media (max-width: 576px) {
    .contact-message-alert {
        top: 80px;
        width: 95%;
    }
    
    .contact-message-alert .alert-content {
        padding: 1.2rem 1.5rem;
    }
    
    .contact-message-alert .alert-icon {
        width: 40px;
        height: 40px;
        min-width: 40px;
        font-size: 1.2rem;
    }
    
    .contact-message-alert .alert-message {
        font-size: 0.9rem;
    }
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(30px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(50px) scale(0.9);
    }
    to {
        opacity: 1;
        transform: translateX(0) scale(1);
    }
}

@keyframes shimmer {
    0% { background-position: -1000px 0; }
    100% { background-position: 1000px 0; }
}

.animate-fade-in {
    animation: fadeIn 1s ease-out;
}

.animate-fade-in-delay {
    animation: fadeIn 1s ease-out 0.2s both;
}

.animate-fade-in-delay-2 {
    animation: fadeIn 1s ease-out 0.4s both;
}

.animate-fade-in-delay-3 {
    animation: fadeIn 1s ease-out 0.6s both;
}

.animate-slide-in-right {
    animation: slideInRight 1s ease-out;
}

.animate-fade-in-up {
    opacity: 0 !important;
    transform: translateY(50px) scale(0.9);
    transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.animate-fade-in-up.visible {
    opacity: 1 !important;
    transform: translateY(0) scale(1) !important;
}

/* Responsive Design - Comprehensive */

/* Large Tablets and Small Desktops */
@media (max-width: 1200px) {
    .hero-title {
        font-size: 3rem;
    }
    
    .code-rings {
        width: 350px;
        height: 350px;
    }
    
    .ring-1 { width: 250px; height: 250px; }
    .ring-2 { width: 300px; height: 300px; }
    .ring-3 { width: 350px; height: 350px; }
    
    .float-1 { --float-y: -100px; }
    .float-2 { --float-x: 100px; }
    .float-3 { --float-y: 100px; }
    .float-4 { --float-x: -100px; }
}

/* Tablets */
@media (max-width: 992px) {
    .hero-title {
        font-size: 2.5rem;
    }
    
    .hero-subtitle {
        font-size: 1.3rem;
    }
    
    .section-title {
        font-size: 2.2rem;
    }
    
    .code-rings {
        width: 300px;
        height: 300px;
    }
    
    .ring-1 { width: 200px; height: 200px; }
    .ring-2 { width: 250px; height: 250px; }
    .ring-3 { width: 300px; height: 300px; }
    
    .float-1 { --float-y: -90px; }
    .float-2 { --float-x: 90px; }
    .float-3 { --float-y: 90px; }
    .float-4 { --float-x: -90px; }
    
    .float-element {
        width: 45px;
        height: 45px;
        font-size: 1.1rem;
    }
    
    .contact-info-card,
    .contact-form {
        margin-bottom: 2rem;
    }
    
    .footer .row > div {
        margin-bottom: 2.5rem;
    }
}

/* Small Tablets and Large Phones */
@media (max-width: 768px) {
    .hero-title {
        font-size: 2rem;
    }
    
    .title-line-1,
    .title-line-2 {
        font-size: 2rem;
    }
    
    .hero-subtitle {
        font-size: 1.2rem;
    }
    
    .hero-description {
        font-size: 1rem;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .stat-number {
        font-size: 2rem;
    }
    
    .code-rings {
        width: 250px;
        height: 250px;
    }
    
    .ring-1 { width: 180px; height: 180px; }
    .ring-2 { width: 220px; height: 220px; }
    .ring-3 { width: 250px; height: 250px; }
    
    .float-1 { --float-y: -80px; }
    .float-2 { --float-x: 80px; }
    .float-3 { --float-y: 80px; }
    .float-4 { --float-x: -80px; }
    
    .float-element {
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }
    
    .service-card,
    .project-card {
        margin-bottom: 2rem;
    }
    
    .about-features {
        gap: 1rem;
    }
    
    .feature-item {
        padding: 1.2rem;
    }
    
    .contact-form {
        padding: 2.5rem 2rem;
    }
    
    .contact-info-card {
        padding: 2rem;
    }
    
    .footer {
        padding: 3rem 0 2rem;
    }
    
    .footer .row > div {
        margin-bottom: 2rem;
    }
}

/* Mobile Phones */
@media (max-width: 576px) {
    .hero-title {
        font-size: 1.8rem;
    }
    
    .title-line-1,
    .title-line-2 {
        font-size: 1.8rem;
    }
    
    .hero-subtitle {
        font-size: 1.1rem;
    }
    
    .hero-description {
        font-size: 0.95rem;
    }
    
    .section-title {
        font-size: 1.8rem;
    }
    
    .section-description {
        font-size: 0.95rem;
    }
    
    .code-rings {
        width: 200px;
        height: 200px;
    }
    
    .ring-1 { width: 150px; height: 150px; }
    .ring-2 { width: 180px; height: 180px; }
    .ring-3 { width: 200px; height: 200px; }
    
    .code-icon {
        width: 80px;
        height: 80px;
        font-size: 2rem;
    }
    
    .float-1 { --float-y: -70px; }
    .float-2 { --float-x: 70px; }
    .float-3 { --float-y: 70px; }
    .float-4 { --float-x: -70px; }
    
    .float-element {
        width: 35px;
        height: 35px;
        font-size: 0.9rem;
    }
    
    .hero-buttons {
        flex-direction: column;
        width: 100%;
    }
    
    .btn-hero-primary,
    .btn-hero-secondary {
        width: 100%;
        margin-bottom: 1rem;
    }
    
    .stat-number {
        font-size: 1.8rem;
    }
    
    .stat-box {
        padding: 1.5rem;
    }
    
    .service-card,
    .project-card {
        margin-bottom: 1.5rem;
    }
    
    .feature-item {
        padding: 1rem;
        gap: 1rem;
    }
    
    .feature-icon {
        width: 50px;
        height: 50px;
        min-width: 50px;
    }
    
    .contact-form {
        padding: 2rem 1.5rem;
    }
    
    .contact-info-card {
        padding: 1.5rem;
    }
    
    .contact-info-item {
        padding: 1rem 0;
    }
    
    .contact-info-icon {
        width: 45px;
        height: 45px;
        min-width: 45px;
    }
    
    .form-header h4 {
        font-size: 1.5rem;
    }
    
    .btn-contact-submit {
        padding: 14px 30px;
        font-size: 1rem;
    }
    
    .footer {
        padding: 2.5rem 0 1.5rem;
    }
    
    .footer h5 {
        font-size: 1.3rem;
    }
    
    .footer-links h6,
    .footer-services h6,
    .footer-contact h6 {
        font-size: 1rem;
    }
    
    .footer-social {
        gap: 0.8rem;
    }
    
    .footer-social .social-icon {
        width: 35px;
        height: 35px;
        font-size: 0.9rem;
    }
}

/* Extra Small Phones */
@media (max-width: 400px) {
    .hero-title {
        font-size: 1.5rem;
    }
    
    .title-line-1,
    .title-line-2 {
        font-size: 1.5rem;
    }
    
    .section-title {
        font-size: 1.6rem;
    }
    
    .code-rings {
        width: 180px;
        height: 180px;
    }
    
    .ring-1 { width: 130px; height: 130px; }
    .ring-2 { width: 160px; height: 160px; }
    .ring-3 { width: 180px; height: 180px; }
    
    .float-1 { --float-y: -60px; }
    .float-2 { --float-x: 60px; }
    .float-3 { --float-y: 60px; }
    .float-4 { --float-x: -60px; }
    
    .float-element {
        width: 30px;
        height: 30px;
        font-size: 0.8rem;
    }
    
    .contact-form {
        padding: 1.5rem 1rem;
    }
    
    .contact-info-card {
        padding: 1.2rem;
    }
}

/* Landscape Orientation */
@media (max-height: 600px) and (orientation: landscape) {
    .hero-section {
        min-height: auto;
        padding: 3rem 0;
    }
    
    .hero-title {
        font-size: 2rem;
    }
    
    .code-rings {
        width: 200px;
        height: 200px;
    }
}

/* Print Styles */
@media print {
    .navbar,
    .hero-scroll-arrow,
    .scroll-to-discover,
    .footer-social {
        display: none;
    }
    
    .hero-section,
    .about-section,
    .services-section,
    .projects-section,
    .contact-section {
        page-break-inside: avoid;
    }
}

/* RTL Support for Arabic */
[dir="rtl"] {
    direction: rtl;
    text-align: right;
}

[dir="rtl"] .navbar-nav {
    margin-right: auto;
    margin-left: 0;
}

[dir="rtl"] .ms-auto {
    margin-right: auto !important;
    margin-left: 0 !important;
}

[dir="rtl"] .text-md-end {
    text-align: left !important;
}

[dir="rtl"] .form-control {
    text-align: right;
}

/* Scroll to Top Button - Optimized for Performance */
.scroll-top-btn {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 55px;
    height: 55px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #ffffff;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.5);
    transition: opacity 0.3s ease, transform 0.2s ease;
    font-size: 1.2rem;
    opacity: 0;
    will-change: transform, opacity;
    backface-visibility: hidden;
    transform: translateZ(0);
    -webkit-tap-highlight-color: transparent;
}

.scroll-top-btn:hover:not(:disabled) {
    transform: translateY(-8px) scale(1.1) translateZ(0);
    box-shadow: 0 12px 35px rgba(102, 126, 234, 0.7);
    background: linear-gradient(135deg, #764ba2 0%, #667eea 100%);
}

.scroll-top-btn:active:not(:disabled) {
    transform: translateY(-4px) scale(1.05) translateZ(0);
}

.scroll-top-btn:disabled {
    cursor: not-allowed;
    opacity: 0.7 !important;
}

/* Performance: Reduce animations on low-end devices */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* Optimize rendering */
.hero-section,
.navbar,
.scroll-top-btn {
    contain: layout style paint;
}

/* Project Details Modal */
.project-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 9999;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 120px 20px 60px 20px;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.project-modal.active {
    display: flex;
    opacity: 1;
}

.project-modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    z-index: 1;
}

.project-modal-container {
    position: relative;
    z-index: 2;
    max-width: 900px;
    width: 100%;
    max-height: 90vh;
    background: linear-gradient(135deg, rgba(26, 26, 26, 0.95) 0%, rgba(0, 0, 0, 0.98) 100%);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
    border: 1px solid rgba(102, 126, 234, 0.3);
    transform: scale(0.9) translateY(20px);
    opacity: 0;
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.3s ease;
    display: flex;
    flex-direction: column;
}

.project-modal-container.show {
    transform: scale(1) translateY(0);
    opacity: 1;
}

.project-modal-close {
    position: absolute;
    top: 20px;
    left: 20px;
    width: 45px;
    height: 45px;
    background: rgba(102, 126, 234, 0.2);
    border: 1px solid rgba(102, 126, 234, 0.3);
    border-radius: 50%;
    color: #ffffff;
    font-size: 1.2rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.project-modal-close:hover {
    background: rgba(102, 126, 234, 0.4);
    border-color: rgba(102, 126, 234, 0.6);
    transform: rotate(90deg) scale(1.1);
}

.project-modal-content {
    display: flex;
    flex-direction: column;
    max-height: 90vh;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
}

@media (max-width: 768px) {
    .project-modal-content {
        max-height: 100vh;
        height: 100%;
    }
}

.project-modal-image-wrapper {
    position: relative;
    width: 100%;
    height: 300px;
    overflow: hidden;
    background: linear-gradient(135deg, #1a1a1a 0%, #0c0c0c 100%);
}

.project-modal-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.project-modal-badge {
    position: absolute;
    top: 20px;
    right: 20px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #ffffff;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.4);
}

.project-modal-body {
    padding: 2.5rem;
    flex: 1;
}

.project-modal-title {
    font-size: 2rem;
    font-weight: 800;
    margin-bottom: 1.5rem;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 50%, #f093fb 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.project-modal-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-bottom: 2rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.project-modal-meta-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-gray);
    font-size: 0.95rem;
}

.project-modal-meta-item i {
    color: #667eea;
    font-size: 1rem;
}

.project-modal-description {
    color: var(--text-gray);
    font-size: 1.1rem;
    line-height: 1.8;
    margin-bottom: 2rem;
    white-space: pre-wrap;
}

.project-modal-actions {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.project-modal-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 12px 24px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #ffffff;
    text-decoration: none;
    border-radius: 10px;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
}

.project-modal-link:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.5);
    background: linear-gradient(135deg, #764ba2 0%, #667eea 100%);
}

/* Responsive Modal */
@media (max-width: 768px) {
    .project-modal {
        padding: 80px 0 0 0;
        align-items: flex-start;
    }
    
    .project-modal-container {
        max-width: 100%;
        width: 100%;
        max-height: 100vh;
        height: 100vh;
        border-radius: 0;
        margin: 0;
        transform: translateY(100%);
        transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    }
    
    .project-modal-container.show {
        transform: translateY(0);
    }
    
    .project-modal-image-wrapper {
        height: 180px;
        min-height: 180px;
    }
    
    .project-modal-body {
        padding: 1.25rem;
        flex: 1;
        overflow-y: auto;
    }
    
    .project-modal-title {
        font-size: 1.4rem;
        margin-bottom: 1rem;
        line-height: 1.3;
    }
    
    .project-modal-description {
        font-size: 0.95rem;
        line-height: 1.7;
        margin-bottom: 1.5rem;
    }
    
    .project-modal-close {
        top: 10px;
        left: 10px;
        width: 38px;
        height: 38px;
        font-size: 0.95rem;
        background: rgba(0, 0, 0, 0.6);
        border: 1px solid rgba(255, 255, 255, 0.2);
    }
    
    .project-modal-meta {
        flex-direction: column;
        gap: 0.6rem;
        margin-bottom: 1.25rem;
        padding-bottom: 1rem;
    }
    
    .project-modal-meta-item {
        font-size: 0.9rem;
    }
    
    .project-modal-actions {
        flex-direction: column;
        width: 100%;
    }
    
    .project-modal-link {
        width: 100%;
        justify-content: center;
        padding: 14px 20px;
        font-size: 0.95rem;
    }
    
    .project-modal-badge {
        top: 10px;
        right: 10px;
        padding: 6px 12px;
        font-size: 0.75rem;
    }
}

/* Extra Small Phones */
@media (max-width: 480px) {
    .project-modal {
        padding: 70px 0 0 0;
    }
    
    .project-modal-image-wrapper {
        height: 150px;
        min-height: 150px;
    }
    
    .project-modal-body {
        padding: 1rem;
    }
    
    .project-modal-title {
        font-size: 1.2rem;
        margin-bottom: 0.875rem;
    }
    
    .project-modal-description {
        font-size: 0.9rem;
        line-height: 1.6;
        margin-bottom: 1.25rem;
    }
    
    .project-modal-close {
        top: 8px;
        left: 8px;
        width: 35px;
        height: 35px;
        font-size: 0.85rem;
    }
    
    .project-modal-meta {
        gap: 0.5rem;
        margin-bottom: 1rem;
        padding-bottom: 0.875rem;
    }
    
    .project-modal-meta-item {
        font-size: 0.85rem;
    }
    
    .project-modal-meta-item i {
        font-size: 0.9rem;
    }
    
    .project-modal-link {
        padding: 12px 18px;
        font-size: 0.9rem;
    }
    
    .project-modal-badge {
        top: 8px;
        right: 8px;
        padding: 5px 10px;
        font-size: 0.7rem;
    }
}

/* Landscape Orientation on Mobile */
@media (max-width: 768px) and (orientation: landscape) {
    .project-modal {
        padding: 60px 0 0 0;
    }
    
    .project-modal-image-wrapper {
        height: 120px;
        min-height: 120px;
    }
    
    .project-modal-body {
        padding: 1rem;
    }
    
    .project-modal-title {
        font-size: 1.3rem;
        margin-bottom: 0.75rem;
    }
    
    .project-modal-description {
        font-size: 0.9rem;
        margin-bottom: 1rem;
    }
}

/* Smooth scrollbar for modal */
.project-modal-content::-webkit-scrollbar {
    width: 8px;
}

.project-modal-content::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 10px;
}

.project-modal-content::-webkit-scrollbar-thumb {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 10px;
}

.project-modal-content::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(135deg, #764ba2 0%, #667eea 100%);
}

[dir="rtl"] .btn {
    text-align: center;
}

[dir="rtl"] body {
    font-family: 'Inter', 'Cairo', 'Tajawal', sans-serif;
}

[dir="rtl"] .navbar-brand {
    margin-left: 0;
    margin-right: auto;
}

[dir="rtl"] .navbar-brand .logo {
    direction: ltr;
    text-align: left;
}