﻿/* --- متغيرات الألوان (البنفسجي والأسود) --- */
:root {
    --bg-color: #0a0118;          /* الخلفية الداكنة جداً */
    --bg-secondary: #1a0f2e;      /* لون خلفية ثانوي أفتح قليلاً */
    --primary-color: #a855f7;     /* اللون البنفسجي الرئيسي */
    --primary-glow: rgba(168, 85, 247, 0.4); /* توهج بنفسجي */
    --text-color: #ffffff;        /* النص الأبيض */
    --text-muted: #cccccc;        /* نص رمادي */
    --card-bg: rgba(255, 255, 255, 0.03); /* زجاجي شفاف */
    --border-color: rgba(168, 85, 247, 0.2);
    --font-main: 'IBM Plex Sans Arabic', sans-serif;
}

/* --- إعدادات عامة --- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    scroll-behavior: smooth;
}

body {
    background-color: var(--bg-color);
    color: var(--text-color);
    font-family: var(--font-main);
    line-height: 1.6;
    overflow-x: hidden;
    perspective: 1200px;
    cursor: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="rgba(168,85,247,0.8)" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><polyline points="6 9 12 15 18 9"></polyline></svg>') 12 12, auto;
    margin: 0 !important;
    padding: 0 !important;
    width: 100%;
    position: relative;
    top: 0;
}

html { 
    perspective: 1200px;
    overflow-x: hidden;
    width: 100%;
    margin: 0 !important;
    padding: 0 !important;
}

a { text-decoration: none; transition: 0.3s; cursor: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="rgba(168,85,247,0.8)"><path d="M10 6L8.59 7.41 13.17 12l-4.58 4.59L10 18l6-6z"></path></svg>') 12 12, pointer; }
ul { list-style: none; }

/* --- الهيدر --- */
.main-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    padding: 8px 5%;
    background: linear-gradient(180deg, rgba(88, 28, 135, 0.15) 0%, rgba(88, 28, 135, 0.08) 50%, rgba(88, 28, 135, 0) 100%) !important;
    backdrop-filter: blur(20px) !important;
    border-bottom: none !important;
    margin: 0 !important;
    box-shadow: none;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1400px;
    margin: 0 auto;
    perspective: 1200px;
    gap: 20px;
    flex-wrap: nowrap;
}

.center-section {
    flex: 0 0 auto;
    display: flex;
    justify-content: center;
    align-items: center;
}

/* إظهار أيقونات السوشيال في الهيدر */
.social-links-header {
    display: flex;
    gap: 12px;
}

.social-links-header a {
    color: #fff;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    display: inline-flex;
    justify-content: center;
    align-items: center;
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 50%;
    border: 1px solid rgba(168, 85, 247, 0.2);
}

.social-links-header a:hover {
    color: var(--primary-color);
    background: var(--primary-color);
    color: #000;
    transform: scale(1.1);
    box-shadow: 0 0 15px var(--primary-glow);
}

.logo-text {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--text-color);
    letter-spacing: 1px;
    transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    transform-style: preserve-3d;
}

.logo-text:hover {
    transform: scale(1.1) rotateX(-5deg) translateZ(10px);
    color: var(--primary-color);
}

.logo-text .dot { color: var(--primary-color); }

.social-links-header a {
    color: var(--text-color);
    font-size: 1.2rem;
    margin-left: 15px;
}

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

/* القائمة */
.main-nav ul { 
    display: flex; 
    gap: 18px;
    padding: 8px 20px;
    background: rgba(50, 30, 80, 0.3);
    border: 1px solid rgba(168, 85, 247, 0.2);
    border-radius: 24px;
    backdrop-filter: blur(20px);
    white-space: nowrap;
}
.main-nav a {
    color: #ffffff !important;
    font-weight: 500 !important;
    font-size: 0.9rem !important;
    position: relative;
}

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

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

/* زر الموبايل (مخفي تماماً على الكمبيوتر) */
.mobile-menu-btn {
    display: none !important;
    background: none;
    border: none;
    color: var(--primary-color);
    font-size: 1.5rem;
    cursor: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="rgba(168,85,247,0.8)" stroke="rgba(168,85,247,1)" stroke-width="1"><circle cx="12" cy="12" r="6"></circle><path d="M12 1v6M12 17v6M1 12h6M17 12h6" stroke-width="1.5"/></svg>') 12 12, pointer;
}

/* زر القائمة فوق الهيدر (للجوال فقط) */
.mobile-top-menu-btn {
    display: none; /* مخفي افتراضياً */
    position: fixed;
    top: 20px;
    left: 5%;
    z-index: 1100;
    background: rgba(50, 30, 80, 0.4);
    border: 1px solid rgba(168, 85, 247, 0.25);
    border-radius: 18px;
    padding: 10px 18px;
    color: #e8c5ff;
    font-weight: 500;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.3s ease;
    gap: 8px;
    align-items: center;
    font-family: var(--font-main);
    backdrop-filter: blur(30px);
    -webkit-backdrop-filter: blur(30px);
    box-shadow: 
        0 0 25px rgba(168, 85, 247, 0.3),
        0 0 50px rgba(168, 85, 247, 0.15),
        inset 0 0 30px rgba(168, 85, 247, 0.08);
}

.mobile-top-menu-btn i {
    font-size: 0.9rem;
}

.mobile-top-menu-btn:hover,
.mobile-top-menu-btn.active {
    background: linear-gradient(135deg, #d9a5ff 0%, #a366ff 50%, #8855d9 100%);
    color: #0a0118;
    border-color: rgba(200, 140, 255, 0.3);
    transform: translateY(-2px);
    box-shadow: 
        0 0 35px rgba(168, 85, 247, 0.5),
        0 0 70px rgba(168, 85, 247, 0.3),
        0 0 105px rgba(168, 85, 247, 0.2),
        0 8px 24px rgba(168, 85, 247, 0.25);
}

/* --- قسم الهيرو (Stellar Design) --- */
.hero {
    height: 84vh;
    min-height: 620px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    position: relative;
    overflow: hidden;
    width: 100%;
    margin: 0;
    padding: 0;
    background:
        radial-gradient(65% 50% at 50% 12%, rgba(155, 119, 255, 0.38) 0%, rgba(155, 119, 255, 0) 70%),
        radial-gradient(70% 75% at 50% 105%, rgba(181, 112, 255, 0.52) 0%, rgba(181, 112, 255, 0) 72%),
        linear-gradient(115deg, #081636 0%, #27195d 48%, #0a1538 100%);
    border-radius: 0;
}

.hero::before {
    content: '';
    position: absolute;
    width: 100%;
    height: 200px;
    bottom: 0;
    left: 0;
    background: linear-gradient(to bottom, transparent 0%, var(--bg-color) 100%);
    z-index: 3;
    pointer-events: none;
}

.hero::after {
    content: '';
    position: absolute;
    width: 82vw;
    height: 82vw;
    max-width: 860px;
    max-height: 860px;
    left: 50%;
    bottom: -42%;
    transform: translateX(-50%);
    background: radial-gradient(circle, rgba(181, 112, 255, 0.58) 0%, rgba(181, 112, 255, 0.26) 32%, rgba(181, 112, 255, 0.08) 52%, rgba(181, 112, 255, 0) 74%);
    filter: blur(12px);
    pointer-events: none;
    z-index: 0;
}

#particles-js {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    z-index: 1;
    opacity: 0.65;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 900px;
    padding: 20px;
}

.hero-logo-top {
    display: none;
    justify-content: center;
    margin-bottom: 14px;
}

.hero-logo-img {
    width: 120px;
    max-width: 45vw;
    height: auto;
    filter: drop-shadow(0 0 14px rgba(168, 85, 247, 0.35));
}

.beta-badge {
    display: inline-block;
    padding: 10px 20px;
    border: 2px solid var(--primary-color);
    border-radius: 50px;
    color: var(--primary-color);
    font-size: 0.95rem;
    margin-bottom: 30px;
    background: rgba(168, 85, 247, 0.1);
    backdrop-filter: blur(10px);
    animation: slide3d-in 0.6s ease-out forwards;
}

.hero-heading h1 {
    font-size: 3.5rem;
    margin-bottom: 30px;
    margin-top: 20px;
    font-weight: 600;
    line-height: 1.2;
    letter-spacing: -0.02em;
    color: #ffffff;
    animation: slide3d-in 0.8s ease-out 0.2s forwards;
    animation-fill-mode: both;
}

.hero-subtitle {
    color: rgba(255, 255, 255, 0.7);
    font-size: 1.1rem;
    margin-bottom: 40px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.6;
    animation: slide3d-in 1s ease-out 0.4s forwards;
    animation-fill-mode: both;
}

.hero-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
    animation: slide3d-in 1.2s ease-out 0.6s forwards;
    animation-fill-mode: both;
}

/* الأزرار */
.btn {
    padding: 14px 32px;
    border-radius: 18px;
    font-weight: 600;
    cursor: pointer;
    display: inline-block;
    position: relative;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    overflow: visible;
    border: 1px solid rgba(168, 85, 247, 0.2);
    font-size: 1rem;
    backdrop-filter: blur(30px);
    -webkit-backdrop-filter: blur(30px);
}

.btn::before {
    content: '';
    position: absolute;
    inset: -10px;
    border-radius: 24px;
    background: radial-gradient(circle at center, rgba(200, 140, 255, 0.12), transparent 70%);
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: -1;
    filter: blur(25px);
}

.btn:hover::before {
    opacity: 0.7;
}

.btn-primary {
    background: linear-gradient(135deg, #d9a5ff 0%, #a366ff 50%, #8855d9 100%);
    color: #0a0118;
    box-shadow: 
        0 0 18px rgba(168, 85, 247, 0.2),
        0 0 35px rgba(168, 85, 247, 0.12),
        0 0 50px rgba(168, 85, 247, 0.08),
        0 8px 24px rgba(168, 85, 247, 0.12);
    border-color: rgba(200, 140, 255, 0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 
        0 0 25px rgba(168, 85, 247, 0.25),
        0 0 45px rgba(168, 85, 247, 0.15),
        0 0 65px rgba(168, 85, 247, 0.1),
        0 12px 32px rgba(168, 85, 247, 0.15);
    background: linear-gradient(135deg, #e8c5ff 0%, #b588ff 50%, #9d71f5 100%);
}

.btn-outline {
    border: 1px solid rgba(168, 85, 247, 0.3);
    color: #e8c5ff;
    background: rgba(50, 30, 80, 0.4);
    box-shadow: 
        0 0 15px rgba(168, 85, 247, 0.12),
        0 0 30px rgba(168, 85, 247, 0.06),
        inset 0 0 20px rgba(168, 85, 247, 0.04);
}

.btn-outline:hover {
    background: rgba(70, 40, 100, 0.6);
    border-color: rgba(200, 140, 255, 0.4);
    color: #ffffff;
    box-shadow: 
        0 0 35px rgba(168, 85, 247, 0.5),
        0 0 70px rgba(168, 85, 247, 0.3),
        inset 0 0 40px rgba(168, 85, 247, 0.12);
    transform: translateY(-2px);
}

/* --- أزرار الهيرو بشكل مطابق للمرجع --- */
#home .hero-buttons {
    gap: 14px;
    justify-content: center;
    display: flex;
    flex-wrap: wrap;
}

#home .hero-buttons .btn {
    min-width: 140px;
    height: 48px;
    padding: 0 28px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 24px;
    font-weight: 600;
    font-size: 0.95rem;
    letter-spacing: 0;
}

#home .hero-buttons .btn-primary {
    background: linear-gradient(135deg, #d9a5ff 0%, #a366ff 50%, #8855d9 100%);
    color: #0a0118;
    border-color: rgba(200, 140, 255, 0.3);
    box-shadow: 
        0 0 18px rgba(168, 85, 247, 0.2),
        0 0 35px rgba(168, 85, 247, 0.12),
        0 0 50px rgba(168, 85, 247, 0.08),
        0 8px 24px rgba(168, 85, 247, 0.12);
}

#home .hero-buttons .btn-primary:hover {
    background: linear-gradient(135deg, #e8c5ff 0%, #b588ff 50%, #9d71f5 100%);
    color: #0a0118;
    transform: translateY(-2px);
    box-shadow: 
        0 0 25px rgba(168, 85, 247, 0.25),
        0 0 45px rgba(168, 85, 247, 0.15),
        0 0 65px rgba(168, 85, 247, 0.1),
        0 12px 32px rgba(168, 85, 247, 0.15);
}

#home .hero-buttons .btn-outline {
    display: none;
    background: rgba(50, 30, 80, 0.4);
    color: #e8c5ff;
    border: 1px solid rgba(168, 85, 247, 0.3);
    box-shadow: 
        0 0 12px rgba(168, 85, 247, 0.12),
        0 0 25px rgba(168, 85, 247, 0.06),
        inset 0 0 20px rgba(168, 85, 247, 0.04);
}

#home .hero-buttons .btn-outline:hover {
    background: rgba(70, 40, 100, 0.6);
    color: #ffffff;
    border-color: rgba(200, 140, 255, 0.4);
    transform: translateY(-2px);
    box-shadow: 
        0 0 20px rgba(168, 85, 247, 0.2),
        0 0 40px rgba(168, 85, 247, 0.12),
        0 0 60px rgba(168, 85, 247, 0.08),
        inset 0 0 30px rgba(168, 85, 247, 0.06);
}

