/* ================================================
   🎨 CSS Variables & Premium Dark AI Palette
   ================================================ */
:root {
    /* Base Colors - Deep & Professional */
    --bg-dark: #050A10;
    --bg-darker: #020406;
    --bg-card: #0F172A;
    --bg-card-hover: #1E293B;

    /* Primary Accent - Electric Cyan */
    --accent-blue: #00E5FF;
    --accent-blue-light: #65F4FF;
    --accent-glow: rgba(0, 229, 255, 0.4);
    --accent-glow-strong: rgba(0, 229, 255, 0.7);

    /* Secondary Accent - Luxurious Gold */
    --accent-yellow: #FFD000;
    --accent-yellow-glow: rgba(255, 208, 0, 0.3);

    /* Text Colors */
    --text-main: #F8FAFC;
    --text-muted: #94A3B8;
    --text-dim: #64748B;

    /* Gradients */
    --gradient-primary: linear-gradient(135deg, var(--accent-blue) 0%, #0066FF 100%);
    --gradient-gold: linear-gradient(135deg, var(--accent-yellow) 0%, #FFA500 100%);
    --gradient-text: linear-gradient(135deg, var(--accent-blue), #00A6FF);

    /* Glassmorphism */
    --glass-bg: rgba(255, 255, 255, 0.03);
    --glass-border: rgba(255, 255, 255, 0.08);
    --glass-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.5);

    /* Shadows */
    --shadow-sm: 0 4px 6px -1px rgba(0, 0, 0, 0.3);
    --shadow-md: 0 10px 15px -3px rgba(0, 0, 0, 0.5);
    --shadow-lg: 0 20px 25px -5px rgba(0, 0, 0, 0.6);
    --shadow-glow: 0 0 25px var(--accent-glow);

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

    /* Spacing */
    --spacing-section: 5rem;
    --spacing-card: 2rem;

    /* Font Families */
    --font-en: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    --font-ar: 'Cairo', 'Segoe UI Arabic', sans-serif;

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

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

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

body {
    background: var(--bg-dark);
    color: var(--text-main);
    line-height: 1.6;
    overflow-x: hidden;
    position: relative;
    z-index: 1;
}

body::before {
    content: "";
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.65' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)' opacity='0.05'/%3E%3C/svg%3E");
    pointer-events: none;
    z-index: -1;
    opacity: 0.07;
}

/* Font Switching based on Language */
html[lang="ar"] body {
    font-family: var(--font-ar);
    direction: rtl;
    text-align: right;
}

html[lang="en"] body {
    font-family: var(--font-en);
    direction: ltr;
    text-align: left;
}

/* Language Visibility Logic */
html[lang="ar"] .lang-en {
    display: none !important;
}

html[lang="en"] .lang-ar {
    display: none !important;
}

/* ================================================
   ✨ Animated Particle Background
   ================================================ */
.particles-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
    opacity: 0.4;
}

.particle {
    position: absolute;
    background: var(--accent-blue);
    border-radius: 50%;
    animation: float 20s infinite ease-in-out;
}

@keyframes float {

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

    50% {
        transform: translateY(-100px) translateX(50px);
        opacity: 0.6;
    }
}

/* ================================================
   📝 Typography
   ================================================ */
h1,
h2,
h3,
h4,
h5,
h6 {
    line-height: 1.2;
    margin-bottom: 1rem;
    color: var(--text-main);
    font-weight: 700;
}

h1 {
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 800;
    letter-spacing: -0.02em;
}

h2 {
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 700;
}

h3 {
    font-size: clamp(1.25rem, 2.5vw, 1.75rem);
    font-weight: 600;
}

p {
    color: var(--text-muted);
    font-size: 1.1rem;
    line-height: 1.7;
}

.gradient-text {
    background: var(--gradient-text);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: gradient-shift 3s ease infinite;
}

@keyframes gradient-shift {

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

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

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
    position: relative;
    z-index: 1;
}

/* ================================================
   🎯 Section Components
   ================================================ */
.section-header {
    text-align: center;
    margin-bottom: 4rem;
}



.section-badge {
    display: inline-block;
    padding: 0.5rem 1.5rem;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 50px;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--accent-blue);
    margin-bottom: 1rem;
    backdrop-filter: blur(10px);
    opacity: 0;
    animation: fadeInUp 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94) 0.1s both;
}

