/* ========================================
   CSS Variables & Base Styles
   ======================================== */
@import url("http://www.fontstatic.com/f=jooza");

:root {
    /* ========================================
       AI SaaS Color System - Professional
       Inspired by Stripe, Vercel, Linear
       ======================================== */

    /* Primary Colors - Intelligence & Control */
    --ai-primary: #6366F1;
    --ai-primary-light: #818CF8;
    --ai-primary-dark: #4F46E5;

    /* Secondary Colors - Precision & Trust */
    --ai-secondary: #8B5CF6;
    --ai-secondary-light: #A78BFA;
    --ai-secondary-dark: #7C3AED;

    /* Accent Colors - Energy & Focus */
    --ai-accent: #06B6D4;
    --ai-accent-glow: #22D3EE;

    /* Background System - Dark Mode First */
    --bg-primary: #0A0A0F;
    --bg-elevated: #141419;
    --bg-hover: #1C1C23;
    --bg-subtle: #0F0F14;

    /* Text Colors - Readability */
    --text-primary: #E4E4E7;
    --text-secondary: #A1A1AA;
    --text-tertiary: #71717A;

    /* Border & Dividers - Subtle */
    --border-subtle: #27272A;
    --border-medium: #3F3F46;
    --border-accent: #52525B;

    /* Glow Effects - Controlled */
    --glow-primary: rgba(99, 102, 241, 0.3);
    --glow-accent: rgba(6, 182, 212, 0.25);
    --glow-subtle: rgba(255, 255, 255, 0.05);

    /* Legacy Support (for compatibility) */
    --navy-blue: var(--ai-primary-dark);
    --coral-red: var(--ai-accent);
    --white: #ffffff;
    --off-white: #f8f9fa;
    --light-gray: #e9ecef;
    --gray: var(--text-secondary);
    --dark-gray: var(--text-tertiary);
    --black: var(--bg-primary);

    /* Gradients */
    --gradient-primary: linear-gradient(135deg, var(--ai-primary) 0%, var(--ai-secondary) 100%);
    --gradient-hero: linear-gradient(135deg, var(--bg-primary) 0%, var(--bg-elevated) 50%, var(--bg-subtle) 100%);
    --gradient-accent: linear-gradient(90deg, var(--ai-primary), var(--ai-secondary), var(--ai-accent));

    /* Typography */
    --font-family: 'Jooza', 'Tajawal', sans-serif;

    /* Shadows - Enhanced for dark mode */
    --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.3);
    --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.4);
    --shadow-lg: 0 8px 30px rgba(0, 0, 0, 0.5);
    --shadow-xl: 0 20px 40px rgba(0, 0, 0, 0.6);

    /* Border Radius */
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 20px;
    --radius-xl: 30px;
    --radius-pill: 50px;

    /* Transitions */
    --transition-fast: 0.2s ease;
    --transition-normal: 0.3s ease;
    --transition-slow: 0.5s ease;
}

/* Reset & Base */
*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-family);
    font-size: 16px;
    line-height: 1.7;
    color: var(--dark-gray);
    background-color: var(--white);
    overflow-x: hidden;
    cursor: none;
}

/* ========================================
   Custom Cursor - Professional Design
   ======================================== */

/* Main cursor dot */
.cursor-dot {
    position: fixed;
    top: 0;
    left: 0;
    width: 8px;
    height: 8px;
    background: var(--coral-red);
    border-radius: 50%;
    pointer-events: none;
    z-index: 10001;
    box-shadow:
        0 0 10px var(--coral-red),
        0 0 20px rgba(232, 91, 74, 0.5),
        0 0 30px rgba(232, 91, 74, 0.3);
    transition: transform 0.1s ease, background 0.2s ease, box-shadow 0.2s ease;
}

/* Cursor ring */
.cursor-ring {
    position: fixed;
    top: 0;
    left: 0;
    width: 35px;
    height: 35px;
    border: 2px solid var(--ai-accent);
    border-radius: 50%;
    pointer-events: none;
    z-index: 10000;
    opacity: 0.6;
    transition: transform 0.15s ease-out, opacity 0.2s ease, border-color 0.2s ease, width 0.2s ease, height 0.2s ease;
}

