/* Premium Hero Section Styles */

/* Base Variables */
:root {
    --hero-primary: #000000;
    --hero-secondary: #ffffff;
    --hero-accent: #f3f4f6;
    --hero-text-light: #e5e7eb;
    --hero-text-dark: #374151;
    --glass-effect: rgba(255, 255, 255, 0.1);
    --shadow-light: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    --shadow-heavy: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
}

/* Premium Animations */
@keyframes float {
    0%, 100% {
        transform: translateY(0px) rotate(0deg);
        opacity: 0.8;
    }
    33% {
        transform: translateY(-10px) rotate(2deg);
        opacity: 1;
    }
    66% {
        transform: translateY(-5px) rotate(-1deg);
        opacity: 0.9;
    }
}

@keyframes sparkle {
    0%, 100% {
        opacity: 0.3;
        transform: scale(1) rotate(0deg);
    }
    25% {
        opacity: 0.8;
        transform: scale(1.2) rotate(90deg);
    }
    50% {
        opacity: 1;
        transform: scale(1.5) rotate(180deg);
    }
    75% {
        opacity: 0.8;
        transform: scale(1.2) rotate(270deg);
    }
}

@keyframes pulse-glow {
    0%, 100% {
        box-shadow: 0 0 5px rgba(255,255,255,0.3);
        transform: scale(1);
    }
    50% {
        box-shadow: 0 0 20px rgba(255,255,255,0.6), 0 0 30px rgba(255,255,255,0.4);
        transform: scale(1.02);
    }
}

@keyframes text-reveal {
    0% {
        opacity: 0;
        transform: translateY(30px) rotateX(90deg);
    }
    50% {
        opacity: 0.7;
        transform: translateY(15px) rotateX(45deg);
    }
    100% {
        opacity: 1;
        transform: translateY(0) rotateX(0deg);
    }
}

@keyframes gradient-flow {
    0%, 100% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
}

@keyframes card-entrance {
    0% {
        opacity: 0;
        transform: translateY(50px) scale(0.8) rotateY(45deg);
    }
    60% {
        opacity: 0.8;
        transform: translateY(20px) scale(1.05) rotateY(15deg);
    }
    100% {
        opacity: 1;
        transform: translateY(0) scale(1) rotateY(0deg);
    }
}

@keyframes button-magnetic {
    0% { transform: translateY(0) scale(1); }
    50% { transform: translateY(-2px) scale(1.02); }
    100% { transform: translateY(0) scale(1); }
}

/* Hero Section Styling */
.hero-section {
    position: relative;
    background: linear-gradient(135deg, #1a1a1a 0%, #000000 50%, #2d2d2d 100%);
    overflow: hidden;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background:
        radial-gradient(circle at 20% 80%, rgba(255,255,255,0.08) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(255,255,255,0.06) 0%, transparent 50%),
        radial-gradient(circle at 40% 40%, rgba(255,255,255,0.04) 0%, transparent 50%);
    pointer-events: none;
}

/* Typography Enhancements */
.hero-title {
    font-family: 'IBM Plex Sans Arabic', sans-serif;
    background: linear-gradient(135deg, #ffffff 0%, #f0f0f0 50%, #e0e0e0 100%);
    background-size: 200% 200%;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: gradient-flow 6s ease infinite, text-reveal 1.5s ease-out;
    filter: drop-shadow(0 4px 8px rgba(0,0,0,0.3));
}

.hero-subtitle {
    font-family: 'IBM Plex Sans Arabic', sans-serif;
    animation: text-reveal 1.8s ease-out 0.3s both;
}

/* Icon Container Styling */
.hero-icon-container {
    animation: pulse-glow 4s ease-in-out infinite, float 6s ease-in-out infinite;
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255,255,255,0.2);
}

.hero-icon-container::before {
    content: '';
    position: absolute;
    inset: -2px;
    padding: 2px;
    background: linear-gradient(45deg, rgba(255,255,255,0.3), rgba(255,255,255,0.1), rgba(255,255,255,0.3));
    border-radius: inherit;
    mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    mask-composite: subtract;
    animation: gradient-flow 3s linear infinite;
}

/* Button Enhancements */
.hero-btn-primary {
    position: relative;
    background: linear-gradient(135deg, #ffffff 0%, #f5f5f5 50%, #e8e8e8 100%);
    border: 2px solid rgba(255,255,255,0.3);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    overflow: hidden;
}

.hero-btn-primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.4), transparent);
    transition: left 0.6s ease;
}

.hero-btn-primary:hover::before {
    left: 100%;
}

.hero-btn-primary:hover {
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 20px 40px rgba(0,0,0,0.2);
    animation: button-magnetic 0.6s ease infinite;
}

.hero-btn-secondary {
    position: relative;
    backdrop-filter: blur(20px);
    border: 2px solid rgba(255,255,255,0.3);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.hero-btn-secondary:hover {
    background: rgba(255,255,255,0.95);
    color: #000000;
    border-color: rgba(255,255,255,0.8);
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 20px 40px rgba(255,255,255,0.1);
}

/* Stats Cards */
.hero-stats-card {
    backdrop-filter: blur(30px);
    background: rgba(255,255,255,0.08);
    border: 1px solid rgba(255,255,255,0.15);
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    animation: card-entrance 1s ease-out both;
}

.hero-stats-card:nth-child(1) { animation-delay: 0.2s; }
.hero-stats-card:nth-child(2) { animation-delay: 0.4s; }
.hero-stats-card:nth-child(3) { animation-delay: 0.6s; }

.hero-stats-card:hover {
    background: rgba(255,255,255,0.12);
    border-color: rgba(255,255,255,0.3);
    transform: translateY(-8px) scale(1.02);
    box-shadow:
        0 25px 50px rgba(0,0,0,0.2),
        0 0 30px rgba(255,255,255,0.1);
}

.hero-stats-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.4), transparent);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.hero-stats-card:hover::before {
    opacity: 1;
}

/* Number Animation */
.hero-number {
    font-family: 'Inter', 'IBM Plex Sans Arabic', sans-serif;
    font-weight: 800;
    background: linear-gradient(135deg, #ffffff 0%, #f0f0f0 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.3));
}

/* Floating Elements */
.floating-particle {
    position: absolute;
    pointer-events: none;
    border-radius: 50%;
    opacity: 0.6;
    animation: float 8s ease-in-out infinite;
}

.floating-particle:nth-child(even) {
    animation-direction: reverse;
    animation-duration: 10s;
}

/* Glass Morphism Effects */
.glass-effect {
    backdrop-filter: blur(20px) saturate(180%);
    background: rgba(255,255,255,0.08);
    border: 1px solid rgba(255,255,255,0.15);
}

/* Responsive Design */
@media (max-width: 768px) {
    .hero-title {
        font-size: 2.5rem !important;
        line-height: 1.2;
    }

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

    .hero-icon-container {
        width: 80px !important;
        height: 80px !important;
    }

    .hero-stats-card {
        margin-bottom: 1rem;
    }
}

/* Performance Optimizations */
.hero-section * {
    will-change: transform;
    backface-visibility: hidden;
    perspective: 1000px;
}

/* Smooth Animations */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}
