:root {
    --primary-color: #1DBF63;
}

* {
    box-sizing: border-box;
}

@font-face {
    font-family: 'Wide';
    src: url('../fonts/wide.woff2') format('woff2');
    font-weight: normal;
    font-style: normal;
}

.top {
    /* position: fixed; */
    display: flex;
    flex-direction: column;
    width: 100vw;
    z-index: 2;
}

.tagbar {
    background-color: var(--primary-color);
    /* height: 50px; */
}

.appbar {
    left: 0;
    right: 0;
    height: 100px;
    display: flex;
    background-color: white;
    justify-content: space-between;
    align-items: center;
    position: relative;
}

.banner {
    display: flex;
    background-position: center;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    margin: 0;
    padding: 0;
    width: 100vw;
    height: calc(100vh - 150px);
    background-image:
        linear-gradient(to top, #000000, rgb(0, 0, 0, 0.6), rgb(0, 0, 0, 0.6)), url("../images/banner_img.jpg");
    background-size: cover;
    text-align: center;
    z-index: 1;
    background-attachment: fixed;
    /* Added for parallax */
}

.contacts {
    text-align: center;
    margin: 0;
    padding: 0;
}

.contact-button {
    background-color: var(--primary-color);
    background-image: linear-gradient(to top left, #5ac388, rgb(0, 0, 0, 0.2));
    border: none;
    color: white;
    padding: 15px 32px;
    margin: 16px 64px;
    text-align: center;
    text-decoration: none;
    font-size: 16px;
    cursor: pointer;
    border-radius: 32px;
    font-family: 'Verdana', sans-serif;
    font-weight: bold;
}

.contact-button:hover {
    background-color: #5ac388;
    background-image: linear-gradient(to top left, #5ac388, rgb(0, 0, 0, 0.2));
}

body {
    margin: 0;
    padding: 0;
    display: grid;
    grid-template-rows: auto 1fr;
    background-color: #000000;
}

html {
    scroll-behavior: smooth;
    /* Added for smooth scrolling to anchor links */
}

p {
    position: relative;
    padding: 16px;
    margin: 0;
    color: black;
    text-align: center;
    font-family: 'Verdana', sans-serif;
}

button {
    -webkit-tap-highlight-color: transparent;
    -webkit-tap-highlight-color: rgb(0, 0, 0, 0);
}

a {
    -webkit-tap-highlight-color: transparent;
    -webkit-tap-highlight-color: rgb(0, 0, 0, 0);
    text-decoration: none;
}

/* Hamburger menu styles */
.hamburger {
    display: none;
    flex-direction: column;
    background: none;
    border: none;
    cursor: pointer;
    padding: 10px;
    margin-right: 24px;
}

.hamburger span {
    width: 25px;
    height: 2px;
    background-color: black;
    margin: 3px 0;
    transition: 0.3s;
}

/* Hamburger animation when active */
.hamburger.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

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

.hamburger.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -6px);
}

.about-info {
    display: grid;
    grid-template-columns: 1fr;
    background-color: rgb(236, 236, 236);
    padding: 16px 64px;
    text-align: center;
    font-family: 'Verdana', sans-serif;
    width: 100vw;
}

.about-info .contact-button {
    margin: 16px;
}

.about-info-block {
    margin: 16px;
    padding: 8px;
    background-color: white;
    border-radius: 32px;
    text-align: center;
    font-family: 'Arial', sans-serif;
}

.about-info-block p {
    color: grey;
    margin: 0px 16px;
}

.second-home-image {
    height: 80vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    background-position: center;
    margin: 0;
    padding: 0;
    background-size: cover;
    background-image: linear-gradient(to top, #000000, rgb(0, 0, 0, 0.6), rgb(0, 0, 0, 0.6)), url("../images/second_home_img.jpg");
    background-attachment: fixed;
    /* Added for parallax */
}

.second-home-image h2 {
    padding: 0;
    color: white;
    text-align: center;
    justify-content: center;
    align-items: center;
}

.second-home-image .contact-button {
    text-align: center;
    justify-content: center;
    align-items: center;
}

.footer {
    display: grid;
    grid-template-columns: 1fr 1fr;
    background-color: rgb(236, 236, 236);
    padding: 16px 32px;
    font-family: 'Verdana', sans-serif;
    font-size: 0.9em;
    align-items: center;
    padding: 32px;
}

.copyright {
    padding: 16px;
    text-align: right;
    justify-items: right;
    align-items: right;
    font-family: 'Verdana', sans-serif;
    color: grey;
    font-size: 0.7em !important;
}

.footer-left p {
    text-align: left;
    font-family: 'Verdana', sans-serif;
    font-size: 1em;
    font-weight: bold;
}

.footer-right {
    text-align: right;
    justify-items: right;
    align-items: right;
    font-size: 0.9em;
}

.footer-logo {
    height: 100px;
    margin: 16px;
}

.who-we-are-banner {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    margin: 0;
    padding: 64px;
    width: 100vw;
    background-image:
        linear-gradient(to top, #000000, rgb(0, 0, 0, 0.8), rgb(0, 0, 0, 0.8)), url("../images/who_we_are.jpg");
    background-size: cover;
    text-align: center;
    z-index: 1;
    background-attachment: fixed;
    /* Added for parallax */
}

.what-we-do-banner p {
    color: white;
    text-align: left;
}

.what-we-do-banner {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    margin: 0;
    padding: 64px;
    width: 100vw;
    background-image:
        linear-gradient(to top, #000000, rgb(0, 0, 0, 0.8), rgb(0, 0, 0, 0.8)), url("../images/what_we_do.jpg");
    background-size: cover;
    text-align: center;
    z-index: 1;
    background-attachment: fixed;
    /* Added for parallax */
}

.who-we-are-banner p {
    color: white;
    text-align: left;
}

.subheader {
    /* color: var(--primary-color) !important; */
    font-weight: bold;
    padding: 16px 16px 0px 16px;
}

.james {
    border-radius: 100%;
    height: 200px;
    width: 200px;
}

.contact-banner {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    margin: 0;
    padding: 64px;
    width: 100vw;
    background-image:
        linear-gradient(to top, #000000, rgb(0, 0, 0, 0.8), rgb(0, 0, 0, 0.8)), url("../images/contact.jpg");
    background-size: cover;
    text-align: center;
    z-index: 1;
    background-attachment: fixed;
    /* Added for parallax */
}

.contact-banner h2 {
    color: white;
    /* text-align: left; */
    padding: 16px 0px;
    margin: 0px;
}

.contact-banner h3 {
    color: white;
    /* text-align: left; */
    padding: 16px 0px;
    margin: 0px;
}

.contact-banner p {
    color: white;
    /* text-align: left; */
    padding: 16px;
}

/* calc((100vw) / 2 - 200px) */

.contact-banner .james {
    margin: auto;
    justify-items: center;
    align-items: center;
    text-align: center;

}

.contact-banner a {
    display: flex;
    padding: 0px;
    align-items: center;
    justify-content: center;
}

.contact-details {
    background-image: linear-gradient(to top, #000000, rgb(0, 0, 0, 0.7), rgb(0, 0, 0, 0.7));
    border-radius: 32px;
    border: #e1e1e1 solid 1px;
    padding: 32px;
    margin: 16px 32px 0px 32px;
    justify-content: center;
    align-items: center;
}

.contact-details h2 {
    font-family: 'Wide', sans-serif;
}

.mobile-badges {
    display: none;
}

.desktop-badges {
    display: inline-block;
    height: 80px;
    margin: 16px;
}

/* Animation styles */
.fade-in-on-scroll {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.show-on-scroll {
    opacity: 1;
    transform: translateY(0);
}

/* Optional: for elements that might slide from the side */
.slide-in-on-scroll.slide-from-left {
    opacity: 0;
    transform: translateX(-50px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.slide-in-on-scroll.slide-from-right {
    opacity: 0;
    transform: translateX(50px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

iframe {
    width: 100%;
    height: 100vh;
}


/* Less than 650px */
@media screen and (max-width: 650px) {

    .footer-logo {
        height: 110px;
        margin: 16px;
    }

    .mobile-badges {
        display: inline-block;
        height: 60px;
        margin: 16px;
    }

    .desktop-badges {
        display: none;
    }

    .about-info {
        padding: 16px 32px;
    }

    /* Show hamburger menu */
    .hamburger {
        display: flex;
    }

    .tagbar {
        background-color: var(--primary-color);
        /* height: 80px; */
        display: none;
    }

    /* Hide regular nav and show mobile nav */
    nav {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background-color: white;
        flex-direction: column;
        box-shadow: 0px 8px 16px 0px rgba(0, 0, 0, 0.2);
    }

    nav.active {
        display: flex;
    }

    .dropdown {
        position: relative;
        display: block;
        width: 100%;
    }

    .menuitem {
        padding: 16px 32px;
        /* margin: 0; */
        text-align: left;
        color: black;
        font-family: 'Verdana', sans-serif;
        font-size: 0.9em;
        text-decoration: none;
        border: none;
        border-bottom: 1px solid #f1f1f1;
        display: block;
        width: 100%;
        transition: background-color 0.2s;
    }

    .menuitem:hover {
        background-color: #f1f1f1;
        color: var(--primary-color);
    }

    .menuitem::before {
        display: none;
    }

    /* Dropdown styles for mobile */
    .dropdown-content {
        position: static;
        display: none;
        background-color: #f9f9f9;
        box-shadow: none;
        margin: 0;
        width: 100%;
        font-family: Verdana, Geneva, Tahoma, sans-serif;
        font-size: 0.9em;
    }

    .dropdown.active .dropdown-content {
        display: block;
    }

    .dropdown-content a {
        color: black;
        padding: 12px 48px;
        text-decoration: none;
        display: block;
        border-bottom: 1px solid #e1e1e1;
    }

    .dropdown-content a:hover {
        background-color: #e1e1e1;
        color: var(--primary-color);
    }

    .banner {
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        margin: 0;
        padding: 0;
        width: 100vw;
        height: calc(100vh - 100px);
        background-image:
            linear-gradient(to top, #000000, rgb(0, 0, 0, 0.6), rgb(0, 0, 0, 0.6)), url("../images/banner_img.jpg");
        background-size: cover;
        text-align: center;
        z-index: 1;
        background-attachment: scroll;
        /* Changed to scroll for mobile for better performance */
    }

    h1 {
        position: relative;
        margin: 0px 64px 16px 64px;
        color: white;
        text-align: center;
        font-family: 'Wide', sans-serif;
        font-size: 1.1em;
    }

    h2 {
        position: relative;
        padding: 0;
        margin: 0;
        color: white;
        text-align: center;
        font-family: 'Verdana', sans-serif;
        margin: 0px 64px 16px 64px;
        font-size: 1em;
    }

    h3 {
        position: relative;
        padding: 0;
        margin: 0;
        color: white;
        text-align: center;
        font-family: 'Verdana', sans-serif;
        margin: 0px 64px 16px 64px;
        font-size: 0.9em;
    }

    .material-icons {
        font-size: 24px !important;
        color: var(--primary-color);
        display: none !important;
    }

    /* Add animation (fade in the popup) */
    @-webkit-keyframes fadeIn {
        from {
            opacity: 0;
        }

        to {
            opacity: 1;
        }
    }

    @keyframes fadeIn {
        from {
            opacity: 0;
        }

        to {
            opacity: 1;
        }
    }

    .tagline {
        position: relative;
        display: flex;
        align-items: center;
        margin: 0;
        padding: 16px 32px;
        color: white;
        text-align: left;
        font-family: 'Verdana', sans-serif;
        font-size: 0.9em;
    }

    .logo {
        box-sizing: border-box;
        display: flex;
        justify-content: center;
        align-items: center;
        height: 80px;
        position: relative;
        padding: 16px 32px;
    }

    .footer {
        grid-template-columns: 1fr;
    }

    .footer-left p {
        text-align: center;
        justify-items: center;
        align-items: center;
        font-size: 0.9em;
    }

    .footer-right {
        text-align: center;
        justify-items: center;
        align-items: center;
        font-size: 0.8em;
    }

    .who-we-are-banner {
        padding: 32px;
        background-attachment: scroll;
        /* Changed to scroll for mobile for better performance */
    }

    .what-we-do-banner {
        padding: 32px;
        background-attachment: scroll;
        /* Changed to scroll for mobile for better performance */
    }

    .contact-banner {
        padding: 32px;
        background-attachment: scroll;
        /* Changed to scroll for mobile for better performance */
    }

    .second-home-image {
        background-attachment: scroll;
        /* Changed to scroll for mobile for better performance */
    }

    .contact-details {
        background-color: transparent !important;
        /* border: none !important; */
        padding: 16px !important;

    }

    .contact-banner p {
        font-size: 0.65em;
    }
}

/* Between 600px and 1000px */
@media screen and (min-width: 650px) and (max-width: 1000px) {

    h1 {
        position: relative;
        margin: 0px 64px 16px 64px;
        color: white;
        text-align: center;
        font-family: 'Wide', sans-serif;
        font-size: 2em;
    }

    h2 {
        position: relative;
        padding: 0;
        margin: 0;
        color: white;
        text-align: center;
        font-family: 'Verdana', sans-serif;
        margin: 0px 64px 16px 64px;
        font-size: 1.2em;
    }

    h3 {
        position: relative;
        padding: 0;
        margin: 0;
        color: white;
        text-align: center;
        font-family: 'Verdana', sans-serif;
        margin: 0px 64px 16px 64px;
        font-size: 1em;
    }

    .material-icons {
        font-size: 28px !important;
        color: var(--primary-color);
        padding: 0px 8px 0px 0px;
    }

    /* Add animation (fade in the popup) */
    @-webkit-keyframes fadeIn {
        from {
            opacity: 0;
        }

        to {
            opacity: 1;
        }
    }

    @keyframes fadeIn {
        from {
            opacity: 0;
        }

        to {
            opacity: 1;
        }
    }

    .tagline {
        position: relative;
        display: flex;
        align-items: center;
        margin: 0;
        padding: 16px 64px;
        color: white;
        text-align: left;
        font-family: 'Verdana', sans-serif;
        font-size: 0.9em;
    }

    .dropdown {
        position: relative;
        display: inline-block;
    }


    /* Dropdown Content (Hidden by Default) */
    .dropdown-content {
        display: none;
        position: absolute;
        background-color: #f9f9f9;
        min-width: 160px;
        box-shadow: 0px 8px 16px 0px rgba(0, 0, 0, 0.2);
        z-index: 1;
        margin: 8px;
        font-family: Verdana, Geneva, Tahoma, sans-serif;
        font-size: 0.9em;
    }

    /* Links inside the dropdown */
    .dropdown-content a {
        color: black;
        padding: 12px 16px;
        text-decoration: none;
        display: block;
    }

    /* Change color of dropdown links on hover */
    .dropdown-content a:hover {
        background-color: #f1f1f1;
        color: var(--primary-color);
    }

    /* Show the dropdown menu on hover */
    .dropdown:hover .dropdown-content {
        display: block;
    }

    /* Change the background color of the dropdown button when the dropdown content is shown */
    .dropdown:hover .dropbtn {
        background-color: #3e8e41;
    }

    .menuitem {
        padding: 8px;
        text-align: right;
        color: black;
        font-family: 'Verdana', sans-serif;
        font-size: 0.9em;
        text-decoration: none;
        position: relative;
        transition: ease-in-out 0.2s;
        border-left: 2px solid white;
        border-right: 2px solid white;
        /* border-radius: 32px; */
    }

    .menuitem::before {
        content: "";
        position: absolute;
        top: 100%;
        left: 50%;
        transform: translate(-50%, -50%);
        width: 0;
        height: 2px;
        background-color: var(--primary-color);
        transition: width 0.2s ease-in-out;
    }

    .menuitem:hover::before {
        width: 100%;
    }

    .menuitem:hover {
        color: var(--primary-color);
    }

    nav {
        padding: 16px 56px 16px 0px;
    }

    .logo {
        box-sizing: border-box;
        display: flex;
        justify-content: center;
        align-items: center;
        /* margin-left: auto;
    margin-right: auto; */
        height: 100px;
        position: relative;
        padding: 16px 64px;
    }

    .contact-details {
        margin: 32px 32px 0px 32px !important;
    }

}

/* Greater than 1000px */
@media screen and (min-width: 1000px) {

    .about-info {
        grid-template-columns: 1fr 1fr 1fr;
        padding: 160px 64px;
    }

    h1 {
        position: relative;
        margin: 0px 64px 16px 64px;
        color: white;
        text-align: center;
        font-family: 'Wide', sans-serif;
        font-size: 3em;
    }

    h2 {
        position: relative;
        padding: 0;
        margin: 0;
        color: white;
        text-align: center;
        font-family: 'Verdana', sans-serif;
        margin: 0px 64px 16px 64px;
        font-size: 1.5em;
    }

    h3 {
        position: relative;
        padding: 0;
        margin: 0;
        color: white;
        text-align: center;
        font-family: 'Verdana', sans-serif;
        margin: 0px 64px 16px 64px;
        font-size: 1.2em;
    }


    .material-icons {
        font-size: 28px !important;
        color: var(--primary-color);
    }

    /* Add animation (fade in the popup) */
    @-webkit-keyframes fadeIn {
        from {
            opacity: 0;
        }

        to {
            opacity: 1;
        }
    }

    @keyframes fadeIn {
        from {
            opacity: 0;
        }

        to {
            opacity: 1;
        }
    }

    .tagline {
        position: relative;
        display: flex;
        align-items: center;
        margin: 0;
        padding: 16px 64px;
        color: white;
        text-align: left;
        font-family: 'Verdana', sans-serif;
        font-size: 0.9em;
    }

    .dropdown {
        position: relative;
        display: inline-block;
    }

    /* Dropdown Content (Hidden by Default) */
    .dropdown-content {
        display: none;
        position: absolute;
        background-color: #f9f9f9;
        min-width: 160px;
        box-shadow: 0px 8px 16px 0px rgba(0, 0, 0, 0.2);
        z-index: 1;
        margin: 8px;
        font-family: Verdana, Geneva, Tahoma, sans-serif;
        font-size: 1em;
    }

    /* Links inside the dropdown */
    .dropdown-content a {
        color: black;
        padding: 12px 16px;
        text-decoration: none;
        display: block;
    }

    /* Change color of dropdown links on hover */
    .dropdown-content a:hover {
        background-color: #f1f1f1;
        color: var(--primary-color);
    }

    /* Show the dropdown menu on hover */
    .dropdown:hover .dropdown-content {
        display: block;
    }

    /* Change the background color of the dropdown button when the dropdown content is shown */
    .dropdown:hover .dropbtn {
        background-color: #3e8e41;
    }


    .menuitem {
        padding: 8px;
        text-align: right;
        color: black;
        font-family: 'Verdana', sans-serif;
        font-size: 1em;
        text-decoration: none;
        position: relative;
        transition: ease-in-out 0.2s;
        border-left: 2px solid white;
        border-right: 2px solid white;
    }

    .menuitem::before {
        content: "";
        position: absolute;
        top: 100%;
        left: 50%;
        transform: translate(-50%, -50%);
        width: 0;
        height: 2px;
        background-color: var(--primary-color);
        transition: width 0.2s ease-in-out;
    }

    .menuitem:hover::before {
        width: 100%;
    }

    .menuitem:hover {
        color: var(--primary-color);
    }

    nav {
        padding: 16px 56px 16px 0px;
    }

    .logo {
        box-sizing: border-box;
        display: flex;
        justify-content: center;
        align-items: center;
        height: 120px;
        position: relative;
        padding: 16px 64px;
    }

    .footer {
        font-size: 1.2em;
        padding: 64px;
    }


    .footer-logo {
        height: 120px;
        margin: 16px;
    }

    .contact-details {
        margin: 32px 64px 0px 64px !important;
    }

    /* .who-we-are-banner {
        display: grid;
        grid-template-columns: 1fr 1fr;
    } */

}