
html, body {
    height: 100%;
    overflow-x: hidden;
    margin: 0;
}
body {
    font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
    display: flex;
    flex-direction: column;
}
main {
    flex: 1;
    overflow-y: auto; 
    scroll-behavior: smooth;
}
.fold {
    display: flex;
    flex-direction: column;
    padding-top: 5rem; 
    padding-bottom: 5rem;
}
#home.fold {
    padding-top: 8rem; 
}

.text-container {
    flex: 0 0 auto; 
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    padding-bottom: 2rem;
    box-sizing: border-box;
}
.video-container {
    flex: 0 0 auto;
    width: 90vw;
    margin-left: auto;
    margin-right: auto;
    max-width: 1296px;
    aspect-ratio: 16/9;
    position: relative; /* For absolute positioning of controls */
}
/* Ensure iframe fills the container */
.video-container iframe, .video-container .yt-wrapper {
    width: 100%;
    height: 100%;
}

/* Transparent Click Shield to hide YouTube Hover UI */
.yt-click-shield {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 5; /* Above iframe (0), below controls (10) */
    cursor: pointer; /* Show pointer to indicate clickability */
    background: transparent; /* Invisible */
}

/* Custom YouTube Controls */
.yt-controls {
    position: absolute;
    right: 10px;
    top: 10px; /* Position at top-right */
    display: flex;
    justify-content: flex-end;
    gap: 8px;
    pointer-events: none; /* Let clicks pass through container */
    z-index: 10;
}

.yt-controls button {
    pointer-events: auto; /* Re-enable clicks for buttons */
    border: none;
    padding: 8px 12px;
    border-radius: 4px;
    background: rgba(0, 0, 0, 0.6);
    color: #fff;
    cursor: pointer;
    font-size: 16px;
    transition: background 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.yt-controls button:hover {
    background: rgba(0, 0, 0, 0.8);
}

/* Responsive controls */
@media (max-width: 768px) {
    .yt-controls button {
        padding: 6px 10px;
        font-size: 14px;
    }
}

@media (max-width: 480px) {
    .yt-controls button {
        padding: 5px 8px;
        font-size: 12px;
    }
}

.gradient-fold-1 {
    background: linear-gradient(180deg, #e9f2ff 0%, #ffffff 100%);
}
.gradient-fold-2 {
    background: linear-gradient(180deg, #f1f3f5 0%, #ffffff 100%);
}
.gradient-fold-3 {
    background: linear-gradient(180deg, #e6f7ff 0%, #ffffff 100%);
}
.gradient-fold-4 {
    background: linear-gradient(180deg, #f0f0f5 0%, #ffffff 100%);
}
#features.fold, #how-it-works.fold {
    justify-content: center;
}

.hamburger-menu.open .line1 {
    transform: rotate(-45deg) translate(-5px, 6px);
}
.hamburger-menu.open .line2 {
    opacity: 0;
}
.hamburger-menu.open .line3 {
    transform: rotate(45deg) translate(-5px, -6px);
}
.menu-overlay {
    transition: opacity 0.3s ease-in-out;
}
.logo-responsive {
    height: 48px;
}
.btn-responsive {
    padding: 0.25rem 0.5rem;
    font-size: 0.875rem;
}
/* Carousel styles (if still needed for other components) */
.carousel-container, .carousel, .carousel-inner, .carousel-item {
    height: 100%;
}
.carousel-control-prev,
.carousel-control-next {
    width: 50px;
    height: 50px;
    background-color: rgba(240, 240, 245, 0.25);
    border-radius: 50%;
    top: 50%;
    transform: translateY(-50%);
    opacity: 0.9;
    transition: opacity 0.3s ease;
}
.carousel-control-prev:hover,
.carousel-control-next:hover {
    background-color: rgba(233, 236, 239, 0.5);
    opacity: 1;
}
.carousel-control-prev {
    left: -25px;
}
.carousel-control-next {
    right: -25px;
}
.carousel-control-prev-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%230d6efd'%3e%3cpath d='M11.354 1.646a.5.5 0 0 1 0 .708L5.707 8l5.647 5.646a.5.5 0 0 1-.708.708l-6-6a.5.5 0 0 1 0-.708l6-6a.5.5 0 0 1 .708 0z'/%3e%3c/svg%3e");
}
.carousel-control-next-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%230d6efd'%3e%3cpath d='M4.646 1.646a.5.5 0 0 1 .708 0l6 6a.5.5 0 0 1 0 .708l-6 6a.5.5 0 0 1-.708-.708L10.293 8 4.646 2.354a.5.5 0 0 1 0-.708z'/%3e%3c/svg%3e");
}
.carousel-indicators [data-bs-target] {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background-color: #adb5bd;
    opacity: 1;
}
.carousel-indicators .active {
    background-color: #0d6efd;
}
.display-5, .h2-responsive {
    font-size: calc(1.4rem + 1.2vw);
    font-weight: bold;
}
.lead {
    font-size: calc(0.8rem + 0.9vw);
}
.tabs-wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
}
.nav-tabs {
    border: none;
}
.prev-btn, .next-btn {
    flex-shrink: 0;
    background: transparent;
    border: none;
    z-index: 10;
}
.prev-btn img, .next-btn img, .prev-btn i, .next-btn i {
    width: 24px;
    height: 24px;
}
.nav-tabs .nav-link {
    color: black;
    border-bottom-width: 2px;
}
.nav-tabs .nav-link.active {
    color: #0d6efd;
    border-color: #0d6efd #dee2e6 #fff;
}
.nav-tabs .nav-item {
    white-space: nowrap;
}
header {
    z-index: 1030;
}
main > .fold {
    position: relative;
    z-index: 1;
}
#footer-placeholder {
    position: relative;
    z-index: 10;
}

@media (max-width: 767.98px), (max-height: 500px) and (orientation: landscape) {
    main {
      height: auto !important;
      overflow-y: visible !important;
    }
    body {
        padding-top: 0; /* Remove body padding for mobile view */
    }
    .fold {
        height: auto !important;
        padding-top: 5rem;
        padding-bottom: 5rem;
    }
    .text-container, .video-container {
        height: auto !important;
        flex-basis: auto !important;
    }
    .tabs-wrapper {
        justify-content: space-between;
    }
     .nav-tabs {
        display: flex;
        flex-wrap: nowrap;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        -ms-overflow-style: none;
        scrollbar-width: none;
        scroll-behavior: smooth;
    }
    .nav-tabs::-webkit-scrollbar {
        display: none;
    }
    .nav-tabs .nav-item {
        flex: 0 0 50%;
        text-align: center;
    }
    .nav-tabs .nav-link {
        width: 100%;
        white-space: normal;
    }
}

@media (min-width: 768px) {
    .logo-responsive {
        height: 64px;
    }
    .btn-responsive {
        padding: 0.375rem 0.75rem;
        font-size: 1rem;
    }
    .display-5 {
        font-size: 3rem;
    }
    .h2-responsive {
        font-size: 2.5rem;
    }
    .lead {
        font-size: 1.25rem;.
    }
    .nav-tabs {
        flex-wrap: nowrap;
    }
    .prev-btn,.next-btn {
        display: none;
    }
}
@media (min-width: 1024px) {
    .video-container {
        width: 90vw;
    }
}