.section-title {
    margin-bottom: 1rem;
    opacity: 0;
    animation: fadeInUp 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94) 0.2s both;
}

.section-subtitle {
    color: var(--text-muted);
    max-width: 600px;
    margin: 0 auto;
    opacity: 0;
    animation: fadeInUp 0.7s cubic-bezier(0.25, 0.46, 0.45, 0.94) 0.3s both;
}

/* ================================================
   🔘 Buttons
   ================================================ */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 1rem 2rem;
    border-radius: 50px;
    font-weight: 600;
    font-size: 1rem;
    text-decoration: none;
    border: none;
    cursor: pointer;
    transition: all var(--transition-normal);
    position: relative;
    overflow: hidden;
    font-family: inherit;
}

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

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

.btn-text,
.btn-icon {
    position: relative;
    z-index: 1;
}

.btn-primary {
    background: var(--gradient-primary);
    color: #000;
    box-shadow: 0 0 20px var(--accent-glow);
}

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

.btn-whatsapp {
    background: #25D366;
    color: #fff;
}

.btn-whatsapp:hover {
    background: #128C7E;
    transform: translateY(-3px);
    box-shadow: 0 5px 20px rgba(37, 211, 102, 0.4);
}

.btn-large {
    padding: 1.25rem 2.5rem;
    font-size: 1.1rem;
}

/* ================================================
   💎 Glass Card Effect
   ================================================ */
.glass-card {
    background: var(--glass-bg);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid var(--glass-border);
    border-radius: 24px;
    padding: var(--spacing-card);
    transition: all var(--transition-normal);
    position: relative;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

/* Removed background effect */
.glass-card::before {
    display: none;
}

.glass-card:hover::before {
    display: none;
}

.glass-card:hover {
    transform: translateY(-5px);
    border-color: var(--accent-blue);
    box-shadow: var(--shadow-glow);
}

/* ================================================
   🧭 Navigation
   ================================================ */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(10, 22, 40, 0.8);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--glass-border);
    padding: 1rem 0;
    transition: all var(--transition-normal);
}

.navbar.scrolled {
    background: rgba(10, 22, 40, 0.95);
    box-shadow: var(--shadow-md);
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-brand {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--text-main);
    letter-spacing: -0.02em;
}

.brand-highlight {
    color: var(--accent-blue);
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
    align-items: center;
}

.nav-link {
    color: var(--text-muted);
    text-decoration: none;
    font-weight: 500;
    transition: color var(--transition-fast);
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--accent-blue);
    transition: width var(--transition-normal);
}

.nav-link:hover {
    color: var(--accent-blue);
}

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

.lang-toggle {
    background: transparent;
    border: 1px solid var(--accent-blue);
    color: var(--accent-blue);
    padding: 0.5rem 1.25rem;
    border-radius: 20px;
    cursor: pointer;
    font-weight: 600;
    transition: all var(--transition-normal);
    font-family: inherit;
}

.lang-toggle:hover {
    background: var(--accent-blue);
    color: #000;
    transform: scale(1.05);
}

/* Mobile WhatsApp Header Button */
.mobile-header-wa {
    display: none;
}

.mobile-only-wa,
.mobile-social-btn {
    display: none;
}

/* Mobile Menu Toggle */
.mobile-toggle {
    display: none;
    flex-direction: column;
    background: none;
    border: none;
    cursor: pointer;
    gap: 5px;
}

.mobile-toggle span {
    display: block;
    width: 25px;
    height: 3px;
    background: var(--text-main);
    transition: all var(--transition-normal);
    border-radius: 2px;
}

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

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

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

/* ================================================
   🏠 Hero Section
   ================================================ */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    padding-top: 5rem;
    overflow: hidden;
}

.hero-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.hero-badge {
    display: inline-block;
    padding: 0.5rem 1rem;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 50px;
    font-size: 0.9rem;
    margin-bottom: 1.5rem;
    backdrop-filter: blur(10px);
    opacity: 0;
    animation: fadeInDown 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94) 0.1s both;
}

