/* ============================================
   ENHANCED SERVICES HERO SECTION
   Modern, Dynamic, Eye-catching Design
   ============================================ */

.services-hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 50%, #0f172a 100%);
    padding: 120px 20px 80px;
}

/* ===== Background Effects ===== */
.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: 0;
}

/* Animated Gradient Orbs */
.gradient-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.3;
    animation: float 20s ease-in-out infinite;
}

.orb-1 {
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, #8B5CF6, transparent);
    top: -10%;
    left: -10%;
    animation-delay: 0s;
}

.orb-2 {
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, #F97316, transparent);
    top: 20%;
    right: -15%;
    animation-delay: 5s;
}

.orb-3 {
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, #10B981, transparent);
    bottom: -10%;
    left: 30%;
    animation-delay: 10s;
}

@keyframes float {
    0%, 100% { transform: translate(0, 0) scale(1); }
    25% { transform: translate(30px, -30px) scale(1.1); }
    50% { transform: translate(-20px, 20px) scale(0.9); }
    75% { transform: translate(20px, 30px) scale(1.05); }
}

/* Floating Geometric Shapes */
.floating-shape {
    position: absolute;
    border: 2px solid rgba(139, 92, 246, 0.3);
    animation: rotate 15s linear infinite;
}

.shape-1 {
    width: 80px;
    height: 80px;
    top: 15%;
    left: 10%;
    border-radius: 20px;
    animation-duration: 20s;
}

.shape-2 {
    width: 60px;
    height: 60px;
    top: 60%;
    right: 15%;
    border-radius: 50%;
    border-color: rgba(249, 115, 22, 0.3);
    animation-duration: 25s;
    animation-direction: reverse;
}

.shape-3 {
    width: 100px;
    height: 100px;
    bottom: 20%;
    left: 20%;
    clip-path: polygon(50% 0%, 0% 100%, 100% 100%);
    border-color: rgba(16, 185, 129, 0.3);
    animation-duration: 18s;
}

.shape-4 {
    width: 70px;
    height: 70px;
    top: 40%;
    right: 25%;
    transform: rotate(45deg);
    border-color: rgba(139, 92, 246, 0.3);
    animation-duration: 22s;
}

@keyframes rotate {
    from { transform: rotate(0deg) translateY(0); }
    to { transform: rotate(360deg) translateY(-20px); }
}

/* Grid Pattern */
.grid-pattern {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        linear-gradient(rgba(139, 92, 246, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(139, 92, 246, 0.03) 1px, transparent 1px);
    background-size: 50px 50px;
    opacity: 0.5;
}

/* ===== Hero Content ===== */
.hero-content {
    position: relative;
    z-index: 1;
    text-align: center;
    max-width: 1200px;
    margin: 0 auto;
}

/* Hero Badge */
.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(139, 92, 246, 0.1);
    border: 1px solid rgba(139, 92, 246, 0.3);
    padding: 8px 20px;
    border-radius: 50px;
    color: #a78bfa;
    font-size: 0.9rem;
    font-weight: 500;
    margin-bottom: 30px;
    animation: fadeInDown 0.8s ease-out;
    backdrop-filter: blur(10px);
}

.hero-badge i {
    color: #fbbf24;
    animation: sparkle 2s ease-in-out infinite;
}

@keyframes sparkle {
    0%, 100% { transform: scale(1) rotate(0deg); opacity: 1; }
    50% { transform: scale(1.2) rotate(180deg); opacity: 0.8; }
}

/* Hero Title */
.hero-title {
    font-size: 4rem;
    font-weight: 800;
    color: #fff;
    margin-bottom: 20px;
    line-height: 1.2;
    animation: fadeInUp 1s ease-out;
    letter-spacing: -1px;
}

