* {
margin: 0;
padding: 0;
font-family: var(--font-family);
box-sizing: border-box;
}
:root {
--color-primary: #029ee0;
--color-primary-dark1: #0092ce;
--color-secondary: #006f9e;
--color-dark: #0a0908;
--color-background: #fff;
--color-background2: #f5f7fa;
--font-family: "Roboto", sans-serif;
}
body {
width: 100vw;
height: 100vh;
background-color: var(--color-background);
overflow: hidden;
}
li {
display: inline-block;
}
a {
text-decoration: none;
}
header {
height: 100%;
}
.topbar {
display: flex;
justify-content: space-between;
padding: 0.75rem 3rem;
}
.topbar .info {
display: flex;
gap: 2rem;
}
.topbar .info p,
.topbar .info a {
display: inline-block;
}
.topbar .info a {
color: var(--color-secondary);
}
.topbar .info a:hover {
text-decoration: underline;
}
.topbar .info p {
cursor: pointer;
color: var(--color-dark);
}
.topbar .info p:hover {
color: var(--color-secondary);
}
.topbar ul li a {
color: var(--color-primary-dark1);
margin-left: 1rem;
}
.topbar ul li a:hover {
color: var(--color-secondary);
}
.navbar {
padding: 0.95em 2em 0.95em 1em;
background: var(--color-primary);
display: flex;
justify-content: space-between;
align-items: center;
position: relative;
width: 100%;
}
.navbar > .nav_list {
/* border: thin solid #fff; */
display: flex;
gap: 2em;
height: inherit;
transition: transform 500ms;
}
.navbar .logo img {
width: 6rem;
cursor: pointer;
}
.navbar ul li a {
/* margin-left: 1.5rem; */
font-size: 1.1rem;
color: #fff;
}
.navbar ul li a:hover {
text-decoration: underline;
}
/* Stylint the current page */
.navbar > .nav_list > li[aria-current="page"] {
position: relative;
}
.navbar > .nav_list > li[aria-current="page"]::after {
content: '';
display: block;
background-color: #fff;
height: 5px;
margin: 0 auto;
position: absolute;
left: 0;
right: 0;
bottom: -200%;
/* border-radius: 30px; */
}
li[aria-current="page"] a:hover{
text-decoration: none !important;
}
/*
#close-side-nav {
border: none;
font-size: 1.5rem;
background-color: transparent;
display: none;
} */
/* Hamburger menu */
.hamburger {
/* border: thin solid #fff; */
display: flex;
flex-direction: column;
gap: .3em;
cursor: pointer;
margin-left: auto;
z-index: 999;
display: none;
}
.hamburger > .line {
width: 40px;
height: 5px;
border-radius: 10px;
background-color: #fff;
transition: all 400ms;
}
.hamburger :where(.line1, .line3) {
transition-delay: 1s;
}
/* And when active */
.hamburger.active .line1 {
transform: rotate(45deg) translateY(7px);
}
.hamburger.active .line3 {
transform: rotate(-45deg) translateY(-8px);
}
.hamburger.active .line2 {
opacity: 0;
display: none;
}
/* Mobile view when side-nav activated */
.navbar > .nav_list.side-active {
transform: translateY(0%);
z-index: 1000;
}
.hero-container {
display: grid;
grid-template-columns: repeat(auto-fit, minmax(500px, 1fr));
place-content: center;
place-items: center;
gap: 2em;
/* border: 2px solid red; */
padding: 0.5em 0;
min-height: 80vh;
background: linear-gradient(45deg, rgb(0 0 0 / .12), rgb(0 0 0 / rgb(0 0
0 / .12)));
}
.hero-container :where(.hero-text){
flex-basis: 50%;
display: flex;
}
.hero-btns {
display: grid;
/* border: 3px solid var(--color-primary-dark1); */
grid-template-columns: repeat(2, 1fr);
}
/* .hero-container .hero-img {
} */
.hero-container .hero-img img {
filter: drop-shadow(3px 3px 10px rgb(77 171 247 / .5));
transform: translateY(19.5px);
}
.hero-container .hero-text {
flex-direction: column;
justify-content: center;
align-items: flex-start;
gap: 2.5rem;
text-shadow: 3px 3px 10px rgb(0 0 0 / .12);
padding: 1em 0 0 3em;
}
.hero-container .hero-text h1 {
font-size: 10vmin;
color: var(--color-primary);
line-height: 5rem;
}
.hero-container .hero-text h1 a {
color: transparent;
-webkit-text-stroke: var(--color-primary) 3px;
}
.hero-container .hero-text .hero-btns a {
padding: 1rem 1.75rem;
font-weight: 700;
border-radius: 2px;
text-transform: uppercase;
transition: all 400ms;
}
.hero-container .hero-text .hero-btns a:first-child {
background-color: transparent;
background-color: var(--color-primary);
border: 2px var(--color-primary) solid;
color: #fff;
}
.hero-container .hero-text .hero-btns a:last-child {
/* background-color: #fff; */
background-color: transparent;
border: 2px var(--color-primary) solid;
color: var(--color-primary);
margin-left: 1.5rem;
}
.hero-container .hero-text .hero-btns a:first-child:hover {
background-color: #fff;
color: var(--color-primary);
}
.hero-container .hero-text .hero-btns a:last-child:hover {
background-color: var(--color-primary);
color: #fff;
}
/* get stared button */
.hero-container .hero-btns > .call-to-action {
background-color: transparent;
border: 50px solid red;
}
/* Media */
@media screen and (max-width: 750px) {
.hero-text {
text-align: center;
}
.navbar {
justify-content: unset;
/* align-items: unset; */
}
.navbar > .nav_list {
position: absolute;
top: 100%;
/* bottom: 0; */
background-color: inherit;
display: flex;
align-self: unset;
justify-self: unset;
flex-direction: column;
padding: 2em;
/* border: thick solid wheat; */
/* margin: 0 auto; */
margin-left: -1em;
/* box-shadow: 3px 3px 10px rgb(0 0 0 / .12),
0px 0px; */
transform: translateY(-150%);
width: 100%;
z-index: -1;
/* Hide */
/* transform: translateX(100%); */
}
.navbar > .nav_list > li[aria-current="page"]::after {
content: '';
background-color: #fff;
height: 10px;
width: 10px;
border-radius: 50%;
position: absolute;
bottom: 0;
}
/* Show the hamburger menu icon*/
.hamburger {
display: flex;
/* Show close button */
#close--act-nav {
display: block;
}