/**
 * Premium Hero Section Styles
 * Inspired by Coinbase/Bybit but unique
 */

/* Premium Hero Buttons */
.btn-hero-primary {
    display: inline-flex !important;
    align-items: center;
    gap: 0.75rem;
    padding: 1.125rem 2.75rem !important;
    font-size: 1.125rem !important;
    font-weight: 700 !important;
    font-family: var(--font-main) !important;
    color: #fff !important;
    background: var(--gradient-gold-full) !important;
    border: none !important;
    border-radius: var(--radius-full) !important;
    text-decoration: none !important;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 20px rgba(17, 119, 58, 0.4), 0 0 0 0 rgba(17, 119, 58, 0.4) !important;
    position: relative !important;
    overflow: hidden;
    z-index: 100 !important;
    opacity: 1 !important;
    visibility: visible !important;
    min-width: 180px;
    justify-content: center;
}

.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-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(17, 119, 58, 0.4), 0 0 0 4px rgba(17, 119, 58, 0.1);
}

.btn-hero-primary:active {
    transform: translateY(0);
    box-shadow: 0 4px 20px rgba(17, 119, 58, 0.3);
}

.btn-hero-primary i {
    transition: transform 0.3s ease;
}

.btn-hero-primary:hover i {
    transform: translateX(4px);
}

.btn-hero-secondary {
    display: inline-flex !important;
    align-items: center;
    gap: 0.75rem;
    padding: 1.125rem 2.75rem !important;
    font-size: 1.125rem !important;
    font-weight: 700 !important;
    font-family: var(--font-main) !important;
    color: var(--text-primary) !important;
    background: rgba(255, 255, 255, 0.08) !important;
    border: 2px solid rgba(17, 119, 58, 0.4) !important;
    border-radius: var(--radius-full) !important;
    text-decoration: none !important;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative !important;
    overflow: hidden;
    backdrop-filter: blur(20px) saturate(180%);
    z-index: 100 !important;
    opacity: 1 !important;
    visibility: visible !important;
    min-width: 180px;
    justify-content: center;
}

.btn-hero-secondary::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 0;
    height: 100%;
    background: rgba(17, 119, 58, 0.1);
    transition: width 0.3s ease;
    z-index: -1;
}

.btn-hero-secondary:hover {
    border-color: var(--primary);
    color: var(--primary);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(17, 119, 58, 0.15);
}

.btn-hero-secondary:hover::before {
    width: 100%;
}

.btn-hero-secondary:active {
    transform: translateY(0);
}

