
html::-webkit-scrollbar,
body::-webkit-scrollbar {
  display: none;
}/*This is to remove the scroll bar that is normaly seen*/

             
body{
    margin: 0;
    background-color: #F0F3FD;
}


#nav a{
    
    text-decoration:none;
    color:black;

}
#nav{


    height:10vh;
    position:sticky;
    top:0;
    z-index:1000;
    margin: 0;
    background-color:rgba(248, 248, 248, 0.637);
    transition: background-color 0.5s ease;

    display: grid;
    grid-template-columns: 1fr 1fr;
    justify-content: space-between;
    align-items:center;
    padding: 0px 10px;
    text-decoration: none;
    font-size: large;
    font-weight: bold;
    box-shadow: 5px 0px 5px grey;
    
 
}


.nav-links{

    list-style:none;
    display: flex;
    justify-content: space-around;
    
}

/* Hamburger button (hidden on desktop) */
#menu-toggle{
    display: none;
    background: transparent;
    border: none;
    cursor: pointer;
    width: 40px;
    height: 40px;
    align-items: center;
    justify-content: center;
}

#menu-toggle .bar{
    display: block;
    width: 24px;
    height: 2px;
    margin: 4px auto;
    background-color: #000;
}

.nav-btn{

    border: solid 1px #414141;
    width: 7vw;
    height: 4vh;
    border-radius:5px ;
}

#logo-image {
    height: 40px; /* Adjust this to control the logo's height */
    width: auto; /* Maintains the logo's aspect ratio */
}

/* Optional: Add a transition for a smooth hover effect */
#logo-image:hover {
    opacity: 0.8;
}
/* The above section is the navigation area*/
main, #first-section{

    position: relative;
    bottom:65px;
    margin: 0px;
    padding: 0px;

}

#introduction{

    position: relative;
    width: 40%;
    bottom: 740px;
    margin: 30px;
    font-size:20px;
    
}
#second-section{

    position: relative;
    bottom: 140px;
}
#second-section #second-section-title h1{

 
    text-align: center;
}

#about-us-section{

    display: grid;
    grid-template-columns:1fr 1fr 1fr;
    columns: 20px;
    margin-top:0px;
    
    

}


#ceo,
#director,
#lead-designer{

    height: 60vh;
    align-items: center;
    text-align: center;
    padding: 10px;
    margin-bottom: 10px;
    
   
}

#ceo img,
#director img,
#lead-designer img{

    border: solid 1px #FFFF;
    border-radius: 5px;
}

#ceo-txt p{
    margin: 10px;
}

#our-work{

    text-align: center;

}

#carousel img{

    width: 90%;
    height: 80vh;
    object-fit: cover;
    transition:opacity 1s ease-in-out 3s;
    opacity: 1;
}

.fade-out{
    opacity: 0;
}/* Used to transition the image from one to another in javascript*/

footer{
    background-color:#7b7979 ;
    height: 8vh;
    padding: 8px;
}

/* Responsive adjustments for phones */
@media (max-width: 1000px) {
    #nav {
        grid-template-columns: auto 1fr; /* logo + toggle */
        height: auto;
        padding: 8px 10px;
        row-gap: 8px;
    }

    #menu-toggle{
        display: inline-flex; /* show burger */
    }

    .nav-links {
        position: absolute;
        top: 10vh; /* below sticky nav height */
        left: 0;
        right: 0;
        background: rgba(248, 248, 248, 0.98);
        box-shadow: 0 2px 6px rgba(0,0,0,0.1);
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
        padding: 10px;
        margin: 0;
        display: none; /* hidden by default */
    }

    .nav-btn {
        width: auto;
        height: 36px;
        padding: 0 10px;
    }

    #first-section {
        bottom: 0; /* remove large negative offsets */
    }

    #introduction {
        position: static; /* let it flow under the hero image */
        width: 100%;
        margin: 12px 10px;
        font-size: 16px;
    }

    #second-section {
        bottom: 0;
        padding: 10px;
    }

    #about-us-section {
        grid-template-columns: 1fr; /* single column */
        row-gap: 16px;
    }

    #ceo,
    #director,
    #lead-designer {
        height: auto; /* allow natural height */
        padding: 10px 0;
    }

    #carousel img {
        width: 100%;
        height: 40vh; /* smaller height on phones */
    }

    footer {
        height: auto;
        text-align: center;
    }

    /* show nav when active */
    .nav-open .nav-links{
        display: flex;
    }
}