/* ================================================
   Phlegon World - Modern English LTR Website
   ================================================ */

/* CSS Variables - Refined Moon Theme */
:root {
    /* Colors - Richer purple/indigo palette */
    --primary: #7c3aed;
    --primary-dark: #6d28d9;
    --primary-light: #a78bfa;
    --secondary: #8b5cf6;
    --accent: #c4b5fd;
    --accent-soft: #e9d5ff;
    
    --dark: #030712;
    --dark-secondary: #0f0a1a;
    --dark-tertiary: #1e1b4b;
    
    --light: #f8fafc;
    --light-secondary: #e2e8f0;
    --light-tertiary: #cbd5e1;
    
    --text-dark: #0f172a;
    --text-light: #f1f5f9;
    --text-muted: #94a3b8;
    --text-bright: #ffffff;
    
    --gradient-1: linear-gradient(135deg, #7c3aed 0%, #5b21b6 100%);
    --gradient-2: linear-gradient(135deg, #a78bfa 0%, #7c3aed 100%);
    --gradient-3: linear-gradient(135deg, #818cf8 0%, #6366f1 50%, #7c3aed 100%);
    
    /* Shadows */
    --shadow-sm: 0 1px 2px 0 rgba(124, 58, 237, 0.06);
    --shadow-md: 0 4px 6px -1px rgba(124, 58, 237, 0.12), 0 2px 4px -1px rgba(124, 58, 237, 0.08);
    --shadow-lg: 0 10px 15px -3px rgba(124, 58, 237, 0.15), 0 4px 6px -2px rgba(124, 58, 237, 0.08);
    --shadow-xl: 0 20px 25px -5px rgba(124, 58, 237, 0.18), 0 10px 10px -5px rgba(124, 58, 237, 0.06);
    --shadow-glow: 0 0 50px rgba(124, 58, 237, 0.35);
    
    /* Transitions */
    --transition-fast: 0.15s ease;
    --transition-base: 0.3s ease;
    --transition-slow: 0.5s ease;
    
    /* Border Radius */
    --radius-sm: 0.375rem;
    --radius-md: 0.5rem;
    --radius-lg: 1rem;
    --radius-xl: 1.5rem;
    --radius-full: 9999px;
    
    /* Spacing */
    --space-xs: 0.5rem;
    --space-sm: 1rem;
    --space-md: 1.5rem;
    --space-lg: 2rem;
    --space-xl: 3rem;
    --space-2xl: 4rem;
    --space-3xl: 6rem;
    
    /* Typography */
    --font-primary: 'Cairo', 'Inter', system-ui, sans-serif;
    --font-heading: 'Cairo', 'Poppins', var(--font-primary);
}

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

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--font-primary);
    font-size: 1rem;
    font-weight: 400;
    letter-spacing: 0.01em;
    background-color: var(--dark);
    background-image: url('../backrond.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: fixed;
    color: var(--text-light);
    line-height: 1.65;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 600;
    letter-spacing: -0.02em;
    line-height: 1.3;
}

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

ul {
    list-style: none;
}

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

button {
    font-family: inherit;
    cursor: pointer;
    border: none;
    background: none;
}

/* Container */
.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 var(--space-lg);
}

/* Section Styles */
section {
    padding: var(--space-3xl) 0;
    position: relative;
}

/* Section Header */
.section-header {
    text-align: center;
    margin-bottom: var(--space-2xl);
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.section-tag {
    display: inline-block;
    padding: var(--space-xs) var(--space-md);
    background: var(--gradient-1);
    color: white;
    font-size: 0.875rem;
    font-weight: 600;
    border-radius: var(--radius-full);
    margin-bottom: var(--space-md);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: var(--space-md);
    background: linear-gradient(135deg, var(--text-light) 0%, var(--primary-light) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.section-desc {
    font-size: 1.125rem;
    color: var(--text-muted);
    line-height: 1.8;
}

/* ================================================
   NAVIGATION
   ================================================ */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: var(--space-md) 0;
    transition: var(--transition-base);
    background: #1a0a2e;
}

.navbar.scrolled {
    background: rgba(26, 10, 46, 0.95);
    backdrop-filter: blur(20px);
    box-shadow: var(--shadow-lg);
    padding: var(--space-sm) 0;
}

.nav-container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 var(--space-lg);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-light);
}

.logo-icon {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--gradient-1);
    border-radius: var(--radius-md);
    font-size: 1.25rem;
}

