* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'poppins', sans-serif;
} 


/* Home page header */

.header{
    min-height: 100vh;
    width: 100%;
    /* Gradient is now included in the keyframes for consistency */
    background-image: linear-gradient( #517e86c4, #949fdf1a), url(images/Office.jpg);
    background-position: center;
    background-size: cover;
    position: relative;
}


nav{
    display: flex;
    padding: 1% 6%;
    align-items: center;
    justify-content: space-between;
    position: fixed;
    width: 100%;
    z-index: 1000;
    transition: background-color 0.3s ease-in-out;
    background-color: rgba(0, 0, 0, 0.01)
}

nav.nav-colored{
    background-color: rgba(255, 255, 255, 0.8);
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

.nav-scrolled {
    top: 0;
}

nav .logo{
    text-decoration: none;
    font-size: 24px;
    color: #fff3f3; /* Initial color for the transparent nav */
    font-weight: bold;
    transition: color 0.3s ease-in-out; /* Add transition for smoothness */
}

/* Style for the logo when the nav is colored */

nav.nav-colored .logo {
    color: #030303; /* New color for the logo on scroll */
}


/* logo */
nav .logo {
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 10px;
    transition: opacity 0.3s ease;
}

nav .fab{
    font-size: 42px;
    color: #4f92ff;
}


.nav-links{
    font-size: 12px;
    font-weight: 550;
    flex: 1;
    text-align: center;
}

.nav-links ul li{
    display: inline-block;
    list-style: none;
    padding: 8px 12px;
    position: relative;
    text-transform: uppercase;
}

.nav-links ul li a{
    text-decoration: none;
    color: #ffff;
    font-size: 18px;
    transition: color 0.3s ease-in-out;
}

/* Style for the links when the nav is colored */

nav.nav-colored .nav-links ul li a {
    color: #030303; /* New color for links on scroll */
}

.nav-links ul li::after{
    content: '';
    width: 0%;
    height: 2px;
    background: #4287f5;
    display: block;
    margin: auto;
    transition: 0.5s;
}

.nav-links ul li:hover::after{
    width: 100%;
}

.getquote{
    position: relative;
    display: inline-block;
    color: #030303;
    border: 1px solid #4287f5;
    border-radius: 20px;
    padding: 12px 18px;
    font-size: 10px;
    font-weight: 780;
    text-decoration: none;
    background: #4287f5;
    cursor: pointer;
}

.getquote:hover{
    background: #4f92ff;
}

/* Home page */


.text-box{
    width: 90%;
    color: #fff;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
}

.text-box h2{
    font-size: 48px;
    font-weight: 550;
    color: #fff;
}

.text-box #headtext{
    font-size: 13px;
    font-weight: 550;
    text-transform: uppercase;
    justify-content: center;
    margin-top: 0.1%;
    margin-bottom: 3%;
    color: #fff;
}

.hero_btn{
    position: relative;
    display: inline-block;
    color: #030303;
    border: 1px solid #fff;
    border-radius: 20px;
    padding: 12px 18px;
    font-size: 10px;
    font-weight: 780;
    text-decoration: none;
    background: #fff;
    cursor: pointer;
}

nav .fa{
    display: none;
}

/* Mobile Navbar */
@media(max-width: 700px){
    .text-box h2 {
        font-size: 30px;
    }
    .text-box #headtext {
        font-size: 10px;
    }
    .nav-links ul li{
        display: block;
    }
    .nav-links{
        position: fixed;
        background-color: rgba(0, 0, 0, 0.6);
        height: 100vh;
        width: 200px;
        top: 0;
        right: -200px;
        text-align: left;
        z-index: 2;
        transition: 1.2s;
    }
    nav .fa{
        display: block;
        color: #fff;
        margin: 10px;
        font-size: 22px;
        cursor: pointer;
    }
    .logo-text {
        font-size: 18px;
    }
    .logo-img {
        height: 30px;
    }
}

/* iPad Navbar */
@media(min-width: 701px) and (max-width: 1024px){
    .nav-links ul li{
        display: block;
    }
    .nav-links{
        position: fixed;
        background-color: rgba(0, 0, 0, 0.6);
        height: 100vh;
        width: 200px;
        top: 0;
        right: -200px;
        text-align: left;
        z-index: 2;
        transition: 1.2s;
    }
    nav .fa{
        display: block;
        color: #fff;
        margin: 10px;
        font-size: 22px;
        cursor: pointer;
    }
    .logo-text {
        font-size: 18px;
    }
    .logo-img {
        height: 30px;
    }
    .text-box h2 {
        font-size: 45px;
    }
    .text-box #headtext {
        font-size: 11px;
    }
}