/* Hover state */
.cursor-dot.hover {
    transform: scale(1.5);
    background: var(--white);
    box-shadow:
        0 0 15px var(--white),
        0 0 30px rgba(255, 255, 255, 0.5);
}

.cursor-ring.hover {
    width: 50px;
    height: 50px;
    border-color: var(--white);
    opacity: 0.8;
}

/* Click/Active state */
.cursor-dot.active {
    transform: scale(0.5);
    background: var(--navy-blue);
}

.cursor-ring.active {
    width: 25px;
    height: 25px;
    opacity: 1;
    border-color: var(--ai-primary);
}

/* Hide on text inputs */
.cursor-dot.text,
.cursor-ring.text {
    opacity: 0;
}

@media (max-width: 768px) {
    body {
        cursor: auto;
    }

    .cursor-dot,
    .cursor-ring {
        display: none;
    }
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition-fast);
    cursor: none;
}

/* Hide default cursor on all interactive elements */
a,
button,
input,
textarea,
select,
.nav-link,
.blog-card,
.hero-btn,
.social-icon,
.dot,
.back-to-top {
    cursor: none !important;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

ul {
    list-style: none;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ========================================
   Header & Navigation
   ======================================== */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: transparent;
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    animation: slideDown 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

@keyframes slideDown {
    from {
        transform: translateY(-100%);
        opacity: 0;
    }

    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.header.scrolled {
    background: rgba(5, 5, 5, 0.95);
    backdrop-filter: blur(20px);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.3);
}

.header.hidden {
    transform: translateY(-100%);
}

.nav {
    display: flex;
    flex-direction: row-reverse;
    justify-content: space-between;
    align-items: center;
    padding: 20px 0;
}

.logo-img {
    height: 100px;
    width: auto;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.2));
}

.nav-menu {
    display: flex;
    flex-direction: row-reverse;
    gap: 10px;
    align-items: center;
}

.nav-link {
    color: var(--white);
    font-weight: 500;
    padding: 10px 20px;
    border-radius: var(--radius-pill);
    position: relative;
    transition: var(--transition-normal);
}

.nav-link:hover {
    background: rgba(255, 255, 255, 0.1);
}

.nav-link.active {
    background: rgba(255, 255, 255, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.3);
}



/* Dropdown */
.dropdown {
    position: relative;
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    right: 0;
    min-width: 220px;
    background: var(--white);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-lg);
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: var(--transition-normal);
    padding: 10px 0;
}

.dropdown:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-menu li a {
    display: block;
    padding: 12px 20px;
    color: var(--dark-gray);
    font-size: 14px;
}

.dropdown-menu li a:hover {
    background: var(--off-white);
    color: var(--coral-red);
}

/* Mobile Menu Button */
.mobile-menu-btn {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 5px;
}

.mobile-menu-btn span {
    display: block;
    width: 25px;
    height: 2px;
    background: var(--white);
    transition: var(--transition-normal);
}

/* ========================================
   Hero Section
   ======================================== */
.hero {
    min-height: 100vh;
    background: var(--gradient-hero);
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    position: relative;
    overflow: hidden;
    padding-top: 80px;
}

/* Hero background enhancement */
.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background:
        radial-gradient(circle at 20% 80%, rgba(232, 91, 74, 0.3) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(26, 26, 94, 0.5) 0%, transparent 50%),
        radial-gradient(circle at 50% 50%, rgba(255, 255, 255, 0.05) 0%, transparent 70%);
    pointer-events: none;
}

/* Animated background shapes */
.hero::after {
    content: '';
    position: absolute;
    width: 500px;
    height: 500px;
    border-radius: 50%;
    background: linear-gradient(45deg, rgba(232, 91, 74, 0.15), rgba(26, 26, 94, 0.1));
    top: -100px;
    right: -100px;
    animation: pulse-glow 8s ease-in-out infinite;
}

@keyframes pulse-glow {

    0%,
    100% {
        transform: scale(1);
        opacity: 0.5;
    }

    50% {
        transform: scale(1.1);
        opacity: 0.8;
    }
}