/* --- أقسام عامة --- */
.section-padding { padding: 100px 5%; position: relative; z-index: 2;}

#portfolio.section-padding {
    padding-top: 80px;
    padding-bottom: 40px;
}
.bg-darker { background-color: var(--bg-secondary); }

/* مؤشر التمرير */
.scroll-indicator {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background: transparent;
    z-index: 1001;
}

.scroll-progress {
    height: 100%;
    background: linear-gradient(90deg, var(--primary-color), #c084fc);
    width: 0%;
    transition: width 0.1s ease;
    box-shadow: 0 0 6px var(--primary-glow);
}

/* زر العودة للأعلى */
.back-to-top {
    position: fixed;
    bottom: 30px;
    left: 30px;
    width: 55px;
    height: 55px;
    background: linear-gradient(135deg, #d9a5ff 0%, #a366ff 50%, #8855d9 100%);
    color: #0a0118;
    border: 1px solid rgba(200, 140, 255, 0.25);
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: all 0.3s ease;
    z-index: 1000;
    backdrop-filter: blur(30px);
    -webkit-backdrop-filter: blur(30px);
    box-shadow: 
        0 0 18px rgba(168, 85, 247, 0.2),
        0 0 35px rgba(168, 85, 247, 0.12),
        0 0 50px rgba(168, 85, 247, 0.08),
        0 8px 24px rgba(168, 85, 247, 0.12);
    position: relative;
}

.back-to-top::before {
    content: '';
    position: absolute;
    inset: -10px;
    border-radius: 50%;
    background: radial-gradient(circle at center, rgba(200, 140, 255, 0.15), transparent 70%);
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: -1;
    filter: blur(25px);
}

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

.back-to-top:hover {
    transform: translateY(-5px) scale(1.1);
    background: linear-gradient(135deg, #e8c5ff 0%, #b588ff 50%, #9d71f5 100%);
    box-shadow: 
        0 0 25px rgba(168, 85, 247, 0.25),
        0 0 45px rgba(168, 85, 247, 0.15),
        0 0 65px rgba(168, 85, 247, 0.1),
        0 12px 32px rgba(168, 85, 247, 0.15);
}

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

/* رأس القسم المحسّن */
.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.decorative-line {
    width: 120px;
    height: 3px;
    background: linear-gradient(90deg, transparent, var(--primary-color), transparent);
    margin: 0 auto 20px;
    position: relative;
}

.decorative-line::before,
.decorative-line::after {
    content: '';
    position: absolute;
    width: 8px;
    height: 8px;
    background: var(--primary-color);
    border-radius: 50%;
    top: 50%;
    transform: translateY(-50%);
}

.decorative-line::before { left: 0; }
.decorative-line::after { left: 100%; }

.title-icon {
    color: var(--primary-color);
    font-size: 1.5rem;
    margin: 0 15px;
    opacity: 0.7;
}

.section-title {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 40px;
    position: relative;
    transform: translateZ(20px);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    color: var(--primary-color);
    padding-bottom: 15px;
}

.section-title::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: linear-gradient(to right, transparent, var(--primary-color), transparent);
    border-radius: 2px;
}

.section-title::after {
    background: linear-gradient(to right, var(--primary-color), transparent);
}

.container { max-width: 1200px; margin: 0 auto; }

/* --- الفلتر والأعمال --- */
/* Container للشعار والأزرار */
.portfolio-header-container {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    margin-bottom: 50px;
    padding: 0;
    background: transparent;
    border-radius: 0;
    border: none;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    box-shadow: none;
}

/* قسم الشعار */
.portfolio-logo-section {
    display: none;
}

.portfolio-logo {
    width: 100%;
    height: auto;
    max-width: 140px;
    filter: drop-shadow(0 0 25px rgba(168, 85, 247, 0.5));
    transition: all 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.portfolio-logo:hover {
    transform: scale(1.15) rotateZ(-3deg);
    filter: drop-shadow(0 0 35px rgba(168, 85, 247, 0.8));
}

.portfolio-filters {
    text-align: center;
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 15px;
}

.filter-btn {
    background: rgba(50, 30, 80, 0.4);
    border: 1px solid rgba(168, 85, 247, 0.25);
    color: #e8c5ff;
    padding: 15px 40px;
    border-radius: 18px;
    margin: 0 8px 10px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 1.1rem;
    font-weight: 700;
    position: relative;
    overflow: visible;
    backdrop-filter: blur(30px);
    -webkit-backdrop-filter: blur(30px);
    box-shadow: 
        0 0 12px rgba(168, 85, 247, 0.12),
        0 0 25px rgba(168, 85, 247, 0.06),
        inset 0 0 20px rgba(168, 85, 247, 0.04);
}

.filter-btn::before {
    content: '';
    position: absolute;
    inset: -10px;
    border-radius: 24px;
    background: radial-gradient(circle at center, rgba(200, 140, 255, 0.12), transparent 70%);
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: -1;
    filter: blur(25px);
}

.filter-btn:hover::before {
    opacity: 0.7;
}

.filter-btn.active, .filter-btn:hover {
    background: linear-gradient(135deg, #d9a5ff 0%, #a366ff 50%, #8855d9 100%);
    color: #0a0118;
    border-color: rgba(200, 140, 255, 0.3);
    transform: translateY(-2px);
    box-shadow: 
        0 0 20px rgba(168, 85, 247, 0.2),
        0 0 40px rgba(168, 85, 247, 0.15),
        0 0 60px rgba(168, 85, 247, 0.08),
        0 8px 24px rgba(168, 85, 247, 0.12);
}

.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 25px;
    perspective: 1200px;
    margin-top: -10px;
}

.portfolio-card {
    position: relative;
    border-radius: 15px;
    overflow: hidden;
    cursor: pointer;
    border: 1px solid var(--border-color);
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
    transition: all 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
    transform-style: preserve-3d;
    height: 100%;
    background: var(--card-bg);
}

.portfolio-card::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, transparent, rgba(168, 85, 247, 0.1), transparent);
    transform: translateX(-100%);
    transition: transform 0.6s;
}

.portfolio-card:hover {
    transform: translateY(-20px) rotateX(8deg) rotateY(-5deg) translateZ(40px);
    border-color: var(--primary-color);
    box-shadow: 0 25px 50px var(--primary-glow), inset 0 0 20px rgba(168, 85, 247, 0.1);
}

.portfolio-card:hover::after {
    transform: translateX(100%);
}

.portfolio-card:hover {
    transform: translateY(-15px) rotateX(8deg) rotateY(-5deg) translateZ(40px);
    border-color: var(--primary-color);
    box-shadow: 0 25px 50px var(--primary-glow), inset 0 0 20px rgba(168, 85, 247, 0.1);
}

.card-img-holder img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    display: block;
    transition: all 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
    transform-style: preserve-3d;
}

/* صور إعلانية - مقاس ديناميكي حسب الصورة الأصلية */
.portfolio-item.ads .card-img-holder {
    aspect-ratio: auto; /* إلغاء النسبة المربعة */
    height: auto; /* ارتفاع تلقائي */
    min-height: 200px; /* حد أدنى */
    display: flex;
    align-items: center;
    justify-content: center;
}

.portfolio-item.ads .card-img-holder img {
    height: auto;
    object-fit: contain;
    max-height: 500px;
    width: 100%;
}

/* تنسيق صور البنرات - إظهار كاملة */
.portfolio-item.banners .card-img-holder {
    aspect-ratio: auto;
    height: auto;
    min-height: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.portfolio-item.banners .card-img-holder img {
    height: auto;
    object-fit: contain;
    max-height: 500px;
    width: 100%;
}

.portfolio-card:hover .card-img-holder img { 
    transform: scale(1.15) translateZ(30px);
    filter: brightness(1.1) drop-shadow(0 10px 25px rgba(168, 85, 247, 0.3));
}

.card-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    background: linear-gradient(to top, #000, transparent);
    padding: 20px;
    transform: translateY(20px);
    opacity: 0;
    transition: 0.4s;
}

.portfolio-card:hover .card-overlay {
    transform: translateY(0);
    opacity: 1;
}

/* --- الخدمات --- */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}

.service-card {
    background: var(--card-bg);
    padding: 40px 20px;
    border-radius: 20px;
    text-align: center;
    border: 1px solid var(--border-color);
    transition: all 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
    backdrop-filter: blur(5px);
    transform-style: preserve-3d;
    position: relative;
    overflow: hidden;
}

.service-card::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(168, 85, 247, 0.1) 0%, transparent 70%);
    opacity: 0;
    transition: opacity 0.5s;
}

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

.service-card:hover {
    background: rgba(168, 85, 247, 0.1);
    border-color: var(--primary-color);
    transform: translateY(-10px) rotateX(5deg) translateZ(25px);
    box-shadow: 0 20px 40px rgba(168, 85, 247, 0.2), inset 0 0 15px rgba(168, 85, 247, 0.1);
}

