/* ============================================
   CSS Variables - Easy Color Customization
   ============================================ */
   :root {
    /* Primary Colors - Widespheres Brand Colors */
    --primary-color: #623F9F;
    --primary-dark: #260B51;
    --primary-light: #977CB8;
    
    /* Secondary Colors */
    --secondary-color: #744EB6;
    --accent-color: #AB94C6;
    
    /* Additional Brand Colors */
    --brand-purple-1: #3D1F6F;
    --brand-purple-2: #52318A;
    --brand-purple-3: #B6A2CE;
    
    /* Neutral Colors - Dark Theme Only */
    --text-dark: #f9fafb;
    --text-light: #d1d5db;
    --bg-white: #0a0a1a;
    --bg-light: #1a1a2e;
    --bg-dark: #0a0a1a;
    
    /* Gradients */
    --gradient-primary: linear-gradient(135deg, #260B51 0%, #623F9F 50%, #977CB8 100%);
    --gradient-accent: linear-gradient(135deg, #3D1F6F 0%, #744EB6 100%);
    
    /* Spacing */
    --spacing-xs: 0.5rem;
    --spacing-sm: 1rem;
    --spacing-md: 2rem;
    --spacing-lg: 3rem;
    --spacing-xl: 4rem;
    
    /* Typography - Widespheres Brand Fonts */
    --font-primary: 'GE SS Two', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif; /* عربي */
    --font-en: 'Gothic', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif; /* إنجليزي */
    --font-size-base: 16px;
    --line-height-base: 1.6;
    
    /* Transitions */
    --transition-fast: 0.2s ease;
    --transition-base: 0.3s ease;
    --transition-slow: 0.5s ease;
    
    /* Shadows - Dark Theme */
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.3);
    --shadow-md: 0 4px 6px rgba(0, 0, 0, 0.4);
    --shadow-lg: 0 10px 15px rgba(0, 0, 0, 0.5);
    --shadow-xl: 0 20px 25px rgba(0, 0, 0, 0.6);
}

/* ============================================
   Custom Brand Fonts
   - انسخ ملفات الخط من مجلد الويندوز إلى: public/fonts/GE_SS_Two و public/fonts/Gothic
   - عدّل أسماء الملفات هنا حسب الموجود فعلياً
   ============================================ */
@font-face {
    font-family: 'GE SS Two';
    src: url('../fonts/GE_SS_Two/GE-SS-Two-Light.woff2') format('woff2');
    font-weight: 300;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'GE SS Two';
    src: url('../fonts/GE_SS_Two/GE-SS-Two-Regular.woff2') format('woff2');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'GE SS Two';
    src: url('../fonts/GE_SS_Two/GE-SS-Two-Bold.woff2') format('woff2');
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Gothic';
    src: url('../fonts/Gothic/Gothic-Regular.woff2') format('woff2');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Gothic';
    src: url('../fonts/Gothic/Gothic-Bold.woff2') format('woff2');
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}

/* ============================================
   Reset & Base Styles
   ============================================ */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-primary);
    font-size: var(--font-size-base);
    line-height: var(--line-height-base);
    color: var(--text-dark);
    background-color: var(--bg-dark);
    background-image: 
        radial-gradient(3px 3px at 10% 15%, rgba(255, 255, 255, 1), transparent),
        radial-gradient(2px 2px at 25% 30%, rgba(255, 255, 255, 0.9), transparent),
        radial-gradient(1px 1px at 40% 20%, rgba(255, 255, 255, 0.8), transparent),
        radial-gradient(3px 3px at 55% 45%, rgba(255, 255, 255, 1), transparent),
        radial-gradient(2px 2px at 70% 60%, rgba(255, 255, 255, 0.9), transparent),
        radial-gradient(1px 1px at 85% 35%, rgba(255, 255, 255, 0.8), transparent),
        radial-gradient(2px 2px at 15% 70%, rgba(255, 255, 255, 0.9), transparent),
        radial-gradient(1px 1px at 30% 55%, rgba(255, 255, 255, 0.8), transparent),
        radial-gradient(3px 3px at 45% 80%, rgba(255, 255, 255, 1), transparent),
        radial-gradient(2px 2px at 60% 25%, rgba(255, 255, 255, 0.9), transparent),
        radial-gradient(1px 1px at 75% 90%, rgba(255, 255, 255, 0.8), transparent),
        radial-gradient(2px 2px at 90% 50%, rgba(255, 255, 255, 0.9), transparent),
        radial-gradient(1px 1px at 5% 40%, rgba(255, 255, 255, 0.8), transparent),
        radial-gradient(3px 3px at 20% 85%, rgba(255, 255, 255, 1), transparent),
        radial-gradient(2px 2px at 35% 10%, rgba(255, 255, 255, 0.9), transparent),
        radial-gradient(1px 1px at 50% 65%, rgba(255, 255, 255, 0.8), transparent),
        radial-gradient(2px 2px at 65% 5%, rgba(255, 255, 255, 0.9), transparent),
        radial-gradient(1px 1px at 80% 75%, rgba(255, 255, 255, 0.8), transparent),
        radial-gradient(3px 3px at 95% 20%, rgba(255, 255, 255, 1), transparent),
        radial-gradient(2px 2px at 12% 50%, rgba(255, 255, 255, 0.9), transparent),
        radial-gradient(1px 1px at 28% 75%, rgba(255, 255, 255, 0.8), transparent),
        radial-gradient(2px 2px at 42% 15%, rgba(255, 255, 255, 0.9), transparent),
        radial-gradient(1px 1px at 58% 90%, rgba(255, 255, 255, 0.8), transparent),
        radial-gradient(3px 3px at 72% 40%, rgba(255, 255, 255, 1), transparent),
        radial-gradient(2px 2px at 88% 65%, rgba(255, 255, 255, 0.9), transparent),
        radial-gradient(1px 1px at 8% 25%, rgba(255, 255, 255, 0.8), transparent),
        radial-gradient(2px 2px at 22% 60%, rgba(255, 255, 255, 0.9), transparent),
        radial-gradient(1px 1px at 38% 95%, rgba(255, 255, 255, 0.8), transparent),
        radial-gradient(3px 3px at 52% 30%, rgba(255, 255, 255, 1), transparent),
        radial-gradient(2px 2px at 68% 80%, rgba(255, 255, 255, 0.9), transparent);
    background-size: 100% 100%;
    background-position: 0% 0%;
    animation: starsMove 20s linear infinite;
    direction: rtl;
    overflow-x: hidden;
    position: relative;
}

/* body::before removed - keeping only stars */

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

/* Spheres Pattern - Removed, keeping only stars */

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

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

ul {
    list-style: none;
}

body > * {
    position: relative;
    z-index: 1;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--spacing-md);
    position: relative;
    z-index: 1;
}

.section-padding {
    padding: var(--spacing-xl) 0;
}

.bg-light {
    background-color: var(--bg-light);
}

/* ============================================
   Typography
   ============================================ */
/* العناوين ستأخذ خط حسب اتجاه الصفحة (عربي/إنجليزي) */
h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: var(--spacing-sm);
    color: var(--text-dark);
}

html[dir="rtl"] body,
html[dir="rtl"] h1,
html[dir="rtl"] h2,
html[dir="rtl"] h3,
html[dir="rtl"] h4,
html[dir="rtl"] h5,
html[dir="rtl"] h6 {
    font-family: 'GE SS Two', var(--font-primary);
}

html[dir="ltr"] body,
html[dir="ltr"] h1,
html[dir="ltr"] h2,
html[dir="ltr"] h3,
html[dir="ltr"] h4,
html[dir="ltr"] h5,
html[dir="ltr"] h6 {
    font-family: 'Gothic', var(--font-en);
}

h1 {
    font-size: 3rem;
}

h2 {
    font-size: 2.5rem;
}

h3 {
    font-size: 2rem;
}

h4 {
    font-size: 1.5rem;
}

p {
    margin-bottom: var(--spacing-sm);
    color: var(--text-light);
}

/* ============================================
   Navigation
   ============================================ */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(10, 10, 26, 0.85);
    backdrop-filter: blur(15px);
    box-shadow: 0 2px 20px rgba(98, 63, 159, 0.2);
    z-index: 1000;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    transform: translateY(0);
    border-bottom: 1px solid rgba(98, 63, 159, 0.2);
    visibility: hidden;
    opacity: 0;
}

.navbar.scrolled {
    box-shadow: 0 4px 30px rgba(98, 63, 159, 0.3);
    background: rgba(10, 10, 26, 0.95);
    padding: var(--spacing-xs) 0;
}

.navbar {
    background: rgba(10, 10, 26, 0.9);
}

.navbar.scrolled {
    background: rgba(10, 10, 26, 0.1);
}

.nav-wrapper {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: var(--spacing-sm) 0;
    flex-direction: row;
}

[dir="ltr"] .nav-wrapper {
    flex-direction: row-reverse;
}

.logo {
    display: flex;
    align-items: center;
    gap: var(--spacing-xs);
}

.logo a {
    position: relative;
    display: inline-block;
}

.logo img {
    transition: opacity 0.3s ease;
    display: block;
}

/* الصورة الأساسية */
.logo-main {
    opacity: 1;
}

/* صورة الهوفر */
.logo-hover {
    position: absolute;
    top: 0;
    left: 0;
    opacity: 0;
}

/* عند المرور بالماوس */
.logo a:hover .logo-main {
    opacity: 0;
}

.logo a:hover .logo-hover {
    opacity: 1;
}


.logo img {
    height: 75px;
    width: auto;
    transition: all 0.3s ease;
}

.logo:hover img {
    transform: scale(1.05);
}

/* Logo for dark theme */
.logo-light {
    display: none;
}

.logo-dark {
    display: block;
}

