/* ===================================
   CarsSpace - Magic Effects CSS (Optimized)
   تأثيرات سحرية وإبداعية محسنة للأداء
   =================================== */

/* === Performance Optimizations === */
* {
    will-change: auto;
}

/* === Luxury Animated Background Lines === */
.luxury-lines {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
    overflow: hidden;
}

.luxury-line {
    position: absolute;
    width: 1px;
    height: 100%;
    background: linear-gradient(to bottom, transparent, rgba(220, 10, 10, 0.1), transparent);
    animation: luxuryLineMove 8s ease-in-out infinite;
}

.luxury-line:nth-child(1) { left: 10%; animation-delay: 0s; }
.luxury-line:nth-child(2) { left: 25%; animation-delay: 1s; }
.luxury-line:nth-child(3) { left: 40%; animation-delay: 2s; }
.luxury-line:nth-child(4) { left: 55%; animation-delay: 3s; }
.luxury-line:nth-child(5) { left: 70%; animation-delay: 4s; }
.luxury-line:nth-child(6) { left: 85%; animation-delay: 5s; }

@keyframes luxuryLineMove {
    0%, 100% { opacity: 0; transform: translateY(-100%); }
    50% { opacity: 1; transform: translateY(100%); }
}

/* === Spotlight Effect === */
.spotlight {
    position: fixed;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(220, 10, 10, 0.08) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
    z-index: 1;
    transition: all 0.3s ease;
    transform: translate(-50%, -50%);
}

/* === Premium Card Hover Effect === */
.premium-card {
    position: relative;
    overflow: hidden;
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.premium-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    transition: left 0.8s ease;
    z-index: 1;
}

.premium-card:hover::before {
    left: 100%;
}

.premium-card::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: inherit;
    padding: 2px;
    background: linear-gradient(135deg, var(--primary-red), transparent, var(--light-red));
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    opacity: 0;
    transition: opacity 0.5s ease;
}

.premium-card:hover::after {
    opacity: 1;
}

/* === Elegant Title Underline === */
.elegant-title {
    position: relative;
    display: inline-block;
}

.elegant-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 3px;
    background: linear-gradient(90deg, transparent, var(--primary-red), var(--light-red), var(--primary-red), transparent);
    border-radius: 3px;
    transition: width 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.elegant-title:hover::after,
.elegant-title.active::after {
    width: 120%;
}

/* === Luxury Button Effect === */
.luxury-btn {
    position: relative;
    overflow: hidden;
    background: linear-gradient(135deg, var(--primary-red), var(--light-red));
    border: none;
    color: white;
    padding: 1rem 2.5rem;
    border-radius: 50px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.4s ease;
    box-shadow: 0 10px 30px rgba(220, 10, 10, 0.4);
}

.luxury-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--light-red), var(--primary-red));
    opacity: 0;
    transition: opacity 0.4s ease;
}

.luxury-btn::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: width 0.6s ease, height 0.6s ease;
}

.luxury-btn:hover {
    transform: translateY(-5px) scale(1.02);
    box-shadow: 0 20px 50px rgba(220, 10, 10, 0.5);
}

.luxury-btn:hover::before {
    opacity: 1;
}

.luxury-btn:active::after {
    width: 300px;
    height: 300px;
}

.luxury-btn span {
    position: relative;
    z-index: 2;
}

/* === Floating Orbs === */
.floating-orbs {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
    overflow: hidden;
}

.orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(60px);
    opacity: 0.15;
    animation: orbFloat 15s ease-in-out infinite;
}

.orb:nth-child(1) {
    width: 300px;
    height: 300px;
    background: var(--primary-red);
    top: 10%;
    right: 10%;
    animation-delay: 0s;
}

.orb:nth-child(2) {
    width: 200px;
    height: 200px;
    background: var(--light-red);
    bottom: 20%;
    left: 5%;
    animation-delay: 3s;
}

.orb:nth-child(3) {
    width: 250px;
    height: 250px;
    background: #ff6b6b;
    top: 50%;
    left: 50%;
    animation-delay: 6s;
}