.icon-box {
    font-size: 2.8rem;
    color: transparent;
    background: linear-gradient(135deg, #d9a5ff 0%, #a366ff 50%, #7d3ec9 100%);
    -webkit-background-clip: text;
    background-clip: text;
    margin-bottom: 20px;
    display: inline-flex;
    width: 85px;
    height: 85px;
        text-align: center;
    align-items: center;
    justify-content: center;
    background-color: rgba(50, 30, 80, 0.5);
    border-radius: 24px;
    border: 1px solid rgba(168, 85, 247, 0.2);
    position: relative;
    backdrop-filter: blur(30px);
    -webkit-backdrop-filter: blur(30px);
    box-shadow: 
        0 0 20px rgba(168, 85, 247, 0.15),
        0 0 40px rgba(168, 85, 247, 0.08),
        0 0 60px rgba(168, 85, 247, 0.05),
        inset 0 0 20px rgba(168, 85, 247, 0.05);
}

.icon-box i {
    background: linear-gradient(135deg, #e8c5ff 0%, #b588ff 50%, #9366d9 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    filter: drop-shadow(0 0 8px rgba(200, 140, 255, 0.3)) drop-shadow(0 0 15px rgba(200, 140, 255, 0.15));
}

.icon-box::before {
    content: '';
    position: absolute;
    inset: -10px;
    border-radius: 30px;
    background: radial-gradient(circle at center, rgba(200, 140, 255, 0.1), transparent 70%);
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: -1;
    filter: blur(25px);
}

.service-card:hover .icon-box::before {
    opacity: 1;
}



.service-card h3 { margin-bottom: 15px; font-size: 1.4rem; }
.service-card p { color: var(--text-muted); font-size: 0.95rem; margin-bottom: 20px; }
.price-tag {
    display: inline-block;
    padding: 5px 15px;
    border: 1px solid var(--primary-color);
    color: var(--primary-color);
    border-radius: 10px;
    font-size: 0.9rem;
}

/* --- تنسيقات البكجات والاشتراكات (Premium Design) --- */
.package-card, .subscription-card {
    position: relative;
    overflow: visible;
    background: rgba(40, 20, 70, 0.5) !important;
    border: 1px solid rgba(168, 85, 247, 0.15) !important;
    backdrop-filter: blur(40px);
    -webkit-backdrop-filter: blur(40px);
    box-shadow: 
        0 0 20px rgba(168, 85, 247, 0.1),
        0 0 40px rgba(168, 85, 247, 0.06),
        0 0 60px rgba(168, 85, 247, 0.03),
        inset 0 1px 2px rgba(255, 255, 255, 0.03) !important;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.package-card::before, .subscription-card::before {
    content: '';
    position: absolute;
    inset: -15px;
    border-radius: 30px;
    background: radial-gradient(circle at top, rgba(200, 140, 255, 0.08), transparent 70%);
    opacity: 0.3;
    transition: opacity 0.4s ease;
    z-index: -1;
    filter: blur(30px);
}

.package-card:hover::before, .subscription-card:hover::before {
    opacity: 0.6;
}

.package-card.featured, .subscription-card.featured {
    border: 1px solid rgba(200, 140, 255, 0.25) !important;
    background: rgba(55, 30, 90, 0.6) !important;
    box-shadow: 
        0 0 25px rgba(168, 85, 247, 0.15),
        0 0 50px rgba(168, 85, 247, 0.1),
        0 0 75px rgba(168, 85, 247, 0.05),
        inset 0 1px 2px rgba(255, 255, 255, 0.05) !important;
    transform: scale(1.02);
}

.package-card:hover, .subscription-card:hover {
    transform: translateY(-5px);
    border-color: rgba(200, 140, 255, 0.2);
    box-shadow: 
        0 0 30px rgba(168, 85, 247, 0.15),
        0 0 60px rgba(168, 85, 247, 0.1),
        0 0 90px rgba(168, 85, 247, 0.05),
        0 20px 50px rgba(0, 0, 0, 0.3);
}

.package-card.featured:hover, .subscription-card.featured:hover {
    transform: translateY(-5px) scale(1.02);
}

.package-badge {
    position: absolute;
    top: 20px;
    right: 20px;
    background: linear-gradient(135deg, #d9a5ff 0%, #a366ff 100%);
    color: #0a0118;
    padding: 6px 16px;
    border-radius: 14px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 
        0 0 15px rgba(168, 85, 247, 0.2),
        0 0 30px rgba(168, 85, 247, 0.12),
        0 4px 15px rgba(168, 85, 247, 0.15);
    z-index: 10;
    border: none;
}

.package-header {
    text-align: center;
    margin-bottom: 25px;
    padding-bottom: 25px;
    border-bottom: 1px solid rgba(168, 85, 247, 0.15);
}

.package-header h3 {
    margin: 20px 0 15px;
    font-size: 1.4rem;
    color: #ffffff;
    font-weight: 600;
}

.price-tag.large {
    display: block;
    margin-top: 15px;
    padding: 0;
    font-size: 2.5rem;
    font-weight: 800;
    background: linear-gradient(135deg, #e8c5ff 0%, #d9a5ff 50%, #c084fc 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    border: none;
    filter: drop-shadow(0 0 20px rgba(200, 140, 255, 0.6)) drop-shadow(0 0 40px rgba(200, 140, 255, 0.3));
    letter-spacing: -1px;
}

.package-features {
    list-style: none;
    padding: 0;
    margin: 0 0 25px 0;
}

.package-features li {
    padding: 14px 0;
    color: rgba(220, 200, 255, 0.9);
    font-size: 0.95rem;
    display: flex;
    align-items: center;
    gap: 12px;
    border-bottom: 1px solid rgba(168, 85, 247, 0.12);
    transition: all 0.3s ease;
}

.package-features li:last-child {
    border-bottom: none;
}

.package-features li:hover {
    color: #ffffff;
    padding-right: 5px;
}

.package-features li i {
    background: linear-gradient(135deg, #e8c5ff 0%, #b588ff 50%, #9366d9 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    font-size: 1.1rem;
    min-width: 20px;
    filter: drop-shadow(0 0 6px rgba(200, 140, 255, 0.6));
}

.package-card:hover .package-features li i,
.subscription-card:hover .package-features li i {
    filter: drop-shadow(0 0 8px rgba(200, 140, 255, 0.8));
}

/* --- شعار قسم من أنا --- */
.about-logo-section {
    text-align: center;
    margin-bottom: 50px;
    display: flex;
    justify-content: center;
}

.about-logo {
    max-width: 120px;
    width: 100%;
    height: auto;
    filter: drop-shadow(0 0 25px rgba(168, 85, 247, 0.4));
    animation: float 3s ease-in-out infinite;
    transition: all 0.4s ease;
}

.about-logo:hover {
    filter: drop-shadow(0 0 40px rgba(168, 85, 247, 0.6)) brightness(1.2);
    transform: scale(1.1);
}

/* --- الإحصائيات --- */
.stats-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 30px;
    text-align: center;
    margin-bottom: 70px;
    padding: 40px 20px;
    background: linear-gradient(135deg, rgba(168, 85, 247, 0.05) 0%, rgba(100, 50, 200, 0.03) 100%);
    border-radius: 20px;
    border: 1px solid rgba(168, 85, 247, 0.1);
    backdrop-filter: blur(10px);
}

.stat-item {
    padding: 30px 20px;
    background: linear-gradient(135deg, rgba(168, 85, 247, 0.1), rgba(100, 50, 200, 0.05));
    border-radius: 15px;
    border: 1px solid rgba(168, 85, 247, 0.15);
    transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(10px);
}

.stat-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: linear-gradient(90deg, transparent, var(--primary-color), transparent);
}

.stat-item:hover {
    background: linear-gradient(135deg, rgba(168, 85, 247, 0.2), rgba(100, 50, 200, 0.1));
    transform: translateY(-8px) scale(1.05);
    border-color: rgba(168, 85, 247, 0.3);
    box-shadow: 0 15px 40px rgba(168, 85, 247, 0.2);
}

.stat-item h3 {
    font-size: 3.5rem;
    color: var(--primary-color);
    font-weight: 800;
    margin: 0 0 15px 0;
    text-shadow: 0 0 20px rgba(168, 85, 247, 0.3);
    font-family: 'Poppins', sans-serif;
    letter-spacing: 2px;
}

.stat-item p {
    font-size: 1.1rem;
    color: var(--text-muted);
    margin: 0;
    font-weight: 500;
    letter-spacing: 0.5px;
}

.about-text-box {
    text-align: center;
    max-width: 900px;
    margin: 0 auto;
    font-size: 1.15rem;
    color: var(--text-muted);
    padding: 40px 30px;
    background: linear-gradient(135deg, rgba(168, 85, 247, 0.08), rgba(100, 50, 200, 0.04));
    border-radius: 15px;
    border: 1px solid rgba(168, 85, 247, 0.12);
    line-height: 1.8;
    backdrop-filter: blur(10px);
    transition: all 0.4s ease;
}

.about-text-box:hover {
    background: linear-gradient(135deg, rgba(168, 85, 247, 0.12), rgba(100, 50, 200, 0.08));
    border-color: rgba(168, 85, 247, 0.2);
    box-shadow: 0 10px 30px rgba(168, 85, 247, 0.1);
}

.about-text-box p {
    margin: 0;
}

/* تحسين Responsive للجوال */
@media (max-width: 768px) {
    .about-logo-section {
        margin-bottom: 30px;
    }
    
    .about-logo {
        max-width: 90px;
    }
    
    .stats-container {
        grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
        gap: 15px;
        padding: 30px 15px;
    }
    
    .stat-item {
        padding: 20px 15px;
    }
    
    .stat-item h3 {
        font-size: 2.5rem;
    }
    
    .stat-item p {
        font-size: 0.95rem;
    }
    
    .about-text-box {
        font-size: 1rem;
        padding: 25px 20px;
    }
}

/* --- نموذج التواصل --- */
.contact-form {
    max-width: 600px;
    margin: 0 auto;
}

.input-group { margin-bottom: 20px; }

input, textarea {
    width: 100%;
    padding: 15px;
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    color: #fff;
    border-radius: 10px;
    font-family: inherit;
    outline: none;
    cursor: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="rgba(168,85,247,0.8)" stroke-width="2"><path d="M17 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4"></path><polyline points="7 10 12 15 17 10"></polyline><line x1="12" y1="15" x2="12" y2="3"></line></svg>') 12 12, text;
    transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    transform-style: preserve-3d;
}

input:focus, textarea:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 20px var(--primary-glow), inset 0 0 10px rgba(168, 85, 247, 0.1);
    transform: translateZ(5px);
}

.full-width { width: 100%; }

.footer-info {
    text-align: center;
    margin-top: 50px;
    color: var(--text-muted);
}

.payment-badges {
    margin-top: 20px;
    border-top: 1px solid var(--border-color);
    padding-top: 20px;
    display: inline-block;
}

.badges-icons i { font-size: 2rem; margin: 0 10px; color: #fff; }

footer {
    text-align: center;
    padding: 20px;
    background: #000;
    font-size: 0.9rem;
    color: #888;
}

/* --- Responsive Media Queries --- */
@media (max-width: 768px) {
    
    /* إصلاح عرض الصفحة */
    * {
        max-width: 100%;
    }
    
    section {
        width: 100%;
        overflow-x: hidden;
        margin: 0;
        padding-left: 0;
        padding-right: 0;
    }
    
    /* تحسين الهيرو على الجوال */
    .hero {
        padding: 20px 0;
        min-height: 100vh;
        margin: 0;
        width: 100%;
        overflow-x: hidden;
    }
    
    .hero-content {
        max-width: 100%;
        padding: 20px 10px;
    }
    
    .hero-heading h1 { 
        font-size: 2rem;
        line-height: 1.3;
        margin-bottom: 20px;
        margin-top: 10px;
    }
    
    .beta-badge {
        font-size: 0.85rem;
        padding: 8px 16px;
        margin-bottom: 20px;
    }
    
    .hero-subtitle {
        font-size: 1rem;
        margin-bottom: 30px;
        line-height: 1.5;
    }
    
    /* تحسين الأزرار على الجوال */
    .hero-buttons {
        flex-direction: column;
        gap: 15px;
        width: 100%;
        margin-top: 20px;
    }
    
    .btn {
        padding: 12px 24px;
        font-size: 0.95rem;
        width: 100%;
        max-width: 100%;
    }
    
    .btn-primary, .btn-outline {
        width: 100%;
    }
    
    /* إخفاء الشارات على الموبايل */
    /* الشارات محذوفة فعلياً */
    
    /* تحسين زر العودة للأعلى */
    .back-to-top {
        bottom: 20px;
        left: 20px;
        width: 45px;
        height: 45px;
        font-size: 1rem;
    }
    
    /* تحسين العناوين */
    .section-title {
        font-size: 1.8rem;
        flex-direction: column;
        gap: 0;
    }
    
    .section-title::before,
    .section-title::after {
        content: '' !important;
        width: 100%;
        max-width: 60px;
        height: 2px;
        margin: 8px 0;
        background: linear-gradient(to right, var(--primary-color), transparent);
    }
    
    .section-title::before {
        background: linear-gradient(to right, var(--primary-color), transparent);
    }
    
    .section-title::after {
        background: linear-gradient(to left, var(--primary-color), transparent);
    }
    
    /* إظهار زر القائمة فوق الهيدر */
    .mobile-top-menu-btn {
        display: flex;
    }
    
    .main-nav {
        position: fixed;
        top: 70px;
        right: -100%;
        width: 70%;
        height: 100vh;
        background: var(--bg-secondary);
        flex-direction: column;
        transition: 0.4s;
        padding: 40px;
    }
    .main-nav.active { right: 0; }
    .main-nav ul { flex-direction: column; }
    .mobile-menu-btn { display: block; }
}

/* --- Animations (الحياة والحركة) --- */

/* 1. Scroll Reveal (يظهر العنصر عند النزول) */
.reveal {
    opacity: 0;
    transform: translateY(50px) rotateX(-10deg);
    transition: all 0.8s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.reveal.active {
    opacity: 1;
    transform: translateY(0) rotateX(0);
}

/* 2. Floating Icons */
.floating-elements .float-item {
    position: absolute;
    color: rgba(168, 85, 247, 0.1);
    font-size: 4rem;
    animation: float3d 6s ease-in-out infinite;
    z-index: 1;
}

.p-1 { top: 20%; left: 10%; animation-delay: 0s; }
.p-2 { bottom: 20%; right: 10%; animation-delay: 2s; }
.p-3 { top: 60%; left: 50%; font-size: 2rem; animation-delay: 4s; }

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

/* === 3D Animations === */
@keyframes float3d {
    0% { transform: translateY(0px) rotateX(0deg) rotateY(0deg) rotateZ(0deg); }
    25% { transform: translateY(-25px) rotateX(5deg) rotateY(8deg) rotateZ(5deg); }
    50% { transform: translateY(-35px) rotateX(-5deg) rotateY(-8deg) rotateZ(-5deg); }
    75% { transform: translateY(-25px) rotateX(5deg) rotateY(8deg) rotateZ(5deg); }
    100% { transform: translateY(0px) rotateX(0deg) rotateY(0deg) rotateZ(0deg); }
}

@keyframes stars-move {
    0% { transform: translateY(0px); opacity: 0.3; }
    50% { opacity: 0.8; }
    100% { transform: translateY(-20px); opacity: 0.3; }
}

@keyframes glow-pulse {
    0%, 100% { opacity: 0.4; }
    50% { opacity: 0.8; }
}

@keyframes slide3d-in {
    from {
        opacity: 0;
        transform: translateY(30px) translateZ(-50px);
    }
    to {
        opacity: 1;
        transform: translateY(0) translateZ(0);
    }
}

@keyframes goldPulse3d {
    0%, 100% {
        box-shadow: 0 0 0 0 rgba(168, 85, 247, 0.4);
    }
}

@keyframes flip3d {
    0% { transform: rotateY(0deg) translateZ(0); }
    50% { transform: rotateY(45deg) translateZ(20px); }
    100% { transform: rotateY(0deg) translateZ(0); }
}

@keyframes depth-glow {
    0% {
        box-shadow: 0 5px 15px rgba(168, 85, 247, 0.1), inset 0 0 10px rgba(0,0,0,0.5);
    }
    50% {
        box-shadow: 0 15px 40px rgba(168, 85, 247, 0.3), inset 0 0 20px rgba(168, 85, 247, 0.1);
    }
    100% {
        box-shadow: 0 5px 15px rgba(168, 85, 247, 0.1), inset 0 0 10px rgba(0,0,0,0.5);
    }
}

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

@keyframes rippleEffect {
    to {
        transform: scale(4);
        opacity: 0;
    }
}

@keyframes slide3d-in {
    from {
        opacity: 0;
        transform: translateX(-50px) rotateY(-15deg) translateZ(-30px);
    }
    to {
        opacity: 1;
        transform: translateX(0) rotateY(0) translateZ(0);
    }
}
.reveal {
    opacity: 1;   /* اجعلها 1 ليظهر العنصر */
    transform: translateY(0); /* الغاء الازاحة */
    transition: all 0.8s ease;
}
.services-grid {
    display: grid;
    /* هذا السطر يضمن توزيع الأعمدة بشكل متساوٍ وتلقائي */
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 30px;
}
/* =========================================
   تعديلات الجوال (نظام العمودين - 2 Columns)
   ========================================= */
@media (max-width: 768px) {

    /* 1. معرض الأعمال - عمودين على الجوال */
    .portfolio-grid {
        grid-template-columns: repeat(2, 1fr) !important; 
        gap: 10px;
    }

    .portfolio-header-container {
        flex-direction: column;
        gap: 20px;
        padding: 0;
        background: transparent;
        border: none;
    }

    .portfolio-logo-section {
        display: none;
    }

    .portfolio-filters {
        width: 100%;
        justify-content: center;
    }

    /* 2. الخدمات والباقات - عمود واحد على الجوال */
    .services-grid {
        grid-template-columns: 1fr !important; 
        gap: 10px;
    }

    /* 2. تنسيق بطاقات الخدمات لتناسب المساحة الضيقة */
    .service-card {
        padding: 20px 15px; /* زيادة المسافة الداخلية */
    }

    .service-card .icon-box {
        font-size: 2.2rem; /* أيقونة أكبر قليلاً */
        margin-bottom: 15px;
        width: 70px;
        height: 70px;
    }

    .service-card h3 {
        font-size: 1.1rem; /* حجم أفضل للعنوان */
        margin-bottom: 12px;
    }

    .service-card p {
        font-size: 0.9rem; /* نص أكثر وضوحاً */
        line-height: 1.5;
        margin-bottom: 15px;
    }

    .price-tag {
        font-size: 0.9rem;
        padding: 6px 12px;
    }

    /* 3. تنسيق أزرار الفلتر لتكون صفين (2x2) */
    .portfolio-filters {
        display: grid; /* تحويلها لشبكة بدلاً من فليكس */
        grid-template-columns: repeat(2, 1fr); /* عمودين */
        gap: 10px; /* مسافة بين الأزرار */
        padding: 0 10px;
    }

    .filter-btn {
        width: 100%; /* الزر يأخذ كامل مساحة الخانة */
        margin: 0; /* إلغاء الهوامش الجانبية القديمة */
        font-size: 0.9rem; /* تصغير الخط قليلاً */
        padding: 8px 10px;
    }

    /* 4. تنسيق بطاقات الأعمال (Portfolio) */
    .card-img-holder {
        aspect-ratio: 1 / 1;
        overflow: hidden;
    }
    
    .card-img-holder img {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }
    
    .card-overlay {
        padding: 15px; /* تحسين حواف النص فوق الصورة */
    }
    
    .card-overlay h3 {
        font-size: 1.1rem;
        margin-bottom: 8px;
    }
    
    .card-overlay p {
        font-size: 0.9rem;
    }
    
    /* تحسين الأقسام والمسافات */
    .section-padding {
        padding: 50px 15px;
        overflow: visible;
        max-height: none;
    }
    
    .container {
        padding: 0 15px;
    }
    
    /* تحسين البطاقات */
    .portfolio-card {
        border-radius: 12px;
    }
    
    .package-features li {
        padding: 10px 0;
        font-size: 0.9rem;
    }
}/* تعديل الخلفية لتكون متدرجة بدلاً من لون مصمت */
.bg-darker {
    background-color: var(--bg-secondary); /* اللون الأصلي كاحتياط */
    
    /* هذا التدرج يخفي الحواف الحادة */
    background: linear-gradient(
        to bottom,
        var(--bg-color) 0%,      /* يبدأ بلون الخلفية الرئيسية */
        var(--bg-secondary) 15%, /* يتحول للون القسم الثانوي */
        var(--bg-secondary) 85%, /* يستمر بلون القسم الثانوي */
        var(--bg-color) 100%     /* يعود للون الخلفية الرئيسية */
    );
    
    /* إزالة الحدود الحادة إذا كانت موجودة */
    border-top: none;
    border-bottom: none;
}
/* تنسيق زر عرض المزيد الكبير */
.load-more-container {
    text-align: center;
    margin-top: 50px;
    width: 100%;
    display: flex; /* لضمان التوسيط */
    justify-content: center;
}

.big-btn {
    padding: 15px 60px; /* تكبير الحشو الداخلي */
    font-size: 1.2rem; /* تكبير الخط */
    border-width: 2px;
    min-width: 200px; /* ضمان عرض أدنى */
    transition: all 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
    text-transform: uppercase;
    letter-spacing: 1px;
    transform-style: preserve-3d;
}

/* تأثير زجاجي على زر عرض المزيد */
#loadMoreBtn {
    position: relative !important;
    background: linear-gradient(135deg, #d9a5ff 0%, #a366ff 50%, #8855d9 100%) !important;
    color: #0a0118 !important;
    border: 1px solid rgba(200, 140, 255, 0.25) !important;
    backdrop-filter: blur(30px) !important;
    -webkit-backdrop-filter: blur(30px) !important;
    border-radius: 18px !important;
    padding: 16px 50px !important;
    font-size: 1.1rem !important;
    font-weight: 600 !important;
    overflow: visible !important;
    box-shadow: 
        0 0 18px rgba(168, 85, 247, 0.2),
        0 0 35px rgba(168, 85, 247, 0.12),
        0 0 50px rgba(168, 85, 247, 0.08),
        0 8px 24px rgba(168, 85, 247, 0.12) !important;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
}

#loadMoreBtn::before {
    content: '';
    position: absolute;
    inset: -10px;
    border-radius: 24px;
    background: radial-gradient(circle at center, rgba(200, 140, 255, 0.12), transparent 70%);
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: -1;
    filter: blur(25px);
}

#loadMoreBtn:hover {
    background: linear-gradient(135deg, #e8c5ff 0%, #b588ff 50%, #9d71f5 100%) !important;
    border-color: rgba(220, 160, 255, 0.3) !important;
    box-shadow: 
        0 0 25px rgba(168, 85, 247, 0.25),
        0 0 45px rgba(168, 85, 247, 0.15),
        0 0 65px rgba(168, 85, 247, 0.1),
        0 12px 32px rgba(168, 85, 247, 0.15) !important;
    transform: translateY(-2px) !important;
    color: #0a0118 !important;
}

#loadMoreBtn:hover::before {
    opacity: 0.7;
}

#loadMoreBtn:active {
    transform: translateY(0) !important;
    box-shadow: 
        0 0 18px rgba(168, 85, 247, 0.2),
        0 0 35px rgba(168, 85, 247, 0.12),
        0 4px 16px rgba(168, 85, 247, 0.12) !important;
}

.big-btn:hover {
    background: var(--primary-color);
    color: #000;
    box-shadow: 0 0 20px var(--primary-glow), 0 15px 35px rgba(168, 85, 247, 0.3); /* توهج أقوى عند التحويم */
    transform: translateY(-8px) translateZ(20px) rotateX(3deg);
}
/* حركة ظهور ناعمة للعناصر عند ضغط عرض المزيد */
.portfolio-item {
    opacity: 0;
    transform: translateY(20px) rotateY(-10deg);
    transition: all 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.portfolio-item.reveal-item {
    opacity: 1;
    transform: translateY(0) rotateY(0);
}
/* =========================================
   1. أنميشن أيقونات الهيدر (السوشيال ميديا)
   ========================================= */
/* تعريف الحركة (نبض ذهبي) */
@keyframes goldPulse {
    0%, 100% {
        box-shadow: 0 0 0 0 rgba(168, 85, 247, 0.4);
    }
}

/* تطبيق الحركة على أيقونات الهيدر */
.social-links-header a {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    width: 40px;
    height: 40px;
    background: rgba(255,255,255,0.05);
    border-radius: 50%;
    margin-left: 10px;
    transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    /* تشغيل الأنميشن بشكل دائم */
    transition: all 0.3s ease;
}


.social-links-header a:hover {
    background: var(--primary-color);
    color: #000;
    animation: none; /* إيقاف النبض عند التحويم */
    transform: scale(1.15) rotateZ(10deg) translateZ(15px);
    box-shadow: 0 10px 25px rgba(168, 85, 247, 0.5);
}

/* =========================================
   2. تنسيق الفوتر الجديد
   ========================================= */
.main-footer {
    background: linear-gradient(to top, #000 0%, var(--bg-secondary) 100%);
    padding: 60px 0 0;
    border-top: 1px solid var(--border-color);
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 !important;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    max-width: 100% !important;
    margin: 0 !important;
    padding: 0 5% 40px;
    gap: 20px;
}

/* العمود الأيمن: الشعار والوصف */
.footer-brand {
    text-align: right;
}

.footer-logo h2 {
    color: #fff;
    font-size: 2rem;
    margin-bottom: 15px;
    font-weight: 700;
    display: none;
}

.logo-dot {
    color: var(--primary-color);
    display: none;
}

.footer-description {
    color: #aaa;
    line-height: 1.8;
    font-size: 0.9rem;
    margin: 0;
}

/* أعمدة الروابط */
.footer-column {
    text-align: right;
}

.footer-column h4 {
    color: #fff;
    font-size: 1.1rem;
    margin-bottom: 20px;
    font-weight: 600;
}

.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

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

.footer-links a {
    color: #aaa;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    position: relative;
}

.footer-links a:hover {
    color: var(--primary-color);
    padding-right: 8px;
}

.footer-links a::before {
    content: '';
    position: absolute;
    right: -10px;
    top: 50%;
    transform: translateY(-50%);
    width: 4px;
    height: 4px;
    background: var(--primary-color);
    border-radius: 50%;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.footer-links a:hover::before {
    opacity: 1;
}

/* القسم الأيسر: التواصل والسوشيال */
.footer-contact-info {
    text-align: right;
}

.footer-contact-info h4 {
    text-align: right;
}

.footer-social {
    display: flex;
    gap: 12px;
    justify-content: flex-start;
    margin-bottom: 25px;
    flex-wrap: wrap;
}

.social-icon {
    width: 45px;
    height: 45px;
    border: 1px solid rgba(168, 85, 247, 0.3);
    border-radius: 8px;
    display: flex;
    justify-content: center;
    align-items: center;
    color: #b89fff;
    font-size: 1rem;
    transition: all 0.3s ease;
    background: rgba(50, 30, 80, 0.3);
}

.social-icon:hover {
    background: var(--primary-color);
    color: #0a0118;
    border-color: var(--primary-color);
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(168, 85, 247, 0.3);
}

.contact-text,
.location-text {
    color: #aaa;
    font-size: 0.9rem;
    margin: 10px 0;
}

.location-text i {
    margin-left: 5px;
    color: var(--primary-color);
}

/* شريط الحقوق السفلي */
.footer-bottom {
    background: rgba(0, 0, 0, 0.4);
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    padding: 25px 5%;
    text-align: center;
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 !important;
}

.footer-bottom p {
    color: #666;
    font-size: 0.85rem;
    margin: 0;
}

.heart {
    color: var(--primary-color);
    margin: 0 4px;
    animation: pulse 1.5s ease-in-out infinite;
}

.designer-name {
    color: var(--primary-color);
    font-weight: 600;
}

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

/* ريسبونسيف للجوال */
@media (max-width: 768px) {
    .footer-content {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .footer-column,
    .footer-brand {
        text-align: center;
    }
    
    .footer-description {
        margin: 0 auto;
    }
    
    .footer-links a {
        padding-right: 0;
    }
    
    .footer-links a::before {
        display: none;
    }
    
    .footer-social {
        justify-content: center;
    }
    
    .footer-bottom p {
        font-size: 0.75rem;
    }
}

/* تخصيص الـ Overlay الخاص بالمتاجر فقط */
.store-overlay {
    display: flex;
    flex-direction: column;
    justify-content: center; /* توسيط عمودي */
    align-items: center;     /* توسيط أفقي */
    background: rgba(10, 1, 24, 0.85); /* خلفية داكنة شفافة */
    height: 100%;            /* تغطية كامل الصورة */
    top: 0;                  /* البدء من الأعلى */
    transform: translateY(100%); /* مخفي في الأسفل مبدئياً */
    transition: transform 0.4s ease;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
}

/* عند تمرير الماوس على الكارد، يظهر الـ Overlay */
.portfolio-card:hover .store-overlay {
    transform: translateY(0);
}

/* تنسيق اسم المتجر */
.store-overlay h3 {
    color: #fff;
    margin-bottom: 0;
    font-size: 1.5rem;
    font-weight: 700;
    transform: translateY(-20px);
    transition: 0.4s 0.1s; /* تأخير بسيط للحركة */
}

.portfolio-card:hover .store-overlay h3 {
    transform: translateY(0);
}

/* تنسيق زر "عرض المتجر" */
.view-store-btn {
    display: none !important; /* مخفي لأن الكارد كله أصبح رابط */
}

/* تنسيق كارد المتجر كرابط */
.store-card-link {
    display: block;
    text-decoration: none;
    color: inherit;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
    -webkit-touch-callout: none;
    -webkit-tap-highlight-color: transparent;
}

.store-card-link.portfolio-card {
    cursor: pointer;
}

.view-store-btn:hover {
    background: var(--primary-color); /* خلفية ذهبية عند التحويم */
    color: #000;
    box-shadow: 0 0 15px var(--primary-glow);
}/* تنسيق موحد لجميع صور الأعمال لتكون مربعة (1:1) */
.card-img-holder {
    width: 100%;
    /* السطر السحري لجعل العنصر مربعاً بناءً على عرضه */
    aspect-ratio: 1 / 1; 
    overflow: hidden;
    position: relative;
    background-color: #000; /* خلفية سوداء لملء الفراغات إن وجدت */
}

/* تنسيق الصورة داخل المربع */
.card-img-holder img {
    width: 100%;
    height: 100%;
    /* object-fit: cover; <-- استخدم هذا لملء المربع بالكامل (قد يتم قص الحواف) */
    /* object-fit: contain; <-- استخدم هذا لإظهار الصورة كاملة داخل المربع (قد تظهر حواف سوداء) */
    object-fit: cover; 
    transition: transform 0.5s ease;
}

/* تكبير الصورة عند التحويم */
.portfolio-card:hover .card-img-holder img {
    transform: scale(1.1);
}
/* تنسيق الخلفية الزجاجية للصور (Glassmorphism) */
.card-img-holder {
    width: 100%;
    aspect-ratio: 1 / 1; /* مربع 1:1 */
    overflow: hidden;
    position: relative;
    
    /* --- تأثير الزجاج --- */
    background: rgba(255, 255, 255, 0.05); /* لون أبيض شفاف جداً */
    backdrop-filter: blur(10px);            /* تمويه الخلفية وراء العنصر */
    -webkit-backdrop-filter: blur(10px);    /* للمتصفحات القديمة */
    border: 1px solid rgba(255, 255, 255, 0.1); /* إطار زجاجي خفيف */
    
    /* ظل داخلي خفيف لإبراز العمق */
    box-shadow: inset 0 0 20px rgba(0, 0, 0, 0.2); 
    
    /* توسيط الصورة داخل المربع الزجاجي */
    display: flex;
    justify-content: center;
    align-items: center;
}

/* تنسيق الصورة نفسها (PNG) */
.card-img-holder img {
    width: 80%; /* تصغير الصورة قليلاً لترك مساحة للخلفية الزجاجية */
    height: 80%;
    object-fit: contain; /* إظهار الصورة كاملة دون قص */
    transition: transform 0.5s ease;
    filter: drop-shadow(0 5px 15px rgba(0,0,0,0.3)); /* ظل للصورة نفسها لتبدو طافية */
}

/* تكبير الصورة عند التحويم */
.portfolio-card:hover .card-img-holder img {
    transform: scale(1.1);
}
/* تنسيق صورة اللوجو في الهيدر */
.logo-img {
    height: 60px; /* ارتفاع مناسب للهيدر */
    width: auto;  /* العرض يتناسب تلقائياً للحفاظ على الأبعاد */
    object-fit: contain; /* ضمان ظهور اللوجو كاملاً دون قص */
    transition: transform 0.3s ease; /* حركة ناعمة عند التحويم */
    display: block; /* إزالة المسافات الزائدة أسفل الصورة */
}

/* تكبير بسيط عند وضع الماوس على اللوجو */
.logo a:hover .logo-img {
    transform: scale(1.1); /* تكبير بنسبة 10% */
    filter: drop-shadow(0 0 10px rgba(168, 85, 247, 0.4)); /* توهج ذهبي خفيف */
}

/* تعديل للموبايل (تصغير اللوجو قليلاً) */
@media (max-width: 768px) {
    .logo-img {
        height: 45px; /* تصغير الارتفاع ليتناسب مع شاشة الجوال */
    }
}
/* --- تنسيق الهيدر الجديد (توزيع متناسق) --- */
.main-header {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    padding: 10px 5%;
    background: rgba(10, 1, 24, 0.95); /* خلفية داكنة */
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border-color);
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1400px; /* عرض واسع ليناسب الشاشات الكبيرة */
    margin: 0 auto;
    height: 60px; /* تثبيت ارتفاع الهيدر */
}

/* 1. القسم الأيمن (السوشيال) */
.social-links-header {
    flex: 1; /* يأخذ مساحة متساوية */
    display: flex;
    justify-content: flex-start; /* محاذاة لليمين (بداية الصفحة العربية) */
    align-items: center;
}

.social-links-header a {
    color: #fff;
    font-size: 1.2rem;
    margin-left: 15px; /* مسافة بين الأيقونات */
    transition: 0.3s;
}

/* 2. القسم الأوسط (اللوجو) */
.logo {
    flex: 1; /* يأخذ مساحة متساوية */
    display: flex;
    justify-content: flex-end; /* محاذاة لليسار */
    align-items: center;
}

.logo-img {
    height: 50px; /* حجم اللوجو */
    width: auto;
}

/* 3. القسم الأوسط (القائمة وزر الموبايل) */
.center-section {
    flex: 1; /* يأخذ مساحة متساوية مع القسم الأيمن */
    display: flex;
    justify-content: center; /* محاذاة في الوسط */
    align-items: center;
}

/* تنسيق القائمة (الكمبيوتر) */
.main-nav ul {
    display: flex;
    gap: 35px;
    list-style: none;
}

.main-nav a {
    color: #ffffff !important;
    font-weight: 600 !important;
    font-size: 1.1rem !important;
    position: relative;
}

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

/* زر الموبايل (مخفي في الكمبيوتر) */
.mobile-menu-btn {
    display: none !important;
    background: none;
    border: none;
    color: var(--primary-color);
    font-size: 1.8rem;
    cursor: pointer;
}

/* --- التجاوب مع الجوال (Mobile Responsive) --- */
@media (max-width: 992px) {
    /* إخفاء القائمة العادية */
    .main-nav {
        position: fixed;
        top: 71px; /* أسفل الهيدر مباشرة */
        right: -100%; /* مخفية خارج الشاشة */
        width: 100%;
        height: calc(100vh - 71px);
        background: rgba(10, 1, 24, 0.98);
        flex-direction: column;
        justify-content: center;
        transition: 0.4s;
        border-top: 1px solid var(--border-color);
    }
    
    .main-nav.active {
        right: 0; /* إظهار القائمة */
    }
    
    .main-nav ul {
        flex-direction: column;
        align-items: flex-end;
        gap: 40px;
        padding-right: 30px;
    }
    
    .main-nav a {
        font-size: 1.5rem;
    }

    /* إظهار زر القائمة (الهمبرغر) */
    .mobile-menu-btn {
        display: block;
    }
    
    /* تصغير اللوجو قليلاً في الجوال */
    .logo-img {
        height: 40px;
    }
    
    /* --- تنسيق الهيدر في الجوال --- */
    .header-content {
        justify-content: space-between;
        position: relative;
        padding: 0 15px;
    }
    
    /* الشعار في الوسط */
    .logo {
        position: absolute;
        left: 50%;
        transform: translateX(-50%);
        order: 0;
        flex: 0 0 auto;
    }
    
    /* الأزرار على اليسار (القائمة والتواصل) */
    .center-section {
        order: 1;
        position: absolute;
        left: 15px;
        display: flex;
        gap: 10px;
        align-items: center;
    }
    
    /* زر القائمة من اليسار */
    .mobile-menu-btn {
        background: transparent;
        border: none;
        color: var(--primary-color);
        font-size: 1.5rem;
        cursor: pointer;
        padding: 8px;
        display: flex !important;
        align-items: center;
        justify-content: center;
    }
    
    /* زر التواصل من اليسار */
    .mobile-contact-btn {
        background: transparent;
        border: 1px solid var(--primary-color);
        color: var(--primary-color);
        width: 40px;
        height: 40px;
        border-radius: 8px;
        cursor: pointer;
        display: flex;
        align-items: center;
        justify-content: center;
        font-size: 1.2rem;
        transition: all 0.3s ease;
        position: relative;
    }
    
    .mobile-contact-btn:hover {
        background: var(--primary-color);
        color: #0a0118;
    }
    
    /* قائمة التواصل المنسدلة */
    .mobile-contact-dropdown {
        position: absolute;
        top: 100%;
        left: 15px;
        background: rgba(20, 20, 20, 0.95);
        border: 1px solid var(--border-color);
        border-radius: 8px;
        padding: 10px;
        display: none;
        flex-direction: column;
        gap: 8px;
        backdrop-filter: blur(10px);
        box-shadow: 0 5px 20px rgba(0, 0, 0, 0.5);
        z-index: 999;
    }
    
    .mobile-contact-dropdown.show {
        display: flex;
    }
    
    .contact-item {
        width: 40px;
        height: 40px;
        border: 1px solid rgba(168, 85, 247, 0.3);
        border-radius: 8px;
        display: flex;
        align-items: center;
        justify-content: center;
        color: #b89fff;
        font-size: 1rem;
        transition: all 0.3s ease;
        background: rgba(50, 30, 80, 0.3);
    }
    
    .contact-item:hover {
        background: var(--primary-color);
        color: #0a0118;
        border-color: var(--primary-color);
    }
}
/* --- تنسيق الهيدر المحدث --- */
.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 60px;
    position: relative; /* مهم لتموضع العناصر */
}

/* 1. القسم الأيمن (تواصل) */
.right-section {
    flex: 0 0 auto;
    display: flex;
    justify-content: flex-start;
}

/* إخفاء زر "تواصل معنا" في الكمبيوتر */
.mobile-contact-wrapper {
    display: none; 
    position: relative;
}

/* إخفاء أزرار التواصل والقائمة المنسدلة في النـــسخة العريضة */
.mobile-contact-btn,
.mobile-contact-dropdown {
    display: none !important;
}

/* إخفاء أيقونات السوشيال القديمة */
.social-links-desktop {
    display: none !important;
    gap: 15px;
}

.social-links-desktop a {
    color: #fff;
    font-size: 1.2rem;
    transition: 0.3s;
    display: inline-flex;
    justify-content: center;
    align-items: center;
    width: 45px;
    height: 45px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 50%;
    border: 1px solid rgba(168, 85, 247, 0.2);
    /* أنمشين النبض الذهبي - يعمل فقط على الكمبيوتر */
    animation: goldPulse 2s infinite;
}

.social-links-desktop a:nth-child(1) { animation-delay: 0s; }
.social-links-desktop a:nth-child(2) { animation-delay: 0.3s; }
.social-links-desktop a:nth-child(3) { animation-delay: 0.6s; }

.social-links-desktop a:hover {
    color: var(--primary-color);
    background: var(--primary-color);
    color: #000;
    animation: none; /* إيقاف الأنمشين عند التحويم */
    transform: scale(1.15);
    box-shadow: 0 0 20px var(--primary-glow);
}

/* 2. القسم الأوسط (اللوجو) */
.logo {
    flex: 0 0 auto;
    display: flex;
    justify-content: flex-end;
}

.logo-img { height: 45px; width: auto; }

/* 3. القسم الأوسط (القائمة) */
.center-section {
    flex: 1;
    display: flex;
    justify-content: center;
}

/* --- تنسيقات الجوال (Mobile Only) --- */
@media (max-width: 992px) {
    /* إخفاء أيقونات السوشيال العادية */
    .social-links-desktop { 
        display: none; 
    }
    
    /* إظهار زر "تواصل معنا" */
    .mobile-contact-wrapper { display: block; }
    
    /* تنسيق زر تواصل معنا */
    .contact-trigger-btn {
        background: transparent;
        border: 1px solid var(--primary-color);
        color: var(--primary-color);
        padding: 8px 16px;
        border-radius: 20px;
        font-family: var(--font-main);
        font-size: 0.9rem;
        font-weight: 500;
        cursor: pointer;
        display: flex;
        align-items: center;
        gap: 8px;
        transition: all 0.3s ease;
    }
    
    .contact-trigger-btn:hover, .contact-trigger-btn.active {
        background: var(--primary-color);
        color: #000;
        transform: translateY(-2px);
        box-shadow: 0 4px 12px rgba(168, 85, 247, 0.3);
    }

    /* تنسيق القائمة المنسدلة الصغيرة */
    .contact-dropdown {
        position: absolute;
        top: 120%; /* أسفل الزر مباشرة */
        right: 0;
        background: rgba(20, 20, 20, 0.95);
        border: 1px solid var(--border-color);
        border-radius: 10px;
        width: 140px;
        padding: 10px 0;
        display: none; /* مخفية افتراضياً */
        flex-direction: column;
        backdrop-filter: blur(10px);
        box-shadow: 0 5px 20px rgba(0,0,0,0.5);
    }

    .contact-dropdown.show { display: flex; } /* كلاس للإظهار */

    .contact-dropdown a {
        color: #fff;
        padding: 8px 15px;
        font-size: 0.9rem;
        display: flex;
        align-items: center;
        gap: 10px;
        transition: 0.2s;
        text-decoration: none;
    }

    .contact-dropdown a:hover {
        background: rgba(168, 85, 247, 0.2);
        color: var(--primary-color);
    }
    
    /* تصغير اللوجو للجوال */
    .logo-img { height: 40px; }

    /* زر الموبايل يظهر */
    .mobile-menu-btn {
        display: block;
        z-index: 1001; /* تأكد أن الرقم عالٍ ليظهر فوق كل شيء */
        position: relative;
    }

    /* القائمة تظهر وتختفي */
    .main-nav {
        /* ... باقي التنسيقات ... */
        transition: right 0.4s ease; /* تأكد من وجود ترانزيشن */
    }
    
    .main-nav.active {
        right: 0; /* تأكد أن القيمة 0 وليس auto */
    }
    
    /* الشعار في المنتصف على الجوال */
    .header-content {
        justify-content: center;
        position: relative;
    }
    
    .logo {
        order: 0;
        flex: 0 0 auto;
        position: absolute;
        left: 50%;
        transform: translateX(-50%);
    }
    
    .center-section {
        order: 1;
        position: absolute;
        left: 20px;
    }
    
    .right-section {
        order: 2;
        position: absolute;
        right: 20px;
    }
}
/* تنسيق شعار الفوتر*/
.footer-logo-img {
    height: 80px; /* حجم أكبر قليلاً من الهيدر ليكون واضحاً */
    width: auto;
    object-fit: contain;
    margin-bottom: 20px; /* مسافة بين الشعار والنص تحته */
    display: block;
    transition: transform 0.3s ease;
}

/* تأثير بسيط عند التحويم */
.footer-logo a:hover .footer-logo-img {
    transform: scale(1.05);
    filter: drop-shadow(0 0 15px rgba(168, 85, 247, 0.3)); /* توهج ذهبي خفيف */
}

/* تعديل للجوال (تصغير قليلاً) */
@media (max-width: 768px) {
    .footer-logo-img {
        height: 60px; /* تصغير الحجم ليتناسب مع شاشة الجوال */
        margin: 0 auto 15px auto; /* توسيط الشعار في الجوال */
    }
}

/* --- تنسيق الشعار المركزي في الفوتر --- */
.footer-logo-centered {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
    perspective: 1000px;
}

.footer-logo-main {
    height: 100px;
    width: auto;
    object-fit: contain;
    transition: all 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
    display: block;
    filter: drop-shadow(0 0 20px rgba(168, 85, 247, 0.15)); /* توهج ذهبي ناعم */
    transform-style: preserve-3d;
}

.footer-logo-centered a:hover .footer-logo-main {
    transform: scale(1.15) rotateX(5deg) translateZ(25px);
    filter: drop-shadow(0 10px 40px rgba(168, 85, 247, 0.5)); /* توهج أقوى عند التحويم */
}

/* تعديل الفوتر ليكون أفقي بشكل أفضل */
.footer-container {
    display: flex;
    flex-direction: row-reverse;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    gap: 60px;
    padding: 0 5%;
}

/* تنسيق الصفوف الثلاثة الأخرى بتحديد أفقي */
.footer-info,
.footer-contact {
    text-align: center;
}

.footer-info {
    max-width: 600px;
    color: #ccc;
    line-height: 1.8;
    font-size: 0.95rem;
}

.footer-contact h3 {
    color: var(--primary-color);
    margin-bottom: 15px;
    font-size: 1.1rem;
}

/* تعديل للجوال */
@media (max-width: 768px) {
    .footer-logo-main {
        height: 90px; /* تصغير الشعار في الجوال */
    }
    
    .footer-container {
        gap: 30px;
    }
    
    .footer-logo-centered {
        margin-bottom: 30px;
        padding: 15px 0;
    }
}

/* === قسم الهويات البصرية === */
.hero-branding {
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    position: relative;
    overflow: hidden;
    background: linear-gradient(135deg, var(--bg-color) 0%, var(--bg-secondary) 100%);
}

.hero-branding #particles-js {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    z-index: 1;
}

.branding-item {
    opacity: 1;
    transform: translateY(0) rotateY(0);
    transition: all 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
}



@keyframes slideInBranding {
    from {
        opacity: 0;
        transform: translateY(30px) rotateY(-15deg) translateZ(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0) rotateY(0) translateZ(0);
    }
}

.branding-item:hover {
    transform: translateY(-10px) rotateX(5deg) rotateY(-3deg) translateZ(30px);
    box-shadow: 0 20px 50px rgba(168, 85, 247, 0.3);
}

/* ========== تأثيرات متحركة شاملة للموقع ========== */

/* تأثير Fade In للعناصر */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(40px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

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

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

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



/* تأثير Rotate */
@keyframes rotateIn {
    from {
        opacity: 0;
        transform: rotate(-200deg);
    }
    to {
        opacity: 1;
        transform: rotate(0);
    }
}

/* تأثير Scale */
@keyframes scaleIn {
    from {
        opacity: 0;
        transform: scale(0.3);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

/* تأثير Flip */
@keyframes flipInX {
    from {
        opacity: 0;
        transform: perspective(400px) rotateX(90deg);
    }
    to {
        opacity: 1;
        transform: perspective(400px) rotateX(0deg);
    }
}

@keyframes flipInY {
    from {
        opacity: 0;
        transform: perspective(400px) rotateY(90deg);
    }
    to {
        opacity: 1;
        transform: perspective(400px) rotateY(0deg);
    }
}

/* تأثير Glow (توهج) */
@keyframes glow {
    0%, 100% {
        box-shadow: 0 0 5px rgba(168, 85, 247, 0.5), 0 0 10px rgba(168, 85, 247, 0.3);
    }
    50% {
        box-shadow: 0 0 20px rgba(168, 85, 247, 0.8), 0 0 30px rgba(168, 85, 247, 0.6);
    }
}

/* تأثير Shimmer (لمعان) */
@keyframes shimmer {
    0% {
        background-position: -1000px 0;
    }
    100% {
        background-position: 1000px 0;
    }
}

/* تأثير Wave (موجة) */
@keyframes wave {
    0%, 100% {
        transform: translateY(0px);
    }
    25% {
        transform: translateY(-10px);
    }
    50% {
        transform: translateY(0px);
    }
    75% {
        transform: translateY(-5px);
    }
}

/* تأثير Heartbeat (نبض القلب) */
@keyframes heartbeat {
    0%, 100% {
        transform: scale(1);
    }
    14% {
        transform: scale(1.15);
    }
    28% {
        transform: scale(1);
    }
    42% {
        transform: scale(1.15);
    }
    70% {
        transform: scale(1);
    }
}

/* تطبيق التأثيرات على عناصر الكروت */
.service-card {
    position: relative;
}

.service-card:hover {
    transform: translateY(-20px) rotateX(5deg) translateZ(25px);
    box-shadow: 0 20px 40px rgba(168, 85, 247, 0.2);
    border-color: var(--primary-color);
}

/* تطبيق التأثيرات على البكجات */
.package-card {
    position: relative;
}

.package-card:hover {
    transform: translateY(-20px) rotateX(5deg) translateZ(25px);
    box-shadow: 0 20px 40px rgba(168, 85, 247, 0.2);
    border-color: var(--primary-color);
}

/* تطبيق التأثيرات على عناصر البورتفوليو */
.portfolio-item {
    position: relative;
}

/* تأثير على العناوين */
.section-title span { 
    color: var(--primary-color);
    text-shadow: 0 0 20px var(--primary-glow);
}

/* تأثير على النصوص في الـ Hero */
.hero-text {
    opacity: 1;
}

.hero-heading h1 {
    color: var(--primary-color);
}

/* تأثيرات على الأزرار */
.btn {
    position: relative;
    overflow: hidden;
}

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

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

/* تأثير على الـ Icons */
.icon-box {
    display: flex;
    align-items: center;
    justify-content: center;
}

.icon-box:hover {
    transform: scale(1.05);
    transition: all 0.3s ease;
}

/* تأثير على الصور في البطاقات */
.card-img-holder img {
    width: 100%;
    height: auto;
}

/* تأثير Glow على عناصر معينة */


/* تأثير على الروابط */
a {
    position: relative;
}

a::after {
    content: '';
    position: absolute;
    width: 100%;
    height: 2px;
    bottom: -5px;
    left: 0;
    background: var(--primary-color);
    transform: scaleX(0);
    transform-origin: right;
    transition: transform 0.3s ease;
}

a:hover::after {
    transform: scaleX(1);
    transform-origin: left;
}

/* تأثيرات خاصة للعناصر العائمة */
.float-item {
    position: fixed;
    opacity: 0.03;
}

/* Removed animations for clean interface */

/* تأثير على الـ SVG والأيقونات */
i {
    transition: all 0.3s ease;
}

a:hover i {
    transform: translateY(-3px);
    color: var(--primary-color);
}

/* تأثير Reveal للعناصر */
.reveal {
    opacity: 1;
}

/* تأثيرات على الفوتر */
.footer-section {
    position: relative;
}

/* تأثيرات على الـ Header */
.main-nav a {
    position: relative;
    transition: all 0.3s ease;
    color: #ffffff !important;
    font-size: 1.1rem !important;
    font-weight: 600 !important;
}

/* تأثير على عناصر القائمة المنسدلة */
.contact-dropdown a {
    padding: 10px 0;
    color: inherit;
}

/* تأثير على الـ Price Tags */
.price-tag {
    display: inline-block;
    transition: all 0.3s ease;
}

/* تأثير على عناصر الـ Features */
.package-features li {
    display: flex;
    align-items: center;
}

/* Removed animation delays */

/* تأثير Gradient Animation */
@keyframes gradientShift {
    0%, 100% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
}

.service-card,
.package-card {
    background-size: 200% 200%;
}

/* تأثيرات hover متقدمة على الكروت */


/* تأثير backdrop blur على hover */
.portfolio-card:hover {
    backdrop-filter: blur(5px);
}

@keyframes typing-caret-blink {
    0%, 49% {
        border-right-color: var(--primary-color);
    }
    50%, 100% {
        border-right-color: transparent;
    }
}

/* --- إصلاح نهائي لمشكلة الفراغ الأيسر في الجوال --- */
@media (max-width: 768px) {
    html,
    body {
        width: 100%;
        max-width: 100%;
        overflow-x: hidden;
    }

    #home,
    #portfolio,
    .section-padding,
    .container,
    .portfolio-filters,
    .portfolio-grid {
        width: 100%;
        max-width: 100%;
        margin-left: 0;
        margin-right: 0;
    }

    .portfolio-filters {
        padding: 0;
    }

    .portfolio-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    }

    .filter-btn {
        padding: 10px 8px;
        font-size: 0.82rem;
    }

    #particles-js,
    #particles-js canvas {
        width: 100% !important;
        max-width: 100% !important;
        left: 0 !important;
        right: 0 !important;
    }
}

/* --- إصلاح خاص بالواجهة (الهيرو) على الجوال من جهة اليمين --- */
@media (max-width: 768px) {
    #home.hero {
        width: 100% !important;
        max-width: 100% !important;
        margin: 0 !important;
        padding: 16px 14px !important;
        overflow: hidden;
    }

    #home.hero::after {
        width: 130vw;
        height: 130vw;
        bottom: -52vw;
        opacity: 1;
    }

    #home .hero-content,
    #home .hero-text,
    #home .hero-heading,
    #home .hero-subtitle,
    #home .hero-buttons {
        width: 100%;
        max-width: 100%;
        margin-left: auto;
        margin-right: auto;
        box-sizing: border-box;
    }

    #home .hero-buttons {
        align-items: stretch;
    }

    #home .btn {
        width: 100%;
        box-sizing: border-box;
    }

    #home #particles-js,
    #home #particles-js canvas {
        position: absolute;
        inset: 0 !important;
        width: 100% !important;
        height: 100% !important;
        transform: none !important;
        opacity: 0.7;
    }
}