.hero-content {
    position: relative;
    z-index: 2;
    color: var(--white);
}

/* 3D Scroll Canvas */
.hero-3d-canvas {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    max-width: 600px;
    max-height: 600px;
    width: 100%;
    height: auto;
    z-index: 1;
    opacity: 0.7;
    mix-blend-mode: screen;
}

.hero-subtitle {
    font-size: 1.5rem;
    margin-bottom: 15px;
    opacity: 0.95;
    font-weight: 300;
    letter-spacing: 1px;
}

.hero-title {
    font-size: clamp(2.2rem, 5vw, 4rem);
    font-weight: 800;
    line-height: 1.4;
    margin-bottom: 25px;
    text-shadow: 0 4px 30px rgba(0, 0, 0, 0.3);
}

.hero-description {
    font-size: 1.3rem;
    margin-bottom: 45px;
    opacity: 0.9;
    font-weight: 500;
}

.hero-btn {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    background: var(--white);
    color: var(--navy-blue);
    padding: 18px 45px;
    border-radius: var(--radius-pill);
    font-weight: 700;
    font-size: 1.15rem;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.25);
    transition: var(--transition-normal);
    border: 2px solid transparent;
}

.hero-btn:hover {
    transform: translateY(-5px) scale(1.02);
    box-shadow: 0 15px 50px rgba(0, 0, 0, 0.35);
    border-color: var(--coral-red);
}

.hero-btn svg {
    color: var(--coral-red);
    animation: bounce 2s infinite;
}

@keyframes bounce {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(5px);
    }
}

/* Floating Decorations */
.hero-decorations {
    position: absolute;
    inset: 0;
    pointer-events: none;
    overflow: hidden;
}

.floating-icon {
    position: absolute;
    font-size: 2rem;
    opacity: 0.3;
    animation: float 6s ease-in-out infinite;
}

.icon-1 {
    top: 20%;
    right: 10%;
    animation-delay: 0s;
}

.icon-2 {
    top: 30%;
    left: 15%;
    animation-delay: 1s;
}

.icon-3 {
    bottom: 30%;
    right: 20%;
    animation-delay: 2s;
}

.icon-4 {
    bottom: 25%;
    left: 10%;
    animation-delay: 3s;
}

@keyframes float {

    0%,
    100% {
        transform: translateY(0) rotate(0deg);
    }

    50% {
        transform: translateY(-20px) rotate(10deg);
    }
}

/* Hero Wave */
.hero-wave {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    width: 100%;
    line-height: 0;
}

.hero-wave svg {
    width: 100%;
    height: 120px;
}

/* ========================================
   Animations (Scroll-triggered)
   ======================================== */
.fade-in {
    opacity: 0;
    transform: translateY(50px);
    transition: opacity 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94),
        transform 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

.slide-up {
    opacity: 0;
    transform: translateY(60px);
    transition: opacity 0.7s cubic-bezier(0.25, 0.46, 0.45, 0.94),
        transform 0.7s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.slide-up.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Text reveal animation with underline */
.text-reveal {
    display: inline-block;
    overflow: hidden;
}

.text-reveal span {
    display: inline-block;
    transform: translateY(100%);
    animation: textReveal 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94) forwards;
}

@keyframes textReveal {
    to {
        transform: translateY(0);
    }
}

.animated-underline {
    position: relative;
    display: inline-block;
}

.animated-underline::after {
    content: '';
    position: absolute;
    bottom: 0px;
    right: 0;
    width: 0;
    height: 4px;
    background: var(--coral-red);
    border-radius: 2px;
    animation: underlineExpand 0.8s 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94) forwards;
}

@keyframes underlineExpand {
    0% {
        width: 0;
        right: 50%;
    }

    100% {
        width: 100%;
        right: 0;
    }
}

/* ========================================
   Video Section
   ======================================== */
.video-section {
    padding: 80px 0;
    background: var(--bg-primary);
    text-align: center;
}