/* Premium Navigation Dots */
.hero-nav-premium {
    position: absolute;
    bottom: 3rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 1rem;
    z-index: 100;
    padding: 1rem 1.5rem;
    background: rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(20px) saturate(180%);
    border-radius: var(--radius-full);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.hero-nav-dot-premium {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.hero-nav-dot-premium span {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.4);
    transition: all 0.4s ease;
}

.hero-nav-dot-premium:hover {
    background: rgba(17, 119, 58, 0.3);
    transform: scale(1.2);
}

.hero-nav-dot-premium.active {
    background: var(--gradient-gold);
    width: 32px;
    border-radius: 6px;
    box-shadow: 0 4px 15px rgba(17, 119, 58, 0.4);
}

.hero-nav-dot-premium.active span {
    width: 8px;
    height: 8px;
    background: #000;
}

/* Enhanced Hero Content Visibility */
.hero-slide-content {
    position: relative;
    z-index: 100 !important;
}

.hero-content {
    position: relative;
    z-index: 101 !important;
}

/* Ensure buttons are always visible - Force visibility */
.btn-hero-primary,
.btn-hero-secondary {
    position: relative !important;
    z-index: 10000 !important;
    opacity: 1 !important;
    visibility: visible !important;
    display: inline-flex !important;
}

/* Override any conflicting styles */
.hero-content .btn-hero-primary,
.hero-content .btn-hero-secondary {
    z-index: 10000 !important;
    opacity: 1 !important;
    visibility: visible !important;
    display: inline-flex !important;
    pointer-events: auto !important;
    position: relative !important;
}

/* Ensure button container is above wavy bottom */
.hero-content > .d-flex {
    position: relative !important;
    z-index: 10001 !important;
}

/* Stats visibility fix */
.hero-slide.active .hero-content .stat-value,
.hero-slide.active .hero-content .stat-label {
    opacity: 1 !important;
    visibility: visible !important;
}

/* Responsive - Mobile Optimizations */
@media (max-width: 768px) {
    /* Reduce globe orb sizes on mobile */
    .hero-globe-orb {
        width: 250px !important;
        height: 250px !important;
    }
    
    /* Reduce animated lines opacity on mobile */
    .hero-animated-lines {
        opacity: 0.08 !important;
    }
    
    /* Hide decorative elements on mobile */
    .hero-slide .col-lg-5 {
        display: none !important;
    }
    
    /* Full width content on mobile */
    .hero-slide .col-lg-7 {
        flex: 0 0 100% !important;
        max-width: 100% !important;
        text-align: center;
    }
    
    /* Center align content on mobile */
    .hero-content {
        text-align: center !important;
        max-width: 100% !important;
    }
    
    /* Adjust heading sizes for mobile */
    .hero-content h1 {
        font-size: clamp(1.75rem, 6vw, 2.25rem) !important;
        line-height: 1.3 !important;
        margin-bottom: 1.5rem !important;
    }
    
    /* Adjust paragraph */
    .hero-content p.lead {
        font-size: 0.9375rem !important;
        margin: 0 auto 1.5rem !important;
        max-width: 100% !important;
    }
    
    /* Stats - smaller and centered */
    .hero-content .d-flex.gap-4 {
        justify-content: center !important;
        gap: 1.5rem !important;
        margin-bottom: 2rem !important;
    }
    
    .hero-content .stat-value {
        font-size: 1.75rem !important;
    }
    
    .hero-content .stat-label {
        font-size: 0.7rem !important;
    }
    
    /* Buttons - full width and stacked */
    .btn-hero-primary,
    .btn-hero-secondary {
        padding: 1rem 2rem !important;
        font-size: 1rem !important;
        width: 100% !important;
        max-width: 100% !important;
        justify-content: center;
        margin-bottom: 0.75rem;
    }
    
    .hero-content .d-flex.gap-3 {
        flex-direction: column !important;
        gap: 0.75rem !important;
        width: 100% !important;
    }
    
    /* Badge adjustments */
    .hero-content .badge {
        font-size: 0.7rem !important;
        padding: 0.5rem 1rem !important;
        margin-bottom: 1.5rem !important;
    }
    
    /* Navigation dots - mobile */
    .hero-nav-premium {
        bottom: 1.5rem !important;
        padding: 0.625rem 1rem !important;
        gap: 0.625rem !important;
    }
    
    .hero-nav-dot-premium {
        width: 10px !important;
        height: 10px !important;
    }
    
    .hero-nav-dot-premium.active {
        width: 28px !important;
    }
    
    /* Content padding adjustments */
    .hero-slide-content {
        padding: 1.25rem 0 6rem !important;
    }
    
    /* Let content define height; avoid vertical center clipping */
    .hero-slide {
        align-items: flex-start !important;
        justify-content: flex-start !important;
        min-height: auto !important;
        height: auto !important;
    }

    .hero-slider.home-hero {
        overflow: visible;
        min-height: auto;
    }

    .hero-slider.home-hero .hero-slider-wrapper {
        min-height: auto !important;
    }
    
    /* Improve spacing and balance */
    .hero-slide-content .row {
        margin: 0 !important;
    }
    
    .hero-slide-content .container {
        padding-left: 1rem !important;
        padding-right: 1rem !important;
    }
    
    /* Make stats more compact on mobile */
    .hero-content .d-flex.gap-4 > div {
        flex: 0 0 auto;
        min-width: auto;
    }
    
    /* Better button spacing */
    .hero-content .d-flex.gap-3 {
        margin-top: 1.5rem !important;
    }
}

/* Extra small devices */
@media (max-width: 576px) {
    .hero-content h1 {
        font-size: clamp(1.5rem, 7vw, 2rem) !important;
    }
    
    .hero-content .stat-value {
        font-size: 1.5rem !important;
    }
    
    .btn-hero-primary,
    .btn-hero-secondary {
        padding: 0.875rem 1.5rem !important;
        font-size: 0.9375rem !important;
    }
    
    .hero-nav-premium {
        bottom: 1rem !important;
        padding: 0.5rem 0.875rem !important;
    }
}