.logo-text {
    background: var(--gradient-1);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: var(--space-xl);
}

.nav-link {
    font-size: 1rem;
    font-weight: 500;
    color: var(--text-light);
    position: relative;
    padding: var(--space-xs) 0;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--gradient-1);
    transition: var(--transition-base);
}

.nav-link:hover::after {
    width: 100%;
}

.nav-link:hover {
    color: var(--primary-light);
}

.nav-cta {
    margin-left: var(--space-md);
}

.btn-nav {
    padding: var(--space-sm) var(--space-lg);
    background: var(--gradient-1);
    color: white;
    font-weight: 600;
    border-radius: var(--radius-full);
    transition: var(--transition-base);
    box-shadow: var(--shadow-md);
}

.btn-nav:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-glow);
}

/* Hamburger Menu */
.hamburger {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 44px;
    height: 44px;
    padding: var(--space-sm);
    cursor: pointer;
    z-index: 1002;
    position: relative;
    border-radius: var(--radius-md);
    transition: var(--transition-base);
}
.hamburger:hover {
    background: rgba(139, 92, 246, 0.15);
}
.hamburger:focus-visible {
    outline: 2px solid var(--primary-light);
    outline-offset: 2px;
}

.hamburger span {
    width: 25px;
    height: 3px;
    background: var(--text-light);
    border-radius: var(--radius-full);
    transition: var(--transition-base);
}

.hamburger.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.hamburger.active span:nth-child(2) {
    opacity: 0;
}

.hamburger.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -6px);
}

/* Mobile Menu */
.mobile-menu {
    position: fixed;
    top: 0;
    right: -100%;
    width: 100%;
    max-width: 400px;
    height: 100vh;
    background: var(--dark-secondary);
    z-index: 1001;
    padding: var(--space-lg);
    transition: var(--transition-base);
    overflow-y: auto;
}

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

.mobile-menu-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: var(--space-xl);
    padding-bottom: var(--space-md);
    border-bottom: 1px solid var(--dark-tertiary);
}

.mobile-close {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--dark-tertiary);
    border-radius: var(--radius-md);
    color: var(--text-light);
    font-size: 1.25rem;
}

.mobile-nav-links {
    display: flex;
    flex-direction: column;
    gap: var(--space-md);
}

.mobile-nav-link {
    font-size: 1.25rem;
    font-weight: 500;
    padding: var(--space-sm) 0;
    border-bottom: 1px solid var(--dark-tertiary);
}

.mobile-nav-link:hover {
    color: var(--primary-light);
}

.btn-mobile-cta {
    display: block;
    text-align: center;
    padding: var(--space-md);
    background: var(--gradient-1);
    color: white;
    font-weight: 600;
    border-radius: var(--radius-md);
    margin-top: var(--space-xl);
}

.mobile-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition-base);
}

.mobile-overlay.active {
    opacity: 1;
    visibility: visible;
}

/* ================================================
   HERO SECTION
   ================================================ */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    padding-top: 80px;
}

.hero-bg-effects {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: 0;
    background-image: url('../backrond.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

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

.orb-1 {
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(139, 92, 246, 0.4) 0%, rgba(139, 92, 246, 0.1) 50%, transparent 70%);
    top: 10%;
    left: 5%;
    animation-delay: 0s;
}

.orb-2 {
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(168, 85, 247, 0.4) 0%, rgba(168, 85, 247, 0.1) 50%, transparent 70%);
    top: 50%;
    right: 10%;
    animation-delay: -5s;
}

.orb-3 {
    width: 350px;
    height: 350px;
    background: radial-gradient(circle, rgba(196, 181, 253, 0.35) 0%, rgba(196, 181, 253, 0.1) 50%, transparent 70%);
    bottom: 10%;
    left: 30%;
    animation-delay: -10s;
}

/* ================================================
 /* =================================================
   REALISTIC GLOWING MOON - DOUBLE SIZE
   ================================================= */

/* Moon Container - Hidden - Using 3D Moon instead */
.moon-container {
    display: none;
}

/* Subtle floating animation */
@keyframes moon-float {
    0%, 100% {
        transform: translate(-50%, -50%) translateY(0);
    }
    50% {
        transform: translate(-50%, -50%) translateY(-30px); /* زودت الحركة ضعف */
    }
}

