/**
 * Homepage Specific Styles
 * All inline styles from index.php consolidated here
 * For better organization and caching
 */

/* ==========================================
   GLOBAL GRID CANVAS
   ========================================== */
#globalGridCanvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
}

/* ==========================================
   TRANSPARENT SECTIONS - SHOW GRID
   ========================================== */
.section,
.section-light,
.section-alt,
.section-clients,
.section-stats,
.spiral-scroll,
.cta-section {
    background: transparent !important;
}

/* ==========================================
   GLASS EFFECT CARDS
   ========================================== */
.spiral-card__content,
.stat-item,
.client-logo-card,
.testimonial-card,
.value-card,
.service-card {
    background: rgba(255, 255, 255, 0.85) !important;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

[data-theme="dark"] .spiral-card__content,
[data-theme="dark"] .stat-item,
[data-theme="dark"] .client-logo-card,
[data-theme="dark"] .testimonial-card,
[data-theme="dark"] .value-card,
[data-theme="dark"] .service-card {
    background: rgba(30, 41, 59, 0.85) !important;
}

/* ==========================================
   BODY BACKGROUND GRADIENTS
   ========================================== */
body {
    background: 
        radial-gradient(ellipse at 20% 0%, rgba(43, 161, 216, 0.08) 0%, transparent 50%),
        radial-gradient(ellipse at 80% 100%, rgba(43, 161, 216, 0.06) 0%, transparent 50%),
        radial-gradient(ellipse at 60% 50%, rgba(59, 179, 227, 0.04) 0%, transparent 40%),
        linear-gradient(180deg, #f0f7fc 0%, #f8fafc 30%, #ffffff 70%, #f5f9fd 100%) !important;
}

[data-theme="dark"] body {
    background: 
        radial-gradient(ellipse at 20% 0%, rgba(43, 161, 216, 0.1) 0%, transparent 50%),
        radial-gradient(ellipse at 80% 100%, rgba(43, 161, 216, 0.08) 0%, transparent 50%),
        linear-gradient(180deg, #0a1628 0%, #0f172a 50%, #111827 100%) !important;
}

/* ==========================================
   VIDEO PRELOADER
   ========================================== */
.video-preloader {
    position: fixed;
    inset: 0;
    z-index: 99999;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #0a0a0f;
    transition: opacity 0.8s ease, visibility 0.8s ease;
}

.video-preloader.loaded {
    opacity: 0;
    visibility: hidden;
}

.preloader-circle {
    width: min(280px, 70vw);
    height: min(280px, 70vw);
    border-radius: 50%;
    overflow: hidden;
    box-shadow: 0 0 60px rgba(43, 161, 216, 0.4), 0 0 100px rgba(43, 161, 216, 0.2);
    border: 2px solid rgba(43, 161, 216, 0.3);
}

.preloader-circle video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* ==========================================
   HERO SECTION - MAIN CONTAINER
   ========================================== */
.hero-section {
    position: relative;
    width: 100%;
    height: 100vh;
    min-height: 600px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

/* ==========================================
   VIDEO BACKGROUND
   ========================================== */
.hero-video-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    opacity: 1 !important;
}

.hero-video-bg video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(180deg, rgba(0,0,0,0.3) 0%, rgba(0,0,0,0.5) 50%, rgba(0,0,0,0.6) 100%);
    z-index: 1;
}

/* ==========================================
   HERO CONTENT - CENTERED
   ========================================== */
.hero-content-wrapper {
    position: relative;
    z-index: 2;
    width: 100%;
    max-width: 1200px;
    padding: 0 2rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-content-inner {
    text-align: center;
    max-width: 950px;
}

/* ==========================================
   HEADLINE - Large, Bold Typography
   ========================================== */
.hero-headline {
    font-size: clamp(2.8rem, 7vw, 5.5rem);
    font-weight: 800;
    line-height: 1.05;
    letter-spacing: -0.03em;
    color: #ffffff;
    margin: 0 0 2rem 0;
    opacity: 1;
}

.hero-headline .word {
    display: inline-block;
    opacity: 1;
    transform: translateY(0);
    margin-right: 0.25em;
}

[dir="rtl"] .hero-headline .word {
    margin-right: 0;
    margin-left: 0.25em;
}

/* ==========================================
   SUBHEADLINE
   ========================================== */
.hero-subheadline {
    font-size: clamp(1.1rem, 2.2vw, 1.5rem);
    font-weight: 400;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.8);
    margin: 0 0 3.5rem 0;
    max-width: 680px;
    margin-left: auto;
    margin-right: auto;
    letter-spacing: 0.01em;
    text-align: center;
    opacity: 1;
}

/* ==========================================
   CTA BUTTONS
   ========================================== */
.hero-cta {
    display: flex;
    gap: 1.25rem;
    justify-content: center;
    flex-wrap: wrap;
    opacity: 1;
}

.hero-btn {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 1.1rem 2.5rem;
    font-size: 1rem;
    font-weight: 600;
    text-decoration: none;
    border-radius: 4px;
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1), background-color 0.3s ease, box-shadow 0.3s ease;
    cursor: pointer;
    overflow: hidden;
}

.hero-btn-primary {
    background: #ffffff;
    color: #0a0a0a;
    border: none;
}

.hero-btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(255, 255, 255, 0.15);
}

