/* تنسيقات قسم الـ hero المحسن */
:root {
    --hero-bg: linear-gradient(135deg, #f8f9fc, #ffffff);
    --hero-bg-dark: linear-gradient(135deg, #1a1a1a, #252525);
    --hero-overlay: radial-gradient(ellipse at bottom right, rgba(52, 84, 209, 0.08) 0%, transparent 70%), 
                    radial-gradient(ellipse at top left, rgba(52, 199, 89, 0.08) 0%, transparent 70%);
    --hero-overlay-dark: radial-gradient(ellipse at bottom right, rgba(52, 84, 209, 0.15) 0%, transparent 70%), 
                        radial-gradient(ellipse at top left, rgba(52, 199, 89, 0.15) 0%, transparent 70%);
    --hero-text-color: #333333;
    --hero-text-color-dark: #f0f0f0;
    --hero-secondary-text: #555555;
    --hero-secondary-text-dark: #cccccc;
    --hero-highlight-bg: rgba(52, 84, 209, 0.2);
    --hero-highlight-bg-dark: rgba(52, 84, 209, 0.3);
    --hero-stat-bg: rgba(52, 84, 209, 0.1);
    --hero-stat-bg-dark: rgba(52, 84, 209, 0.2);
    --hero-transition: all 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

/* تنسيقات قسم الـ hero الرئيسي */
.hero-section {
    position: relative;
    min-height: 90vh;
    display: flex;
    align-items: center;
    background: var(--hero-bg);
    overflow: hidden;
    padding: 100px 0;
    box-shadow: inset 0 -10px 30px -10px rgba(0, 0, 0, 0.05);
}

/* خلفية القسم */
.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('../images/subtle-pattern.svg');
    background-size: 200px;
    background-repeat: repeat;
    opacity: 0.1;
    z-index: 1;
    animation: subtleFloat 60s linear infinite;
}

/* طبقة التدرج اللوني */
.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--hero-overlay);
    z-index: 1;
    pointer-events: none;
}

/* تنسيقات عناصر الخلفية */
.hero-shape {
    position: absolute;
    opacity: 0.4;
    z-index: 1;
    pointer-events: none;
    background-size: contain;
    background-position: center;
    background-repeat: no-repeat;
    filter: blur(0.5px);
    transition: opacity 0.5s ease, transform 0.5s ease;
}

.hero-shape-1 {
    top: 10%;
    right: 10%;
    width: 300px;
    height: 300px;
    background-image: url('../images/science-shapes.svg#atom-shape');
    animation: floatAnimation 15s ease-in-out infinite alternate;
    transform-origin: center;
    mask-image: url('../images/science-shapes.svg#atom-shape');
    -webkit-mask-image: url('../images/science-shapes.svg#atom-shape');
    background: linear-gradient(135deg, var(--primary-color), transparent);
}

.hero-shape-2 {
    bottom: 10%;
    left: 5%;
    width: 250px;
    height: 250px;
    background-image: url('../images/science-shapes.svg#dna-shape');
    animation: floatAnimation 20s ease-in-out infinite alternate-reverse;
    transform-origin: center;
    mask-image: url('../images/science-shapes.svg#dna-shape');
    -webkit-mask-image: url('../images/science-shapes.svg#dna-shape');
    background: linear-gradient(135deg, var(--secondary-color), transparent);
}

.hero-shape-3 {
    top: 30%;
    left: 15%;
    width: 200px;
    height: 200px;
    background-image: url('../images/science-shapes.svg#flask-shape');
    animation: floatAnimation 25s ease-in-out infinite alternate;
    transform-origin: center;
    mask-image: url('../images/science-shapes.svg#flask-shape');
    -webkit-mask-image: url('../images/science-shapes.svg#flask-shape');
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
}

