/* Custom.css - Haelan Labs Customizations */

body {
    background: transparent;
}

/* Video Background Styles */
video {
    position: absolute;
    top: 50%;
    left: 50%;
    min-width: 100%;
    min-height: 100%;
    width: auto;
    height: auto;
    transform: translateX(-50%) translateY(-50%);
    background-size: cover;
    z-index: -1;
}

/* Ensure video stays within jumbotron */
.jumbotron {
    position: relative;
    overflow: hidden;
}

/* Video background for slider - softer opacity for easier viewing */
.glide__slide video {
    position: fixed !important;
    right: 0 !important;
    bottom: 0 !important;
    min-width: 100% !important;
    min-height: 100% !important;
    width: auto !important;
    height: auto !important;
    z-index: -100 !important;
    background-size: cover !important;
    opacity: 0.4 !important;
}

/* Ensure slider content is above video */
.glide__slide .jumbotron {
    background: transparent !important;
}

.glide__slide .container-fluid {
    position: relative !important;
    z-index: 1 !important;
}

/* Ensure content appears above video */
.jumbotron .container,
.jumbotron .container-fluid {
    position: relative;
    z-index: 2;
}

/* Haelan Brand Colors */
:root {
    --haelan-primary: #ff6b35;
    --haelan-secondary: #f7931e;
    --haelan-dark: #2c3e50;
    --haelan-light: #ecf0f1;
}

/* Navigation Improvements */
#nav {
    backdrop-filter: blur(10px);
}

/* Force white text on all navigation and footer elements across all pages */
#nav .nav-link {
    color: #fff !important;
}

.navbar-toggler,
.toggle-label,
.toggle-label-close {
    color: #fff !important;
    background-color: transparent !important;
}

.toggle-icon .line {
    background-color: #fff !important;
    border-color: #fff !important;
}

/* Footer social links and terms/privacy links - force white */
.social .trigger,
.social-nav a,
.copy,
.copy a,
.to-top {
    color: #fff !important;
}

/* Override any inline styles that might set different colors */
#nav .nav-link[style*="color"],
.navbar-toggler[style*="color"],
.toggle-label[style*="color"],
.toggle-label-close[style*="color"],
.social .trigger[style*="color"],
.social-nav a[style*="color"],
.copy[style*="color"],
.copy a[style*="color"],
.to-top[style*="color"] {
    color: #fff !important;
}

.toggle-icon .line[style*="background-color"] {
    background-color: #fff !important;
}

/* Red Orange Lava Gradient Line Animation */
#nav .nav-item {
    position: relative;
}

#nav .nav-item::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 100%;
    height: 3px;
    background: linear-gradient(90deg, 
        #ff6b35 0%, 
        #f7931e 25%, 
        #ff4d17 50%, 
        #f7931e 75%, 
        #ff6b35 100%);
    background-size: 200% 100%;
    opacity: 0;
    transform: scaleX(0);
    transform-origin: left;
    transition: all 0.3s cubic-bezier(0.645, 0.045, 0.355, 1);
    border-radius: 2px;
    box-shadow: 
        0 0 8px rgba(255, 107, 53, 0.4),
        0 0 16px rgba(247, 147, 30, 0.3);
}

#nav .nav-item:hover::after {
    opacity: 1;
    transform: scaleX(1);
    animation: lavaFlow 2s ease-in-out infinite;
}

@keyframes lavaFlow {
    0% {
        background-position: 0% 50%;
        box-shadow: 
            0 0 8px rgba(255, 107, 53, 0.4),
            0 0 16px rgba(247, 147, 30, 0.3);
    }
    50% {
        background-position: 100% 50%;
        box-shadow: 
            0 0 12px rgba(255, 107, 53, 0.6),
            0 0 20px rgba(247, 147, 30, 0.4),
            0 0 24px rgba(255, 77, 23, 0.3);
    }
    100% {
        background-position: 0% 50%;
        box-shadow: 
            0 0 8px rgba(255, 107, 53, 0.4),
            0 0 16px rgba(247, 147, 30, 0.3);
    }
}

/* Allow active state to also show hover effect */
#nav .nav-item.active:hover::after {
    opacity: 1;
    transform: scaleX(1);
    animation: lavaFlow 2s ease-in-out infinite;
}

/* Button Customizations */
.btn-outline-dark {
    border-color: var(--haelan-dark);
    color: var(--haelan-dark);
}

.btn-outline-dark:hover {
    background-color: var(--haelan-primary);
    border-color: var(--haelan-primary);
}

.btn-outline-light {
    border-color: white;
    color: white;
}

.btn-outline-light:hover {
    background-color: var(--haelan-primary);
    border-color: var(--haelan-primary);
}

