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

html{
    scroll-behavior: smooth;
}

body{
    background: linear-gradient(to top, #dfe9f3 0%, white 100%);
    font-family: 'Montserrat', sans-serif;
    line-height: 1.5;
    color: #393838;
}    

.top{
    visibility: hidden;
    position: fixed;
    bottom: 250px;
    right: 5vw;
    background-color: green;
    box-shadow: 0 0 10px rgba(0,0,0,0.3);
    width: 50px;
    height: 50px;
    border-radius: 8px;
    z-index: 10;
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
    color: #ffffff;
    font-size: 23px;
    opacity: 0; 
    transition: opacity 0.5s ease 0.2s, visibility 0s linear 0.7s;
}

.show {
    visibility: visible;
    opacity: 1;
    transition: opacity 0.8s ease 0.3s, visibility 0s linear 0s;
}
.hero-section {
    height: 100vh;
    position: relative;
    overflow: hidden;
}
 .hero-bg-section{
    height: 90vh;
    max-width: 100vw;
    position: relative;
} 
 .hero-desktop{
    height:100%;
    margin: 0 auto;
    object-fit: cover;
    display: block;
}

.navbar{
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
    height: 60px;
    padding: 0.5rem 5%;
    z-index: 1000;
    background: rgb(18, 24, 62);
    transition: top 0.3s ease-in-out, transform 0.3s ease-in-out; 
}
/* Sticky navbar style */
.sticky {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1001;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    transform: translateY(-100%);
    transition: transform 50s ease-in-out, top 50s ease-in-out;
}

.navbar-placeholder {
    display: none;
    height: 0;
    visibility: hidden;
    /* transition: height 50s ease-in; */
}
.logo {
    text-decoration: none;
    font-size: 1.5rem;
    font-weight: 700;
    cursor:grab;
    color: #ffffff ;
    text-shadow: 2px 2px 4px rgba(0, 100, 0, 0.15);
    transition: transform 0.3s ease, color 1s ease-in-out; /* Adjust the duration as needed */
}
.logo:hover{
    transform:scale(1.2);
}
.nav-links {
    display: flex;
    list-style: none;;
}
.nav-links li{
    margin-left: 2.5rem;
}
.nav-links a{
    text-decoration: none;
    color: #ffffff;
    font-weight: 600;
    transition: color 0.3s ease, transform 0.3s ease;
    display: inline-block;
    padding: 0.5rem;
}

.nav-links a:hover{
    color: orangered;
    transform:scale(1.1);
}
.marquee-container {
    color: rgb(18, 24, 62);
    background-color: #ffffff;
    padding: 10px;
    overflow: hidden;
    white-space: nowrap;
    font-weight:700;
    height: 35px;
}
.marquee-text {
    display: inline-block;
    word-spacing: 2px;
    animation: marquee 30s linear infinite; /* Adjusted time for smooth speed */
}
@keyframes marquee {
    0% { transform: translateX(100%); }
    100% { transform: translateX(-100%); }
}
.star {
    color: rgb(18, 24, 62);
    margin-right: 10px;
}
@media (max-width: 1440px){
.hero-mobile{
    display: none;
}
}

@media (max-width: 870px) {
    .hero-bg-section{
        height: 68vh;
    }
    .hero-mobile{
        display: none;
    }
    .logo:hover{
        color: orangered;
        transform: none;
    }
    .navbar{
        margin-bottom: 0;
    }
    .nav {
        position: relative;
        background-color: #ffffff;
        box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
        z-index: 1000;
    }
    
    .nav-links {
        display: flex;
        flex-direction: column;
        position: absolute;
        top: 60px;
        right: -100%;
        background-color: rgb(18, 24, 62);
        width: auto;
        border-top: 1px solid #ffffff;
        padding: 1rem 0;
        opacity: 0;
        transition: right 0.8s ease, opacity 0.3s ease; /* Transition for sliding and opacity */
        border-bottom-left-radius: 15px;
    }
    
    .nav-links.active {
        opacity: 1;
        right: 0; /* Slide into view */

    }
    
    .nav-links li {
        margin: 0;
        padding: 0.8rem 1.5rem;
        text-align: center;
        transition: background-color 0.3s ease;
    }
        
    .nav-toggle {
        display: block;
        cursor: pointer;
        z-index: 1001;
    }
    
    .nav-toggle span {
        display: block;
        width: 25px;
        height: 3px;
        margin-bottom: 5px;
        background-color: #ffffff;
        transition: all 0.3s ease;
        border-radius: 5px;
    }
    
    .nav-toggle.active span:nth-child(1) {
        transform: translateY(8px) rotate(45deg);
    }
    
    .nav-toggle.active span:nth-child(2) {
        opacity: 0;
    }
    
    .nav-toggle.active span:nth-child(3) {
        transform: translateY(-8px) rotate(-45deg);
    }
    
    .hero-section {
        height: 80vh;
    }
    
    }

@media (max-width: 480px) {
    .hero-bg-section{
        height: 43vh;
        max-width: 100vw;
        margin: 0 ;
        border-radius: 0;
        box-shadow:none;
    }
    
    .hero-section {
        height: 50vh;
    }
    
     .hero-desktop{
        height:100%;
        width: 100%;
        margin: 0 auto;
        object-fit:contain;
        position:absolute;
        transform: scale(1.1);
        display: block;
    }
    
}