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

html, body {
   
    font-family: Arial, sans-serif;
    overflow-x: hidden;
    overflow-y: auto;
    position: relative;
}

body {
    scrollbar-width: none; /* Firefox */
    position: static !important; /* Override any fixed positioning */
}

body::-webkit-scrollbar {
    display: none; /* Chrome, Safari */
}

.hero-section {
    position: relative;
    width: 100%;
    height: 100vh;
    overflow: hidden;
}

.hero-video-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    overflow: hidden;
    transition: background-color 0.3s ease;
}

.hero-video {
    position: absolute;
    top: 50%;
    left: 50%;
    min-width: 100%;
    min-height: 100%;
    width: auto;
    height: auto;
    transform: translate(-50%, -50%);
    object-fit: cover;
    opacity: 0; /* Initially hidden - will be shown by JS */
    transition: opacity 0.5s ease;
}

.hero-content {
    position: relative;
    z-index: 1;
    color: white;
    width: 100%;
    height: 100%;
}

/* SVG Elements Styling */
.svg-element {
    opacity: 1;
    visibility: visible;
    position: absolute;
}

.svg-element.visible {
    opacity: 1;
}

.logo {
    top: 2rem;
    left: 2rem;
    max-width: 300px;
    height: auto;
}

.menu-button {
    top: 2rem;
    right: 2rem;
    text-transform: lowercase;
    font-size: 1rem;
    background: transparent;
}

.title-text {
    bottom: 4rem;
    left: 2rem;
    width: 45vw;
    max-width: 45vw;
    height: auto;
    /*mix-blend-mode: difference;  This will make the text adapt to background colors */
    /*filter: invert(1); /* Helps with visibility on varying backgrounds */
}

.arrow-down {
    bottom: 4rem;
    right: 2rem;
    width: 5vw;
    max-width: 5vw;
    height: auto;
    cursor: pointer;
    transition: transform 0.3s ease;
}

.arrow-down:hover {
    transform: translateY(5px);
}

/* Preloader Styles */
.preloader-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: 9999;
    background: white;
    pointer-events: none;
    transition: transform 1s cubic-bezier(0.4, 0, 0.2, 1);
    transform-origin: center;
    will-change: transform;
}

/* Slide up animation for all devices */
.preloader-exit {
    transform: translateY(-100%);
}

/* Zoom animation class for desktop - now also slides up */
.preloader-zoom {
    transform: translateY(-100%);
}

/* CSS Updates */
.lottie-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: opacity 0.4s ease-in;
    background: white;
}

.lottie-container.fade-in {
    opacity: 1;
}

#lottie-animation {
    width: 100vw;
    height: auto;
}

.lottie-helper1,
.lottie-helper2 {
    position: fixed;
    width: 100vw;
    left: 0;
    background: white;
}

.lottie-helper3,
.lottie-helper4 {
    position: fixed;
    height: 100vh;
    background: white;
    top: 0;
}

.lottie-helper1 { top: 0; }
.lottie-helper2 { bottom: 0; }
.lottie-helper3 { right: 0; }
.lottie-helper4 { left: 0; }

body.preloader-active {
    overflow: hidden;
    height: 100%;
    position: fixed;
    width: 100%;
}

@media (max-width: 768px) {
    #lottie-animation {
        width: auto;
        height: 100%;
    }
    
    .title-text {
        width: 60vw;
        max-width: 80vw;
  bottom: 20vh;
left:20px;

    }
    
   
    .ns_logo {
    width: 250px !important;}
    .menu-button {
        font-size: 0.9rem;
        padding: 0.4rem 1.2rem;
    }
}

@media (orientation: landscape) {
    #lottie-animation {
        width: 100%;
        height: auto;
    }
}