/**
 * Sygma Website Advanced Animations
 * Professional animations with sector-specific floating image compositions
 */

/* ============================================
   CORE KEYFRAMES
   ============================================ */

@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(60px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes fadeInDown {
    from { opacity: 0; transform: translateY(-60px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes fadeInLeft {
    from { opacity: 0; transform: translateX(-60px); }
    to { opacity: 1; transform: translateX(0); }
}

@keyframes fadeInRight {
    from { opacity: 0; transform: translateX(60px); }
    to { opacity: 1; transform: translateX(0); }
}

@keyframes scaleIn {
    from { opacity: 0; transform: scale(0.8); }
    to { opacity: 1; transform: scale(1); }
}

@keyframes slideInUp {
    from { opacity: 0; transform: translateY(80px); }
    to { opacity: 1; transform: translateY(0); }
}

/* ============================================
   FLOATING IMAGE ANIMATIONS
   ============================================ */

@keyframes floatImage1 {
    0%, 100% { transform: translate(0, 0) rotate(0deg) scale(1); }
    25% { transform: translate(15px, -20px) rotate(3deg) scale(1.02); }
    50% { transform: translate(5px, -35px) rotate(0deg) scale(1); }
    75% { transform: translate(-10px, -20px) rotate(-3deg) scale(0.98); }
}

@keyframes floatImage2 {
    0%, 100% { transform: translate(0, 0) rotate(0deg); }
    33% { transform: translate(-20px, -15px) rotate(-4deg); }
    66% { transform: translate(10px, -30px) rotate(2deg); }
}

@keyframes floatImage3 {
    0%, 100% { transform: translate(0, 0) rotate(0deg) scale(1); }
    20% { transform: translate(25px, -10px) rotate(5deg) scale(1.05); }
    40% { transform: translate(15px, -40px) rotate(0deg) scale(1.02); }
    60% { transform: translate(-15px, -25px) rotate(-5deg) scale(0.98); }
    80% { transform: translate(-10px, -10px) rotate(-2deg) scale(1); }
}

@keyframes floatImage4 {
    0%, 100% { transform: translate(0, 0) scale(1) rotate(0deg); }
    50% { transform: translate(-30px, -20px) scale(1.08) rotate(-6deg); }
}

@keyframes floatCircular {
    0% { transform: translate(0, 0) rotate(0deg); }
    25% { transform: translate(30px, -20px) rotate(5deg); }
    50% { transform: translate(0, -40px) rotate(0deg); }
    75% { transform: translate(-30px, -20px) rotate(-5deg); }
    100% { transform: translate(0, 0) rotate(0deg); }
}

@keyframes floatWave {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    25% { transform: translateY(-15px) rotate(2deg); }
    50% { transform: translateY(-30px) rotate(0deg); }
    75% { transform: translateY(-15px) rotate(-2deg); }
}

@keyframes floatZigzag {
    0%, 100% { transform: translate(0, 0); }
    25% { transform: translate(20px, -25px); }
    50% { transform: translate(0, -50px); }
    75% { transform: translate(-20px, -25px); }
}

@keyframes pulseGlow {
    0%, 100% {
        transform: scale(1);
        box-shadow: 0 10px 40px rgba(64, 0, 165, 0.2);
    }
    50% {
        transform: scale(1.03);
        box-shadow: 0 15px 60px rgba(0, 212, 255, 0.3);
    }
}

@keyframes morphBlob {
    0%, 100% { border-radius: 60% 40% 30% 70% / 60% 30% 70% 40%; }
    25% { border-radius: 30% 60% 70% 40% / 50% 60% 30% 60%; }
    50% { border-radius: 50% 60% 30% 60% / 30% 60% 70% 40%; }
    75% { border-radius: 60% 40% 60% 30% / 70% 30% 50% 60%; }
}

@keyframes gradientShift {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

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

@keyframes spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

@keyframes ripple {
    0% { transform: scale(1); opacity: 0.4; }
    100% { transform: scale(2); opacity: 0; }
}

/* ============================================
   SCROLL-TRIGGERED ANIMATIONS
   ============================================ */

[class*="anim-fade"],
[class*="anim-scale"] {
    opacity: 0 !important;
    transition: opacity 0.8s cubic-bezier(0.4, 0, 0.2, 1), transform 0.8s cubic-bezier(0.4, 0, 0.2, 1) !important;
}

.anim-fade-up { transform: translateY(60px) !important; }
.anim-fade-down { transform: translateY(-60px) !important; }
.anim-fade-left { transform: translateX(-60px) !important; }
.anim-fade-right { transform: translateX(60px) !important; }
.anim-scale-in { transform: scale(0.8) !important; }
.anim-scale-up { transform: scale(0.8) translateY(40px) !important; }

[class*="anim-fade"].animated,
[class*="anim-scale"].animated {
    opacity: 1 !important;
    transform: translateY(0) translateX(0) scale(1) !important;
}

.anim-delay-1 { transition-delay: 0.1s !important; }
.anim-delay-2 { transition-delay: 0.2s !important; }
.anim-delay-3 { transition-delay: 0.3s !important; }
.anim-delay-4 { transition-delay: 0.4s !important; }
.anim-delay-5 { transition-delay: 0.5s !important; }
.anim-delay-6 { transition-delay: 0.6s !important; }

/* ============================================
   SECTOR IMAGE COMPOSITION CONTAINER
   ============================================ */

.sector-visual-composition {
    position: relative;
    width: 100%;
    height: 450px;
    perspective: 1000px;
}

.floating-image {
    position: absolute;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.15);
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    will-change: transform;
}

.floating-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.floating-image:hover {
    z-index: 10 !important;
    box-shadow: 0 30px 70px rgba(64, 0, 165, 0.25);
}

.floating-image:hover img {
    transform: scale(1.1);
}

/* Floating image with overlay gradient */
.floating-image::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(64, 0, 165, 0.1) 0%, transparent 50%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.floating-image:hover::after {
    opacity: 1;
}

/* ============================================
   HOSPITALITY SECTOR - Image Composition
   ============================================ */

.sector-hospitality .sector-visual-composition {
    /* Main large hotel lobby image */
}

.sector-hospitality .floating-image:nth-child(1) {
    width: 280px;
    height: 200px;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    z-index: 4;
    animation: floatImage1 8s ease-in-out infinite;
    border-radius: 20px;
}

.sector-hospitality .floating-image:nth-child(2) {
    width: 180px;
    height: 140px;
    top: 60px;
    left: 0;
    z-index: 3;
    animation: floatImage2 10s ease-in-out infinite;
    animation-delay: -2s;
}

.sector-hospitality .floating-image:nth-child(3) {
    width: 160px;
    height: 120px;
    top: 80px;
    right: 0;
    z-index: 3;
    animation: floatImage3 9s ease-in-out infinite;
    animation-delay: -4s;
}

.sector-hospitality .floating-image:nth-child(4) {
    width: 200px;
    height: 150px;
    bottom: 80px;
    left: 20px;
    z-index: 2;
    animation: floatCircular 12s ease-in-out infinite;
    animation-delay: -1s;
}

.sector-hospitality .floating-image:nth-child(5) {
    width: 170px;
    height: 130px;
    bottom: 60px;
    right: 10px;
    z-index: 2;
    animation: floatImage4 11s ease-in-out infinite;
    animation-delay: -3s;
}

.sector-hospitality .floating-image:nth-child(6) {
    width: 140px;
    height: 100px;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    z-index: 1;
    animation: floatWave 7s ease-in-out infinite;
    animation-delay: -5s;
}

/* ============================================
   RETAIL SECTOR - Image Composition
   ============================================ */

.sector-retail .floating-image:nth-child(1) {
    width: 260px;
    height: 180px;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 4;
    animation: floatImage2 9s ease-in-out infinite;
}

.sector-retail .floating-image:nth-child(2) {
    width: 170px;
    height: 130px;
    top: 50px;
    left: 10px;
    z-index: 3;
    animation: floatZigzag 11s ease-in-out infinite;
    animation-delay: -2s;
}

.sector-retail .floating-image:nth-child(3) {
    width: 150px;
    height: 110px;
    top: 70px;
    right: 20px;
    z-index: 3;
    animation: floatImage1 10s ease-in-out infinite;
    animation-delay: -4s;
}

.sector-retail .floating-image:nth-child(4) {
    width: 190px;
    height: 140px;
    bottom: 100px;
    left: 0;
    z-index: 2;
    animation: floatImage3 12s ease-in-out infinite;
    animation-delay: -1s;
}

.sector-retail .floating-image:nth-child(5) {
    width: 160px;
    height: 120px;
    bottom: 80px;
    right: 0;
    z-index: 2;
    animation: floatCircular 10s ease-in-out infinite;
    animation-delay: -3s;
}

.sector-retail .floating-image:nth-child(6) {
    width: 130px;
    height: 95px;
    bottom: 10px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 1;
    animation: floatImage4 8s ease-in-out infinite;
    animation-delay: -5s;
}

/* ============================================
   BANKING SECTOR - Image Composition
   ============================================ */

.sector-banking .floating-image:nth-child(1) {
    width: 270px;
    height: 190px;
    top: 10px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 4;
    animation: floatImage3 10s ease-in-out infinite;
}

.sector-banking .floating-image:nth-child(2) {
    width: 165px;
    height: 125px;
    top: 60px;
    left: 5px;
    z-index: 3;
    animation: floatImage1 9s ease-in-out infinite;
    animation-delay: -2s;
}

.sector-banking .floating-image:nth-child(3) {
    width: 155px;
    height: 115px;
    top: 80px;
    right: 10px;
    z-index: 3;
    animation: floatWave 11s ease-in-out infinite;
    animation-delay: -4s;
}

.sector-banking .floating-image:nth-child(4) {
    width: 185px;
    height: 135px;
    bottom: 90px;
    left: 15px;
    z-index: 2;
    animation: floatImage2 13s ease-in-out infinite;
    animation-delay: -1s;
}

.sector-banking .floating-image:nth-child(5) {
    width: 165px;
    height: 125px;
    bottom: 70px;
    right: 5px;
    z-index: 2;
    animation: floatZigzag 10s ease-in-out infinite;
    animation-delay: -3s;
}

.sector-banking .floating-image:nth-child(6) {
    width: 135px;
    height: 100px;
    bottom: 5px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 1;
    animation: floatCircular 9s ease-in-out infinite;
    animation-delay: -5s;
}

/* ============================================
   HEALTHCARE SECTOR - Image Composition
   ============================================ */

.sector-healthcare .floating-image:nth-child(1) {
    width: 275px;
    height: 195px;
    top: 5px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 4;
    animation: floatImage4 11s ease-in-out infinite;
}

.sector-healthcare .floating-image:nth-child(2) {
    width: 175px;
    height: 135px;
    top: 55px;
    left: 0;
    z-index: 3;
    animation: floatCircular 10s ease-in-out infinite;
    animation-delay: -2s;
}

.sector-healthcare .floating-image:nth-child(3) {
    width: 160px;
    height: 120px;
    top: 75px;
    right: 5px;
    z-index: 3;
    animation: floatImage2 9s ease-in-out infinite;
    animation-delay: -4s;
}

.sector-healthcare .floating-image:nth-child(4) {
    width: 195px;
    height: 145px;
    bottom: 85px;
    left: 10px;
    z-index: 2;
    animation: floatWave 12s ease-in-out infinite;
    animation-delay: -1s;
}

.sector-healthcare .floating-image:nth-child(5) {
    width: 175px;
    height: 130px;
    bottom: 65px;
    right: 0;
    z-index: 2;
    animation: floatImage1 11s ease-in-out infinite;
    animation-delay: -3s;
}

.sector-healthcare .floating-image:nth-child(6) {
    width: 145px;
    height: 105px;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    z-index: 1;
    animation: floatImage3 8s ease-in-out infinite;
    animation-delay: -5s;
}

/* ============================================
   DEFAULT AI SECTOR - Image Composition
   ============================================ */

.sector-default .floating-image:nth-child(1) {
    width: 265px;
    height: 185px;
    top: 15px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 4;
    animation: floatImage1 9s ease-in-out infinite;
}

.sector-default .floating-image:nth-child(2) {
    width: 168px;
    height: 128px;
    top: 58px;
    left: 8px;
    z-index: 3;
    animation: floatZigzag 12s ease-in-out infinite;
    animation-delay: -2s;
}

.sector-default .floating-image:nth-child(3) {
    width: 158px;
    height: 118px;
    top: 78px;
    right: 12px;
    z-index: 3;
    animation: floatImage4 10s ease-in-out infinite;
    animation-delay: -4s;
}

.sector-default .floating-image:nth-child(4) {
    width: 188px;
    height: 138px;
    bottom: 88px;
    left: 12px;
    z-index: 2;
    animation: floatCircular 11s ease-in-out infinite;
    animation-delay: -1s;
}

.sector-default .floating-image:nth-child(5) {
    width: 168px;
    height: 128px;
    bottom: 68px;
    right: 8px;
    z-index: 2;
    animation: floatImage2 13s ease-in-out infinite;
    animation-delay: -3s;
}

.sector-default .floating-image:nth-child(6) {
    width: 138px;
    height: 98px;
    bottom: 8px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 1;
    animation: floatWave 8s ease-in-out infinite;
    animation-delay: -5s;
}

/* ============================================
   FLOATING ICON BADGE ON IMAGES
   ============================================ */

.image-icon-badge {
    position: absolute;
    bottom: -10px;
    right: -10px;
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, #4000A5 0%, #00D4FF 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.2rem;
    box-shadow: 0 8px 25px rgba(64, 0, 165, 0.4);
    animation: pulseGlow 3s ease-in-out infinite;
    z-index: 10;
}

/* ============================================
   GRADIENT BLOB BACKGROUNDS
   ============================================ */

.sector-animation-container {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    overflow: hidden;
    pointer-events: none;
    z-index: 0;
}

.gradient-blob {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.3;
    animation: morphBlob 20s ease-in-out infinite;
}

.gradient-blob-1 {
    width: 400px;
    height: 400px;
    background: linear-gradient(135deg, #4000A5, #00D4FF);
    top: -150px;
    left: -150px;
    animation-delay: 0s;
}

.gradient-blob-2 {
    width: 350px;
    height: 350px;
    background: linear-gradient(135deg, #00D4FF, #10B981);
    bottom: -120px;
    right: -120px;
    animation-delay: -7s;
}

.gradient-blob-3 {
    width: 250px;
    height: 250px;
    background: linear-gradient(135deg, #F59E0B, #EC4899);
    top: 40%;
    right: 20%;
    animation-delay: -14s;
    opacity: 0.2;
}

/* Sector-specific blob colors */
.sector-hospitality .gradient-blob-1 { background: linear-gradient(135deg, #F59E0B, #EC4899); }
.sector-hospitality .gradient-blob-2 { background: linear-gradient(135deg, #10B981, #06B6D4); }

.sector-retail .gradient-blob-1 { background: linear-gradient(135deg, #EC4899, #8B5CF6); }
.sector-retail .gradient-blob-2 { background: linear-gradient(135deg, #F59E0B, #EF4444); }

.sector-banking .gradient-blob-1 { background: linear-gradient(135deg, #10B981, #3B82F6); }
.sector-banking .gradient-blob-2 { background: linear-gradient(135deg, #4000A5, #6366F1); }

.sector-healthcare .gradient-blob-1 { background: linear-gradient(135deg, #06B6D4, #10B981); }
.sector-healthcare .gradient-blob-2 { background: linear-gradient(135deg, #3B82F6, #8B5CF6); }

/* ============================================
   CONNECTING LINES BETWEEN IMAGES
   ============================================ */

.connection-lines {
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 0;
}

.connection-line {
    position: absolute;
    height: 2px;
    background: linear-gradient(90deg, transparent, rgba(0, 212, 255, 0.3), transparent);
    transform-origin: left center;
    animation: shimmer 3s ease-in-out infinite;
}

/* ============================================
   INTERACTIVE CARD EFFECTS
   ============================================ */

.card-3d {
    transform-style: preserve-3d;
    perspective: 1000px;
    transition: transform 0.5s ease;
}

.card-3d:hover {
    transform: rotateY(5deg) rotateX(5deg) translateZ(20px);
}

.card-hover-lift {
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.card-hover-lift:hover {
    transform: translateY(-12px);
    box-shadow: 0 25px 50px rgba(64, 0, 165, 0.15);
}

.card-hover-shine {
    position: relative;
    overflow: hidden;
}

.card-hover-shine::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.6s ease;
    z-index: 10;
    pointer-events: none;
}

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

.img-hover-zoom {
    overflow: hidden;
}

.img-hover-zoom img {
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.img-hover-zoom:hover img {
    transform: scale(1.1);
}

/* ============================================
   BUTTON ANIMATIONS
   ============================================ */

.btn-animated {
    position: relative;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.btn-animated::before {
    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;
}

.btn-animated:hover::before {
    width: 400px;
    height: 400px;
}

.btn-animated:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(64, 0, 165, 0.3);
}

.btn-arrow-animate i {
    transition: transform 0.3s ease;
}

.btn-arrow-animate:hover i {
    transform: translateX(6px);
}

html[lang="ar"] .btn-arrow-animate:hover i {
    transform: translateX(-6px);
}

/* ============================================
   GLOWING BORDER EFFECT
   ============================================ */

.glow-border {
    position: relative;
}

.glow-border::after {
    content: '';
    position: absolute;
    top: -3px;
    left: -3px;
    right: -3px;
    bottom: -3px;
    background: linear-gradient(45deg, #4000A5, #00D4FF, #10B981, #F59E0B, #4000A5);
    background-size: 400% 400%;
    border-radius: inherit;
    z-index: -1;
    opacity: 0;
    transition: opacity 0.4s ease;
    animation: gradientShift 3s ease infinite;
}

.glow-border:hover::after {
    opacity: 1;
}

/* ============================================
   COUNTER ANIMATION
   ============================================ */

.stat-box {
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.stat-box:hover {
    transform: translateY(-8px) scale(1.02);
}

.stat-box:hover .stat-number {
    color: #00D4FF;
    text-shadow: 0 0 20px rgba(0, 212, 255, 0.5);
}

/* ============================================
   SECTION TITLE ANIMATIONS
   ============================================ */

.section-title {
    position: relative;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    width: 0;
    height: 4px;
    background: linear-gradient(90deg, #4000A5, #00D4FF);
    transition: width 0.6s ease, left 0.6s ease;
    border-radius: 2px;
}

.section-title.animated::after {
    width: 80px;
    left: calc(50% - 40px);
}

/* ============================================
   HERO ANIMATIONS
   ============================================ */

.hero-slider-section .carousel-item.active .hero-slide-title {
    animation: slideInUp 0.9s cubic-bezier(0.4, 0, 0.2, 1) 0.2s both;
}

.hero-slider-section .carousel-item.active .hero-slide-subtitle {
    animation: slideInUp 0.9s cubic-bezier(0.4, 0, 0.2, 1) 0.4s both;
}

.hero-slider-section .carousel-item.active .hero-slide-description {
    animation: slideInUp 0.9s cubic-bezier(0.4, 0, 0.2, 1) 0.5s both;
}

.hero-slider-section .carousel-item.active .btn-hero {
    animation: slideInUp 0.9s cubic-bezier(0.4, 0, 0.2, 1) 0.6s both;
}

/* ============================================
   PARTNER LOGOS
   ============================================ */

.partner-logo-wrapper {
    transition: all 0.4s ease;
    filter: grayscale(100%);
    opacity: 0.6;
}

.partner-logo-wrapper:hover {
    filter: grayscale(0%);
    opacity: 1;
    transform: scale(1.15);
}

/* ============================================
   TEAM CARDS
   ============================================ */

.team-card {
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

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

.team-card:hover .team-img {
    border-color: #4000A5;
    box-shadow: 0 0 20px rgba(64, 0, 165, 0.3);
}

.team-social a {
    transition: all 0.3s ease;
}

.team-social a:hover {
    transform: translateY(-4px) scale(1.1);
    background: linear-gradient(135deg, #4000A5, #00D4FF);
    color: white;
}

/* ============================================
   NEWS CARDS
   ============================================ */

.news-card-modern {
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.news-card-modern:hover {
    transform: translateY(-12px);
    box-shadow: 0 25px 50px rgba(64, 0, 165, 0.2);
}

/* ============================================
   AI SOLUTION TAGS
   ============================================ */

.ai-solution-tag {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.ai-solution-tag:hover {
    background: linear-gradient(135deg, #4000A5 0%, #6B21A8 100%) !important;
    color: white !important;
    transform: translateY(-4px) scale(1.05);
    box-shadow: 0 8px 20px rgba(64, 0, 165, 0.3);
}

/* ============================================
   LOADING SKELETON
   ============================================ */

.skeleton-loading {
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: shimmer 1.5s infinite;
}

/* ============================================
   RESPONSIVE ADJUSTMENTS
   ============================================ */

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

@media (max-width: 1199px) {
    .sector-visual-composition {
        height: 400px;
    }

    .floating-image {
        transform: scale(0.9) !important;
    }
}

@media (max-width: 991px) {
    .sector-visual-composition {
        height: 350px;
        margin-bottom: 40px;
    }

    .floating-image {
        transform: scale(0.8) !important;
    }

    .gradient-blob {
        opacity: 0.2;
    }

    .image-icon-badge {
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }
}

@media (max-width: 768px) {
    .sector-visual-composition {
        height: 300px;
    }

    .floating-image {
        transform: scale(0.7) !important;
    }

    .sector-animation-container {
        opacity: 0.5;
    }

    [class*="anim-fade"],
    [class*="anim-scale"] {
        transform: translateY(30px) !important;
    }

    .anim-fade-left,
    .anim-fade-right {
        transform: translateY(30px) !important;
    }
}

@media (max-width: 576px) {
    .sector-visual-composition {
        height: 250px;
    }

    .floating-image {
        transform: scale(0.6) !important;
    }

    .floating-image:nth-child(5),
    .floating-image:nth-child(6) {
        display: none;
    }
}

/* ============================================
   ANIMATED SECTION DIVIDERS - Unique Colors per Section
   ============================================ */

/* Base animated divider */
.section-divider-animated {
    position: relative;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    --divider-color: #4000A5;
    --divider-glow: rgba(64, 0, 165, 0.5);
}

/* Main gradient line */
.divider-line {
    position: absolute;
    left: 5%;
    right: 5%;
    height: 2px;
    background: linear-gradient(90deg,
        transparent,
        var(--divider-color-light, rgba(64, 0, 165, 0.15)) 15%,
        var(--divider-color-medium, rgba(64, 0, 165, 0.3)) 50%,
        var(--divider-color-light, rgba(64, 0, 165, 0.15)) 85%,
        transparent
    );
    border-radius: 1px;
}

/* Traveling energy beam */
.divider-beam {
    position: absolute;
    left: 0%;
    top: 50%;
    transform: translateY(-50%);
    width: 120px;
    height: 6px;
    background: linear-gradient(90deg,
        transparent,
        var(--divider-color-fade, rgba(64, 0, 165, 0.3)) 15%,
        var(--divider-color, #4000A5) 50%,
        var(--divider-color-fade, rgba(64, 0, 165, 0.3)) 85%,
        transparent
    );
    border-radius: 3px;
    filter: blur(1px);
    animation: beamTravel 4s ease-in-out infinite;
    box-shadow: 0 0 20px var(--divider-glow), 0 0 40px var(--divider-glow);
}

/* Secondary trailing beam */
.divider-beam-trail {
    position: absolute;
    left: -10%;
    top: 50%;
    transform: translateY(-50%);
    width: 60px;
    height: 3px;
    background: linear-gradient(90deg,
        transparent,
        var(--divider-color-fade, rgba(64, 0, 165, 0.2)) 30%,
        var(--divider-color-light, rgba(64, 0, 165, 0.5)) 70%,
        transparent
    );
    border-radius: 2px;
    animation: beamTravel 4s ease-in-out infinite;
    animation-delay: 0.3s;
    opacity: 0.6;
}

/* Particle effects */
.divider-particles {
    position: absolute;
    width: 100%;
    height: 100%;
    pointer-events: none;
}

.divider-particle {
    position: absolute;
    width: 4px;
    height: 4px;
    background: var(--divider-color);
    border-radius: 50%;
    animation: particleFloat 3s ease-in-out infinite;
    box-shadow: 0 0 8px var(--divider-glow);
}

.divider-particle:nth-child(1) { left: 20%; animation-delay: 0s; }
.divider-particle:nth-child(2) { left: 40%; animation-delay: 0.5s; }
.divider-particle:nth-child(3) { left: 60%; animation-delay: 1s; }
.divider-particle:nth-child(4) { left: 80%; animation-delay: 1.5s; }

@keyframes beamTravel {
    0% { left: -5%; opacity: 0; }
    10% { opacity: 1; }
    90% { opacity: 1; }
    100% { left: 95%; opacity: 0; }
}

@keyframes particleFloat {
    0%, 100% {
        top: 50%;
        transform: translateY(-50%) scale(0);
        opacity: 0;
    }
    20% {
        transform: translateY(-50%) scale(1);
        opacity: 1;
    }
    50% {
        top: 30%;
        transform: translateY(-50%) scale(1.2);
        opacity: 0.8;
    }
    80% {
        transform: translateY(-50%) scale(0.8);
        opacity: 0.4;
    }
}

/* RTL Support */
html[dir="rtl"] .divider-beam,
html[dir="rtl"] .divider-beam-trail {
    animation: beamTravelRTL 4s ease-in-out infinite;
}

html[dir="rtl"] .divider-beam-trail {
    animation-delay: 0.3s;
}

@keyframes beamTravelRTL {
    0% { left: 95%; opacity: 0; }
    10% { opacity: 1; }
    90% { opacity: 1; }
    100% { left: -5%; opacity: 0; }
}

/* ============================================
   UNIQUE COLOR THEMES FOR EACH DIVIDER
   ============================================ */

/* 1. Purple (Primary) - After Hero */
.section-divider-animated.divider-purple {
    --divider-color: #7C3AED;
    --divider-color-light: rgba(124, 58, 237, 0.15);
    --divider-color-medium: rgba(124, 58, 237, 0.35);
    --divider-color-fade: rgba(124, 58, 237, 0.3);
    --divider-glow: rgba(124, 58, 237, 0.5);
}

/* 2. Cyan (Tech) - After About */
.section-divider-animated.divider-cyan {
    --divider-color: #00D4FF;
    --divider-color-light: rgba(0, 212, 255, 0.15);
    --divider-color-medium: rgba(0, 212, 255, 0.35);
    --divider-color-fade: rgba(0, 212, 255, 0.3);
    --divider-glow: rgba(0, 212, 255, 0.5);
}

/* 3. Emerald (Growth) - After Stats */
.section-divider-animated.divider-emerald {
    --divider-color: #10B981;
    --divider-color-light: rgba(16, 185, 129, 0.15);
    --divider-color-medium: rgba(16, 185, 129, 0.35);
    --divider-color-fade: rgba(16, 185, 129, 0.3);
    --divider-glow: rgba(16, 185, 129, 0.5);
}

/* 4. Amber (Hospitality) - After Hospitality */
.section-divider-animated.divider-amber {
    --divider-color: #F59E0B;
    --divider-color-light: rgba(245, 158, 11, 0.15);
    --divider-color-medium: rgba(245, 158, 11, 0.35);
    --divider-color-fade: rgba(245, 158, 11, 0.3);
    --divider-glow: rgba(245, 158, 11, 0.5);
}

/* 5. Rose (Retail) - After Retail */
.section-divider-animated.divider-rose {
    --divider-color: #F43F5E;
    --divider-color-light: rgba(244, 63, 94, 0.15);
    --divider-color-medium: rgba(244, 63, 94, 0.35);
    --divider-color-fade: rgba(244, 63, 94, 0.3);
    --divider-glow: rgba(244, 63, 94, 0.5);
}

/* 6. Blue (Banking) - After Banking */
.section-divider-animated.divider-blue {
    --divider-color: #3B82F6;
    --divider-color-light: rgba(59, 130, 246, 0.15);
    --divider-color-medium: rgba(59, 130, 246, 0.35);
    --divider-color-fade: rgba(59, 130, 246, 0.3);
    --divider-glow: rgba(59, 130, 246, 0.5);
}

/* 7. Teal (Healthcare) - After Healthcare */
.section-divider-animated.divider-teal {
    --divider-color: #14B8A6;
    --divider-color-light: rgba(20, 184, 166, 0.15);
    --divider-color-medium: rgba(20, 184, 166, 0.35);
    --divider-color-fade: rgba(20, 184, 166, 0.3);
    --divider-glow: rgba(20, 184, 166, 0.5);
}

/* 8. Violet (Team) - After Team */
.section-divider-animated.divider-violet {
    --divider-color: #8B5CF6;
    --divider-color-light: rgba(139, 92, 246, 0.15);
    --divider-color-medium: rgba(139, 92, 246, 0.35);
    --divider-color-fade: rgba(139, 92, 246, 0.3);
    --divider-glow: rgba(139, 92, 246, 0.5);
}

/* 9. Orange (Partners) - After Testimonials */
.section-divider-animated.divider-orange {
    --divider-color: #F97316;
    --divider-color-light: rgba(249, 115, 22, 0.15);
    --divider-color-medium: rgba(249, 115, 22, 0.35);
    --divider-color-fade: rgba(249, 115, 22, 0.3);
    --divider-glow: rgba(249, 115, 22, 0.5);
}

/* 10. Indigo (News) - After Partners */
.section-divider-animated.divider-indigo {
    --divider-color: #6366F1;
    --divider-color-light: rgba(99, 102, 241, 0.15);
    --divider-color-medium: rgba(99, 102, 241, 0.35);
    --divider-color-fade: rgba(99, 102, 241, 0.3);
    --divider-glow: rgba(99, 102, 241, 0.5);
}

/* ============================================
   DIVIDER VARIANTS
   ============================================ */

/* Variant: With center icon */
.section-divider-animated .divider-icon {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, var(--divider-color), var(--divider-color-medium));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.2rem;
    z-index: 5;
    animation: iconPulse 2s ease-in-out infinite;
    box-shadow: 0 0 25px var(--divider-glow), 0 0 50px var(--divider-glow);
}

@keyframes iconPulse {
    0%, 100% {
        transform: translate(-50%, -50%) scale(1);
        box-shadow: 0 0 25px var(--divider-glow), 0 0 50px var(--divider-glow);
    }
    50% {
        transform: translate(-50%, -50%) scale(1.1);
        box-shadow: 0 0 35px var(--divider-glow), 0 0 70px var(--divider-glow);
    }
}

/* Variant: With label */
.section-divider-label {
    position: relative;
    height: 70px;
    display: flex;
    align-items: center;
    justify-content: center;
    --divider-color: #4000A5;
    --divider-glow: rgba(64, 0, 165, 0.5);
}

.divider-label-text {
    position: relative;
    z-index: 5;
    padding: 10px 28px;
    background: linear-gradient(135deg, var(--divider-color), var(--divider-color-medium, rgba(64, 0, 165, 0.8)));
    color: white;
    font-size: 0.9rem;
    font-weight: 600;
    border-radius: 25px;
    display: flex;
    align-items: center;
    gap: 10px;
    box-shadow: 0 4px 20px var(--divider-glow);
    animation: labelGlow 2s ease-in-out infinite;
}

@keyframes labelGlow {
    0%, 100% {
        box-shadow: 0 4px 20px var(--divider-glow);
    }
    50% {
        box-shadow: 0 4px 30px var(--divider-glow), 0 0 40px var(--divider-glow);
    }
}

.divider-label-text i {
    color: white;
    opacity: 0.9;
}

.section-divider-label .label-line {
    position: absolute;
    top: 50%;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--divider-color-light, rgba(64, 0, 165, 0.2)), transparent);
    transform: translateY(-50%);
}

.section-divider-label .label-line-left {
    left: 5%;
    right: calc(50% + 90px);
}

.section-divider-label .label-line-right {
    left: calc(50% + 90px);
    right: 5%;
}

/* Traveling light on label divider */
.section-divider-label .label-beam {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 80px;
    height: 4px;
    background: linear-gradient(90deg,
        transparent,
        var(--divider-color-fade, rgba(64, 0, 165, 0.3)) 20%,
        var(--divider-color) 50%,
        var(--divider-color-fade, rgba(64, 0, 165, 0.3)) 80%,
        transparent
    );
    border-radius: 2px;
    animation: labelBeamLeft 3s ease-in-out infinite;
    box-shadow: 0 0 15px var(--divider-glow);
}

.section-divider-label .label-beam.beam-right {
    animation: labelBeamRight 3s ease-in-out infinite;
    animation-delay: 1.5s;
}

@keyframes labelBeamLeft {
    0% { left: 5%; opacity: 0; }
    10% { opacity: 1; }
    45% { opacity: 1; left: calc(50% - 120px); }
    50%, 100% { opacity: 0; left: calc(50% - 120px); }
}

@keyframes labelBeamRight {
    0%, 50% { right: calc(50% - 120px); opacity: 0; }
    55% { opacity: 1; }
    90% { opacity: 1; }
    100% { right: 5%; opacity: 0; }
}

/* RTL for label beams */
html[dir="rtl"] .section-divider-label .label-beam {
    animation: labelBeamLeftRTL 3s ease-in-out infinite;
}

html[dir="rtl"] .section-divider-label .label-beam.beam-right {
    animation: labelBeamRightRTL 3s ease-in-out infinite;
    animation-delay: 1.5s;
}

@keyframes labelBeamLeftRTL {
    0% { left: auto; right: 5%; opacity: 0; }
    10% { opacity: 1; }
    45% { opacity: 1; right: calc(50% - 120px); }
    50%, 100% { opacity: 0; right: calc(50% - 120px); }
}

@keyframes labelBeamRightRTL {
    0%, 50% { left: calc(50% - 120px); opacity: 0; }
    55% { opacity: 1; }
    90% { opacity: 1; }
    100% { left: 5%; opacity: 0; }
}

/* ============================================
   SPEED VARIATIONS
   ============================================ */

.section-divider-animated.speed-slow .divider-beam {
    animation-duration: 6s;
}

.section-divider-animated.speed-slow .divider-beam-trail {
    animation-duration: 6s;
}

.section-divider-animated.speed-fast .divider-beam {
    animation-duration: 2.5s;
}

.section-divider-animated.speed-fast .divider-beam-trail {
    animation-duration: 2.5s;
}

/* ============================================
   RESPONSIVE ADJUSTMENTS
   ============================================ */

@media (max-width: 992px) {
    .section-divider-animated {
        height: 60px;
    }

    .divider-beam {
        width: 80px;
    }

    .section-divider-animated .divider-icon {
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }
}

@media (max-width: 768px) {
    .section-divider-animated {
        height: 50px;
    }

    .divider-beam {
        width: 60px;
        height: 4px;
    }

    .divider-beam-trail {
        display: none;
    }

    .divider-particle {
        display: none;
    }

    .section-divider-label {
        height: 55px;
    }

    .divider-label-text {
        padding: 8px 20px;
        font-size: 0.8rem;
    }

    .section-divider-animated .divider-icon {
        width: 35px;
        height: 35px;
        font-size: 0.9rem;
    }
}

/* ============================================
   REDUCED MOTION
   ============================================ */

@media (prefers-reduced-motion: reduce) {
    .divider-beam,
    .divider-beam-trail,
    .divider-particle,
    .section-divider-label .label-beam {
        animation: none;
        opacity: 0;
    }

    .section-divider-animated .divider-icon,
    .divider-label-text {
        animation: none;
    }
}

/* ============================================
   ROADMAP VISUAL PATH - مسار الخريطة البصرية
   ============================================ */

/* Roadmap Container - Fixed position on left side */
/* Hidden by default, shown via JS when scrolled past hero */
.roadmap-container {
    position: fixed;
    left: 20px;
    top: 0;
    bottom: 0;
    width: 60px;
    z-index: 50;
    pointer-events: none;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.4s ease;
}

.roadmap-container.visible {
    opacity: 1;
}

.roadmap-svg {
    width: 100%;
    height: 100%;
    opacity: 0.8;
}

.roadmap-track {
    opacity: 0.3;
}

.roadmap-progress {
    stroke-dasharray: 5000;
    stroke-dashoffset: 5000;
    transition: stroke-dashoffset 0.1s ease-out;
}

/* Roadmap Nodes */
.roadmap-nodes {
    position: absolute;
    left: 50%;
    top: 0;
    bottom: 0;
    width: 20px;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    justify-content: space-evenly;
    padding: 100px 0;
}

.roadmap-node {
    width: 14px;
    height: 14px;
    background: rgba(64, 0, 165, 0.3);
    border: 2px solid rgba(64, 0, 165, 0.5);
    border-radius: 50%;
    transition: all 0.3s ease;
    pointer-events: auto;
    cursor: pointer;
}

.roadmap-node:hover {
    transform: scale(1.3);
    background: rgba(0, 212, 255, 0.5);
    border-color: #00D4FF;
}

.roadmap-node.active {
    background: linear-gradient(135deg, #4000A5, #00D4FF);
    border-color: #00D4FF;
    box-shadow: 0 0 15px rgba(0, 212, 255, 0.6), 0 0 30px rgba(64, 0, 165, 0.4);
    transform: scale(1.2);
}

.roadmap-node.completed {
    background: linear-gradient(135deg, #4000A5, #00D4FF);
    border-color: #4000A5;
}

/* RTL Support for Roadmap */
html[dir="rtl"] .roadmap-container {
    left: auto;
    right: 20px;
    transform: scaleX(-1);
}

/* Hide on smaller screens where it would overlap content */
@media (max-width: 1400px) {
    .roadmap-container {
        left: 10px;
        width: 40px;
    }

    .roadmap-node {
        width: 10px;
        height: 10px;
    }
}

@media (max-width: 1200px) {
    .roadmap-container {
        display: none;
    }
}

/* ============================================
   DYNAMIC TITLE SCALING - تحجيم العناوين الديناميكي
   ============================================ */

.roadmap-title {
    transition: transform 0.15s ease-out;
    transform-origin: center center;
    will-change: transform;
}

/* ============================================
   SIGNAL MARKER ANIMATION - حركة إشارة العنوان
   Red line that orbits smoothly around the title using rotation
   ============================================ */

.roadmap-title-wrapper {
    position: relative;
    display: inline-block;
    padding: 8px 0;
}

/* The signal line - smooth orbit with curved corners */
.title-signal-marker {
    position: absolute;
    width: 40px;
    height: 3px;
    background: linear-gradient(90deg,
        transparent,
        rgba(239, 68, 68, 0.6) 20%,
        #EF4444 50%,
        rgba(239, 68, 68, 0.6) 80%,
        transparent
    );
    border-radius: 2px;
    box-shadow: 0 0 8px #EF4444, 0 0 15px rgba(239, 68, 68, 0.5);
    z-index: 10;
    pointer-events: none;
    transform-origin: center center;
    /* Smooth orbit with curved corners */
    animation: orbitSmooth 7s linear infinite;
}

/* Smooth orbit animation with curved corner transitions */
@keyframes orbitSmooth {
    /* Top edge: left to right */
    0% {
        top: -4px;
        left: -20px;
        transform: rotate(0deg);
    }
    20% {
        top: -4px;
        left: calc(100% - 20px);
        transform: rotate(0deg);
    }
    /* Top-right corner: smooth curve */
    22% {
        top: 2px;
        left: calc(100% - 5px);
        transform: rotate(30deg);
    }
    24% {
        top: 12px;
        left: calc(100% + 2px);
        transform: rotate(60deg);
    }
    26% {
        top: 25px;
        left: calc(100% + 2px);
        transform: rotate(90deg);
    }
    /* Right edge: top to bottom */
    44% {
        top: calc(100% - 25px);
        left: calc(100% + 2px);
        transform: rotate(90deg);
    }
    /* Bottom-right corner: smooth curve */
    46% {
        top: calc(100% - 12px);
        left: calc(100% + 2px);
        transform: rotate(120deg);
    }
    48% {
        top: calc(100% - 2px);
        left: calc(100% - 5px);
        transform: rotate(150deg);
    }
    50% {
        top: calc(100% + 1px);
        left: calc(100% - 20px);
        transform: rotate(180deg);
    }
    /* Bottom edge: right to left */
    70% {
        top: calc(100% + 1px);
        left: -20px;
        transform: rotate(180deg);
    }
    /* Bottom-left corner: smooth curve */
    72% {
        top: calc(100% - 2px);
        left: -25px;
        transform: rotate(210deg);
    }
    74% {
        top: calc(100% - 12px);
        left: -22px;
        transform: rotate(240deg);
    }
    76% {
        top: calc(100% - 25px);
        left: -22px;
        transform: rotate(270deg);
    }
    /* Left edge: bottom to top */
    94% {
        top: 25px;
        left: -22px;
        transform: rotate(270deg);
    }
    /* Top-left corner: smooth curve back to start */
    96% {
        top: 12px;
        left: -22px;
        transform: rotate(300deg);
    }
    98% {
        top: 2px;
        left: -25px;
        transform: rotate(330deg);
    }
    100% {
        top: -4px;
        left: -20px;
        transform: rotate(360deg);
    }
}

/* RTL - Reverse orbit direction (mirrors the smooth animation) */
html[dir="rtl"] .title-signal-marker {
    animation: orbitSmoothRTL 7s linear infinite;
}

/* RTL smooth orbit animation - counter-clockwise */
@keyframes orbitSmoothRTL {
    /* Top edge: right to left */
    0% {
        top: -4px;
        left: calc(100% - 20px);
        transform: rotate(0deg);
    }
    20% {
        top: -4px;
        left: -20px;
        transform: rotate(0deg);
    }
    /* Top-left corner: smooth curve */
    22% {
        top: 2px;
        left: -25px;
        transform: rotate(-30deg);
    }
    24% {
        top: 12px;
        left: -22px;
        transform: rotate(-60deg);
    }
    26% {
        top: 25px;
        left: -22px;
        transform: rotate(-90deg);
    }
    /* Left edge: top to bottom */
    44% {
        top: calc(100% - 25px);
        left: -22px;
        transform: rotate(-90deg);
    }
    /* Bottom-left corner: smooth curve */
    46% {
        top: calc(100% - 12px);
        left: -22px;
        transform: rotate(-120deg);
    }
    48% {
        top: calc(100% - 2px);
        left: -25px;
        transform: rotate(-150deg);
    }
    50% {
        top: calc(100% + 1px);
        left: -20px;
        transform: rotate(-180deg);
    }
    /* Bottom edge: left to right */
    70% {
        top: calc(100% + 1px);
        left: calc(100% - 20px);
        transform: rotate(-180deg);
    }
    /* Bottom-right corner: smooth curve */
    72% {
        top: calc(100% - 2px);
        left: calc(100% - 5px);
        transform: rotate(-210deg);
    }
    74% {
        top: calc(100% - 12px);
        left: calc(100% + 2px);
        transform: rotate(-240deg);
    }
    76% {
        top: calc(100% - 25px);
        left: calc(100% + 2px);
        transform: rotate(-270deg);
    }
    /* Right edge: bottom to top */
    94% {
        top: 25px;
        left: calc(100% + 2px);
        transform: rotate(-270deg);
    }
    /* Top-right corner: smooth curve back to start */
    96% {
        top: 12px;
        left: calc(100% + 2px);
        transform: rotate(-300deg);
    }
    98% {
        top: 2px;
        left: calc(100% - 5px);
        transform: rotate(-330deg);
    }
    100% {
        top: -4px;
        left: calc(100% - 20px);
        transform: rotate(-360deg);
    }
}

/* Responsive - smaller line on mobile */
@media (max-width: 768px) {
    .title-signal-marker {
        width: 30px;
    }

    .roadmap-title-wrapper {
        padding: 6px 0;
    }
}

/* ============================================
   PUZZLE IMAGE COMPOSITION - تكوين صور الألغاز
   ============================================ */

.puzzle-composition {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-template-rows: repeat(2, 1fr);
    gap: 10px;
    width: 100%;
    aspect-ratio: 4/3;
    perspective: 1000px;
    position: relative;
    min-height: 450px;
    max-height: 600px;
}

.puzzle-piece {
    position: relative;
    overflow: hidden;
    border-radius: 16px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    opacity: 0;
    transform: var(--scatter-transform, translate(0, 0));
    transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
    transition-delay: var(--delay, 0s);
    background: #fff;
    border: 3px solid rgba(64, 0, 165, 0.1);
}

/* Note: .assembled class is added/removed by IntersectionObserver in main.js */

.puzzle-piece img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top center;
    transition: transform 0.5s ease;
}

.puzzle-piece:hover img {
    transform: scale(1.1);
}

/* Main piece - spans 2x2 */
.puzzle-piece.piece-main {
    grid-column: 1 / 3;
    grid-row: 1 / 3;
    --scatter-transform: translate(-150px, -100px) rotate(-15deg) scale(0.7);
    --delay: 0s;
}

/* Smaller pieces */
.puzzle-piece.piece-2 {
    grid-column: 3 / 4;
    grid-row: 1 / 2;
    --scatter-transform: translate(150px, -80px) rotate(20deg) scale(0.6);
    --delay: 0.1s;
}

.puzzle-piece.piece-3 {
    grid-column: 3 / 4;
    grid-row: 2 / 3;
    --scatter-transform: translate(120px, 100px) rotate(-10deg) scale(0.5);
    --delay: 0.2s;
}

/* Alternative layout: 3 pieces on bottom */
.puzzle-composition.layout-alt .puzzle-piece.piece-main {
    grid-column: 1 / 4;
    grid-row: 1 / 2;
}

.puzzle-composition.layout-alt .puzzle-piece.piece-2 {
    grid-column: 1 / 2;
    grid-row: 2 / 3;
}

.puzzle-composition.layout-alt .puzzle-piece.piece-3 {
    grid-column: 2 / 3;
    grid-row: 2 / 3;
}

.puzzle-composition.layout-alt .puzzle-piece.piece-4 {
    grid-column: 3 / 4;
    grid-row: 2 / 3;
    --scatter-transform: translate(80px, 120px) rotate(15deg) scale(0.6);
    --delay: 0.3s;
}

/* 6-piece layout for sectors - Product Screenshots */
.puzzle-composition.layout-6 {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    justify-content: center;
    align-items: center;
    min-height: 450px;
    max-height: none;
    aspect-ratio: unset;
    padding: 10px;
}

.puzzle-composition.layout-6 .puzzle-piece {
    flex: 0 0 auto;
    border-radius: 12px;
    box-shadow: 0 8px 25px rgba(64, 0, 165, 0.12);
    border: 2px solid rgba(64, 0, 165, 0.08);
    background: #fff;
    overflow: hidden;
}

.puzzle-composition.layout-6 .puzzle-piece img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center;
    background: #fff;
    padding: 5px;
}

/* Main piece - largest, centered */
.puzzle-composition.layout-6 .puzzle-piece.piece-main {
    width: 240px;
    height: 320px;
    --scatter-transform: translate(-150px, -50px) rotate(-10deg) scale(0.5);
    --delay: 0s;
    z-index: 3;
}

/* Second row pieces */
.puzzle-composition.layout-6 .puzzle-piece.piece-2 {
    width: 160px;
    height: 220px;
    --scatter-transform: translate(100px, -100px) rotate(15deg) scale(0.5);
    --delay: 0.1s;
}

.puzzle-composition.layout-6 .puzzle-piece.piece-3 {
    width: 160px;
    height: 220px;
    --scatter-transform: translate(150px, 50px) rotate(-12deg) scale(0.5);
    --delay: 0.15s;
}

/* Third row pieces - smaller */
.puzzle-composition.layout-6 .puzzle-piece.piece-4 {
    width: 140px;
    height: 190px;
    --scatter-transform: translate(-100px, 100px) rotate(18deg) scale(0.5);
    --delay: 0.2s;
}

.puzzle-composition.layout-6 .puzzle-piece.piece-5 {
    width: 140px;
    height: 190px;
    --scatter-transform: translate(80px, 120px) rotate(-8deg) scale(0.5);
    --delay: 0.25s;
}

/* 6th piece - small accent */
.puzzle-composition.layout-6 .puzzle-piece.piece-6 {
    width: 120px;
    height: 160px;
    --scatter-transform: translate(150px, 80px) rotate(20deg) scale(0.4);
    --delay: 0.3s;
}

/* ========================================
   Layout Products - 3 Piece Product Screenshots
   Phone mockup (left) + 2 dashboards stacked (right)
   ======================================== */
.puzzle-composition.layout-products {
    display: grid;
    grid-template-columns: auto auto;
    grid-template-rows: auto auto;
    gap: 12px;
    justify-content: center;
    align-items: center;
    min-height: auto;
    padding: 10px;
}

.puzzle-composition.layout-products .puzzle-piece {
    position: relative;
    border-radius: 16px;
    box-shadow: 0 10px 30px rgba(64, 0, 165, 0.15);
    border: 2px solid rgba(64, 0, 165, 0.08);
    background: #ffffff;
    overflow: hidden;
    transition: all 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.puzzle-composition.layout-products .puzzle-piece img {
    display: block;
    width: auto;
    height: auto;
    max-width: 100%;
    transition: transform 0.5s ease;
}

.puzzle-composition.layout-products .puzzle-piece:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 20px 50px rgba(64, 0, 165, 0.22);
    border-color: rgba(0, 194, 255, 0.4);
    z-index: 10;
}

/* Main piece - Phone mockup, spans 2 rows */
.puzzle-composition.layout-products .puzzle-piece.piece-main {
    grid-column: 1;
    grid-row: 1 / 3;
    --scatter-transform: translate(-120px, -40px) rotate(-12deg) scale(0.4);
    --delay: 0s;
}

/* Piece 2 - Top right dashboard */
.puzzle-composition.layout-products .puzzle-piece.piece-2 {
    grid-column: 2;
    grid-row: 1;
    --scatter-transform: translate(100px, -60px) rotate(15deg) scale(0.5);
    --delay: 0.1s;
}

/* Piece 3 - Bottom right dashboard */
.puzzle-composition.layout-products .puzzle-piece.piece-3 {
    grid-column: 2;
    grid-row: 2;
    --scatter-transform: translate(80px, 80px) rotate(-10deg) scale(0.5);
    --delay: 0.2s;
}

/* Responsive - Mobile */
@media (max-width: 576px) {
    .puzzle-composition.layout-products {
        grid-template-columns: 1fr;
        grid-template-rows: auto auto auto;
        gap: 10px;
        padding: 8px;
    }

    .puzzle-composition.layout-products .puzzle-piece.piece-main {
        grid-column: 1;
        grid-row: 1;
        justify-self: center;
    }

    .puzzle-composition.layout-products .puzzle-piece.piece-2 {
        grid-column: 1;
        grid-row: 2;
        justify-self: center;
    }

    .puzzle-composition.layout-products .puzzle-piece.piece-3 {
        grid-column: 1;
        grid-row: 3;
        justify-self: center;
    }

    .puzzle-composition.layout-products .puzzle-piece {
        border-radius: 12px;
    }
}

/* Assembled state - pieces animate into position */
.puzzle-composition.assembled .puzzle-piece {
    opacity: 1;
    transform: translate(0, 0) rotate(0deg) scale(1);
}

/* Hover effect on assembled puzzle */
.puzzle-composition.assembled:hover .puzzle-piece {
    box-shadow: 0 15px 40px rgba(64, 0, 165, 0.2);
}

/* Icon badge on puzzle pieces */
.puzzle-piece .piece-badge,
.puzzle-piece .puzzle-icon {
    position: absolute;
    bottom: 10px;
    right: 10px;
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, #4000A5, #00D4FF);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1rem;
    box-shadow: 0 4px 15px rgba(64, 0, 165, 0.4);
    opacity: 0;
    transform: scale(0);
    transition: all 0.4s ease 0.6s;
}

.puzzle-composition.assembled .puzzle-piece .piece-badge,
.puzzle-composition.assembled .puzzle-piece .puzzle-icon {
    opacity: 1;
    transform: scale(1);
}

/* RTL support for puzzle icon */
html[dir="rtl"] .puzzle-piece .puzzle-icon,
html[dir="rtl"] .puzzle-piece .piece-badge {
    right: auto;
    left: 10px;
}

/* Responsive puzzle */
@media (max-width: 992px) {
    .puzzle-composition {
        aspect-ratio: 4/3;
    }

    .puzzle-piece {
        border-radius: 8px;
    }

    /* Layout-6 responsive - tablet */
    .puzzle-composition.layout-6 .puzzle-piece.piece-main {
        width: 200px;
        height: 270px;
    }

    .puzzle-composition.layout-6 .puzzle-piece.piece-2,
    .puzzle-composition.layout-6 .puzzle-piece.piece-3 {
        width: 140px;
        height: 190px;
    }

    .puzzle-composition.layout-6 .puzzle-piece.piece-4,
    .puzzle-composition.layout-6 .puzzle-piece.piece-5 {
        width: 120px;
        height: 160px;
    }

    .puzzle-composition.layout-6 .puzzle-piece.piece-6 {
        width: 100px;
        height: 140px;
    }
}

@media (max-width: 768px) {
    /* Layout-6 responsive - mobile */
    .puzzle-composition.layout-6 {
        min-height: 350px;
        gap: 8px;
    }

    .puzzle-composition.layout-6 .puzzle-piece.piece-main {
        width: 160px;
        height: 220px;
    }

    .puzzle-composition.layout-6 .puzzle-piece.piece-2,
    .puzzle-composition.layout-6 .puzzle-piece.piece-3 {
        width: 120px;
        height: 160px;
    }

    .puzzle-composition.layout-6 .puzzle-piece.piece-4,
    .puzzle-composition.layout-6 .puzzle-piece.piece-5 {
        width: 100px;
        height: 140px;
    }

    .puzzle-composition.layout-6 .puzzle-piece.piece-6 {
        display: none;
    }
}

@media (max-width: 576px) {
    .puzzle-composition {
        gap: 4px;
    }

    .puzzle-piece {
        border-radius: 6px;
    }

    .puzzle-piece .piece-badge {
        width: 30px;
        height: 30px;
        font-size: 0.8rem;
    }
}

/* Reduced motion preference */
@media (prefers-reduced-motion: reduce) {
    .title-signal-marker {
        animation: pulseSignal 2s ease-in-out infinite;
    }

    .puzzle-piece {
        transition-duration: 0.3s;
    }

    .roadmap-progress {
        transition-duration: 0s;
    }
}

/* ============================================
   SECTOR SECTION ENHANCED ANIMATIONS
   ============================================ */

/* Sector section base styles */
.sector-section {
    display: flex;
    align-items: center;
}

/* Animated Background Particles */
.sector-particles {
    position: absolute;
    inset: 0;
    pointer-events: none;
    overflow: hidden;
    z-index: 0;
}

.sector-particle {
    position: absolute;
    width: 8px;
    height: 8px;
    background: linear-gradient(135deg, rgba(64, 0, 165, 0.4), rgba(0, 212, 255, 0.4));
    border-radius: 50%;
    animation: floatParticle 15s ease-in-out infinite;
}

.sector-particle.particle-1 {
    top: 20%;
    left: 10%;
    animation-delay: 0s;
    animation-duration: 18s;
}

.sector-particle.particle-2 {
    top: 60%;
    left: 80%;
    animation-delay: -3s;
    animation-duration: 22s;
    width: 12px;
    height: 12px;
}

.sector-particle.particle-3 {
    top: 80%;
    left: 30%;
    animation-delay: -7s;
    animation-duration: 16s;
    width: 6px;
    height: 6px;
}

.sector-particle.particle-4 {
    top: 30%;
    left: 70%;
    animation-delay: -10s;
    animation-duration: 20s;
}

.sector-particle.particle-5 {
    top: 50%;
    left: 20%;
    animation-delay: -5s;
    animation-duration: 25s;
    width: 10px;
    height: 10px;
}

@keyframes floatParticle {
    0%, 100% {
        transform: translate(0, 0) scale(1);
        opacity: 0.3;
    }
    25% {
        transform: translate(60px, -80px) scale(1.5);
        opacity: 0.6;
    }
    50% {
        transform: translate(-40px, -150px) scale(1);
        opacity: 0.4;
    }
    75% {
        transform: translate(30px, -100px) scale(1.3);
        opacity: 0.5;
    }
}

/* Floating Icons Background */
.sector-floating-icons {
    position: absolute;
    inset: 0;
    pointer-events: none;
    overflow: hidden;
    z-index: 0;
}

.floating-icon {
    position: absolute;
    font-size: 3rem;
    color: rgba(64, 0, 165, 0.05);
    animation: floatIcon 20s ease-in-out infinite;
}

.floating-icon.icon-1 {
    top: 15%;
    right: 15%;
    font-size: 4rem;
    animation-delay: 0s;
}

.floating-icon.icon-2 {
    bottom: 20%;
    left: 10%;
    font-size: 3.5rem;
    animation-delay: -6s;
}

.floating-icon.icon-3 {
    top: 50%;
    right: 8%;
    font-size: 2.5rem;
    animation-delay: -12s;
}

@keyframes floatIcon {
    0%, 100% {
        transform: translateY(0) rotate(0deg);
        opacity: 0.05;
    }
    25% {
        transform: translateY(-30px) rotate(5deg);
        opacity: 0.08;
    }
    50% {
        transform: translateY(-15px) rotate(-3deg);
        opacity: 0.06;
    }
    75% {
        transform: translateY(-40px) rotate(3deg);
        opacity: 0.07;
    }
}

/* Sector-specific particle colors */
.sector-hospitality .sector-particle {
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.5), rgba(236, 72, 153, 0.5));
}

.sector-retail .sector-particle {
    background: linear-gradient(135deg, rgba(236, 72, 153, 0.5), rgba(139, 92, 246, 0.5));
}

.sector-banking .sector-particle {
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.5), rgba(59, 130, 246, 0.5));
}

.sector-healthcare .sector-particle {
    background: linear-gradient(135deg, rgba(6, 182, 212, 0.5), rgba(16, 185, 129, 0.5));
}

/* Sector-specific icon colors */
.sector-hospitality .floating-icon {
    color: rgba(245, 158, 11, 0.06);
}

.sector-retail .floating-icon {
    color: rgba(236, 72, 153, 0.06);
}

.sector-banking .floating-icon {
    color: rgba(59, 130, 246, 0.06);
}

.sector-healthcare .floating-icon {
    color: rgba(6, 182, 212, 0.06);
}

/* Enhanced sector content animations */
.sector-content {
    position: relative;
}

/* AI Solution Tags hover effect */
.ai-solution-tag {
    position: relative;
    overflow: hidden;
}

.ai-solution-tag::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
    transition: left 0.5s ease;
}

.ai-solution-tag:hover::before {
    left: 100%;
}

.ai-solution-tag:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(64, 0, 165, 0.3);
    background: linear-gradient(135deg, #4000A5 0%, #6B21A8 100%) !important;
    color: white !important;
}

.ai-solution-tag:hover i {
    color: white !important;
}

/* Sector button enhanced animation */
.btn-sector {
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.btn-sector::before {
    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;
    z-index: -1;
}

.btn-sector:hover::before {
    width: 300px;
    height: 300px;
}

.btn-sector:hover {
    transform: translateY(-4px);
    box-shadow: 0 15px 40px rgba(64, 0, 165, 0.4);
}

/* Animated underline for section title */
.sector-section .section-title {
    position: relative;
    display: inline-block;
}

.sector-section .section-title::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 0;
    width: 0;
    height: 3px;
    background: linear-gradient(90deg, #4000A5, #00D4FF);
    border-radius: 3px;
    transition: width 0.6s ease;
}

html[dir="rtl"] .sector-section .section-title::after {
    left: auto;
    right: 0;
}

.sector-section .section-title.animated::after {
    width: 80px;
}

/* Puzzle hover 3D tilt effect */
.puzzle-composition.assembled:hover {
    transform: perspective(1000px) rotateX(2deg) rotateY(-2deg);
}

.puzzle-composition {
    transition: transform 0.5s ease;
}

/* Glow effect on puzzle pieces on hover */
.puzzle-piece::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(64, 0, 165, 0), rgba(0, 212, 255, 0));
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
    border-radius: inherit;
}

.puzzle-composition.assembled:hover .puzzle-piece::after {
    opacity: 1;
    background: linear-gradient(135deg, rgba(64, 0, 165, 0.1), rgba(0, 212, 255, 0.15));
}

/* Staggered animation for AI solution tags */
.ai-solutions-grid .ai-solution-tag {
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.4s ease;
}

.ai-solutions-grid.animated .ai-solution-tag {
    opacity: 1;
    transform: translateY(0);
}

.ai-solutions-grid.animated .ai-solution-tag:nth-child(1) { transition-delay: 0.1s; }
.ai-solutions-grid.animated .ai-solution-tag:nth-child(2) { transition-delay: 0.15s; }
.ai-solutions-grid.animated .ai-solution-tag:nth-child(3) { transition-delay: 0.2s; }
.ai-solutions-grid.animated .ai-solution-tag:nth-child(4) { transition-delay: 0.25s; }
.ai-solutions-grid.animated .ai-solution-tag:nth-child(5) { transition-delay: 0.3s; }
.ai-solutions-grid.animated .ai-solution-tag:nth-child(6) { transition-delay: 0.35s; }

/* Mobile responsiveness for sector animations */
@media (max-width: 992px) {
    .sector-section {
        min-height: auto;
        padding: 100px 0 !important;
    }

    .floating-icon {
        font-size: 2rem;
    }

    .floating-icon.icon-1 {
        font-size: 2.5rem;
    }
}

@media (max-width: 768px) {
    .sector-section {
        padding: 80px 0 !important;
    }

    .sector-particles,
    .sector-floating-icons {
        display: none;
    }
}

/* Sector Highlights - Key Features Grid */
.sector-highlights {
    margin-bottom: 25px;
}

.highlight-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px 18px;
    background: linear-gradient(135deg, rgba(64, 0, 165, 0.03) 0%, rgba(0, 212, 255, 0.05) 100%);
    border-radius: 12px;
    border: 1px solid rgba(64, 0, 165, 0.08);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.highlight-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(64, 0, 165, 0.08), transparent);
    transition: left 0.6s ease;
}

.highlight-item:hover::before {
    left: 100%;
}

.highlight-item:hover {
    transform: translateY(-3px);
    background: linear-gradient(135deg, rgba(64, 0, 165, 0.08) 0%, rgba(0, 212, 255, 0.1) 100%);
    border-color: rgba(64, 0, 165, 0.15);
    box-shadow: 0 8px 25px rgba(64, 0, 165, 0.12);
}

.highlight-item i {
    font-size: 1.3rem;
    color: #4000A5;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, rgba(64, 0, 165, 0.1), rgba(0, 212, 255, 0.1));
    border-radius: 10px;
    transition: all 0.3s ease;
}

.highlight-item:hover i {
    background: linear-gradient(135deg, #4000A5, #00D4FF);
    color: white;
    transform: scale(1.1);
}

.highlight-item span {
    font-size: 0.95rem;
    font-weight: 500;
    color: #333;
    flex: 1;
}

/* Sector-specific highlight colors */
.sector-hospitality .highlight-item i {
    color: #F59E0B;
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.1), rgba(236, 72, 153, 0.1));
}

.sector-hospitality .highlight-item:hover i {
    background: linear-gradient(135deg, #F59E0B, #EC4899);
    color: white;
}

.sector-retail .highlight-item i {
    color: #EC4899;
    background: linear-gradient(135deg, rgba(236, 72, 153, 0.1), rgba(139, 92, 246, 0.1));
}

.sector-retail .highlight-item:hover i {
    background: linear-gradient(135deg, #EC4899, #8B5CF6);
    color: white;
}

.sector-banking .highlight-item i {
    color: #3B82F6;
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.1), rgba(59, 130, 246, 0.1));
}

.sector-banking .highlight-item:hover i {
    background: linear-gradient(135deg, #10B981, #3B82F6);
    color: white;
}

.sector-healthcare .highlight-item i {
    color: #06B6D4;
    background: linear-gradient(135deg, rgba(6, 182, 212, 0.1), rgba(16, 185, 129, 0.1));
}

.sector-healthcare .highlight-item:hover i {
    background: linear-gradient(135deg, #06B6D4, #10B981);
    color: white;
}

/* Staggered animation for highlight items */
.sector-highlights .highlight-item {
    opacity: 0;
    transform: translateX(-20px);
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.sector-content.animated .sector-highlights .highlight-item {
    opacity: 1;
    transform: translateX(0);
}

.sector-content.animated .sector-highlights .col-6:nth-child(1) .highlight-item { transition-delay: 0.1s; }
.sector-content.animated .sector-highlights .col-6:nth-child(2) .highlight-item { transition-delay: 0.2s; }
.sector-content.animated .sector-highlights .col-6:nth-child(3) .highlight-item { transition-delay: 0.3s; }
.sector-content.animated .sector-highlights .col-6:nth-child(4) .highlight-item { transition-delay: 0.4s; }

/* RTL support for highlights */
html[dir="rtl"] .sector-highlights .highlight-item {
    transform: translateX(20px);
}

html[dir="rtl"] .sector-content.animated .sector-highlights .highlight-item {
    transform: translateX(0);
}

/* Reduced motion preference for sector animations */
@media (prefers-reduced-motion: reduce) {
    .sector-particle,
    .floating-icon {
        animation: none;
    }

    .ai-solution-tag::before {
        display: none;
    }

    .btn-sector::before {
        display: none;
    }

    .highlight-item::before {
        display: none;
    }

    .sector-highlights .highlight-item {
        opacity: 1;
        transform: none;
        transition: none;
    }
}

/* ============================================
   PRODUCT SHOWCASE - Animated Collection
   Uses Sygma brand colors: Purple (#4000A5), Cyan (#00C2FF), Teal (#2DD4BF)
   ============================================ */

.product-showcase {
    position: relative;
    width: 100%;
    min-height: 450px;
    display: flex;
    align-items: center;
    justify-content: center;
    perspective: 1200px;
}

.product-showcase-wrapper {
    position: relative;
    width: 100%;
    max-width: 550px;
    aspect-ratio: 4/3;
}

/* Main product card - large centered */
.product-card {
    position: absolute;
    border-radius: 16px;
    overflow: hidden;
    background: #fff;
    box-shadow: 0 20px 60px rgba(64, 0, 165, 0.15);
    opacity: 0;
    transform-style: preserve-3d;
    transition: all 0.8s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.product-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.product-card:hover img {
    transform: scale(1.05);
}

/* Card positions and animations */
.product-card.card-main {
    width: 75%;
    height: 85%;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) translateZ(0) rotateY(-25deg) scale(0.5);
    z-index: 3;
    --delay: 0s;
}

.product-card.card-left {
    width: 45%;
    height: 55%;
    top: 15%;
    left: -5%;
    transform: translateX(-100px) translateZ(-100px) rotateY(15deg) scale(0.6);
    z-index: 2;
    --delay: 0.1s;
}

.product-card.card-right {
    width: 45%;
    height: 55%;
    bottom: 10%;
    right: -5%;
    transform: translateX(100px) translateZ(-100px) rotateY(-15deg) scale(0.6);
    z-index: 2;
    --delay: 0.15s;
}

.product-card.card-back-left {
    width: 35%;
    height: 45%;
    top: 5%;
    left: 10%;
    transform: translateY(-50px) translateZ(-200px) rotateY(20deg) scale(0.5);
    z-index: 1;
    --delay: 0.2s;
}

.product-card.card-back-right {
    width: 35%;
    height: 45%;
    bottom: 5%;
    right: 10%;
    transform: translateY(50px) translateZ(-200px) rotateY(-20deg) scale(0.5);
    z-index: 1;
    --delay: 0.25s;
}

.product-card.card-floating {
    width: 25%;
    height: 30%;
    top: -5%;
    right: 20%;
    transform: translateY(-30px) translateZ(-150px) rotate(10deg) scale(0.4);
    z-index: 4;
    --delay: 0.3s;
}

/* Assembled state - cards animate into elegant positions */
.product-showcase.assembled .product-card {
    opacity: 1;
    transition-delay: var(--delay);
}

.product-showcase.assembled .product-card.card-main {
    transform: translate(-50%, -50%) translateZ(0) rotateY(0deg) scale(1);
}

.product-showcase.assembled .product-card.card-left {
    transform: translateX(0) translateZ(-50px) rotateY(8deg) scale(1);
}

.product-showcase.assembled .product-card.card-right {
    transform: translateX(0) translateZ(-50px) rotateY(-8deg) scale(1);
}

.product-showcase.assembled .product-card.card-back-left {
    transform: translateY(0) translateZ(-100px) rotateY(12deg) scale(1);
}

.product-showcase.assembled .product-card.card-back-right {
    transform: translateY(0) translateZ(-100px) rotateY(-12deg) scale(1);
}

.product-showcase.assembled .product-card.card-floating {
    transform: translateY(0) translateZ(-75px) rotate(5deg) scale(1);
    animation: floatCard 4s ease-in-out infinite;
}

@keyframes floatCard {
    0%, 100% { transform: translateY(0) translateZ(-75px) rotate(5deg) scale(1); }
    50% { transform: translateY(-15px) translateZ(-75px) rotate(7deg) scale(1.02); }
}

/* Hover effects */
.product-showcase.assembled .product-card:hover {
    z-index: 10;
    box-shadow: 0 30px 80px rgba(64, 0, 165, 0.25);
}

.product-showcase.assembled .product-card.card-main:hover {
    transform: translate(-50%, -50%) translateZ(30px) scale(1.05);
}

/* Product label badge */
.product-card .product-label {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 12px 16px;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.8), transparent);
    color: #fff;
    font-size: 0.85rem;
    font-weight: 600;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.4s ease 0.5s;
}

.product-showcase.assembled .product-card .product-label {
    opacity: 1;
    transform: translateY(0);
}

.product-card .product-label i {
    margin-right: 8px;
    color: var(--cyan-color, #00C2FF);
}

html[dir="rtl"] .product-card .product-label i {
    margin-right: 0;
    margin-left: 8px;
}

/* Glow effect on cards */
.product-card::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(64, 0, 165, 0), rgba(0, 194, 255, 0));
    opacity: 0;
    transition: opacity 0.4s ease;
    pointer-events: none;
    border-radius: inherit;
}

.product-showcase.assembled .product-card:hover::after {
    opacity: 1;
    background: linear-gradient(135deg, rgba(64, 0, 165, 0.1), rgba(0, 194, 255, 0.15));
}

/* Decorative elements */
.product-showcase::before {
    content: '';
    position: absolute;
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(64, 0, 165, 0.1) 0%, transparent 70%);
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 0;
    pointer-events: none;
}

/* Responsive product showcase */
@media (max-width: 992px) {
    .product-showcase {
        min-height: 380px;
    }

    .product-showcase-wrapper {
        max-width: 450px;
    }

    .product-card {
        border-radius: 12px;
    }

    .product-card.card-floating {
        display: none;
    }
}

@media (max-width: 768px) {
    .product-showcase {
        min-height: 320px;
    }

    .product-showcase-wrapper {
        max-width: 100%;
    }

    .product-card.card-main {
        width: 85%;
        height: 80%;
    }

    .product-card.card-left,
    .product-card.card-right {
        width: 40%;
        height: 45%;
    }

    .product-card.card-back-left,
    .product-card.card-back-right {
        display: none;
    }

    .product-card .product-label {
        font-size: 0.75rem;
        padding: 8px 12px;
    }
}

@media (max-width: 576px) {
    .product-showcase {
        min-height: 280px;
    }

    .product-card.card-left,
    .product-card.card-right {
        width: 35%;
        height: 40%;
        opacity: 0.8;
    }
}

