@import url('https://fonts.googleapis.com/css2?family=Cairo:wght@400;600;700;800&display=swap');

:root {
    --visvb-primary: #3b82f6;
    --visvb-primary-dark: #2563eb;
    --visvb-dark: #0f172a;
    --visvb-gray: #64748b;
    --visvb-bg: #f8fafc;
    --visvb-card-bg: #ffffff;
    --visvb-radius: 20px;
    --visvb-transition: 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.visvb-portfolio-wrapper {
    font-family: 'Cairo', sans-serif;
    background-color: var(--visvb-bg);
    padding: 100px 0;
    overflow: hidden;
}

.visvb-portfolio-container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 24px;
}

/* Header */
.visvb-section-header {
    text-align: center;
    margin-bottom: 50px;
}

.visvb-section-subtitle {
    color: var(--visvb-primary);
    font-weight: 800;
    letter-spacing: 1px;
    text-transform: uppercase;
    font-size: 1rem;
    display: inline-block;
    padding: 8px 16px;
    background: rgba(59, 130, 246, 0.1);
    border-radius: 30px;
    margin-bottom: 16px;
}

.visvb-section-title {
    font-size: 2.75rem;
    color: var(--visvb-dark);
    font-weight: 800;
    margin-bottom: 20px;
}

.visvb-section-description {
    color: var(--visvb-gray);
    font-size: 1.15rem;
    max-width: 650px;
    margin: 0 auto;
    line-height: 1.8;
}

/* Filters */
.visvb-filters {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 50px;
}

.visvb-filter-btn {
    background: transparent;
    border: 2px solid #e2e8f0;
    padding: 10px 24px;
    border-radius: 30px;
    font-family: inherit;
    font-weight: 600;
    color: var(--visvb-gray);
    cursor: pointer;
    transition: var(--visvb-transition);
    font-size: 1rem;
}

.visvb-filter-btn:hover,
.visvb-filter-btn.active {
    background: var(--visvb-primary);
    border-color: var(--visvb-primary);
    color: #ffffff;
    box-shadow: 0 10px 15px -3px rgba(59, 130, 246, 0.3);
}

/* Grid */
.visvb-portfolio-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
    gap: 32px;
    perspective: 1000px; /* لضرورة التأثير ثلاثي الأبعاد */
}

/* Card */
.visvb-card {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.6s ease, transform 0.6s ease, display 0.4s ease;
    will-change: transform, opacity;
}

.visvb-card.show {
    opacity: 1;
    transform: translateY(0);
}

.visvb-card.hide {
    display: none;
}

.visvb-card-inner {
    background: var(--visvb-card-bg);
    border-radius: var(--visvb-radius);
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
    height: 100%;
    display: flex;
    flex-direction: column;
    transform-style: preserve-3d;
    transition: box-shadow var(--visvb-transition);
}

.visvb-card-inner:hover {
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.15);
}

/* Image Wrapper */
.visvb-card-image-wrapper {
    position: relative;
    height: 280px;
    overflow: hidden;
}

.visvb-card-image-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top;
    transition: transform 0.7s cubic-bezier(0.4, 0, 0.2, 1);
}

.visvb-card-inner:hover .visvb-card-image-wrapper img {
    transform: scale(1.08);
}

/* Overlay & Button */
.visvb-card-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(15, 23, 42, 0.8), rgba(15, 23, 42, 0.2));
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    backdrop-filter: blur(3px);
    transition: var(--visvb-transition);
}

.visvb-card-inner:hover .visvb-card-overlay {
    opacity: 1;
}

.visvb-preview-btn {
    background: #ffffff;
    color: var(--visvb-dark);
    padding: 14px 28px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 700;
    font-size: 1.05rem;
    transform: translateY(30px);
    transition: var(--visvb-transition);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
}

.visvb-card-inner:hover .visvb-preview-btn {
    transform: translateY(0);
}

.visvb-preview-btn:hover {
    background: var(--visvb-primary);
    color: #ffffff;
}

/* Content */
.visvb-card-content {
    padding: 28px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
    transform: translateZ(30px); /* يبرز المحتوى للأمام في تأثير 3D */
}

.visvb-project-category {
    font-size: 0.9rem;
    color: var(--visvb-primary);
    font-weight: 700;
    margin-bottom: 10px;
}

.visvb-project-title {
    font-size: 1.4rem;
    color: var(--visvb-dark);
    text-decoration: none;
    font-weight: 800;
    margin-bottom: 20px;
    transition: color 0.3s ease;
}

.visvb-project-title:hover {
    color: var(--visvb-primary);
}

.visvb-project-link {
    margin-top: auto;
    color: var(--visvb-gray);
    text-decoration: none;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: var(--visvb-transition);
}

.visvb-project-link::after {
    content: "←";
    font-size: 1.2rem;
    transition: transform 0.3s ease;
}

.visvb-project-link:hover {
    color: var(--visvb-primary);
}

.visvb-project-link:hover::after {
    transform: translateX(-8px);
}

/* Responsive */
@media (max-width: 768px) {
    .visvb-section-title { font-size: 2.2rem; }
    .visvb-filters { gap: 8px; }
    .visvb-filter-btn { padding: 8px 18px; font-size: 0.9rem; }
    .visvb-portfolio-grid { grid-template-columns: 1fr; }
}


---------------------------------------------------------------------

