/* ========================  Index Page Styles ======================================= */

/* index.php sections */

/* Main banner section */
.index-main-banner {
    position: relative;
    width: 100%;
    /* 60px height of the header menu */
    padding-top: 60px;
    overflow: hidden;
    padding-left: 20px;
    padding-right: 20px;
    box-sizing: border-box;
}

.index-main-banner picture,
.index-main-banner img {
    width: 100%;
    height: auto; 
    display: block;
}

.banner-content {
    position: absolute;
    top:50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    color: var(--white);
    padding: 20px;
    width: 80%;
    max-width: 1200px;
    background-color: rgba(var(--black-rgb), 0.5); /* Dark alpha background */
    border-radius: 8px; /* Optional: for a softer look */
    animation: bannerSlide 4s ease-in-out;
    animation-delay: 2.5s;
    animation-fill-mode: forwards;
    z-index: 5;
    box-sizing: border-box;
}

.index-main-banner h1 {
    font-size: 2em;
    margin-bottom: 15px;
}

.index-main-banner p {
    font-size: 0.8em;
}







/* Existing sections */
.index-mission-statement {
    color: var(--text-color2);
    padding: 20px;
    margin-top: 20px;
    justify-content: center;
    align-items: center;
    text-align: left;
    width: 100%;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
    box-sizing: border-box;
}


.index-features {
    color: var(--text-color);
    background-color: var(--background-color);
    padding: 20px;
    margin-top: 20px;
    justify-content: left;
    text-align: left;
}

.index-features h2 {
    color: var(--primary);
    margin-bottom: 15px;
}

.index-features ul {
    list-style-type: disc;
    padding-left: 20px;
}

.index-features li {
    margin-bottom: 10px;
    line-height: 1.6;
}


.index-call-to-action {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 50px 20px;
    background-color: var(--background-color2);
    margin-top: 20px;
    margin: 20px;
    border-radius: 8px;
    border: var(--primary) 1px solid;
}

.index-call-to-action h2 {
    font-size: 2.5em;
    color: var(--primary);
    margin-bottom: 15px;
}

.index-call-to-action p {
    font-size: 1.2em;
    color: var(--text-color2);
    margin-bottom: 30px;
}

.index-call-to-action .button {
    background-color: var(--primary);
    color: var(--white);
    padding: 12px 30px;
    text-decoration: none;
    border-radius: 5px;
    font-weight: bold;
    transition: background-color 0.3s ease;
}

.index-call-to-action .button:hover {
    background-color: var(--secondary);
}

/* Banner animation keyframes */
@keyframes bannerSlide {
    0% {
        transform: translate(-50%, -50%) translateX(-100%) scale(0.5);
        opacity: 0;
    }
    25% {
        transform: translate(-50%, -50%) translateX(0) scale(0.8);
        opacity: 0.8;
    }
    50% {
        transform: translate(-50%, -50%) translateX(0) scale(1.2);
        opacity: 1;
    }
    75% {
        transform: translate(-50%, -50%) translateX(0) scale(1.1);
        opacity: 1;
    }
    100% {
        transform: translate(-50%, -50%) translateX(100%) scale(0.5);
        opacity: 0;
        visibility: hidden;
    }
}

/* ------------------------------- end of index sections --------------------------- */

/* Responsive styles for different screen sizes */
@media screen and (max-width: 1200px) {
    .index-mission-statement {
        padding-left: 15px;
        padding-right: 15px;
    }
    
    .index-main-banner {
        padding-left: 15px;
        padding-right: 15px;
    }
}

@media screen and (max-width: 768px) {
    .index-main-banner h1 {
        font-size: 0.8em;
    }

    .index-main-banner p {
        font-size: 0.4em;
    }
    
    .index-mission-statement {
        padding-left: 15px;
        padding-right: 15px;
    }
    
    .banner-content {
        width: 90%;
        padding: 15px;
    }
}

@media screen and (max-width: 480px) {
    .index-main-banner {
        padding-left: 10px;
        padding-right: 10px;
        padding-top: 50px;
    }
    
    .index-mission-statement {
        padding-left: 10px;
        padding-right: 10px;
    }
    
    .banner-content {
        width: 95%;
        padding: 10px;
    }
    
    .index-main-banner h1 {
        font-size: 1.2em;
    }
    
    .index-main-banner p {
        font-size: 0.6em;
    }
}