/* Card Improvements */
.card.bg-light {
    background: linear-gradient(135deg, #f7931e20 0%, #ff6b3520 100%) !important;
}

/* Section Spacing */
.py-7 {
    padding-top: 5rem !important;
    padding-bottom: 5rem !important;
}

/* Typography Adjustments */
.massive {
    letter-spacing: -0.02em;
    line-height: 0.9;
}

/* Form Styling - Force visible text inputs */
.form-control {
    background-color: #fff !important;
    border: 1px solid #ced4da !important;
    color: #495057 !important;
}

.form-control::placeholder {
    color: #6c757d !important;
}

.form-control:focus {
    background-color: #fff !important;
    border-color: var(--haelan-primary) !important;
    color: #495057 !important;
    box-shadow: 0 0 0 0.2rem rgba(255, 107, 53, 0.25) !important;
}

select.form-control {
    background-color: #fff !important;
    color: #495057 !important;
}

select.form-control option {
    background-color: #fff !important;
    color: #495057 !important;
}

/* Textarea specific fixes */
textarea.form-control {
    background-color: #fff !important;
    color: #495057 !important;
}

/* Impact Numbers */
.display-4 {
    color: var(--haelan-primary) !important;
    font-weight: bold;
}

/* Smooth Scrolling */
html {
    scroll-behavior: smooth;
}

/* Fix menu icon color on all slides - force white */
.navbar-toggler {
    color: #fff !important;
    background-color: transparent !important;
    border: none !important;
}

.toggle-label,
.toggle-label-close {
    color: #fff !important;
}

.toggle-icon .line {
    background-color: #fff !important;
    border-color: #fff !important;
}

/* Make slider navigation bullets white */
.glide__bullets .glide__bullet {
    color: #fff !important;
    border-color: #fff !important;
}

.glide__bullets .glide__bullet.glide--active {
    background-color: #fff !important;
    color: #000 !important;
}

/* Mobile Responsiveness */
@media (max-width: 768px) {
    /* Video Background Performance Fix - Disable on mobile */
    .glide__slide video {
        display: none !important;
    }
    
    /* Replace with CSS gradient background for better performance */
    .glide__slide .jumbotron {
        background: linear-gradient(135deg, #ff6b35 0%, #f7931e 100%) !important;
        opacity: 0.9 !important;
    }
    
    /* Text Scaling Improvements */
    .massive {
        font-size: clamp(2.5rem, 12vw, 4rem) !important;
        line-height: 1.1 !important;
        letter-spacing: -0.03em !important;
    }
    
    /* Better text container width for mobile */
    .w-50 {
        width: 90% !important;
        max-width: none !important;
    }
    
    /* Improve paragraph readability */
    p {
        font-size: 1rem !important;
        line-height: 1.5 !important;
        margin-bottom: 1.5rem !important;
    }
    
    .lead {
        font-size: 1.1rem !important;
        line-height: 1.4 !important;
    }
    
    /* Navigation Menu Mobile Fixes */
    .navbar-toggler {
        padding: 1rem !important;
        min-height: 44px !important;
        min-width: 44px !important;
    }
    
    .navbar-toggler .toggle-label {
        width: 5rem !important;
        font-size: 0.8rem !important;
    }
    
    .navbar-toggler .toggle-icon {
        width: 1.8rem !important;
    }
    
    .navbar-toggler .toggle-icon .line {
        height: 2px !important;
        margin: 0.4rem 0 !important;
    }
    
    /* Better mobile menu spacing */
    #nav {
        padding: 3rem 2rem !important;
    }
    
    #nav .nav-item {
        margin-bottom: 1rem !important;
    }
    
    #nav .nav-link {
        font-size: 1.2rem !important;
        padding: 1rem 0 !important;
    }
    
    /* Layout Responsiveness Fixes */
    .vh-100 {
        min-height: 100vh !important;
        height: auto !important;
    }
    
    .container-fluid, .container {
        padding-left: 1.5rem !important;
        padding-right: 1.5rem !important;
    }
    
    .jumbotron {
        padding-top: 4rem !important;
        padding-bottom: 4rem !important;
        min-height: 80vh !important;
    }
    
    /* Footer mobile fixes */
    footer.fixed-bottom {
        position: relative !important;
        margin-top: 2rem !important;
    }
    
    footer .row {
        flex-direction: column !important;
        text-align: center !important;
        gap: 1rem !important;
    }
    
    footer .col-sm-3.text-right {
        text-align: center !important;
    }
    
    /* Slider bullets positioning */
    .glide__bullets {
        bottom: 1rem !important;
        left: 50% !important;
        transform: translateX(-50%) !important;
    }
    
    /* Touch-friendly interactions */
    a, button, .btn {
        min-height: 44px !important;
        padding: 0.75rem 1rem !important;
    }
    
    /* Improve scroll performance */
    body {
        -webkit-overflow-scrolling: touch !important;
    }
    
    /* Accessibility - Focus indicators for keyboard navigation */
    .navbar-toggler:focus,
    .nav-link:focus,
    .btn:focus {
        outline: 2px solid #ff6b35 !important;
        outline-offset: 2px !important;
    }
    
    /* Text shadow for better readability over backgrounds */
    .text-white {
        text-shadow: 0 1px 2px rgba(0,0,0,0.5) !important;
    }
}