/* ===== الأنماط الرئيسية ===== */
:root {
    /* الألوان الأساسية */
    --primary-color: #6c63ff;
    --secondary-color: #ff6b6b;
    --accent-color: #00d9ff;
    --dark-color: #1a1a2e;
    --light-color: #f5f5f5;
    
    /* ألوان النص */
    --text-dark: #333;
    --text-light: #f5f5f5;
    --text-muted: #888;
    
    /* ألوان الخلفية */
    --bg-dark: #0f0f1a;
    --bg-light: #f8f9fa;
    --bg-gradient: linear-gradient(135deg, #1a1a2e, #16213e, #0f3460);
    
    /* الظلال */
    --shadow-sm: 0 2px 10px rgba(0, 0, 0, 0.1);
    --shadow-md: 0 5px 15px rgba(0, 0, 0, 0.15);
    --shadow-lg: 0 10px 25px rgba(0, 0, 0, 0.2);
    --shadow-neon: 0 0 10px rgba(108, 99, 255, 0.5);
    
    /* الانتقالات */
    --transition-fast: 0.3s ease;
    --transition-normal: 0.5s ease;
    --transition-slow: 0.8s ease;
    
    /* الحدود */
    --border-radius-sm: 5px;
    --border-radius-md: 10px;
    --border-radius-lg: 20px;
    --border-radius-full: 50%;
}

/* ===== إعادة تعيين وأساسيات ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    font-size: 62.5%;
    scroll-behavior: smooth;
}

body {
    font-family: 'Tajawal', 'Cairo', sans-serif;
    font-size: 1.6rem;
    line-height: 1.7;
    color: var(--text-dark);
    background-color: var(--bg-dark);
    overflow-x: hidden;
    direction: rtl;
}

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

ul {
    list-style: none;
}

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

button, input, textarea {
    font-family: inherit;
    font-size: inherit;
    outline: none;
    border: none;
}

button {
    cursor: pointer;
    background: none;
}

section {
    padding: 10rem 0;
    position: relative;
    overflow: hidden;
}

.container {
    width: 100%;
    max-width: 120rem;
    margin: 0 auto;
    padding: 0 2rem;
    position: relative;
    z-index: 1;
}

/* ===== المؤثرات البصرية ===== */
.wave-background {
    background: var(--bg-gradient);
    position: relative;
    overflow: hidden;
}

.wave {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 100px;
    background: url('data:image/svg+xml;utf8,<svg viewBox="0 0 1440 320" xmlns="http://www.w3.org/2000/svg"><path fill="%230f0f1a" d="M0,192L48,197.3C96,203,192,213,288,229.3C384,245,480,267,576,250.7C672,235,768,181,864,181.3C960,181,1056,235,1152,234.7C1248,235,1344,181,1392,154.7L1440,128L1440,320L1392,320C1344,320,1248,320,1152,320C1056,320,960,320,864,320C768,320,672,320,576,320C480,320,384,320,288,320C192,320,96,320,48,320L0,320Z"></path></svg>');
    background-size: cover;
    background-repeat: no-repeat;
    animation: wave-animation 10s linear infinite;
}

.wave:nth-child(2) {
    bottom: 10px;
    opacity: 0.5;
    animation: wave-animation 7s linear infinite;
}

.wave:nth-child(3) {
    bottom: 15px;
    opacity: 0.2;
    animation: wave-animation 5s linear infinite;
}

@keyframes wave-animation {
    0% {
        background-position-x: 0;
    }
    100% {
        background-position-x: 1000px;
    }
}

.grid-background {
    background-color: var(--bg-dark);
    background-image: 
        linear-gradient(rgba(26, 26, 46, 0.8) 1px, transparent 1px),
        linear-gradient(90deg, rgba(26, 26, 46, 0.8) 1px, transparent 1px);
    background-size: 20px 20px;
    position: relative;
}

.grid-background::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 50% 50%, rgba(108, 99, 255, 0.1), transparent 50%);
}

/* ===== المؤثرات النصية ===== */
.neon-text {
    color: var(--light-color);
    text-shadow: 
        0 0 5px rgba(108, 99, 255, 0.5),
        0 0 10px rgba(108, 99, 255, 0.3),
        0 0 15px rgba(108, 99, 255, 0.2),
        0 0 20px rgba(108, 99, 255, 0.1);
}

.accent-text {
    color: var(--accent-color);
    font-weight: 700;
}

.glitch-text {
    position: relative;
    color: var(--light-color);
    animation: glitch 3s infinite;
}

