* {
    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;
}

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

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

/* active button */
#active {
    color: var(--color3);
    filter: grayscale(1);
}

.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;
}

.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: 5%;
    transform: translateY(-50%);
}

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

#check {
    display: none;
}


.hero {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 6rem 0;
    overflow: hidden;
    height: 100vh;
}

.hero::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background-image: url("img/international-student-navigator-australia-e8IU0GSw3ag-unsplash.jpg");
    background-attachment: fixed;
    background-size: cover;
    background-position: bottom;
    opacity: 0.3;
    z-index: 1;
}

.hero-content {
    z-index: 2;
    width: 50%;
    text-align: left;
    padding: 0 20px;
    padding-right: 60px;
    margin-left: 75px;
}

.hero-content h2 {
    font-size: 45px;
    margin-bottom: 1.1rem;
    color: #AFD7E0;
    animation-name: slide-left;
    animation-duration: 2s;
    animation-delay: 1s;
    animation-fill-mode: both;
}

@keyframes slide-left {
    from {
        transform: translateX(-550px);
    }

    to {
        transform: translateX(0);
    }
}

.hero-content p {
    font-size: 16px;
    margin-bottom: 2rem;
    color: #ffffff;
    animation-name: slide-left;
    animation-duration: 2s;
    animation-delay: 1.5s;
    animation-fill-mode: both;
}

.hero-content .btn {
    background-color: #AFD7E0;
    color: #002B4F;
    float: right;
    padding: 0.8rem 1rem;
    font-weight: bold;
    font-size: 14px;
    text-transform: uppercase;
    text-decoration: none;
    transition: background-color 0.3s ease;
}

.hero-content .btn:hover {
    background-color: #003366;
    color: #ffffff;
}

.hero-images {
    display: grid;
    grid-template-columns: repeat(3, auto);
    justify-content: center;
    gap: 10px;
    width: 50%;
    margin-top: 35px;
    z-index: 2;
    padding-left: 40px;
    padding-top: 35px;
}

.hero-images img {
    width: 165px;
    height: 380px;
    object-fit: cover;
    box-shadow: 4px 4px 6px 4px rgba(0, 0, 0, 0.3);
    transition: transform 0.3s ease;
}

.hero-images img:nth-child(1) {
    transform: translateY(-100px);
}

.hero-images img:nth-child(2) {
    transform: translateY(-50px);
}

.hero-images img:nth-child(3) {
    transform: translateY(0);
}

.hero-images img:hover:nth-child(1) {
    transform: translateY(-110px);
}

.hero-images img:hover:nth-child(2) {
    transform: translateY(-60px);
}

.hero-images img:hover:nth-child(3) {
    transform: translateY(-10px);
}

/* Offer Section */
.offer-section {
    text-align: center;
    color: #AFD7E0;
    overflow: hidden;
}

.offer-section h2 {
    font-size: 2.5rem;
    margin-bottom: 3rem;
    margin-top: 40px;
}

.offer-container {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    justify-content: space-around;
    gap: 2rem;
}

.offer-card {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    transition: transform 0.3s ease;
}

.img-card {
    display: flex;
    width: 50%;
    margin-left: 150px;
}

.img-card2 {
    display: flex;
    width: 50%;
}

.text-card {
    display: flex;
    flex-direction: column;
    text-align: left;
    width: 50%;
}

.text-card2 {
    display: flex;
    flex-direction: column;
    text-align: left;
    width: 50%;
    margin-right: 150px;
}

.offer-card img {
    width: 200px;
    height: auto;
    margin-bottom: 1rem;
}

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

.offer-card p {
    font-size: 1rem;
    margin-bottom: 1.5rem;
    color: #ffffff;
}

.text-card .btn {
    background-color: #AFD7E0;
    color: #002B4F;
    padding: 0.8rem 1rem;
    font-weight: bold;
    text-transform: uppercase;
    text-decoration: none;
    text-align: center;
    font-size: 14px;
    transition: background-color 0.3s ease;
    float: right;
    width: 50%;
}

.text-card .btn:hover {
    background-color: #003366;
    color: #ffffff;
}

.text-card2 .btn {
    border: 3px solid #AFD7E0;
    color: #AFD7E0;
    padding: 0.7rem 1rem;
    margin: 0;
    font-weight: bold;
    text-transform: uppercase;
    text-decoration: none;
    text-align: center;
    font-size: 14px;
    transition: background-color 0.3s ease;
    float: right;
    width: 50%;
}

.text-card2 .btn:hover {
    background-color: #AFD7E0;
    color: #002B4F;
}

.offer-card:hover {
    transform: scale(1.05);
}