.section-title {
    font-size: clamp(1.5rem, 3vw, 2.2rem);
    color: var(--text-primary);
    margin-bottom: 40px;
    font-weight: 700;
}

.video-wrapper {
    position: relative;
    padding-bottom: 56.25%;
    max-width: 800px;
    margin: 0 auto;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-xl);
}

.video-wrapper iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
}

.video-note {
    margin-top: 20px;
    color: var(--coral-red);
    font-weight: 500;
}

/* ========================================
   Blog Cards Section
   ======================================== */
.blog-section {
    padding: 80px 0;
    background: var(--bg-primary);
}

.blog-section-alt {
    background: var(--bg-subtle);
}

.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.blog-card {
    background: var(--bg-elevated);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    transition: var(--transition-normal);
}

.blog-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-xl);
    border-color: var(--ai-primary);
    background: var(--bg-hover);
}

.blog-image {
    height: 200px;
    overflow: hidden;
}

.blog-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition-slow);
}

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

.blog-content {
    padding: 25px;
}

.blog-category {
    display: inline-block;
    background: var(--ai-primary);
    color: var(--white);
    padding: 5px 15px;
    border-radius: var(--radius-pill);
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 15px;
    box-shadow: 0 0 20px var(--glow-primary);
}

.blog-title {
    font-size: 1.2rem;
    color: var(--text-primary);
    margin-bottom: 10px;
    line-height: 1.4;
}

.blog-date {
    font-size: 0.85rem;
    color: var(--gray);
    margin-bottom: 10px;
}

.blog-excerpt {
    font-size: 0.95rem;
    color: var(--text-secondary);
    margin-bottom: 20px;
    line-height: 1.6;
}

.blog-link {
    color: var(--ai-accent);
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    transition: var(--transition-fast);
}

.blog-link:hover {
    color: var(--coral-dark);
}

.blog-link::after {
    content: '←';
    transition: var(--transition-fast);
}

.blog-link:hover::after {
    transform: translateX(-5px);
}

/* ========================================
   What We Do Section - Premium Design
   ======================================== */
.what-we-do {
    padding: 100px 0;
    background: linear-gradient(135deg, #f5f7fa 0%, #e8ecf1 50%, #f5f7fa 100%);
    background-size: 200% 200%;
    animation: gradientShift 15s ease infinite;
    text-align: center;
    position: relative;
    overflow: hidden;
}

/* Animated gradient background */
@keyframes gradientShift {

    0%,
    100% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }
}

/* Floating particles animation */
.what-we-do::before {
    content: '';
    position: absolute;
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(232, 91, 74, 0.1) 0%, transparent 70%);
    border-radius: 50%;
    top: -100px;
    right: -100px;
    animation: float-particle-1 20s ease-in-out infinite;
}

.what-we-do::after {
    content: '';
    position: absolute;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(26, 26, 94, 0.08) 0%, transparent 70%);
    border-radius: 50%;
    bottom: -150px;
    left: -150px;
    animation: float-particle-2 25s ease-in-out infinite;
}

@keyframes float-particle-1 {

    0%,
    100% {
        transform: translate(0, 0) scale(1);
    }

    50% {
        transform: translate(-50px, 50px) scale(1.1);
    }
}

@keyframes float-particle-2 {

    0%,
    100% {
        transform: translate(0, 0) scale(1);
    }

    50% {
        transform: translate(50px, -50px) scale(1.15);
    }
}

.pagination-dots {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-bottom: 40px;
    position: relative;
    z-index: 2;
}

.dot {
    width: 35px;
    height: 35px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.8);
    color: #2c3e50;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    border: 2px solid transparent;
}

.dot:hover {
    transform: scale(1.1);
    background: rgba(255, 255, 255, 1);
}

.dot.active {
    background: var(--coral-red);
    color: var(--white);
    box-shadow: 0 4px 15px rgba(232, 91, 74, 0.4);
    transform: scale(1.15);
}

.section-title-decorated {
    font-size: clamp(1.8rem, 4vw, 2.5rem);
    color: #1a1a2e;
    margin-bottom: 50px;
    position: relative;
    display: inline-block;
    z-index: 2;
    font-weight: 800;
}