/* Outer glow layer - soft ambient light */
.moon-glow {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 900px;   /* 450px × 2 */
    height: 900px;  /* 450px × 2 */
    transform: translate(-50%, -50%);
    border-radius: 50%;
    background: radial-gradient(circle,
        rgba(255, 255, 255, 0.15) 0%,
        rgba(200, 180, 255, 0.1) 30%,
        transparent 70%
    );
    filter: blur(40px); /* زودت البلور ضعف */
    pointer-events: none;
}

/* Purple Halo - around the moon edges */
.moon-halo {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 800px;   /* 400px × 2 */
    height: 800px;  /* 400px × 2 */
    transform: translate(-50%, -50%);
    border-radius: 50%;
    z-index: 1;
    pointer-events: none;
    
    /* Gradient: transparent center → light purple → medium purple → darker purple → transparent edges */
    background: radial-gradient(circle,
        transparent 0%,
        transparent 35%,
        rgba(180, 140, 255, 0.08) 45%,
        rgba(150, 100, 255, 0.15) 55%,
        rgba(138, 43, 226, 0.25) 65%,
        rgba(120, 30, 200, 0.35) 75%,
        rgba(100, 20, 180, 0.2) 85%,
        rgba(80, 10, 150, 0.1) 92%,
        transparent 100%
    );
    
    filter: blur(50px); /* زودت البلور */
}