/* --- تثبيت نهائي لمحاذاة الواجهة من اليمين في الجوال --- */
@media (max-width: 768px) {
    html,
    body {
        overflow-x: hidden !important;
        overflow-y: auto !important;
        height: auto !important;
        position: relative !important;
    }

    body {
        width: 100vw;
        max-width: 100vw;
        margin: 0;
    }

    #home.hero {
        position: relative !important;
        width: 100vw !important;
        max-width: 100vw !important;
        margin: 0 !important;
        left: 0 !important;
        right: 0 !important;
        padding-inline: 16px !important;
        box-sizing: border-box;
    }

    #home.hero::before,
    #home.hero::after,
    #home #particles-js,
    #home #particles-js canvas {
        left: 0 !important;
        right: 0 !important;
        width: 100vw !important;
        max-width: 100vw !important;
    }
}

/* --- ضبط نهائي لشكل نص وأزرار الواجهة --- */
#home .hero-heading h1 {
    color: #c3c8df;
    font-size: clamp(2.3rem, 5vw, 4.2rem);
    font-weight: 700;
    line-height: 1.15;
    letter-spacing: -0.02em;
    margin-bottom: 22px;
}

#home .hero-subtitle {
    color: rgba(223, 229, 248, 0.86);
    font-size: clamp(1.05rem, 1.9vw, 2rem);
    font-weight: 500;
    line-height: 1.45;
    max-width: 820px;
    margin: 0 auto 34px;
}

