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

html {
    text-rendering: optimizeLegibility;
    scroll-behavior: smooth;
}

body {
    min-height: 100vh;
    margin: 0;
    font-family: montserrat, roboto, sans-serif;
}

p {
    font-weight: 300;
}

a {
    color: #000;
}

a:hover {
    color: #008080;
    transition: 0.5s ease;
}

/*  Mobile CSS (no media query) */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    background: white;
    padding: 1rem;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    z-index: 1000;
}

.nav-content {
    display: flex;
    padding: 1rem 1rem;
    justify-content: space-between;
    align-items: center;
    margin: 0 1rem;
    height: 100px;
}

.modal-and-toggler {
    flex-direction: row;
}

.modal-and-toggler {
    display: flex;
    gap: 15px;
}

.brand-holder {
    display: flex;
    flex-direction: column;
}

.logo {
    color: #008080;
    text-decoration: none;
    font-size: 1.5rem;
    font-weight: 900;
}

.tagline {
    color: #008080;
    font-size: 0.61rem;
    font-weight: 200;
    letter-spacing: 0.2rem;
}

.navbar-toggler {
    border: none;
    background: none;
}

.modal-and-toggler {
    flex-direction: row;
}

.nav-links {
    display: none;
}

/* Hero */
.hero {
    margin-top: 130px;
}

.hero-content {
    background-image: linear-gradient(rgba(0,0,0,0.8), rgba(0,0,0,0.7)), url(../img/nastuh-abootalebi-yWwob8kwOCk-unsplashbw.jpg);
    background-size: cover;
    background-repeat: no-repeat;
    background-position: center;
    height: 50vh;
    display: flex;
    flex-direction: column;
    text-align: left;
    justify-content: center;
}

.hero-content span {
    margin-left: 1rem;
    font-size: 2rem;
    font-weight: 900;
    padding-bottom: 0.4rem;
    color: #fff;
}

/* Page Navigation */
.page-navigation {
    position: sticky;
    z-index: 900;
    top: 130px;
}

.page-navbar {
    display: flex;
    justify-content: center;
    margin: 0;
    background: #f1f1f1;
    padding: 2rem;
}

.page-navbar ul {
    display: flex;
    list-style: none;
    width: 100%;
    justify-content: space-evenly;
}

.page-navbar a {
    text-decoration: none;
    color:#000;
    padding: 0 5px;
}

.navigation-tag {
    transition: all 0.3s ease;
}

.navigation-tag.active {
    background: #008080;
    color: #fff;
    padding: 1rem 1rem;
}

/* Intro */
.intro-container {
    margin: 4rem 1rem;
    display: flex;
    flex-direction: column;
}

.intro .line {
    height: 5px;
    width: 25%;
    background: #008080;
    margin-bottom: 1rem;
}

.intro span {
    font-size: 1.5rem;
    font-weight: 900;
}

.content-divider {
    height: 1px;
    width: 15%;
    background: #f1f1f1;
    margin: 2rem 0;
}

.intro-content span {
    font-weight: 900;
}

/* Main */
.main-content {
    margin: 0 2rem;
}

.content-line {
    height: 5px;
    width: 25%;
    background: #008080;
    margin-bottom: 1rem;
}

.main-container span {
    font-weight: 900;
}

.main-container ul > li {
    font-weight: 300;
}

.main-container ol > li {
    font-weight: 300;
}

/* Footer */
.footer-nav {
    margin: 4rem 1rem;
}

.brand-social {
    display: flex;
}

.brand-holder {
    display: flex;
    flex-direction: column;
}

.tagline {
    font-size: 0.61rem;
    font-weight: 200;
    letter-spacing: 0.2rem;
}

.social-holder {
    margin-left: auto;
    text-align: center;
}

.social-holder i {
    color: #000;
    font-size: 1.3rem;
    margin: 0 0.1rem;
}

.social-icons {
    padding: 1rem 0;
}

.footer-menu {
    display:flex;
    flex-direction: column;
    text-align: center;
}

.menu-nav ul {
    list-style: none;
}

.menu-nav span {
    margin: 1rem 0rem;
    font-weight: 900;
}

.menu-nav ul > li {
    margin: 1.3rem 0;
}

.menu-nav a {
    text-decoration: none;
    color: #000;
    font-weight: 300;
}

.footer-address {
    display: flex;
    flex-direction: column;
    font-weight: 200;
    margin: 1.3rem 0;
}

.footer-address span {
    margin: 1rem 0;
}

.footer-address i {
    margin-right: 0.6rem;
}

.hvr-sweep-to-right {
    display: inline-block;
    vertical-align: middle;
    -webkit-transform: perspective(1px) translateZ(0);
    transform: perspective(1px) translateZ(0);
    box-shadow: 0 0 1px rgba(0, 0, 0, 0);
    position: relative;
    -webkit-transition-property: color;
    transition-property: color;
    -webkit-transition-duration: 0.5s;
    transition-duration: 0.5s;
}

.hvr-sweep-to-right:before {
    content: "";
    position: absolute;
    z-index: -1;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: #008080;
    -webkit-transform: scaleX(0);
    transform: scaleX(0);
    -webkit-transform-origin: 0 50%;
    transform-origin: 0 50%;
    -webkit-transition-property: transform;
    transition-property: transform;
    -webkit-transition-duration: 0.5s;
    transition-duration: 0.5s;
    -webkit-transition-timing-function: ease-out;
    transition-timing-function: ease-out;
}

