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

:root{
    --primary-color: #707c8a;
    --light-color: #eeeef0;
    --dark-color: #111;
}

body {
    position: relative;
    font-family: 'Roboto', sans-serif;
    font-size: 16px;
    line-height: 1.5;
    background-color: var(--primary-color);
}

a{
    text-decoration: none;
    color: var(--dark-color);
}

ul {
    list-style: none;
}

img{
    max-width: 100%;
}

/* Navbar*/
.navbar {
    position: fixed;
    top: 0px;
    width: 100%;
    z-index: 1;
    background-color: var(--primary-color);
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 0 0 15px;
}

.navbar .main-menu ul {
    display: flex;
}

.navbar ul li a {
    padding: 10px 20px;
    display: block;
    font-weight: 600;
    transition: 0.5s;
    color: var(--light-color);
}

.navbar ul li a:hover {
    color: var(--dark-color);
}

.navbar ul li a i {
    margin-right: 10px;
}

/* Home */
.home .background{
    background-image: url('../images/hero-bg-desktop.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    min-height: 100vh;

    background-attachment: fixed;
    opacity: 80%;
}

.home .container {
    margin-top: 90px;
}

.home .home-text {
    position: absolute;
    top: 320px;
    width: 100%;
    text-align: center;
    color: #fff;
}

/* Gallery */
.gallery {
    background-color: var(--light-color);
    padding: 60px 0;
}

.gallery .gallery-text {
    padding-top: 40px;
    size: 4rem;
}

.gallery .gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 10px;
}

.gallery .gallery-grid a {
    width: 100%; 
    height: auto;
    display: block;
}

/* Javascript gallery */
.jallery {
    padding: 40px 0;
    height: 100%;
    background-color: #b1bdcc;
}

.jallery .jallery-grid-text {
    position: relative;
    size: 4rem;
    cursor: pointer;
}

.jallery .jallery-group .jallery-grid-text i {
    position: absolute;
    right: 0;
    top: 20px;
    cursor: pointer;
}

.jallery .jallery-grid {
    display: none;
}

.jallery .jallery-grid.open {
    display: block;
    column-count: 5;
    padding: 10px 5px;
}

.jallery img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    padding-bottom: 10px;
}

/* Footer */
.footer {
    padding: 40px 0;
}

.footer .footer-grid {
    display: grid;
}

.footer .footer-logo {
    margin-bottom: 10px;
}

.footer .footer-flex {
    display: flex;
    justify-content: space-between;
    align-items: start;
    margin-right: 10px;
}

.footer .footer-flex .card {
    margin: -10px 20px 20px 0;
}

.footer input[type='email'] {
    width: 100%;
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 5px;
    margin: 20px 0;
}

.footer .footer-links {
    margin-top: 15px;
}

/* Utility classes */

/* Container */
.container {
    max-width: 1300px;
    margin: 0 auto;
    padding: 0 15px;
}

/* Text classes */
.text-xxl {
    font-size: 2.8rem;
    line-height: 1.2;
    font-weight: 600;
    margin: 40px 0 20px;
}

.text-xl {
    font-size: 2.2rem;
    line-height: 1.4;
    font-weight: normal;
    margin: 40px 0 20px;
}

.text-lg {
    font-size: 1.8rem;
    line-height: 1.4;
    font-weight: normal;
    margin: 30px 0 20px;
}

.text-md {
    font-size: 1.2rem;
    line-height: 1.4;
    font-weight: normal;
    margin: 20px 0 20px;
}

.text-sm {
    font-size: 0.9rem;
    line-height: 1.4;
    font-weight: normal;
    margin: 10px 0 5px;
}

.text-center {
    text-align: center
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 13px 20px;
    background: var(--light-color);
    color: #333;
    font-weight: 600;
    text-decoration: none;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    text-align: center;
    transition: 0.5s;
}

.btn-primary {
    color: var(--light-color);
}

.btn-dark {
    color: var(--dark-color);
}

.btn-block {
    width: 100%;
    display: block;
}

/* Card */
.card {
    background: #fff;
    color: #000;
    border-radius: 10px;
    padding: 20px;
    width: 30%;
}

/* Hamburger Button */
.hamburger-button {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 10px;
    z-index: 3;
}

.hamburger-button .hamburger-line {
    width: 30px;
    height: 3px;
    background: #eee;
    margin: 6px 0;
}

/* Mobile Menu */
.mobile-menu {
    position: fixed;
    top: 0;
    right: -300px;
    width: 250px;
    height: 100%;
    z-index: 2;
    background: var(--dark-color);
    box-shadow: 0px 0px 10px rgba(0, 0, 0, 0.2);
    transition: right 0.3s ease-in-out;
}

.mobile-menu.active {
    right: 0;
}

.mobile-menu ul {
    margin-top: 100px;
    padding-right: 10px;
}

.mobile-menu ul li {
    margin: 10px 0;
}

.mobile-menu ul li a {
    font-size: 20px;
    transition: 0.3s;
}

/* Media Queries */
@media (max-width: 670px) {
    .navbar .container {
        padding: 10px;
    }
    .navbar .logo {
        left: 0;
    }
    
    .navbar .main-menu {
        display: none;
    }

    .navbar .hamburger-button {
        display: block;
    }

    .home .background {
        background-image: url(../images/hero-bg-mobile.jpg);
    }

    .home .home-text {
        top: 300px;
        padding: 5px;
    }

    .footer .footer-flex {
        margin: 0;
        flex-direction: column;
        gap: 20px;
    }

    .footer .card {
        margin: 0;
        width: auto;
    }

    .text-xxl {
        font-size: 2.4rem;
    }
}