#home .hero-buttons {
    gap: 12px;
}

#home .hero-buttons .btn {
    min-width: 168px;
    height: 48px;
    padding: 0 22px;
    font-size: 0.95rem;
    font-weight: 600;
    border-radius: 999px;
}

#home .hero-buttons .btn-primary {
    background: #edf0f6;
    color: #2a2340;
    border: 1px solid rgba(255, 255, 255, 0.7);
    box-shadow: 0 8px 20px rgba(148, 108, 255, 0.22);
}

#home .hero-buttons .btn-outline {
    background: rgba(111, 64, 194, 0.6);
    color: #f0e8ff;
    border: 1px solid rgba(171, 120, 255, 0.75);
}

@media (max-width: 768px) {
    #home .hero-heading h1 {
        font-size: clamp(1.8rem, 9vw, 2.5rem);
        line-height: 1.2;
    }

    #home .hero-subtitle {
        font-size: 1.1rem;
        max-width: 95%;
        margin-bottom: 26px;
    }

    #home .hero-buttons .btn {
        min-width: 100%;
        height: 50px;
        font-size: 0.9rem;
    }
}

@media (max-width: 768px) {
    .hero,
    #home.hero {
        height: 72vh !important;
        min-height: 520px !important;
    }

    #home .hero-content {
        padding-top: 14px !important;
        padding-bottom: 14px !important;
    }
}