.hero-shape-4 {
    top: 15%;
    left: 45%;
    width: 180px;
    height: 180px;
    background-image: url('../images/science-shapes.svg#galaxy-shape');
    animation: floatAnimation 22s ease-in-out infinite alternate-reverse;
    transform-origin: center;
    mask-image: url('../images/science-shapes.svg#galaxy-shape');
    -webkit-mask-image: url('../images/science-shapes.svg#galaxy-shape');
    background: linear-gradient(135deg, #9B59B6, var(--primary-color));
    opacity: 0.3;
}

.hero-shape-5 {
    bottom: 25%;
    right: 15%;
    width: 220px;
    height: 220px;
    background-image: url('../images/science-shapes.svg#microscope-shape');
    animation: floatAnimation 18s ease-in-out infinite alternate;
    transform-origin: center;
    mask-image: url('../images/science-shapes.svg#microscope-shape');
    -webkit-mask-image: url('../images/science-shapes.svg#microscope-shape');
    background: linear-gradient(135deg, #27AE60, var(--primary-color));
    opacity: 0.35;
}

.hero-shape-6 {
    top: 40%;
    right: 25%;
    width: 280px;
    height: 120px;
    background-image: url('../images/science-shapes.svg#math-equation-shape');
    animation: floatAnimation 24s ease-in-out infinite alternate-reverse;
    transform-origin: center;
    mask-image: url('../images/science-shapes.svg#math-equation-shape');
    -webkit-mask-image: url('../images/science-shapes.svg#math-equation-shape');
    background: linear-gradient(135deg, #F1C40F, var(--primary-color));
    opacity: 0.25;
}

.hero-shape-7 {
    top: 60%;
    left: 10%;
    width: 240px;
    height: 180px;
    background-image: url('../images/science-shapes.svg#telescope-shape');
    animation: floatAnimation 19s ease-in-out infinite alternate;
    transform-origin: center;
    mask-image: url('../images/science-shapes.svg#telescope-shape');
    -webkit-mask-image: url('../images/science-shapes.svg#telescope-shape');
    background: linear-gradient(135deg, #9B59B6, #3454D1);
    opacity: 0.3;
}

.hero-shape-8 {
    bottom: 15%;
    right: 40%;
    width: 200px;
    height: 200px;
    background-image: url('../images/science-shapes.svg#earth-shape');
    animation: floatAnimation 21s ease-in-out infinite alternate-reverse;
    transform-origin: center;
    mask-image: url('../images/science-shapes.svg#earth-shape');
    -webkit-mask-image: url('../images/science-shapes.svg#earth-shape');
    background: linear-gradient(135deg, #16A085, var(--primary-color));
    opacity: 0.35;
}

/* الأشكال العلمية الجديدة */
.hero-shape-9 {
    top: 20%;
    right: 55%;
    width: 180px;
    height: 180px;
    background-image: url('../images/science-shapes.svg#cell-shape');
    animation: floatAnimation 17s ease-in-out infinite alternate;
    transform-origin: center;
    mask-image: url('../images/science-shapes.svg#cell-shape');
    -webkit-mask-image: url('../images/science-shapes.svg#cell-shape');
    background: linear-gradient(135deg, #FF9FF3, var(--primary-color));
    opacity: 0.35;
}

.hero-shape-10 {
    bottom: 30%;
    left: 35%;
    width: 160px;
    height: 160px;
    background-image: url('../images/science-shapes.svg#chromosome-shape');
    animation: floatAnimation 23s ease-in-out infinite alternate-reverse;
    transform-origin: center;
    mask-image: url('../images/science-shapes.svg#chromosome-shape');
    -webkit-mask-image: url('../images/science-shapes.svg#chromosome-shape');
    background: linear-gradient(135deg, #34C759, var(--primary-color));
    opacity: 0.3;
}

.hero-shape-11 {
    top: 50%;
    right: 5%;
    width: 200px;
    height: 200px;
    background-image: url('../images/science-shapes.svg#brain-shape');
    animation: floatAnimation 26s ease-in-out infinite alternate;
    transform-origin: center;
    mask-image: url('../images/science-shapes.svg#brain-shape');
    -webkit-mask-image: url('../images/science-shapes.svg#brain-shape');
    background: linear-gradient(135deg, #FD7272, var(--primary-color));
    opacity: 0.3;
}

.hero-shape-12 {
    top: 65%;
    left: 25%;
    width: 170px;
    height: 170px;
    background-image: url('../images/science-shapes.svg#prism-shape');
    animation: floatAnimation 16s ease-in-out infinite alternate-reverse;
    transform-origin: center;
    mask-image: url('../images/science-shapes.svg#prism-shape');
    -webkit-mask-image: url('../images/science-shapes.svg#prism-shape');
    background: linear-gradient(135deg, #1B9CFC, var(--primary-color));
    opacity: 0.35;
}

.hero-shape-13 {
    bottom: 40%;
    right: 60%;
    width: 190px;
    height: 190px;
    background-image: url('../images/science-shapes.svg#robot-shape');
    animation: floatAnimation 22s ease-in-out infinite alternate;
    transform-origin: center;
    mask-image: url('../images/science-shapes.svg#robot-shape');
    -webkit-mask-image: url('../images/science-shapes.svg#robot-shape');
    background: linear-gradient(135deg, #25CCF7, var(--primary-color));
    opacity: 0.3;
}

/* تنسيقات المحتوى */
.hero-content {
    position: relative;
    z-index: 10;
    padding: 20px 0;
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 1s ease forwards;
    animation-delay: 0.3s;
}

/* تنسيقات الصورة */
.hero-image {
    position: relative;
    z-index: 10;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 1s ease forwards;
    animation-delay: 0.6s;
}

.hero-image::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at center, rgba(52, 84, 209, 0.1), transparent 70%);
    border-radius: 50%;
    z-index: -1;
    animation: pulse 3s ease-in-out infinite;
}

.hero-image img {
    max-width: 100%;
    border-radius: 20px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    transition: var(--hero-transition);
    transform: perspective(1000px) rotateY(0deg);
    filter: drop-shadow(0 10px 20px rgba(52, 84, 209, 0.2));
}

.hero-image:hover img {
    transform: perspective(1000px) rotateY(5deg) translateY(-10px);
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.15);
}

/* تنسيقات العنوان */
.hero-title {
    font-size: 3.2rem;
    font-weight: 800;
    margin-bottom: 1.5rem;
    color: var(--hero-text-color);
    line-height: 1.2;
    position: relative;
}

.highlight-text {
    color: var(--primary-color);
    position: relative;
    display: inline-block;
    z-index: 1;
}

.highlight-text::after {
    content: '';
    position: absolute;
    bottom: 5px;
    left: 0;
    width: 100%;
    height: 12px;
    background-color: var(--hero-highlight-bg);
    border-radius: 6px;
    z-index: -1;
    transform: scaleX(0.8);
    transform-origin: left;
    transition: var(--hero-transition);
}

.hero-content:hover .highlight-text::after {
    transform: scaleX(1.1);
    background-color: var(--hero-highlight-bg);
}

/* تنسيقات الوصف */
.hero-description {
    font-size: 1.3rem;
    line-height: 1.8;
    color: var(--hero-secondary-text);
    margin-bottom: 2.5rem;
    max-width: 600px;
    position: relative;
    padding-right: 15px;
    border-right: 3px solid var(--primary-color);
}

/* تنسيقات الإحصائيات */
.quick-stats {
    display: flex;
    gap: 2.5rem;
    margin-bottom: 2.5rem;
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 1s ease forwards;
    animation-delay: 0.9s;
}

.stat-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    transition: var(--hero-transition);
}

.stat-item:hover {
    transform: translateY(-5px);
}

.stat-icon {
    width: 60px;
    height: 60px;
    border-radius: 15px;
    background-color: var(--hero-stat-bg);
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1.5rem;
    color: var(--primary-color);
    transition: var(--hero-transition);
    box-shadow: 0 5px 15px rgba(52, 84, 209, 0.15);
    position: relative;
    overflow: hidden;
}

.stat-icon::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: conic-gradient(transparent, rgba(255, 255, 255, 0.3), transparent 30%);
    animation: rotate 4s linear infinite;
}

.stat-item:hover .stat-icon {
    background-color: var(--primary-color);
    color: white;
    transform: rotate(10deg);
}

.stat-info {
    display: flex;
    flex-direction: column;
}
    
.stat-number {
    font-size: 2rem;
    font-weight: 800;
    color: var(--hero-text-color);
    line-height: 1;
    margin-bottom: 5px;
}

.stat-title {
    font-size: 1rem;
    color: var(--hero-secondary-text);
    font-weight: 600;
}

/* تنسيقات الأزرار */
.hero-actions {
    display: flex;
    gap: 1.5rem;
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 1s ease forwards;
    animation-delay: 1.2s;
}

.hero-btn {
    padding: 15px 30px;
    border-radius: 50px;
    font-size: 1.1rem;
    font-weight: 700;
    transition: var(--hero-transition);
    display: inline-flex;
    align-items: center;
    gap: 10px;
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.hero-btn-primary {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    color: white;
    box-shadow: 0 10px 20px rgba(52, 84, 209, 0.3);
}

.hero-btn-outline {
    background: transparent;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
}

.hero-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--secondary-color), var(--primary-color));
    opacity: 0;
    z-index: -1;
    transition: var(--hero-transition);
}

.hero-btn:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(52, 84, 209, 0.4);
}

.hero-btn:hover::before {
    opacity: 1;
}

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

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

/* تنسيقات للوضع الداكن */
[data-theme="dark"] .hero-section {
    background: var(--hero-bg-dark);
}

[data-theme="dark"] .hero-section::before {
    background: var(--hero-overlay-dark);
}

[data-theme="dark"] .hero-title {
    color: var(--hero-text-color-dark);
}

[data-theme="dark"] .hero-description {
    color: var(--hero-secondary-text-dark);
}

[data-theme="dark"] .stat-number {
    color: var(--hero-text-color-dark);
}

[data-theme="dark"] .stat-title {
    color: var(--hero-secondary-text-dark);
}

[data-theme="dark"] .stat-icon {
    background-color: var(--hero-stat-bg-dark);
}

[data-theme="dark"] .highlight-text::after {
    background-color: var(--hero-highlight-bg-dark);
}

[data-theme="dark"] .hero-btn-outline {
    border-color: var(--primary-color);
    color: var(--hero-text-color-dark);
}

/* تأثيرات حركية */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes pulse {
    0% {
        transform: scale(0.95);
        opacity: 0.7;
    }
    50% {
        transform: scale(1.05);
        opacity: 0.9;
    }
    100% {
        transform: scale(0.95);
        opacity: 0.7;
    }
}

@keyframes floatAnimation {
    0% {
        transform: translate(0, 0) rotate(0deg);
    }
    50% {
        transform: translate(15px, -15px) rotate(5deg);
    }
    100% {
        transform: translate(0, 0) rotate(0deg);
    }
}

@keyframes rotate {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

@keyframes subtleFloat {
    0% {
        background-position: 0 0;
    }
    100% {
        background-position: 100px 100px;
    }
}

/* تنسيقات متجاوبة */
@media (max-width: 992px) {
    .hero-section {
        padding: 80px 0;
    }
    
    .hero-title {
        font-size: 2.6rem;
    }
    
    .hero-description {
        font-size: 1.2rem;
    }
    
    .quick-stats {
        gap: 1.5rem;
    }
    
    .stat-icon {
        width: 50px;
        height: 50px;
        font-size: 1.3rem;
    }
    
    .stat-number {
        font-size: 1.8rem;
    }
    
    .hero-btn {
        padding: 12px 25px;
        font-size: 1rem;
    }
    
    .hero-shape-9, .hero-shape-10, .hero-shape-11, .hero-shape-12, .hero-shape-13 {
        transform: scale(0.7);
        opacity: 0.25;
    }
}

@media (max-width: 768px) {
    .hero-section {
        padding: 60px 0;
        min-height: auto;
    }

    .hero-content {
        text-align: center;
        padding: 20px 0 40px;
    }

    .hero-title {
        font-size: 2.2rem;
    }

    .hero-description {
        font-size: 1.1rem;
        margin-left: auto;
        margin-right: auto;
        border-right: none;
        border-bottom: 3px solid var(--primary-color);
        padding-right: 0;
        padding-bottom: 15px;
    }

    .quick-stats {
        justify-content: center;
        flex-wrap: wrap;
    }
    
    .hero-actions {
        justify-content: center;
    }

    .hero-image {
        margin-bottom: 30px;
    }
    
    .hero-shape-1 {
        width: 200px;
        height: 200px;
    }
    
    .hero-shape-2 {
        width: 180px;
        height: 180px;
    }
    
    .hero-shape-3 {
        width: 100px;
        height: 100px;
    }
    
    .hero-shape-9 {
        width: 140px;
        height: 140px;
    }
    
    .hero-shape-10, .hero-shape-11, .hero-shape-12, .hero-shape-13 {
        display: none; /* إخفاء الأشكال الإضافية في الشاشات الصغيرة */
    }
}

@media (max-width: 576px) {
    .hero-title {
        font-size: 1.9rem;
    }

    .hero-description {
        font-size: 1rem;
    }

    .quick-stats {
        gap: 1rem;
        flex-direction: column;
        align-items: center;
    }

    .stat-icon {
        width: 45px;
        height: 45px;
        font-size: 1.1rem;
    }

    .stat-number {
        font-size: 1.6rem;
    }

    .stat-title {
        font-size: 0.9rem;
    }

    .hero-actions {
        flex-direction: column;
        gap: 1rem;
    }
    
    .hero-btn {
        width: 100%;
        justify-content: center;
    }
    
    .hero-shape-9 {
        opacity: 0.2;
    }
} 