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

* {
	margin: 0;
	padding: 0;
	box-sizing: border-box;
}

body {
	background-image: url(./bg.jpg);
	background-size: cover;
	background-repeat: no-repeat;
	color: #fff;
	font-family: "Poppins", sans-serif;
}

li {
	list-style: none;
}

a {
	text-decoration: none;
}

.btn {
	background-color: yellowgreen;
	color: #222;
	padding: 20px;
	text-decoration: none;
	text-transform: uppercase;
}

.btn:hover {
	background-color: #222;
	color: yellowgreen;
}

.link {
	color: yellowgreen;
}

/* Navbar Styles */

.header {
	background-color: #E2E8F0;
}

.navbar {
	display: flex;
	justify-content: space-between;
	align-items: center;
	padding: 1rem 1.5rem;
}

.hamburger {
    display: none;
}

.bar {
    display: block;
    width: 25px;
    height: 3px;
    margin: 5px auto;
    -webkit-transition: all 0.3s ease-in-out;
    transition: all 0.3s ease-in-out;
    background-color: #101010;
}

.nav-menu {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-item {
    margin-left: 2rem;
}

.nav-link{
    font-size: 1.6rem;
    font-weight: 400;
    color: #475569;
}

.nav-link:hover{
    color: #482ff7;
}

.nav-logo {
    font-size: 2.1rem;
    font-weight: 500;
    color: #482ff7;
}

/* Main Styles */

.overlay {
	width: 100%;
	height: 100vh;
	background-color: #000;
	position: absolute;
	opacity: 0.7;
	z-index: -1;
}

main {
	width: 45%;
	height: 100vh;
	margin: 0 auto;
	display: flex;
	justify-content: center;
	align-items: center;
	text-align: center;
	flex-direction: column;
	row-gap: 20px;
}

main h1 {
	font-size: 45px;
}

main p {
	font-size: 20px;
	margin-bottom: 20px;
}

/* media queries */

@media only screen and (max-width: 768px) {
    .nav-menu {
        position: fixed;
        left: -100%;
        top: 5rem;
        flex-direction: column;
        background-color: #fff;
        width: 100%;
        border-radius: 10px;
        text-align: center;
        transition: 0.3s;
        box-shadow:
            0 10px 27px rgba(0, 0, 0, 0.05);
    }

    .nav-menu.active {
        left: 0;
    }

    .nav-item {
        margin: 2.5rem 0;
    }

    .hamburger {
        display: block;
        cursor: pointer;
    }

	.hamburger.active .bar:nth-child(2) {
        opacity: 0;
    }

    .hamburger.active .bar:nth-child(1) {
        transform: translateY(8px) rotate(45deg);
    }

    .hamburger.active .bar:nth-child(3) {
        transform: translateY(-8px) rotate(-45deg);
    }

	main {
		width: 100%;
		padding: 0 20px;
	}

	main h1 {
		font-size: 30px;
	}

}