.feature-video {
    display: inline-block;  /* shrink to fit video width */
}

.feature-video iframe {
    display: block;         /* remove extra spacing */
}

.feature-description {
    background: #111;
    color: #fff;
    padding: 10px 15px;
    text-align: center;
    font-size: 14px;
    line-height: 1.4em;
    border-top: 2px solid #333;
    box-sizing: border-box; /* include padding in width */
}

.feature-description h2 {
    margin: 0 0 5px;
    font-size: 18px;
}

.feature-description p {
    margin: 0;
    font-size: 14px;
    color: #ccc;
}

/* ************************ */
.carousel-wrapper {
    position: relative;  /* important for nav buttons */
    width: 100%;
    max-width: 900px;
    margin: 20px auto;
    overflow: hidden;
}

.carousel-container {
    display: flex;
    overflow-x: auto;
    scroll-behavior: smooth;
    gap: 12px;
    padding: 10px 0;
    scrollbar-width: none;
    scroll-snap-type: x mandatory;
}

.carousel-container::-webkit-scrollbar {
    display: none;
}

.thumbnail {
    position: relative;
    flex: 0 0 auto;
    width: 180px;
    cursor: pointer;
    border-radius: 8px;
    scroll-snap-align: start;
}

.thumbnail img {
    width: 100%;
    height: auto;
    border-radius: 8px;
}

.video-info {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(0,0,0,0.6);
    color: white;
    padding: 10px;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.thumbnail:hover .video-info {
    opacity: 1;
    transform: translateY(0);
}

/* Navigation buttons */
.carousel-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-color: rgba(0,0,0,0.6);
    color: white;
    border: none;
    padding: 10px;
    cursor: pointer;
    z-index: 20;       /* must be higher than thumbnails */
    font-size: 1.5rem;
    border-radius: 5px;
}
.carousel-nav.left { left: 20px; }
.carousel-nav.right { right: 20px; }

/* ************************ */

body {
    all: unset;
    background-color: var(--off-black);
    color: var(--off-white);
    font-family: "Inter", sans-serif;
}
a {
    all: unset;
    color: var(--off-white);
    font-family: "Inter", sans-serif;
    font-size: 1.25rem;
    margin-left: 1rem;
    cursor: pointer;
}
h2 {
    justify-self: center;
    font-size: 2.5rem;
}
:root {
    --primary-blue: #33D8FC;
    --primary-orange: #EF8809;
    --off-black: #1C1C1E;
    --black: #131313;
    --off-white: #E0E0E0;
}
.navbar {
    z-index:1000;
}
.hidden {
    display:none;
}
#logo {
    display: flex;
    height: 100%;
    align-items: center;
}
.action-button {
    all: unset;
    background-color: var(--primary-blue);
    color: var(--off-black);
    padding: 0.5rem 1rem;
    border-radius: 0.5rem;
    font-weight: bold;
    cursor: pointer;
    font-size: 1.5rem;
}
.action-button:hover {
    background-color: var(--off-black);
    color: var(--off-white);
}
.action-button-alt {
    all: unset;
    background-color: var(--off-black);
    color: var(--primary-blue);
    padding: 0.5rem 1rem;
    border-radius: 0.5rem;
    font-weight: bold;
    cursor: pointer;
    font-size: 1.5rem;
}
.action-button-alt:hover {
    background-color: var(--off-white);
    color: var(--off-black);
}

