/* ===============================================
   UI IMPROVEMENTS FOR IMVEST SITE
   =============================================== */

/* ===============================================
   1. ENHANCED ANIMATIONS AND TRANSITIONS
   =============================================== */

/* Smooth page transitions */
* {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Enhanced hover effects */
.bd-gradient-btn {
    position: relative;
    overflow: hidden;
    transform: translateY(0);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.bd-gradient-btn::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;
}

.bd-gradient-btn:hover::before {
    left: 100%;
}

.bd-gradient-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
}

.bd-gradient-btn:active {
    transform: translateY(0);
}

/* ===============================================
   2. ENHANCED ORBIT SECTION STYLING
   =============================================== */

.orbit-circle {
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
}

.orbit-circle:hover {
    transform: scale(1.1);
    z-index: 10;
}

.orbit-price {
    transition: all 0.3s ease;
    font-weight: 600;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
}

.orbit-circle.hovered .orbit-price {
    animation: pricePulse 0.6s ease-in-out;
}

@keyframes pricePulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.1); }
    100% { transform: scale(1); }
}

/* ===============================================
   3. ENHANCED FORM STYLING
   =============================================== */

.subcribe__input {
    position: relative;
    overflow: hidden;
}

.subcribe__input::before {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: linear-gradient(45deg, #00F5A0, #00D9F5, #6a5af9, #FB5141);
    border-radius: 50px;
    z-index: -1;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.subcribe__input:focus-within::before {
    opacity: 1;
    animation: borderGlow 2s ease-in-out infinite;
}

@keyframes borderGlow {
    0%, 100% { opacity: 0.5; }
    50% { opacity: 1; }
}

.subcribe__input input {
    transition: all 0.3s ease;
}

.subcribe__input input:focus {
    transform: scale(1.02);
    box-shadow: 0 0 20px rgba(0, 245, 160, 0.3);
}

/* ===============================================
   4. ENHANCED CARD ANIMATIONS
   =============================================== */

.feature-box,
.metric-box,
.slide-card {
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.feature-box::before,
.metric-box::before,
.slide-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    transition: left 0.6s;
}

.feature-box:hover::before,
.metric-box:hover::before,
.slide-card:hover::before {
    left: 100%;
}

.feature-box:hover,
.metric-box:hover,
.slide-card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

/* ===============================================
   5. ENHANCED LOADING STATES
   =============================================== */

.loading-spinner {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: #fff;
    animation: spin 1s ease-in-out infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* ===============================================
   6. ENHANCED SCROLL ANIMATIONS
   =============================================== */

.fade-in-up {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.fade-in-up.visible {
    opacity: 1;
    transform: translateY(0);
}

.fade-in-left {
    opacity: 0;
    transform: translateX(-30px);
    transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.fade-in-left.visible {
    opacity: 1;
    transform: translateX(0);
}

.fade-in-right {
    opacity: 0;
    transform: translateX(30px);
    transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.fade-in-right.visible {
    opacity: 1;
    transform: translateX(0);
}

/* ===============================================
   7. ENHANCED BUTTON STYLES
   =============================================== */

.btn {
    position: relative;
    overflow: hidden;
    border: none;
    outline: none;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.btn:focus {
    outline: 2px solid rgba(0, 245, 160, 0.5);
    outline-offset: 2px;
}

.btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none !important;
}

/* ===============================================
   8. ENHANCED TYPOGRAPHY
   =============================================== */

.gradient-text {
    background: linear-gradient(135deg, #00F5A0, #00D9F5, #6a5af9);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    background-size: 200% 200%;
    animation: gradientShift 3s ease-in-out infinite;
}

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

/* ===============================================
   9. ENHANCED NAVIGATION
   =============================================== */

.header__area {
    backdrop-filter: blur(10px);
    background: rgba(0, 0, 0, 0.8);
    transition: all 0.3s ease;
}

.header__area.bd-sticky {
    background: rgba(0, 0, 0, 0.95);
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.1);
}

/* ===============================================
   10. ENHANCED FOOTER
   =============================================== */

.footer__area {
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.9), rgba(20, 20, 20, 0.9));
    position: relative;
}

.footer__area::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, #00F5A0, transparent);
}

/* ===============================================
   11. ENHANCED RESPONSIVE IMPROVEMENTS
   =============================================== */

@media (max-width: 768px) {
    .bd-gradient-btn:hover {
        transform: translateY(-1px);
    }
    
    .feature-box:hover,
    .metric-box:hover,
    .slide-card:hover {
        transform: translateY(-4px) scale(1.01);
    }
}

/* ===============================================
   12. ENHANCED ACCESSIBILITY
   =============================================== */

/* Focus indicators */
*:focus {
    outline: 2px solid rgba(0, 245, 160, 0.5);
    outline-offset: 2px;
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    .bd-gradient-btn {
        border: 2px solid currentColor;
    }
    
    .feature-box,
    .metric-box,
    .slide-card {
        border: 1px solid rgba(255, 255, 255, 0.3);
    }
}

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* ===============================================
   13. ENHANCED LOADING ANIMATIONS
   =============================================== */

.skeleton {
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: loading 1.5s infinite;
}

@keyframes loading {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

/* ===============================================
   14. ENHANCED ERROR STATES
   =============================================== */

.error-state {
    border-color: #FB5141 !important;
    box-shadow: 0 0 10px rgba(251, 81, 65, 0.3) !important;
}

.success-state {
    border-color: #00F5A0 !important;
    box-shadow: 0 0 10px rgba(0, 245, 160, 0.3) !important;
}

/* ===============================================
   15. ENHANCED TOOLTIPS
   =============================================== */

.tooltip {
    position: relative;
    display: inline-block;
}

.tooltip .tooltiptext {
    visibility: hidden;
    width: 120px;
    background-color: rgba(0, 0, 0, 0.9);
    color: #fff;
    text-align: center;
    border-radius: 6px;
    padding: 8px;
    position: absolute;
    z-index: 1;
    bottom: 125%;
    left: 50%;
    margin-left: -60px;
    opacity: 0;
    transition: opacity 0.3s;
    font-size: 12px;
}

.tooltip:hover .tooltiptext {
    visibility: visible;
    opacity: 1;
}

/* ===============================================
   16. ENHANCED SCROLL INDICATORS
   =============================================== */

.scroll-indicator {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: rgba(0, 245, 160, 0.2);
    z-index: 9999;
}

.scroll-indicator::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    background: linear-gradient(90deg, #00F5A0, #00D9F5);
    width: 0%;
    transition: width 0.1s ease;
}
