.sidebar {
    background-color: #343a40;
    color: #fff;
    position: fixed;
    top: 0;
    left: 0;
    width: 300px;
    height: 100vh;
    padding-top: 20px;
    padding-bottom: 0;
    overflow-y: auto;
    pointer-events: auto;
    z-index: 1000;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.sidebar::-webkit-scrollbar {
    display: none;
}

.sidebar .nav-item {
    margin-bottom: 30px;
}

section {
    scroll-margin-top: 80px;
}

.sidebar .nav-link {
    color: #fff;
    font-size: 18px;
    padding: 15px 25px;
    text-transform: uppercase;
    border-left: 3px solid transparent;
    transition: all 0.3s ease;
}

.nav-link.active {
    color: #007bff;
    font-weight: bold;
}

.sidebar .nav-link:hover {
    color: #f39c12;
    background-color: #444;
    border-left: 3px solid #f39c12;
}

.sidebar .nav-link i {
    margin-right: 10px;
    font-size: 20px;
}

.menu-toggler {
    display: none;
    position: fixed;
    top: 15px;
    right: 15px;
    z-index: 1100;
    background-color: #343a40;
    color: #fff;
    border: none;
    width: 45px;
    height: 45px;
    border-radius: 5px;
    cursor: pointer;
    font-size: 1.5rem;
    align-items: center;
    justify-content: center;
}

.sidebar-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 999;
}

@media (max-width: 991px) {
    .menu-toggler {
        display: flex;
    }

    .sidebar {
        transform: translateX(-100%);
        transition: transform 0.3s ease-in-out;
        width: 280px;
    }

    .sidebar.show {
        transform: translateX(0);
    }

    .sidebar-overlay.show {
        display: block;
    }
}

main {
    margin-left: 300px;
    padding: 20px;
    transition: margin-left 0.3s ease;
}

@media (max-width: 991px) {
    main {
        margin-left: 0 !important;
        width: 100%;
        padding: 15px;
    }
}

@media (max-width: 576px) {
    main {
        padding: 10px;
    }
}

body,
html {
    margin: 0;
    padding: 0;
    height: 100%;
    scroll-behavior: smooth;
}

body {
    overflow-x: hidden;
}

.global-video-background {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: -1;
    overflow: hidden;
}

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

.video-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.site-content {
    position: relative;
    z-index: 1;
    color: white;
}

.transition-video {
    height: 100px;
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0.7), transparent);
    z-index: 2;
    position: relative;
}

.scroll-reveal {
    opacity: 0;
    transform: scale(0.9) translateY(150px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.scroll-reveal.visible {
    opacity: 1;
    transform: scale(1) translateY(0);
}

.reveal-left {
    transform: scale(0.9) translateX(-150px);
}

.reveal-right {
    transform: scale(0.9) translateX(150px);
}

.reveal-top {
    transform: scale(0.9) translateY(-150px);
}

@media (max-width: 768px) {

    .reveal-left,
    .reveal-right {
        transform: scale(0.9) translateY(50px) !important;
    }

    .reveal-left.visible,
    .reveal-right.visible {
        transform: scale(1) translateY(0) !important;
    }

    .scroll-reveal {
        transition: opacity 0.5s ease-out, transform 0.5s ease-out;
    }
}

.iframe-container {
    position: relative;
    height: 400px;
}

@media (max-width: 768px) {
    .iframe-container {
        height: 300px;
    }
}

.iframe-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6);
    color: white;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 2;
    cursor: pointer;
    font-weight: 500;
    border-radius: 0.375rem;
}

.iframe-container iframe {
    width: 100%;
    height: 100%;
    border: 0;
    border-radius: 0.375rem;
    z-index: 1;
    pointer-events: none;
}

.iframe-container.active iframe {
    pointer-events: auto;
}

.iframe-container.active .iframe-overlay {
    display: none;
}

#btnGoogleSheet {
    top: 0px;
    right: 0px;
    z-index: 3;
    color: #1a73e8;
    padding: 3.265px 12px;
    font-size: 0.85rem;
    font-weight: 500;
    text-decoration: none;
    transition: background-color 0.2s ease;
}

.iframe-container:not(.active) #btnGoogleSheet {
    color: #000;
}

.sidebar-social {
    padding: 10px 0;
    font-size: 0.8rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.sidebar-social .social-link {
    color: #ccc;
    margin: 0 8px;
    font-size: 1.6rem;
    transition: color 0.3s;
}

.sidebar-social .social-link:hover {
    color: #fff;
}

.custom-modal {
    display: none;
    position: fixed;
    z-index: 1050;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.8);
    align-items: center;
    justify-content: center;
}

.custom-modal-content {
    position: relative;
    width: 90%;
    height: 90%;
    max-width: 1200px;
    max-height: 800px;
    background: #fff;
    color: black;
    border-radius: 10px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

@media (max-width: 768px) {
    .custom-modal-content {
        width: 95%;
        height: 95%;
        max-height: none;
    }
}

.custom-close-btn {
    position: absolute;
    top: 10px;
    right: 20px;
    font-size: 2rem;
    color: black;
    background: none;
    border: none;
    cursor: pointer;
    z-index: 10;
}

.carousel-inner {
    flex: 1;
}

.carousel-item {
    padding: 20px;
}

@media (max-width: 768px) {
    .carousel-item {
        padding: 10px;
    }
}

.carousel-control-prev,
.carousel-control-next {
    filter: invert(1);
}

.custom-title,
.custom-section-title {
    font-weight: bold;
}

.carousel {
    overflow-x: hidden;
}

.modal {
    overflow-x: hidden;
}

@media (max-width: 768px) {
    .container {
        padding-left: 10px;
        padding-right: 10px;
    }

    .card {
        margin-bottom: 15px;
    }

    .row {
        margin-left: -5px;
        margin-right: -5px;
    }

    .row>[class*="col-"] {
        padding-left: 5px;
        padding-right: 5px;
    }
}