/* -------------------- TITLE BAR -------------------- */
/* Sticky Title Bar */
.title-bar {
    position: sticky;
    top: 0;
    z-index: 3000;
    transition: top 0.3s ease;
    /* Smooth hide/show transition */
    background-color: #eeb600;
    padding: 10px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

/* Hide the title bar by moving it up */
.title-bar.hidden {
    top: -100px; /* Move it out of view */
    transition: top 0.3s ease; /* Smooth transition */
}

/* Logo Styling */
.title-bar-left img {
    height: 50px;
    width: auto;
}

/* Hamburger Menu Styling */
.hamburger {
    width: 30px;
    height: 24px;
    display: inline-block;
    position: relative;
    cursor: pointer;
}

.hamburger span {
    display: block;
    position: absolute;
    height: 3px;
    width: 100%;
    background-color: #fff;
    border-radius: 5px;
    transition: all 0.4s ease-in-out;
}

.hamburger span:nth-child(1) {
    top: 0;
}

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

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

/* Active State for Hamburger (X Animation) */
.hamburger.active span:nth-child(1) {
    transform: rotate(45deg);
    top: 10px;
}

.hamburger.active span:nth-child(2) {
    opacity: 0;
    /* Hide middle line */
}

.hamburger.active span:nth-child(3) {
    transform: rotate(-45deg);
    top: 10px;
}

/* -------------------- OFF-CANVAS MENU -------------------- */
/* Off-Canvas Container */
.off-canvas {
    transform: translateX(100%);
    /* Initially hidden */
    transition: transform 0.4s ease;
    /* Smooth slide-in effect */
    position: fixed;
    top: 0;
    right: 0;
    height: 100vh;
    width: 300px;
    background-color: #222;
    color: #fff;
    z-index: 1000;
    overflow-y: auto;
    padding: 1.5rem;
}

/* Open State */
.off-canvas.is-open {
    transform: translateX(0);
    /* Slide into view */
}

/* Menu Links */
.off-canvas .menu {
    list-style: none;
    padding: 0;
    margin: 0;
}

.off-canvas .menu a {
    display: block;
    color: #fff;
    text-decoration: none;
    font-size: 1rem;
    font-weight: bold;
    text-transform: uppercase;
    margin-bottom: 1rem;
    transition: color 0.3s ease, transform 0.3s ease;
}

.off-canvas .menu a:hover {
    color: #eeb600;
    transform: translateX(5px);
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .off-canvas {
        width: 80%;
    }

    .off-canvas .menu a {
        font-size: 0.9rem;
    }
}