.nav-menu {
    display: flex;
    gap: var(--spacing-md);
    align-items: center;
    flex-direction: row;
}

[dir="ltr"] .nav-menu {
    flex-direction: row-reverse;
}

/* Text alignment based on language */
[dir="rtl"] {
    text-align: right;
}

[dir="ltr"] {
    text-align: left;
}

/* Container alignment */
[dir="rtl"] .container {
    text-align: right;
}

[dir="ltr"] .container {
    text-align: left;
}

.nav-menu a {
    color: rgba(255, 255, 255, 0.9);
    font-weight: 500;
    padding: var(--spacing-xs) var(--spacing-sm);
    border-radius: 6px;
    position: relative;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: inline-block;
}


.nav-menu a::after {
    content: '';
    position: absolute;
    bottom: 0;
    right: var(--spacing-sm);
    left: var(--spacing-sm);
    height: 2px;
    background: linear-gradient(90deg, #977CB8, #623F9F);
    border-radius: 2px;
    transform: scaleX(0);
    transition: transform 0.3s ease;
    box-shadow: 0 0 10px rgba(98, 63, 159, 0.5);
}

.nav-menu a:hover,
.nav-menu a.active {
    color: #977CB8;
    transform: translateY(-2px);
    text-shadow: 0 0 10px rgba(151, 124, 184, 0.5);
}

.nav-menu a:hover::after,
.nav-menu a.active::after {
    transform: scaleX(1);
}


.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
}

.nav-toggle span {
    width: 25px;
    height: 3px;
    background: var(--text-dark);
    border-radius: 3px;
    transition: var(--transition-base);
}

/* ============================================
   Space Background Effects
   ============================================ */
.star {
    position: fixed;
    width: 2px;
    height: 2px;
    background: white;
    border-radius: 50%;
    animation: twinkle 3s ease-in-out infinite;
    z-index: 0;
}

.star-large {
    width: 3px;
    height: 3px;
    box-shadow: 0 0 6px rgba(255, 255, 255, 0.8);
}

.star-small {
    width: 1px;
    height: 1px;
}

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

/* Spheres Lines - Removed, keeping only stars */

.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    max-width: 800px;
    padding: var(--spacing-xl) var(--spacing-md);
}

.hero-subtitle {
    font-size: 1.2rem;
    color: var(--text-light);
    margin-bottom: var(--spacing-sm);
    font-weight: 500;
}

.hero-title {
    font-size: 4rem;
    line-height: 1.1;
    margin-bottom: var(--spacing-md);
}

.hero-title .highlight {
    color: var(--text-dark);
}

.hero-title .gradient-text {
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-title .accent {
    color: var(--accent-color);
}

.hero-description {
    font-size: 1.2rem;
    color: var(--text-light);
    margin-bottom: var(--spacing-lg);
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.hero-buttons {
    display: flex;
    gap: var(--spacing-sm);
    justify-content: center;
    flex-wrap: wrap;
}

.hero-shapes {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1;
    overflow: hidden;
}

.shape {
    position: absolute;
    border-radius: 50%;
    opacity: 0.1;
    animation: float 20s infinite;
    transition: transform 0.3s ease-out;
}

.shape-1 {
    width: 300px;
    height: 300px;
    background: var(--primary-color);
    top: 10%;
    right: 10%;
    animation-delay: 0s;
}

.shape-2 {
    width: 200px;
    height: 200px;
    background: var(--secondary-color);
    bottom: 20%;
    left: 15%;
    animation-delay: 5s;
}

.shape-3 {
    width: 150px;
    height: 150px;
    background: var(--accent-color);
    top: 50%;
    left: 5%;
    animation-delay: 10s;
}

@keyframes float {
    0%, 100% {
        transform: translateY(0) rotate(0deg);
    }
    50% {
        transform: translateY(-30px) rotate(180deg);
    }
}

/* ============================================
   Buttons
   ============================================ */
.btn {
    display: inline-block;
    padding: var(--spacing-sm) var(--spacing-md);
    border-radius: 8px;
    font-weight: 600;
    text-align: center;
    cursor: pointer;
    border: none;
    transition: var(--transition-base);
    font-size: 1rem;
}

.btn-primary {
    background: var(--gradient-primary);
    color: white;
    box-shadow: var(--shadow-md);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(98, 63, 159, 0.6), 0 0 20px rgba(151, 124, 184, 0.4);
}

.btn-secondary {
    background: transparent;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
}

.btn-secondary:hover {
    background: var(--primary-color);
    color: white;
}

.btn-large {
    padding: var(--spacing-md) var(--spacing-lg);
    font-size: 1.1rem;
}

/* ============================================
   Section Headers
   ============================================ */
.section-header {
    text-align: center;
    max-width: 700px;
    margin: 0 auto var(--spacing-lg);
}

.section-title {
    margin-bottom: var(--spacing-sm);
}

.section-description {
    font-size: 1.1rem;
    color: var(--text-light);
}

/* ============================================
   Services Section
   ============================================ */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: var(--spacing-md);
    margin-top: var(--spacing-lg);
}

.service-card {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(98, 63, 159, 0.2);
    padding: var(--spacing-lg);
    border-radius: 12px;
    box-shadow: 0 8px 32px rgba(38, 11, 81, 0.3);
    transition: var(--transition-base);
    text-align: center;
}


.service-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(98, 63, 159, 0.4), 0 0 20px rgba(151, 124, 184, 0.2);
    border-color: rgba(98, 63, 159, 0.5);
}

.service-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto var(--spacing-md);
    background: var(--gradient-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: white;
}

.service-card h3 {
    margin-bottom: var(--spacing-sm);
    color: var(--text-dark);
}

.service-card p {
    color: var(--text-light);
}

/* ============================================
   Portfolio Section
   ============================================ */
.portfolio-filter {
    display: flex;
    justify-content: center;
    gap: var(--spacing-sm);
    margin-bottom: var(--spacing-lg);
    flex-wrap: wrap;
}

.filter-btn {
    padding: var(--spacing-xs) var(--spacing-md);
    background: white;
    border: 2px solid var(--bg-light);
    border-radius: 25px;
    cursor: pointer;
    transition: var(--transition-base);
    font-weight: 500;
    color: var(--text-light);
}

.filter-btn:hover,
.filter-btn.active {
    background: var(--gradient-primary);
    color: white;
    border-color: transparent;
}

.portfolio {
    background: none !important;
}

.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--spacing-md);
}

.portfolio-item {
    border-radius: 12px;
    overflow: hidden;
    position: relative;
    cursor: pointer;
    transform-origin: center;
    border: none;
    text-decoration: none;
    display: block;
    color: inherit;
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.portfolio-item:hover {
    transform: scale(1.08);
    z-index: 10;
    box-shadow: none;
    border-color: transparent;
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.portfolio-item:not(:hover) {
    transition: transform 1s cubic-bezier(0.4, 0, 0.2, 1) 0.5s;
}

.portfolio-image {
    position: relative;
    overflow: hidden;
    aspect-ratio: 1;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.portfolio-image::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.35);
    z-index: 1;
    transition: background 0.3s ease;
    pointer-events: none;
}

.portfolio-item:hover .portfolio-image::before {
    background: rgba(0, 0, 0, 0.2);
}

.portfolio-title-overlay {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: white;
    padding: 1rem 2rem;
    font-size: 1.3rem;
    font-weight: 700;
    text-align: center;
    z-index: 2;
    transition: opacity 0.3s ease;
    white-space: nowrap;
    opacity: 1;
}

.portfolio-item:hover .portfolio-title-overlay {
    opacity: 0;
}

.portfolio-item:not(:hover) .portfolio-title-overlay {
    opacity: 1;
    transition: opacity 1s cubic-bezier(0.4, 0, 0.2, 1) 0.5s;
}

.portfolio-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: brightness(1);
}

.portfolio-item:hover .portfolio-image {
    transform: scale(1.05);
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.portfolio-item:not(:hover) .portfolio-image {
    transform: scale(1);
    transition: transform 1s cubic-bezier(0.4, 0, 0.2, 1) 0.5s;
}

.portfolio-item:hover .portfolio-image img {
    transform: scale(1.15);
    filter: brightness(0.9);
}

.portfolio-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(38, 11, 81, 0.95) 0%, rgba(98, 63, 159, 0.9) 100%);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    opacity: 0;
    padding: var(--spacing-lg);
    text-align: center;
    color: white;
    transform: scale(0.9);
    transition: opacity 0.4s cubic-bezier(0.4, 0, 0.2, 1), transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.portfolio-item:hover .portfolio-overlay {
    opacity: 1;
    transform: scale(1);
}

.portfolio-item:not(:hover) .portfolio-overlay {
    opacity: 0;
    transform: scale(0.9);
    transition: opacity 1s cubic-bezier(0.4, 0, 0.2, 1) 0.5s, transform 1s cubic-bezier(0.4, 0, 0.2, 1) 0.5s;
}

.portfolio-overlay h4 {
    color: white;
    margin-bottom: var(--spacing-xs);
    font-size: 1.5rem;
    text-align: center;
}

.portfolio-overlay p {
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: var(--spacing-md);
    font-size: 1.1rem;
    text-align: center;
}


/* ============================================
   Stats Section
   ============================================ */
.stats {
    background: var(--gradient-primary);
    background-size: 200% 200%;
    color: white;
    animation: gradient 5s ease infinite;
    position: relative;
    overflow: hidden;
}

.stats::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg width="100" height="100" xmlns="http://www.w3.org/2000/svg"><circle cx="50" cy="50" r="2" fill="rgba(255,255,255,0.1)"/></svg>');
    animation: float 30s linear infinite;
    opacity: 0.3;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: var(--spacing-lg);
    text-align: center;
    position: relative;
    z-index: 1;
}