@keyframes glitch {
    0% {
        text-shadow: 0.05em 0 0 rgba(255, 0, 0, 0.75), -0.05em -0.025em 0 rgba(0, 255, 0, 0.75), -0.025em 0.05em 0 rgba(0, 0, 255, 0.75);
    }
    14% {
        text-shadow: 0.05em 0 0 rgba(255, 0, 0, 0.75), -0.05em -0.025em 0 rgba(0, 255, 0, 0.75), -0.025em 0.05em 0 rgba(0, 0, 255, 0.75);
    }
    15% {
        text-shadow: -0.05em -0.025em 0 rgba(255, 0, 0, 0.75), 0.025em 0.025em 0 rgba(0, 255, 0, 0.75), -0.05em -0.05em 0 rgba(0, 0, 255, 0.75);
    }
    49% {
        text-shadow: -0.05em -0.025em 0 rgba(255, 0, 0, 0.75), 0.025em 0.025em 0 rgba(0, 255, 0, 0.75), -0.05em -0.05em 0 rgba(0, 0, 255, 0.75);
    }
    50% {
        text-shadow: 0.025em 0.05em 0 rgba(255, 0, 0, 0.75), 0.05em 0 0 rgba(0, 255, 0, 0.75), 0 -0.05em 0 rgba(0, 0, 255, 0.75);
    }
    99% {
        text-shadow: 0.025em 0.05em 0 rgba(255, 0, 0, 0.75), 0.05em 0 0 rgba(0, 255, 0, 0.75), 0 -0.05em 0 rgba(0, 0, 255, 0.75);
    }
    100% {
        text-shadow: -0.025em 0 0 rgba(255, 0, 0, 0.75), -0.025em -0.025em 0 rgba(0, 255, 0, 0.75), -0.025em -0.05em 0 rgba(0, 0, 255, 0.75);
    }
}

/* ===== المكونات ===== */
.glass-card {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-radius: var(--border-radius-md);
    border: 1px solid rgba(255, 255, 255, 0.2);
    padding: 2rem;
    box-shadow: var(--shadow-md);
}

.enhanced-glass {
    background: rgba(15, 15, 26, 0.7);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-radius: var(--border-radius-md);
    border: 1px solid rgba(108, 99, 255, 0.2);
    box-shadow: 
        0 4px 30px rgba(0, 0, 0, 0.1),
        0 0 10px rgba(108, 99, 255, 0.2);
    transition: var(--transition-normal);
}

.enhanced-glass:hover {
    border-color: rgba(108, 99, 255, 0.4);
    box-shadow: 
        0 4px 30px rgba(0, 0, 0, 0.15),
        0 0 15px rgba(108, 99, 255, 0.3);
    transform: translateY(-5px);
}

.neumorphic-card {
    background: linear-gradient(145deg, #12121f, #1e1e36);
    border-radius: var(--border-radius-md);
    box-shadow: 
        5px 5px 10px rgba(0, 0, 0, 0.3),
        -5px -5px 10px rgba(30, 30, 54, 0.3);
    padding: 2rem;
    transition: var(--transition-normal);
}

.neumorphic-card:hover {
    box-shadow: 
        8px 8px 15px rgba(0, 0, 0, 0.4),
        -8px -8px 15px rgba(30, 30, 54, 0.4);
    transform: translateY(-5px);
}

.glow-button {
    background: var(--primary-color);
    color: var(--text-light);
    padding: 1.2rem 2.5rem;
    border-radius: var(--border-radius-md);
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
    box-shadow: 0 0 15px rgba(108, 99, 255, 0.5);
    transition: var(--transition-fast);
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.glow-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, var(--primary-color), var(--accent-color));
    z-index: -1;
    transition: var(--transition-fast);
}

.glow-button:hover {
    box-shadow: 0 0 25px rgba(108, 99, 255, 0.8);
    transform: translateY(-3px);
}

.glow-button:hover::before {
    transform: scaleX(1.1) scaleY(1.2);
    opacity: 0.8;
}

.glow-button.secondary {
    background: transparent;
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
    box-shadow: none;
}

.glow-button.secondary::before {
    opacity: 0;
}

.glow-button.secondary:hover {
    color: var(--text-light);
    box-shadow: 0 0 15px rgba(108, 99, 255, 0.5);
}

.glow-button.secondary:hover::before {
    opacity: 1;
}

.text-link {
    color: var(--primary-color);
    font-weight: 600;
    position: relative;
    padding-bottom: 2px;
}

.text-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary-color);
    transition: var(--transition-fast);
}

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

.floating-image {
    animation: float 6s ease-in-out infinite;
}

@keyframes float {
    0% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-20px);
    }
    100% {
        transform: translateY(0);
    }
}

/* ===== رأس الصفحة ===== */
header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 2rem 0;
    z-index: 1000;
    transition: var(--transition-fast);
}

