
@import url('https://fonts.googleapis.com/css2?family=Fira+Sans: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');


*{
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: "Poppins", sans-serif;
} 
html{
    scroll-behavior: smooth;
    overflow-x: hidden;
} 
body{
    background-position: center;
    background-attachment: fixed;
    background-size: cover;
    overflow: scroll;
    overflow-x: hidden;
    width: 100%;
}
.bg{
    background: linear-gradient(rgba(0,0,0,0),rgba(0,0,0,0)), url(/img/CRFM-bg.png) no-repeat;
    background-position: center;
    background-attachment: fixed;
    background-size: cover;
    overflow: hidden;
}
header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1px 5%;
    width: 100%;
    box-sizing: border-box;
    position: fixed;
    top: 2%;
    left: 0;
    z-index: 999;
}
header img.crf-logo {
    max-height: 60px; /* Adjust the height of the logo as necessary */
    flex-shrink: 0;   /* Prevent the logo from shrinking */
}
/*Navigation Bar Styling*/
.navbar {
    display: flex;
    align-items: center;
    justify-content: flex-end; /* Align nav links to the right */
    width: 100%; /* Adjust width to ensure it aligns properly */
}
.nav-links {
    list-style: none;
    display: flex;
    margin: 0;
    padding: 0;
}
.nav-links li {
    padding: 10px 20px; /* Adjust as needed */
}
.nav-links li a:hover {
    color: #007bff; /* Change to your desired hover color */
}
.nav-links li a {
    text-decoration: none;
    color: #000;
    transition: color 0.2s ease;
}
.crf-logo{
    z-index: 998;
}
.burger{
    display: none;
    cursor: pointer;
  }