.stat-item {
    padding: var(--spacing-md);
    transition: all 0.3s ease;
    transform: scale(1);
}

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

.stat-number {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: var(--spacing-xs);
    color: white;
    transition: all 0.3s ease;
    display: inline-block;
}

.stat-item:hover .stat-number {
    animation: bounce 0.6s ease;
    text-shadow: 0 0 20px rgba(255, 255, 255, 0.5);
}

.stat-label {
    font-size: 1.2rem;
    opacity: 0.9;
    transition: opacity 0.3s ease;
}

.stat-item:hover .stat-label {
    opacity: 1;
}

/* ============================================
   Testimonials Section
   ============================================ */
.testimonials-slider {
    max-width: 800px;
    margin: 0 auto;
    position: relative;
}

.testimonial-item {
    display: none;
    text-align: center;
    padding: var(--spacing-lg);
}

.testimonial-item.active {
    display: block;
    animation: fadeIn 0.5s ease;
}

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

.testimonial-text {
    font-size: 1.3rem;
    line-height: 1.8;
    color: var(--text-dark);
    margin-bottom: var(--spacing-md);
    font-style: italic;
}

.testimonial-author {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--spacing-md);
    margin-top: var(--spacing-lg);
}

.testimonial-author-image {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    overflow: hidden;
    border: 3px solid var(--primary-color);
    box-shadow: 0 4px 15px rgba(98, 63, 159, 0.3);
    flex-shrink: 0;
}

.testimonial-author-image img,
.testimonial-author-image > div {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.testimonial-author-info {
    text-align: center;
}

.testimonial-author h4 {
    color: var(--text-dark);
    margin-bottom: var(--spacing-xs);
}

.testimonial-author p {
    color: var(--text-light);
}

.testimonial-dots {
    display: flex;
    justify-content: center;
    gap: var(--spacing-xs);
    margin-top: var(--spacing-md);
}

.dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--bg-light);
    cursor: pointer;
    transition: var(--transition-base);
}

.dot.active,
.dot:hover {
    background: var(--primary-color);
}

/* ============================================
   CTA Section
   ============================================ */
.cta {
    background: var(--gradient-primary);
    background-size: 200% 200%;
    color: white;
    text-align: center;
    animation: gradient 5s ease infinite;
    position: relative;
    overflow: hidden;
}

.cta::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.1) 0%, transparent 70%);
    animation: rotate 15s linear infinite;
}

.cta-content {
    position: relative;
    z-index: 1;
    animation: fadeInUp 1s ease-out;
}

.cta-content h2 {
    color: white;
    margin-bottom: var(--spacing-sm);
    animation: fadeInUp 0.8s ease-out 0.2s both;
}

.cta-content p {
    color: rgba(255, 255, 255, 0.9);
    font-size: 1.2rem;
    margin-bottom: var(--spacing-lg);
    animation: fadeInUp 0.8s ease-out 0.4s both;
}

.cta .btn-primary {
    background: white;
    color: var(--primary-color);
}

.cta .btn-primary:hover {
    background: var(--bg-light);
}

/* ============================================
   Page Header
   ============================================ */
.page-header {
    padding: calc(80px + var(--spacing-xl)) 0 var(--spacing-xl);
    text-align: center;
    background: var(--gradient-primary);
    color: white;
}

.page-header h1 {
    color: white;
    font-size: 3.5rem;
    margin-bottom: var(--spacing-sm);
}

.page-header p {
    color: rgba(255, 255, 255, 0.9);
    font-size: 1.2rem;
}

/* ============================================
   About Page
   ============================================ */
.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--spacing-xl);
    align-items: center;
}

.about-text h2 {
    margin-bottom: var(--spacing-md);
}

.about-features {
    margin-top: var(--spacing-md);
}

.feature-item {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
    margin-bottom: var(--spacing-sm);
}

.feature-item i {
    color: var(--primary-color);
    font-size: 1.2rem;
}

.about-image img {
    border-radius: 12px;
    box-shadow: var(--shadow-lg);
}

.values-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: var(--spacing-md);
    margin-top: var(--spacing-lg);
}

.value-card {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(98, 63, 159, 0.2);
    padding: var(--spacing-lg);
    border-radius: 12px;
    text-align: center;
    box-shadow: 0 8px 32px rgba(38, 11, 81, 0.3);
    transition: var(--transition-base);
}


.value-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 40px rgba(98, 63, 159, 0.4);
    border-color: rgba(151, 124, 184, 0.5);
}

.value-icon {
    width: 70px;
    height: 70px;
    margin: 0 auto var(--spacing-md);
    background: var(--gradient-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    color: white;
}

.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: var(--spacing-md);
    margin-top: var(--spacing-lg);
}

.team-member {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--shadow-md);
    transition: var(--transition-base);
}

.team-member:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-xl);
}

.member-image {
    aspect-ratio: 1;
    overflow: hidden;
}

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

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

.member-info {
    padding: var(--spacing-md);
    text-align: center;
}

.member-info h3 {
    margin-bottom: var(--spacing-xs);
}

.member-info p {
    color: var(--text-light);
    margin-bottom: var(--spacing-sm);
}

.member-social {
    display: flex;
    justify-content: center;
    gap: var(--spacing-sm);
}

.member-social a {
    width: 35px;
    height: 35px;
    background: var(--bg-light);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-dark);
    transition: var(--transition-base);
}

.member-social a:hover {
    background: var(--primary-color);
    color: white;
}

/* ============================================
   Contact Page
   ============================================ */
.contact-wrapper {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: var(--spacing-xl);
}

.contact-info h2 {
    margin-bottom: var(--spacing-md);
}

.info-cards {
    margin: var(--spacing-lg) 0;
}

.info-card {
    display: flex;
    gap: var(--spacing-md);
    margin-bottom: var(--spacing-md);
    padding: var(--spacing-md);
    background: var(--bg-light);
    border-radius: 12px;
}

.info-icon {
    width: 50px;
    height: 50px;
    background: var(--gradient-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    flex-shrink: 0;
}

.info-content h4 {
    margin-bottom: var(--spacing-xs);
    font-size: 1.1rem;
}

.info-content p {
    margin: 0;
    color: var(--text-light);
}

.social-links-large {
    margin-top: var(--spacing-lg);
}

.social-links-large h4 {
    margin-bottom: var(--spacing-sm);
}

.social-icons {
    display: flex;
    gap: var(--spacing-sm);
}

.social-icons a {
    width: 45px;
    height: 45px;
    background: var(--gradient-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.2rem;
    transition: var(--transition-base);
}

.social-icons a:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
}

.contact-form-wrapper {
    background: white;
    padding: var(--spacing-lg);
    border-radius: 12px;
    box-shadow: var(--shadow-lg);
}

.form-group {
    margin-bottom: var(--spacing-md);
}

.form-group label {
    display: block;
    margin-bottom: var(--spacing-xs);
    font-weight: 600;
    color: var(--text-dark);
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: var(--spacing-sm);
    border: 2px solid var(--bg-light);
    border-radius: 8px;
    font-family: inherit;
    font-size: 1rem;
    transition: var(--transition-base);
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

.form-message {
    margin-top: var(--spacing-md);
    padding: var(--spacing-sm);
    border-radius: 8px;
    display: none;
}

.form-message.success {
    background: #10b981;
    color: white;
    display: block;
}

.form-message.error {
    background: #ef4444;
    color: white;
    display: block;
}

.map-section {
    margin-top: var(--spacing-xl);
}

.map-container {
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--shadow-lg);
}

.map-container iframe {
    width: 100%;
    height: 450px;
    border: none;
}

/* ============================================
   Blog Page
   ============================================ */
.blog-wrapper {
    display: grid;
    grid-template-columns: 1fr 350px;
    gap: var(--spacing-xl);
}

.blog-main {
    min-width: 0;
}

.blog-post {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--shadow-md);
    margin-bottom: var(--spacing-lg);
    transition: var(--transition-base);
}

.blog-post:hover {
    box-shadow: var(--shadow-xl);
    transform: translateY(-3px);
}

.post-image {
    position: relative;
    aspect-ratio: 16/10;
    overflow: hidden;
}

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

.blog-post:hover .post-image img {
    transform: scale(1.05);
}

.post-date {
    position: absolute;
    top: var(--spacing-md);
    right: var(--spacing-md);
    background: var(--gradient-primary);
    color: white;
    padding: var(--spacing-sm);
    border-radius: 8px;
    text-align: center;
    min-width: 70px;
}

.post-date .day {
    display: block;
    font-size: 1.8rem;
    font-weight: 700;
    line-height: 1;
}

.post-date .month {
    display: block;
    font-size: 0.9rem;
    opacity: 0.9;
}

.post-content {
    padding: var(--spacing-lg);
}

.post-meta {
    display: flex;
    gap: var(--spacing-md);
    margin-bottom: var(--spacing-sm);
    flex-wrap: wrap;
    font-size: 0.9rem;
    color: var(--text-light);
}

.post-meta span {
    display: flex;
    align-items: center;
    gap: var(--spacing-xs);
}

.post-meta i {
    color: var(--primary-color);
}

.post-content h2 {
    margin-bottom: var(--spacing-sm);
}

.post-content h2 a {
    color: var(--text-dark);
    transition: var(--transition-base);
}

.post-content h2 a:hover {
    color: var(--primary-color);
}

.post-content p {
    margin-bottom: var(--spacing-md);
    line-height: 1.8;
}

.read-more {
    color: var(--primary-color);
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: var(--spacing-xs);
}

.read-more:hover {
    gap: var(--spacing-sm);
}

.pagination {
    display: flex;
    justify-content: center;
    gap: var(--spacing-xs);
    margin-top: var(--spacing-lg);
}