/* --- تعريف المتغيرات الأساسية --- */
:root {
    --hero-primary: #2563eb;
    --hero-secondary: #1e40af;
    --hero-accent: #3b82f6;
    --hero-dark: #0f172a;
    --hero-gray: #475569;
    --hero-bg: #f8fafc;
    --hero-font: 'Cairo', sans-serif;
}

/* إعادة ضبط بسيطة */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

/* --- تنسيق القسم الرئيسي --- */
.visvb-global-hero {
    font-family: var(--hero-font);
    background: linear-gradient(135deg, #f0f9ff 0%, var(--hero-bg) 100%);
    padding: 100px 20px;
    overflow: hidden;
    position: relative;
    min-height: 80vh; /* إعطاء مساحة عمودية جيدة للقسم */
    display: flex;
    align-items: center;
}

/* عناصر خلفية جمالية (فقاعات ضبابية) */
.visvb-hero-blob {
    position: absolute;
    width: 500px;
    height: 500px;
    background: var(--hero-accent);
    opacity: 0.07;
    filter: blur(80px);
    border-radius: 50%;
    z-index: 0;
}

.blob-1 { 
    top: -200px; 
    right: -100px; 
}

.blob-2 { 
    bottom: -200px; 
    left: -100px; 
    background: #8b5cf6; 
}

.visvb-hero-container {
    max-width: 1280px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    gap: 60px;
    position: relative;
    z-index: 1;
}

/* --- تنسيق المحتوى النصي --- */
.visvb-hero-content {
    padding-left: 20px;
}

/* الشارة العلوية */
.visvb-hero-badge {
    display: inline-block;
    background: rgba(37, 99, 235, 0.1);
    color: var(--hero-primary);
    padding: 8px 20px;
    border-radius: 50px;
    font-weight: 700;
    font-size: 0.95rem;
    margin-bottom: 24px;
    letter-spacing: 0.5px;
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

/* العنوان الرئيسي */
.visvb-hero-title {
    font-size: 3.5rem;
    line-height: 1.2;
    color: var(--hero-dark);
    font-weight: 900;
    margin-bottom: 24px;
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94) 0.2s;
}

.visvb-title-highlight {
    color: var(--hero-primary);
    position: relative;
    white-space: nowrap;
}

.visvb-title-highlight::after {
    content: '';
    position: absolute;
    bottom: 10px;
    left: 0;
    width: 100%;
    height: 15px;
    background-color: rgba(59, 130, 246, 0.2);
    z-index: -1;
    border-radius: 4px;
    transform: skewX(-15deg);
}

/* الوصف */
.visvb-hero-description {
    font-size: 1.25rem;
    color: var(--hero-gray);
    line-height: 1.8;
    max-width: 600px;
    margin-bottom: 40px;
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94) 0.4s;
}

/* --- تنسيق زر الدعوة لاتخاذ إجراء --- */
.visvb-hero-cta-wrapper {
     opacity: 0;
     transform: translateY(30px);
     transition: all 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94) 0.6s;
}

.visvb-btn-global {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 18px 40px;
    background: linear-gradient(to right, var(--hero-primary), var(--hero-secondary));
    color: white;
    text-decoration: none;
    font-weight: 800;
    font-size: 1.1rem;
    border-radius: 12px;
    box-shadow: 0 10px 25px -5px rgba(37, 99, 235, 0.4);
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
}

.visvb-btn-global::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(120deg, transparent, rgba(255,255,255, 0.3), transparent);
    transition: all 0.6s ease;
}

.visvb-btn-global:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 35px -10px rgba(37, 99, 235, 0.5);
}

.visvb-btn-global:hover::before {
    left: 100%;
}

.btn-icon {
    transition: transform 0.3s ease;
}

.visvb-btn-global:hover .btn-icon {
    transform: translateX(-5px);
}

/* --- تنسيق الصورة --- */
.visvb-hero-image-wrapper {
    position: relative;
    opacity: 0;
    transform: translateX(-50px);
    transition: all 1s cubic-bezier(0.25, 0.46, 0.45, 0.94) 0.3s;
}

.visvb-hero-image {
    width: 100%;
    height: auto;
    display: block;
    filter: drop-shadow(0 25px 50px rgba(0,0,0,0.1));
    animation: floating 6s ease-in-out infinite;
}

@keyframes floating {
    0% { transform: translateY(0px); }
    50% { transform: translateY(-20px); }
    100% { transform: translateY(0px); }
}

/* --- كلاس التفعيل للأنيميشن عند الظهور --- */
.visvb-global-hero.is-visible .visvb-hero-badge,
.visvb-global-hero.is-visible .visvb-hero-title,
.visvb-global-hero.is-visible .visvb-hero-description,
.visvb-global-hero.is-visible .visvb-hero-cta-wrapper,
.visvb-global-hero.is-visible .visvb-hero-image-wrapper {
    opacity: 1;
    transform: translateY(0) translateX(0);
}

/* --- الاستجابة للشاشات الصغيرة --- */
@media (max-width: 992px) {
    .visvb-hero-container {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 40px;
    }
    
    .visvb-hero-content {
        padding-left: 0;
        order: 2;
    }
    
    .visvb-hero-image-wrapper {
        order: 1;
        max-width: 80%;
        margin: 0 auto;
        transform: translateY(50px); 
    }
    
    .visvb-hero-title {
        font-size: 2.5rem;
    }
    
    .visvb-hero-description {
        margin: 0 auto 30px auto;
    }
}