/**
 * Modern Hero Section V2
 * Enhanced mentorship landing page with mobile responsiveness
 */

/* ========================================================================
   Hero Section Base
   ======================================================================== */

.hero-section-modern-v2 {
    position: relative;
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 50%, #f8f9fa 100%);
    padding: 8rem 0 10rem;
    overflow: hidden;
    min-height: 90vh;
    display: flex;
    align-items: center;
}

/* Animated Background Pattern */
.hero-background-pattern {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: 
        radial-gradient(circle at 20% 30%, rgba(79, 70, 229, 0.05) 0%, transparent 50%),
        radial-gradient(circle at 80% 70%, rgba(124, 58, 237, 0.05) 0%, transparent 50%),
        radial-gradient(circle at 50% 50%, rgba(236, 72, 153, 0.03) 0%, transparent 70%);
    animation: pattern-float 20s ease-in-out infinite;
    pointer-events: none;
}

@keyframes pattern-float {
    0%, 100% {
        transform: translateY(0) scale(1);
    }
    50% {
        transform: translateY(-20px) scale(1.05);
    }
}

/* ========================================================================
   Floating Mentor Avatars
   ======================================================================== */

.hero-mentors-imgs-modern {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    pointer-events: none;
    z-index: 1;
}

.mentor-avatar-float {
    position: absolute;
    border-radius: 50%;
    background-size: cover;
    background-position: center;
    border: 4px solid white;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    animation: float-gentle 6s ease-in-out infinite;
}

.mentor-avatar-float::before {
    content: '';
    position: absolute;
    inset: -4px;
    border-radius: 50%;
    background: linear-gradient(135deg, #4F46E5, #7C3AED);
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: -1;
}

.mentor-avatar-float:hover::before {
    opacity: 0.2;
}

/* Mentor Positions */
.mentor-float-1 {
    width: 70px;
    height: 70px;
    top: 10%;
    left: 8%;
    animation-delay: 0s;
}

.mentor-float-2 {
    width: 90px;
    height: 90px;
    top: 25%;
    left: 15%;
    animation-delay: 1s;
}

.mentor-float-3 {
    width: 120px;
    height: 120px;
    top: 15%;
    right: 12%;
    animation-delay: 0.5s;
    border-width: 5px;
    box-shadow: 0 15px 40px rgba(79, 70, 229, 0.3);
}

.mentor-float-4 {
    width: 80px;
    height: 80px;
    bottom: 25%;
    left: 10%;
    animation-delay: 1.5s;
}

.mentor-float-5 {
    width: 70px;
    height: 70px;
    top: 40%;
    right: 8%;
    animation-delay: 2s;
}

@keyframes float-gentle {
    0%, 100% {
        transform: translateY(0) rotate(0deg);
    }
    25% {
        transform: translateY(-15px) rotate(2deg);
    }
    50% {
        transform: translateY(-10px) rotate(-2deg);
    }
    75% {
        transform: translateY(-20px) rotate(1deg);
    }
}

/* Avatar Badge */
.avatar-badge {
    position: absolute;
    width: 16px;
    height: 16px;
    background: #10b981;
    border: 3px solid white;
    border-radius: 50%;
    bottom: 5px;
    right: 5px;
}

.pulse-badge {
    animation: pulse-ring 2s ease-in-out infinite;
}

@keyframes pulse-ring {
    0% {
        box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7);
    }
    70% {
        box-shadow: 0 0 0 10px rgba(16, 185, 129, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(16, 185, 129, 0);
    }
}

/* ========================================================================
   Floating Icons
   ======================================================================== */

.floating-icon {
    position: absolute;
    width: 50px;
    height: 50px;
    background: white;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
    animation: float-icon 4s ease-in-out infinite;
}

.floating-icon i {
    font-size: 24px;
}

.floating-icon.icon-1 {
    top: 35%;
    left: 5%;
    animation-delay: 0s;
    color: #f59e0b;
}

.floating-icon.icon-2 {
    bottom: 30%;
    right: 6%;
    animation-delay: 1s;
    color: #fbbf24;
}

.floating-icon.icon-3 {
    top: 50%;
    left: 12%;
    animation-delay: 2s;
    color: #ec4899;
}

@keyframes float-icon {
    0%, 100% {
        transform: translateY(0) rotate(0deg);
    }
    50% {
        transform: translateY(-20px) rotate(10deg);
    }
}

/* ========================================================================
   Modern Tab Navigation
   ======================================================================== */

.hero-tabs-modern {
    position: relative;
    z-index: 10;
    margin-bottom: 3.5rem;
    display: flex;
    justify-content: center;
}

.hero-nav-pills {
    display: inline-flex;
    background: rgba(173, 190, 238, 0.95);
    backdrop-filter: blur(12px);
    padding: 0.625rem;
    border-radius: 20px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.12), 0 2px 8px rgba(0, 0, 0, 0.08);
    gap: 0.5rem;
    border: 2px solid rgba(255, 255, 255, 0.8);
    position: relative;
}