/* --- Fix نهائي: إزالة الفراغ الأسود يمين بنر الجوال --- */
@media (max-width: 768px) {
    html,
    body {
        width: 100% !important;
        max-width: 100% !important;
        overflow-x: hidden !important;
        margin: 0 !important;
        padding: 0 !important;
    }

    #home,
    #home.hero,
    .hero {
        position: relative !important;
        width: 100% !important;
        max-width: 100% !important;
        margin: 0 !important;
        left: 0 !important;
        right: 0 !important;
        transform: none !important;
        overflow: hidden !important;
    }

    #home.hero {
        padding-left: 0 !important;
        padding-right: 0 !important;
    }

    #home #particles-js,
    #home #particles-js canvas,
    #home.hero::before,
    #home.hero::after {
        left: 0 !important;
        right: auto !important;
        width: 100% !important;
        max-width: 100% !important;
        transform: none !important;
    }

    #home .hero-content {
        width: 100% !important;
        max-width: 100% !important;
        margin: 0 auto !important;
        padding-left: 16px !important;
        padding-right: 16px !important;
        box-sizing: border-box !important;
    }
}

/* --- Fix نهائي للشريط الداكن يمين البنر (من القائمة الجانبية) --- */
@media (max-width: 992px) {
    .main-nav {
        right: 0 !important;
        transform: translateX(105%) !important;
        opacity: 0 !important;
        visibility: hidden !important;
        pointer-events: none !important;
    }

    .main-nav.active {
        transform: translateX(0) !important;
        opacity: 1 !important;
        visibility: visible !important;
        pointer-events: auto !important;
        right: 0 !important;
    }
}