header.scrolled {
    background: rgba(15, 15, 26, 0.9);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    padding: 1rem 0;
    box-shadow: var(--shadow-md);
}

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

.logo h2 {
    font-size: 2.4rem;
    font-weight: 700;
    color: var(--text-light);
    margin-bottom: 0.5rem;
}

.logo p {
    font-size: 1.4rem;
    color: var(--accent-color);
}

.menu-toggle {
    display: none;
    width: 4rem;
    height: 4rem;
    border-radius: var(--border-radius-full);
    background: rgba(255, 255, 255, 0.1);
    position: relative;
    z-index: 1001;
}

.menu-icon {
    position: relative;
    width: 2.5rem;
    height: 2px;
    background: var(--text-light);
    margin: 0 auto;
    transition: var(--transition-fast);
}

.menu-icon::before,
.menu-icon::after {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    background: var(--text-light);
    transition: var(--transition-fast);
}

.menu-icon::before {
    transform: translateY(-8px);
}

.menu-icon::after {
    transform: translateY(8px);
}

.menu-toggle.active .menu-icon {
    background: transparent;
}

.menu-toggle.active .menu-icon::before {
    transform: rotate(45deg);
}

.menu-toggle.active .menu-icon::after {
    transform: rotate(-45deg);
}

.menu-backdrop {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(15, 15, 26, 0.95);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    z-index: 999;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition-fast);
}

.menu-backdrop.active {
    opacity: 1;
    visibility: visible;
}

.menu-items {
    display: flex;
}

.menu-items ul {
    display: flex;
    gap: 2rem;
}

.menu-items a {
    color: var(--text-light);
    font-weight: 500;
    padding: 0.5rem 1rem;
    position: relative;
}

.menu-items a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary-color);
    transition: var(--transition-fast);
}

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

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

.theme-toggle {
    width: 4rem;
    height: 4rem;
    border-radius: var(--border-radius-full);
    background: rgba(255, 255, 255, 0.1);
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.toggle-icon {
    position: absolute;
    font-size: 1.8rem;
    color: var(--text-light);
    transition: var(--transition-fast);
}

.sun-icon {
    opacity: 1;
    transform: translateY(0);
}

.moon-icon {
    opacity: 0;
    transform: translateY(20px);
}

.theme-toggle.light-mode .sun-icon {
    opacity: 0;
    transform: translateY(-20px);
}

.theme-toggle.light-mode .moon-icon {
    opacity: 1;
    transform: translateY(0);
}

/* ===== قسم البطل ===== */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding-top: 8rem;
}

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

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

.hero-title {
    font-size: 5rem;
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 2rem;
}

.hero-subtitle {
    font-size: 1.8rem;
    margin-bottom: 3rem;
    max-width: 50rem;
}

.hero-cta {
    display: flex;
    gap: 2rem;
    margin-top: 3rem;
}

.hero-image {
    position: relative;
}

.image-container {
    position: relative;
    padding: 2rem;
    border-radius: var(--border-radius-lg);
    overflow: hidden;
}

.hero-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
    margin-top: 2rem;
}

.badge {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem 1.5rem;
    border-radius: var(--border-radius-md);
    color: var(--text-light);
}

.badge i {
    font-size: 1.8rem;
    color: var(--accent-color);
}

.hero-shapes .shape {
    position: absolute;
    border-radius: var(--border-radius-full);
    background: rgba(108, 99, 255, 0.2);
    filter: blur(50px);
}

.shape-1 {
    top: 10%;
    left: 10%;
    width: 300px;
    height: 300px;
    animation: shape-animation 15s linear infinite;
}

.shape-2 {
    bottom: 20%;
    right: 5%;
    width: 200px;
    height: 200px;
    animation: shape-animation 10s linear infinite reverse;
}

.shape-3 {
    top: 40%;
    right: 30%;
    width: 150px;
    height: 150px;
    animation: shape-animation 12s linear infinite;
}

.shape-4 {
    bottom: 10%;
    left: 30%;
    width: 250px;
    height: 250px;
    animation: shape-animation 18s linear infinite reverse;
}

@keyframes shape-animation {
    0% {
        transform: translate(0, 0) rotate(0deg);
    }
    25% {
        transform: translate(50px, -50px) rotate(90deg);
    }
    50% {
        transform: translate(0, -100px) rotate(180deg);
    }
    75% {
        transform: translate(-50px, -50px) rotate(270deg);
    }
    100% {
        transform: translate(0, 0) rotate(360deg);
    }
}

/* ===== عناوين الأقسام ===== */
.section-header {
    text-align: center;
    margin-bottom: 6rem;
}