@keyframes orbFloat {
    0%, 100% { transform: translate(0, 0) scale(1); }
    25% { transform: translate(30px, -30px) scale(1.1); }
    50% { transform: translate(-20px, 20px) scale(0.9); }
    75% { transform: translate(20px, 10px) scale(1.05); }
}

/* === Icon Bounce Animation === */
.icon-bounce {
    display: inline-block;
    transition: transform 0.3s ease;
}

.icon-bounce:hover {
    animation: iconBounce 0.6s ease;
}

@keyframes iconBounce {
    0%, 100% { transform: translateY(0); }
    25% { transform: translateY(-8px); }
    50% { transform: translateY(0); }
    75% { transform: translateY(-4px); }
}

/* === Text Gradient Animation === */
.text-gradient-animate {
    background: linear-gradient(90deg, var(--primary-red), var(--light-red), #ff6b6b, var(--light-red), var(--primary-red));
    background-size: 200% auto;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: textGradient 4s linear infinite;
}

@keyframes textGradient {
    0% { background-position: 0% center; }
    100% { background-position: 200% center; }
}

/* === Reveal Animation on Scroll === */
.reveal-up {
    opacity: 0;
    transform: translateY(50px);
    transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.reveal-up.revealed {
    opacity: 1;
    transform: translateY(0);
}

.reveal-left {
    opacity: 0;
    transform: translateX(-50px);
    transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.reveal-left.revealed {
    opacity: 1;
    transform: translateX(0);
}

.reveal-right {
    opacity: 0;
    transform: translateX(50px);
    transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.reveal-right.revealed {
    opacity: 1;
    transform: translateX(0);
}

/* === Stagger Animation === */
.stagger-container .stagger-item {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.stagger-container.animated .stagger-item:nth-child(1) { transition-delay: 0.1s; }
.stagger-container.animated .stagger-item:nth-child(2) { transition-delay: 0.2s; }
.stagger-container.animated .stagger-item:nth-child(3) { transition-delay: 0.3s; }
.stagger-container.animated .stagger-item:nth-child(4) { transition-delay: 0.4s; }
.stagger-container.animated .stagger-item:nth-child(5) { transition-delay: 0.5s; }
.stagger-container.animated .stagger-item:nth-child(6) { transition-delay: 0.6s; }

.stagger-container.animated .stagger-item {
    opacity: 1;
    transform: translateY(0);
}

/* === Magnetic Hover Effect === */
.magnetic {
    transition: transform 0.3s ease;
}

/* === Glitch Text Effect === */
.glitch-text {
    position: relative;
}

.glitch-text::before,
.glitch-text::after {
    content: attr(data-text);
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
}

.glitch-text:hover::before {
    animation: glitch1 0.3s ease;
    color: var(--primary-red);
    opacity: 0.8;
}

.glitch-text:hover::after {
    animation: glitch2 0.3s ease;
    color: var(--light-red);
    opacity: 0.8;
}

@keyframes glitch1 {
    0%, 100% { transform: translate(0); }
    20% { transform: translate(-3px, 3px); }
    40% { transform: translate(3px, -3px); }
    60% { transform: translate(-3px, -3px); }
    80% { transform: translate(3px, 3px); }
}

@keyframes glitch2 {
    0%, 100% { transform: translate(0); }
    20% { transform: translate(3px, -3px); }
    40% { transform: translate(-3px, 3px); }
    60% { transform: translate(3px, 3px); }
    80% { transform: translate(-3px, -3px); }
}

/* === Typewriter Effect === */
.typewriter {
    overflow: hidden;
    border-left: 3px solid var(--primary-red);
    white-space: nowrap;
    animation: typing 3s steps(30) forwards, blink 0.8s step-end infinite;
}

@keyframes typing {
    from { width: 0; }
    to { width: 100%; }
}

@keyframes blink {
    50% { border-color: transparent; }
}

/* === 3D Card Tilt === */
.tilt-card {
    transform-style: preserve-3d;
    perspective: 1000px;
    transition: transform 0.3s ease;
}

.tilt-card:hover {
    transform: rotateX(5deg) rotateY(-5deg);
}

.tilt-card .tilt-content {
    transform: translateZ(30px);
    transition: transform 0.3s ease;
}

/* === Noise Texture Overlay === */
.noise-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 9998;
    opacity: 0.03;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.8' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)'/%3E%3C/svg%3E");
}

/* === Custom Cursor (Desktop Only) === */
@media (min-width: 1025px) and (hover: hover) {
    .custom-cursor {
        width: 20px;
        height: 20px;
        border: 2px solid var(--light-red);
        border-radius: 50%;
        position: fixed;
        pointer-events: none;
        z-index: 9999;
        transition: transform 0.2s ease;
        will-change: transform;
        mix-blend-mode: difference;
    }

    .custom-cursor-follower {
        width: 40px;
        height: 40px;
        background: radial-gradient(circle, rgba(220, 10, 10, 0.3), transparent);
        border-radius: 50%;
        position: fixed;
        pointer-events: none;
        z-index: 9998;
        will-change: transform;
    }

    .custom-cursor.hover {
        transform: scale(2);
        background: rgba(220, 10, 10, 0.1);
        border-color: var(--pure-white);
    }
}

/* === Interactive Particles Container (Desktop Only) === */
@media (min-width: 1025px) {
    #particles-container {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        pointer-events: none;
        z-index: 0;
        overflow: hidden;
    }

    .particle {
        position: fixed;
        width: 3px;
        height: 3px;
        background: var(--light-red);
        border-radius: 50%;
        opacity: 0.7;
    }
    
    .interactive-particle {
        transition: opacity 0.3s ease;
        filter: drop-shadow(0 0 2px currentColor);
    }

    @keyframes floatParticle {
        0%, 100% {
            opacity: 0;
            transform: translateY(100vh);
        }
        10%, 90% {
            opacity: 0.5;
        }
        50% {
            transform: translateY(-50vh);
        }
    }
}

/* === Glowing Neon Effect (Simplified) === */
.neon-glow {
    text-shadow: 
        0 0 10px var(--light-red),
        0 0 20px var(--primary-red);
}

/* === Glass Morphism Enhanced === */
.ultra-glass {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.12), rgba(255, 255, 255, 0.06));
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

/* === Gradient Border (Simplified) === */
.gradient-border {
    position: relative;
    background: var(--deep-black);
    border-radius: 20px;
    border: 2px solid var(--primary-red);
}

/* === Floating Animation (Smoother) === */
.floating {
    animation: floating 4s ease-in-out infinite;
}

@keyframes floating {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

/* === Pulse Ring Animation (Simplified) === */
.pulse-ring {
    position: relative;
}

.pulse-ring::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 100%;
    height: 100%;
    border: 2px solid var(--light-red);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    animation: pulseRing 2.5s ease-out infinite;
    will-change: transform, opacity;
}

@keyframes pulseRing {
    0% {
        transform: translate(-50%, -50%) scale(1);
        opacity: 0.8;
    }
    100% {
        transform: translate(-50%, -50%) scale(1.4);
        opacity: 0;
    }
}

/* === Shimmer Effect === */
.shimmer {
    position: relative;
    overflow: hidden;
}

.shimmer::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 50%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.15), transparent);
    animation: shimmer 3s infinite;
}