.hero-title {
    margin-bottom: 1.5rem;
    opacity: 0;
    animation: fadeInUp 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94) 0.2s both;
}

.hero-subtitle {
    font-size: 1.5rem;
    color: var(--text-main);
    margin-bottom: 1rem;
    font-weight: 600;
    opacity: 0;
    animation: fadeInUp 0.7s cubic-bezier(0.25, 0.46, 0.45, 0.94) 0.3s both;
}

.hero-description {
    font-size: 1.15rem;
    margin-bottom: 2rem;
    opacity: 0;
    animation: fadeInUp 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94) 0.4s both;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    margin-bottom: 3rem;
    opacity: 0;
    animation: fadeInUp 0.9s cubic-bezier(0.25, 0.46, 0.45, 0.94) 0.5s both;
}

/* Hero Stats */
/* Hero Stats floating bar */
.hero-stats {
    display: inline-flex;
    gap: 3rem;
    margin-top: 3rem;
    animation: fadeInUp 1.6s ease;

    /* Glass Bar Styling */
    background: rgba(15, 23, 42, 0.6);
    /* Slightly darker/tinted glass */
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 20px;
    padding: 1.5rem 3rem;
    box-shadow: 0 10px 40px -10px rgba(0, 0, 0, 0.5);
}

.stat-item {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    position: relative;
}

/* Optional vertical dividers between stats */
.stat-item:not(:last-child)::after {
    content: '';
    position: absolute;
    right: -1.5rem;
    top: 50%;
    transform: translateY(-50%);
    height: 70%;
    width: 1px;
    background: rgba(255, 255, 255, 0.1);
}

.stat-number {
    font-size: 2rem;
    font-weight: 800;
    color: var(--text-main);
    /* White/Light text */
    line-height: 1;
    text-shadow: 0 0 20px rgba(0, 229, 255, 0.3);
    /* Subtle glow */
}