.page-btn {
    padding: var(--spacing-sm) var(--spacing-md);
    background: white;
    border: 2px solid var(--bg-light);
    border-radius: 8px;
    color: var(--text-dark);
    font-weight: 500;
    transition: var(--transition-base);
    display: inline-flex;
    align-items: center;
    gap: var(--spacing-xs);
}

.page-btn:hover,
.page-btn.active {
    background: var(--gradient-primary);
    color: white;
    border-color: transparent;
}

/* Sidebar */
.blog-sidebar {
    min-width: 0;
}

.sidebar-widget {
    background: white;
    padding: var(--spacing-lg);
    border-radius: 12px;
    box-shadow: var(--shadow-md);
    margin-bottom: var(--spacing-md);
}

.sidebar-widget h3 {
    margin-bottom: var(--spacing-md);
    padding-bottom: var(--spacing-sm);
    border-bottom: 2px solid var(--bg-light);
}

.search-form {
    display: flex;
    gap: var(--spacing-xs);
}

.search-form input {
    flex: 1;
    padding: var(--spacing-sm);
    border: 2px solid var(--bg-light);
    border-radius: 8px;
    font-family: inherit;
}

.search-form button {
    padding: var(--spacing-sm) var(--spacing-md);
    background: var(--gradient-primary);
    color: white;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: var(--transition-base);
}

.search-form button:hover {
    opacity: 0.9;
}

.category-list li {
    margin-bottom: var(--spacing-xs);
}

.category-list a {
    display: flex;
    justify-content: space-between;
    color: var(--text-light);
    padding: var(--spacing-xs) 0;
    transition: var(--transition-base);
}

.category-list a:hover {
    color: var(--primary-color);
}

.category-list span {
    background: var(--bg-light);
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 0.85rem;
}

.recent-posts {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-md);
}

.recent-post {
    display: flex;
    gap: var(--spacing-sm);
}

.recent-post img {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border-radius: 8px;
    flex-shrink: 0;
}

.recent-post-content h4 {
    font-size: 1rem;
    margin-bottom: var(--spacing-xs);
}

.recent-post-content h4 a {
    color: var(--text-dark);
    transition: var(--transition-base);
}

.recent-post-content h4 a:hover {
    color: var(--primary-color);
}

.recent-post-content span {
    font-size: 0.85rem;
    color: var(--text-light);
}

.tags {
    display: flex;
    flex-wrap: wrap;
    gap: var(--spacing-xs);
}

.tag {
    padding: var(--spacing-xs) var(--spacing-sm);
    background: var(--bg-light);
    border-radius: 20px;
    font-size: 0.9rem;
    color: var(--text-light);
    transition: var(--transition-base);
}

.tag:hover {
    background: var(--gradient-primary);
    color: white;
}

/* ============================================
   Footer
   ============================================ */
.footer {
    background: var(--bg-dark);
    color: white;
    padding: var(--spacing-xl) 0 var(--spacing-md);
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: var(--spacing-lg);
    margin-bottom: var(--spacing-lg);
}

.footer-col h3,
.footer-col h4 {
    color: white;
    margin-bottom: var(--spacing-md);
}

.footer-col p {
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: var(--spacing-md);
}

.footer-col ul li {
    margin-bottom: var(--spacing-xs);
}

.footer-col ul li a {
    color: rgba(255, 255, 255, 0.7);
    transition: var(--transition-base);
}

.footer-col ul li a:hover {
    color: white;
    padding-right: var(--spacing-xs);
}

.contact-info li {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
    margin-bottom: var(--spacing-sm);
    color: rgba(255, 255, 255, 0.7);
}

.contact-info i {
    color: var(--primary-color);
}

.social-links {
    display: flex;
    gap: var(--spacing-sm);
    margin-top: var(--spacing-md);
}

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

.social-links a:hover {
    background: var(--primary-color);
    transform: translateY(-3px);
}

.footer-bottom {
    text-align: center;
    padding-top: var(--spacing-md);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.7);
}

/* ============================================
   GIF Hero Block
   ============================================ */
.gif-hero {
    position: relative;
    width: 100%;
    height: 100vh;
    min-height: 700px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: fadeIn 1s ease-in 0.5s both;
    margin-top: 80px;
    z-index: 1;
}

.gif-container {
    position: relative;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.gif-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    position: absolute;
    top: 0;
    left: 0;
    z-index: 3;
    background: linear-gradient(135deg, #260B51 0%, #623F9F 50%, #977CB8 100%);
    min-width: 70%;
    min-height: 100%;
    opacity: 1;
    transition: opacity 0.5s ease, transform 0.3s ease;
    filter: none;
    image-rendering: auto;
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
    transform-origin: center center;
    animation-play-state: running;
}

@keyframes gifReverse {
    0% {
        transform: scaleX(1);
    }
    100% {
        transform: scaleX(-1);
    }
}

.gif-title {
    animation: fadeInUp 1s ease-out 0.3s both;
}

.gif-overlay .btn {
    animation: fadeInUp 1s ease-out 0.6s both;
}

.gif-title {
    font-size: 4rem;
    color: white;
    margin-bottom: var(--spacing-lg);
    font-weight: 700;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
    position: relative;
    z-index: 10;
}


/* ============================================
   Hero Spheres - Inspired by GIF
   ============================================ */
.hero-spheres {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    pointer-events: none;
    overflow: hidden;
}

.sphere {
    position: absolute;
    border-radius: 50%;
    background: radial-gradient(circle at 30% 30%, rgba(98, 63, 159, 0.6), rgba(38, 11, 151, 0.3));
    filter: blur(40px);
    opacity: 0.7;
    animation: sphereFloat 20s ease-in-out infinite;
}

.sphere-1 {
    width: 300px;
    height: 300px;
    top: 10%;
    left: 10%;
    animation-delay: 0s;
    animation-duration: 25s;
}

.sphere-2 {
    width: 200px;
    height: 200px;
    top: 60%;
    right: 15%;
    animation-delay: 2s;
    animation-duration: 30s;
    background: radial-gradient(circle at 30% 30%, rgba(151, 124, 184, 0.5), rgba(98, 63, 159, 0.2));
}

.sphere-3 {
    width: 250px;
    height: 250px;
    bottom: 20%;
    left: 20%;
    animation-delay: 4s;
    animation-duration: 28s;
    background: radial-gradient(circle at 30% 30%, rgba(116, 78, 182, 0.6), rgba(61, 31, 111, 0.3));
}

.sphere-4 {
    width: 180px;
    height: 180px;
    top: 30%;
    right: 30%;
    animation-delay: 1s;
    animation-duration: 22s;
    background: radial-gradient(circle at 30% 30%, rgba(171, 148, 198, 0.5), rgba(116, 78, 182, 0.2));
}

.sphere-5 {
    width: 220px;
    height: 220px;
    bottom: 10%;
    right: 10%;
    animation-delay: 3s;
    animation-duration: 26s;
    background: radial-gradient(circle at 30% 30%, rgba(98, 63, 159, 0.5), rgba(38, 11, 81, 0.2));
}

.sphere-6 {
    width: 160px;
    height: 160px;
    top: 50%;
    left: 50%;
    animation-delay: 5s;
    animation-duration: 24s;
    background: radial-gradient(circle at 30% 30%, rgba(151, 124, 184, 0.4), rgba(98, 63, 159, 0.2));
}

@keyframes sphereFloat {
    0%, 100% {
        transform: translate(0, 0) scale(1);
    }
    25% {
        transform: translate(50px, -30px) scale(1.1);
    }
    50% {
        transform: translate(-30px, 50px) scale(0.9);
    }
    75% {
        transform: translate(30px, 30px) scale(1.05);
    }
}

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

.particle {
    position: absolute;
    width: 4px;
    height: 4px;
    background: rgba(98, 63, 159, 0.8);
    border-radius: 50%;
    box-shadow: 0 0 10px rgba(98, 63, 159, 0.6), 0 0 20px rgba(151, 124, 184, 0.4);
    animation: particleFloat 15s ease-in-out infinite;
}

.particle-1 {
    top: 20%;
    left: 15%;
    animation-delay: 0s;
    animation-duration: 12s;
}

.particle-2 {
    top: 40%;
    right: 20%;
    animation-delay: 2s;
    animation-duration: 14s;
    background: rgba(151, 124, 184, 0.8);
    box-shadow: 0 0 10px rgba(151, 124, 184, 0.6), 0 0 20px rgba(98, 63, 159, 0.4);
}

.particle-3 {
    bottom: 30%;
    left: 25%;
    animation-delay: 4s;
    animation-duration: 16s;
    background: rgba(116, 78, 182, 0.8);
    box-shadow: 0 0 10px rgba(116, 78, 182, 0.6), 0 0 20px rgba(151, 124, 184, 0.4);
}

.particle-4 {
    top: 60%;
    right: 15%;
    animation-delay: 1s;
    animation-duration: 13s;
}

.particle-5 {
    bottom: 20%;
    right: 30%;
    animation-delay: 3s;
    animation-duration: 15s;
    background: rgba(171, 148, 198, 0.8);
    box-shadow: 0 0 10px rgba(171, 148, 198, 0.6), 0 0 20px rgba(116, 78, 182, 0.4);
}

.particle-6 {
    top: 10%;
    left: 50%;
    animation-delay: 5s;
    animation-duration: 17s;
}

.particle-7 {
    bottom: 40%;
    left: 10%;
    animation-delay: 2.5s;
    animation-duration: 14s;
    background: rgba(98, 63, 159, 0.8);
}

.particle-8 {
    top: 70%;
    right: 40%;
    animation-delay: 4.5s;
    animation-duration: 16s;
    background: rgba(151, 124, 184, 0.8);
}

@keyframes particleFloat {
    0%, 100% {
        transform: translate(0, 0) scale(1);
        opacity: 0.6;
    }
    25% {
        transform: translate(30px, -40px) scale(1.2);
        opacity: 1;
    }
    50% {
        transform: translate(-20px, 30px) scale(0.8);
        opacity: 0.8;
    }
    75% {
        transform: translate(40px, 20px) scale(1.1);
        opacity: 0.9;
    }
}

/* ============================================
   Hero Orbs - Glowing Gradient Orbs
   ============================================ */
.hero-orbs {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    pointer-events: none;
    overflow: hidden;
}

.orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(60px);
    opacity: 0.4;
    animation: orbPulse 8s ease-in-out infinite;
}