@keyframes shimmer {
    0% { left: -100%; }
    100% { left: 200%; }
}

/* === Morphing Shapes Background (Desktop Only) === */
@media (min-width: 1025px) {
    .morphing-bg {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        pointer-events: none;
        z-index: -2;
        overflow: hidden;
    }

    .morph-shape {
        position: absolute;
        border-radius: 50%;
        filter: blur(100px);
        opacity: 0.08;
    }

    .morph-shape:nth-child(1) {
        width: 500px;
        height: 500px;
        background: var(--primary-red);
        top: -150px;
        right: -150px;
    }

    .morph-shape:nth-child(2) {
        width: 350px;
        height: 350px;
        background: var(--light-red);
        bottom: -100px;
        left: -100px;
    }

    .morph-shape:nth-child(3) {
        width: 400px;
        height: 400px;
        background: #ff6b6b;
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%);
    }
}

/* === Enhanced Logo Animation (Simplified) === */
.logo-animated img {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.logo-animated:hover img {
    transform: scale(1.05);
    box-shadow: 0 0 25px rgba(220, 10, 10, 0.6);
}

/* === Scroll Progress Bar === */
.scroll-progress {
    position: fixed;
    top: 0;
    left: 0;
    width: 0%;
    height: 3px;
    background: linear-gradient(90deg, var(--primary-red), var(--light-red));
    z-index: 10000;
    will-change: width;
}

/* === Page Transition Overlay === */
.page-transition {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--deep-black);
    z-index: 99999;
    display: flex;
    align-items: center;
    justify-content: center;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.page-transition.active {
    opacity: 1;
    pointer-events: all;
}

.page-transition .loader {
    width: 50px;
    height: 50px;
    border: 3px solid rgba(255, 255, 255, 0.1);
    border-top-color: var(--light-red);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* === Hover Glow (Simplified) === */
.hover-glow {
    transition: box-shadow 0.3s ease;
}

.hover-glow:hover {
    box-shadow: 0 0 25px rgba(220, 10, 10, 0.3);
}

/* === Icon Animation === */
.icon-animated {
    transition: transform 0.3s ease, color 0.3s ease;
}

.icon-animated:hover {
    transform: scale(1.15);
    color: var(--light-red);
}

/* === Stats Section Enhancement === */
.stats-section .stat-item {
    transition: transform 0.3s ease;
}

.stats-section .stat-item:hover {
    transform: translateY(-8px);
}

/* === Enhanced Feature Items === */
.feature-item {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.feature-item:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 40px rgba(220, 10, 10, 0.2);
}

.feature-item:hover .feature-icon {
    transform: scale(1.1);
}

.feature-icon {
    transition: transform 0.3s ease;
}

/* === Department Cards Enhanced === */
.department-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.department-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.4);
}