.stat-label {
    font-size: 0.85rem;
    color: var(--text-muted);
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* Hero Visual */
.hero-visual {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: fadeInRight 1s ease;
}

.floating-orbs {
    position: absolute;
    width: 100%;
    height: 100%;
    pointer-events: none;
}

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

.orb-1 {
    width: 200px;
    height: 200px;
    background: var(--accent-blue);
    top: 10%;
    left: 10%;
    animation-delay: 0s;
}

.orb-2 {
    width: 150px;
    height: 150px;
    background: var(--accent-yellow);
    bottom: 20%;
    right: 15%;
    animation-delay: 2s;
}

.orb-3 {
    width: 100px;
    height: 100px;
    background: #0066FF;
    top: 50%;
    left: 50%;
    animation-delay: 4s;
}

@keyframes float-orb {

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

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

    66% {
        transform: translate(-30px, 30px) scale(0.9);
    }
}

.profile-container {
    position: relative;
    z-index: 2;
    display: flex;
    justify-content: center;
    align-items: center;
}

/* Backlight Glow Effect */
.profile-backdrop {
    position: absolute;
    width: 90%;
    height: 90%;
    border-radius: 50%;
    background: radial-gradient(circle, var(--accent-yellow) 0%, transparent 70%);
    opacity: 0.3;
    filter: blur(40px);
    z-index: 0;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    animation: pulse-glow 4s infinite ease-in-out;
}

@keyframes pulse-glow {

    0%,
    100% {
        opacity: 0.2;
        transform: translate(-50%, -50%) scale(0.9);
    }

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

.profile-frame {
    /* Removed distinct border/background for borderless look */
    position: relative;
    z-index: 1;
    padding: 0;
    background: transparent;
    border: none;
    box-shadow: none;
}

.profile-frame:hover {
    transform: none;
    box-shadow: none;
}

.hero-image {
    width: 100%;
    max-width: 450px;
    /* Slightly larger presence */
    /* Organic/Squircle Shape without border */
    border-radius: 30px;
    border: none;
    box-shadow: none;
    display: block;
    position: relative;
    z-index: 2;
    /* Inner light rim effect via drop-shadow if needed, or just clean cut */
    filter: drop-shadow(0 0 20px rgba(0, 229, 255, 0.2));
    transition: transform var(--transition-normal);
}

.hero-image:hover {
    transform: scale(1.02);
    filter: drop-shadow(0 0 30px rgba(0, 229, 255, 0.4));
}

/* Scroll Indicator */
.scroll-indicator {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    animation: bounce 2s infinite;
}

.scroll-text {
    font-size: 0.85rem;
    color: var(--text-muted);
    font-weight: 500;
}

.scroll-arrow {
    font-size: 1.5rem;
    color: var(--accent-blue);
}

@keyframes bounce {

    0%,
    20%,
    50%,
    80%,
    100% {
        transform: translateX(-50%) translateY(0);
    }

    40% {
        transform: translateX(-50%) translateY(-10px);
    }

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

/* ================================================
   👤 About Section
   ================================================ */
.about-section {
    padding: var(--spacing-section) 0;
}

.about-content {
    display: flex;
    flex-direction: column;
    gap: 3rem;
}

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

.about-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.about-text {
    font-size: 1.15rem;
    line-height: 1.8;
    max-width: 800px;
    margin: 0 auto;
}

.approach-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.approach-item {
    text-align: center;
    padding: 2rem;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-lg);
    transition: all var(--transition-normal);
}

.approach-item:hover {
    transform: translateY(-10px);
    border-color: var(--accent-blue);
    box-shadow: var(--shadow-glow);
}

.approach-icon {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    display: none;
    /* Hide default emoji icon */
}

/* ================================================
   🖼️ Icon Images
   ================================================ */
.icon-img {
    width: 64px;
    height: 64px;
    object-fit: contain;
    filter: drop-shadow(0 0 10px rgba(0, 229, 255, 0.3));
    transition: all var(--transition-normal);
}

.service-card:hover .icon-img {
    transform: scale(1.1);
    filter: drop-shadow(0 0 20px rgba(0, 229, 255, 0.6));
}

.approach-icon-img {
    width: 80px;
    height: 80px;
    margin-bottom: 1.5rem;
    filter: drop-shadow(0 5px 15px rgba(0, 0, 0, 0.3));
    transition: transform var(--transition-normal);
}

.approach-item:hover .approach-icon-img {
    transform: translateY(-5px) scale(1.1);
}

/* Tool Icons */
.tool-icon-img {
    width: 32px;
    height: 32px;
    object-fit: contain;
    margin-right: 0.75rem;
    /* filter: grayscale(100%) brightness(1.5); Removed for natural colors */
    filter: drop-shadow(0 0 5px rgba(255, 255, 255, 0.2));
    transition: all var(--transition-normal);
}

.tool-item {
    display: flex;
    align-items: center;
    padding: 0.75rem 1.25rem;
    background: rgba(255, 255, 255, 0.03);
    /* Subtle background */
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 50px;
    transition: all var(--transition-normal);
}

.tool-item:hover {
    background: rgba(0, 229, 255, 0.1);
    border-color: rgba(0, 229, 255, 0.3);
    transform: translateY(-2px);
}

.tool-item:hover .tool-icon-img {
    filter: grayscale(0%) brightness(1);
    transform: scale(1.1);
}

/* Contact Icons */
.contact-icon-img {
    width: 48px;
    height: 48px;
    margin-bottom: 1rem;
    filter: drop-shadow(0 0 10px rgba(0, 229, 255, 0.2));
}

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

.approach-item h3 {
    color: var(--text-main);
    margin-bottom: 0.75rem;
}

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

/* ================================================
   💼 Services Section
   ================================================ */
.services-section {
    padding: var(--spacing-section) 0;
    background: linear-gradient(to bottom, transparent, rgba(17, 30, 51, 0.3));
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2rem;
}

.service-card {
    text-align: center;
    position: relative;
}

/* ================================================
   🛠️ Tools X-Scroll Animation
   ================================================ */
.tools-scroll-wrapper {
    position: relative;
    width: 100%;
    overflow: hidden;
    padding: 3rem 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    mask-image: linear-gradient(to right, transparent, black 15%, black 85%, transparent);
    -webkit-mask-image: linear-gradient(to right, transparent, black 15%, black 85%, transparent);
}

.tools-track {
    display: flex;
    gap: 2rem;
    width: max-content;
    padding: 1rem 0;
}

.track-1 {
    animation: scrollRiver 35s linear infinite;
    transform: rotate(0deg);
    margin-bottom: 0.5rem;
    transform-origin: center;
}

.track-2 {
    animation: scrollRiverReverse 35s linear infinite;
    transform: rotate(0deg);
    transform-origin: center;
}

.tool-item-scroll {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1.5rem;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 50px;
    white-space: nowrap;
    backdrop-filter: blur(5px);
    transition: all 0.3s ease;
}

.tool-item-scroll:hover {
    background: rgba(0, 229, 255, 0.1);
    border-color: var(--accent-blue);
    transform: scale(1.05);
    box-shadow: 0 0 15px rgba(0, 229, 255, 0.2);
}

@keyframes scrollRiver {
    0% {
        transform: translateX(0);
    }

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

@keyframes scrollRiverReverse {
    0% {
        transform: translateX(-50%);
    }

    100% {
        transform: translateX(0);
    }
}

/* ================================================
   ✨ Decorative Elements (Picsart)
   ================================================ */
.floating-decor {
    position: absolute;
    pointer-events: none;
    z-index: 1;
    filter: drop-shadow(0 0 15px rgba(0, 229, 255, 0.3));
    opacity: 0.8;
    animation: float-decor 6s ease-in-out infinite;
}

.decor-hero {
    top: 15%;
    right: 10%;
    width: 120px;
    transform: rotate(15deg);
}

.decor-profile {
    bottom: 20%;
    left: 5%;
    width: 100px;
    transform: rotate(-10deg);
}

.decor-services {
    top: -50px;
    right: 5%;
    width: 90px;
}

.decor-contact {
    bottom: 10%;
    left: 5%;
    width: 110px;
    transform: rotate(20deg);
}

@keyframes float-decor {

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

    50% {
        transform: translateY(-15px) rotate(5deg);
    }
}


.service-icon-wrapper {
    position: relative;
    transition: all var(--transition-normal);
}

.service-icon-wrapper::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 60px;
    height: 60px;
    background: var(--accent-blue);
    border-radius: 50%;
    transform: translate(-50%, -50%) scale(0.5);
    opacity: 0;
    filter: blur(20px);
    z-index: -1;
    transition: all 0.5s ease;
}

.service-card:hover .service-icon-wrapper::after {
    transform: translate(-50%, -50%) scale(1.5);
    opacity: 0.6;
}

.service-card:hover .service-icon-wrapper {
    transform: translateY(-5px);
}

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

.service-title {
    margin-bottom: 1rem;
    color: var(--text-main);
}

.service-description {
    margin-bottom: 1.5rem;
    font-size: 1rem;
}

.service-tags {
    display: flex;
    gap: 0.5rem;
    justify-content: center;
    flex-wrap: wrap;
}

.tag {
    padding: 0.4rem 1rem;
    background: rgba(0, 217, 255, 0.1);
    border: 1px solid var(--accent-blue);
    border-radius: 20px;
    font-size: 0.85rem;
    color: var(--accent-blue);
    font-weight: 600;
}

/* ================================================
   🛠️ Tools Section
   ================================================ */
.tools-section {
    padding: var(--spacing-section) 0;
}

.tools-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1.5rem;
}

.tool-item {
    background: var(--glass-bg);
    padding: 1rem 2rem;
    border-radius: 12px;
    border: 1px solid var(--glass-border);
    font-weight: 600;
    font-size: 1rem;
    transition: all var(--transition-normal);
    cursor: default;
}

.tool-item:hover {
    background: var(--accent-blue);
    color: #000;
    transform: translateY(-5px) scale(1.05);
    box-shadow: 0 10px 25px rgba(0, 217, 255, 0.3);
    border-color: var(--accent-blue);
}

/* ================================================
   📂 Projects Section
   ================================================ */
.projects-section {
    padding: var(--spacing-section) 0;
    background: linear-gradient(to bottom, rgba(17, 30, 51, 0.3), transparent);
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2.5rem;
}

.project-card {
    overflow: hidden;
    transition: all var(--transition-normal);
}

.project-image-wrapper {
    position: relative;
    width: 100%;
    height: 250px;
    overflow: hidden;
    border-radius: var(--radius-md);
    margin-bottom: 1.5rem;
}

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

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

.project-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, transparent, rgba(0, 0, 0, 0.7));
    display: flex;
    align-items: flex-end;
    padding: 1.5rem;
    opacity: 0;
    transition: opacity var(--transition-normal);
}