.orb-1 {
    width: 400px;
    height: 400px;
    top: -100px;
    left: -100px;
    background: radial-gradient(circle, rgba(98, 63, 159, 0.8), rgba(38, 11, 81, 0.3));
    animation-delay: 0s;
}

.orb-2 {
    width: 350px;
    height: 350px;
    bottom: -80px;
    right: -80px;
    background: radial-gradient(circle, rgba(151, 124, 184, 0.7), rgba(98, 63, 159, 0.2));
    animation-delay: 2s;
}

.orb-3 {
    width: 300px;
    height: 300px;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: radial-gradient(circle, rgba(116, 78, 182, 0.6), rgba(61, 31, 111, 0.2));
    animation-delay: 4s;
}

@keyframes orbPulse {
    0%, 100% {
        transform: scale(1);
        opacity: 0.4;
    }
    50% {
        transform: scale(1.3);
        opacity: 0.6;
    }
}

/* Enhanced GIF Overlay with Glassmorphism */
.gif-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.2);
    backdrop-filter: none;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: var(--spacing-lg);
    animation: fadeIn 1s ease-in;
    z-index: 10;
}

/* Enhanced Button with Glow Effect */
.gif-overlay .btn {
    position: relative;
    overflow: hidden;
    box-shadow: 0 0 20px rgba(98, 63, 159, 0.5), 0 0 40px rgba(151, 124, 184, 0.3);
    transition: all 0.3s ease;
}

.gif-overlay .btn:hover {
    box-shadow: 0 0 30px rgba(98, 63, 159, 0.8), 0 0 60px rgba(151, 124, 184, 0.5);
    transform: translateY(-2px);
}

.gif-overlay .btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

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

/* ============================================
   Gradient Container
   ============================================ */
.gradient-container {
    background: linear-gradient(135deg, #f6f1ff 0%, #fcfbff 40%, #ffffff 100%);
    padding: var(--spacing-xl) 0;
    position: relative;
    margin: 0;
    border: none;
    box-shadow: none;
}

.gradient-content {
    position: relative;
    z-index: 1;
    animation: fadeInUp 1s ease-out;
    max-width: 900px;
    margin: 0 auto;
    text-align: center !important;
    padding: 0 var(--spacing-md);
    background: none !important;
    border: none;
    box-shadow: none;
}

[dir="ltr"] .gradient-content,
[dir="rtl"] .gradient-content {
    text-align: center !important;
}

.gradient-title {
    font-size: 3rem;
    margin-bottom: var(--spacing-md);
    color: #ffffff; /* العنوان أبيض بالكامل */
    font-weight: 700;
    text-align: center;
    direction: ltr;
}

.gradient-text {
    font-size: 1.2rem;
    line-height: 1.8;
    color: #ffffff; /* الوصف أبيض صافي */
    margin-bottom: var(--spacing-md);
    text-align: center;
    direction: ltr;
}

/* ============================================
   Services Slider
   ============================================ */
.services-slider {
    background: none !important;
    position: relative;
    overflow: hidden;
    z-index: 1;
    backdrop-filter: none;
}

.services-slider::before {
    display: none;
}

.services-slider-wrapper {
    position: relative;
    max-width: 1000px;
    margin: 0 auto;
}

.services-slider-container {
    position: relative;
    height: 500px;
    overflow: hidden;
    border-radius: 20px;
    box-shadow: var(--shadow-xl);
}

.service-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transform: translateX(100%);
    transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
    background: var(--gradient-primary);
    display: flex;
    align-items: center;
    justify-content: center;
}

.service-slide.active {
    opacity: 1;
    transform: translateX(0);
    z-index: 2;
}

.service-slide.prev {
    transform: translateX(-100%);
    z-index: 1;
}

.service-slide-content {
    text-align: center;
    color: white;
    padding: var(--spacing-xl);
    max-width: 700px;
}

.service-slide-icon {
    width: 120px;
    height: 120px;
    margin: 0 auto var(--spacing-lg);
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3.5rem;
    backdrop-filter: blur(10px);
    border: 3px solid rgba(255, 255, 255, 0.3);
    animation: pulse 2s ease-in-out infinite;
    transition: all 0.4s ease;
}

.service-slide.active .service-slide-icon {
    animation: zoomIn 0.8s ease-out, pulse 2s ease-in-out infinite 0.8s;
}

.service-slide h3 {
    font-size: 2.5rem;
    margin-bottom: var(--spacing-md);
    color: white;
    animation: fadeInUp 0.8s ease-out 0.2s both;
}

.service-slide.active h3 {
    animation: fadeInUp 0.8s ease-out;
}

.service-slide p {
    font-size: 1.3rem;
    line-height: 1.8;
    color: rgba(255, 255, 255, 0.95);
    animation: fadeInUp 0.8s ease-out 0.4s both;
}

.service-slide.active p {
    animation: fadeInUp 0.8s ease-out 0.2s;
}

.services-slider-nav {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--spacing-md);
    margin-top: var(--spacing-lg);
}

.slider-nav-btn {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: white;
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
    font-size: 1.2rem;
    cursor: pointer;
    transition: var(--transition-base);
    display: flex;
    align-items: center;
    justify-content: center;
}

.slider-nav-btn:hover {
    background: var(--primary-color);
    color: white;
    transform: scale(1.1);
}

.slider-dots {
    display: flex;
    gap: var(--spacing-xs);
}

.slider-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--bg-light);
    border: 2px solid var(--primary-color);
    cursor: pointer;
    transition: var(--transition-base);
}

.slider-dot.active {
    background: var(--primary-color);
    transform: scale(1.2);
}

/* ============================================
   Sub Services
   ============================================ */
.sub-services {
    background: none !important;
}

.sub-services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--spacing-md);
    margin-top: var(--spacing-lg);
}

.sub-service-card {
    background: none;
    padding: var(--spacing-xl);
    border-radius: 12px;
    text-align: center;
    box-shadow: none;
    transition: var(--transition-base);
    cursor: pointer;
    border: none;
}

.sub-service-card:hover {
    transform: translateY(-10px) scale(1.05);
    box-shadow: none;
    border-color: transparent;
}

.sub-service-icon {
    width: 100px;
    height: 100px;
    margin: 0 auto var(--spacing-md);
    background: var(--gradient-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    color: white;
    transition: var(--transition-base);
}

.sub-service-card:hover .sub-service-icon {
    transform: scale(1.1) rotate(5deg);
}

.sub-service-card h4 {
    color: var(--text-dark);
    font-size: 1.5rem;
    margin: 0;
    text-align: center;
}

.sub-service-card h4 {
    color: white;
}

/* ============================================
   Testimonials New Design
   ============================================ */
.testimonials-container {
    display: grid;
    gap: var(--spacing-xl);
    align-items: center;
    position: relative;
}

.testimonials-images {
    position: relative;
    height: 500px;
}

.testimonial-image-wrapper {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transform: scale(0.8);
    transition: var(--transition-slow);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: var(--shadow-xl);
}

.testimonial-image-wrapper.active {
    opacity: 1;
    transform: scale(1);
    z-index: 2;
}

.testimonial-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 20px;
}

.testimonial-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 20px;
}

.testimonials-content {
    position: relative;
    min-height: 160px;
    max-width: 1000px;
    width: 100%;
    margin: 0 auto;
    text-align: center;
    border: 1px solid rgba(151, 124, 184, 0.4); /* إطار مثل الخدمات الأساسية */
    border-radius: 16px;
    padding: var(--spacing-md) var(--spacing-xl);
    background: transparent;
    box-shadow: none; /* بدون توهج */
}

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

.testimonials-content .testimonial-item {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    opacity: 0;
    transform: translateX(30px);
    transition: var(--transition-base);
}

.testimonials-content .testimonial-item.active {
    opacity: 1;
    transform: translateX(0);
    position: relative;
}

.testimonials-nav {
    display: none;
    gap: var(--spacing-md);
    z-index: 10;
}

.testimonial-nav-btn {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: white;
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
    font-size: 1.2rem;
    cursor: pointer;
    transition: var(--transition-base);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-md);
}

.testimonial-nav-btn:hover {
    background: var(--primary-color);
    color: white;
    transform: scale(1.1);
}

/* ============================================
   Why Widespheres
   ============================================ */
.why-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: var(--spacing-md);
    margin-top: var(--spacing-lg);
}

.why-widespheres {
    background: none !important;
}

.why-card {
    background: none;
    backdrop-filter: none;
    border: none;
    padding: var(--spacing-lg);
    border-radius: 12px;
    box-shadow: none;
    text-align: center;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    cursor: pointer;
}


.why-card:hover {
    transform: translateY(-10px) scale(1.03);
    box-shadow: 0 10px 30px rgba(98, 63, 159, 0.2);
}

.why-card:hover .why-icon {
    transform: scale(1.15) rotate(5deg);
    box-shadow: 0 8px 25px rgba(98, 63, 159, 0.4);
}

.why-card:hover h3 {
    color: var(--primary-color);
    transform: translateY(-2px);
}

