* {
    margin: 0;
    padding: 0;
    font-family: "Poppins", sans-serif;
}

html {
    scroll-behavior: smooth;
}

/* hr {
    width: 80%;
    margin: 0 auto;
    background: linear-gradient(to right, white, #30368a 50%, white 100%);
    height: 1px;
    border: none;
} */

header {
    height: 80px;
    padding: 20px 0;
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15);
    position: sticky;
    top: 0;
    z-index: 1000;
    background-color: white;
}

.header-container,
.footer-container {
    width: 80%;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.header-container img {
    height: 60px;
    width: auto;
}

nav {
    display: flex;
    justify-content: center;
    align-items: center;
}

nav ul {
    list-style: none;
    display: flex;
    gap: 50px;
}

nav ul a {
    text-decoration: none;
    color: #30368a;
    transition: 0.2s ease color;

    &:hover {
        color: orange;
    }
}

.selected {
    text-decoration: underline;
    text-underline-offset: 5px;
    font-weight: bold;
    color: #30368a;

    &:hover {
        cursor: default;
        color: #30368a;
    }
}

main {
    width: 100%;
}

.hero {
    height: calc(100vh - 120px);
    background-image: url('./img/hero.JPG');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.45);
}

.hero svg {
    position: absolute;
    bottom: 10px;
    left: 50%;
    transform: translateX(-50%);
    animation: bounce 5s infinite;

    &:hover {
        cursor: pointer;
    }
}

.hero-container {
    color: white;
    position: relative;
    z-index: 10;
    width: 80%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
    text-align: center;
}

.hero-container h1 {
    font-size: 4rem;
}

.hero-container p {
    font-size: 1.75rem;
}

.main1 {
    scroll-margin-top: 160px;
}

.main1-container,
.main3-container {
    width: 80%;
    margin: 40px auto;
    padding: 20px;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease, transform 0.6s ease;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
    text-align: center;
}

section a {
    padding: 18px;
    border-radius: 40px;
    background-color: #30368a;
    text-decoration: none;
    color: white;
    font-weight: bold;
    transition: 0.2s ease background-color;

    &:hover {
        background-color: #232766;
    }
}

.main1-content {
    display: flex;
    flex-direction: column;
    text-align: center;
    gap: 10px;
}

.main1-container.is-visible,
.main3-container.is-visible,
.main4-container.is-visible {
    opacity: 1;
    transform: translateY(0);
}

.main2,
.main4 {
    background-color: #30368a;
}

.main2-container {
    width: 80%;
    margin: 40px auto;
    padding: 40px 20px;
    color: white;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 20px;
    text-align: center;
}

.main2-card-container {
    width: 100%;
    display: flex;
    justify-content: space-around;
    gap: 20px;
    align-items: stretch;
}

.main2-card {
    color: black;
    background-color: white;
    border-radius: 12px;
    padding: 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    text-align: center;
    flex: 1;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.main2-card.is-visible {
    opacity: 1;
    transform: translateY(0);
}

.main2-card:nth-child(1) {
    transition-delay: 0.1s;
}

.main2-card:nth-child(2) {
    transition-delay: 0.25s;
}

.main2-card:nth-child(3) {
    transition-delay: 0.4s;
}

.main2-card:nth-child(4) {
    transition-delay: 0.55s;
}

.main4-container {
    width: 80%;
    margin: 40px auto 0 auto;
    padding: 40px 20px;
    color: white;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.main4-container a {
    border: 5px solid white;
}

footer {
    height: 40px;
    padding: 20px 0;
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    background-color: #30368a;
}

.footer-container {
    color: white;
}

@keyframes bounce {
    0%, 84% {
        transform: translateX(-50%) translateY(0);
    }
    88% {
        transform: translateX(-50%) translateY(-10px);
    }
    92% {
        transform: translateX(-50%) translateY(0);
    }
    96% {
        transform: translateX(-50%) translateY(-10px);
    }
    100% {
        transform: translateX(-50%) translateY(0);
    }
}

@media only screen and (max-width: 1024px) {
    .main2-card-container {
        flex-direction: column;
    }

    .main2-card:nth-child(1),
    .main2-card:nth-child(2),
    .main2-card:nth-child(3),
    .main2-card:nth-child(4) {
        transition-delay: 0s;
    }
}

@media only screen and (max-width: 768px) {
    header {
        height: 120px;
    }

    .header-container {
        flex-direction: column;
        gap: 20px;
        justify-content: center;
    }

    .hero {
        height: calc(100vh - 160px);
    }

    .main1 {
        scroll-margin-top: 200px;
    }

    .main4-container {
        flex-direction: column;
        text-align: center;
    }

    .footer-container {
        text-align: center;
    }
}

@media only screen and (max-width: 480px) {
    header {
        padding: 10px 0;
    }

    .header-container img {
        height: 48px;
    }

    .hero {
        height: calc(100vh - 140px);
    }

    nav ul {
        justify-content: space-around;
        gap: 25px;
    }

    .hero-container h1 {
        font-size: 3rem;
    }

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

    .main1 {
        scroll-margin-top: 180px;
    }
}