.hero-btn-secondary {
    background: transparent;
    color: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.35);
}

.hero-btn-secondary:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.5);
    transform: translateY(-2px);
}

/* ==========================================
   SCROLL INDICATOR
   ========================================== */
.hero-scroll-indicator {
    position: absolute;
    bottom: 2.5rem;
    left: 50%;
    transform: translateX(-50%);
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
    opacity: 1;
}

.scroll-mouse {
    width: 26px;
    height: 42px;
    border: 2px solid rgba(255, 255, 255, 0.4);
    border-radius: 14px;
    position: relative;
}

.scroll-dot {
    position: absolute;
    top: 8px;
    left: 50%;
    transform: translateX(-50%);
    width: 4px;
    height: 8px;
    background: rgba(255, 255, 255, 0.8);
    border-radius: 2px;
    animation: scrollDot 2.8s ease-in-out infinite;
}

@keyframes scrollDot {
    0%, 100% { opacity: 0.9; transform: translateX(-50%) translateY(0); }
    50% { opacity: 0.3; transform: translateX(-50%) translateY(8px); }
}

.scroll-text {
    font-size: 0.75rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: rgba(255, 255, 255, 0.5);
}

/* ==========================================
   HERO RESPONSIVE - TABLET
   ========================================== */
@media (max-width: 1024px) {
    .hero-content-wrapper { padding: 0 1.5rem; }
    .hero-headline { font-size: clamp(2.2rem, 6vw, 3.5rem); margin-bottom: 1.5rem; }
    .hero-subheadline { font-size: 1.1rem; margin-bottom: 2.5rem; }
}

/* ==========================================
   HERO RESPONSIVE - MOBILE
   ========================================== */
@media (max-width: 768px) {
    .hero-section { min-height: 100vh; min-height: 100svh; }
    .hero-content-wrapper { padding: 0 1.25rem; }
    .hero-headline { font-size: clamp(2rem, 8vw, 2.8rem); margin-bottom: 1.25rem; line-height: 1.15; }
    .hero-subheadline { font-size: 1rem; margin-bottom: 2rem; line-height: 1.7; }
    .hero-cta { flex-direction: column; gap: 1rem; width: 100%; max-width: 320px; margin: 0 auto; }
    .hero-btn { width: 100%; padding: 1rem 2rem; }
    .hero-scroll-indicator { bottom: 1.5rem; }
    .scroll-mouse { width: 22px; height: 36px; }
}

/* ==========================================
   HERO DARK MODE
   ========================================== */
[data-theme="dark"] .hero-overlay {
    background: linear-gradient(180deg, rgba(0,0,0,0.4) 0%, rgba(0,0,0,0.6) 50%, rgba(0,0,0,0.7) 100%);
}

[data-theme="dark"] .hero-btn-primary {
    background: #ffffff;
    color: #0a0a0a;
}

