* {
    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('https://placehold.co/2160x1440'); /* Replace with actual image URL */
    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 {
    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;
}

.main1-content {
    width: 100%;
    display: flex;
    text-align: center;
    align-items: start;
    justify-content: stretch;
}

.main1-left {
    flex: 2;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
}

.main1-left form {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 80%;
}

.main1-left form label {
    margin-bottom: 5px;
    font-weight: bold;
    text-align: left;
    width: 100%;
}

.main1-left form input,
.main1-left form textarea {
    margin-bottom: 15px;
    padding: 10px;
    width: 100%;
}

.main1-left button {
    padding: 18px;
    border-radius: 40px;
    background-color: #30368a;
    text-decoration: none;
    color: white;
    font-weight: bold;
    transition: 0.2s ease background-color;
    font-size: 1rem;
    border: none;

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

.main1-right {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-around;
    align-items: center;
    background-color: #30368a;
    padding: 20px;
    color: white;
    border-radius: 32px;
    max-width: 400px;
}

.main1-right a {
    color: white;
    text-decoration: none;

    &:hover {
        text-decoration: underline;
    }
}

.main1-right ul {
    padding-top: 20px;
    list-style: none;
    display: flex;
    flex-direction: column;
    text-align: left;
}

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

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) {
    .main1-content {
        flex-direction: column;
        align-items: stretch;
    }

    .main1-container {
        padding-bottom: 0;
        margin-bottom: 0;
    }

    .main1-left form {
        width: 100%;
    }

    .main1-right {
        margin: 40px auto;
    }
}

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

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

    .main1-right {
        margin: 40px 0;
    }
}