/* Footer Start */

.main-footer {
    background-color: #163136;
    color: #fff;
    padding: 40px 5%;
}

.footer-nav-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding-bottom: 20px;
    margin-bottom: 40px;
    margin-left: 0;
    padding-left: 40px;
}

.footer-logo {
    font-size: 24px;
    font-weight: 700;
    color: #fff;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 10px;
}

.footer-logo .fab {
    font-size: 30px;
    margin-right: 5px;
}

.footer-nav-links {
    list-style: none;
    display: flex;
    margin-left: auto;
    margin-right: auto;
    gap: 20px;
}

.footer-nav-links a {
    text-decoration: none;
    color: #fff;
    font-size: 14px;
    transition: color 0.3s;
}

.footer-nav-links a:hover {
    color: #4287f5;
}

.footer-content {
    display: flex;
    flex-direction: row;
    align-items: flex-start;
    gap: 40px;
    margin-left: 0;
    padding-left: 40px;
}

.services-wrapper {
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    gap: 80px;
    flex: 1;
    justify-content: flex-start;
    align-items: flex-start;
    padding-left: 60px;
}

.footer-col.services-col {
    min-width: 180px;
    flex-shrink: 0;
}

.footer-col {
    min-width: 180px; 
}

.contact-col {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 5px;
}

.contact-item i {
    color: #4f92ff;
    font-size: 16px;
}

.contact-item a {
    color: #fff;
    text-decoration: none;
}

.subscribe-btn {
    padding: 12px 20px;
    background-color: #4287f5;
    color: #fff;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    text-transform: uppercase;
    font-weight: 600;
    margin-top: 10px;
}

.social-icons {
    display: flex;
    gap: 10px;
    margin-top: 20px;
}

.social-icons a {
    width: 35px;
    height: 35px;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 5px;
    display: flex;
    justify-content: center;
    align-items: center;
    color: #fff;
    transition: background-color 0.3s;
}

.social-icons a:hover {
    background-color: #4f92ff;
}

.services-col ul {
    list-style: none; 
    padding: 0;
    margin-left: 0;
}

.services-col li {
    margin-left: 0; 
    margin-bottom: 10px;
    font-size: 14px;
    color: #a0a0a0;
}

.copyright {
    text-align: center;
    padding-top: 30px;
    margin-top: 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.copyright p {
    font-size: 12px;
    color: #a0a0a0;
}

/* Footer - iPad */
@media(min-width: 701px) and (max-width: 1024px){
    .footer-nav-bar {
        padding-left: 20px;
        flex-wrap: wrap;
        gap: 15px;
    }
    .footer-nav-links {
        flex-wrap: wrap;
        gap: 12px;
        margin-left: 0;
        margin-right: 0;
        justify-content: flex-start;
    }
    .footer-nav-links a {
        font-size: 12px;
    }
    .footer-content {
        padding-left: 20px;
        gap: 20px;
    }
    .services-wrapper {
        gap: 40px;
        padding-left: 30px;
    }
    .footer-col.services-col {
        min-width: 150px;
    }
    .subscribe-btn {
        width: 100%;
    }
}

/* Footer - Mobile */
@media (max-width: 700px) {
    .footer-nav-bar {
        flex-direction: column;
        align-items: flex-start;
        margin-left: 0;
        padding-left: 40px;
    }
    .footer-nav-links {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
        margin-top: 20px;
        margin-left: 0;
        margin-right: 0;
    }
    .footer-content {
        flex-direction: column;
        margin-left: 0;
        padding-left: 40px;
    }
    .services-wrapper {
        flex-direction: column;
        gap: 30px;
        padding-left: 0;
    }
    .footer-col {
        min-width: auto;
    }
    .subscribe-btn {
        width: 100%;
    }
}

/* Footer End */




/* Back to Top Button */

#backToTopBtn {
    display: none; 
    position: fixed; 
    bottom: 20px; 
    right: 20px; 
    z-index: 99;
    border: none; 
    outline: none; 
    background-color: rgba(0, 0, 0, 0.2);
    color: #000000;
    cursor: pointer; 
    padding: 10px 15px; 
    border-radius: 50%;
    font-size: 18px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: background-color 0.3s, opacity 0.3s;
}

#backToTopBtn:hover {
    background-color: #4f92ff;
}