.brand-name {
    color: var(--coral-red);
    position: relative;
}

.decoration-icon {
    position: absolute;
    top: -10px;
    left: -30px;
    font-size: 1.5rem;
}

.what-we-do-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
    max-width: 1000px;
    margin: 0 auto;
    position: relative;
    z-index: 2;
}

/* Service Content Transitions */
.service-content {
    display: none;
    opacity: 0;
    transition: opacity 0.6s ease-in-out;
}

.service-content.active {
    display: grid;
    opacity: 1;
    animation: fadeInService 0.6s ease-in-out;
}

@keyframes fadeInService {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.text-content {
    text-align: right;
}

.decorated-text {
    font-size: 1.3rem;
    line-height: 2;
    margin-bottom: 30px;
    color: #2c3e50;
    font-weight: 500;
}

.highlight-circle {
    display: inline-block;
    position: relative;
    color: var(--coral-red);
    font-weight: 700;
}

.highlight-circle::before {
    content: '';
    position: absolute;
    top: -5px;
    right: -10px;
    bottom: -5px;
    left: -10px;
    border: 2px solid var(--coral-red);
    border-radius: 50%;
    opacity: 0.5;
}

.strikethrough {
    text-decoration: line-through;
    color: #7f8c8d;
    position: relative;
}

.strikethrough::after {
    content: '';
    position: absolute;
    top: 50%;
    right: 0;
    left: 0;
    height: 2px;
    background: var(--coral-red);
    transform: rotate(-3deg);
}

.highlight-underline {
    position: relative;
    color: var(--coral-red);
    font-weight: 700;
}

.highlight-underline::after {
    content: '';
    position: absolute;
    bottom: -2px;
    right: 0;
    left: 0;
    height: 3px;
    background: var(--coral-red);
    border-radius: 2px;
}

.main-text {
    font-size: 1.4rem;
    line-height: 2;
    color: #2c3e50;
    font-weight: 500;
}

.main-text strong {
    color: var(--coral-red);
}

.highlight {
    background: var(--coral-red);
    color: var(--white);
    padding: 2px 10px;
    border-radius: 4px;
}

.illustration img {
    max-width: 400px;
    margin: 0 auto;
}

.social-icons {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 50px;
}

.social-icon {
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.9);
    color: var(--navy-blue);
    border-radius: 50%;
    transition: var(--transition-normal);
    border: 2px solid rgba(26, 26, 94, 0.2);
}

.social-icon:hover {
    background: var(--coral-red);
    color: var(--white);
    transform: scale(1.1) translateY(-3px);
    border-color: var(--coral-red);
    box-shadow: 0 8px 20px rgba(232, 91, 74, 0.3);
}

/* ========================================
   Partners Section - Premium Design
   ======================================== */