.department-card:hover .department-icon {
    transform: scale(1.15);
}

.department-icon {
    transition: transform 0.3s ease;
}

/* === Section Title Underline Animation === */
.section-title {
    position: relative;
    display: inline-block;
    padding-bottom: 1rem;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background: linear-gradient(90deg, var(--primary-red), var(--light-red));
    border-radius: 2px;
}

/* === Testimonial Card Enhancement === */
.testimonial-item {
    position: relative;
}

.testimonial-item::before {
    content: '"';
    position: absolute;
    top: -20px;
    right: 20px;
    font-size: 6rem;
    color: rgba(220, 10, 10, 0.1);
    font-family: Georgia, serif;
    line-height: 1;
}

/* === Footer Enhancement === */
.footer {
    position: relative;
    background: linear-gradient(180deg, var(--dark-gray), var(--deep-black));
}

/* === Hero Logo Container === */
.hero-logo-container img {
    transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.hero-logo-container:hover img {
    transform: scale(1.08);
}

/* === Scroll Down Indicator === */
.scroll-indicator {
    position: absolute;
    bottom: 80px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10;
    width: 30px;
    height: 50px;
    border: 2px solid rgba(255, 255, 255, 0.4);
    border-radius: 25px;
    display: block;
}

.scroll-indicator::before {
    content: '';
    width: 6px;
    height: 10px;
    background: var(--light-red);
    border-radius: 3px;
    position: absolute;
    top: 8px;
    left: 50%;
    transform: translateX(-50%);
    animation: scrollDot 2s infinite;
}

@keyframes scrollDot {
    0%, 100% { 
        opacity: 1; 
        top: 8px; 
    }
    50% { 
        opacity: 0.3; 
        top: 25px; 
    }
}

/* === Button Hover Effect === */
.cta-button {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.cta-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(220, 10, 10, 0.5);
}

/* === Glitch Effect (Desktop Only) === */
@media (min-width: 1025px) {
    .glitch {
        position: relative;
    }
}

/* === Mobile Optimizations === */
@media (max-width: 1024px) {
    .custom-cursor,
    .custom-cursor-follower,
    #particles-container,
    .morphing-bg,
    .speed-lines {
        display: none !important;
    }
    
    .floating {
        animation: none;
    }
    
    .neon-glow {
        text-shadow: 0 0 10px var(--light-red);
    }
    
    .gradient-border::before {
        display: none;
    }
    
    .pulse-ring::after {
        display: none;
    }
    
    .hero-logo-container img {
        box-shadow: 0 0 30px rgba(220, 10, 10, 0.5);
    }
    
    .scroll-indicator {
        bottom: 60px;
    }
    
    .glitch::before,
    .glitch::after {
        display: none;
    }
}

/* === Tablet Optimizations === */
@media (max-width: 768px) {
    .shimmer::after {
        display: none;
    }
    
    .scroll-indicator {
        display: none;
    }
    
    .stats-section .stat-item:hover,
    .feature-item:hover,
    .department-card:hover {
        transform: none;
    }
}

/* === Reduce Motion for Accessibility === */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    
    .floating,
    .shimmer::after,
    .pulse-ring::after,
    .scroll-indicator::before {
        animation: none !important;
    }
}

