/* ============================================
   HERO SECTION - تصميم احترافي جديد
   Modern Hero with Animations & Effects
   ============================================ */

/* ========================================
   HERO CONTAINER
   ======================================== */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background: linear-gradient(135deg, #0f172a 0%, #1e3a8a 50%, #047857 100%);
}

/* ========================================
   ANIMATED BACKGROUND SLIDER
   ======================================== */
.hero-slider {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.hero-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 2s ease-in-out;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.hero-slide.active {
    opacity: 1;
    animation: kenBurns 20s ease-in-out infinite alternate;
}

/* Ken Burns Effect */
@keyframes kenBurns {
    0% {
        transform: scale(1) translate(0, 0);
    }

    50% {
        transform: scale(1.1) translate(-2%, -2%);
    }

    100% {
        transform: scale(1.15) translate(2%, 2%);
    }
}

/* ========================================
   GRADIENT OVERLAY WITH ANIMATION
   ======================================== */
.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg,
            rgba(15, 23, 42, 0.95) 0%,
            rgba(30, 58, 138, 0.90) 30%,
            rgb(33 35 34 / 90%) 70%,
            rgba(15, 23, 42, 0.95) 100%);
    background-size: 400% 400%;
    animation: gradientShift 15s ease infinite;
    z-index: 2;
}

@keyframes gradientShift {
    0% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }

    100% {
        background-position: 0% 50%;
    }
}

/* ========================================
   PARTICLES ANIMATION
   ======================================== */
.hero-particles {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 3;
    pointer-events: none;
}

.particle {
    position: absolute;
    width: 4px;
    height: 4px;
    background: rgba(245, 158, 11, 0.6);
    border-radius: 50%;
    animation: floatParticle 20s infinite;
}

.particle:nth-child(2n) {
    background: rgba(255, 255, 255, 0.4);
    width: 3px;
    height: 3px;
}

.particle:nth-child(3n) {
    background: rgba(4, 120, 87, 0.5);
    width: 5px;
    height: 5px;
}

@keyframes floatParticle {
    0% {
        transform: translateY(100vh) translateX(0) rotate(0deg);
        opacity: 0;
    }

    10% {
        opacity: 1;
    }

    90% {
        opacity: 1;
    }

    100% {
        transform: translateY(-100vh) translateX(100px) rotate(360deg);
        opacity: 0;
    }
}

/* ========================================
   GEOMETRIC SHAPES ANIMATION
   ======================================== */
.hero-shapes {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 4;
    pointer-events: none;
    overflow: hidden;
}

.shape {
    position: absolute;
    opacity: 0.1;
}

.shape-1 {
    top: 10%;
    right: 10%;
    width: 200px;
    height: 200px;
    border: 3px solid var(--accent-gold);
    border-radius: 50%;
    animation: rotate 30s linear infinite, pulse 4s ease-in-out infinite;
}

.shape-2 {
    bottom: 15%;
    left: 5%;
    width: 150px;
    height: 150px;
    border: 3px solid var(--primary-emerald);
    transform: rotate(45deg);
    animation: rotate 25s linear infinite reverse, float 6s ease-in-out infinite;
}

.shape-3 {
    top: 50%;
    left: 50%;
    width: 300px;
    height: 300px;
    border: 2px solid rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    animation: pulse 8s ease-in-out infinite;
}

@keyframes rotate {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}

/* ========================================
   HERO CONTENT
   ======================================== */
.hero-content {
    position: relative;
    z-index: 10;
    text-align: center;
    padding: var(--space-20) var(--space-4);
    width: 100%;
}

.hero-info {
    max-width: 1000px;
    margin: 0 auto;
}

/* ========================================
   ANIMATED LOGO
   ======================================== */
.info-logo {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-4);
    margin-bottom: var(--space-10);
    animation: fadeInDown 1s ease-out;
}

.info-logo .icon-circle,
.info-logo img {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    position: relative;
}