.section-subtitle {
    display: inline-block;
    font-size: 1.6rem;
    font-weight: 600;
    color: var(--primary-color);
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 1rem;
}

.section-title {
    font-size: 4rem;
    font-weight: 800;
    color: var(--text-light);
    margin-bottom: 2rem;
}

.title-separator {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    margin: 0 auto;
    width: 15rem;
}

.title-separator span {
    height: 2px;
    flex: 1;
    background: var(--primary-color);
}

.title-separator i {
    color: var(--primary-color);
    font-size: 1.6rem;
}

/* ===== قسم نبذة عني ===== */
.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.about-image {
    position: relative;
}

.image-frame {
    position: relative;
    border-radius: var(--border-radius-lg);
    overflow: hidden;
    padding: 2rem;
}

.image-frame img {
    border-radius: var(--border-radius-md);
    transition: var(--transition-normal);
}

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

.experience-badge {
    position: absolute;
    bottom: 3rem;
    right: 3rem;
    width: 10rem;
    height: 10rem;
    border-radius: var(--border-radius-full);
    background: var(--primary-color);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    color: var(--text-light);
    box-shadow: var(--shadow-lg);
}

.experience-badge .years {
    font-size: 3rem;
    font-weight: 800;
    line-height: 1;
}

.experience-badge .text {
    font-size: 1.4rem;
}

.about-shape {
    position: absolute;
    top: -50px;
    left: -50px;
    width: 200px;
    height: 200px;
    border-radius: var(--border-radius-full);
    background: rgba(108, 99, 255, 0.2);
    filter: blur(50px);
    z-index: -1;
}

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

.about-text h3 {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 2rem;
}

.about-text p {
    margin-bottom: 2rem;
}

.about-features {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    margin: 3rem 0;
}
.feature i {
    font-size: 3rem;
    color: var(--primary-color);
    margin-bottom: 1.5rem;
    position: relative;
    z-index: 2;
}

.feature h4 {
    font-size: 1.8rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: var(--text-light); /* العنوان يستخدم اللون الفاتح */
    position: relative;
    z-index: 2;
}

.feature p {
  position: relative;
  z-index: 2; /* النصوص فوق كلشي */
  color: var(--text-light); /* <<--- إضافة هذا السطر لإظهار النص باللون الفاتح */
  font-size: 1.4rem; /* للتأكد من أن حجم الخط مناسب أيضاً */
  line-height: 1.6; /* لتحسين قابلية القراءة */
}

/* كود البرداية المعدل ليعمل على اللابتوب (hover) والجوال (عبر إضافة كلاس .curtain-active بواسطة JavaScript) */

.feature {
    text-align: center;
    padding: 2rem;
    position: relative;
    overflow: hidden; /* مهم ليقص البرداية وقت تنزل */
    z-index: 0; /* البلوك الرئيسي */
    cursor: pointer; /* لجعل العنصر قابلاً للنقر/اللمس لتفعيل البرداية على الجوال */
}

/* البرداية نفسها */
.feature::after {
  content: "";
  position: absolute;
  top: -100%; /* الحالة الأولية: مخفية في الأعلى */
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    135deg,
    rgba(120, 180, 255, 0.25) 0%,  /* سماوي */
    rgba(140, 120, 200, 0.25) 50%, /* لمسة بنفسجي */
    rgba(60, 80, 130, 0.25) 100%   /* كحلي خفيف */
  );
  backdrop-filter: blur(8px); /* زجاجي ناعم */
  z-index: 1;
  border-radius: inherit; /* يخلي البرداية تمشي مع الحواف */
  pointer-events: none; /* ما تأثر عالماوس */
}

/* تعريف الحركة */
@keyframes curtainSlide {
  0% {
    top: -100%;
  }
  50% { /* تنزل البرداية لتصبح مرئية بالكامل */
    top: 0;
  }
  100% { /* تعود البرداية للأعلى لتختفي */
    top: -100%;
  }
}

.feature:hover::after,
.feature.curtain-active::after {
  animation: curtainSlide 0.6s ease-in-out forwards;
}

.about-cta {
    display: flex;
    align-items: center;
    gap: 2rem;
    margin-top: 3rem;
}

/* ===== قسم الخدمات ===== */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(30rem, 1fr));
    gap: 3rem;
}

.service-card {
    height: 25rem;
    perspective: 1000px;
}

.flip-card-inner {
    position: relative;
    width: 100%;
    height: 100%;
    transition: transform 0.8s;
    transform-style: preserve-3d;
}

.service-card:hover .flip-card-inner {
    transform: rotateY(180deg);
}