.gradient-text {
    background: linear-gradient(135deg, #8B5CF6, #F97316, #10B981);
    background-size: 200% 200%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: gradientShift 5s ease infinite;
}

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

/* Hero Subtitle */
.hero-subtitle {
    font-size: 1.4rem;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 50px;
    font-weight: 300;
    animation: fadeInUp 1s ease-out 0.2s both;
}

/* ===== Enhanced USP Flow ===== */
.usp-flow {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    margin: 60px 0 50px;
    flex-wrap: wrap;
}

/* USP Cards */
.usp-card {
    position: relative;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    padding: 35px 30px;
    width: 280px;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    overflow: hidden;
    backdrop-filter: blur(10px);
    animation: fadeInUp 1s ease-out 0.4s both;
}

.usp-card:nth-child(3) { animation-delay: 0.5s; }
.usp-card:nth-child(5) { animation-delay: 0.6s; }

.usp-card:hover {
    transform: translateY(-10px);
    border-color: rgba(139, 92, 246, 0.5);
    box-shadow: 0 20px 60px rgba(139, 92, 246, 0.3);
    background: rgba(139, 92, 246, 0.05);
}

/* Card Shine Effect */
.card-shine {
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(45deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    transform: rotate(45deg);
    animation: shine 3s infinite;
}

@keyframes shine {
    0% { transform: translateX(-100%) rotate(45deg); }
    100% { transform: translateX(100%) rotate(45deg); }
}

/* Card Glow */
.card-glow {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: linear-gradient(90deg, transparent, #8B5CF6, transparent);
    opacity: 0;
    transition: opacity 0.4s;
}

.usp-card:hover .card-glow {
    opacity: 1;
}

/* USP Icon */
.usp-icon {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    background: linear-gradient(135deg, #8B5CF6, #6366f1);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    font-size: 1.8rem;
    color: #fff;
    transition: all 0.4s;
}

.usp-card:hover .usp-icon {
    transform: scale(1.1) rotate(10deg);
    box-shadow: 0 10px 30px rgba(139, 92, 246, 0.5);
}

.usp-card h3 {
    font-size: 1.3rem;
    font-weight: 700;
    color: #fff;
    margin-bottom: 12px;
}

.usp-card p {
    font-size: 0.95rem;
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.5;
}

/* Flow Connector */
.flow-connector {
    position: relative;
    display: flex;
    align-items: center;
    animation: fadeIn 1s ease-out 0.5s both;
}

.connector-line {
    width: 60px;
    height: 2px;
    background: linear-gradient(90deg, rgba(139, 92, 246, 0.3), rgba(139, 92, 246, 0.8), rgba(139, 92, 246, 0.3));
    position: relative;
}

.connector-line::after {
    content: '';
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 0;
    height: 0;
    border-left: 8px solid #8B5CF6;
    border-top: 5px solid transparent;
    border-bottom: 5px solid transparent;
}

.connector-dot {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    width: 8px;
    height: 8px;
    background: #8B5CF6;
    border-radius: 50%;
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { transform: translateX(-50%) scale(1); opacity: 1; }
    50% { transform: translateX(-50%) scale(1.5); opacity: 0.5; }
}

/* ===== Hero CTA Buttons ===== */
.hero-cta {
    display: flex;
    gap: 20px;
    justify-content: center;
    align-items: center;
    margin-top: 40px;
    flex-wrap: wrap;
    animation: fadeInUp 1s ease-out 0.7s both;
}

.btn-hero-primary,
.btn-hero-secondary {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 16px 40px;
    border-radius: 50px;
    font-size: 1.05rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.btn-hero-primary {
    background: linear-gradient(135deg, #8B5CF6, #6366f1);
    color: #fff;
    box-shadow: 0 10px 30px rgba(139, 92, 246, 0.3);
}

.btn-hero-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 40px rgba(139, 92, 246, 0.5);
}

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

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

.btn-hero-secondary {
    background: rgba(255, 255, 255, 0.05);
    color: #fff;
    border: 2px solid rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
}

.btn-hero-secondary:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(139, 92, 246, 0.5);
    transform: translateY(-3px);
}

/* ===== Scroll Indicator ===== */
.scroll-indicator {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    text-align: center;
    animation: fadeIn 2s ease-out 1s both;
}

.scroll-mouse {
    width: 30px;
    height: 50px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 20px;
    margin: 0 auto 10px;
    position: relative;
}

.scroll-wheel {
    width: 4px;
    height: 10px;
    background: rgba(139, 92, 246, 0.8);
    border-radius: 2px;
    position: absolute;
    top: 8px;
    left: 50%;
    transform: translateX(-50%);
    animation: scroll 2s ease-in-out infinite;
}

@keyframes scroll {
    0% { top: 8px; opacity: 1; }
    100% { top: 30px; opacity: 0; }
}

.scroll-indicator p {
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.85rem;
    letter-spacing: 1px;
    text-transform: uppercase;
}

/* ===== Animation Keyframes ===== */
@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* ===== Responsive Design ===== */
@media (max-width: 1024px) {
    .services-hero {
        min-height: auto;
        padding: 100px 20px 60px;
    }
    
    .hero-title {
        font-size: 3rem;
    }
    
    .usp-flow {
        flex-direction: column;
        gap: 30px;
    }
    
    .flow-connector {
        transform: rotate(90deg);
    }
    
    .usp-card {
        width: 100%;
        max-width: 350px;
    }
}

@media (max-width: 768px) {
    .hero-title {
        font-size: 2.5rem;
    }
    
    .hero-subtitle {
        font-size: 1.1rem;
    }
    
    .usp-card {
        padding: 30px 25px;
    }
    
    .hero-cta {
        flex-direction: column;
        width: 100%;
    }
    
    .btn-hero-primary,
    .btn-hero-secondary {
        width: 100%;
        max-width: 300px;
        justify-content: center;
    }
    
    .flow-connector {
        display: none;
    }
    
    /* Reduce orb sizes on mobile */
    .orb-1, .orb-2, .orb-3 {
        width: 300px;
        height: 300px;
    }
}
