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

body {
    font-family: 'Roboto', sans-serif;
    background-color: var(--background-color);
    --color1: #AFD7E0;
    --color2: #9FBCC7;
    --color3: #6594B0;
    --color4: #155B86;
    --color5: #AFD7E0; /* Added color5 variable for scroll button hover */
    --background-color: #002B4F;
}
/* active button */
#active {
    color: var(--color2);
}
/* Navigation Bar */
.nav-bar {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    list-style: none;
    position: fixed;
    background-color: rgba(21, 91, 134, 0.75);
    padding: 12px 20px;
    animation-name: header;
    animation-duration: 2s;
    animation-fill-mode: both;
    animation-delay: 500ms;
    z-index: 10;
}

@keyframes header {
    0% {
        transform: translateY(-60px);
    }

    100% {
        transform: translateY(0);
    }
}

.nav-bar>ul {
    list-style: none;
}

.logo img {
    width: 40px;
}

.menu {
    display: flex;
    list-style: none;
}

.menu li {
    padding-left: 30px;
}

.menu li a {
    display: inline-block;
    text-decoration: none;
    color: #ffffff;
    text-align: center;
    transition: 0.15s ease-in-out;
    position: relative;
    text-transform: capitalize;
    font-weight: bold;
}

.menu li a::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 1px;
    background-color: var(--color1);
    transition: 0.15s ease-in-out;
}

.menu li a:hover {
    color: var(--color1);
}

.menu li a:hover:after {
    width: 100%;
}

.open-menu,
.close-menu {
    position: absolute;
    color: var(--color1);
    cursor: pointer;
    font-size: 1.5rem;
    display: none;
}

.open-menu {
    top: 50%;
    right: 20px;
    transform: translateY(-50%);
}

.close-menu {
    top: 20px;
    right: 20px;
}

#check {
    display: none;
}

/* Hero Section */
.hero {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 6rem 0;
    height: 60vh;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url("img/pexels-einbeck-tourismus-455872439-15555544.jpg");
    background-attachment: fixed;
    background-size: cover;
    background-position: center;
    opacity: 0.3;
    z-index: 1;
}

.hero-content {
    z-index: 2;
    width: 80%;
    max-width: 1200px;
    text-align: center;
    padding: 2rem;
}

.hero-content h1 {
    font-size: 3.5rem;
    margin-bottom: 1.5rem;
    color: #AFD7E0;
    animation: fadeIn 1.5s ease-in-out;
}

.hero-content p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    color: #ffffff;
    line-height: 1.6;
    animation: fadeIn 2s ease-in-out;
    max-width: 800px;
    margin: 0 auto;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Our Mission Section */
.our-mission {
    padding: 4rem 2rem;
    background-color: #003366;
}

.our-mission h2 {
    text-align: center;
    font-size: 2.5rem;
    color: #AFD7E0;
    margin-bottom: 3rem;
}

.mission-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.mission-card {
    flex: 1;
    min-width: 300px;
    max-width: 350px;
    background-color: rgba(175, 215, 224, 0.1);
    padding: 2rem;
    border-radius: 8px;
    text-align: center;
    transition: transform 0.3s ease;
}

.mission-card:hover {
    transform: translateY(-10px);
}

.mission-card img {
    width: 80px;
    height: 80px;
    object-fit: contain;
    margin-bottom: 1.5rem;
}

.mission-card h3 {
    color: #AFD7E0;
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.mission-card p {
    color: #ffffff;
    line-height: 1.6;
}

/* Meet The Team Section */
.meet-team {
    padding: 4rem 2rem;
    background-color: #002B4F;
}

.meet-team h2 {
    text-align: center;
    font-size: 2.5rem;
    color: #AFD7E0;
    margin-bottom: 3rem;
}

.team-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 3rem;
    max-width: 1200px;
    margin: 0 auto;
}

.team-member {
    flex: 1;
    min-width: 250px;
    max-width: 350px;
    background-color: rgba(175, 215, 224, 0.1);
    padding: 2rem;
    border-radius: 8px;
    text-align: center;
    transition: transform 0.3s ease;
}