.info-logo .icon-circle {
    background: linear-gradient(135deg, var(--accent-gold) 0%, #d97706 100%);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: var(--text-5xl);
    color: var(--text-white);
    box-shadow: 0 20px 60px rgba(245, 158, 11, 0.5);
    animation: float 4s ease-in-out infinite, glow 3s ease-in-out infinite;
}

.info-logo .icon-circle::before {
    content: '';
    position: absolute;
    top: -10px;
    left: -10px;
    right: -10px;
    bottom: -10px;
    border-radius: 50%;
    border: 2px solid var(--accent-gold);
    opacity: 0.3;
    animation: ripple 3s ease-out infinite;
}

@keyframes ripple {
    0% {
        transform: scale(1);
        opacity: 0.3;
    }

    100% {
        transform: scale(1.3);
        opacity: 0;
    }
}

.info-logo img {
    object-fit: contain;
    filter: drop-shadow(0 20px 40px rgba(0, 0, 0, 0.4));
    animation: float 4s ease-in-out infinite;
}

.info-logo-text {
    font-size: clamp(var(--text-3xl), 6vw, var(--text-6xl));
    font-weight: var(--font-black);
    background: linear-gradient(135deg, #ffffff 0%, var(--accent-gold) 50%, #ffffff 100%);
    background-size: 200% auto;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: shimmerText 3s linear infinite, float 4s ease-in-out infinite;
    animation-delay: 0.2s;
}

@keyframes shimmerText {
    0% {
        background-position: 0% center;
    }

    100% {
        background-position: 200% center;
    }
}

/* ========================================
   HERO TITLE WITH SPLIT TEXT ANIMATION
   ======================================== */
.info-title {
    font-size: clamp(var(--text-4xl), 7vw, var(--text-7xl));
    font-weight: var(--font-black);
    color: var(--text-white);
    margin-bottom: var(--space-6);
    line-height: var(--leading-tight);
    text-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
    animation: fadeInUp 1s ease-out 0.3s backwards;
}

.info-title span {
    display: inline-block;
    background: linear-gradient(135deg, var(--accent-gold) 0%, #fbbf24 50%, var(--accent-gold) 100%);
    background-size: 200% auto;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: shimmerText 3s linear infinite;
    position: relative;
}

.info-title span::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, transparent, var(--accent-gold), transparent);
    animation: slideIn 2s ease-out 0.5s backwards;
}

@keyframes slideIn {
    from {
        transform: scaleX(0);
    }

    to {
        transform: scaleX(1);
    }
}

/* ========================================
   SUBTITLE WITH TYPING EFFECT
   ======================================== */
.info-subtitle {
    font-size: clamp(var(--text-xl), 4vw, var(--text-3xl));
    color: rgba(255, 255, 255, 0.95);
    margin-bottom: var(--space-8);
    font-weight: var(--font-medium);
    animation: fadeInUp 1s ease-out 0.5s backwards;
    position: relative;
    display: inline-block;
}

.info-subtitle::after {
    content: '|';
    color: var(--accent-gold);
    animation: blink 1s step-end infinite;
    margin-left: 5px;
}

@keyframes blink {

    0%,
    50% {
        opacity: 1;
    }

    51%,
    100% {
        opacity: 0;
    }
}

/* ========================================
   FEATURE CARDS (REPLACING TYPEWRITER)
   ======================================== */
.hero-features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: var(--space-6);
    margin: var(--space-10) 0;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

.hero-feature-card {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(20px);
    border: 2px solid rgba(255, 255, 255, 0.2);
    border-radius: var(--radius-2xl);
    padding: var(--space-6);
    transition: all var(--transition-base);
    animation: fadeInUp 1s ease-out backwards;
    position: relative;
    overflow: hidden;
}

.hero-feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.8s ease;
}

.hero-feature-card:hover::before {
    left: 100%;
}

.hero-feature-card:nth-child(1) {
    animation-delay: 0.7s;
}

.hero-feature-card:nth-child(2) {
    animation-delay: 0.9s;
}

.hero-feature-card:nth-child(3) {
    animation-delay: 1.1s;
}

.hero-feature-card:hover {
    transform: translateY(-10px) scale(1.05);
    background: rgba(255, 255, 255, 0.15);
    border-color: var(--accent-gold);
    box-shadow: 0 20px 60px rgba(245, 158, 11, 0.3);
}

.hero-feature-icon {
    font-size: var(--text-4xl);
    color: var(--accent-gold);
    margin-bottom: var(--space-3);
    display: block;
    animation: bounce 2s ease-in-out infinite;
}

.hero-feature-card:nth-child(2) .hero-feature-icon {
    animation-delay: 0.3s;
}

.hero-feature-card:nth-child(3) .hero-feature-icon {
    animation-delay: 0.6s;
}

.hero-feature-text {
    font-size: var(--text-lg);
    color: var(--text-white);
    font-weight: var(--font-semibold);
    line-height: var(--leading-relaxed);
}

