/* Modern Hero Section - Redesigned */
.hero-modern {
    position: relative;
    min-height: 400px; /* Reduced from 500px */
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 25%, #f1f5f9 50%, #e0f2fe 75%, #f8fafc 100%);
    overflow: hidden;
    display: flex;
    align-items: center;
    padding: 2rem 0; /* Reduced from 3rem */
}

/* Animated Background Elements */
.hero-bg-animation {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    pointer-events: none;
}

/* Floating Shapes */
.floating-shape {
    position: absolute;
    opacity: 0.1;
    animation: float 8s ease-in-out infinite;
}

.shape-1 {
    top: 20%;
    left: 10%;
    width: 60px;
    height: 60px;
    background: linear-gradient(45deg, #3b82f6, #06b6d4);
    border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%;
    animation-delay: 0s;
}

.shape-2 {
    top: 60%;
    right: 15%;
    width: 80px;
    height: 80px;
    background: linear-gradient(45deg, #10b981, #06d6a0);
    border-radius: 50%;
    animation-delay: 2s;
}

.shape-3 {
    bottom: 30%;
    left: 20%;
    width: 40px;
    height: 40px;
    background: linear-gradient(45deg, #f59e0b, #f97316);
    transform: rotate(45deg);
    animation-delay: 4s;
}

.shape-4 {
    top: 40%;
    right: 30%;
    width: 50px;
    height: 50px;
    background: linear-gradient(45deg, #8b5cf6, #a855f7);
    border-radius: 20% 80% 20% 80% / 80% 20% 80% 20%;
    animation-delay: 6s;
}

/* Gradient Orbs */
.gradient-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(60px);
    opacity: 0.15;
    animation: pulse-orb 10s ease-in-out infinite alternate;
}

.orb-1 {
    top: -100px;
    right: -50px;
    width: 300px;
    height: 300px;
    background: linear-gradient(135deg, #3b82f6, #06b6d4);
    animation-delay: 0s;
}

.orb-2 {
    bottom: -100px;
    left: -50px;
    width: 250px;
    height: 250px;
    background: linear-gradient(135deg, #10b981, #06d6a0);
    animation-delay: 3s;
}

.orb-3 {
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 200px;
    height: 200px;
    background: linear-gradient(135deg, #f59e0b, #f97316);
    animation-delay: 6s;
}

/* Animations */
@keyframes float {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    25% { transform: translateY(-20px) rotate(5deg); }
    50% { transform: translateY(0px) rotate(0deg); }
    75% { transform: translateY(20px) rotate(-5deg); }
}

@keyframes pulse-orb {
    0% { opacity: 0.1; transform: scale(1); }
    50% { opacity: 0.2; transform: scale(1.1); }
    100% { opacity: 0.1; transform: scale(1); }
}

/* Content Container */
.hero-content-modern {
    position: relative;
    z-index: 2;
    text-align: center;
    max-width: 900px;
    margin: 0 auto;
    padding: 0 1rem;
}

/* Hero Badge */
.hero-badge {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(59, 130, 246, 0.2);
    border-radius: 50px;
    padding: 0.6rem 1.25rem; /* Reduced padding */
    margin-bottom: 1.5rem; /* Reduced from 2rem */
    font-size: 0.85rem; /* Slightly smaller */
    font-weight: 600;
    color: #1e293b;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    overflow: hidden;
}

.badge-glow {
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(59, 130, 246, 0.3), transparent);
    animation: badge-shine 3s ease-in-out infinite;
}

.hero-badge i {
    color: #f59e0b;
    font-size: 1rem;
}

@keyframes badge-shine {
    0% { left: -100%; }
    50%, 100% { left: 100%; }
}

/* Modern Title */
.hero-title-modern {
    font-size: clamp(2.2rem, 5.5vw, 3.5rem); /* Reduced from 2.5rem-4rem */
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 1.2rem; /* Reduced from 1.5rem */
    letter-spacing: -0.02em;
}

.title-line {
    display: block;
    color: #1e293b;
    margin-bottom: 0.2rem;
}

.title-highlight {
    display: block;
    background: linear-gradient(135deg, #3b82f6, #06b6d4, #10b981);
    background-size: 300% 300%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: gradient-shift 4s ease-in-out infinite;
    margin: 0.3rem 0;
}

@keyframes gradient-shift {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

/* Subtitle */
.hero-subtitle-modern {
    font-size: clamp(1rem, 2.2vw, 1.25rem); /* Reduced from 1.125rem-1.375rem */
    line-height: 1.6;
    color: #64748b;
    margin-bottom: 2rem; /* Reduced from 2.5rem */
    max-width: 650px; /* Reduced from 700px */
    margin-left: auto;
    margin-right: auto;
}

.highlight-text {
    color: #0f172a;
    font-weight: 600;
    background: linear-gradient(135deg, #fbbf24, #f59e0b);
    background-size: 100% 30%;
    background-position: 0 90%;
    background-repeat: no-repeat;
    padding: 0 0.2rem;
}

/* Modern Search */
.hero-search-modern {
    margin-bottom: 1.5rem; /* Reduced from 3rem since trust indicators are removed */
}

.search-container-modern {
    display: flex;
    max-width: 600px;
    margin: 0 auto;
    gap: 0.75rem;
    align-items: stretch;
}

.search-input-modern {
    position: relative;
    flex: 1;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border: 2px solid rgba(59, 130, 246, 0.2);
    border-radius: 16px;
    overflow: hidden;
    transition: all 0.3s ease;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
}

.search-input-modern:focus-within {
    border-color: #3b82f6;
    transform: translateY(-2px);
    box-shadow: 0 12px 40px rgba(59, 130, 246, 0.15);
}

.search-icon-modern {
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    color: #3b82f6;
    z-index: 1;
    font-size: 1.1rem;
}

.search-input-modern input {
    width: 100%;
    padding: 1rem 3rem 1rem 3rem;
    border: none;
    background: transparent;
    font-size: 1rem;
    color: #1e293b;
    outline: none;
}

.search-input-modern input::placeholder {
    color: #94a3b8;
}

.clear-search-btn-modern {
    position: absolute;
    right: 1rem;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: #64748b;
    cursor: pointer;
    padding: 0.25rem;
    border-radius: 50%;
    transition: all 0.2s ease;
}

.clear-search-btn-modern:hover {
    color: #ef4444;
    background: rgba(239, 68, 68, 0.1);
}

.search-btn-modern {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0 2rem;
    background: linear-gradient(135deg, #3b82f6, #06b6d4);
    color: white;
    border: none;
    border-radius: 16px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 8px 32px rgba(59, 130, 246, 0.3);
    position: relative;
    overflow: hidden;
}

.search-btn-modern:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 40px rgba(59, 130, 246, 0.4);
}

.search-btn-modern:active {
    transform: translateY(0);
}

.search-btn-modern::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.5s;
}

.search-btn-modern:hover::before {
    left: 100%;
}

/* Trust Indicators */
.hero-trust-modern {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
    max-width: 800px;
    margin: 0 auto;
}

.trust-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1.5rem;
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(148, 163, 184, 0.2);
    border-radius: 20px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
}

.trust-item:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    border-color: rgba(59, 130, 246, 0.3);
}

.trust-icon {
    width: 50px;
    height: 50px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    flex-shrink: 0;
}

.trust-item:nth-child(1) .trust-icon {
    background: linear-gradient(135deg, #3b82f6, #1d4ed8);
    color: white;
}

.trust-item:nth-child(2) .trust-icon {
    background: linear-gradient(135deg, #10b981, #047857);
    color: white;
}

.trust-item:nth-child(3) .trust-icon {
    background: linear-gradient(135deg, #f59e0b, #d97706);
    color: white;
}

.trust-item:nth-child(4) .trust-icon {
    background: linear-gradient(135deg, #8b5cf6, #7c3aed);
    color: white;
}

.trust-text {
    flex: 1;
}

.trust-number {
    font-size: 1.5rem;
    font-weight: 800;
    color: #1e293b;
    line-height: 1;
    margin-bottom: 0.25rem;
}

.trust-label {
    font-size: 0.875rem;
    color: #64748b;
    font-weight: 500;
}

/* Search Suggestions */
.search-suggestions-modern {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(148, 163, 184, 0.2);
    border-top: none;
    border-radius: 0 0 16px 16px;
    max-height: 300px;
    overflow-y: auto;
    z-index: 1000;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.15);
    display: none;
}

/* Responsive Design */
@media (max-width: 768px) {
    .hero-modern {
        min-height: 350px; /* Reduced from 450px */
        padding: 1.5rem 0; /* Reduced from 2rem */
    }

    .hero-badge {
        font-size: 0.75rem; /* Reduced from 0.8rem */
        padding: 0.4rem 0.9rem; /* Reduced */
        margin-bottom: 1.2rem; /* Reduced */
    }

    .hero-subtitle-modern {
        margin-bottom: 1.5rem; /* Reduced from 2rem */
    }

    .search-container-modern {
        flex-direction: column;
        gap: 0.75rem; /* Reduced from 1rem */
    }

    .search-btn-modern {
        justify-content: center;
        padding: 0.9rem; /* Reduced */
    }
}

@media (max-width: 480px) {
    .hero-modern {
        min-height: 300px; /* Reduced from 400px */
        padding: 1.2rem 0; /* Reduced */
    }

    .hero-badge {
        font-size: 0.7rem;
        padding: 0.3rem 0.8rem;
        margin-bottom: 1rem;
    }

    .hero-title-modern {
        margin-bottom: 1rem;
    }

    .hero-subtitle-modern {
        margin-bottom: 1.2rem;
    }

    .orb-1, .orb-2, .orb-3 {
        width: 150px;
        height: 150px;
    }

    .floating-shape {
        opacity: 0.05;
    }
}

/* Animation entrance effects */
.hero-badge,
.hero-title-modern,
.hero-subtitle-modern,
.hero-search-modern,
.hero-trust-modern {
    animation: fadeInUp 0.8s ease-out forwards;
}

.hero-title-modern {
    animation-delay: 0.1s;
}

.hero-subtitle-modern {
    animation-delay: 0.2s;
}

.hero-search-modern {
    animation-delay: 0.3s;
}

.hero-trust-modern {
    animation-delay: 0.4s;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}