.team-member:hover {
    transform: translateY(-10px);
}

.team-member img {
    width: 150px;
    height: 150px;
    object-fit: cover;
    border-radius: 50%;
    margin-bottom: 1.5rem;
}

.team-member h3 {
    color: #AFD7E0;
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

.team-member .role {
    color: #9FBCC7;
    font-style: italic;
    margin-bottom: 1rem;
}

.team-member p {
    color: #ffffff;
    line-height: 1.6;
}

/* Why We Created This Website Section */
.why-created {
    padding: 4rem 2rem;
    background-color: #003366;
    overflow: hidden;
}

.why-created h2 {
    text-align: center;
    font-size: 2.5rem;
    color: #AFD7E0;
    margin-bottom: 3rem;
}

.why-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    max-width: 1200px;
    margin: 0 auto;
    gap: 2rem;
}

.why-image {
    flex: 1;
    min-width: 300px;
    max-width: 500px;
    border-radius: 8px;
    overflow: hidden;
}

.why-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.why-text {
    flex: 1;
    min-width: 300px;
    background-color: rgba(175, 215, 224, 0.1);
    padding: 2rem;
    border-radius: 8px;
}

.why-text h3 {
    color: #AFD7E0;
    font-size: 1.8rem;
    margin-bottom: 1.5rem;
}

.why-text p {
    color: #ffffff;
    margin-bottom: 1rem;
    line-height: 1.6;
}

/* Contact Us Section */
.contact-us {
    padding: 4rem 2rem;
    background-color: #002B4F;
    overflow: hidden;
}

.contact-us h2 {
    text-align: center;
    font-size: 2.5rem;
    color: #AFD7E0;
    margin-bottom: 3rem;
}

.contact-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    max-width: 1200px;
    margin: 0 auto;
    gap: 2rem;
}

.contact-info {
    flex: 1;
    min-width: 300px;
    background-color: rgba(175, 215, 224, 0.1);
    padding: 2rem;
    border-radius: 8px;
}

.contact-item {
    display: flex;
    align-items: center;
    margin-bottom: 1.5rem;
}

.contact-item i {
    font-size: 1.5rem;
    color: #AFD7E0;
    margin-right: 1rem;
    width: 30px;
    text-align: center;
}

.contact-item p {
    color: #ffffff;
}

.social-links {
    display: flex;
    gap: 1rem;
    margin-top: 2rem;
}

.social-links a img {
    width: 30px;
    height: 30px;
    transition: transform 0.3s ease;
}

.social-links a img:hover {
    transform: scale(1.1);
}

.contact-form {
    flex: 1;
    min-width: 300px;
    background-color: rgba(175, 215, 224, 0.1);
    padding: 2rem;
    border-radius: 8px;
}

.contact-form h3 {
    color: #AFD7E0;
    font-size: 1.8rem;
    margin-bottom: 1.5rem;
    text-align: center;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 0.8rem;
    border: none;
    border-radius: 4px;
    background-color: rgba(255, 255, 255, 0.1);
    color: #ffffff;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: rgba(255, 255, 255, 0.7);
}

.form-group textarea {
    height: 120px;
    resize: none;
}

.submit-btn {
    display: block;
    width: 100%;
    padding: 1rem;
    background-color: #AFD7E0;
    color: #002B4F;
    border: none;
    border-radius: 4px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
}

.submit-btn:hover {
    background-color: #9FBCC7;
}

/* Footer */
.footer {
    background-color: #AFD7E0;
    padding: 1.8rem 1rem;
    text-align: center;
    overflow: hidden;
}

.footer-top {
    display: flex;
    flex-direction: row;
    color: #002B4F;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
    margin-left: 1.5rem;
    margin-right: 1.5rem;
}

.footer-top h1 {
    text-align: left;
    font-size: 35px;
}