.quick-facts-section {
    text-align: center;
    align-items: center;
    margin-top: 50px;
    margin: 50px;
}

.quick-facts-section h2 {
    color: #AFD7E0;
    margin-bottom: 40px;
    font-size: 2.5rem;
}

.quick-card-container {
    display: flex;
    flex-direction: row;
    justify-content: center;
    text-align: center;
    gap: 100px;
}

.number-js {
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
}

.quick-card-container h2 {
    color: #002B4F;
    margin-top: 28px;
    margin-left: 3px;
}


#counter {
    font-size: 32px;
    font-weight: bold;
    margin-bottom: 10px;
}

#counter1 {
    font-size: 32px;
    font-weight: bold;
    margin-bottom: 10px;
}

#counter2 {
    font-size: 32px;
    font-weight: bold;
    margin-bottom: 10px;
}

.quick-card-container h3 {
    font-size: 26px;
    text-transform: capitalize;
}

.quick-text-card {
    padding: 25px 25px;
    height: 200px;
    background-color: #AFD7E0;
    color: #002B4F;
    border-radius: 25px;
    box-shadow: 4px 4px 6px 4px rgba(0, 0, 0, 0.3);
    transition: 0.3s ease;
}

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

.benefited-section {
    text-align: center;
    margin-top: 100px;
    margin-bottom: 100px;
}

.benefited-section h2 {
    font-size: 2.5rem;
    color: #AFD7E0;
    margin-bottom: 40px;
}

.benefited-container {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.benefited-card {
    display: flex;
    flex-direction: row;
    justify-content: left;
    text-align: center;
    align-items: center;
    padding: 20px 10px;
    margin: 0 auto;
    width: 800px;
    height: 60px;
    box-shadow: 4px 4px 6px 4px rgba(0, 0, 0, 0.3);
    background-color: #ffffff;
    transition: 0.3s ease;
}

.benefited-card img {
    width: 50px;
    height: 50px;
    margin-left: 5px;
}

.benefited-card h3 {
    color: #002B4F;
}

.benefited-card:hover {
    transform: translateX(10px);
}


.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(--color1);
    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(--color5);
    transform: translateY(-5px);
}

/* 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 {
        flex-direction: column;
        justify-content: flex-start;
        align-items: center;
        padding: 1.5rem 0;
    }

    .hero-content {
        width: auto;
        height: 50%;
        text-align: left;
        padding: 0 20px;
        margin-left: 20px;
        margin-top: 20px;
    }

    .hero-content h2 {
        font-size: 30px;
        margin-bottom: 12px;
        font-weight: bold;
        margin-top: 50px;
    }

    .hero-content p {
        font-size: 12px;
        margin-bottom: 1.5rem;
        padding-right: 30px;
    }

    .hero-content .btn {
        font-size: 12px;
    }

    .hero-images {
        justify-content: center;
        align-items: center;
        width: 100%;
        height: 50%;
        padding: 0 0;
    }

    .hero-images img {
        width: 100px;
        height: 250px;
    }

    .offer-section h2 {
        font-size: 35px;
        margin-top: 20px;
    }

    .offer-container {
        display: flex;
        flex-direction: column;
    }

    .img-card,
    .img-card2 {
        margin-left: 0;
    }

    .offer-card {
        padding: 0 20px;
    }

    .offer-card img {
        width: 150px;
    }

    .text-card2 {
        margin-right: 0;
    }

    .text-card .btn,
    .text-card2 .btn {
        width: 100%;
    }

    .quick-facts-section h2 {
        font-size: 35px;
    }

    .quick-card-container {
        flex-direction: column;
        gap: 50px;
    }

    .quick-facts-section {
        display: flex;
        flex-direction: column;
    }

    .benefited-section h2 {
        font-size: 35px;
    }

    .benefited-card {
        width: 90%;
        height: 90px;
        text-align: left;
    }

    .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 {
        margin-left: 20px;
        padding: 0 0;
    }

    .hero-content h1 {
        font-size: 35px;
    }

    .hero-content p {
        font-size: 14px;
    }

    .hero-images img {
        width: 100px;
    }

    .offer-card img {
        width: 150px;
    }

    .offer-container {
        padding: 0 30px;
    }

    .img-card,
    .text-card2 {
        margin: 0 0;
    }

    .text-card .btn,
    .text-card2 .btn {
        margin: 0 0;
        width: 80%;
        align-self: flex-end;
    }

    .text-card .btn {
        font-size: 14px;
    }

    .quick-card-container h3 {
        font-size: 20px;
    }

    .benefited-card {
        width: 80%;

    }

    .quick-card-container h2,
    #counter2 {
        font-size: 30px;
    }

    .quick-card-container {
        gap: 70px;
    }

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

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


}