.hero-nav-pills::before {
    content: '';
    position: absolute;
    inset: -2px;
    background: linear-gradient(135deg, rgba(79, 70, 229, 0.1), rgba(124, 58, 237, 0.1));
    border-radius: 20px;
    z-index: -1;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.hero-nav-pills:hover::before {
    opacity: 1;
}

.hero-nav-pills .nav-item {
    margin: 0;
}

.hero-nav-pills .nav-link {
    display: flex;
    align-items: center;
    padding: 1rem 2.25rem;
    border-radius: 16px;
    font-weight: 600;
    font-size: 1rem;
    color: #374151 !important;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: 2px solid #E5E7EB;
    background: rgba(0, 128, 0, 0.712) !important;
    position: relative;
    overflow: hidden;
    letter-spacing: -0.01em;
}

.hero-nav-pills .nav-link::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(79, 70, 229, 0.05), rgba(124, 58, 237, 0.05));
    opacity: 0;
    transition: opacity 0.3s ease;
}

.hero-nav-pills .nav-link i {
    font-size: 1.375rem;
    transition: transform 0.3s ease;
}

.hero-nav-pills .nav-link span {
    position: relative;
    z-index: 1;
}

.hero-nav-pills .nav-link:hover {
    background: rgba(255, 0, 0, 0.432) !important;
    color: #4F46E5 !important;
    transform: translateY(-2px);
    border-color: #D1D5DB;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.hero-nav-pills .nav-link:hover::before {
    opacity: 1;
}

.hero-nav-pills .nav-link:hover i {
    transform: scale(1.1) rotate(5deg);
}

.hero-nav-pills .nav-link.active {
    background: linear-gradient(135deg, #4F46E5 0%, #7C3AED 100%) !important;
    color: #ffffff !important;
    box-shadow: 0 6px 20px rgba(79, 70, 229, 0.4), 0 2px 8px rgba(79, 70, 229, 0.2);
    transform: translateY(-2px);
    border-color: transparent;
}

.hero-nav-pills .nav-link.active::before {
    opacity: 0;
}

.hero-nav-pills .nav-link.active i {
    color: #ffffff;
    animation: icon-pulse 2s ease-in-out infinite;
}

@keyframes icon-pulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
}

/* ========================================================================
   Hero Content
   ======================================================================== */

.hero-tab-content {
    position: relative;
    z-index: 10;
}

.hero-content-wrapper {
    max-width: 920px;
    margin: 0 auto;
    text-align: center;
    padding: 0 1.5rem;
}

.hero-badge {
    display: flex;
    justify-content: center;
    margin-bottom: 2rem;
}

.hero-badge .badge-modern {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    font-size: 0.9375rem;
    font-weight: 600;
    border-radius: 50px;
    background: linear-gradient(135deg, rgba(79, 70, 229, 0.1), rgba(124, 58, 237, 0.1));
    color: #4F46E5;
    border: 2px solid rgba(79, 70, 229, 0.2);
    box-shadow: 0 4px 12px rgba(79, 70, 229, 0.15);
    animation: badge-float 3s ease-in-out infinite;
    transition: all 0.3s ease;
}

.hero-badge .badge-modern:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(79, 70, 229, 0.25);
    border-color: rgba(79, 70, 229, 0.4);
}

@keyframes badge-float {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-8px);
    }
}

