html {
    font-size: 14px;
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    overflow: hidden;
}

body {
    margin: 0;
    padding: 0;
}

.header-main-cont {
    position: fixed;
    width: 100%;
    top: 0;
    left: 0;
    height: auto;
    padding: 1rem .5rem;
    background-image: linear-gradient(to bottom, black, transparent);
    z-index: 3; /* Above images and text */
}

.nav-main-cont {
    display: grid;
    grid-template-columns: auto 1fr;
}

.company-logo-img {
    max-height: 40px;
    margin-left: 1.5rem;
}

.menu-btn-cont {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    padding: 0 1rem;
}

.menu-btn {
    height: 30px;
    width: auto;
    gap: 20px;
    background: none;
    border: none;
    color: #fff;
    font-family: monospace;
    font-size: 1.5rem;
}

.menu-btn-apply {
    height: 30px;
    width: auto;
    gap: 20px;
    background: black;
    border: none;
    color: #fff;
    font-family: monospace;
    font-size: larger;
    margin-left: 2rem;
    padding: 0 1rem;
    cursor: grab;
}

    .menu-btn-apply:hover {
        background: #444;
    }

    .menu-btn-apply:active {
        background: #555;
    }

.home-page-cont {
    height: 100vh;
    width: 100%;
    position: relative;
}

.home-image-bg {
    width: 100%;
    height: 100%;
    overflow: hidden;
    position: absolute;
    top: 0;
    left: 0;
    z-index: 1; /* Behind text and header */
}

.bg-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    position: absolute;
    top: 0;
    left: 0;
    opacity: 0; /* Start invisible */
    animation: fadeInOut 21s infinite; /* Total duration for 3 images (4s each) */
}

    .bg-image:nth-child(1) {
        animation-delay: 0s;
    }

    .bg-image:nth-child(2) {
        animation-delay: 7s;
    }

    .bg-image:nth-child(3) {
        animation-delay: 14s;
    }

@keyframes fadeInOut {
    0% {
        opacity: 0;
    }

    8.33% { /* ~1s fade in */
        opacity: 1;
    }

    33.33% { /* ~4s total (1s fade in + 3s visible) */
        opacity: 1;
    }

    41.66% { /* ~5s, start fading out */
        opacity: 0;
    }

    100% {
        opacity: 0;
    }
}

.home-banner-cont {
    position: fixed;
    top: 150px;
    left: 20px;
    z-index: 2; /* Above images, below header */
}

.home-banner-text {
    color: #fff;
    font-size: 4rem;
    padding: 0;
    margin: 10px 0;
    font-family: system-ui;
    position: relative;
    opacity: 0; /* Hide before animation */
    animation: slideDown 1s ease-out forwards;
}

    .home-banner-text:nth-child(1) {
        animation-delay: 0s;
    }

    .home-banner-text:nth-child(2) {
        animation-delay: 0.3s;
    }

    .home-banner-text:nth-child(3) {
        animation-delay: 0.6s;
    }

    .home-banner-text:nth-child(4) {
        animation-delay: 0.9s;
    }

@keyframes slideDown {
    0% {
        top: -100px;
        opacity: 0;
    }

    100% {
        top: 0;
        opacity: 1;
    }
}