.partners-section {
    padding: 80px 0;
    background: linear-gradient(135deg, #e8ecf1 0%, #f5f7fa 50%, #e8ecf1 100%);
    background-size: 200% 200%;
    animation: gradientShift 15s ease infinite;
    text-align: center;
    position: relative;
    overflow: hidden;
}

/* Subtle animated background */
.partners-section::before {
    content: '';
    position: absolute;
    width: 250px;
    height: 250px;
    background: radial-gradient(circle, rgba(232, 91, 74, 0.08) 0%, transparent 70%);
    border-radius: 50%;
    top: 50%;
    left: 10%;
    transform: translateY(-50%);
    animation: float-particle-1 18s ease-in-out infinite;
}

.partners-tagline {
    color: var(--ai-primary);
    font-size: clamp(1.5rem, 3vw, 2.5rem);
    margin-bottom: 15px;
    font-weight: 700;
    position: relative;
    z-index: 2;
    letter-spacing: 0.02em;
}

.partners-title {
    font-size: clamp(1.3rem, 2.5vw, 1.8rem);
    color: #1a1a2e;
    margin-bottom: 50px;
    font-weight: 700;
    position: relative;
    z-index: 2;
}

.partners-logos {
    overflow: hidden;
    position: relative;
    z-index: 2;
    width: 100%;
    padding: 40px 0;
}

.partners-logos::before,
.partners-logos::after {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    width: 100px;
    z-index: 3;
    pointer-events: none;
}

.partners-logos::before {
    left: 0;
    background: linear-gradient(to right, #e8ecf1, transparent);
}

.partners-logos::after {
    right: 0;
    background: linear-gradient(to left, #e8ecf1, transparent);
}

.partners-logos .slide-up {
    display: flex;
    gap: 100px;
    animation: scrollLogos 30s linear infinite;
    width: max-content;
}

.partners-logos:hover .slide-up {
    animation-play-state: paused;
}

@keyframes scrollLogos {
    from {
        transform: translateX(0);
    }

    to {
        transform: translateX(-50%);
    }
}

.partner-logo {
    height: 80px;
    width: auto;
    opacity: 0.85;
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    flex-shrink: 0;
}

.partner-logo:hover {
    opacity: 1;
    transform: scale(1.1);
}


/* ========================================
   CTA Section - ابقى على تواصل
   ======================================== */
.cta-section {
    padding: 120px 0;
    background: linear-gradient(120deg, #0D1B4D 0%, #1E3A8A 35%, #7C3AED 65%, #A78BFA 100%);
    position: relative;
    overflow: hidden;
    clip-path: ellipse(110% 100% at 50% 50%);
}

/* Wave Effect */
.cta-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background:
        radial-gradient(ellipse at 20% 50%, rgba(13, 27, 77, 0.8) 0%, transparent 50%),
        radial-gradient(ellipse at 80% 50%, rgba(167, 139, 250, 0.6) 0%, transparent 50%);
    z-index: 1;
}

/* Diagonal Wave Separator */
.cta-section::after {
    content: '';
    position: absolute;
    top: -10%;
    left: -5%;
    width: 120%;
    height: 120%;
    background: linear-gradient(135deg,
            rgba(13, 27, 77, 0.4) 0%,
            rgba(13, 27, 77, 0.2) 40%,
            transparent 50%,
            rgba(167, 139, 250, 0.2) 60%,
            rgba(167, 139, 250, 0.3) 100%);
    transform: skewY(-3deg);
    animation: waveFlow 15s ease-in-out infinite;
    z-index: 1;
}

@keyframes waveFlow {

    0%,
    100% {
        transform: skewY(-3deg) translateX(0);
        opacity: 0.8;
    }

    50% {
        transform: skewY(-2deg) translateX(15px);
        opacity: 1;
    }
}

.cta-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 30px;
    text-align: center;
    color: var(--white);
    position: relative;
    z-index: 2;
}

/* Floating Orbs */
.cta-content::before {
    content: '';
    position: absolute;
    top: -80px;
    right: -80px;
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(167, 139, 250, 0.3) 0%, transparent 70%);
    border-radius: 50%;
    animation: floatOrb1 18s ease-in-out infinite;
    z-index: 0;
}

.cta-content::after {
    content: '';
    position: absolute;
    bottom: -100px;
    left: -100px;
    width: 350px;
    height: 350px;
    background: radial-gradient(circle, rgba(13, 27, 77, 0.4) 0%, transparent 70%);
    border-radius: 50%;
    animation: floatOrb2 20s ease-in-out infinite;
    z-index: 0;
}

@keyframes floatOrb1 {

    0%,
    100% {
        transform: translate(0, 0) scale(1);
    }

    50% {
        transform: translate(-25px, 25px) scale(1.1);
    }
}

@keyframes floatOrb2 {

    0%,
    100% {
        transform: translate(0, 0) scale(1);
    }

    50% {
        transform: translate(30px, -30px) scale(1.12);
    }
}

.cta-title {
    font-size: clamp(2rem, 5vw, 3rem);
    font-weight: 800;
    margin: 0;
    color: #FFFFFF;
    text-shadow: 0 2px 20px rgba(0, 0, 0, 0.2);
    letter-spacing: -0.02em;
    animation: fadeInUp 0.8s ease-out;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.cta-subtitle {
    font-size: clamp(1.1rem, 2.5vw, 1.4rem);
    margin: 0;
    opacity: 0.95;
    max-width: 700px;
    line-height: 1.7;
    color: rgba(255, 255, 255, 0.95);
    animation: fadeInUp 1s ease-out 0.2s both;
}

.cta-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 18px 50px;
    background: rgba(255, 255, 255, 0.2);
    color: white;
    text-decoration: none;
    border-radius: 60px;
    font-weight: 700;
    font-size: 1.15rem;
    border: 2px solid rgba(255, 255, 255, 0.4);
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    backdrop-filter: blur(15px);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.15);
    animation: fadeInUp 1.2s ease-out 0.4s both, pulse 3s ease-in-out 2s infinite;
}