.flip-card-front, .flip-card-back {
    position: absolute;
    width: 100%;
    height: 100%;
    backface-visibility: hidden;
    border-radius: var(--border-radius-md);
    padding: 3rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
}

.flip-card-front {
    background: linear-gradient(145deg, #12121f, #1e1e36);
    box-shadow: var(--shadow-md);
    color: var(--text-light);
}

.flip-card-back {
    background: var(--primary-color);
    color: var(--text-light);
    transform: rotateY(180deg);
}

.service-icon {
    width: 8rem;
    height: 8rem;
    border-radius: var(--border-radius-full);
    background: rgba(255, 255, 255, 0.1);
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 2rem;
}

.service-icon i {
    font-size: 3.5rem;
    color: var(--primary-color);
}

.service-card h3 {
    font-size: 2.2rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
}

.flip-card-front p {
    font-size: 1.6rem;
    color: var(--text-muted);
}

.flip-card-back p {
    margin-bottom: 2rem;
}

.service-link {
    font-weight: 600;
    text-decoration: underline;
    
}


.services-cta {
    text-align: center;
    margin-top: 5rem;
    color: var(--text-light);
}

.services-cta p {
    margin-bottom: 2rem;
}

/* ===== قسم الأعمال ===== */
.portfolio-filter {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 1rem;
    margin-bottom: 4rem;
}

.filter-btn {
    padding: 1rem 2rem;
    border-radius: var(--border-radius-md);
    background: rgba(255, 255, 255, 0.1);
    color: var(--text-light);
    font-weight: 500;
    transition: var(--transition-fast);
}

.filter-btn:hover,
.filter-btn.active {
    background: var(--primary-color);
    color: var(--text-light);
}

.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(35rem, 1fr));
    gap: 3rem;
}

.portfolio-item {
    border-radius: var(--border-radius-md);
    overflow: hidden;
    position: relative;
}

.portfolio-image {
    position: relative;
    overflow: hidden;
    border-radius: var(--border-radius-md);
}

.portfolio-image img {
    width: 100%;
    height: 25rem;
    object-fit: cover;
    transition: var(--transition-normal);
}

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

.portfolio-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(15, 15, 26, 0.8);
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: var(--transition-normal);
}

.portfolio-item:hover .portfolio-overlay {
    opacity: 1;
}

.portfolio-info {
    text-align: center;
    color: var(--text-light);
    transform: translateY(20px);
    transition: var(--transition-normal);
}

.portfolio-item:hover .portfolio-info {
    transform: translateY(0);
}

.portfolio-info h3 {
    font-size: 2.2rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.portfolio-info p {
    margin-bottom: 2rem;
}

.portfolio-link {
    width: 5rem;
    height: 5rem;
    border-radius: var(--border-radius-full);
    background: var(--primary-color);
    display: flex;
    justify-content: center;
    align-items: center;
    color: var(--text-light);
    font-size: 2rem;
    margin: 0 auto;
    transition: var(--transition-fast);
}

.portfolio-link:hover {
    background: var(--accent-color);
    transform: scale(1.1);
}

.portfolio-cta {
    text-align: center;
    margin-top: 5rem;
}

/* ===== قسم المهارات ===== */
.skills-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
}

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

.skills-text h3 {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 2rem;
}

.skills-features {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    margin: 3rem 0;
}

.skill-feature {
    padding: 2rem;
    text-align: center;
}

.skill-feature i {
    font-size: 3rem;
    color: var(--primary-color);
    margin-bottom: 1.5rem;
}

.skill-feature h4 {
    font-size: 1.8rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: var(--text-light);
}

.skill-feature p {
    font-size: 1.4rem;
    color: var(--text-muted);
    margin-bottom: 0;
}

.skills-bars {
    margin-bottom: 4rem;
}

.skill-item {
    margin-bottom: 2.5rem;
}

.skill-info {
    display: flex;
    justify-content: space-between;
    margin-bottom: 1rem;
}

.skill-name {
    font-size: 1.6rem;
    font-weight: 600;
    color: var(--text-light);
}

.skill-percentage {
    font-size: 1.6rem;
    font-weight: 600;
    color: var(--primary-color);
}

.custom-progress {
    height: 1rem;
    background: rgba(255, 255, 255, 0.1);
    border-radius: var(--border-radius-full);
    position: relative;
    overflow: hidden;
}

.progress-bar {
    height: 100%;
    background: var(--primary-color);
    border-radius: var(--border-radius-full);
    width: 0;
    transition: width 1.5s ease;
}

.progress-glow {
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    width: 60px;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    animation: progress-glow 2s linear infinite;
}

@keyframes progress-glow {
    0% {
        transform: translateX(-100%);
    }
    100% {
        transform: translateX(1000%);
    }
}