/* ========================================
   ACTION BUTTONS
   ======================================== */
.info-actions {
    margin: var(--space-12) 0;
    animation: fadeInUp 1s ease-out 1.3s backwards;
}

.action-row {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: var(--space-6);
    flex-wrap: wrap;
}

.action-row .btn {
    position: relative;
    overflow: hidden;
}

.action-row .btn::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.action-row .btn:hover::after {
    width: 300px;
    height: 300px;
}

/* ========================================
   STATS BADGES
   ======================================== */
.info-badges {
    display: flex;
    justify-content: center;
    gap: var(--space-8);
    flex-wrap: wrap;
    margin-top: var(--space-12);
    animation: fadeInUp 1s ease-out 1.5s backwards;
}

.badge-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--space-2);
    padding: var(--space-5) var(--space-6);
    background: rgba(255, 255, 255, 0.12);
    backdrop-filter: blur(15px);
    border-radius: var(--radius-2xl);
    border: 2px solid rgba(255, 255, 255, 0.2);
    transition: all var(--transition-base);
    position: relative;
    overflow: hidden;
}

.badge-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, transparent, rgba(245, 158, 11, 0.2), transparent);
    transform: translateX(-100%);
    transition: transform 0.8s ease;
}

.badge-item:hover::before {
    transform: translateX(100%);
}

.badge-item:hover {
    background: rgba(255, 255, 255, 0.18);
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.3);
    border-color: var(--accent-gold);
}

.badge-item i {
    font-size: var(--text-4xl);
    color: var(--accent-gold);
    animation: pulse 2s ease-in-out infinite;
}

.badge-item:nth-child(2) i {
    animation-delay: 0.3s;
}

.badge-item:nth-child(3) i {
    animation-delay: 0.6s;
}

.badge-item span {
    color: var(--text-white);
    font-size: var(--text-base);
    font-weight: var(--font-bold);
    text-align: center;
}

/* ========================================
   SCROLL INDICATOR
   ======================================== */
.scroll-indicator {
    position: absolute;
    bottom: var(--space-10);
    left: 50%;
    transform: translateX(-50%);
    z-index: 10;
    animation: fadeInUp 1s ease-out 2s backwards;
}

.scroll-indicator-icon {
    width: 30px;
    height: 50px;
    border: 3px solid rgba(255, 255, 255, 0.5);
    border-radius: 25px;
    position: relative;
    cursor: pointer;
    transition: all var(--transition-base);
}

.scroll-indicator-icon:hover {
    border-color: var(--accent-gold);
}

.scroll-indicator-icon::before {
    content: '';
    position: absolute;
    top: 8px;
    left: 50%;
    transform: translateX(-50%);
    width: 6px;
    height: 10px;
    background: var(--accent-gold);
    border-radius: 3px;
    animation: scrollDown 2s ease-in-out infinite;
}

@keyframes scrollDown {

    0%,
    100% {
        top: 8px;
        opacity: 1;
    }

    50% {
        top: 25px;
        opacity: 0.3;
    }
}

.scroll-indicator-text {
    color: rgba(255, 255, 255, 0.7);
    font-size: var(--text-sm);
    margin-top: var(--space-2);
    text-align: center;
    font-weight: var(--font-medium);
}

/* ========================================
   RESPONSIVE DESIGN
   ======================================== */
@media (max-width: 768px) {
    .hero-features {
        grid-template-columns: 1fr;
        gap: var(--space-4);
    }

    .info-logo .icon-circle,
    .info-logo img {
        width: 80px;
        height: 80px;
    }

    .info-logo-text {
        font-size: var(--text-2xl);
    }

    .action-row {
        flex-direction: column;
        width: 100%;
    }

    .action-row .btn {
        width: 100%;
        max-width: 320px;
    }

    .info-badges {
        gap: var(--space-4);
    }

    .badge-item {
        padding: var(--space-3) var(--space-5);
    }

    .badge-item i {
        font-size: var(--text-2xl);
    }

    .shape-1,
    .shape-2,
    .shape-3 {
        opacity: 0.08;
        width: 120px;
        height: 120px;
    }

    .shape-3 {
        width: 180px;
        height: 180px;
    }
}

@media (max-width: 480px) {
    .hero-feature-card {
        padding: var(--space-4);
    }

    .hero-feature-icon {
        font-size: var(--text-3xl);
    }

    .hero-feature-text {
        font-size: var(--text-base);
    }
}