@media screen and (max-width: 767px) {
    #navbar-desktop {
        display: none;
    }
    #navbar-mobile {
        display: flex;
        justify-content: space-between;
        align-items: center;
    }
    #burger-menu {
        width: 3rem;
        height: 3rem;
        padding: 0 20px;
        color: white;
    }
    #section-hero {
        width: 100%;
        background-size: cover;
        display: flex;
        flex-direction: column-reverse;
        height: 650px;
        justify-content: center;
        align-items: center;
        gap: 50px;
        overflow: hidden;
        position: relative;
    }
    #hero-bg {
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        object-fit: cover;
        opacity: .2;
        z-index: -1;
    }
    #hero-text {
        display: flex;
        flex-direction: column;
        text-align: center;
        align-items: center;
    }
    #hero-text h1 {
        display:flex;
        flex-direction: column;
        margin: 0 !important;
    }
    #hero-text p {
        margin: 0;
        margin-bottom: 1.5rem;
        width: 300px;
    }
    #hero-text-span1 {
        font-size: 1.2rem;
        /* margin-bottom: -1rem; */
        line-height: 50%;
        font-weight: bolder
    }
    #hero-text-span2 {
        font-size: 2.2rem;
        font-weight: bolder;
        color: var(--primary-blue);
        letter-spacing: -.06rem;
    }
    #hero-img {
        height: 70%;
        object-fit: cover;
        padding: 10px;
        max-width: 300px;
        max-height: 300px;
    }
    .services-item-container {
        width: 300px;
        background-color: var(--black);
        border-radius: 20px;
        overflow: hidden;
        margin:auto;
    }
    .services-item {
        overflow: hidden;
        background-color: var(--black);
        justify-items: center;
        display: flex;
        flex-direction: column-reverse;
        margin: auto;
        gap: 30px;
    }
    .services-text {
        justify-content: center;
        display: flex;
        flex-direction: column;
        gap: 10px;
        padding: 0px 30px 30px 30px;
    }
    h3 {
        font-size: 1.5rem;
    }
    .services-text h3 {
        color: var(--primary-blue);
        text-transform: uppercase;
        margin: 0;
        font-size: 1.5rem;
    }
    .services-text p {
        margin: 0;
    }
    #services-container {
        display: flex;
        flex-direction: column;
        gap: 30px;
        /* width: 80%; */
        margin: auto;
    }
    .services-img {
        object-fit:cover;
        aspect-ratio: 16/9;
    }
    #section-videos {
        display: flex;
        flex-direction: column;
        align-items: center;
    }
    #section-videos iframe {
        aspect-ratio: 16/9;
        width: 300px;
    }
    #section-about {
        display: flex;
        flex-direction: column;
        align-items: center;
        margin: auto;
        width: 300px;
    }
    #section-about h2 {
        margin-bottom: 1rem;
    }
    #about-cards {
        display: flex;
        flex-direction: column;
        gap: 30px;
        justify-content: center;
    }
    .about-card-item {
        display: flex;
        flex-direction: column;
        align-items: center;
        padding: 30px;
        background-color: var(--black);
        border-radius: 20px;
    }
    .about-card-item img {
        width: 100px;
    }
    .about-card-item h3 {
        color: var(--primary-blue);
        margin-bottom: 0px;
        text-align: center;
    }
    #section-talent {
        color: var(--off-black);
        margin-top: 2rem;
        display: flex;
        flex-direction: column;
        align-items: center;
        padding-bottom: 2rem;
        background-color: var(--primary-orange);
    }
    #section-talent h3 {
        display: flex;
        flex-direction: column;
        text-align: center;
        gap: 10px;
    }
    #section-talent h3 span:nth-child(1) {
        font-size: 1.4rem;
        font-weight: bold;
    }
    #section-talent h3 span:nth-child(2) {
        font-size: 1rem;
        font-weight:lighter;
    }
        #section-contact {
        display: flex;
        flex-direction: column;
        text-align: center;
    }
    #contact-container {
        display: flex;
        flex-direction: row;
        max-width: fit-content;
        gap: 3rem;
        margin: auto;
    }
    #section-contact form {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 20px;
        width: 300px;
        max-height: fit-content;
    }
    #contact-container form input,
    #contact-container form textarea {
        all: unset;
        width: 100%;
        padding: 10px;
        border-radius: 10px;
        background-color: var(--off-white);
        color: var(--off-black);
        font-size: 1.2rem;
    }
    #contact-container img {
    display: none;
    }
    .contact-submit {
        padding: 10px;
        width: 100%;
    }

    #footer {
        text-align: center;
        padding: 2rem;
        background-color: var(--primary-orange);
        color: var(--off-black);
        margin: 2.5rem 0;
    }

    #footer p {
        margin: 0;
        font-size: 1.2rem;
    }
}