.skills-circles {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 3rem;
}

.circular-progress {
    position: relative;
    width: 15rem;
    height: 15rem;
    margin: 0 auto;
    text-align: center;
}

.circular-progress svg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    transform: rotate(-90deg);
}

.circular-progress svg circle {
    width: 100%;
    height: 100%;
    fill: none;
    stroke-width: 10;
    stroke: rgba(255, 255, 255, 0.1);
    transform: translate(10px, 10px);
    stroke-dasharray: 440;
    stroke-dashoffset: 440;
}

.circular-progress svg circle:nth-child(2) {
    stroke: var(--primary-color);
    stroke-dashoffset: calc(440 - (440 * var(--percent)) / 100);
    transition: stroke-dashoffset 1.5s ease;
}

.progress-value {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 3rem;
    font-weight: 700;
    color: var(--text-light);
}

.circular-progress h4 {
    margin-top: 16rem;
    font-size: 1.6rem;
    font-weight: 600;
    color: var(--text-light);
}

/* ===== قسم التواصل ===== */
.contact-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
}

.contact-info {
    padding: 3rem;
    color: var(--text-light);
}

.contact-info h3 {
    font-size: 2.4rem;
    font-weight: 700;
    margin-bottom: 3rem;
}

.contact-item {
    display: flex;
    align-items: flex-start;
    gap: 2rem;
    margin-bottom: 3rem;
}

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

.contact-item h4 {
    font-size: 1.8rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.contact-item p a {
    color: var(--text-light);
    transition: var(--transition-fast);
}

.contact-item p a:hover {
    color: var(--primary-color);
}

.social-links {
    display: flex;
    gap: 1.5rem;
    margin: 3rem 0;
}

.social-link {
    width: 4.5rem;
    height: 4.5rem;
    border-radius: var(--border-radius-full);
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1.8rem;
    color: var(--text-light);
    transition: var(--transition-fast);
}

.social-link:hover {
    color: var(--primary-color);
    transform: translateY(-5px);
}

.contact-map {
    margin-top: 3rem;
    border-radius: var(--border-radius-md);
    overflow: hidden;
}

.contact-form {
    padding: 3rem;
    color: var(--text-light);
}

.contact-form h3 {
    font-size: 2.4rem;
    font-weight: 700;
    margin-bottom: 3rem;
}

.form-group {
    margin-bottom: 2rem;
}

.form-control {
    width: 100%;
    padding: 1.5rem;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: var(--border-radius-md);
    color: var(--text-light);
    transition: var(--transition-fast);
}

.form-control:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 2px rgba(108, 99, 255, 0.2);
}

.form-control::placeholder {
    color: rgba(255, 255, 255, 0.5);
}

textarea.form-control {
    min-height: 15rem;
    resize: vertical;
}

.custom-dropdown {
    position: relative;
}

.dropdown-selected {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    padding: 1.5rem;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: var(--border-radius-md);
    color: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: var(--transition-fast);
}

.dropdown-selected:hover {
    border-color: var(--primary-color);
}

.dropdown-arrow {
    transition: var(--transition-fast);
}

.custom-dropdown.active .dropdown-arrow {
    transform: rotate(180deg);
}

.dropdown-options {
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background: rgba(15, 15, 26, 0.95);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: var(--border-radius-md);
    margin-top: 0.5rem;
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    transition: var(--transition-fast);
    z-index: 10;
}

.custom-dropdown.active .dropdown-options {
    max-height: 30rem;
    opacity: 1;
}

.dropdown-option {
    padding: 1.2rem 1.5rem;
    cursor: pointer;
    transition: var(--transition-fast);
}

.dropdown-option:hover {
    background: rgba(108, 99, 255, 0.2);
}

/* ===== قسم الشهادات والتوصيات ===== */
.testimonials-slider {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 3rem;
    margin-bottom: 4rem;
}

.testimonial-item {
    padding: 3rem;
    color: var(--text-light);
}

.testimonial-content {
    position: relative;
    margin-bottom: 3rem;
}