@keyframes pulse {

    0%,
    100% {
        box-shadow: 0 8px 32px rgba(0, 0, 0, 0.15);
    }

    50% {
        box-shadow: 0 8px 32px rgba(167, 139, 250, 0.4), 0 0 0 8px rgba(167, 139, 250, 0.1);
    }
}

.cta-button:hover {
    background: rgba(255, 255, 255, 0.3);
    border-color: rgba(255, 255, 255, 0.6);
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.25);
    animation: none;
}

.cta-button::before {
    content: '📱';
    font-size: 1.5rem;
    filter: drop-shadow(0 0 8px rgba(34, 197, 94, 0.6));
    animation: phoneRing 2s ease-in-out 3s infinite;
}

@keyframes phoneRing {

    0%,
    100% {
        transform: rotate(0deg);
    }

    10%,
    30% {
        transform: rotate(-8deg);
    }

    20%,
    40% {
        transform: rotate(8deg);
    }

    50% {
        transform: rotate(0deg);
    }
}

/* Mobile Responsiveness */
@media (max-width: 768px) {
    .cta-section {
        padding: 80px 20px;
        clip-path: ellipse(105% 100% at 50% 50%);
    }

    .cta-section::after {
        transform: skewY(-2deg);
    }

    .cta-content::before,
    .cta-content::after {
        display: none;
    }
}

/* ========================================
   Footer
   ======================================== */
.footer {
    background: var(--dark-gray);
    color: var(--white);
    padding: 60px 0 0;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 40px;
    padding-bottom: 40px;
}

.footer-col h4 {
    font-size: 1.1rem;
    margin-bottom: 20px;
    color: var(--coral-red);
}

.footer-col p {
    font-size: 0.9rem;
    opacity: 0.8;
    margin-bottom: 15px;
}

.footer-links li {
    margin-bottom: 10px;
}

.footer-links a {
    font-size: 0.9rem;
    opacity: 0.8;
    transition: var(--transition-fast);
}

.footer-links a:hover {
    opacity: 1;
    color: var(--coral-red);
    padding-right: 5px;
}

.footer-brand {
    text-align: center;
}

.footer-logo {
    height: 80px;
    margin: 0 auto 20px;
}

.footer-social {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-top: 20px;
}

.footer-social a {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    transition: var(--transition-normal);
}

.footer-social a:hover {
    background: var(--coral-red);
    transform: scale(0.9);
}

.footer-bottom {
    background: var(--navy-blue);
    padding: 20px 0;
    text-align: center;
}

.footer-bottom p {
    font-size: 0.9rem;
    opacity: 0.9;
}

/* ========================================
   Back to Top Button
   ======================================== */
.back-to-top {
    position: fixed;
    bottom: 30px;
    left: 30px;
    width: 50px;
    height: 50px;
    background: var(--coral-red);
    color: var(--white);
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-lg);
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: var(--transition-normal);
    z-index: 999;
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.back-to-top:hover {
    background: var(--navy-blue);
    transform: translateY(-5px);
}

/* ========================================
   Responsive Design
   ======================================== */