/* --- تحسينات شكل أقسام الخدمات والباقات --- */
#services .section-header {
    margin-bottom: 34px;
}

:is(#services, #ads-packages, #packages, #subscriptions) .services-grid {
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 34px;
}

:is(#services, #ads-packages, #packages, #subscriptions) .service-card {
    background: linear-gradient(165deg, rgba(255, 255, 255, 0.03) 0%, rgba(168, 85, 247, 0.04) 100%);
    border: 1px solid rgba(168, 85, 247, 0.15);
    border-radius: 24px;
    padding: 24px 18px 18px;
    min-height: auto;
    backdrop-filter: blur(30px);
    -webkit-backdrop-filter: blur(30px);
    box-shadow: 
        0 0 15px rgba(168, 85, 247, 0.08),
        0 0 30px rgba(168, 85, 247, 0.04),
        0 12px 30px rgba(7, 3, 20, 0.35),
        inset 0 1px 0 rgba(255, 255, 255, 0.03);
    transition: transform 0.35s ease, border-color 0.35s ease, box-shadow 0.35s ease, background 0.35s ease;
}

:is(#services, #ads-packages, #packages, #subscriptions) .service-card:hover {
    transform: translateY(-10px);
    border-color: rgba(168, 85, 247, 0.25);
    background: linear-gradient(165deg, rgba(255, 255, 255, 0.05) 0%, rgba(168, 85, 247, 0.08) 100%);
    box-shadow: 
        0 0 20px rgba(168, 85, 247, 0.12),
        0 0 40px rgba(168, 85, 247, 0.08),
        0 0 60px rgba(168, 85, 247, 0.04),
        0 18px 36px rgba(60, 20, 120, 0.3),
        inset 0 0 0 1px rgba(168, 85, 247, 0.15);
}

:is(#services, #ads-packages, #packages, #subscriptions) .icon-box {
    width: auto;
    height: auto;
    margin-bottom: 0;
    margin-left: 0;
    margin-right: 8px;
    font-size: 2.4rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: none;
    border: none;
    box-shadow: none;
}

#services .service-card h3 {
    font-size: 2rem;
    margin-bottom: 14px;
    line-height: 1.35;
    display: flex;
    align-items: center;
    gap: 10px;
}

#services .service-card h3 .icon-box {
    margin-bottom: 0;
    margin-left: 0;
    font-size: 2rem;
}

#services .service-card p {
    font-size: 1.05rem;
    line-height: 1.85;
    color: rgba(232, 226, 245, 0.86);
    max-width: 36ch;
    margin-bottom: 0;
}

:is(#ads-packages, #packages, #subscriptions) .package-features {
    width: 100%;
}

@media (max-width: 768px) {
    :is(#services, #ads-packages, #packages, #subscriptions) .services-grid {
        grid-template-columns: 1fr;
        gap: 18px;
    }

    :is(#services, #ads-packages, #packages, #subscriptions) .service-card {
        min-height: auto;
        padding: 20px 16px 14px;
        border-radius: 20px;
    }

    :is(#services, #ads-packages, #packages, #subscriptions) .icon-box {
        width: 74px;
        height: 74px;
        margin-bottom: 18px;
        font-size: 2.05rem;
    }

    #services .service-card h3 {
        font-size: 1.8rem;
        margin-bottom: 10px;
    }

    #services .service-card p {
        font-size: 0.95rem;
        line-height: 1.7;
    }
}
/* --- تصميم قسم التواصل (Glassmorphic Premium) --- */
#contact .contact-wrapper {
    max-width: 520px;
    margin: 0 auto;
}

#contact .contact-form {
    max-width: 100%;
    padding: 42px 36px;
    border-radius: 28px;
    border: 1px solid rgba(168, 85, 247, 0.18);
    background: rgba(18, 8, 40, 0.5);
    backdrop-filter: blur(50px);
    -webkit-backdrop-filter: blur(50px);
    box-shadow: 
        0 24px 58px rgba(0, 0, 0, 0.45),
        0 0 40px rgba(168, 85, 247, 0.15),
        0 0 80px rgba(168, 85, 247, 0.08),
        inset 0 1px 2px rgba(255, 255, 255, 0.05);
    position: relative;
    overflow: hidden;
}

#contact .contact-form::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
}

#contact .input-group {
    margin-bottom: 20px;
}

#contact .input-group input,
#contact .input-group textarea {
    width: 100%;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(168, 85, 247, 0.18);
    border-radius: 16px;
    padding: 18px 20px;
    color: #ffffff;
    font-size: 1rem;
    line-height: 1.6;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    box-shadow: 
        0 0 30px rgba(168, 85, 247, 0.08),
        0 0 60px rgba(168, 85, 247, 0.04);
}

#contact .input-group textarea {
    min-height: 140px;
    resize: vertical;
}

#contact .input-group input::placeholder,
#contact .input-group textarea::placeholder {
    color: rgba(200, 180, 255, 0.45);
}

#contact .input-group input:focus,
#contact .input-group textarea:focus {
    outline: none;
    border-color: rgba(168, 85, 247, 0.35);
    background: rgba(255, 255, 255, 0.04);
    box-shadow: 
        0 0 0 4px rgba(168, 85, 247, 0.08),
        0 0 40px rgba(168, 85, 247, 0.2),
        0 0 80px rgba(168, 85, 247, 0.1),
        inset 0 1px 2px rgba(255, 255, 255, 0.05);
    transform: translateY(-1px);
}

#contact .btn.full-width {
    width: 100%;
    height: 56px;
    border-radius: 16px;
    font-size: 1.05rem;
    font-weight: 700;
    background: linear-gradient(135deg, #d9a5ff 0%, #a366ff 50%, #8855d9 100%);
    border: 1px solid rgba(200, 140, 255, 0.25);
    color: #0a0118;
    box-shadow: 
        0 0 20px rgba(168, 85, 247, 0.15),
        0 0 40px rgba(168, 85, 247, 0.1),
        0 0 60px rgba(168, 85, 247, 0.05),
        0 8px 24px rgba(168, 85, 247, 0.1);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    margin-top: 8px;
    position: relative;
    overflow: visible;
}

#contact .btn.full-width::before {
    content: '';
    position: absolute;
    inset: -10px;
    border-radius: 20px;
    background: radial-gradient(circle, rgba(200, 140, 255, 0.12), rgba(168, 85, 247, 0.08), transparent);
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: -1;
    filter: blur(25px);
}

#contact .btn.full-width:hover {
    transform: translateY(-2px);
    box-shadow: 
        0 0 25px rgba(168, 85, 247, 0.2),
        0 0 50px rgba(168, 85, 247, 0.15),
        0 0 75px rgba(168, 85, 247, 0.08),
        0 12px 32px rgba(168, 85, 247, 0.12);
    background: linear-gradient(135deg, #e8c5ff 0%, #b588ff 50%, #9d71f5 100%);
}

#contact .btn.full-width:hover::before {
    opacity: 0.7;
}

#contact .btn.full-width:active {
    transform: translateY(0);
}

#contact .btn.full-width i {
    margin-left: 8px;
    font-size: 1.15rem;
}

@media (max-width: 768px) {
    #contact .contact-form {
        padding: 32px 24px;
        border-radius: 24px;
    }

    #contact .input-group input,
    #contact .input-group textarea {
        padding: 16px 18px;
        border-radius: 14px;
        font-size: 0.98rem;
    }

    #contact .btn.full-width {
        height: 54px;
        font-size: 1rem;
    }
}
/* --- أزرار البطاقات --- */
.package-btn {
    width: 100%;
    padding: 14px 24px !important;
    font-size: 1rem !important;
    font-weight: 600 !important;
    margin-top: 10px;
    border-radius: 14px !important;
}