/* === Focus States for Accessibility === */
a:focus-visible,
button:focus-visible {
    outline: 2px solid var(--light-red);
    outline-offset: 3px;
}

/* === Print Styles === */
@media print {
    .floating-contacts,
    .custom-cursor,
    .custom-cursor-follower,
    .morphing-bg,
    .speed-lines,
    #particles-container,
    .scroll-progress,
    .scroll-indicator,
    .floating-orbs,
    .luxury-lines,
    .noise-overlay,
    .spotlight {
        display: none !important;
    }
}

/* === Ultra Premium Effects === */

/* Glossy Shine Effect */
.glossy-shine {
    position: relative;
    overflow: hidden;
}

.glossy-shine::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(
        45deg,
        transparent 30%,
        rgba(255, 255, 255, 0.1) 50%,
        transparent 70%
    );
    transform: rotate(45deg);
    transition: all 0.6s ease;
    opacity: 0;
}

.glossy-shine:hover::before {
    animation: glossyShine 0.8s ease forwards;
}

@keyframes glossyShine {
    0% { transform: translateX(-100%) rotate(45deg); opacity: 1; }
    100% { transform: translateX(100%) rotate(45deg); opacity: 0; }
}

/* Neon Border Animation */
.neon-border {
    position: relative;
}

.neon-border::before {
    content: '';
    position: absolute;
    inset: -3px;
    background: linear-gradient(90deg, var(--primary-red), var(--light-red), #ff6b6b, var(--light-red), var(--primary-red));
    background-size: 300% 100%;
    border-radius: inherit;
    z-index: -1;
    animation: neonBorderMove 3s linear infinite;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.neon-border:hover::before {
    opacity: 1;
}

@keyframes neonBorderMove {
    0% { background-position: 0% center; }
    100% { background-position: 300% center; }
}

/* Blur In Animation */
.blur-in {
    filter: blur(20px);
    opacity: 0;
    transition: all 1s cubic-bezier(0.4, 0, 0.2, 1);
}

.blur-in.visible {
    filter: blur(0);
    opacity: 1;
}

/* Scale Bounce Effect */
.scale-bounce {
    transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.scale-bounce:hover {
    transform: scale(1.08);
}

.scale-bounce:active {
    transform: scale(0.95);
}

/* Elegant Shadow */
.elegant-shadow {
    box-shadow: 
        0 10px 30px rgba(0, 0, 0, 0.1),
        0 5px 15px rgba(220, 10, 10, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
    transition: box-shadow 0.4s ease;
}

.elegant-shadow:hover {
    box-shadow: 
        0 25px 60px rgba(0, 0, 0, 0.15),
        0 15px 40px rgba(220, 10, 10, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.15);
}

/* Text Shadow Glow */
.text-glow {
    text-shadow: 
        0 0 10px currentColor,
        0 0 20px currentColor,
        0 0 40px rgba(220, 10, 10, 0.5);
}

/* Rotate In Effect */
.rotate-in {
    opacity: 0;
    transform: rotate(-10deg) scale(0.9);
    transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.rotate-in.visible {
    opacity: 1;
    transform: rotate(0) scale(1);
}

/* Slide Up Fade */
.slide-fade-up {
    opacity: 0;
    transform: translateY(40px);
    transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.slide-fade-up.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Gradient Text Shimmer */
.gradient-shimmer {
    background: linear-gradient(
        90deg,
        var(--primary-red) 0%,
        var(--light-red) 25%,
        #fff 50%,
        var(--light-red) 75%,
        var(--primary-red) 100%
    );
    background-size: 200% auto;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: gradientShimmer 3s linear infinite;
}

@keyframes gradientShimmer {
    0% { background-position: 0% center; }
    100% { background-position: 200% center; }
}

/* Hover Lift */
.hover-lift {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.hover-lift:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

/* Ripple Effect */
.ripple {
    position: absolute;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.4);
    transform: scale(0);
    animation: rippleEffect 0.6s linear;
    pointer-events: none;
}

@keyframes rippleEffect {
    to {
        transform: scale(4);
        opacity: 0;
    }
}

/* Mobile Optimizations */
@media (max-width: 1024px) {
    .floating-orbs,
    .luxury-lines,
    .spotlight,
    .noise-overlay {
        display: none;
    }
}

/* ===================================
   PROFESSIONAL CREATIVE EFFECTS
   تأثيرات إبداعية احترافية
   =================================== */

/* === Animated Border Gradient === */
.animated-border {
    position: relative;
    background: linear-gradient(145deg, #fff, #f8f9fa);
    border-radius: 20px;
    overflow: hidden;
}

.animated-border::before {
    content: '';
    position: absolute;
    inset: 0;
    padding: 2px;
    border-radius: inherit;
    background: linear-gradient(
        90deg,
        var(--primary-red),
        var(--light-red),
        #ff6b6b,
        var(--light-red),
        var(--primary-red)
    );
    background-size: 300% 100%;
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    animation: borderFlow 4s linear infinite;
}

@keyframes borderFlow {
    0% { background-position: 0% center; }
    100% { background-position: 300% center; }
}

/* === Glowing Text Effect === */
.glow-text {
    animation: textGlow 2s ease-in-out infinite alternate;
}

@keyframes textGlow {
    from {
        text-shadow: 0 0 5px rgba(220, 10, 10, 0.5),
                     0 0 10px rgba(220, 10, 10, 0.3);
    }
    to {
        text-shadow: 0 0 10px rgba(220, 10, 10, 0.8),
                     0 0 20px rgba(220, 10, 10, 0.5),
                     0 0 30px rgba(220, 10, 10, 0.3);
    }
}

/* === Card Flip Effect === */
.flip-card {
    perspective: 1000px;
}

.flip-card-inner {
    transition: transform 0.8s cubic-bezier(0.4, 0, 0.2, 1);
    transform-style: preserve-3d;
}

.flip-card:hover .flip-card-inner {
    transform: rotateY(10deg);
}

/* === Smooth Scale on Hover === */
.smooth-scale {
    transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.smooth-scale:hover {
    transform: scale(1.05);
}

/* === Icon Pulse Animation === */
.icon-pulse {
    animation: iconPulse 2s ease-in-out infinite;
}

@keyframes iconPulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.15); }
}

/* === Underline Slide Effect === */
.underline-slide {
    position: relative;
    display: inline-block;
}

.underline-slide::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 50%;
    width: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--primary-red), var(--light-red));
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border-radius: 2px;
}

.underline-slide:hover::after {
    left: 0;
    width: 100%;
}

/* === Floating Animation === */
.float-animation {
    animation: floatUpDown 3s ease-in-out infinite;
}

@keyframes floatUpDown {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

/* === Shine Sweep Effect === */
.shine-sweep {
    position: relative;
    overflow: hidden;
}

.shine-sweep::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(
        to right,
        transparent 0%,
        rgba(255, 255, 255, 0.3) 50%,
        transparent 100%
    );
    transform: rotate(30deg) translateX(-100%);
    transition: transform 0.8s ease;
}

.shine-sweep:hover::after {
    transform: rotate(30deg) translateX(100%);
}

/* === Button Glow Effect === */
.btn-glow {
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
}

.btn-glow::before {
    content: '';
    position: absolute;
    inset: -2px;
    background: linear-gradient(135deg, var(--primary-red), var(--light-red));
    border-radius: inherit;
    opacity: 0;
    z-index: -1;
    filter: blur(15px);
    transition: opacity 0.3s ease;
}

.btn-glow:hover::before {
    opacity: 0.7;
}

.btn-glow:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(220, 10, 10, 0.3);
}

/* === Image Zoom on Hover === */
.img-zoom {
    overflow: hidden;
    border-radius: inherit;
}

.img-zoom img {
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.img-zoom:hover img {
    transform: scale(1.1);
}

/* === Parallax Effect for Sections === */
.parallax-section {
    background-attachment: fixed;
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
}

/* === Staggered Fade In === */
.stagger-fade > * {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.stagger-fade.visible > *:nth-child(1) { transition-delay: 0.1s; }
.stagger-fade.visible > *:nth-child(2) { transition-delay: 0.2s; }
.stagger-fade.visible > *:nth-child(3) { transition-delay: 0.3s; }
.stagger-fade.visible > *:nth-child(4) { transition-delay: 0.4s; }
.stagger-fade.visible > *:nth-child(5) { transition-delay: 0.5s; }
.stagger-fade.visible > *:nth-child(6) { transition-delay: 0.6s; }

.stagger-fade.visible > * {
    opacity: 1;
    transform: translateY(0);
}

/* === Gradient Background Animation === */
.gradient-bg-animate {
    background: linear-gradient(-45deg, #1A1A1A, var(--primary-red), #2A2A2A, var(--light-red));
    background-size: 400% 400%;
    animation: gradientBG 15s ease infinite;
}

@keyframes gradientBG {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

/* === Card Shadow Lift === */
.shadow-lift {
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
}

.shadow-lift:hover {
    transform: translateY(-8px);
    box-shadow: 
        0 20px 40px rgba(0, 0, 0, 0.12),
        0 0 0 1px rgba(220, 10, 10, 0.1);
}

/* === Text Reveal Animation === */
.text-reveal {
    overflow: hidden;
}

.text-reveal span {
    display: inline-block;
    transform: translateY(100%);
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.text-reveal.visible span {
    transform: translateY(0);
}

/* === Morphing Button === */
.morph-btn {
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
    border-radius: 50px;
}

.morph-btn:hover {
    border-radius: 10px;
    padding-left: 25px;
    padding-right: 25px;
}

/* === Rotating Border === */
.rotating-border {
    position: relative;
}

.rotating-border::before {
    content: '';
    position: absolute;
    inset: -3px;
    border-radius: inherit;
    background: conic-gradient(
        from 0deg,
        var(--primary-red),
        var(--light-red),
        transparent,
        var(--primary-red)
    );
    animation: rotateBorder 4s linear infinite;
    z-index: -1;
}

@keyframes rotateBorder {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

/* === Blur In Animation === */
.blur-in-up {
    opacity: 0;
    filter: blur(10px);
    transform: translateY(30px);
    transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.blur-in-up.visible {
    opacity: 1;
    filter: blur(0);
    transform: translateY(0);
}

/* === Typewriter Effect === */
.typewriter {
    overflow: hidden;
    border-right: 3px solid var(--primary-red);
    white-space: nowrap;
    animation: 
        typing 3.5s steps(40, end),
        blinkCursor 0.75s step-end infinite;
}

@keyframes typing {
    from { width: 0; }
    to { width: 100%; }
}

@keyframes blinkCursor {
    from, to { border-color: transparent; }
    50% { border-color: var(--primary-red); }
}

/* === Hover Card 3D === */
.card-3d {
    transition: transform 0.5s ease;
    transform-style: preserve-3d;
}

.card-3d:hover {
    transform: perspective(1000px) rotateX(5deg) rotateY(-5deg) scale(1.02);
}

/* === Pulse Ring on Buttons === */
.pulse-ring-btn {
    position: relative;
}

.pulse-ring-btn::after {
    content: '';
    position: absolute;
    inset: -5px;
    border: 2px solid var(--primary-red);
    border-radius: inherit;
    opacity: 0;
    animation: pulseRingBtn 2s ease-out infinite;
}

@keyframes pulseRingBtn {
    0% { transform: scale(1); opacity: 0.5; }
    100% { transform: scale(1.3); opacity: 0; }
}

/* === Loading Skeleton === */
.skeleton {
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: skeletonLoading 1.5s ease-in-out infinite;
}

@keyframes skeletonLoading {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

/* === Focus Ring === */
.focus-ring:focus {
    outline: none;
    box-shadow: 
        0 0 0 3px rgba(220, 10, 10, 0.3),
        0 0 0 6px rgba(220, 10, 10, 0.1);
}

/* === Smooth Scrollbar === */
::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: #1A1A1A;
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, var(--primary-red), var(--light-red));
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(180deg, var(--light-red), var(--primary-red));
}

/* === Selection Styling === */
::selection {
    background: var(--primary-red);
    color: #fff;
}

/* === Link Hover Effect === */
.link-effect {
    position: relative;
    text-decoration: none;
    transition: color 0.3s ease;
}

.link-effect::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background: var(--primary-red);
    transform: scaleX(0);
    transform-origin: right;
    transition: transform 0.3s ease;
}

.link-effect:hover::before {
    transform: scaleX(1);
    transform-origin: left;
}

/* === Smooth Section Transitions === */
.section-transition {
    opacity: 0;
    transform: translateY(50px);
    transition: all 1s cubic-bezier(0.4, 0, 0.2, 1);
}

.section-transition.visible {
    opacity: 1;
    transform: translateY(0);
}

/* === Enhanced Button Styles === */
.btn-enhanced {
    position: relative;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    background: linear-gradient(135deg, var(--primary-red), var(--light-red));
    border: none;
    color: #fff;
    padding: 1rem 2rem;
    border-radius: 50px;
    font-weight: 600;
    cursor: pointer;
}

.btn-enhanced::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
    transition: left 0.5s ease;
}

.btn-enhanced:hover::before {
    left: 100%;
}

.btn-enhanced:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 15px 35px rgba(220, 10, 10, 0.4);
}

.btn-enhanced:active {
    transform: translateY(-1px) scale(0.98);
}

/* === Image Overlay Effect === */
.img-overlay {
    position: relative;
    overflow: hidden;
}

.img-overlay::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to bottom,
        transparent 0%,
        rgba(0, 0, 0, 0.7) 100%
    );
    opacity: 0;
    transition: opacity 0.4s ease;
    z-index: 1;
}

.img-overlay:hover::before {
    opacity: 1;
}

.img-overlay .overlay-content {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 1.5rem;
    color: #fff;
    transform: translateY(100%);
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 2;
}

.img-overlay:hover .overlay-content {
    transform: translateY(0);
}

/* === Responsive Creative Effects === */
@media (max-width: 768px) {
    .card-3d:hover {
        transform: none;
    }
    
    .parallax-section {
        background-attachment: scroll;
    }
    
    .typewriter {
        animation: none;
        white-space: normal;
        border-right: none;
    }
}
