/* Custom Hamburger Menu Button */
.navbar-toggler.custom-hamburger {
    border: none;
    padding: 0;
    width: 30px;
    /* Set a fixed width */
    height: 25px;
    /* Set a fixed height */
    position: relative;
    transform: rotate(0deg);
    transition: .5s ease-in-out;
    cursor: pointer;
}

.navbar-toggler.custom-hamburger:focus {
    box-shadow: none;
}

.navbar-toggler.custom-hamburger span {
    display: block;
    position: absolute;
    height: 3px;
    width: 100%;
    background: #333;
    /* Color of the lines */
    border-radius: 3px;
    opacity: 1;
    left: 0;
    transform: rotate(0deg);
    transition: .25s ease-in-out;
}

/* Position the three lines */
.navbar-toggler.custom-hamburger span:nth-child(1) {
    top: 0px;
}

.navbar-toggler.custom-hamburger span:nth-child(2) {
    top: 10px;
}

.navbar-toggler.custom-hamburger span:nth-child(3) {
    top: 20px;
}

/* Custom Navbar Style */
.navbar.sticky-top {
    /* White background with 95% opacity */
    background-color: rgba(255, 255, 255, 0.95);

    /* Frosted glass effect for content scrolling behind the navbar */
    -webkit-backdrop-filter: blur(8px);
    /* For Safari */
    backdrop-filter: blur(8px);

    /* A subtle shadow to give the navbar some depth */
    box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075);
}

/* --- Interactive Card Hover Effect --- */

/* The card has a light gray border by default and a smooth transition */
.card {
    border: 1px solid #eee;
    transition: border-color 0.3s ease-in-out;
}

/* On hover, change the border color to black */
.card:hover {
    border-color: #000;
}

/* The image still zooms in smoothly on hover */
.card .card-img-top {
    transition: transform 0.4s ease-in-out;
}

.card:hover .card-img-top {
    opacity: 0.55;
    /* Reduce opacity to make the image appear whiter */
}

/* --- Custom Navigation Link Effects --- */

/* Set up the nav-link for positioning the underline */
.navbar-nav .nav-link {
    position: relative;
    padding-bottom: 0.5rem;
    /* Add some space for the underline */
    transition: color 0.3s ease-in-out;
}

/* Create the underline pseudo-element, hidden by default */
.navbar-nav .nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 10%;
    /* Start the line 10% in from the left */
    width: 80%;
    /* Make the line 80% of the link's total width */
    height: 2px;
    background-color: #0d6efd;
    /* A nice Bootstrap blue */
    transform: scaleX(0);
    transform-origin: bottom left;
    transition: transform 0.3s ease-in-out;
}

/* On hover, change text color and reveal the underline */
.navbar-nav .nav-link:hover {
    color: #0d6efd !important;
}

.navbar-nav .nav-link:hover::after {
    transform: scaleX(1);
}

/* For the active page, keep the text blue and the underline visible */
.navbar-nav .nav-link.active {
    color: #0d6efd !important;
}

.navbar-nav .nav-link.active::after {
    transform: scaleX(1);
}

/* Apply similar styles to the mobile sidebar links */
.sidebar-links .nav-link {
    color: #333;
    /* Ensure a consistent default color */
    transition: color 0.3s ease-in-out;
}

.sidebar-links .nav-link:hover,
.sidebar-links .nav-link.active {
    color: #0d6efd !important;
}

/* Apply Exo 2 font to all headings and titles */
h1,
h2,
h3,
h4,
h5,
h6,
.navbar-brand h1,
.card-title,
.artwork-card .card-title {
    font-family: 'Exo 2', sans-serif !important;
    font-weight: 100;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

/* Stronger weight for main headings */
h1,
.navbar-brand h1 {
    font-weight: 200;
}

/* Lighter weight for card titles */
.card-title {
    font-weight: 100;
}

/* Apply Inconsolata font to body text and navigation */
body,
.nav-link,
.navbar-nav,
p,
div,
span,
a,
button,
.btn {
    font-family: 'Inconsolata', monospace !important;
}

.highlight-green {
    color: #9ACD32;
    /* YellowGreen */
    font-weight: bold;
}

.about-list a {
    color: #9ACD32;
    text-decoration: none;
}

.about-list a:hover {
    text-decoration: underline;
}
/* ── Artwork image carousel ── */
.artwork-carousel {
    background: #111;
    border-radius: 8px;
    overflow: hidden;
}

.artwork-slide-img {
    max-height: 70vh;
    width: 100%;
    object-fit: contain;
    background: #111;
}

.artwork-caption {
    background: linear-gradient(to top, rgba(0,0,0,0.65) 0%, transparent 100%);
    bottom: 0;
    left: 0;
    right: 0;
    padding: 1rem 1.5rem 0.75rem;
    font-size: 0.9rem;
    color: #fff;
    text-align: left;
}

/* Thumbnail strip */
.artwork-thumbs {
    padding: 4px 0;
}

.artwork-thumb {
    width: 72px;
    height: 54px;
    object-fit: cover;
    border-radius: 4px;
    opacity: 0.5;
    transition: opacity 0.2s, box-shadow 0.2s;
    cursor: pointer;
    border: 2px solid transparent;
}

.artwork-thumb:hover {
    opacity: 0.85;
}

.artwork-thumb.active {
    opacity: 1;
    border-color: #fff;
    box-shadow: 0 0 0 2px #333;
}

/* ── Carousel item visibility fix ── */
.artwork-carousel .carousel-inner {
    position: relative;
    overflow: hidden;
    width: 100%;
}

.artwork-carousel .carousel-item {
    display: none;
    position: relative;
    width: 100%;
}

.artwork-carousel .carousel-item.active,
.artwork-carousel .carousel-item-next,
.artwork-carousel .carousel-item-prev {
    display: block;
}