.package-card .package-btn,
.subscription-card .package-btn {
    background: linear-gradient(135deg, #d9a5ff 0%, #a366ff 50%, #8855d9 100%) !important;
    border: 1px solid rgba(200, 140, 255, 0.25) !important;
    box-shadow: 
        0 0 18px rgba(168, 85, 247, 0.15),
        0 0 35px rgba(168, 85, 247, 0.1),
        0 0 50px rgba(168, 85, 247, 0.06),
        0 6px 20px rgba(168, 85, 247, 0.1) !important;
}

.package-card.featured .package-btn,
.subscription-card.featured .package-btn {
    box-shadow: 
        0 0 35px rgba(168, 85, 247, 0.5),
        0 0 70px rgba(168, 85, 247, 0.3),
        0 0 105px rgba(168, 85, 247, 0.2),
        0 8px 24px rgba(168, 85, 247, 0.25) !important;
}

.package-card .package-btn:hover,
.subscription-card .package-btn:hover {
    background: linear-gradient(135deg, #e8c5ff 0%, #b588ff 50%, #9d71f5 100%) !important;
    box-shadow: 
        0 0 45px rgba(168, 85, 247, 0.6),
        0 0 90px rgba(168, 85, 247, 0.4),
        0 0 135px rgba(168, 85, 247, 0.25),
        0 10px 28px rgba(168, 85, 247, 0.3) !important;
    transform: translateY(-2px) !important;
}
/* --- تحسينات إضافية للبطاقات --- */
.package-card .icon-box,
.subscription-card .icon-box {
    width: 70px;
    height: 70px;
    font-size: 2.2rem;
    margin-bottom: 15px;
}

.package-card .package-header,
.subscription-card .package-header {
    padding-top: 10px;
}

/* تحسين نص السعر */
.price-tag.large {
    line-height: 1;
    margin-top: 10px;
}

/* تحسين المسافات في البطاقات المميزة */
.package-card.featured .package-header,
.subscription-card.featured .package-header {
    padding-top: 35px;
}
/* --- Responsive للبطاقات على الموبايل --- */
@media (max-width: 768px) {
    .price-tag.large {
        font-size: 2rem;
    }
    
    .package-card .icon-box,
    .subscription-card .icon-box {
        width: 60px;
        height: 60px;
        font-size: 1.8rem;
    }
    
    .package-header h3 {
        font-size: 1.2rem;
    }
    
    .package-badge {
        font-size: 0.7rem;
        padding: 5px 12px;
        top: 15px;
        right: 15px;
    }
    
    .package-features li {
        font-size: 0.9rem;
        padding: 10px 0;
    }
    
    .package-btn {
        padding: 12px 20px !important;
        font-size: 0.95rem !important;
    }
}

/* ===== Reference Hero/Header (exact look) ===== */
body.hero-reference {
    background: #0a0330 !important;
}

body.hero-reference .main-header {
    background: transparent !important;
    border: 0 !important;
    box-shadow: none !important;
    padding: 18px 4% !important;
}

body.hero-reference .header-content {
    max-width: 1280px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    direction: ltr;
    gap: 24px;
    transform: translateY(24px);
}

body.hero-reference .right-section,
body.hero-reference .center-section,
body.hero-reference .logo {
    flex: 0 0 auto !important;
}

body.hero-reference .header-brand {
    display: inline-flex;
    align-items: center;
}

body.hero-reference .logo-img {
    height: 40px;
    width: auto;
}

body.hero-reference .main-nav ul {
    display: flex;
    gap: 28px;
    padding: 14px 34px;
    border-radius: 14px;
    background: rgba(158, 124, 255, 0.12);
    border: 1px solid rgba(178, 143, 255, 0.22);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
}

body.hero-reference .main-nav a {
    font-family: 'Poppins', sans-serif;
    font-size: 0.88rem !important;
    font-weight: 700 !important;
    color: rgba(255, 255, 255, 0.75) !important;
    padding: 8px 12px;
    border-radius: 10px;
    transition: all 0.25s ease;
}

body.hero-reference .main-nav a.active,
body.hero-reference .main-nav a:hover,
body.hero-reference .main-nav a:focus-visible {
    color: #ffffff !important;
    background: rgba(196, 167, 255, 0.16);
    box-shadow: inset 0 0 0 1px rgba(210, 188, 255, 0.24);
}

body.hero-reference .main-nav a::after {
    display: none;
}

body.hero-reference .header-cta-btn {
    padding: 12px 30px;
    border-radius: 14px;
    font-family: 'Poppins', sans-serif;
    font-size: 0.9rem;
    font-weight: 600;
    color: #ffffff;
    background: linear-gradient(180deg, #9f6bff 0%, #8b5df3 100%);
    border: 1px solid rgba(222, 204, 255, 0.5);
    box-shadow: 0 0 0 2px rgba(177, 133, 255, 0.25) inset, 0 10px 28px rgba(120, 74, 220, 0.35);
}

body.hero-reference .header-socials {
    display: flex;
    align-items: center;
    gap: 10px;
}

body.hero-reference .header-social-btn {
    width: 46px;
    height: 46px;
    border-radius: 14px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.05rem;
    color: #ffffff;
    background: linear-gradient(180deg, #9f6bff 0%, #8b5df3 100%);
    border: 1px solid rgba(222, 204, 255, 0.5);
    box-shadow: 0 0 0 2px rgba(177, 133, 255, 0.25) inset, 0 10px 28px rgba(120, 74, 220, 0.35);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

body.hero-reference .header-social-btn,
body.hero-reference .header-social-btn i {
    color: #ffffff !important;
}

body.hero-reference .header-social-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 0 0 2px rgba(177, 133, 255, 0.35) inset, 0 14px 30px rgba(120, 74, 220, 0.45);
}

body.hero-reference .header-social-btn:hover,
body.hero-reference .header-social-btn:hover i,
body.hero-reference .header-social-btn:focus-visible,
body.hero-reference .header-social-btn:focus-visible i {
    color: #ffffff !important;
}

body.hero-reference #home.hero {
    position: relative;
    min-height: 92vh;
    height: auto;
    padding: 160px 20px 130px;
    text-align: center;
    background:
        radial-gradient(45% 30% at 50% 0%, rgba(159, 107, 255, 0.28) 0%, rgba(159, 107, 255, 0) 100%),
        linear-gradient(180deg, #050224 0%, #04012a 56%, #0a0330 100%) !important;
    overflow: hidden;
}

body.hero-reference #home.hero::before {
    display: none !important;
}

body.hero-reference #home.hero::after {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    bottom: -1px;
    height: 320px;
    background: linear-gradient(180deg, rgba(10, 3, 48, 0) 0%, rgba(10, 3, 48, 0.45) 55%, #0a0330 100%) !important;
    pointer-events: none;
    z-index: 1;
}

body.hero-reference #particles-js {
    opacity: 0.25;
}

body.hero-reference #home .hero-content {
    max-width: 980px;
    margin: 0 auto;
    z-index: 2;
}

body.hero-reference #home .hero-heading h1 {
    font-family: 'Poppins', sans-serif;
    font-size: clamp(2.2rem, 5.2vw, 4rem);
    font-weight: 700;
    line-height: 1.28;
    color: #f4f1ff;
    margin: 0 auto 18px;
    max-width: 900px;
}

body.hero-reference #home .hero-subtitle {
    font-family: 'Poppins', sans-serif;
    font-size: clamp(1.05rem, 1.8vw, 1.35rem);
    font-weight: 600;
    color: rgba(241, 236, 255, 0.72);
    margin: 0 auto 30px;
    line-height: 1.85;
    max-width: 760px;
}

body.hero-reference #home .hero-buttons {
    display: flex;
    justify-content: center;
}

body.hero-reference #home .hero-buttons .btn-primary {
    min-width: 170px;
    height: 52px;
    border-radius: 14px;
    font-family: 'Poppins', sans-serif;
    font-size: 0.94rem;
    font-weight: 700;
    color: #fff;
    background: linear-gradient(180deg, #9f6bff 0%, #8b5df3 100%);
    border: 1px solid rgba(222, 204, 255, 0.5);
    box-shadow: 0 0 0 2px rgba(177, 133, 255, 0.25) inset, 0 10px 28px rgba(120, 74, 220, 0.35);
}

body.hero-reference .hero-curve-glow {
    position: absolute;
    left: 50%;
    bottom: -145px;
    transform: translateX(-50%);
    width: min(1300px, 130vw);
    height: 380px;
    border-radius: 50% 50% 0 0;
    background:
        radial-gradient(55% 70% at 50% 8%, rgba(181, 138, 255, 0.65) 0%, rgba(181, 138, 255, 0.26) 36%, rgba(181, 138, 255, 0.05) 65%, rgba(181, 138, 255, 0) 100%);
    filter: blur(10px);
    pointer-events: none;
    z-index: 1;
}

body.hero-reference #portfolio.section-padding {
    position: relative;
    margin-top: -72px;
    padding-top: 132px;
    background: transparent !important;
}

body.hero-reference #portfolio.section-padding::before {
    display: none;
}

body.hero-reference #portfolio .container {
    position: relative;
    z-index: 2;
}

body.hero-reference .section-padding {
    background: transparent !important;
}

body.hero-reference #portfolio.section-padding,
body.hero-reference #services.section-padding,
body.hero-reference #ads-packages.section-padding,
body.hero-reference #packages.section-padding,
body.hero-reference #subscriptions.section-padding,
body.hero-reference #about.section-padding,
body.hero-reference #contact.section-padding {
    background-color: transparent !important;
}

body.hero-reference .main-footer {
    position: relative;
    margin-top: 0;
    background: linear-gradient(180deg, rgba(10, 3, 48, 0) 0%, rgba(10, 3, 48, 0.65) 22%, #0a0330 62%, #08022a 100%) !important;
    border-top: 0 !important;
}

body.hero-reference .main-footer::before {
    content: '';
    position: absolute;
    top: -120px;
    left: 0;
    right: 0;
    height: 140px;
    background: linear-gradient(180deg, rgba(10, 3, 48, 0) 0%, rgba(10, 3, 48, 0.82) 100%);
    pointer-events: none;
}

body.hero-reference .footer-payments {
    border-top-color: rgba(185, 146, 255, 0.2);
}

body.hero-reference .copyright-bar {
    background: transparent !important;
}

body.hero-reference .portfolio-grid,
body.hero-reference .services-grid {
    perspective: 1700px;
}

body.hero-reference .portfolio-card,
body.hero-reference .service-card,
body.hero-reference .package-card,
body.hero-reference .subscription-card {
    position: relative;
    transform-style: preserve-3d;
    background: rgba(38, 20, 80, 0.56) !important;
    border: 1px solid rgba(188, 149, 255, 0.28) !important;
    box-shadow: 0 14px 34px rgba(7, 2, 36, 0.55), inset 0 1px 0 rgba(255, 255, 255, 0.07) !important;
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    transition: transform 0.75s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.5s ease, border-color 0.45s ease;
}

body.hero-reference .portfolio-card::before,
body.hero-reference .service-card::after,
body.hero-reference .package-card::after,
body.hero-reference .subscription-card::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: inherit;
    pointer-events: none;
    background: linear-gradient(125deg, rgba(255, 255, 255, 0.2) 0%, rgba(255, 255, 255, 0.04) 32%, rgba(255, 255, 255, 0) 60%);
    opacity: 0.35;
}

body.hero-reference .portfolio-card:hover,
body.hero-reference .service-card:hover,
body.hero-reference .package-card:hover,
body.hero-reference .subscription-card:hover {
    transform: translateY(-12px) rotateX(7deg) rotateY(-11deg) scale(1.01) !important;
    border-color: rgba(215, 183, 255, 0.48) !important;
    box-shadow: 0 26px 58px rgba(13, 5, 52, 0.62), 0 0 38px rgba(171, 103, 255, 0.3), inset 0 0 0 1px rgba(230, 206, 255, 0.16) !important;
}

body.hero-reference .services-grid .service-card:nth-child(even):hover,
body.hero-reference #ads-packages .service-card:nth-child(even):hover,
body.hero-reference #packages .subscription-card:nth-child(even):hover,
body.hero-reference #subscriptions .subscription-card:nth-child(even):hover {
    transform: translateY(-12px) rotateX(7deg) rotateY(11deg) scale(1.01) !important;
}

body.hero-reference .service-card > *,
body.hero-reference .package-card > *,
body.hero-reference .subscription-card > *,
body.hero-reference .portfolio-card .card-overlay,
body.hero-reference .portfolio-card .card-img-holder img {
    transform: translateZ(26px);
}

@media (prefers-reduced-motion: reduce) {
    body.hero-reference .portfolio-card,
    body.hero-reference .service-card,
    body.hero-reference .package-card,
    body.hero-reference .subscription-card {
        transition: none;
    }

    body.hero-reference .portfolio-card:hover,
    body.hero-reference .service-card:hover,
    body.hero-reference .package-card:hover,
    body.hero-reference .subscription-card:hover {
        transform: translateY(-4px) !important;
    }
}

@media (max-width: 992px) {
    body.hero-reference .main-nav {
        display: none;
    }

    body.hero-reference .logo-img {
        height: 34px;
    }

    body.hero-reference .header-cta-btn {
        padding: 10px 18px;
        font-size: 0.82rem;
    }

    body.hero-reference .header-socials {
        gap: 8px;
    }

    body.hero-reference .header-social-btn {
        width: 40px;
        height: 40px;
        font-size: 0.95rem;
        border-radius: 12px;
    }

    body.hero-reference #home.hero {
        padding-top: 130px;
        min-height: 82vh;
    }
}

@media (max-width: 768px) {
    .main-header,
    .mobile-top-menu-btn {
        display: none !important;
    }

    body.hero-reference #home.hero,
    #home.hero {
        min-height: 0 !important;
        height: auto !important;
        padding-top: 0 !important;
        padding-bottom: 0 !important;
        align-items: flex-start !important;
        justify-content: flex-start !important;
        overflow: visible !important;
        background: linear-gradient(180deg, #050224 0%, #04012a 56%, #0a0330 100%) !important;
    }

    #home .hero-content {
        margin-top: 0 !important;
        padding-top: 8px !important;
        padding-bottom: 6px !important;
        position: relative !important;
        z-index: 10 !important;
    }

    .hero-logo-top {
        display: flex !important;
        margin-top: 0 !important;
        margin-bottom: 8px;
    }

    .hero-logo-img {
        width: 92px;
        max-width: 34vw;
    }

    #home.hero::after {
        width: 82vw !important;
        height: 62vw !important;
        bottom: -30vw !important;
        opacity: 0.38 !important;
        filter: blur(18px) !important;
    }

    #home.hero::before,
    .hero::before {
        display: none !important;
    }

    #home #particles-js,
    #home #particles-js canvas {
        opacity: 0.42 !important;
    }
}

@media (max-width: 992px) {
    body.hero-reference #home.hero,
    #home.hero {
        background: linear-gradient(180deg, #050224 0%, #04012a 56%, #0a0330 100%) !important;
        background-image: none !important;
    }

    body.hero-reference #home.hero::before,
    #home.hero::before {
        display: none !important;
    }
}

@media (max-width: 768px) {
    body.hero-reference #home.hero,
    #home.hero {
        background-image: none !important;
    }

    #home #particles-js,
    #home #particles-js canvas {
        display: none !important;
    }
}

@media (max-width: 768px) {
    #home .hero-buttons {
        justify-content: center !important;
        align-items: center !important;
        position: relative !important;
        z-index: 15 !important;
        pointer-events: auto !important;
    }

    #home .hero-buttons .btn,
    #home .btn {
        width: auto !important;
        min-width: 190px !important;
        max-width: 220px !important;
        height: 46px !important;
        padding: 0 22px !important;
        margin: 0 auto !important;
        display: inline-flex !important;
        justify-content: center !important;
        align-items: center !important;
        position: relative !important;
        z-index: 20 !important;
        pointer-events: auto !important;
    }
}
