.hero {
    position: relative;
    height: 600px;
    overflow: hidden;
}

.hero-animation {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    background-color: #091b2c;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 600px;
    padding: 20px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    justify-content: center;
    height: 100%;
    text-shadow: 5px 5px 15px #091b2c, -5px -5px 15px #091b2c;
}

/* Hero Page-specific animated images */
.hero-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    opacity: 0;
    animation: fadeInOut 15s ease-in-out infinite, zoomEffect 15s ease-in-out infinite;
    background-blend-mode: screen;
}

    /* Define each image's background and animation delay */
    .hero-image.full-color {
        background-image: url('/css/images/arrowmaker/color.jpg');
        animation-delay: 0s;
    }

    .hero-image.sketched-color {
        background-image: url('/css/images/arrowmaker/color_sketch.jpg');
        animation-delay: 5s;
    }

    .hero-image.sketched-bw {
        background-image: url('/css/images/arrowmaker/bw_sketch.jpg');
        animation-delay: 10s;
    }

/* Updated fadeInOut animation to add a smooth fade-in effect */
@keyframes fadeInOut {
    0% {
        opacity: 0;
    }

    10% {
        opacity: 1;
    }

    33% {
        opacity: 1;
    }

    43% {
        opacity: 0;
    }

    100% {
        opacity: 0;
    }
}

/* Smooth zoom effect */
@keyframes zoomEffect {
    0%, 100% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.05);
    }
}

/* Button Styling */
.hero-content .btn {
    background-color: #004080;
    color: #ffffff;
    padding: 12px 25px;
    font-size: 1.2em;
    font-weight: bold;
    border: none;
    border-radius: 8px;
    text-decoration: none;
    max-width: fit-content;
}

    .hero-content .btn:hover {
        background-color: #005bb5;
    }

/* Text Animation */
.hero-content h1, .hero-content p {
    opacity: 0;
    transform: translateY(10px);
    animation: textFadeIn 1.5s ease forwards;
}

.hero-content h1 {
    animation-delay: 0.5s;
}

.hero-content p {
    animation-delay: 0.8s;
}

@keyframes textFadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* History Section */
.history {
    padding: 60px;
}

    .history p {
        font-size: 20px;
        color: rgba(9, 27, 44, 0.91);
        margin-bottom: 30px;
    }


/* Mobile config under 767px */
@media (max-width: 767px) {
    /* History Section mobile */
    .history {
        padding: 40px 0;
    }

        .history p {
            font-size: 16px;
            color: rgba(9, 27, 44, 0.91);
            margin-bottom: 20px;
        }
}