.why-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto var(--spacing-md);
    background: var(--gradient-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: white;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
}

.why-icon i {
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.why-card:hover .why-icon i {
    transform: scale(1.1);
}

.why-card h3 {
    margin-bottom: var(--spacing-sm);
    color: var(--text-dark);
    transition: all 0.3s ease;
}

.why-card p {
    color: var(--text-light);
    line-height: 1.8;
    transition: all 0.3s ease;
}

.why-card:hover p {
    transform: translateY(-2px);
}

/* ============================================
   Footer Background Image
   ============================================ */
.footer {
    position: relative;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    animation: fadeIn 1s ease-in;
}

.footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, transparent 30%, rgba(98, 63, 159, 0.15) 50%, transparent 70%);
    background-size: 200% 200%;
    animation: shimmer 3s infinite;
    pointer-events: none;
    z-index: 1;
}

.footer-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(17, 24, 39, 0.85);
    z-index: 2;
}

.footer .container {
    position: relative;
    z-index: 3;
}

.footer-col {
    animation: fadeInUp 0.8s ease-out;
}

.footer-col:nth-child(1) {
    animation-delay: 0.1s;
}

.footer-col:nth-child(2) {
    animation-delay: 0.2s;
}

.footer-col:nth-child(3) {
    animation-delay: 0.3s;
}

/* ============================================
   Responsive Design
   ============================================ */
@media (max-width: 1024px) {
    .about-grid,
    .contact-wrapper,
    .blog-wrapper {
        grid-template-columns: 1fr;
    }
    
    .hero-title {
        font-size: 3rem;
    }
}

@media (max-width: 768px) {
    .nav-menu {
        position: fixed;
        top: 70px;
        right: -100%;
        width: 100%;
        height: calc(100vh - 70px);
        background: white;
        flex-direction: column;
        padding: var(--spacing-lg);
        box-shadow: var(--shadow-lg);
        transition: var(--transition-base);
    }
    
    .nav-menu.active {
        right: 0;
    }
    
    .nav-toggle {
        display: flex;
    }
    
    .nav-toggle.active span:nth-child(1) {
        transform: rotate(45deg) translate(8px, 8px);
    }
    
    .nav-toggle.active span:nth-child(2) {
        opacity: 0;
    }
    
    .nav-toggle.active span:nth-child(3) {
        transform: rotate(-45deg) translate(7px, -7px);
    }
    
    .hero-title {
        font-size: 2.5rem;
    }
    
    .hero-description {
        font-size: 1rem;
    }
    
    h1 {
        font-size: 2.5rem;
    }
    
    h2 {
        font-size: 2rem;
    }
    
    .page-header h1 {
        font-size: 2.5rem;
    }
    
    .portfolio-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .services-grid,
    .values-grid,
    .team-grid {
        grid-template-columns: 1fr;
    }
    
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .gif-hero {
        height: 60vh;
        min-height: 400px;
    }
    
    .gif-title {
        font-size: 2.5rem;
    }
    
    /* Responsive Spheres */
    .sphere {
        filter: blur(30px);
        opacity: 0.5;
    }
    
    .sphere-1, .sphere-3, .sphere-5 {
        width: 150px;
        height: 150px;
    }
    
    .sphere-2, .sphere-4, .sphere-6 {
        width: 100px;
        height: 100px;
    }
    
    /* Responsive Particles */
    .particle {
        width: 3px;
        height: 3px;
    }
    
    /* Responsive Orbs */
    .orb {
        filter: blur(40px);
        opacity: 0.3;
    }
    
    .orb-1 {
        width: 200px;
        height: 200px;
    }
    
    .orb-2 {
        width: 180px;
        height: 180px;
    }
    
    .orb-3 {
        width: 150px;
        height: 150px;
    }
    
    .gradient-title {
        font-size: 2rem;
    }
    
    .gradient-text {
        font-size: 1rem;
    }
    
    .services-slider-container {
        height: 400px;
    }
    
    .service-slide h3 {
        font-size: 2rem;
    }
    
    .service-slide p {
        font-size: 1.1rem;
    }
    
    .testimonials-container {
        grid-template-columns: 1fr;
    }
    
    .testimonials-images {
        height: 300px;
        margin-bottom: var(--spacing-lg);
    }
    
    .sub-services-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .why-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 2rem;
    }
    
    .hero-buttons {
        flex-direction: column;
        width: 100%;
    }
    
    .hero-buttons .btn {
        width: 100%;
    }
    
    .stats-grid {
        grid-template-columns: 1fr;
    }
    
    .testimonial-text {
        font-size: 1.1rem;
    }
    
    .gif-title {
        font-size: 2rem;
    }
    
    .gradient-title {
        font-size: 1.5rem;
    }
    
    .services-slider-container {
        height: 350px;
    }
    
    .service-slide-icon {
        width: 80px;
        height: 80px;
        font-size: 2.5rem;
    }
    
    .service-slide h3 {
        font-size: 1.5rem;
    }
    
    .sub-services-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* ============================================
   Advanced Animations
   ============================================ */

/* Keyframes */
@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

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

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

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

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

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

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

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

@keyframes rotateIn {
    from {
        transform: rotate(-10deg);
        opacity: 0;
    }
    to {
        transform: rotate(0);
        opacity: 1;
    }
}

@keyframes zoomIn {
    from {
        transform: scale(0.5);
        opacity: 0;
    }
    to {
        transform: scale(1);
        opacity: 1;
    }
}

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

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
}

@keyframes shake {
    0%, 100% {
        transform: translateX(0);
    }
    10%, 30%, 50%, 70%, 90% {
        transform: translateX(-5px);
    }
    20%, 40%, 60%, 80% {
        transform: translateX(5px);
    }
}

@keyframes float {
    0%, 100% {
        transform: translateY(0) rotate(0deg);
    }
    50% {
        transform: translateY(-30px) rotate(180deg);
    }
}

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

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

@keyframes typing {
    from {
        width: 0;
    }
    to {
        width: 100%;
    }
}

@keyframes blink {
    0%, 50% {
        border-color: transparent;
    }
    51%, 100% {
        border-color: currentColor;
    }
}

/* Scroll Animations */
[data-aos] {
    opacity: 0;
    transition: opacity 0.8s cubic-bezier(0.4, 0, 0.2, 1), 
                transform 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

[data-aos].aos-animate {
    opacity: 1;
}

[data-aos="fade-up"] {
    transform: translateY(50px);
}

[data-aos="fade-up"].aos-animate {
    transform: translateY(0);
    animation: fadeInUp 0.8s ease-out;
}

[data-aos="fade-down"] {
    transform: translateY(-50px);
}

[data-aos="fade-down"].aos-animate {
    transform: translateY(0);
    animation: fadeInDown 0.8s ease-out;
}

[data-aos="fade-left"] {
    transform: translateX(-50px);
}

[data-aos="fade-left"].aos-animate {
    transform: translateX(0);
    animation: fadeInLeft 0.8s ease-out;
}

[data-aos="fade-right"] {
    transform: translateX(50px);
}

[data-aos="fade-right"].aos-animate {
    transform: translateX(0);
    animation: fadeInRight 0.8s ease-out;
}

[data-aos="zoom-in"] {
    transform: scale(0.8);
}

[data-aos="zoom-in"].aos-animate {
    transform: scale(1);
    animation: zoomIn 0.8s ease-out;
}

[data-aos="slide-up"] {
    transform: translateY(100px);
}

[data-aos="slide-up"].aos-animate {
    transform: translateY(0);
    animation: slideInUp 0.8s ease-out;
}

[data-aos="rotate-in"] {
    transform: rotate(-10deg) scale(0.8);
}

[data-aos="rotate-in"].aos-animate {
    transform: rotate(0) scale(1);
    animation: rotateIn 0.8s ease-out;
}

/* Page Load Animation */
.page-load {
    animation: fadeIn 0.6s ease-in;
}

/* Hero Animations */
.hero-content {
    animation: fadeInUp 1s ease-out;
}

.hero-title .highlight,
.hero-title .gradient-text,
.hero-title .accent {
    animation: fadeInUp 1s ease-out;
    animation-fill-mode: both;
}

.hero-title .highlight {
    animation-delay: 0.2s;
}

.hero-title .gradient-text {
    animation-delay: 0.4s;
}

.hero-title .accent {
    animation-delay: 0.6s;
}

.hero-description {
    animation: fadeInUp 1s ease-out 0.8s both;
}

.hero-buttons {
    animation: fadeInUp 1s ease-out 1s both;
}

/* Button Animations */
.btn {
    position: relative;
    overflow: hidden;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

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

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(99, 102, 241, 0.4);
}

.btn-secondary:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(99, 102, 241, 0.3);
}

/* Card Animations */
.service-card,
.value-card,
.team-member,
.blog-post,
.sub-service-card,
.why-card {
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    transform-origin: center;
}

.service-card:hover,
.value-card:hover,
.team-member:hover,
.blog-post:hover,
.sub-service-card:hover,
.why-card:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