/* Featured video */
.featured-video {
    width: 100%;
    max-height: 60vh;
    background-color: black;
}

.featured-video iframe {
    width: 100%;
    height: 60vh;
    border: none;
}

/* Thumbnail row */
.thumbnail-container {
    display: flex;
    overflow-x: auto;
    gap: 10px;
    padding: 10px;
    background-color: #181818;
    scrollbar-width: thin;
}

.thumbnail {
    flex: 0 0 auto;
    width: 160px;
    cursor: pointer;
    border-radius: 5px;
    overflow: hidden;
    transition: transform 0.2s;
}

.thumbnail img {
    width: 100%;
    display: block;
}

.thumbnail:hover {
    transform: scale(1.05);
}

/* Hide scrollbar on Webkit browsers */
    .thumbnail-container::-webkit-scrollbar {
    display: none;
}

@media screen and (min-width: 768px) and (max-width: 1399px) {
    #navbar-desktop {
        display: none;
    }
    #navbar-mobile {
        display: flex;
        justify-content: space-between;
        align-items: center;
    }
    #burger-menu {
        width: 3rem;
        height: 3rem;
        padding: 0 20px;
        color: white;
    }
    #section-hero {
        width: 100%;
        background-size: cover;
        display: flex;
        flex-direction: column-reverse;
        height: 850px;
        justify-content: center;
        align-items: center;
        gap: 50px;
        overflow: hidden;
        position: relative;
    }
    #hero-bg {
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        object-fit: cover;
        opacity: .2;
        z-index: -1;
    }
    #hero-text {
        display: flex;
        flex-direction: column;
        text-align: center;
        align-items: center;
    }
    #hero-text h1 {
        display:flex;
        flex-direction: column;
        margin: 0 !important;
    }
    #hero-text p {
        margin: 0;
        margin-bottom: 1.5rem;
    }
    #hero-text-span1 {
        font-size: 2.4rem;
        /* margin-bottom: -1rem; */
        line-height: 50%;
        font-weight: bolder
    }
    #hero-text-span2 {
        font-size: 4.2rem;
        font-weight: bolder;
        color: var(--primary-blue);
        letter-spacing: -.06rem;
    }
    #hero-img {
        height: 70%;
        object-fit: cover;
        padding: 10px;
        max-width: 500px;
        max-height: 500px;
    }
    .services-item-container {
        width: 700px;
        background-color: var(--black);
        border-radius: 20px;
        overflow: hidden;
        margin:auto;
    }
    .services-item {
        overflow: hidden;
        background-color: var(--black);
        justify-items: center;
        display: flex;
        flex-direction: column-reverse;
        margin: auto;
        gap: 30px;
    }
    .services-text {
        justify-content: center;
        display: flex;
        flex-direction: column;
        gap: 10px;
        padding: 0px 30px 30px 30px;
    }
    h3 {
        font-size: 1.5rem;
    }
    .services-text h3 {
        color: var(--primary-blue);
        text-transform: uppercase;
        margin: 0;
        font-size: 1.5rem;
    }
    .services-text p {
        margin: 0;
    }
    #services-container {
        display: flex;
        flex-direction: column;
        gap: 30px;
        /* width: 80%; */
        margin: auto;
    }
    .services-img {
        object-fit:cover;
        aspect-ratio: 16/9;
    }
    #section-videos {
        display: flex;
        flex-direction: column;
        align-items: center;
    }
    #section-videos iframe {
        aspect-ratio: 16/9;
        width: 700px;
    }
    #section-about {
        display: flex;
        flex-direction: column;
        align-items: center;
        margin: auto;
        width: 700px;
    }
    #section-about h2 {
        margin-bottom: 1rem;
    }
    #about-cards {
        display: flex;
        flex-direction: column;
        gap: 30px;
        justify-content: center;
    }
    .about-card-item {
        display: flex;
        flex-direction: row;
        align-items: center;
        padding: 30px;
        background-color: var(--black);
        border-radius: 20px;
        gap: 30px;
    }
    .about-card-item img {
        width: 215px;
    }
    .about-card-item h3 {
        color: var(--primary-blue);
        margin-bottom: 0px;
    }
    #section-talent {
        color: var(--off-black);
        margin-top: 2rem;
        display: flex;
        flex-direction: column;
        align-items: center;
        padding-bottom: 2rem;
        background-color: var(--primary-orange);
    }
    #section-talent h3 {
        display: flex;
        flex-direction: column;
        text-align: center;
        gap: 10px;
    }
    #section-talent h3 span:nth-child(1) {
        font-size: 1.4rem;
        font-weight: bold;
    }
    #section-talent h3 span:nth-child(2) {
        font-size: 1rem;
        font-weight:lighter;
    }
        #section-contact {
        display: flex;
        flex-direction: column;
        text-align: center;
    }
    #contact-container {
        display: flex;
        flex-direction: row;
        max-width: fit-content;
        gap: 3rem;
        margin: auto;
    }
    #section-contact form {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 20px;
        width: 600px;
        max-height: fit-content;
    }
    #contact-container form input,
    #contact-container form textarea {
        all: unset;
        width: 100%;
        padding: 10px;
        border-radius: 10px;
        background-color: var(--off-white);
        color: var(--off-black);
        font-size: 1.2rem;
    }
    #contact-container img {
    display: none;
    }
    .contact-submit {
        padding: 10px;
        width: 100%;
    }

    #footer {
        text-align: center;
        padding: 2rem;
        background-color: var(--primary-orange);
        color: var(--off-black);
        margin: 2.5rem 0;
    }

    #footer p {
        margin: 0;
        font-size: 1.2rem;
    }
}

