:root {
    --bg-color: #000000;
    --text-color: #ffffff;
    --accent-color: #FF4D00;
    /* Bridge PostWorks Orange */
    --font-heading: 'Roboto', sans-serif;
    --font-body: 'Roboto', sans-serif;
    --sidebar-width: 300px;
    --transition-speed: 0.3s;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    scroll-behavior: smooth;
}

body {
    background-color: var(--bg-color);
    color: var(--text-color);
    font-family: var(--font-body);
    overflow-x: hidden;
}

a {
    text-decoration: none;
    color: inherit;
    transition: color var(--transition-speed);
}

ul {
    list-style: none;
}

/* Mobile Menu Toggle */
.mobile-menu-toggle {
    display: none;
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 1001;
    /* Above sidebar */
    background: var(--bg-color);
    border: 1px solid var(--accent-color);
    color: var(--accent-color);
    font-size: 1.5rem;
    padding: 5px 10px;
    cursor: pointer;
    border-radius: 4px;
}

/* Layout Wrapper */
.layout-wrapper {
    display: flex;
    min-height: 100vh;
    transition: transform 0.3s ease;
    /* For slide effect */
}

/* Sidebar */
.sidebar {
    width: var(--sidebar-width);
    background-color: var(--bg-color);
    padding: 40px;
    position: fixed;
    height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    border-right: 1px solid #111;
    z-index: 100;
    overflow-y: auto;
}

.logo-container img {
    max-width: 100%;
}

.main-nav ul {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.main-nav a {
    font-family: var(--font-heading);
    font-size: 2.5rem;
    font-weight: 700;
    text-transform: uppercase;
    color: var(--accent-color);
    line-height: 1;
}

.main-nav a:hover {
    color: #fff;
}

.sidebar-footer {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.footer-block h4 {
    color: var(--accent-color);
    text-transform: uppercase;
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 5px;
    font-family: var(--font-heading);
}

.footer-block a {
    color: var(--accent-color);
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    white-space: nowrap;
}

.footer-block a:hover {
    color: #fff;
}

/* Main Content */
.main-content {
    margin-left: var(--sidebar-width);
    flex: 1;
    padding: 20px;
    background-color: var(--bg-color);
    width: calc(100% - var(--sidebar-width));
}

/* Hero Video */
.hero-video-section {
    margin-bottom: 40px;
}

.video-wrapper {
    position: relative;
    width: 100%;
    aspect-ratio: 16/9;
}

.video-wrapper video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.video-overlay-text {
    position: absolute;
    color: var(--accent-color);
    font-family: var(--font-heading);
    font-size: 2rem;
    font-weight: 700;
    text-transform: uppercase;
    z-index: 10;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.8);
    pointer-events: none;
}

.top-right {
    top: 20px;
    right: 30px;
}

.bottom-left {
    bottom: 20px;
    left: 30px;
}

/* Info Text */
.info-text-section {
    padding: 40px 0;
    margin-bottom: 60px;
}

.info-text-section h2 {
    color: var(--accent-color);
    font-family: var(--font-heading);
    font-size: 3rem;
    font-weight: 700;
    text-transform: uppercase;
    line-height: 1.1;
    max-width: 90%;
}

.scroll-text span {
    color: #555;
    /* Grey initially (Lightened for visibility) */
    transition: color 0.1s linear;
    /* Fast transition for scrubbing */
}

.scroll-text span.active {
    color: var(--accent-color);
    /* Turns orange */
}

/* Portfolio Grid */
.filter-bar {
    margin-bottom: 30px;
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

.filter-btn {
    background: none;
    border: none;
    color: #444;
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 700;
    text-transform: uppercase;
    cursor: pointer;
    transition: color 0.3s;
}

.filter-btn.active,
.filter-btn:hover {
    color: var(--accent-color);
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
}

.gallery-item {
    cursor: pointer;
    overflow: hidden;
}

.gallery-item img {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.5s ease;
}

.gallery-item:hover img {
    transform: scale(1.05);
}

.gallery-item .overlay-info {
    display: none;
}

/* Lightbox */
.lightbox {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.95);
    justify-content: center;
    align-items: center;
}

.lightbox.active {
    display: flex;
}

.lightbox-content {
    max-width: 90%;
    max-height: 90vh;
}

.close-lightbox {
    position: absolute;
    top: 20px;
    right: 40px;
    color: var(--accent-color);
    font-size: 50px;
    cursor: pointer;
}

/* Responsive Styles */
@media (max-width: 1024px) {
    /* Tablet/Mobile Breakpoint */

    .mobile-menu-toggle {
        display: block;
    }

    .sidebar {
        /* Hidden by default on mobile, slides in */
        transform: translateX(-100%);
        transition: transform 0.3s ease;
        width: 80%;
        /* Takes up most of screen when open */
        max-width: 300px;
        box-shadow: 5px 0 20px rgba(0, 0, 0, 0.5);
    }

    /* When menu is open */
    .layout-wrapper.mobile-menu-open .sidebar {
        transform: translateX(0);
    }

    /* Push content over when menu open? Optional. 
       Let's just overlay the menu for cleaner look on small screens */

    .main-content {
        margin-left: 0;
        width: 100%;
        padding: 20px;
    }

    .info-text-section h2 {
        font-size: 2rem;
        /* Smaller heading */
    }

    .video-overlay-text {
        font-size: 1.2rem;
    }

    .gallery-grid {
        grid-template-columns: repeat(auto-fill, minmax(100%, 1fr));
        /* Single column on phone */
    }

    .top-right {
        top: 10px;
        right: 15px;
    }

    .bottom-left {
        bottom: 10px;
        left: 15px;
    }

    .video-wrapper {
        aspect-ratio: 16/9;
        /* Keep usage of space sane */
        margin-top: 40px;
        /* Space for toggle button */
    }
}