.btn-footer {
    display: inline-block;
    padding: 0.8rem 1.5rem;
    border: 3px solid #002B4F;
    color: #002B4F;
    font-weight: bold;
    text-decoration: none;
    transition: all 0.3s ease;
    font-size: 26px;
}

.btn-footer:hover {
    transform: translateX(10px);
    background-color: #002B4F;
    color: #ffffff;
}

.footer-bottom {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    padding: 1rem 0;
    margin-left: 1.5rem;
}

.footer-links {
    list-style: none;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    padding: 0;
    margin: 0;
}

.footer-links li a {
    color: #003366;
    font-weight: bold;
    text-decoration: none;
    font-size: 1rem;
    transition: 0.3s ease;
}

.footer-links li a:hover {
    color: #6594B0;
}

.footer-social {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-right: 1.6rem;
}

.footer-social a img {
    width: 24px;
    height: 24px;
    transition: transform 0.3s ease;
}

.footer-social a img:hover {
    transform: scale(1.1);
}

/* scroll to top */
.scroll-up {
    position: fixed;
    right: 4%;
    bottom: 3%;
    z-index: 99;
}
.scroll-up button {
    width: 50px;
    height: 50px;
    border: none;
    background-color: var(--color3);
    box-shadow: 0 0 15px rgba(0, 0, 0, 0.5);
    color: var(--background-color);
    font-size: 22px;
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s ease-in-out;
    display: none;
}
.scroll-up button:hover {
    background-color: transparent;
    color: var(--color1);
    transform: translateY(-5px);
}
.scroll-up button img {
    width: 20px;
    height: 20px;
    filter: brightness(0) invert(1);
}

/* Media Query for Mobile Devices */
@media(max-width: 600px) {
    .menu {
        flex-direction: column;
        align-items: center;
        justify-content: center;
        width: 80%;
        height: 100vh;
        position: fixed;
        top: 0;
        right: -100%;
        z-index: 100;
        background-color: var(--color4);
        transition: all 0.5s ease;
    }

    .menu li {
        margin-top: 40px;
    }

    .menu li a {
        padding: 10px;
    }

    .open-menu,
    .close-menu {
        display: block;
    }

    #check:checked~.menu {
        right: 0;
    }

    .hero {
        height: 100vh;
    }

    .hero-content h1 {
        font-size: 2rem;
    }

    .hero-content p {
        font-size: 1rem;
    }

    .mission-container,
    .why-container {
        flex-direction: column;
    }

    .why-container {
        flex-direction: column-reverse;
    }

    .team-container {
        gap: 3rem;
    }
    
    .contact-container {
        flex-direction: column;
    }

    .footer-top {
        flex-direction: column;
        margin-right: 0;
        margin-left: 0;
        align-items: flex-start;
        gap: 10px;
    }

    .footer-top h1 {
        font-size: 25px;
    }

    .btn-footer {
        font-size: 20px;
        padding: 0.5rem 0.6rem;
        align-self: flex-end;
    }

    .footer-bottom {
        flex-direction: column;
        margin-left: 0;
        gap: 25px;
    }

    .footer-social {
        align-self: flex-end;
    }

    .footer-links {
        align-self: center;
    }
}

/* Media Query for Tablet Devices */
@media (min-width: 601px) and (max-width: 900px) {
    .menu {
        flex-direction: column;
        align-items: center;
        justify-content: center;
        width: 80%;
        height: 100vh;
        position: fixed;
        top: 0;
        right: -100%;
        z-index: 100;
        background-color: var(--color4);
        transition: all 0.5s ease;
    }

    .menu li {
        margin-top: 40px;
    }

    .menu li a {
        padding: 10px;
    }

    .open-menu,
    .close-menu {
        display: block;
    }

    #check:checked~.menu {
        right: 0;
    }

    .hero-content h1 {
        font-size: 2.5rem;
    }

    .team-container {
        gap: 2rem;
    }

    .footer-top h1 {
        font-size: 30px;
        width: 60%;
    }

    .btn-footer {
        font-size: 22px;
        padding: 0.5rem 1rem;
    }
}