/* Main Moon - Bigger than glow */
.moon {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 740px;   /* 370px × 2 */
    height: 740px;  /* 370px × 2 */
    transform: translate(-50%, -50%);
    border-radius: 50%;
    z-index: 2;
    overflow: visible;

    /* Use moon.png image as background */
    background-image: url('../moon.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;

    /* Purple glow for the moon */
    box-shadow: 
        /* Inner highlight glow */
        inset -60px -60px 200px rgba(0, 0, 0, 0.15),
        inset 50px 50px 200px rgba(255, 255, 255, 0.4),
        /* Purple outer glow */
        0 0 100px rgba(180, 140, 255, 0.6),
        0 0 200px rgba(150, 100, 255, 0.4),
        0 0 300px rgba(138, 43, 226, 0.3),
        0 0 400px rgba(120, 30, 200, 0.2);
}

/* Moon texture layer - subtle surface details */
.moon-texture {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: 
        radial-gradient(ellipse 160px 120px at 30% 40%, rgba(180, 170, 160, 0.15) 0%, transparent 70%),
        radial-gradient(ellipse 100px 80px at 65% 60%, rgba(170, 160, 150, 0.12) 0%, transparent 70%),
        radial-gradient(ellipse 80px 70px at 45% 70%, rgba(175, 165, 155, 0.1) 0%, transparent 70%),
        radial-gradient(ellipse 120px 90px at 70% 30%, rgba(180, 170, 160, 0.08) 0%, transparent 70%),
        radial-gradient(circle 16px at 25% 55%, rgba(150, 140, 130, 0.2) 0%, transparent 100%),
        radial-gradient(circle 12px at 60% 45%, rgba(155, 145, 135, 0.15) 0%, transparent 100%),
        radial-gradient(circle 20px at 75% 65%, rgba(145, 135, 125, 0.18) 0%, transparent 100%),
        radial-gradient(circle 10px at 40% 30%, rgba(160, 150, 140, 0.12) 0%, transparent 100%);
}

/* Main highlight - bright spot on moon */
.moon-highlight {
    position: absolute;
    top: 15%;
    left: 20%;
    width: 120px;   /* 60px × 2 */
    height: 100px;  /* 50px × 2 */
    border-radius: 50%;
    background: radial-gradient(ellipse,
        rgba(255, 255, 255, 0.6) 0%,
        rgba(255, 255, 255, 0.2) 40%,
        transparent 70%
    );
    filter: blur(16px);
}

/* Shadow side - using thall.PNG image for lighting/shadow overlay */
.moon-shadow {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background-image: url('../thall.PNG');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    pointer-events: none;
    z-index: 10;
}


/* Craters - subtle surface features */
.crater {
    position: absolute;
    border-radius: 50%;
    background: radial-gradient(circle at 40% 40%,
        rgba(255, 128, 0, 0.3) 0%,
        rgba(255, 128, 0, 0.15) 50%,
        transparent 70%
    );
}

.crater-1 {
    width: 35px;
    height: 32px;
    top: 25%;
    left: 55%;
}

.crater-2 {
    width: 22px;
    height: 20px;
    top: 60%;
    left: 30%;
}

.crater-3 {
    width: 28px;
    height: 26px;
    top: 45%;
    left: 70%;
}




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

.grid-pattern {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        linear-gradient(rgba(99, 102, 241, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(99, 102, 241, 0.03) 1px, transparent 1px);
    background-size: 50px 50px;
}

/* Moon rise wrapper — يظهر من الأسفل للأعلى عند دخول الهيرو */
.moon-rise-wrap {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    transform: translateY(70%);
    opacity: 0;
    pointer-events: none;
}
.moon-rise-wrap.moon-visible {
    animation: moonRise 1.4s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}
@keyframes moonRise {
    from {
        transform: translateY(70%);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

#globe-canvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    opacity: 0.95;
}

/* Moon Overlay Image - positioned above the canvas */
.moon-overlay-image {
    position: fixed; /* بدل absolute */
    top: 50%;
    left: 50%;
    transform: translate(-50%, -51.5%) translateX(15px);
    width: 700px;  /* نفس الحجم على اللابتوب */
    height: auto;
    z-index: 9999; /* فوق كل شيء */
    pointer-events: none;
    opacity: 1;
}

















.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    max-width: 900px;
    padding: 0 var(--space-lg);
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: var(--space-sm);
    padding: var(--space-sm) var(--space-md);
    background: rgba(99, 102, 241, 0.1);
    border: 1px solid rgba(99, 102, 241, 0.3);
    border-radius: var(--radius-full);
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--primary-light);
    margin-bottom: var(--space-lg);
}

.badge-dot {
    width: 8px;
    height: 8px;
    background: var(--primary-light);
    border-radius: 50%;
    animation: pulse 2s ease-in-out infinite;
}

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

.hero-title {
    font-size: 4rem;
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: var(--space-lg);
}

.title-line {
    display: block;
    color: var(--text-light);
}

.title-highlight {
    display: block;
    color: #ffffff;
}

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

.hero-subtitle {
    font-size: 1.25rem;
    color: var(--text-muted);
    margin-bottom: var(--space-xl);
    line-height: 1.8;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.hero-cta-group {
    display: flex;
    justify-content: center;
    gap: var(--space-md);
    margin-bottom: var(--space-2xl);
    flex-wrap: wrap;
}

.btn-primary {
    display: inline-flex;
    align-items: center;
    gap: var(--space-sm);
    padding: var(--space-md) var(--space-xl);
    background: var(--gradient-1);
    color: white;
    font-weight: 600;
    font-size: 1rem;
    border-radius: var(--radius-full);
    transition: var(--transition-base);
    box-shadow: var(--shadow-lg);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-glow);
}

.btn-primary i {
    transition: var(--transition-base);
}

.btn-primary:hover i {
    transform: translateX(5px);
}

.btn-secondary {
    display: inline-flex;
    align-items: center;
    gap: var(--space-sm);
    padding: var(--space-md) var(--space-xl);
    background: transparent;
    color: var(--text-light);
    font-weight: 600;
    font-size: 1rem;
    border-radius: var(--radius-full);
    border: 2px solid var(--dark-tertiary);
    transition: var(--transition-base);
}

.btn-secondary:hover {
    border-color: var(--primary);
    background: rgba(99, 102, 241, 0.1);
}

.btn-secondary i {
    transition: var(--transition-base);
}

.btn-secondary:hover i {
    transform: scale(1.1);
}

/* Hero Stats */
.hero-stats {
    display: flex;
    justify-content: center;
    gap: var(--space-2xl);
    flex-wrap: wrap;
}

.hero-stat {
    text-align: center;
}

.stat-number {
    display: block;
    font-size: 3rem;
    font-weight: 800;
    background: var(--gradient-2);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1;
}

.stat-suffix {
    font-size: 3rem;
    font-weight: 800;
    background: var(--gradient-2);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.stat-label {
    display: block;
    font-size: 0.875rem;
    color: var(--text-muted);
    margin-top: var(--space-xs);
}

/* Scroll Indicator */
.scroll-indicator {
    position: absolute;
    bottom: var(--space-xl);
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--space-sm);
    color: var(--text-muted);
    font-size: 0.875rem;
    animation: bounce 2s ease-in-out infinite;
}

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

.mouse {
    width: 24px;
    height: 40px;
    border: 2px solid var(--text-muted);
    border-radius: 12px;
    position: relative;
}

.wheel {
    width: 4px;
    height: 8px;
    background: var(--primary-light);
    border-radius: 2px;
    position: absolute;
    top: 8px;
    left: 50%;
    transform: translateX(-50%);
    animation: scroll-wheel 2s ease-in-out infinite;
}

@keyframes scroll-wheel {
    0%, 100% {
        opacity: 1;
        top: 8px;
    }
    50% {
        opacity: 0.3;
        top: 20px;
    }
}

/* ================================================
   SERVICES SECTION
   ================================================ */
.services {
    background: var(--dark-secondary);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: var(--space-lg);
}

.service-card {
    background: var(--dark);
    padding: var(--space-xl);
    border-radius: var(--radius-xl);
    border: 1px solid var(--dark-tertiary);
    transition: var(--transition-base);
    position: relative;
    overflow: hidden;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--gradient-1);
    opacity: 0;
    transition: var(--transition-base);
    z-index: 0;
}