.quote-icon {
    position: absolute;
    top: -1.5rem;
    right: -1.5rem;
    width: 4rem;
    height: 4rem;
    border-radius: var(--border-radius-full);
    background: var(--primary-color);
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 2rem;
    color: var(--text-light);
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.author-image {
    width: 6rem;
    height: 6rem;
    border-radius: var(--border-radius-full);
    overflow: hidden;
    border: 3px solid var(--primary-color);
}

.author-info h4 {
    font-size: 1.8rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.author-info p {
    font-size: 1.4rem;
    color: var(--text-muted);
    margin-bottom: 0.5rem;
}

.rating {
    color: #ffc107;
}

.testimonials-controls {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 2rem;
}

.testimonial-prev,
.testimonial-next {
    width: 4.5rem;
    height: 4.5rem;
    border-radius: var(--border-radius-full);
    background: rgba(255, 255, 255, 0.1);
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1.8rem;
    color: var(--text-light);
    transition: var(--transition-fast);
}

.testimonial-prev:hover,
.testimonial-next:hover {
    background: var(--primary-color);
}

.testimonial-dots {
    display: flex;
    gap: 1rem;
}

.dot {
    width: 1.2rem;
    height: 1.2rem;
    border-radius: var(--border-radius-full);
    background: rgba(255, 255, 255, 0.3);
    cursor: pointer;
    transition: var(--transition-fast);
}

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

/* ===== قسم الأسئلة الشائعة ===== */
.faq-content {
    max-width: 80rem;
    margin: 0 auto;
}

.faq-item {
    margin-bottom: 2rem;
    overflow: hidden;
}

.faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 2rem;
    cursor: pointer;
    transition: var(--transition-fast);
}

.faq-question h3 {
    font-size: 1.8rem;
    font-weight: 600;
    color: var(--text-light);
}

.faq-toggle {
    width: 3rem;
    height: 3rem;
    border-radius: var(--border-radius-full);
    background: rgba(255, 255, 255, 0.1);
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1.4rem;
    color: var(--text-light);
    transition: var(--transition-fast);
}

.faq-item.active .faq-toggle {
    background: var(--primary-color);
    transform: rotate(45deg);
}

.faq-answer {
    padding: 0 2rem 2rem;
    color: var(--text-muted);
    max-height: 0;
    overflow: hidden;
    transition: var(--transition-normal);
}

.faq-item.active .faq-answer {
    max-height: 50rem;
}

.faq-cta {
    text-align: center;
    margin-top: 5rem;
    color: var(--text-light);
}

.faq-cta p {
    margin-bottom: 2rem;
}

/* ===== قسم النشرة البريدية ===== */
.newsletter-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 4rem;
    color: var(--text-light);
}

.newsletter-text {
    flex: 1;
}

.newsletter-text h2 {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
}

.newsletter-form {
    flex: 1;
}

.newsletter-form .form-group {
    display: flex;
    gap: 1rem;
    margin-bottom: 0;
}

/* ===== الفوتر ===== */
footer {
    padding: 8rem 0 2rem;
    color: var(--text-light);
}

.footer-content {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 4rem;
    margin-bottom: 4rem;
}