.hvr-sweep-to-right:hover, .hvr-sweep-to-right:focus, .hvr-sweep-to-right:active {
    color: white;
}

.hvr-sweep-to-right:hover:before, .hvr-sweep-to-right:focus:before, .hvr-sweep-to-right:active:before {
    -webkit-transform: scaleX(1);
    transform: scaleX(1);
}
  
/* Footer */
footer {
    background: #d1d1d1;
    display: flex;
    flex-direction: column;
    text-align: center;
    padding: 1rem;
}

footer span {
    margin: 0.4rem 0;
    font-size: 0.9rem;
    font-weight: 200;
}

/* Modals */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
}

.modal-header {
    background-color: black;
    padding: 21px 0;
    display: flex;
    justify-content: space-between;
    align-content: center;
    position: sticky;
    top: 0;
    z-index: 10;
}

.modal-body {
    background-color: #fff;
    width: 100%;
    overflow-y: auto;
}

.modal-body span svg {
    margin-right: 25px;
}

.close {
    cursor: pointer;
    background: none;
    border: none;
}

.search-btn {
    background: none;
    border: none;
}

.modal-items {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: none;
    border: none;
    height: 90px;
    cursor: pointer;
}

.modal span {
    font-size: 1.2rem;
    font-family: montserrat, roboto, sans-serif;
    font-weight: 900;
}

/* Min Width 768px */
@media screen and (min-width: 768px) {
    .hero-content {
        text-align: center;
    }

    /* Footer Nav */
    .footer-menu {
        display: grid;
        grid-template-columns: repeat(3, 1fr);
    }

    .menu-nav {
        text-align: left;
        margin-top: 2rem;
    }

    .menu-nav ul {
        list-style: none;
        text-align: left;
    }

    .footer-address {
        text-align: right;
    } 
}

/* Min Width 1200px */
@media screen and (min-width: 1200px) {
    .navbarcollapse {
        display: flex;
        justify-content: center;
    }

    .navbar-nav {
        display: flex;
        list-style: none;
        padding: 0;
        margin: 0;
        width: 100%;
        justify-content: space-between;
    }

    .nav-item a {
        text-decoration: none;
        color: black;
        padding: 0 5px;
    }

    .navbar-toggler {
        display: none;
    }

    .nav-link {
        font-size: 1rem;
        font-weight: 300;
    }

    .nav-link {
        position: relative;
        transition: color 0.8s ease;
    }

    .nav-link:hover {
        color: #008080;
    }

    .nav-link::after {
        content: '';
        position: absolute;
        left: 0;
        bottom: -5px;
        width: 0;
        height: 1px;
        background-color: #008080;
        transition: width 0.8s ease;
    }

    .nav-link:hover::after {
        width: 100%;
    }

    /* Dropdown Styling */
    .dropdown {
        position: absolute;
        width: 100%;
        left: 0;
        top: 100%;
        padding: 25px;
        display: none;
        box-shadow: 0 4px 6px rgba(0, 128, 128, 0.1);
        background-color: #fff;
        z-index: 0;
    }

    .nav-item:hover .dropdown {
        display: block;
    }

    .dropdown-1 {
        display: flex;
        flex-direction: column;
        gap: 10px;
        padding-right: 20px;
        margin-top: 0.5rem;
        width: 30%;
    }

    .divider {
        width: 100%;
    }

    .dropdown-1,
    .dropdown-2 {
        float: left;
    }

    .dropdown-1 button {
        font-weight: 500;
        font-size: 1rem;
        text-align: start;
        margin: 5px;
        padding: 10px 5px;
        background-color: transparent;
        border: none;
        cursor: pointer;
        display: block;
    }

    .dropdown-1 button:hover {
        background-color: #008080;
        color: #fff;
    }

    .dropdown-1 button.active {
        background-color: #008080;
        color: #fff;
    }

    .dropdown-2 {
        margin-left: 50px;
    }

    .dropdown-2 p {
        margin-top: 0.2rem;
        margin-left: 28px;
        font-size: 0.8rem;
        font-weight: 600;
        color: #d1d1d1;
    }

    .dropdown a {
        text-decoration: none;
        margin-left: 1.4rem;
        color: #000;
        font-weight: 300;
        font-size: 1rem;
    }

    .dropdown-2 a:first-child {
        font-size: 1rem;
        font-weight: 500;
        justify-items: center;
    }

    .dropdown i {
        margin-left: 1rem;
    }

    .forward-icon i {
        display: inline-block;
        transition: transform 0.5s ease;
    }

    .forward-icon:hover i {
        transform: translateX(8px);
    }

    .dropdown-3 .about {
        display: flex;
        flex-direction: row;
        justify-content: space-between;
        width: 100%;
        list-style: none;
    }

    .about {
        margin-top: 150px;
    }

    .tag {
        float: left;
        width: 30%;
    }

    .feed {
        float: right;
        display: flex;
        flex-direction: column;
    }

    .feed a:first-child {
        margin-bottom: 1rem;
    }

    .tag button {
        border: none;
        margin: 2px;
        background: #f1f1f1;
        padding: 1.2rem;
    }

    .tag button:hover {
        background-color: #008080;
        color: #fff;
    }

    .category {
        display: none;
    }

    .category.active {
        display: block;
    }

    /* Footer */
    footer {
        display: flex;
        flex-direction: row;
        align-items: center;
        justify-content: center;
    }

    footer span {
        text-align: center;
        margin: 0 0.8rem;
    }

}