.service-card:hover {
    transform: translateY(-10px);
    border-color: transparent;
    box-shadow: var(--shadow-xl);
}

.service-card:hover::before {
    opacity: 0.1;
}

.service-icon {
    width: 70px;
    height: 70px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--gradient-1);
    border-radius: var(--radius-lg);
    font-size: 1.75rem;
    color: white;
    margin-bottom: var(--space-lg);
    position: relative;
    z-index: 1;
}

.service-title {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: var(--space-sm);
    position: relative;
    z-index: 1;
}

.service-desc {
    color: var(--text-muted);
    line-height: 1.7;
    margin-bottom: var(--space-md);
    position: relative;
    z-index: 1;
}

.service-link {
    display: inline-flex;
    align-items: center;
    gap: var(--space-sm);
    color: var(--primary-light);
    font-weight: 600;
    position: relative;
    z-index: 1;
}

.service-link i {
    transition: var(--transition-base);
}

.service-link:hover i {
    transform: translateX(5px);
}

.service-glow {
    position: absolute;
    bottom: -50%;
    left: 50%;
    transform: translateX(-50%);
    width: 200px;
    height: 200px;
    background: var(--primary);
    filter: blur(80px);
    opacity: 0;
    transition: var(--transition-base);
}

.service-card:hover .service-glow {
    opacity: 0.3;
    bottom: -30%;
}

/* ================================================
   FEATURES SECTION
   ================================================ */
.features {
    background: var(--dark);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: var(--space-lg);
}

.feature-card {
    background: var(--dark-secondary);
    padding: var(--space-xl);
    border-radius: var(--radius-xl);
    border: 1px solid var(--dark-tertiary);
    transition: var(--transition-base);
}

.feature-card:hover {
    transform: translateY(-5px);
    border-color: var(--primary);
    box-shadow: var(--shadow-lg);
}

.feature-icon {
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(99, 102, 241, 0.1);
    border-radius: var(--radius-lg);
    font-size: 1.5rem;
    color: var(--primary-light);
    margin-bottom: var(--space-md);
    transition: var(--transition-base);
}

.feature-card:hover .feature-icon {
    background: var(--gradient-1);
    color: white;
}

.feature-title {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: var(--space-sm);
}

.feature-desc {
    color: var(--text-muted);
    line-height: 1.7;
}

/* ================================================
   ABOUT SECTION
   ================================================ */
.about {
    background: var(--dark-secondary);
}

.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-2xl);
    align-items: center;
}

.about-text .section-title {
    text-align: left;
    margin-bottom: var(--space-md);
}

.about-desc {
    font-size: 1.125rem;
    color: var(--text-muted);
    margin-bottom: var(--space-xl);
    line-height: 1.8;
}

.about-stats {
    display: flex;
    gap: var(--space-xl);
    margin-bottom: var(--space-xl);
}

.about-stat {
    text-align: center;
}

.about-stat-number {
    display: block;
    font-size: 2.5rem;
    font-weight: 800;
    background: var(--gradient-1);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.about-stat-label {
    font-size: 2rem;
    font-weight: 800;
    background: var(--gradient-1);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.about-stat-text {
    display: block;
    font-size: 0.875rem;
    color: var(--text-muted);
}

.about-visual {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-md);
}

.about-card {
    background: var(--dark);
    padding: var(--space-lg);
    border-radius: var(--radius-lg);
    text-align: center;
    border: 1px solid var(--dark-tertiary);
    transition: var(--transition-base);
}

.about-card:hover {
    transform: translateY(-5px);
    border-color: var(--primary);
}

.about-card-icon {
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--gradient-2);
    border-radius: var(--radius-md);
    font-size: 1.25rem;
    color: white;
    margin: 0 auto var(--space-sm);
}

