:root {
    --blue: #16152e;
    --orange: #f33535;
    --gray: #D9D9D9;
    --beige: #eae6d9;
 }
 
 html, body {
     margin: 0;
     padding: 0;
     width: 100vw;    
     font-family: 'Montserrat', sans-serif;
     overflow-x: hidden;
 }
 
 ::-webkit-scrollbar {
     width: 10px;
     height: 8px;
 }
 ::-webkit-scrollbar-track {
     background: var(--blue); 
 }
 ::-webkit-scrollbar-thumb {
     background: var(--orange);
     border-radius: 10px;
     transition: background 0.3s;
 }
 
 h1, h2, h3, h4 {
     margin: 0;
     line-height: 1.1;
     color: white;
 }

 h1 {
    font-size: 80px;
    font-weight: 600;
 }
 h2 {
    font-size: 50px;
 }
 h3 {
    font-size: 40px;
 }
 h4 {
    font-size: 30px;
    font-weight: 400;
 }
 
 p { 
    font-weight: 400;
     font-size: 20px;
 }
 
.nav-wrap {
    display: flex;
    justify-content: center;
}

.navbar {
    display: flex;
    position: fixed;
    justify-content: space-between;
    align-items: center;
    top: 0;
    width: 100%;
    height: auto;
    padding: 0.5rem 2rem;
    background-color: var(--blue);
    box-shadow: 0px 4px 6px #00000038;
    z-index: 10;
}

.main-logo {
    height: auto;
    width: 120px;
    padding-left: 2rem;
    z-index: auto;
}

.right {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.5rem;
}

.logo-mobile {
    margin-bottom: 1rem;
    img {  
        width: 160px; 
        display: none;
    }
}

.nav-links {
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 50;
    margin: 0;
    overflow: hidden;
    li {
        display: inherit;
        align-items: center;
        list-style: none;
        a {
            text-decoration: none;
            font-weight: 600;
            color: white;
            font-size: 18px;
            padding: 1rem;
            transition: all 0.2s ease-in-out;
        }
        :hover {
            color: var(--orange);
        }
    }
    details {
        display: none;
    }
}

.dropdown {
    position: relative;
    display: inline-block;
}

.dropdown:hover .sub-links {
    opacity: 1;
    transform: translate(-6%, 0);
    visibility: visible;
    pointer-events: auto;
}
  
.sub-links {
    display: flex;
    position: relative;
    flex-direction: column;
    align-items: center;
    position: absolute;
    background-color: var(--blue);
    min-width: 170px;
    box-shadow: 0px 8px 16px 0px rgba(0,0,0,0.2);
    gap: 1rem;
    padding: 1rem;
    opacity: 0;
    transform: translateY(-6px);
    visibility: hidden;
    pointer-events: none;
    transition: all 0.4s ease-in-out;
    transform: translate(-6%, -50px);
    z-index: 5;
    a {
        font-size: 18px;
        font-weight: 600;
        text-decoration: none;
        color: white;
        transition: all 0.2s ease-in-out;
    }
    :hover {
        color: var(--orange);
    }
}

.lets-talk {
    display: flex;
    position: relative;
    justify-content: center;
    align-items: center;
    font-size: 18px;
    font-weight: 600;
    color: white;
    background-color: var(--orange);
    padding-left: 1rem;
    margin-right: 1.5rem;
    text-decoration: none;
    transition: all 0.2s ease-in-out;
    border-radius: 100px;
    z-index: 50;
    img {
        width: 35px;
        height: 35px;
        background-color: white;
        border-radius: 50%;
        padding:0.3rem;
        margin-left: 1rem;
    }
}
.lets-talk:hover {
    color: var(--orange);
    background-color: white;
}

.mobile-sub-links {
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    margin-top: 1rem;
    gap: 1rem;
    a {
        font-size: 18px;
    }
}

.navbar-toggler {
    display: none;
    flex-direction: column;
    justify-content: center;
    width: 2rem;
    height: 2rem;
    background: none;
    border: none;
    cursor: pointer;
}

.navbar-icon {
    width: 100%;
    height: 0.15rem;
    right: 0px;
    background-color: white;
    transition: all 0.3s ease;
    position: relative;
}

.navbar-toggler .navbar-icon::before, .navbar-toggler .navbar-icon::after {
    right: 0px;
    content: '';
    position: absolute;
    width: 100%;
    height: 0.15rem;
    background-color: white;
    transition: all 0.3s ease;
}
.navbar-toggler .navbar-icon::after {top: 0.30rem;}
.navbar-toggler .navbar-icon::before {top: -0.30rem;}

@media (max-width: 1160px) {
    .nav-links {
        & li {
            a {
                padding: 1rem 0.5rem;
            }
        }   
    }
    .main-logo {
        width: 100px;
    }
}

@media (max-width: 940px) {

    h1 {font-size: 60px;}
    h2 {font-size: 35px;}
    h3 {font-size: 25px;}
    h4 {font-size: 20px;}
    p {font-size: 18px;}
    
    .navbar {
        justify-content: space-between;
        height: 4rem;
        padding: 0 1rem;
        outline: none;
        /* background-color: transparent; */
        box-shadow: none;
        margin: 0;
        img { 
            padding-left: 1rem;
            width: 100px;
        }
    }

    .navbar-toggler {
        display: flex;
        margin-right: 1rem;
        color: white;
        background-color: var(--blue);
    }

    .nav-links {
        position: fixed;
        top: 0;
        right: 0;
        flex-direction: column;
        align-items: center;
        z-index: 50;
        display: none;
        padding: 0;
        margin: 0;
        outline: none;
        li {
            a {
                font-size: 16px;
                font-weight: 400;
                padding: 0;
            }
        }
        details {
            display: block;
            color: white;
        }
        details[open] > summary:first-of-type {
            text-align: center;
        }
    }

    .logo-mobile {
        img { 
            display: block;
            padding-left: 0;
            width: 200px;
        }
    }

    .nav-links li {
        height: auto;
        margin: 0.5rem 0;
    }

    .nav-links.show {
        display: flex;
        align-items: center;
        background-color: var(--blue);
        padding: 1rem 0;
        width: 100%;
        gap: 0;
    }

    .mobile-sub-links {
        display: flex;
    }

    .lets-talk {display: none;}
}

@media (max-width: 546px) {
    h1, h2, h3, h4 {
        line-height: 1;
    }
    h1 {font-size: 45px;}
    h2 {font-size: 25px;}
    h3 {font-size: 20px;}
    h4 {font-size: 18px;}
    p {font-size: 16px;}

    .navbar { 
        height: 60px;
        img {
            width: 80px;
        }
    }
    .logo-mobile {
        img { 
            display: block;
            padding-left: 0;
            width: 150px;
        }
    }
}