@import url('https://fonts.googleapis.com/css2?family=Anek+Malayalam:wght@100..800&family=Caveat:wght@400..700&family=Kaushan+Script&family=Parkinsans:wght@300..800&family=Poppins:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900&display=swap');

:root{
    --tertiary: #032e53;
    --primary: #084683;
    --secondary: #06834d;
}

*{
    padding: 0;
    margin: 0;
    font-family: "Poppins", serif;
    font-weight: 500;
    font-style: normal;
}

.section-p1{
    padding: 0 70px;

}

h1{
    font-size: 50px;
    font-weight: 800;
    line-height: 54px;
    color: var(--primary);
}
.name {
    color: aliceblue;
    font-weight: 700;
    font-size: 30px;
    cursor:default;
}

h2{
    font-size: 20px;
    font-weight: 700;
    line-height: 54px;
    color: var(--primary);
    color: #3f3f3f;
}
.hl{
    font-size: 20px;
    font-weight: 700;
    line-height: 54px;
    color: var(--primary);
}

p{
    font-size: 16px;
    color: rgb(38, 36, 36);
    margin: 15px 0 20px 0;
}
.logo{
    width: 70px;
    height: 70px;
}

/* .img-11{
    width: 200px;
    height: 200px;
}

.img-34{
    width: 300px;
    height: 400px;
} */

#header{
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 50px;
    background: #032e53;
    box-shadow: 0px 5px 15px rgba(0, 0, 0, 0.623);
    z-index: 999;
    position: sticky;
    top: 0;
    left: 0;
}
#header a{
    text-decoration: none;
}
.log{
    display: flex;
    align-items: center;
    justify-content: center;

}
#navbar{
    display: flex;
    justify-content: center;
    align-items: center;
    
}
#navbar li{
    list-style: none;
    padding: 0 20px;
    position: relative;
    
}

#navbar li a{
    text-decoration: none;
    font-size: 16px;
    font-weight: 500;
    color: white;
    transition: 0.3s ease;
    
}

#navbar li a:hover,
#navbar li a.active{
    color: var(--secondary);
    font-weight: 700;
    /* transform: scale(10.5); */
    
}

#navbar li a.active::after,
#navbar li a:hover::after{
    content: "";
    width: 30%;
    height: 2px;
    background: var(--secondary);
    position: absolute;
    bottom: -0px;
    border-radius: 7px;
    left: 20px;
}

.mobile{
    display: none;
}
#close{
    display: none;
}

/* Main Section */

#main{
    background-color: #f2f4f7;
    height: 85vh;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
}

.contact-btn{
    background-color: #f2f4f7;
    border: 0px;
    padding: 8px 34px; /* Increase padding for better spacing */
    color: var(--primary); /* Contrasting text color */
    font-size: 16px;
    font-weight: 600; 
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(73, 163, 193, 0.332);
    cursor: pointer;
    transition: 0.3s ease;
    animation: float 1.5s ease-in-out infinite;
}
@keyframes float {
    0% {
        transform: translate(-5);
    }
    50% {
        transform: translate(5px); /* Adjust the value for the float height */
    }
    100% {
        transform: translate(0);
    }
}


.contact-btn:hover{
    background-color: var(--primary);
    color: #f2f4f7;
    transform: scale(1.1);
    transition: 0.3s ease;
    animation: none;
    box-shadow: 0 5px 15px rgba(73, 163, 193, 0.505);

}
.contact-btn:active {
    transform: translateY(0); /* Press-down effect */
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.3); /* Reduced shadow when pressed */
    background-color: #f2f4f7;
    color: var(--primary);
}

/* works */

#works{
    display: flex;
    flex-direction: column;
    align-items: center;
}

.bx-container{
    
    display: flex;
    background-color: #ffffff;
    justify-content: space-around;
    flex-wrap: wrap;
    padding: 10px;
} 

#works .bx{
    display: flex;
    flex-direction: column;
    justify-content: center;
    background-color: #f2f4f7;
    margin: 5px;
    width: 18%;
    min-width: 150px;
    padding: 15px 10px;
    border-radius: 5px;
    box-shadow: 0 15px 60px rgba(0, 0, 0, 0.166);
}
#works .bx img{
    width: 100%;
    border-radius: 5px;
}

#works .bx:hover{
    cursor: pointer;
    box-shadow: 0 0px 30px rgba(73, 163, 193, 0.405);
    border: solid 1px #458cca;
    transform: scale(1.06);
    transition: 0.3s ease;
}
/* .cntc{
    color: white;
} */

@media (max-width:799px) {
    #navbar {
        display: flex;
        flex-direction: column;
        justify-content: flex-start;
        align-items: flex-start;
        position: fixed;
        top: 0;
        right: -300px;
        height: 100vh;
        width: 200px;
        background-color: rgb(233, 231, 231);
        box-shadow: 0px 10px 36px rgba(0, 0, 0, 0.366);
        padding: 80px 20px;
        transition: 0.5s ease;

    }
    #navbar.active{
        right: 0px;
    }

    
    .mobile{
        display: flex;
        align-items: center;
    }
    
    .mobile i{
        padding-left: 20px;
        color: white;
        font-size: 24px;
    }

    #navbar li{
        margin-bottom: 25px;
        
    }
    #navbar li a{
        color: #032e53;
    }

    #close{
        display: initial;
        position: absolute;
        top: 30px;
        left: 30px;
        color: #3f3f3f;
        font-size: 30px;
        font-style: normal;
    }
    #bar:hover{
        cursor: pointer;
    }


    /* main */
    #main {
        background-color: #f2f4f7;
        height: 75vh;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
    }

    #works {
        display: flex;
        flex-direction: column;
        align-items: center;
        padding: 0 10px;
    }

    #works .bx{
        margin: 5px;
        width: 23%;
        min-width: 150px;
        
    }
    .bx-container{
        padding: 0;
    }


}

@media (max-width:477px) {

    #main{
        height: 50vh;
    }
    #main h2{
        text-align: center;
        line-height: 40px;
    }

    #header{
        padding: 10px 8px;
        height: 40px;
    }
    .bx-container{
        justify-content: center;
    }
    #works .bx{
        padding: 8px;
    }

}