@media screen and (min-width: 1400px) {
    #navbar-mobile {
        display: none;
    }
    #navbar-desktop {
        display: flex;
        height: 5rem;
        color: var(--off-black);
        justify-content: space-between;
        align-items: center;
        margin-left: 1rem;
        margin-right: 1rem;
    }
    #nbd-left {
        display: flex;
        height: 100%;
        gap: 10px;
        align-items: center;
    }
    #nbd-left-text{
        display: flex;
        flex-direction: column;
    }
    #nbd-title1 {
        all:unset;
        font-family: "Inter", sans-serif;
        font-size: 2rem;
        font-weight: bold;
        color: var(--off-white);
    }
    #nbd-title2 {
        all:unset;
        font-family: "Inter", sans-serif;
        font-size: 1.2rem;
        display: flex;
        flex-direction: column;
        font-weight: bold;
        color: var(--primary-orange);
        margin-top: -0.4rem;
    }
    #section-hero {
        width: 100%;
        background-size: cover;
        display: flex;
        min-height: 700px;
        max-height: 860px;
        height: 80vh;
        justify-content: center;
        align-items: center;
        gap: 50px;
        overflow: hidden;
        position: relative;
    }
    #hero-bg {
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        object-fit: cover;
        opacity: .2;
        z-index: -1;
    }
    #hero-text h1 {
        display:flex;
        flex-direction: column;
        margin: 0 !important;
    }
    #hero-text p {
        margin: 0;
        margin-bottom: 1.5rem;
    }
    #hero-text-span1 {
        font-size: 3rem;
        /* margin-bottom: -1rem; */
        line-height: 50%;
        font-weight: bolder
    }
    #hero-text-span2 {
        font-size: 5.2rem;
        font-weight: bolder;
        color: var(--primary-blue);
        letter-spacing: -.06rem;
    }
    #hero-img {
        height: 70%;
        object-fit: cover;
        padding: 10px;
        max-width: 500px;
        max-height: 500px;
    }
    .services-item-container {
        width: 100%;
        background-color: var(--black);
    }
    .services-item {
        background-color: var(--black);
        justify-items: center;
        display: flex;
        height: 300px;
        width: 1200px;
        margin: auto;
        gap: 30px;
        /* justify-content: space-between; */
    }
    .services-item-container:nth-child(even) .services-item {
        flex-direction: row-reverse;
    }
    .services-text {
        justify-content: center;
        display: flex;
        flex-direction: column;
        gap: 10px;
        width: 70%;
    }
    h3 {
        font-size: 1.5rem;
    }
    .services-text h3 {
        color: var(--primary-blue);
        text-transform: uppercase;
        margin: 0;
        font-size: 1.5rem;
    }
    .services-text p {
        margin: 0;
    }
    #services-container {
        display: flex;
        flex-direction: column;
        gap: 30px;
    }
    .services-img {
        object-fit:cover;
        aspect-ratio: 16/9;
    }
    #section-videos {
        display: flex;
        flex-direction: column;
        align-items: center;
    }
    #section-videos iframe {
        aspect-ratio: 16/9;
        height: 600px;
    }
    #section-about {
        display: flex;
        flex-direction: column;
        align-items: center;
        margin: auto;
        width: 950px;
    }
    #section-about h2 {
        margin-bottom: 1rem;
    }
    #about-cards {
        display: flex;
        gap: 30px;
        justify-content: center;
    }
    .about-card-item {
        display: flex;
        flex-direction: column;
        align-items: center;
        padding: 30px;
        background-color: var(--black);
        border-radius: 20px;
        width: 400px;
    }
    .about-card-item img {
        height: 215px;
    }
    .about-card-item h3 {
        color: var(--primary-blue);
        margin-bottom: 0px;
        text-align: center;
    }
    #section-talent {
        color: var(--off-black);
        margin-top: 2rem;
        display: flex;
        flex-direction: column;
        align-items: center;
        padding-bottom: 2rem;
        background-color: var(--primary-orange);
    }
    #section-talent h3 {
        display: flex;
        flex-direction: column;
        text-align: center;
        gap: 10px;
    }
    #section-talent h3 span:nth-child(1) {
        font-size: 2rem;
        font-weight: bold;
    }
    #section-talent h3 span:nth-child(2) {
        font-weight:lighter;
    }
    #section-contact {
        display: flex;
        flex-direction: column;
        text-align: center;
    }
    #contact-container {
        display: flex;
        flex-direction: row;
        max-width: fit-content;
        gap: 3rem;
        margin: auto;
    }
    #section-contact form {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 20px;
        width: 600px;
        max-height: fit-content;
    }
    #contact-container form input,
    #contact-container form textarea {
        all: unset;
        width: 100%;
        padding: 10px;
        border-radius: 10px;
        background-color: var(--off-white);
        color: var(--off-black);
        font-size: 1.2rem;
    }
    #contact-container img {
        height: 460px;
        object-fit: cover;
        border-radius: 20px;
    }
    .contact-submit {
        padding: 10px;
        width: 100%;
    }

    #footer {
        text-align: center;
        padding: 2rem;
        background-color: var(--primary-orange);
        color: var(--off-black);
        margin: 2.5rem 0;
    }

    #footer p {
        margin: 0;
        font-size: 1.2rem;
    }
}

#messenger-float {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background: #0084ff;
    border-radius: 50%;
    width: 60px;
    height: 60px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.3);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    transition: transform 0.2s ease-in-out;
}
#messenger-float:hover {
    transform: scale(1.1);
}
#messenger-float img {
    width: 32px;
    height: 32px;
    filter: invert(1);
}

.popup-message {
    display: none;
    position: fixed;
    top: 20px;
    right: 20px;
    padding: 15px 20px;
    border-radius: 5px;
    z-index: 9999;
    font-weight: bold;
    box-shadow: 0 2px 6px rgba(0,0,0,0.2);
    animation: fadeInOut 5s forwards;
}

.popup-message.success {
    background: #4caf50;
    color: #fff;
}

.popup-message.error {
    background: #f44336;
    color: #fff;
}

@keyframes fadeInOut {
    0%   { opacity: 0; transform: translateY(-10px); }
    10%  { opacity: 1; transform: translateY(0); }
    90%  { opacity: 1; }
    100% { opacity: 0; transform: translateY(-10px); }
}