/* Icon Animations */
.service-icon,
.value-icon,
.why-icon,
.sub-service-icon {
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.service-card:hover .service-icon,
.value-card:hover .value-icon,
.why-card:hover .why-icon,
.sub-service-card:hover .sub-service-icon {
    transform: scale(1.1) rotate(5deg);
    animation: pulse 1s ease-in-out infinite;
}

/* Portfolio Animations */
.portfolio-item {
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    transform-origin: center;
}

.portfolio-item:hover {
    transform: scale(1.05);
    z-index: 10;
}

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

.portfolio-item:hover .portfolio-overlay {
    animation: fadeIn 0.4s ease-out;
}

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

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

/* Stats Counter Animation */
.stat-number {
    transition: all 0.3s ease;
}

.stat-item:hover .stat-number {
    transform: scale(1.1);
    color: rgba(255, 255, 255, 1);
}

/* Testimonial Animations */
.testimonial-item {
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.testimonial-item.active {
    animation: fadeInUp 0.6s ease-out;
}

.testimonial-image-wrapper {
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.testimonial-image-wrapper.active {
    animation: scaleIn 0.6s ease-out;
}

/* Navbar Animations */
.navbar {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.nav-menu a {
    position: relative;
    transition: all 0.3s ease;
}

.nav-menu a::after {
    content: '';
    position: absolute;
    bottom: 0;
    right: 0;
    width: 0;
    height: 2px;
    background: var(--gradient-primary);
    transition: width 0.3s ease;
}

.nav-menu a:hover::after,
.nav-menu a.active::after {
    width: 100%;
}

.nav-menu a:hover {
    transform: translateY(-2px);
}

/* Form Animations */
.form-group input:focus,
.form-group textarea:focus {
    animation: pulse 0.5s ease;
    transform: scale(1.02);
}

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

.loading {
    animation: spin 1s linear infinite;
}

/* Shimmer Effect */
.shimmer {
    background: linear-gradient(
        90deg,
        rgba(255, 255, 255, 0) 0%,
        rgba(255, 255, 255, 0.3) 50%,
        rgba(255, 255, 255, 0) 100%
    );
    background-size: 1000px 100%;
    animation: shimmer 2s infinite;
}

/* Parallax Effect */
.parallax {
    transition: transform 0.3s ease-out;
}

/* Smooth Appear */
.smooth-appear {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.smooth-appear.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Stagger Animation */
.stagger-item {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.stagger-item.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Hover Lift Effect */
.hover-lift {
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

/* Ripple Effect */
.ripple {
    position: relative;
    overflow: hidden;
}

.ripple-effect {
    position: absolute;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.6);
    transform: scale(0);
    animation: ripple-animation 0.6s ease-out;
    pointer-events: none;
}

@keyframes ripple-animation {
    to {
        transform: scale(4);
        opacity: 0;
    }
}

/* Text Reveal Animation */
.text-reveal {
    overflow: hidden;
}

.text-reveal span {
    display: inline-block;
    opacity: 0;
    transform: translateY(100%);
    animation: slideInUp 0.6s ease forwards;
}

/* Section Entrance */
.section-padding {
    position: relative;
    animation: fadeIn 0.8s ease-out;
}

.section-padding::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 1px;
    background: var(--gradient-primary);
    transform: scaleX(0);
    transition: transform 0.8s ease;
}

.section-padding.visible::before {
    transform: scaleX(1);
}

/* Smooth scroll behavior */
html {
    scroll-behavior: smooth;
}

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

.loader {
    border: 3px solid rgba(99, 102, 241, 0.1);
    border-top: 3px solid var(--primary-color);
    border-radius: 50%;
    width: 40px;
    height: 40px;
    animation: spin 1s linear infinite;
}

/* Fade in on scroll */
.fade-in-on-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

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

/* Scale on hover */
.scale-on-hover {
    transition: transform 0.3s ease;
}

.scale-on-hover:hover {
    transform: scale(1.05);
}

/* Glow effect */
.glow {
    transition: box-shadow 0.3s ease;
}

.glow:hover {
    box-shadow: 0 0 20px rgba(99, 102, 241, 0.5);
}

/* Slide in from sides */
.slide-in-left {
    animation: fadeInLeft 0.8s ease-out;
}

.slide-in-right {
    animation: fadeInRight 0.8s ease-out;
}

/* Rotate on hover */
.rotate-on-hover {
    transition: transform 0.3s ease;
}

.rotate-on-hover:hover {
    transform: rotate(5deg);
}

/* Shake animation on error */
.shake {
    animation: shake 0.5s ease;
}

/* Bounce animation */
.bounce-animation {
    animation: bounce 1s ease infinite;
}

/* Pulse animation */
.pulse-animation {
    animation: pulse 2s ease infinite;
}

/* ============================================
   Dark Theme (Default) - Variables already set in :root above
   ============================================ */

body {
    background-color: var(--bg-dark);
    color: var(--text-dark);
}

.navbar {
    background: rgba(17, 24, 39, 0.95);
    box-shadow: var(--shadow-md);
}

.service-card,
.value-card,
.team-member,
.blog-post,
.sidebar-widget,
.sub-service-card,
.why-card {
    background: var(--bg-light);
    color: var(--text-dark);
}

.bg-light {
    background-color: var(--bg-light);
}

.portfolio-item,
.contact-form-wrapper {
    background: var(--bg-light);
}

.form-group input,
.form-group textarea,
.search-form input {
    background: var(--bg-dark);
    border-color: var(--bg-light);
    color: var(--text-dark);
}

.filter-btn,
.page-btn {
    background: var(--bg-light);
    border-color: var(--bg-light);
    color: var(--text-dark);
}

.filter-btn:hover,
.filter-btn.active,
.page-btn:hover,
.page-btn.active {
    background: var(--gradient-primary);
    color: white;
}

.gradient-container {
    background: none !important;
}

.btn-secondary {
    border-color: var(--primary-light);
    color: var(--primary-light);
}

.btn-secondary:hover {
    background: var(--primary-light);
    color: white;
}

.nav-menu a {
    color: var(--text-dark);
}

.nav-menu a:hover,
.nav-menu a.active {
    color: var(--primary-light);
}

/* Theme Toggle Button - Hidden (Dark theme only) */
.theme-toggle {
    display: none !important;
}

/* ============================================
   Settings Page
   ============================================ */
.settings-wrapper {
    max-width: 900px;
    margin: 0 auto;
}

.settings-card {
    background: var(--bg-light);
    border-radius: 16px;
    box-shadow: var(--shadow-lg);
    margin-bottom: var(--spacing-lg);
    overflow: hidden;
    transition: var(--transition-base);
}

.settings-card:hover {
    box-shadow: var(--shadow-xl);
    transform: translateY(-2px);
}

.settings-card-header {
    display: flex;
    align-items: center;
    gap: var(--spacing-md);
    padding: var(--spacing-lg);
    border-bottom: 2px solid var(--bg-dark);
}

.settings-icon {
    width: 60px;
    height: 60px;
    background: var(--gradient-primary);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: white;
    flex-shrink: 0;
}

.settings-title h3 {
    margin-bottom: var(--spacing-xs);
    color: var(--text-dark);
}

.settings-title p {
    color: var(--text-light);
    margin: 0;
    font-size: 0.9rem;
}

.settings-card-body {
    padding: var(--spacing-lg);
}

/* Theme Options */
.theme-options {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: var(--spacing-md);
}

.theme-option {
    position: relative;
    border: 2px solid var(--bg-light);
    border-radius: 12px;
    padding: var(--spacing-md);
    cursor: pointer;
    transition: var(--transition-base);
}

.theme-option {
    border-color: var(--bg-dark);
}

.theme-option:hover {
    border-color: var(--primary-color);
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
}

.theme-option.active {
    border-color: var(--primary-color);
    background: rgba(99, 102, 241, 0.1);
}

.theme-preview {
    width: 100%;
    height: 120px;
    border-radius: 8px;
    margin-bottom: var(--spacing-sm);
    overflow: hidden;
    position: relative;
}

.light-preview {
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
}

.dark-preview {
    background: linear-gradient(135deg, #1f2937 0%, #111827 100%);
}

.auto-preview {
    background: linear-gradient(90deg, #f5f7fa 0%, #f5f7fa 50%, #1f2937 50%, #1f2937 100%);
}

.preview-header {
    height: 30%;
    background: rgba(99, 102, 241, 0.3);
}

.preview-content {
    height: 70%;
    background: rgba(0, 0, 0, 0.1);
}

.theme-label {
    display: flex;
    align-items: center;
    gap: var(--spacing-xs);
    justify-content: center;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: var(--spacing-xs);
}

.theme-radio {
    text-align: center;
}

.theme-radio input[type="radio"] {
    width: 20px;
    height: 20px;
    cursor: pointer;
    accent-color: var(--primary-color);
}

/* Language Options */
.language-options {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-md);
}

.language-option {
    display: flex;
    align-items: center;
    gap: var(--spacing-md);
    padding: var(--spacing-md);
    border: 2px solid var(--bg-light);
    border-radius: 12px;
    cursor: pointer;
    transition: var(--transition-base);
}

.language-option {
    border-color: var(--bg-dark);
}

.language-option:hover {
    border-color: var(--primary-color);
    transform: translateX(-5px);
    box-shadow: var(--shadow-md);
}

.language-option.active {
    border-color: var(--primary-color);
    background: rgba(99, 102, 241, 0.1);
}

.language-flag {
    font-size: 2.5rem;
    flex-shrink: 0;
}

.language-info {
    flex: 1;
}

.language-info h4 {
    margin-bottom: var(--spacing-xs);
    color: var(--text-dark);
}

.language-info p {
    color: var(--text-light);
    margin: 0;
    font-size: 0.9rem;
}

.language-radio input[type="radio"] {
    width: 20px;
    height: 20px;
    cursor: pointer;
    accent-color: var(--primary-color);
}

/* Quick Actions */
.quick-actions {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-sm);
}

.action-btn {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
    padding: var(--spacing-md);
    background: var(--bg-light);
    border: 2px solid var(--bg-light);
    border-radius: 12px;
    color: var(--text-dark);
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition-base);
    text-align: right;
    width: 100%;
}

.action-btn {
    background: var(--bg-dark);
    border-color: var(--bg-dark);
}

.action-btn:hover {
    border-color: var(--primary-color);
    background: rgba(99, 102, 241, 0.1);
    transform: translateX(-5px);
}

.action-btn i {
    color: var(--primary-color);
    font-size: 1.2rem;
}

@media (max-width: 768px) {
    .theme-options {
        grid-template-columns: 1fr;
    }
    
    .theme-toggle {
        margin-right: 0;
    }
}

/* ============================================
   Products Logos Section - Galaxy Layout
   ============================================ */
.products-section {
    position: relative;
    z-index: 1;
    min-height: auto; /* Changed from 800px to auto for dynamic height */
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    /* Dynamic padding based on products count */
    padding-top: clamp(40px, calc(40px + var(--products-count, 0) * 3px), 120px) !important;
    padding-bottom: clamp(40px, calc(40px + var(--products-count, 0) * 3px), 120px) !important;
}

/* Dynamic header margin based on products count */
.products-section-header {
    margin-bottom: clamp(40px, calc(40px + var(--products-count, 0) * 5px), 120px) !important;
}

.products-logos-container {
    position: relative;
    width: 100%;
    max-width: 1400px;
    height: clamp(200px, calc(200px + var(--num-orbits, 1) * 80px),400px);
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Galaxy Background Effect */
.galaxy-background {
    position: absolute;
    inset: 0;
    background: 
        radial-gradient(ellipse at 50% 50%, rgba(151, 124, 184, 0.15) 0%, transparent 60%),
        radial-gradient(ellipse at 30% 40%, rgba(98, 63, 159, 0.1) 0%, transparent 50%),
        radial-gradient(ellipse at 70% 60%, rgba(151, 124, 184, 0.08) 0%, transparent 50%);
    pointer-events: none;
    z-index: 0;
}

.galaxy-background::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: 
        radial-gradient(1px 1px at 20% 30%, rgba(255,255,255,0.8), transparent),
        radial-gradient(1px 1px at 40% 50%, rgba(255,255,255,0.6), transparent),
        radial-gradient(1px 1px at 60% 20%, rgba(255,255,255,0.7), transparent),
        radial-gradient(1px 1px at 80% 70%, rgba(255,255,255,0.5), transparent),
        radial-gradient(1px 1px at 30% 80%, rgba(255,255,255,0.6), transparent),
        radial-gradient(1px 1px at 70% 40%, rgba(255,255,255,0.7), transparent),
        radial-gradient(1px 1px at 50% 60%, rgba(255,255,255,0.8), transparent),
        radial-gradient(1px 1px at 90% 30%, rgba(255,255,255,0.5), transparent);
    background-size: 100% 100%;
    opacity: 0.6;
}

/* Widespheres Logo in Center - Galaxy Core */
.widespheres-logo-center {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 10;
    width: 90px;
    height: 90px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.center-logo {
    width: 100%;
    height: 100%;
    object-fit: contain;
    filter: drop-shadow(0 0 40px rgba(151, 124, 184, 0.9));
    z-index: 2;
    position: relative;
}

.galaxy-core-glow {
    position: absolute;
    inset: -30px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(151, 124, 184, 0.3) 0%, rgba(98, 63, 159, 0.15) 40%, transparent 70%);
    z-index: 1;
    pointer-events: none;
}

/* Multiple Circular Orbits - Galaxy Structure */
.elliptical-orbit {
    position: absolute;
    top: 50%;
    left: 50%;
    width: calc(var(--orbit-radius) * 2);
    height: calc(var(--orbit-radius) * 2);
    margin-top: calc(var(--orbit-radius) * -1);
    margin-left: calc(var(--orbit-radius) * -1);
    border: 1px dashed rgba(151, 124, 184, 0.3);
    border-radius: 50%;
    pointer-events: none;
    z-index: 2;
    transform: translate(0, 0);
    opacity: 0.6;
}

/* Product Logo Items - Galaxy Stars Distribution */
.product-logo-item {
    position: absolute;
    transform: translate(-50%, -50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 5;
    /* No animations - completely fixed */
}

/* Product Logo Items - Galaxy Stars Distribution */
.product-logo-item {
    position: absolute;
    transform: translate(-50%, -50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 5;
    /* No animations - completely fixed */
}

.product-logo-item.galaxy-star {
    filter: drop-shadow(0 0 8px rgba(151, 124, 184, 0.4));
}

.product-logo-item:hover {
    filter: drop-shadow(0 0 25px rgba(151, 124, 184, 0.9));
    z-index: 15;
    transform: translate(-50%, -50%) scale(1.1);
}

.product-logo-icon {
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(151, 124, 184, 0.2);
    border-radius: 50%;
    border: 2px solid rgba(151, 124, 184, 0.5);
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
    box-shadow: 0 0 15px rgba(151, 124, 184, 0.3);
}

.product-logo-item:hover .product-logo-icon {
    background: rgba(151, 124, 184, 0.25);
    border-color: rgba(151, 124, 184, 0.7);
    box-shadow: 0 0 25px rgba(151, 124, 184, 0.5);
}

.product-logo-icon i {
    font-size: 1.5rem;
    color: #fff;
    text-shadow: 0 0 10px rgba(151, 124, 184, 0.8);
}

.product-logo-image {
    width: 100%;
    height: 100%;
    object-fit: contain;
    filter: drop-shadow(0 0 8px rgba(151, 124, 184, 0.6));
}

.product-logo-name {
    display: none; /* إخفاء الأسماء */
}

/* Product Dialog Modal */
.product-dialog-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.65);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 9999;
}

.product-dialog-overlay.active {
    display: flex;
}

.product-dialog {
    position: relative;
    max-width: 520px;
    width: 100%;
    background: rgba(10, 10, 26, 0.98);
    border-radius: 20px;
    padding: 2.5rem 2rem 2rem;
    box-shadow: 0 25px 60px rgba(0,0,0,0.7);
    border: 1px solid rgba(151, 124, 184, 0.5);
}

.product-dialog::before {
    content: '';
    position: absolute;
    inset: -1px;
    border-radius: inherit;
    background: radial-gradient(circle at top, rgba(151,124,184,0.3), transparent 60%);
    opacity: 0.8;
    pointer-events: none;
    z-index: -1;
}

.product-dialog-close {
    position: absolute;
    top: 10px;
    left: 10px;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: none;
    background: rgba(255,255,255,0.08);
    color: #fff;
    font-size: 1.4rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s ease, transform 0.2s ease;
}

.product-dialog-close:hover {
    background: rgba(255,255,255,0.18);
    transform: scale(1.05);
}

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

.product-dialog-title {
    font-size: 1.6rem;
    margin-bottom: 1rem;
    background: linear-gradient(135deg, #fff, #977CB8);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.product-dialog-description {
    font-size: 1rem;
    line-height: 1.8;
    color: rgba(255,255,255,0.85);
    margin-bottom: 1.8rem;
}

.product-dialog-btn {
    min-width: 180px;
}

/* Space Background Effects for Products Section */
.products-section::before {
    content: '';
    position: absolute;
    inset: 0;
    background: 
        radial-gradient(circle at 20% 30%, rgba(151, 124, 184, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 70%, rgba(98, 63, 159, 0.1) 0%, transparent 50%);
    pointer-events: none;
    z-index: 0;
}

/* Stars in Products Section */
.products-section::after {
    content: '';
    position: absolute;
    inset: 0;
    background-image: 
        radial-gradient(2px 2px at 10% 20%, rgba(255,255,255,0.8), transparent),
        radial-gradient(1px 1px at 30% 40%, rgba(255,255,255,0.6), transparent),
        radial-gradient(2px 2px at 50% 60%, rgba(255,255,255,0.8), transparent),
        radial-gradient(1px 1px at 70% 80%, rgba(255,255,255,0.6), transparent),
        radial-gradient(2px 2px at 90% 30%, rgba(255,255,255,0.8), transparent);
    background-size: 100% 100%;
    animation: starsTwinkle 4s ease-in-out infinite;
    pointer-events: none;
    z-index: 0;
}

@keyframes starsTwinkle {
    0%, 100% { opacity: 0.6; }
    50% { opacity: 1; }
}

/* Dynamic spacing for products section - responsive */
@media (max-width: 768px) {
    .products-section {
        padding-top: clamp(30px, calc(30px + var(--products-count, 0) * 2px), 80px) !important;
        padding-bottom: clamp(30px, calc(30px + var(--products-count, 0) * 2px), 80px) !important;
    }
    
    .products-section-header {
        margin-bottom: clamp(20px, calc(20px + var(--products-count, 0) * 3px), 60px) !important;
    }
    
    .products-logos-container {
        height: clamp(400px, calc(350px + var(--num-orbits, 1) * 50px), 700px) !important;
    }
    
    .widespheres-logo-center {
        width: 80px;
        height: 80px;
    }
    
    .product-logo-item {
        --radius: 160px !important;
    }
    
    .product-logo-icon {
        width: 50px;
        height: 50px;
    }
    
    .product-logo-icon i {
        font-size: 1.2rem;
    }
    
    .product-logo-name {
        font-size: 0.75rem;
    }
}

/* ============================================
   Partners Section
   ============================================ */
.partners-section {
    position: relative;
    z-index: 1;
    background: rgba(10, 10, 26, 0.5);
    padding: 80px 0;
}

.partners-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 40px;
    max-width: 1200px;
    margin: 0 auto;
    align-items: center;
    justify-items: center;
}

.partner-item {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    transition: transform 0.3s ease;
}

.partner-logo {
    max-width: 100%;
    max-height: 80px;
    width: auto;
    height: auto;
    object-fit: contain;
    filter: grayscale(100%);
    opacity: 0.7;
    transition: all 0.4s ease;
}

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

@media (max-width: 768px) {
    .partners-grid {
        grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
        gap: 30px;
    }
    
    .partner-logo {
        max-height: 60px;
    }
    
    .partner-item {
        padding: 15px;
    }
}