.project-card:hover .project-overlay {
    opacity: 1;
}

.project-label {
    background: var(--accent-blue);
    color: #000;
    padding: 0.4rem 1rem;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 700;
}

.project-content {
    padding: 0 1rem 1rem;
}

.project-title {
    margin-bottom: 1rem;
    color: var(--text-main);
}

.project-description {
    margin-bottom: 1.5rem;
    font-size: 1rem;
}

.project-tags {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

/* ================================================
   📞 CTA Section
   ================================================ */
.cta-section {
    padding: var(--spacing-section) 0;
    background: linear-gradient(135deg, rgba(0, 217, 255, 0.1), rgba(255, 215, 0, 0.05));
    position: relative;
    overflow: hidden;
}

.cta-content {
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
}

.cta-icon {
    font-size: 4rem;
    margin-bottom: 1.5rem;
    animation: float-cta 3s infinite ease-in-out;
}

@keyframes float-cta {

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

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

.cta-title {
    margin-bottom: 1.5rem;
}

.cta-subtitle {
    font-size: 1.15rem;
    margin-bottom: 2.5rem;
}

.cta-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

/* ================================================
   📧 Footer & Contact
   ================================================ */
.footer {
    padding: var(--spacing-section) 0 2rem;
    background: linear-gradient(to bottom, transparent, rgba(5, 11, 20, 0.8));
}

.footer-content {
    display: flex;
    flex-direction: column;
    gap: 3rem;
}

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

.footer-title {
    margin-bottom: 1rem;
}

.footer-subtitle {
    font-size: 1.1rem;
}

.contact-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

.contact-card {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    padding: 1.5rem;
    text-decoration: none;
    transition: all var(--transition-normal);
}

.contact-card:hover {
    transform: translateX(10px);
}

html[lang="ar"] .contact-card:hover {
    transform: translateX(-10px);
}

.contact-icon {
    font-size: 2rem;
    flex-shrink: 0;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.contact-label {
    font-size: 0.85rem;
    color: var(--text-muted);
    font-weight: 600;
}

.contact-value {
    font-size: 1rem;
    color: var(--text-main);
    font-weight: 600;
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid var(--glass-border);
}

.copyright {
    color: var(--text-muted);
    margin-bottom: 0.5rem;
}

.footer-note {
    color: var(--text-dim);
    font-size: 0.95rem;
}

/* ================================================
   ✨ Scroll Animations
   ================================================ */
.fade-in-section {
    opacity: 0;
    transform: translateY(50px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
    will-change: opacity, transform;
}

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

/* Animation Keyframes */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

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

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

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

@keyframes fadeInRight {
    from {
        opacity: 0;
        transform: translateX(-50px);
    }

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

@keyframes fadeInLeft {
    from {
        opacity: 0;
        transform: translateX(50px);
    }

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

/* ================================================
   🚀 Projects Section
   ================================================ */
.projects-section {
    padding: var(--spacing-section) 0;
    position: relative;
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2.5rem;
    margin-top: 3rem;
}

.project-card {
    display: flex;
    flex-direction: column;
    height: 100%;
    overflow: hidden;
    transition: all var(--transition-normal);
}

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

.project-image-wrapper {
    width: 100%;
    height: 220px;
    overflow: hidden;
    border-radius: 15px;
    margin-bottom: 1.5rem;
    position: relative;
}

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

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

.project-content {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.project-title {
    font-size: 1.5rem;
    margin-bottom: 0.75rem;
    color: var(--text-main);
}

.project-description {
    font-size: 0.95rem;
    color: var(--text-muted);
    margin-bottom: 1.5rem;
    line-height: 1.6;
    flex: 1;
}

.project-tech-stack {
    display: flex;
    gap: 0.75rem;
    margin-top: auto;
    padding-top: 1rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.tech-icon {
    width: 24px;
    height: 24px;
    object-fit: contain;
    opacity: 0.8;
    transition: all 0.3s ease;
}

.tech-icon:hover {
    opacity: 1;
    transform: scale(1.2);
}

/* ================================================
   📱 Responsive Design
   ================================================ */
@media (max-width: 1024px) {
    .hero-wrapper {
        gap: 3rem;
    }

    .hero-stats {
        gap: 2rem;
    }
}

@media (max-width: 768px) {

    /* Navigation */
    .nav-menu {
        position: fixed;
        top: 70px;
        right: -100%;
        width: 100%;
        max-width: 400px;
        height: calc(100vh - 70px);
        background: rgba(10, 22, 40, 0.98);
        backdrop-filter: blur(20px);
        flex-direction: column;
        justify-content: flex-start;
        padding: 3rem 2rem;
        gap: 1.5rem;
        transition: right var(--transition-normal);
        border-left: 1px solid var(--glass-border);
        box-shadow: var(--shadow-lg);
    }

    .mobile-header-wa {
        display: flex;
        align-items: center;
        justify-content: center;
        width: 40px;
        height: 40px;
        background: transparent;
        margin-left: auto;
        margin-right: 1rem;
        transition: all 0.3s ease;
        text-decoration: none;
    }

    .mobile-header-wa:hover {
        transform: scale(1.1);
        filter: drop-shadow(0 0 10px rgba(0, 229, 255, 0.3));
    }

    .mobile-header-wa img {
        width: 32px;
        height: 32px;
        object-fit: contain;
    }

    .mobile-only-wa,
    .mobile-social-btn {
        display: block;
        width: 100%;
    }

    /* Push the first button of the group to the bottom */
    .mobile-social-btn.first-of-group {
        margin-top: auto;
    }

    .mobile-only-wa {
        margin-top: 0.5rem;
        /* Space between buttons */
    }

    .mobile-social-btn {
        margin-top: 0.5rem;
    }

    .btn-sm-menu {
        width: 100%;
        justify-content: center;
        padding: 0.8rem;
    }

    html[lang="rtl"] .mobile-header-wa {
        margin-left: 1rem;
        margin-right: auto;
    }

    html[lang="rtl"] .nav-menu {
        right: auto;
        left: -100%;
        border-left: none;
        border-right: 1px solid var(--glass-border);
        transition: left var(--transition-normal);
    }

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

    html[lang="rtl"] .nav-menu.active {
        left: 0;
    }

    .mobile-toggle {
        display: flex;
    }

    /* Hero */
    .hero-wrapper {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 3rem;
    }

    .hero-buttons {
        justify-content: center;
    }

    .hero-stats {
        justify-content: center;
    }

    .hero-visual {
        order: -1;
    }

    .hero-image {
        max-width: 300px;
    }

    /* Sections */
    :root {
        --spacing-section: 3rem;
    }

    h1 {
        font-size: 2.5rem;
    }

    h2 {
        font-size: 2rem;
    }

    .section-header {
        margin-bottom: 2.5rem;
    }

    /* Grids */
    .services-grid,
    .projects-grid {
        grid-template-columns: 1fr;
    }

    .approach-grid {
        grid-template-columns: 1fr;
    }

    .contact-grid {
        grid-template-columns: 1fr;
    }

    /* Stats */
    .hero-stats {
        flex-direction: column;
        gap: 1.5rem;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 1rem;
    }

    .btn {
        padding: 0.875rem 1.5rem;
        font-size: 0.95rem;
    }

    .hero-buttons {
        flex-direction: column;
        width: 100%;
    }

    .hero-buttons .btn {
        width: 100%;
    }

    .tools-grid {
        gap: 1rem;
    }

    .tool-item {
        padding: 0.75rem 1.5rem;
        font-size: 0.9rem;
    }
}

/* ================================================
   🎨 Custom Scrollbar
   ================================================ */
::-webkit-scrollbar {
    width: 10px;
}

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

::-webkit-scrollbar-thumb {
    background: var(--accent-blue);
    border-radius: 10px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--accent-blue-light);
}

/* ================================================
   ⚡ Performance & Accessibility
   ================================================ */
@media (prefers-reduced-motion: reduce) {

    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

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