/* ============================================================
   AgriTrack Landing Page - Screen Fit & Dynamic UI Styles
   ============================================================ */

html {
    scroll-padding-top: 70px;
}

/* Screen viewport optimization for standard 1080p, laptop and desktop displays */
@media (min-width: 1024px) {
    /* Balance hero and section heights for comfortable, non-bloated viewport fit */
    #hero {
        min-height: calc(85vh - 70px);
        display: flex;
        align-items: center;
    }
}

/* Return to top floating button - prominent USTP gold arrow (#F4B41A) */
.dyn-back-to-top {
    position: fixed;
    bottom: 24px;
    right: 24px;
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background: #0A1931 !important;
    color: #F4B41A !important;
    border: 1.5px solid rgba(244, 180, 26, 0.6) !important;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 4px 14px rgba(10, 25, 49, 0.35);
    opacity: 0;
    visibility: hidden;
    transform: translateY(12px);
    transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
    z-index: 999;
}

.dyn-back-to-top.is-visible {
    opacity: 1 !important;
    visibility: visible !important;
    transform: translateY(0) !important;
}

.dyn-back-to-top svg,
.dyn-back-to-top polyline {
    color: #F4B41A !important;
    stroke: #F4B41A !important;
    fill: none !important;
    stroke-width: 2.75 !important;
    display: block !important;
}

.dyn-back-to-top:hover {
    background: #14284d !important;
    border-color: #F4B41A !important;
    transform: translateY(-2px) !important;
    box-shadow: 0 8px 20px rgba(10, 25, 49, 0.45), 0 0 14px rgba(244, 180, 26, 0.35) !important;
}

.dyn-back-to-top:hover svg {
    stroke: #F4B41A !important;
    transform: translateY(-2px);
}