@keyframes textReveal {
    0% {
        opacity: 0;
        transform: translateY(40px);
        filter: blur(10px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
        filter: blur(0);
    }
}

@keyframes textRevealFallback {
    0% {
        opacity: 0;
        transform: translateY(40px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ==========================================
   BLUE LIGHT BEAM EFFECT
   ========================================== */
.hero-light-beam {
    position: absolute;
    top: 0;
    left: -100%;
    width: 150%;
    height: 100%;
    background: linear-gradient(
        90deg,
        transparent 0%,
        transparent 35%,
        rgba(43, 161, 216, 0.03) 40%,
        rgba(43, 161, 216, 0.08) 45%,
        rgba(43, 161, 216, 0.15) 48%,
        rgba(59, 179, 227, 0.25) 50%,
        rgba(43, 161, 216, 0.15) 52%,
        rgba(43, 161, 216, 0.08) 55%,
        rgba(43, 161, 216, 0.03) 60%,
        transparent 65%,
        transparent 100%
    );
    pointer-events: none;
    z-index: 3;
    animation: lightBeamSweep 4s ease-in-out forwards;
    animation-delay: 0.5s;
    opacity: 0;
}

@keyframes lightBeamSweep {
    0% { left: -100%; opacity: 0; }
    10% { opacity: 1; }
    90% { opacity: 1; }
    100% { left: 100%; opacity: 0; }
}

[dir="rtl"] .hero-light-beam {
    left: auto;
    right: -100%;
    animation: lightBeamSweepRTL 4s ease-in-out forwards;
    animation-delay: 0.5s;
}

@keyframes lightBeamSweepRTL {
    0% { right: -100%; opacity: 0; }
    10% { opacity: 1; }
    90% { opacity: 1; }
    100% { right: 100%; opacity: 0; }
}

/* ==========================================
   FLOATING PARTICLES
   ========================================== */
.hero-particles {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 2;
    overflow: hidden;
}

.hero-particles span {
    position: absolute;
    width: 4px;
    height: 4px;
    background: rgba(43, 161, 216, 0.6);
    border-radius: 50%;
    box-shadow: 0 0 10px rgba(43, 161, 216, 0.8), 0 0 20px rgba(43, 161, 216, 0.4);
    animation: particleFloat 8s ease-in-out infinite;
}

.hero-particles span:nth-child(1) { left: 10%; top: 20%; animation-delay: 0s; animation-duration: 7s; }
.hero-particles span:nth-child(2) { left: 20%; top: 80%; animation-delay: 1s; animation-duration: 9s; }
.hero-particles span:nth-child(3) { left: 30%; top: 40%; animation-delay: 2s; animation-duration: 6s; }
.hero-particles span:nth-child(4) { left: 40%; top: 60%; animation-delay: 0.5s; animation-duration: 8s; }
.hero-particles span:nth-child(5) { left: 50%; top: 30%; animation-delay: 1.5s; animation-duration: 10s; }
.hero-particles span:nth-child(6) { left: 60%; top: 70%; animation-delay: 2.5s; animation-duration: 7s; }
.hero-particles span:nth-child(7) { left: 70%; top: 25%; animation-delay: 0.8s; animation-duration: 9s; }
.hero-particles span:nth-child(8) { left: 80%; top: 50%; animation-delay: 1.8s; animation-duration: 6s; }
.hero-particles span:nth-child(9) { left: 85%; top: 85%; animation-delay: 3s; animation-duration: 8s; }
.hero-particles span:nth-child(10) { left: 15%; top: 55%; animation-delay: 0.3s; animation-duration: 11s; }
.hero-particles span:nth-child(11) { left: 25%; top: 15%; animation-delay: 2.2s; animation-duration: 7s; }
.hero-particles span:nth-child(12) { left: 45%; top: 90%; animation-delay: 1.2s; animation-duration: 9s; }
.hero-particles span:nth-child(13) { left: 55%; top: 10%; animation-delay: 0.7s; animation-duration: 8s; }
.hero-particles span:nth-child(14) { left: 75%; top: 75%; animation-delay: 2.8s; animation-duration: 6s; }
.hero-particles span:nth-child(15) { left: 90%; top: 35%; animation-delay: 1.6s; animation-duration: 10s; }

@keyframes particleFloat {
    0%, 100% { transform: translateY(0) translateX(0) scale(1); opacity: 0.3; }
    25% { transform: translateY(-30px) translateX(10px) scale(1.2); opacity: 0.8; }
    50% { transform: translateY(-15px) translateX(-15px) scale(0.8); opacity: 0.5; }
    75% { transform: translateY(-40px) translateX(5px) scale(1.1); opacity: 0.9; }
}

@media (max-width: 768px) {
    .hero-particles span { width: 3px; height: 3px; }
}

/* ==========================================
   FLOATING WORLD (A+ LOGO ANIMATION)
   ========================================== */
.floating-world {
    position: absolute;
    top: 50%;
    right: 8%;
    transform: translateY(-50%);
    width: 320px;
    height: 320px;
    pointer-events: none;
    z-index: 2;
}

.floating-shape {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.floating-shape--main {
    width: 260px;
    height: 260px;
    animation: floatRotate 20s ease-in-out infinite;
}

.floating-shape--main svg {
    width: 100%;
    height: 100%;
    filter: drop-shadow(0 0 40px rgba(43,161,216,0.4));
}

.floating-shape--ring {
    width: 300px;
    height: 300px;
    animation: floatRing 25s linear infinite;
}

.floating-shape--ring svg {
    width: 100%;
    height: 100%;
}

.floating-shape--dots {
    width: 100%;
    height: 100%;
}

.floating-shape--dots span {
    position: absolute;
    width: 5px;
    height: 5px;
    background: var(--primary-color);
    border-radius: 50%;
    animation: pulseDot 3s ease-in-out infinite;
}

.floating-shape--dots span:nth-child(1) { top: 8%; left: 50%; animation-delay: 0s; }
.floating-shape--dots span:nth-child(2) { top: 28%; left: 88%; animation-delay: 0.6s; }
.floating-shape--dots span:nth-child(3) { top: 72%; left: 92%; animation-delay: 1.2s; }
.floating-shape--dots span:nth-child(4) { top: 88%; left: 35%; animation-delay: 1.8s; }
.floating-shape--dots span:nth-child(5) { top: 35%; left: 8%; animation-delay: 2.4s; }

@keyframes floatRotate {
    0%, 100% { transform: translate(-50%,-50%) rotate(0deg) scale(1); }
    25% { transform: translate(-50%,-52%) rotate(8deg) scale(1.03); }
    50% { transform: translate(-50%,-48%) rotate(0deg) scale(1); }
    75% { transform: translate(-50%,-50%) rotate(-8deg) scale(0.97); }
}

@keyframes floatRing {
    from { transform: translate(-50%,-50%) rotate(0deg); }
    to { transform: translate(-50%,-50%) rotate(-360deg); }
}

@keyframes pulseDot {
    0%, 100% { opacity: 0.3; transform: scale(1); }
    50% { opacity: 1; transform: scale(1.8); }
}

[dir="rtl"] .floating-world {
    right: auto;
    left: 8%;
}

@media (max-width: 1100px) {
    .floating-world { width: 250px; height: 250px; right: 5%; }
    .floating-shape--main { width: 200px; height: 200px; }
    .floating-shape--ring { width: 240px; height: 240px; }
}

@media (max-width: 768px) {
    .floating-world { display: none; }
}

/* Hero word hover effect */
.hero-headline .word:hover {
    color: #2BA1D8 !important;
    text-shadow: 0 0 20px rgba(43, 161, 216, 0.8), 0 0 40px rgba(43, 161, 216, 0.5), 0 0 60px rgba(43, 161, 216, 0.3);
}

[dir="rtl"] .hero-headline {
    font-family: 'Cairo', 'Tajawal', sans-serif !important;
    letter-spacing: 0 !important;
}

/* ==========================================
   SPIRAL SCROLL SECTION
   ========================================== */
.spiral-scroll {
    position: relative;
    height: 300vh;
}

.spiral-scroll__container {
    position: sticky;
    top: 0;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1;
    overflow: hidden;
    padding: 2rem;
}

.spiral-scroll__cards {
    position: relative;
    width: 100%;
    max-width: 700px;
    height: 500px;
    margin: 0 auto;
}

.spiral-card {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    opacity: 0;
    transform: scale(0.95) translateY(30px);
    transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
    pointer-events: none;
}

.spiral-card.is-active {
    opacity: 1;
    transform: scale(1) translateY(0);
    pointer-events: auto;
    z-index: 10;
}

.spiral-card.is-prev {
    opacity: 0;
    transform: scale(0.9) translateY(-30px);
    z-index: 5;
}

.spiral-card__inner {
    position: relative;
    width: 100%;
    height: 100%;
}

.spiral-card__image {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 75%;
    height: 70%;
    border-radius: 20px;
    overflow: hidden;
    transform: rotate(-8deg) translateX(-80px);
    opacity: 0;
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.25);
    z-index: 1;
    transition: transform 0.9s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.7s ease;
}

.spiral-card.is-active .spiral-card__image {
    transform: rotate(-8deg) translateX(0) scale(1.02);
    opacity: 1;
}

.spiral-card__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.spiral-card__content {
    position: absolute;
    top: 0;
    right: 0;
    width: 55%;
    background: var(--bg-primary);
    border-radius: 20px;
    padding: 2.5rem;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.15);
    border: 1px solid var(--border-color);
    z-index: 2;
    transform: rotate(3deg) translateX(80px);
    opacity: 0;
    transition: transform 0.9s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.7s ease, box-shadow 0.8s ease;
}

.spiral-card.is-active .spiral-card__content {
    transform: rotate(3deg) translateX(0) translateY(-5px);
    opacity: 1;
    box-shadow: 0 35px 70px rgba(0, 0, 0, 0.2);
}

.spiral-card__num {
    display: inline-block;
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 1rem;
    letter-spacing: 0.1em;
}

.spiral-card__title {
    font-size: clamp(1.5rem, 2.5vw, 2rem);
    font-weight: 700;
    color: var(--text-primary);
    margin: 0 0 1rem 0;
    line-height: 1.3;
}

.spiral-card__text {
    font-size: 1rem;
    line-height: 1.7;
    color: var(--text-secondary);
    margin: 0;
}

[dir="rtl"] .spiral-card__image {
    left: auto;
    right: 0;
    transform: rotate(8deg) translateX(80px);
    opacity: 0;
}

[dir="rtl"] .spiral-card.is-active .spiral-card__image {
    transform: rotate(8deg) translateX(0) scale(1.02);
    opacity: 1;
}

[dir="rtl"] .spiral-card__content {
    right: auto;
    left: 0;
    transform: rotate(-3deg) translateX(-80px);
    opacity: 0;
}

[dir="rtl"] .spiral-card.is-active .spiral-card__content {
    transform: rotate(-3deg) translateX(0) translateY(-5px);
    opacity: 1;
}

[data-theme="dark"] .spiral-card__content {
    background: #1e293bcc;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.4);
}

[data-theme="dark"] .spiral-card.is-active .spiral-card__content {
    box-shadow: 0 35px 70px rgba(0, 0, 0, 0.5);
}

[data-theme="dark"] .spiral-card__image {
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.5);
}

@media (max-width: 900px) {
    .spiral-scroll {
        height: auto;
        padding: 4rem 1rem;
    }
    
    .spiral-scroll__container {
        position: relative;
        height: auto;
        padding: 0;
    }
    
    .spiral-scroll__cards {
        display: flex;
        flex-direction: column;
        gap: 3rem;
        height: auto;
        max-width: 100%;
    }
    
    .spiral-card {
        position: relative;
        opacity: 1;
        transform: none;
        pointer-events: auto;
    }
    
    .spiral-card.is-prev {
        opacity: 1;
        transform: none;
    }
    
    .spiral-card__inner {
        display: flex;
        flex-direction: column;
        background: var(--bg-primary);
        border-radius: 20px;
        overflow: hidden;
        box-shadow: 0 15px 40px rgba(0, 0, 0, 0.1);
        border: 1px solid var(--border-color);
    }
    
    .spiral-card__image {
        position: relative;
        width: 100%;
        height: 200px;
        transform: none;
        opacity: 1;
        border-radius: 0;
        box-shadow: none;
    }
    
    .spiral-card.is-active .spiral-card__image {
        transform: none;
        opacity: 1;
    }
    
    .spiral-card__content {
        position: relative;
        width: 100%;
        transform: none;
        opacity: 1;
        border-radius: 0;
        box-shadow: none;
        border: none;
        padding: 1.5rem;
    }
    
    .spiral-card.is-active .spiral-card__content {
        transform: none;
        opacity: 1;
        box-shadow: none;
    }
    
    [dir="rtl"] .spiral-card__image,
    [dir="rtl"] .spiral-card.is-active .spiral-card__image {
        transform: none;
    }
    
    [dir="rtl"] .spiral-card__content,
    [dir="rtl"] .spiral-card.is-active .spiral-card__content {
        transform: none;
    }
}

/* ==========================================
   STATS SCROLL SECTION
   ========================================== */
.stats-scroll {
    height: 300vh;
    position: relative;
}

.stats-scroll__container {
    position: sticky;
    top: 0;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.stats-scroll__cards {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.stats-card {
    position: absolute;
    width: 280px;
    height: 280px;
    transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    opacity: 0.3;
    filter: blur(8px);
    transform: scale(0.7);
    pointer-events: none;
}

.stats-card.is-prev {
    transform: translateX(-350px) scale(0.7);
    opacity: 0.4;
    filter: blur(6px);
}

.stats-card.is-next {
    transform: translateX(350px) scale(0.7);
    opacity: 0.4;
    filter: blur(6px);
}

.stats-card.is-active {
    opacity: 1;
    filter: blur(0);
    transform: scale(1) translateX(0);
    pointer-events: auto;
    z-index: 10;
}

.stats-card.is-far-prev {
    transform: translateX(-500px) scale(0.5);
    opacity: 0.2;
    filter: blur(12px);
}

.stats-card.is-far-next {
    transform: translateX(500px) scale(0.5);
    opacity: 0.2;
    filter: blur(12px);
}

[dir="rtl"] .stats-card.is-prev {
    transform: translateX(350px) scale(0.7);
}

[dir="rtl"] .stats-card.is-next {
    transform: translateX(-350px) scale(0.7);
}

[dir="rtl"] .stats-card.is-far-prev {
    transform: translateX(500px) scale(0.5);
}

[dir="rtl"] .stats-card.is-far-next {
    transform: translateX(-500px) scale(0.5);
}

.stats-card__inner {
    width: 100%;
    height: 100%;
    background: rgba(30, 41, 59, 0.95);
    border-radius: 24px;
    padding: 2.5rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
}

[data-theme="light"] .stats-card__inner,
:root:not([data-theme="dark"]) .stats-card__inner {
    background: rgba(255, 255, 255, 0.95);
    border: 1px solid rgba(0, 0, 0, 0.1);
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.15);
}

.stats-card__icon {
    width: 72px;
    height: 72px;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.stats-card__icon svg {
    width: 100%;
    height: 100%;
    filter: drop-shadow(0 4px 12px rgba(43, 161, 216, 0.3));
}

.stats-card__number {
    font-size: 3.5rem;
    font-weight: 800;
    background: linear-gradient(135deg, #2BA1D8, #3bb3e3);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1;
    margin-bottom: 0.75rem;
}

.stats-card__label {
    font-size: 1.1rem;
    font-weight: 500;
    color: var(--text-secondary);
}

@media (max-width: 768px) {
    .stats-scroll {
        height: auto;
        padding: 3rem 1rem;
    }
    
    .stats-scroll__container {
        position: relative;
        height: auto;
    }
    
    .stats-scroll__cards {
        display: flex;
        flex-direction: column;
        gap: 1.5rem;
    }
    
    .stats-card {
        position: relative;
        width: 100%;
        max-width: 280px;
        height: auto;
        opacity: 1;
        filter: none;
        transform: none;
        pointer-events: auto;
    }
    
    .stats-card.is-prev,
    .stats-card.is-next,
    .stats-card.is-far-prev,
    .stats-card.is-far-next {
        transform: none;
        opacity: 1;
        filter: none;
    }
    
    .stats-card__inner {
        padding: 2rem;
    }
}

/* ==========================================
   STAT ITEM HOVER
   ========================================== */
.stat-item:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.1);
    border-color: var(--primary-color);
}

.stat-icon {
    animation: bounce 2s ease-in-out infinite;
}

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

.stat-item:nth-child(1) .stat-icon { animation-delay: 0s; }
.stat-item:nth-child(2) .stat-icon { animation-delay: 0.2s; }
.stat-item:nth-child(3) .stat-icon { animation-delay: 0.4s; }
.stat-item:nth-child(4) .stat-icon { animation-delay: 0.6s; }

/* ==========================================
   CLIENTS SCROLL SECTION
   ========================================== */
.clients-scroll {
    height: 350vh;
    position: relative;
}

.clients-scroll__container {
    position: sticky;
    top: 0;
    height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background: radial-gradient(circle at 20% 50%, rgba(43, 161, 216, 0.05) 0%, transparent 50%), 
                radial-gradient(circle at 80% 50%, rgba(249, 115, 22, 0.05) 0%, transparent 50%);
}

.clients-scroll__header {
    text-align: center;
    margin-bottom: 2rem;
    z-index: 5;
}

.clients-scroll__header h2 {
    font-size: 1.75rem;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}

.clients-scroll__header h2 span {
    color: #2BA1D8;
}

.clients-scroll__header p {
    color: var(--text-muted);
    font-size: 1rem;
}

.clients-scroll__cards {
    position: relative;
    width: 100%;
    height: 320px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.client-card {
    position: absolute;
    width: 300px;
    height: 280px;
    transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    opacity: 0;
    filter: blur(8px);
    transform: scale(0.7);
    pointer-events: none;
    visibility: hidden;
}

.client-card.is-prev {
    transform: translateX(-380px) scale(0.75);
    opacity: 0.5;
    filter: blur(4px);
    visibility: visible;
}

.client-card.is-next {
    transform: translateX(380px) scale(0.75);
    opacity: 0.5;
    filter: blur(4px);
    visibility: visible;
}

.client-card.is-active {
    opacity: 1;
    filter: blur(0);
    transform: scale(1) translateX(0);
    pointer-events: auto;
    z-index: 10;
    visibility: visible;
}

.client-card.is-far-prev {
    transform: translateX(-550px) scale(0.6);
    opacity: 0;
    filter: blur(10px);
    visibility: hidden;
}

.client-card.is-far-next {
    transform: translateX(550px) scale(0.6);
    opacity: 0;
    filter: blur(10px);
    visibility: hidden;
}

[dir="rtl"] .client-card.is-prev { transform: translateX(380px) scale(0.75); }
[dir="rtl"] .client-card.is-next { transform: translateX(-380px) scale(0.75); }
[dir="rtl"] .client-card.is-far-prev { transform: translateX(550px) scale(0.6); }
[dir="rtl"] .client-card.is-far-next { transform: translateX(-550px) scale(0.6); }

.client-card__inner {
    width: 100%;
    height: 100%;
    background: rgba(30, 41, 59, 0.95);
    border-radius: 24px;
    padding: 2.5rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
}

[data-theme="light"] .client-card__inner,
:root:not([data-theme="dark"]) .client-card__inner {
    background: rgba(255, 255, 255, 0.95);
    border: 1px solid rgba(0, 0, 0, 0.1);
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.15);
}

.client-card__logo {
    max-width: 120px;
    max-height: 80px;
    object-fit: contain;
    margin-bottom: 1.5rem;
    filter: grayscale(0%);
    transition: all 0.3s;
    border-radius: 12px;
    padding: 0.5rem;
}

.client-card__logo:hover {
    box-shadow: 0 0 30px rgba(43, 161, 216, 0.6), 0 0 60px rgba(43, 161, 216, 0.3);
    background: rgba(43, 161, 216, 0.1);
}

.client-card__icon {
    font-size: 3.5rem;
    margin-bottom: 1rem;
    transition: all 0.3s;
    border-radius: 50%;
    padding: 0.5rem;
}

.client-card__icon:hover {
    box-shadow: 0 0 30px rgba(43, 161, 216, 0.6), 0 0 60px rgba(43, 161, 216, 0.3);
    background: rgba(43, 161, 216, 0.15);
    transform: scale(1.1);
}

.client-card__name {
    font-size: 1.5rem;
    font-weight: 800;
    background: linear-gradient(135deg, #2BA1D8, #3bb3e3);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 0.5rem;
}

.client-card__desc {
    font-size: 0.85rem;
    color: var(--text-secondary);
    line-height: 1.5;
    margin-bottom: 0.5rem;
}

.client-card__industry {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.75rem;
    color: #2BA1D8;
    background: rgba(43, 161, 216, 0.1);
    padding: 0.3rem 0.8rem;
    border-radius: 20px;
    margin-top: 0.5rem;
}

.client-card__industry i {
    font-size: 0.7rem;
}

.client-card__link {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.75rem;
    color: #fff;
    background: linear-gradient(135deg, #2BA1D8, #3bb3e3);
    padding: 0.4rem 1rem;
    border-radius: 20px;
    margin-top: 0.75rem;
    text-decoration: none;
    transition: all 0.3s;
}

.client-card__link:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(43, 161, 216, 0.3);
}

@media (max-width: 768px) {
    .clients-scroll {
        height: auto;
        padding: 3rem 1rem;
    }
    
    .clients-scroll__container {
        position: relative;
        height: auto;
    }
    
    .clients-scroll__cards {
        display: flex;
        flex-direction: column;
        gap: 1.5rem;
        height: auto;
    }
    
    .client-card {
        position: relative;
        width: 100%;
        max-width: 300px;
        height: auto;
        opacity: 1;
        filter: none;
        transform: none;
        pointer-events: auto;
    }
    
    .client-card.is-prev,
    .client-card.is-next,
    .client-card.is-far-prev,
    .client-card.is-far-next {
        transform: none;
        opacity: 1;
        filter: none;
    }
    
    .client-card__inner {
        padding: 2rem;
    }
}

/* ==========================================
   CLIENT MODAL
   ========================================== */
.client-card__click-hint {
    margin-top: 1rem;
    font-size: 0.8rem;
    color: var(--text-muted);
    opacity: 0.7;
    transition: opacity 0.3s;
}

.client-card:hover .client-card__click-hint {
    opacity: 1;
    color: #2BA1D8;
}

.client-modal {
    position: fixed;
    inset: 0;
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    visibility: hidden;
    opacity: 0;
    transition: all 0.3s ease;
}

.client-modal.active {
    visibility: visible;
    opacity: 1;
}

.client-modal__overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(5px);
}

.client-modal__content {
    position: relative;
    background: var(--bg-primary, #fff);
    border-radius: 24px;
    max-width: 500px;
    width: 90%;
    max-height: 80vh;
    overflow-y: auto;
    padding: 2.5rem;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.3);
    animation: modalSlideIn 0.3s ease;
}

@keyframes modalSlideIn {
    from { opacity: 0; transform: scale(0.9) translateY(20px); }
    to { opacity: 1; transform: scale(1) translateY(0); }
}

.client-modal__close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: none;
    background: var(--bg-secondary, #f1f5f9);
    color: var(--text-primary);
    font-size: 1.2rem;
    cursor: pointer;
    transition: all 0.3s;
}

[dir="rtl"] .client-modal__close { right: auto; left: 1rem; }

.client-modal__close:hover {
    background: #2BA1D8;
    color: #fff;
}

.client-modal__header {
    text-align: center;
    margin-bottom: 2rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid var(--border-color, #e2e8f0);
}

.client-modal__logo {
    width: 120px;
    height: 80px;
    margin: 0 auto 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.client-modal__logo img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.client-modal__logo .icon {
    font-size: 4rem;
}

.client-modal__name {
    font-size: 1.5rem;
    font-weight: 800;
    background: linear-gradient(135deg, #2BA1D8, #3bb3e3);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.client-modal__section {
    margin-bottom: 1.5rem;
}

.client-modal__section h4 {
    font-size: 0.9rem;
    font-weight: 700;
    color: #2BA1D8;
    margin-bottom: 0.5rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.client-modal__section p {
    color: var(--text-secondary);
    line-height: 1.8;
}

.client-modal__section .btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    background: linear-gradient(135deg, #2BA1D8, #3bb3e3);
    color: #fff;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s;
}

.client-modal__section .btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(43, 161, 216, 0.3);
}

/* ==========================================
   PORTFOLIO CARD HOVER
   ========================================== */
.portfolio-card:hover {
    transform: translateY(-10px);
    border-color: rgba(43, 161, 216, 0.3);
}

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

.portfolio-card:hover .portfolio-glow {
    opacity: 1;
}

/* ==========================================
   CTA SECTION
   ========================================== */
.cta-section .cta-btn:hover {
    transform: translateY(-3px);
}

.cta-section .cta-primary:hover {
    box-shadow: 0 15px 40px rgba(37, 99, 235, 0.4);
}

.cta-section .cta-secondary:hover {
    border-color: var(--primary-color);
    background: rgba(37, 99, 235, 0.05);
}

/* ==========================================
   RESPONSIVE STATS GRID
   ========================================== */
@media (max-width: 768px) {
    .stats-grid {
        grid-template-columns: repeat(2, 1fr) !important;
    }
}

/* ==========================================
   TYPING CURSOR
   ========================================== */
.typing-cursor {
    animation: blink 0.8s infinite;
    font-weight: 100;
    color: #2BA1D8 !important;
    -webkit-text-fill-color: #2BA1D8 !important;
}

@keyframes blink {
    0%, 50% { opacity: 1; }
    51%, 100% { opacity: 0; }
}

/* ==========================================
   KOTA-STYLE CARDS
   ========================================== */
.creative-card,
.glow-card,
.testimonial-card {
    position: relative;
    overflow: hidden;
    transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.creative-card::before,
.glow-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.7s ease;
}

.creative-card:hover::before,
.glow-card:hover::before {
    left: 100%;
}

.creative-card:hover,
.glow-card:hover {
    transform: translateY(-15px) scale(1.02);
    box-shadow: 0 30px 60px rgba(0,0,0,0.15);
}

.creative-card-image {
    transition: transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}

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

/* ==========================================
   STATS CARDS KOTA STYLE
   ========================================== */
.stat-item {
    position: relative;
    overflow: hidden;
}

.stat-item::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: var(--primary-gradient);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.stat-item:hover::after {
    transform: scaleX(1);
}

.stat-item:hover {
    transform: translateY(-10px);
    box-shadow: 0 25px 50px rgba(0,0,0,0.12);
}

.stat-item:hover .stat-number {
    transform: scale(1.1);
}

.stat-number {
    transition: transform 0.4s ease;
}

/* ==========================================
   SERVICE CARDS HOVER
   ========================================== */
.glow-card {
    position: relative;
}

.glow-card::after {
    content: '';
    position: absolute;
    inset: -2px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    border-radius: inherit;
    z-index: -1;
    opacity: 0;
    transition: opacity 0.4s ease;
}

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

/* ==========================================
   CLIENT LOGO CARDS
   ========================================== */
.client-logo-card {
    position: relative;
    overflow: hidden;
}

.client-logo-card::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: radial-gradient(circle, var(--primary-color) 0%, transparent 70%);
    opacity: 0.1;
    transform: translate(-50%, -50%);
    transition: all 0.5s ease;
    border-radius: 50%;
}

.client-logo-card:hover::before {
    width: 200%;
    height: 200%;
}

/* ==========================================
   TESTIMONIAL CARDS
   ========================================== */
.testimonial-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 30px 60px rgba(0,0,0,0.1);
}

/* ==========================================
   GALLERY ITEMS KOTA STYLE
   ========================================== */
.gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: 16px;
}

.gallery-item img {
    transition: transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}

.gallery-item:hover img {
    transform: scale(1.15);
}

.gallery-item::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.5), transparent);
    opacity: 0;
    transition: opacity 0.4s ease;
}

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

/* ==========================================
   FRAMEWORK STEPS ANIMATION
   ========================================== */
.framework-step {
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.framework-step:hover {
    transform: translateY(-8px);
}

.framework-step:hover .step-number {
    transform: scale(1.1);
    box-shadow: 0 15px 40px rgba(59, 130, 246, 0.4);
}

/* ==========================================
   BUTTONS SHINE EFFECT
   ========================================== */
.cta-btn {
    position: relative;
    overflow: hidden;
}

.cta-btn::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(45deg, transparent 30%, rgba(255,255,255,0.3) 50%, transparent 70%);
    transform: rotate(45deg) translateX(-100%);
    transition: transform 0.6s ease;
}

.cta-btn:hover::after {
    transform: rotate(45deg) translateX(100%);
}

/* ==========================================
   SECTION HEADERS ANIMATION
   ========================================== */
.section-header-pro h2,
.section-title {
    position: relative;
    display: inline-block;
}

.section-header-pro h2::after,
.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 4px;
    background: var(--primary-gradient);
    border-radius: 2px;
}