@media (max-width: 992px) {

    /* Hero Section - Tablets */
    .hero {
        min-height: 80vh;
        padding: 120px 20px 60px;
    }

    .hero-3d-canvas {
        max-width: 400px;
        max-height: 400px;
        opacity: 0.5;
    }

    .hero-subtitle {
        font-size: 1.2rem;
    }

    .hero-description {
        font-size: 1.1rem;
        margin-bottom: 35px;
    }

    .hero-btn {
        padding: 16px 40px;
        font-size: 1.1rem;
    }

    /* What We Do Section */
    .what-we-do-content {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .text-content {
        text-align: center;
    }

    .illustration {
        order: -1;
    }

    /* Logo */
    .logo-img {
        height: 80px;
    }
}

@media (max-width: 768px) {

    /* Hero Section - Mobile */
    .hero {
        min-height: auto;
        padding: 100px 15px 40px;
    }

    .hero-3d-canvas {
        display: none;
        /* إخفاء الـ 3D على الموبايل لتحسين الأداء */
    }

    .hero-subtitle {
        font-size: 1rem;
        margin-bottom: 10px;
    }

    .hero-title {
        font-size: 1.8rem;
        margin-bottom: 15px;
        line-height: 1.3;
    }

    .hero-description {
        font-size: 1rem;
        margin-bottom: 30px;
        line-height: 1.6;
    }

    .hero-btn {
        padding: 14px 30px;
        font-size: 1rem;
    }

    /* Hide floating decorations on mobile */
    .floating-icon {
        display: none;
    }

    /* Navigation */
    .nav-menu {
        position: fixed;
        top: 0;
        right: -100%;
        width: 80%;
        max-width: 300px;
        height: 100vh;
        background: var(--navy-blue);
        flex-direction: column;
        padding: 100px 30px 30px;
        gap: 20px;
        transition: var(--transition-normal);
        box-shadow: var(--shadow-xl);
    }

    .nav-menu.active {
        right: 0;
    }

    .mobile-menu-btn {
        display: flex;
        z-index: 1001;
    }

    .logo-img {
        height: 70px;
    }

    /* Blog Grid */
    .blog-grid {
        grid-template-columns: 1fr;
    }

    /* Partners */
    .partners-logos {
        gap: 30px;
    }

    .partner-logo {
        height: 35px;
    }

    /* CTA */
    .cta-content {
        flex-direction: column;
    }

    /* Footer */
    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }

    /* Sections Padding */
    .blog-section,
    .video-section {
        padding: 60px 0;
    }

    .what-we-do {
        padding: 70px 0;
    }

    /* What We Do Section - Mobile */
    .illustration img {
        max-width: 250px;
        width: 100%;
    }

    .decorated-text {
        font-size: 1.1rem;
        line-height: 1.8;
        margin-bottom: 20px;
    }

    .main-text {
        font-size: 1.1rem;
        line-height: 1.8;
    }

    .what-we-do-content {
        gap: 30px;
    }
}

@media (max-width: 480px) {

    /* Hero Section - Small Mobile */
    .hero {
        padding: 90px 10px 30px;
    }

    .hero-subtitle {
        font-size: 0.9rem;
        margin-bottom: 8px;
    }

    .hero-title {
        font-size: 1.5rem;
        line-height: 1.3;
        margin-bottom: 12px;
    }

    .hero-description {
        font-size: 0.95rem;
        margin-bottom: 25px;
    }

    .hero-btn {
        padding: 12px 25px;
        font-size: 0.95rem;
    }

    /* Logo */
    .logo-img {
        height: 60px;
    }

    /* Sections */
    .section-title {
        font-size: 1.4rem;
    }

    .blog-section,
    .video-section {
        padding: 50px 0;
    }

    .what-we-do {
        padding: 60px 0;
    }

    /* Footer */
    .footer-grid {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .footer-links {
        margin-bottom: 20px;
    }

    /* Container */
    .container {
        padding: 0 15px;
    }

    /* What We Do - Small Mobile */
    .illustration img {
        max-width: 200px;
    }

    .decorated-text {
        font-size: 1rem;
        line-height: 1.7;
    }

    .main-text {
        font-size: 1rem;
        line-height: 1.7;
    }

    .pagination-dots {
        gap: 10px;
        margin-bottom: 30px;
    }

    .dot {
        width: 30px;
        height: 30px;
        font-size: 0.9rem;
    }
}