.hero-title-v2 {
    font-size: clamp(2.75rem, 5.5vw, 5rem);
    font-weight: 900;
    color: #111827;
    line-height: 1.1;
    margin-bottom: 1.75rem;
    background: linear-gradient(135deg, #111827 0%, #4F46E5 50%, #7C3AED 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: -0.02em;
}

.hero-subtitle-v2 {
    font-size: clamp(1.125rem, 2.2vw, 1.5rem);
    color: #4B5563;
    line-height: 1.75;
    max-width: 720px;
    margin: 0 auto;
    font-weight: 500;
    letter-spacing: -0.01em;
}

/* ========================================================================
   Hero Stats
   ======================================================================== */

.hero-stats {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 3rem;
    flex-wrap: wrap;
    margin-top: 3.5rem;
    padding: 2rem 1rem;
    background: linear-gradient(135deg, rgba(79, 70, 229, 0.03), rgba(124, 58, 237, 0.03));
    border-radius: 20px;
    border: 2px solid rgba(79, 70, 229, 0.1);
}

.stat-item {
    text-align: center;
    transition: transform 0.3s ease;
}

.stat-item:hover {
    transform: translateY(-5px);
}

.stat-number {
    font-size: 2.75rem;
    font-weight: 900;
    background: linear-gradient(135deg, #4F46E5 0%, #7C3AED 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1;
    letter-spacing: -0.03em;
    display: block;
    margin-bottom: 0.625rem;
}

.stat-label {
    font-size: 0.9375rem;
    color: #6B7280;
    font-weight: 600;
    letter-spacing: -0.01em;
}

.stat-divider {
    width: 2px;
    height: 60px;
    background: linear-gradient(to bottom, transparent, rgba(79, 70, 229, 0.3), transparent);
}

/* ========================================================================
   Enhanced Search Box V2
   ======================================================================== */

.hero-search-wrapper {
    margin-top: 3.5rem;
    max-width: 1050px;
    margin-left: auto;
    margin-right: auto;
    padding: 0 1.5rem;
}

.search-box-v2 {
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(12px);
    padding: 2rem;
    border-radius: 24px;
    box-shadow: 0 24px 64px rgba(0, 0, 0, 0.15), 0 0 0 1px rgba(79, 70, 229, 0.08);
    border: 2px solid rgba(79, 70, 229, 0.1);
    transition: all 0.3s ease;
}

.search-box-v2:hover {
    box-shadow: 0 32px 80px rgba(0, 0, 0, 0.2), 0 0 0 1px rgba(79, 70, 229, 0.15);
    border-color: rgba(79, 70, 229, 0.2);
}

.search-grid {
    display: grid;
    grid-template-columns: 2fr 1.2fr 1.2fr auto;
    gap: 1.25rem;
    align-items: center;
}

.search-field {
    position: relative;
}

.search-icon {
    position: absolute;
    left: 1.25rem;
    top: 50%;
    transform: translateY(-50%);
    color: #9CA3AF;
    font-size: 1.25rem;
    pointer-events: none;
    z-index: 2;
    transition: color 0.3s ease;
}

.search-field:focus-within .search-icon {
    color: #4F46E5;
}

.search-input,
.search-select {
    width: 100%;
    padding: 1.125rem 1.125rem 1.125rem 3.5rem;
    border: 2px solid #E5E7EB;
    border-radius: 14px;
    font-size: 1rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    background: #F9FAFB;
    color: #111827;
    font-weight: 500;
}

.search-input:hover,
.search-select:hover {
    border-color: #D1D5DB;
    background: #FFFFFF;
}

.search-input:focus,
.search-select:focus {
    outline: none;
    border-color: #4F46E5;
    background: #FFFFFF;
    box-shadow: 0 0 0 4px rgba(79, 70, 229, 0.12);
}

.search-input::placeholder {
    color: #9CA3AF;
    font-weight: 500;
}

.search-btn {
    padding: 1.125rem 2.5rem;
    border-radius: 14px;
    font-size: 1.0625rem;
    font-weight: 600;
    white-space: nowrap;
    border: none;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    letter-spacing: -0.01em;
}

.search-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(79, 70, 229, 0.4);
}

.search-btn:active {
    transform: translateY(0);
}

/* ========================================================================
   Popular Searches
   ======================================================================== */

.popular-searches {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    margin-top: 2rem;
    flex-wrap: wrap;
}

.popular-label {
    font-size: 0.9375rem;
    color: #6B7280;
    font-weight: 600;
    letter-spacing: -0.01em;
}

.popular-tag {
    display: inline-flex;
    align-items: center;
    padding: 0.625rem 1.25rem;
    background: linear-gradient(135deg, #F3F4F6, #E5E7EB);
    border-radius: 50px;
    font-size: 0.9375rem;
    color: #374151;
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    font-weight: 600;
    border: 2px solid transparent;
    letter-spacing: -0.01em;
}

.popular-tag:hover {
    background: linear-gradient(135deg, #4F46E5, #7C3AED);
    color: #FFFFFF;
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(79, 70, 229, 0.35);
    text-decoration: none;
    border-color: rgba(255, 255, 255, 0.2);
}

.popular-tag:active {
    transform: translateY(-1px);
}

/* ========================================================================
   Mentor Benefits (Mentor Tab)
   ======================================================================== */

.mentor-benefits {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 2rem;
    flex-wrap: wrap;
}

.benefit-item {
    display: flex;
    align-items: center;
    gap: 0.625rem;
    font-size: 1rem;
    color: #4b5563;
    font-weight: 500;
}

.benefit-icon {
    color: #10b981;
    font-size: 1.25rem;
}

/* ========================================================================
   Hero CTA Buttons
   ======================================================================== */

.hero-cta {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.btn-hero-primary {
    padding: 1rem 2.5rem;
    font-size: 1.125rem;
    font-weight: 600;
    border-radius: 12px;
    display: inline-flex;
    align-items: center;
    transition: all 0.3s ease;
}

.btn-hero-secondary {
    padding: 1rem 2.5rem;
    font-size: 1.125rem;
    font-weight: 600;
    border-radius: 12px;
    background: #FFFFFF !important;
    color: #4F46E5 !important;
    border: 2px solid #4F46E5 !important;
    display: inline-flex;
    align-items: center;
    text-decoration: none;
    transition: all 0.3s ease;
}

.btn-hero-secondary span,
.btn-hero-secondary i {
    color: #4F46E5 !important;
}

.btn-hero-secondary:hover {
    border-color: #4338CA !important;
    background: #EEF2FF !important;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(79, 70, 229, 0.25);
    text-decoration: none;
    color: #4338CA !important;
}

.btn-hero-secondary:hover span,
.btn-hero-secondary:hover i {
    color: #4338CA !important;
}

/* ========================================================================
   Wave Divider
   ======================================================================== */

.hero-wave-divider {
    position: absolute;
    bottom: -1px;
    left: 0;
    width: 100%;
    overflow: hidden;
    line-height: 0;
    color: #ffffff;
    z-index: 5;
}

.hero-wave-divider svg {
    position: relative;
    display: block;
    width: calc(100% + 1.3px);
    height: 60px;
}

/* ========================================================================
   Mobile Responsiveness
   ======================================================================== */

@media (max-width: 1200px) {
    .mentor-float-1,
    .mentor-float-2,
    .mentor-float-4,
    .mentor-float-5 {
        display: none;
    }
    
    .mentor-float-3 {
        width: 100px;
        height: 100px;
        top: 8%;
        right: 8%;
    }
    
    .floating-icon {
        width: 40px;
        height: 40px;
    }
    
    .floating-icon i {
        font-size: 20px;
    }
}

@media (max-width: 992px) {
    .hero-section-modern-v2 {
        padding: 6rem 0 8rem;
        min-height: auto;
    }
    
    .hero-tabs-modern {
        margin-bottom: 2.5rem;
    }
    
    .hero-content-wrapper {
        padding: 0 1rem;
    }
    
    .search-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .search-btn {
        width: 100%;
        padding: 1rem 2rem;
    }
    
    .hero-stats {
        gap: 2rem;
        padding: 1.5rem 1rem;
    }
    
    .stat-number {
        font-size: 2.25rem;
    }
    
    .stat-divider {
        height: 50px;
    }
    
    .search-box-v2 {
        padding: 1.5rem;
    }
}

@media (max-width: 768px) {
    .hero-section-modern-v2 {
        padding: 4rem 0 6rem;
    }
    
    .hero-tabs-modern {
        margin-bottom: 2rem;
        padding: 0 1rem;
    }
    
    .hero-nav-pills {
        width: 100%;
        padding: 0.5rem;
        flex-direction: row;
    }
    
    .hero-nav-pills .nav-link {
        flex: 1;
        justify-content: center;
        padding: 0.875rem 1.25rem;
        font-size: 0.9375rem;
    }
    
    .hero-nav-pills .nav-link i {
        font-size: 1.25rem;
    }
    
    .hero-title-v2 {
        font-size: 2.25rem;
        margin-bottom: 1.25rem;
    }
    
    .hero-subtitle-v2 {
        font-size: 1.0625rem;
    }
    
    .hero-badge .badge-modern {
        padding: 0.625rem 1.25rem;
        font-size: 0.875rem;
    }
    
    .hero-stats {
        flex-direction: row;
        gap: 1.5rem;
        padding: 1.5rem 0.75rem;
        margin-top: 2.5rem;
    }
    
    .stat-number {
        font-size: 2rem;
    }
    
    .stat-label {
        font-size: 0.875rem;
    }
    
    .stat-divider {
        width: 1.5px;
        height: 45px;
    }
    
    .mentor-benefits {
        flex-direction: column;
        gap: 1rem;
    }
    
    .hero-cta {
        flex-direction: column;
        width: 100%;
    }
    
    .btn-hero-primary,
    .btn-hero-secondary {
        width: 100%;
        justify-content: center;
        padding: 0.875rem 2rem;
        font-size: 1rem;
    }
    
    .hero-mentors-imgs-modern {
        display: none;
    }
    
    .floating-icon {
        display: none;
    }
    
    .hero-wave-divider svg {
        height: 40px;
    }
    
    .popular-searches {
        gap: 0.75rem;
        margin-top: 1.5rem;
    }
    
    .popular-tag {
        padding: 0.5rem 1rem;
        font-size: 0.875rem;
    }
    
    .hero-search-wrapper {
        margin-top: 2.5rem;
        padding: 0 1rem;
    }
}

@media (max-width: 576px) {
    .hero-section-modern-v2 {
        padding: 3rem 0 5rem;
    }
    
    .hero-tabs-modern {
        margin-bottom: 1.5rem;
    }
    
    .hero-nav-pills {
        flex-direction: column;
        gap: 0.5rem;
        padding: 0.5rem;
    }
    
    .hero-nav-pills .nav-link {
        width: 100%;
        padding: 1rem;
        font-size: 1rem;
        justify-content: center;
    }
    
    .hero-title-v2 {
        font-size: 1.875rem;
        margin-bottom: 1rem;
    }
    
    .hero-subtitle-v2 {
        font-size: 1rem;
        line-height: 1.6;
    }
    
    .hero-stats {
        flex-direction: column;
        gap: 1.25rem;
        padding: 1.25rem 0.75rem;
        margin-top: 2rem;
    }
    
    .stat-divider {
        width: 60px;
        height: 2px;
        background: linear-gradient(to right, transparent, rgba(79, 70, 229, 0.3), transparent);
    }
    
    .stat-number {
        font-size: 2rem;
    }
    
    .search-box-v2 {
        padding: 1.25rem;
        border-radius: 20px;
    }
    
    .search-input,
    .search-select {
        padding: 1rem 1rem 1rem 3rem;
        font-size: 0.9375rem;
        border-radius: 12px;
    }
    
    .search-icon {
        left: 1rem;
        font-size: 1.125rem;
    }
    
    .search-btn {
        padding: 1rem 1.5rem;
        font-size: 0.9375rem;
        border-radius: 12px;
    }
    
    .popular-searches {
        flex-direction: column;
        text-align: center;
        gap: 0.75rem;
    }
    
    .popular-tag {
        width: 100%;
        text-align: center;
        justify-content: center;
    }
    
    .hero-badge .badge-modern {
        padding: 0.5rem 1rem;
        font-size: 0.8125rem;
    }
    
    .hero-search-wrapper {
        margin-top: 2rem;
    }
}

/* Touch device optimization */
@media (hover: none) {
    .hero-nav-pills .nav-link,
    .popular-tag,
    .search-btn {
        transition: none;
    }
    
    .hero-nav-pills .nav-link:active,
    .popular-tag:active,
    .search-btn:active {
        transform: scale(0.98);
    }
}

/* ========================================================================
   Animations & Transitions
   ======================================================================== */

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}