.about-card h4 {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: var(--space-xs);
}

.about-card p {
    font-size: 0.875rem;
    color: var(--text-muted);
}

/* ================================================
   TESTIMONIALS SECTION
   ================================================ */
.testimonials {
    background: var(--dark);
}

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: var(--space-lg);
}

.testimonial-card {
    background: var(--dark-secondary);
    padding: var(--space-xl);
    border-radius: var(--radius-xl);
    border: 1px solid var(--dark-tertiary);
    transition: var(--transition-base);
    position: relative;
}

.testimonial-card:hover {
    transform: translateY(-5px);
    border-color: var(--primary);
    box-shadow: var(--shadow-lg);
}

.testimonial-quote {
    font-size: 2rem;
    color: var(--primary);
    margin-bottom: var(--space-md);
    opacity: 0.5;
}

.testimonial-text {
    font-size: 1.0625rem;
    line-height: 1.8;
    color: var(--text-light);
    margin-bottom: var(--space-lg);
    font-style: italic;
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: var(--space-md);
}

.author-avatar {
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--gradient-1);
    border-radius: var(--radius-full);
    font-weight: 700;
    color: white;
}

.author-info h4 {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 2px;
}

.author-info span {
    font-size: 0.875rem;
    color: var(--text-muted);
}

/* ================================================
   CTA SECTION
   ================================================ */
.cta-section {
    background: var(--gradient-1);
    padding: var(--space-3xl) 0;
    position: relative;
    overflow: hidden;
}

.cta-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.05'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}

.cta-content {
    text-align: center;
    position: relative;
    z-index: 1;
}

.cta-content h2 {
    font-size: 2.5rem;
    font-weight: 700;
    color: white;
    margin-bottom: var(--space-md);
}

.cta-content p {
    font-size: 1.25rem;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: var(--space-xl);
}

.cta-buttons {
    display: flex;
    justify-content: center;
    gap: var(--space-md);
    flex-wrap: wrap;
}

.btn-large {
    padding: var(--space-md) var(--space-2xl);
    font-size: 1.125rem;
}

.btn-outline {
    display: inline-flex;
    align-items: center;
    padding: var(--space-md) var(--space-2xl);
    background: transparent;
    color: white;
    font-weight: 600;
    font-size: 1.125rem;
    border-radius: var(--radius-full);
    border: 2px solid white;
    transition: var(--transition-base);
}

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

/* ================================================
   CONTACT SECTION
   ================================================ */
.contact {
    background: var(--dark-secondary);
}

.contact-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--space-2xl);
}

.contact-info {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: var(--space-lg);
    width: 100%;
    max-width: 1000px;
}

.contact-card {
    background: var(--dark);
    padding: var(--space-xl);
    border-radius: var(--radius-xl);
    text-align: center;
    border: 1px solid var(--dark-tertiary);
    transition: var(--transition-base);
}

.contact-card:hover {
    transform: translateY(-5px);
    border-color: var(--primary);
}

.contact-icon {
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--gradient-1);
    border-radius: var(--radius-lg);
    font-size: 1.5rem;
    color: white;
    margin: 0 auto var(--space-md);
}

.contact-card h3 {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: var(--space-xs);
}

.contact-card p {
    font-size: 0.875rem;
    color: var(--text-muted);
    margin-bottom: var(--space-sm);
}

.contact-link {
    display: inline-flex;
    align-items: center;
    gap: var(--space-xs);
    color: var(--primary-light);
    font-weight: 500;
}

.contact-link:hover {
    text-decoration: underline;
}

.contact-text {
    color: var(--text-light);
}

.social-links {
    text-align: center;
}

.social-links h3 {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: var(--space-md);
}

.social-icons {
    display: flex;
    justify-content: center;
    gap: var(--space-md);
}

.social-icon {
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--dark);
    border-radius: var(--radius-full);
    font-size: 1.25rem;
    color: var(--text-light);
    border: 1px solid var(--dark-tertiary);
    transition: var(--transition-base);
}