.burger div{
    width: 25px;
    height: 3px;
    background-color: #333;
    margin: 5px;
    transition: all 0.3s ease;
}
/*Home Styling*/
.home{
    position: relative;
    width: 100%;
    height: 100vh;
    display: flex;
    justify-content: space-between;
    align-items: start;
    margin-left: auto;
    margin-right: auto;
    padding-left: 100px;
}
.home .textbox{
    margin-top: 20%;
    margin-left: 5%;
}
.home h1{
    font-family: "Fira sans";
    font-size: 100px;
    color: white;
}
.home h3{
    font-size: 32px;
    font-weight: 100;
    color: #2E371D;
    background-color: #F1DEBE ;
    width: fit-content;
    padding: 1%;
}
/* About Styling */
.about{
    position: relative;
    width: 100%;
    height: 100vh;
    display: flex;
    justify-content: space-between;
    align-items: start;
    margin-left: auto;
    margin-right: auto;
    padding-left: 100px;
    background-color: #F1DEBE;
}
.textbox-about{
    width: 100%;
    height: 80vh;
    margin-top: 10%;
    margin-left: 10%;
    margin-right: 20%;
    z-index: 900;
}
.textbox-about h3{
    font-size: 36px;
}
.textbox-about h5{
    font-size: 20px;
}
.textbox-about p{
    font-size: 18px;
    letter-spacing: 1px;
    word-spacing: 3px;
}
.about img{
    height: 477px;
    position: absolute;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    bottom: 0;
}
/* Technologies Styling */
.technologies{
    position: relative;
    width: 100%;
    height: 100vh;
    display: flex;
    justify-content: space-between;
    align-items: start;
    margin-left: auto;
    margin-right: auto;
    padding-left: 100px;
    background-color: #4F8C84;
}
.overlay {
    position: absolute; 
    top: 0; 
    left: 0; 
    width: 40%; 
    height: 100%; 
    background-color: #FDF6EA; 
    pointer-events: none; 
}
.tech-imgs{
    padding-top: 5%;
    height: 900px;
    z-index: 800;
}
.tech-imgs .tech1{
    position: absolute;
    top: 15%;
}
.tech-imgs .tech2{
    position: absolute;
    left: 28%;
}
.tech-imgs .tech3{
    position: absolute;
    top: 45%;
    right: 38%;
}
.textbox-tech1{
    position: absolute;
    top: 60%;
    width: 30%;
}
.textbox-tech1 h2{
    font-size: 38px;
    margin-bottom: 30px;
}
.textbox-tech1 p{
    text-align: justify;
}
.textbox-tech2{
    position: absolute;
    top: 18%;
    width: 37%;
    right: 0;
    text-align: justify;
    padding-right: 5%;
}
.textbox-tech2 ul{
    list-style-type: none;
    font-weight: bolder;
    color: #F1DEBE;
}
.textbox-tech2 span{
    color: #000000;
    font-weight: 300;
}
/* Business Styling */
.business{
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 20px;
    height: 100vh;
    background-color: white;
}
.textbox-business, .imgbox-business{
    flex: 1;
    padding: 20px;
}
.textbox-business{
    position: relative;
    top: 20%;
    width: 40%;
    height: 60%;
    left: 5%
}
.textbox-business h1{
    font-size: 36px;
}
.imgbox-business{
    display: flex; 
    flex-direction: column; 
    align-items: center; 
    justify-content: center; 
    position: relative;
    top: 20%;
}
.imgbox-business h1{
    font-size: 36px;
    padding-bottom: 20px;
}
.imgbox-business img{
    height: 400px;
}
.imgbox{
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
}
.imgbox .petronas{
    height: 250px;
}
.imgbox .aves{
    height: 200px;
    margin-left: 5%;
}
/* Contact Styling */
.contact{
    display: flex;
    justify-content: space-around;
    align-items: flex-start;
    height: 100vh;
    background-image: url("/img/bg-contact.png");
    background-repeat: no-repeat;
    background-position: center;
    background-size: cover;
}
.facilities, .contact-us{
    height: 600px;
    width: 40%;
    margin-top: 10%;
    margin-left: 10%;
    text-align: left;
    color: #F1DEBE;
}
.facilities h2, .contact-us h2{
    font-size: 36px;
}
.facilities h5, .contact-us h5{
    font-size: 24px;
}
.facilities p, .contact-us p{
    font-size: 22px;
}
.facilities img, .contact-us img{
    height: 100px;
    mix-blend-mode: lighten;
}
/* Responsive Styling */
@media screen and (max-width: 768px) {
    header{
        background-color: #fff;
        top: 0;
    }
    section{
        margin: 0 auto;
    }
    .nav-links {
        display: none;
        flex-direction: column;
        width: 100%;
        position: absolute;
        top: 62px;
        left: 0;
        background-color: #ffffff;
        text-align: center;
    }
    .nav-links.active {
        display: flex;
    }
    .nav-links li {
        width: 100%;
        padding: 10px 0;
    }
    .burger {
        display: block;
    }
    .burger.toggle .line1 {
        transform: rotate(-45deg) translate(-5px, 6px);
    }
    .burger.toggle .line2 {
        opacity: 0;
    }
    .burger.toggle .line3 {
        transform: rotate(45deg) translate(-5px, -6px);
    }
    .home{
        margin-left: 0;
        padding-left: 0;
    }
    .home .textbox{
        margin-top: 50%;
    }
    .textbox h3{
        margin-right: 5%;
    }
    .about{
        padding-left: 0;
        margin-top: 60px;
        padding-top: 60px;
    }
    .technologies{
        margin-left: 0;
        padding-left: 0;
        padding-top: 70px;
        height: 190vh;
    }
    .overlay{
        width: 100%;
        height: 33%;
        min-height: 25%;
    }
    .tech-imgs img{
        height: 100px;
        margin-top: 60px;
    }
    .tech-imgs .tech1,
    .tech-imgs .tech2{
        top: 1%;
    }
    .tech-imgs .tech3{
        top: 1%;
        left: 55%;
    }
    .textbox-tech1{
        top: 12%;
        left: 3%;
        width: 90%;
    }
    .textbox-tech1 p{
        text-align: left;
        word-spacing: 2px;
    }
    .textbox-tech2{
        display: flex;
        flex-direction: column;
        justify-content: space-around;
        align-items: flex-start;
        top: 35%;
        width: 100%;
        padding-left: 5%;
        height: 1000px;
    }
    .textbox-tech2 ul {
        flex: 1; /* Make ul take all available height */
        display: flex;
        flex-direction: column;
        justify-content: space-between; /* Distribute space evenly between items */
        list-style-type: none; /* Remove default list styling */
        padding: 0;
        margin: 0;
    }
    .textbox-tech2 li{
        text-align: center;
        margin: 0;
        padding: 0; /* Ensure no extra padding or margins */
    }
    .textbox-tech2 ul li span {
        display: block;
        margin-left: 0; 
    }
    .business{
        flex-direction: column;
        height: 120vh;
    }
    .textbox-business{
        width: 90%;
        top: 10%;
    }
    .imgbox{
        display: flex;
        flex-direction: row;
        justify-content: center;
        align-items: center;
    }
    .imgbox img{
        width: 80%;
    }
    .imgbox .aves{
        height: 100px;
    }
    .imgbox .petronas{
        height: 200px;
    }
    .imgbox-business{
        width: 100%;
        top: 5%;
        display: flex;
        justify-content: center;
        align-self: center;
    }
    .contact{
        display: flex;
        flex-direction: column;
    }
    .facilities img, .contact-us img{
        height: 60px;
    }
    .facilities{
        height: 550px;
        width: 100%;
        margin-left: 5%;
        padding-top: 10%;
    }
    .contact-us{
        height: 490px;
        width: 100%;
        margin-left: 5%;
    }
    .facilities h2, .contact-us h2{
        font-size: 24px;
    }
    .facilities h5, .contact-us h5{
        font-size: 18px;
    }
    .facilities p, .contact-us p{
        font-size: 16px;
    }
}
@media screen and (max-width: 389px) {
    .textbox h1{
        font-size: 72px;
    }
    .textbox-about p{
        font-size: 16px;
        letter-spacing: 0px;
        word-spacing: 3px;
    }
    .textbox-tech1 p{
        word-spacing: 1px;
    }
    .textbox-tech2{
        margin-top: 100px;
    }
    .technologies{
        height: 220vh;
    }
    .overlay{
        height: 38%;
    }
    .business{
        height: 120vh;
    }
    .contact{
        height: 110vh;
    }
}
@media screen and (max-width: 360px){
    .textbox h1{
        font-size: 72px;
    }
    .textbox-about p{
        font-size: 16px;
        letter-spacing: 0px;
        word-spacing: 2px;
    }
    .overlay{
        height: 40%;
    }
    .textbox-tech2{
        margin-top: 100px;
    }
    .textbox-tech1{
        top: 15%;
    }
    .technologies{
        height: 220vh;
    }
    .business{
        height: 130vh;
    }
    .contact{
        height: 120vh;
    }
}
@media screen and (max-height: 670px) and (max-height:700px){
    .home{
        height: 110vh;
    }
    .about{
        height: 120vh;
    }
    .about img{
        height: 70%;
    }
    .technologies{
        height: 250vh;
    }
    .overlay{
        height: 33%;
    }
    .textbox-tech2{
        margin-top: 50px;
    }
    .business{
        height: 150vh;
    }
    .contact{
        height: 140vh;
    }
}
/* iPad os vertical*/
@media (min-width: 810px) and (max-width:900px){
    .textbox-about{
        margin-top: 25%;
    }
    .textbox-about p{
        font-size: 24px;
    }
    .overlay{
        width: 50%;
    }
    .tech1, .tech2, .tech3{
        height: 200px;
    }
    .tech-imgs .tech1{
        top: 22%;
    }
    .tech2{
        top: 10%;
    }
    .tech-imgs .tech3{
        top: 27%;
    }
    .textbox-tech1{
        width: 35%;
        top: 45%;
    }
    .textbox-tech2{
        top: 10%;
    }
    .business{
        flex-direction: column;
        height: 100vh;
    }
    .business .textbox-business{
        width: 90%;
        height: 20%;
        top: 10%;
    }
    .imgbox-business{
        height: 90%;
        margin: 0 auto;
        top: 0%;
    }
    .imgbox{
        display: flex;
        align-items: center;
        justify-content: center;
    }
    .contact{
        padding-top: 10%;
    }
}
/* iPad os horizontal */
@media only screen and (min-width: 1080px) and (max-width: 1100px){
    .tech1, .tech2, .tech3{
        height: 200px;
    }
    .textbox-tech1{
        top: 45%;
    }
    .textbox-tech2{
        top: 10%;
    }
} 