.footer-logo h2 {
    font-size: 2.4rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.footer-logo p {
    font-size: 1.6rem;
    color: var(--text-muted);
    margin-bottom: 2rem;
}

.footer-links h3,
.footer-contact h3 {
    font-size: 2rem;
    font-weight: 600;
    margin-bottom: 2rem;
}

.footer-links ul {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.footer-links a {
    color: var(--text-muted);
    transition: var(--transition-fast);
}

.footer-links a:hover {
    color: var(--primary-color);
    transform: translateX(5px);
}
.footer-links ul li a {
  position: relative;
  display: inline-block;
  transition: transform 0.3s ease;
  padding-right: 20px; /* مساحة للسهم */
   color: (--text-muted);   
  text-decoration: none;
}

.footer-links ul li a::after {
  content: "➔"; /* السهم */
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  opacity: 0.7;
  transition: transform 0.3s ease;
}

.footer-links ul li a:hover {
  transform: translateX(5px); /* تحرك خفيف باتجاه السهم */
}

.footer-links ul li a:hover::after {
  transform: translateY(-50%) translateX(3px); /* حركة خفيفة للسهم كمان */
}

.footer-contact p {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
    color: var(--text-muted);
}

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

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

/* ===== زر التمرير للأعلى ===== */
.scroll-to-top {
    position: fixed;
    bottom: 3rem;
    right: 3rem;
    width: 5rem;
    height: 5rem;
    border-radius: var(--border-radius-full);
    background: var(--primary-color);
    color: var(--text-light);
    font-size: 2rem;
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow: var(--shadow-md);
    opacity: 0;
    visibility: hidden;
    transition: var(--transition-fast);
    z-index: 99;
}

.scroll-to-top.active {
    opacity: 1;
    visibility: visible;
}

.scroll-to-top:hover {
    background: var(--accent-color);
    transform: translateY(-5px);
}

/* ===== المؤشر المخصص ===== */
.cursor {
    position: fixed;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--primary-color);
    pointer-events: none;
    transform: translate(-50%, -50%);
    z-index: 9999;
    transition: width 0.3s, height 0.3s, background-color 0.3s;
}

.cursor-follower {
    position: fixed;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 2px solid var(--primary-color);
    pointer-events: none;
    transform: translate(-50%, -50%);
    z-index: 9998;
    transition: all 0.2s ease-out;
}

/* ===== شريط التمرير المخصص ===== */
.custom-scrollbar::-webkit-scrollbar {
    width: 10px;
}

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

.custom-scrollbar::-webkit-scrollbar-thumb {
    background: var(--primary-color);
    border-radius: 5px;
}

.custom-scrollbar::-webkit-scrollbar-thumb:hover {
    background: var(--accent-color);
}

/* ===== الاستجابة للأجهزة المختلفة ===== */
@media (max-width: 1200px) {
    html {
        font-size: 60%;
    }
    
    .hero-title {
        font-size: 4.5rem;
    }
    
    .section-title {
        font-size: 3.5rem;
    }
}

@media (max-width: 992px) {
    html {
        font-size: 58%;
    }
    
    .hero-content,
    .about-content,
    .skills-content,
    .contact-content,
    .footer-content {
        grid-template-columns: 1fr;
    }
    
    .hero-image {
        order: -1;
    }
    
    .hero-text {
        text-align: center;
    }
    
    .hero-cta {
        justify-content: center;
    }
    
    .about-image {
        margin-bottom: 4rem;
    }
    
    .about-features,
    .skills-features {
        grid-template-columns: 1fr;
    }
    
    .testimonials-slider {
        grid-template-columns: 1fr;
    }
    
    .newsletter-content {
        flex-direction: column;
        text-align: center;
        gap: 3rem;
    }
}

@media (max-width: 768px) {
    html {
        font-size: 55%;
    }
    
    .menu-toggle {
        display: flex;
        align-items: center;
        justify-content: center;
    }
    
    .menu-items {
        position: fixed;
        top: 0;
        right: -100%;
        width: 80%;
        height: 100vh;
        background: var(--bg-dark);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        z-index: 1000;
        transition: var(--transition-normal);
    }
    
    .menu-items.active {
        right: 0;
    }
    
    .menu-items ul {
        flex-direction: column;
        align-items: center;
    }
    
    .menu-items li {
        opacity: 0;
        transform: translateY(20px);
        animation: menu-item-animation 0.5s forwards;
        animation-delay: calc(var(--i) * 0.1s);
    }
    
    @keyframes menu-item-animation {
        to {
            opacity: 1;
            transform: translateY(0);
        }
    }
    
    .portfolio-grid,
    .services-grid {
        grid-template-columns: 1fr;
    }
    
    .skills-circles {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 576px) {
    html {
        font-size: 50%;
    }
    
    .hero-title {
        font-size: 4rem;
    }
    
    .section-title {
        font-size: 3rem;
    }
    
    .about-cta,
    .hero-cta {
        flex-direction: column;
        align-items: stretch;
    }
    
    .newsletter-form .form-group {
        flex-direction: column;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
    }
}
/* بدون تغيير على شكل الأيقونات الأساسي */
i[class*="fa-"] {
    transition: transform 0.3s ease;
    display: inline-block;
  }
  
  /* حركة انتفاخ + اهتزاز + انبثاق خفيف للخارج */
  @keyframes popBounce {
    0% {
      transform: scale(1) translate(0, 0);
    }
    20% {
      transform: scale(1.12) translate(2px, -2px);
    }
    40% {
      transform: scale(1.12) translate(-2px, 2px);
    }
    60% {
      transform: scale(1.12) translate(2px, -2px);
    }
    80% {
      transform: scale(1.12) translate(-2px, 2px);
    }
    100% {
      transform: scale(1) translate(0, 0);
    }
  }
  
  /* عند مرور الماوس */
  i[class*="fa-"].hovered {
    animation: popBounce 0.6s ease;
  }
  /* تأثير عام */
.scroll-animate {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.8s ease-out, transform 0.8s ease-out;
  will-change: opacity, transform;
}

.scroll-animate.show {
  opacity: 1;
  transform: translateY(0);
}
.view-site-btn {
    display: none;
    margin-top: 10px;
    padding: 8px 15px;
    background-color: #e2540e;
    color: #fff;
    text-decoration: none;
    border-radius: 8px;
    transition: background-color 0.3s ease;
}

.view-site-btn:hover {
    background-color: #df321e;
}

.portfolio-item:hover .view-site-btn {
    display: inline-block;
}
.portfolio-info {
    position: relative;
}

.view-site-btn {
    opacity: 0;
    transform: translateY(10px);
    transition: opacity 0.4s ease, transform 0.4s ease;
}

.portfolio-item:hover .view-site-btn {
    opacity: 1;
    transform: translateY(0);
}