/* Dark base */
html,
body {
    height: 100%;
    background-color: #000;
    /* matches bg-black */
}

/* Provide top offset so hero text doesn't hide under fixed navbar */
.nav-offset {
    padding-top: 5.5rem;
    /* ~ fixed navbar height */
}

/* Improve card visuals slightly on dark theme without custom frameworks */
.card {
    border-radius: .75rem;
}

/* Ensure videos inside ratio look crisp */
.object-fit-cover {
    object-fit: cover;
}

/* Optional: slightly smoother scrolling */
html {
    scroll-behavior: smooth;
}

/* Footer links subtle hover */
footer a.link-danger:hover {
    opacity: .85;
}

/* Ensure form inputs on dark background remain visible */
.form-control.bg-body {
    background-color: #212529 !important;
    /* Bootstrap's body background in dark */
    border: 1px solid rgba(255, 255, 255, .15);
}

.form-control.bg-body:focus {
    border-color: #0d6efd;
    box-shadow: 0 0 0 0.2rem rgba(13, 110, 253, .25);
}

/* Off-screen honeypot that won't get focus from normal navigation */
.hp {
    position: absolute;
    left: -10000px;
    top: auto;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

/* Make the hover video fade in over the cover image */
.portfolio-clip {
    position: relative;
}

.portfolio-clip>video {
    position: absolute;
    inset: 0;
    opacity: 0;
    transition: opacity .25s ease;
    pointer-events: none;
    /* avoid accidental right-click saving */
}

.portfolio-clip.playing>video {
    opacity: 1;
}

/* Optional: prevent long-press save on mobile (best-effort) */
.portfolio-clip img,
.portfolio-clip video {
    -webkit-touch-callout: none;
    user-select: none;
}