/* Local fixes for Alto Robotics Landing Page */

/* Ensure video covers properly */
.uk-cover-container video {
    object-fit: cover;
    width: 100%;
    height: 100%;
}

/* Fix font loading issues */
body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

/* Ensure proper spacing */
.uk-section {
    padding-top: 40px;
    padding-bottom: 40px;
}

.uk-section-large {
    padding-top: 70px;
    padding-bottom: 70px;
}

/* Form styling improvements */
.uk-form .uk-input:focus {
    border-color: #64489D;
    outline: none;
    box-shadow: 0 0 0 0.1rem rgba(30, 135, 240, 0.25);
}

/* Button hover effects */
.uk-button-primary:hover {
    background-color: #0f7ae5;
    color: #fff;
}

/* Mobile responsive improvements */
@media (max-width: 959px) {
    .uk-heading-large {
        font-size: 2.5rem;
        line-height: 1.2;
    }
    
    .uk-text-large {
        font-size: 1.125rem;
    }
}

/* Slider dot navigation styling - Original Alto Robotics style */
.uk-dotnav > * > * {
    display: block;
    box-sizing: border-box;
    width: 12px;
    height: 12px;
    text-indent: 100%;
    box-shadow: rgba(0, 0, 0, 0.15) 1px 1px 1px inset, rgb(255, 255, 255) 1px 1px 1px;
    border-radius: 50%;
    background: rgb(201, 207, 230);
    overflow: hidden;
    white-space: nowrap;
    transition: color 0.2s ease-in-out, background-color, border-color, box-shadow;
}

.uk-dotnav > .uk-active > * {
    background: #64489D !important;
}

.uk-dotnav > * {
}

/* Responsive button labels */
.desktop-label {
    display: inline;
}

.mobile-label {
    display: none;
}

@media (max-width: 959px) {
    .desktop-label {
        display: none;
    }
    
    .mobile-label {
        display: inline;
    }
}

/* Tab navigation styling */
.el-nav a {
    color: #666;
    text-decoration: none;
    border-bottom: 2px solid transparent;
    transition: all 0.3s ease;
}

.el-nav .uk-active a,
.el-nav a:hover {
    color: #64489D;
    border-bottom-color: #64489D;
}

/* Logo styling */
.uk-logo img {
    max-height: 60px;
    width: auto;
}

/* Navbar improvements */
.uk-navbar-nav > li > a {
    color: #333;
    text-decoration: none;
    padding: 0 15px;
    line-height: 60px;
    transition: color 0.3s ease;
}

.uk-navbar-nav > li > a:hover {
    color: #64489D;
}

/* Footer styling */
footer {
    margin-top: 0;
}

footer p {
    margin: 0;
    color: rgba(255, 255, 255, 0.8);
}

footer a {
    color: rgba(255, 255, 255, 0.9);
    text-decoration: none;
}

footer a:hover {
    color: #fff;
    text-decoration: underline;
}

/* Ensure proper image loading */
img {
    max-width: 100%;
    height: auto;
}

/* Loading states */
.uk-spinner {
    color: #64489D;
}

/* Modal improvements */
.uk-modal-dialog {
    background: #fff;
    border-radius: 8px;
}

/* Responsive video */
iframe {
    max-width: 100%;
    height: auto;
}

/* Grid improvements */
.uk-grid-margin {
    margin-top: 30px;
}

.uk-grid > * {
    padding-left: 15px;
}

/* Fix potential z-index issues */
.uk-navbar-sticky {
    z-index: 1000;
}

.uk-modal {
    z-index: 1010;
}

/* Smooth scrolling */
html {
    scroll-behavior: smooth;
}

/* Print styles */
@media print {
    video, iframe {
        display: none;
    }
    
    .uk-hidden-print {
        display: none !important;
    }
}