.social-icon:hover {
    background: var(--gradient-1);
    border-color: transparent;
    transform: translateY(-3px);
}

/* ================================================
   FOOTER
   ================================================ */
.footer {
    background: var(--dark);
    border-top: 1px solid var(--dark-tertiary);
}

.footer-top {
    padding: var(--space-2xl) 0;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: var(--space-2xl);
}

.footer-brand {
    max-width: 300px;
}

.footer-logo {
    display: inline-flex;
    align-items: center;
    gap: var(--space-sm);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-light);
    margin-bottom: var(--space-md);
}

.footer-desc {
    color: var(--text-muted);
    line-height: 1.7;
    margin-bottom: var(--space-lg);
}

.footer-social {
    display: flex;
    gap: var(--space-sm);
}

.footer-social a {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--dark-secondary);
    border-radius: var(--radius-md);
    color: var(--text-light);
    transition: var(--transition-base);
}

.footer-social a:hover {
    background: var(--gradient-1);
}

.footer-links-group h4 {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: var(--space-md);
    color: var(--text-light);
}

.footer-links-group ul {
    display: flex;
    flex-direction: column;
    gap: var(--space-sm);
}

.footer-links-group a {
    color: var(--text-muted);
    font-size: 0.9375rem;
}

.footer-links-group a:hover {
    color: var(--primary-light);
}

.footer-bottom {
    padding: var(--space-lg) 0;
    border-top: 1px solid var(--dark-tertiary);
}

.footer-bottom-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: var(--space-md);
}

.footer-copyright p {
    color: var(--text-muted);
    font-size: 0.875rem;
}

.footer-location {
    display: flex;
    align-items: center;
    gap: var(--space-xs);
    color: var(--text-muted);
    font-size: 0.875rem;
}

.footer-location i {
    color: var(--primary-light);
}

/* ================================================
   BACK TO TOP BUTTON - Enhanced Circular
   ================================================ */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 56px;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #8b5cf6 0%, #7c3aed 100%);
    color: white;
    border-radius: 50%;
    font-size: 1.25rem;
    box-shadow: 0 4px 15px rgba(139, 92, 246, 0.4), 0 0 30px rgba(139, 92, 246, 0.2);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    z-index: 9999;
    border: 2px solid rgba(255, 255, 255, 0.1);
    cursor: pointer;
    overflow: hidden;
    animation: backToTopPulse 2s ease-in-out infinite;
}

.back-to-top::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #a78bfa 0%, #8b5cf6 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

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

.back-to-top:hover {
    transform: translateY(-5px) scale(1.1);
    box-shadow: 0 8px 25px rgba(139, 92, 246, 0.5), 0 0 40px rgba(139, 92, 246, 0.3);
    animation: none;
}

.back-to-top:hover::before {
    opacity: 1;
}

.back-to-top i {
    position: relative;
    z-index: 1;
    transition: transform 0.3s ease;
}

.back-to-top:hover i {
    transform: translateY(-2px);
}

.back-to-top:active {
    transform: translateY(-2px) scale(1.05);
}

/* Scroll Progress Ring Container */
.scroll-progress-ring {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    transform: rotate(-90deg);
}

.progress-ring-bg {
    fill: none;
    stroke: rgba(255, 255, 255, 0.2);
    stroke-width: 3;
}

.progress-ring-fill {
    fill: none;
    stroke: #ffffff;
    stroke-width: 3;
    stroke-linecap: round;
    stroke-dasharray: 150.79; /* 2 * PI * 24 = 150.796 */
    stroke-dashoffset: 150.79;
    transition: stroke-dashoffset 0.1s ease;
}

/* Scroll Percentage Display */
.scroll-percentage {
    position: relative;
    z-index: 2;
    font-size: 0.7rem;
    font-weight: 700;
    color: white;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
}

/* Arrow icon positioning */
.back-to-top .fa-arrow-up {
    position: relative;
    z-index: 2;
}

/* Pulse animation for back to top button */
@keyframes backToTopPulse {
    0% {
        box-shadow: 0 4px 15px rgba(139, 92, 246, 0.4), 0 0 30px rgba(139, 92, 246, 0.2);
    }
    50% {
        box-shadow: 0 4px 20px rgba(139, 92, 246, 0.6), 0 0 50px rgba(139, 92, 246, 0.3);
    }
    100% {
        box-shadow: 0 4px 15px rgba(139, 92, 246, 0.4), 0 0 30px rgba(139, 92, 246, 0.2);
    }
}

