/* Reset and base */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;600&display=swap');

body,
html {
    margin: 0;
    padding: 0;
    font-family: 'Georgia', serif;
    color: white;
    background: transparent;
    height: 100%;
    overflow: hidden;
    position: relative;
}

body {
    background: black;
}



.background-video {
    position: fixed;
    top: 0;
    left: 0;
    z-index: -1;
    width: 100%;
    height: 100%;
    overflow: hidden;
    background: black;
}

#bg-video,
.background-video video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: opacity 0.2s ease-in-out;
    display: block;
    opacity: 1;
}


/* Gallery container */
.gallery {
    position: absolute;
    top: 50%;
    left: 60px;
    transform: translateY(-50%);
    display: flex;
    flex-direction: column;
    gap: 24px;
    z-index: 1;
    max-height: 77vh;
    overflow-y: auto;
    padding-right: 10px;
    min-height: 30vh;
    margin-top: 2em;
}

/* Gallery scrollbar hidden */
.gallery {
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.gallery::-webkit-scrollbar {
    display: none;
}

/* Gallery items */
.gallery-item {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
    cursor: pointer;
    color: white;
    position: relative;
    text-align: center;
}

.gallery-item img {
    display: block;
    width: 220px;
    height: auto;
    transition: opacity 0.3s ease;
}

/* Titles and subtitles */
.gallery-item .title {
    font-family: 'Poppins', sans-serif;
    font-weight: 600;
    font-size: 20px;
    color: #ffffff;
}

.gallery-item .subtitle {
    font-family: 'Poppins', sans-serif;
    font-weight: 300;
    font-size: 18px;
    opacity: 0.8;
    color: #c2ff33;
}

/* Footer Text */
.contact {
    font-size: 10px;
    opacity: 0.6;
    position: absolute;
    z-index: 1;
    user-select: none;
}

.contact {
    bottom: 15px;
    left: 40px;
}



a {
    text-decoration: none;
}

header {
    margin-top: 0;
    display: flex;
    justify-content: space-between;
    padding: 1em;
}

.cam-img {
    padding-top: 2em;
    padding-left: 2em;
}

h1 {
    margin: 0;
    font-family: "Poppins", sans-serif;
    text-transform: uppercase;
    font-style: normal;
    font-weight: lighter;
    color: #ffffff;
}

.work-name {
    margin: 0;
    font-family: "Poppins", sans-serif;
    font-size: .9rem;
    font-style: italic;
    font-weight: lighter;
    color: #ffffff;
}

.home-text-wrapper {
    margin-top: 1em;
    margin-left: .5em;
}

/* Nav menu */
nav ul {
    position: fixed;
    z-index: 999;
    top: 0;
    right: 0;
    height: 100vh;
    margin: 0;
    list-style: none;
    width: 40%;
    font-family: Arial, Helvetica, sans-serif;
    text-align: center;
    padding: 2em;
    transform: translateX(100%);
    transition: transform 0.5s ease-in-out;
}

nav ul li {
    margin: 2em 0;
}

nav ul li:nth-of-type(1) {
    margin-bottom: 2em;
}

nav ul li a {
    color: #fff;
    text-decoration: none;
    font-weight: bold;
    text-transform: uppercase;
    font-size: 1.2rem;
}

.gallery-item a {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    text-decoration: none;
    color: inherit;
}

.gallery-item .title,
.gallery-item .subtitle {
    display: block;
    text-align: left;
}

.menu-toggle {
    display: block;
    background: none;
    border: none;
    font-size: 28px;
    color: white;
    cursor: pointer;
    z-index: 4;
    position: absolute;
    top: 1.5em;
    right: 1.5em;
}

.open {
    transform: translateX(0%);
}

/*brands*/
.brands {
    position: absolute;
    top: 50%;
    right: 60px;
    /* mirrors .gallery’s left:60px */
    transform: translateY(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    /* align logos to right edge */
    gap: 10px;
    max-height: 77vh;
    overflow-y: auto;
    z-index: 1;
}

.brands h2 {
    font-family: 'Poppins', sans-serif;
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 10px;
    text-align: center;
}

.brands ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.brands li {
    margin-bottom: 12px;
}

.brands img {
    width: 200px;
    /* control logo size */
    height: auto;
    display: block;
}


.brands h2::after {
    content: "";
    display: block;
    width: 265px;
    /* length of the line */
    height: 5px;
    /* thickness of the line */
    background-color: rgb(129, 184, 0);
    /* subtle white */
    margin-top: 6px;
    margin-left: auto;
    /* aligns line to the right under the text */
}


/* Responsive: Desktop */
@media (min-width: 1026px) {
    .wrap {
        margin: 0;
    }

    .hide-desktop {
        display: none;
    }

    .hide-mobile {
        display: block;
    }
}

@media (min-width: 1025px) {
    .wrap {
        margin: 0;
    }

    .hide-desktop {
        display: none;
    }

    .hide-mobile {
        display: block;
    }

    header-left {
        display: flex;
        justify-content: space-between;
        align-items: center;
        gap: 1em;
    }

    header-left .divider {
        height: 50px;
        width: 1px;
        border-right: 1px solid #fff;
    }

    nav ul {
        position: unset;
        display: flex;
        gap: 2em;
        height: auto;
        width: auto;
        transform: translateX(0%);
    }

    nav ul li a {
        font-size: 1.2rem;
    }
}

/* Mobile / Tablet view */
@media (max-width: 1025px) {
    .gallery {
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%) scale(0.8);
        align-items: center;
        gap: 16px;
        max-height: 77vh;
        padding-right: 0;
        padding-bottom: 10px;
    }

    .gallery-item img {
        display: none;
    }

    .gallery-item {
        align-items: center;
        gap: 4px;
    }

    .mobile-overlay {
        display: block;
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: rgba(0, 0, 0, 0.3);
        backdrop-filter: blur(4px);
        -webkit-backdrop-filter: blur(10px);
        z-index: -1;
    }

    .gallery,
    .contact {
        z-index: 2;
    }

    .contact {
        left: 20px;
        font-size: 9px;
    }


    nav ul {
        background-color: rgba(0, 0, 0, 0.85);
        backdrop-filter: blur(6px);
    }

    .gallery-item a {
        align-items: center;
        text-align: center;
        width: 100%;
    }

    .gallery-item .title,
    .gallery-item .subtitle {
        text-align: center;
        width: 100%;
    }

    .brands {
        display: none;
    }
}




/* Active underline effect for mobile */
.gallery-item {
    position: relative;
    display: inline-block;
    cursor: pointer;
    /* For mobile list, you can override display: block or flex as needed */
}

.progress-line {
    position: absolute;
    bottom: -6px;
    left: 0;
    height: 2px;
    width: 0%;
    background-color: white;
    transition: width 0.1s linear;
}

/* Show on mobile screens only */
@media (max-width: 1025px) {
    .progress-line {
        display: block;
    }
}

/*contact btn overlay*/

/* Plain plus sign button */
/* Plain plus sign button with spin effect */
.contact-btn {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background: transparent;
    color: #ffffff;
    /* plus sign color */
    border: none;
    font-size: 32px;

    cursor: pointer;
    z-index: 1000;
    transition: transform 0.3s ease;

}

.contact-btn:hover {
    transform: rotate(90deg);
    /* spin only, no size change */
}


/* Overlay */
.contact-overlay {
    display: none;
    /* hidden by default */
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(4px);
    z-index: 2000;
    justify-content: center;
    align-items: center;
}

.overlay-content {
    font-family: 'Poppins';
    font-weight: lighter;
    font-style: italic;
    padding: 2em;

    text-align: center;
    color: white;


}

.overlay-content a {
    color: #ffffff;
    font-size: 1.2rem;
    text-decoration: none;
}

.close-overlay {
    position: absolute;
    top: 20px;
    right: 30px;
    font-size: 2rem;
    color: white;
    cursor: pointer;
}

/* Fade-in / fade-out keyframes */
@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

@keyframes fadeOut {
    from {
        opacity: 1;
    }

    to {
        opacity: 0;
    }
}

/* Overlay active state */
.contact-overlay.show {
    display: flex;
    animation: fadeIn 0.4s ease forwards;
}



/*contact links*/

.contact-link-logos {
    display: flex;
    flex-direction: row;
    justify-content: space-evenly;
    margin: 0;
    padding-left: 0;
    list-style: none;


}

/*animeated underline*/
.animated-underline {
    position: relative;
    color: #ffffff;
    /* Adjust color */
    text-decoration: none;
    transition: color 0.3s ease;
}

.animated-underline::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    /* Thickness of underline */
    left: 0;
    bottom: -2px;
    /* Space between text and line */
    background-color: #ffffff;
    /* Underline color */
    transition: width 0.3s ease;
}

.animated-underline:hover::after {
    width: 100%;
}