/* ================================================
   RESPONSIVE DESIGN
   ================================================ */
@media (max-width: 1024px) {
    .hero-title {
        font-size: 3rem;
    }
    
    .about-content {
        grid-template-columns: 1fr;
    }
    
    .about-visual {
        max-width: 500px;
        margin: 0 auto;
    }
    
    .footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: var(--space-xl);
    }
}

@media (max-width: 768px) {
    .nav-links {
        display: none;
    }
    
    .hamburger {
        display: flex;
    }
    
    .nav-cta {
        display: none;
    }
    
    .hero-title {
        font-size: 2.5rem;
    }
    
    .hero-subtitle {
        font-size: 1rem;
    }
    
    .hero-stats {
        gap: var(--space-lg);
    }
    
    .stat-number {
        font-size: 2rem;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .about-content {
        grid-template-columns: 1fr;
    }
    
    .about-stats {
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .about-visual {
        grid-template-columns: 1fr;
    }
    
    .footer-grid {
        grid-template-columns: 1fr;
        gap: var(--space-lg);
    }
    
    .footer-bottom-content {
        flex-direction: column;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 2rem;
    }
    
    .hero-badge {
        font-size: 0.75rem;
    }
    
    .btn-primary,
    .btn-secondary {
        padding: var(--space-sm) var(--space-lg);
        font-size: 0.875rem;
    }
    
    .section-title {
        font-size: 1.75rem;
    }
    
    .cta-content h2 {
        font-size: 1.75rem;
    }
    
    .testimonials-grid {
        grid-template-columns: 1fr;
    }
    
    .contact-info {
        grid-template-columns: 1fr;
    }
}

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

/* Fade In Up Animation */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Fade In Animation */
@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

/* Slide In Left */
@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Slide In Right */
@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Scale In Animation */
@keyframes scaleIn {
    from {
        opacity: 0;
        transform: scale(0.9);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

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

/* Stagger Animation Delays */
.service-card:nth-child(1) { animation-delay: 0.1s; }
.service-card:nth-child(2) { animation-delay: 0.2s; }
.service-card:nth-child(3) { animation-delay: 0.3s; }
.service-card:nth-child(4) { animation-delay: 0.4s; }

.feature-card:nth-child(1) { animation-delay: 0.1s; }
.feature-card:nth-child(2) { animation-delay: 0.15s; }
.feature-card:nth-child(3) { animation-delay: 0.2s; }
.feature-card:nth-child(4) { animation-delay: 0.25s; }
.feature-card:nth-child(5) { animation-delay: 0.3s; }
.feature-card:nth-child(6) { animation-delay: 0.35s; }

/* Initial State for Animations */
.animate-on-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.animate-on-scroll.animated {
    opacity: 1;
    transform: translateY(0);
}

/* Hover Effects */
.card-hover {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

/* Glow Effects */
.glow-effect {
    position: relative;
}

.glow-effect::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border-radius: inherit;
    background: radial-gradient(circle at center, rgba(99, 102, 241, 0.3), transparent 70%);
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
}

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

/* Text Gradient */
.text-gradient {
    background: var(--gradient-1);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Button Hover Animation */
.btn-animate {
    position: relative;
    overflow: hidden;
}

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

.btn-animate:hover::before {
    left: 100%;
}

/* Scrollbar Styling */
::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: var(--dark);
}

::-webkit-scrollbar-thumb {
    background: var(--dark-tertiary);
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--primary);
}

/* Selection Styling */
::selection {
    background: var(--primary);
    color: white;
}

/* Focus Styles */
:focus-visible {
    outline: 2px solid var(--primary);
    outline-offset: 2px;
}

/* رابط لوحة التحكم (للمطور فقط) */
.footer-copyright .admin-link {
    display: inline-block;
    margin-top: 0.35rem;
    font-size: 0.75rem;
    color: var(--text-muted);
    opacity: 0.7;
}
.footer-copyright .admin-link:hover {
    color: var(--primary-light);
    opacity: 1;
}

/* Print Styles */
@media print {
    .navbar,
    .back-to-top,
    .scroll-indicator {
        display: none !important;
    }
    
    body {
        background: white;
        color: black;
    }
    
    .section-title {
        color: black;
    }
}
