.hero-index {
    position: relative; 
    width: 100%;
    height: fit-content; 
    min-height: 450px;
    background-image: url("/public/images/Vortex_Logo_Wide_Color.png");
    background-size: cover;
    background-position: center;
}


.hero-index::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.2);
}

.hero-index h1 {
    position: relative; 
    font-size: clamp(2.5rem, 8vw, 5rem); 
    margin: 1rem 0;
    text-shadow: 0 2px 15px rgba(0, 0, 0, 0.5);
}


.introduction {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 4rem 10vw;
    color: var(--black-color);
    background-color: var(--bg-color);
}


.introduction h2,
.services h2 {
    font-size: clamp(2rem, 5vw, 2.8rem);
    margin: 0;
}


.introduction hr,
.services hr {
    border: none;
    width: 120px;
    height: 4px;
    background-color: var(--primary-color); 
    border-radius: 2px;
    margin: 1rem 0 1.5rem 0; 
}


.introduction p {
    font-size: 1.1rem;
    line-height: 1.7;
    max-width: 70ch;
    margin: 0; 
}


.intro-container {
    display: grid;
    grid-template-columns: 1fr 1fr; 
    gap: 3rem; 
    align-items: center;
    padding: 4rem 2rem;
}


.intro-features {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.feature-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
}

.feature-item i {
    font-size: 2rem;
    color: var(--primary-color);
    display: flex;
    justify-content: center;
    align-items: center;   
    width: 36px;
    height: 36px;
}

.feature-text h3 {
    margin: 0 0 0.25rem 0;
    font-size: 1.2rem;
    color: var(--black-color);
}

.feature-text p {
    margin: 0;
    font-size: 1rem;
    color: var(--gray-color, #555);
    line-height: 1.5;
}


@media (max-width: 960px) {

    .hero-index {
        min-height: 250px;
    }

    .intro-container {
        grid-template-columns: 1fr;
    }

    .intro-features {
        display: grid;
        grid-auto-rows: 1fr;
        justify-content: center;
        justify-items: start;
    }

    .feature-item {
        display: flex;
        gap: 1rem;
        justify-content: center;
    }

    .feature-item i {
        width: 36px;
        height: 36px;
    }

    .feature-text p {
        font-size: 12px;
    }

}


.services {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 2rem 0;
    background-color: transparent;
    color: var(--black-color);
}


/* --- CTA SECTION STYLES --- */
.cta-section {
    text-align: center;
    padding: 5rem 2rem;
    background-color: var(--black-color);
    color: var(--white-color);
    border-radius: 16px;
    margin: 4rem 2rem;
    position: relative;
    overflow: hidden;
}

.cta-section h2 {
    font-size: clamp(2rem, 5vw, 2.5rem);
    margin-bottom: 1rem;
    color: var(--white-color);
}

.cta-section p {
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.8);
    max-width: 600px;
    margin: 0 auto 2.5rem auto;
}

.cta-button {
    display: inline-block;
    padding: 1rem 2.5rem;
    font-size: 1.1rem;
    font-weight: bold;
    color: var(--white-color);
    background-color: var(--primary-color);
    border: 2px solid var(--primary-color);
    border-radius: 50px;
    text-decoration: none;
    transition: transform 0.2s ease, background-color 0.2s ease, box-shadow 0.2s ease;
}

.cta-button:hover {
    background-color: #e60000;
    border-color: #e60000;
    transform: translateY(-3px);
    box-shadow: 0 4px 20px rgba(255, 0, 0, 0.25);
}

/* --- CAROUSEL STYLES --- */
.carousel-wrapper {
    width: 100%;
    max-width: 100vw;
    position: relative;
}

/* This is the visible "window" of the carousel */
.carousel-container {
    width: 100%;
    overflow: hidden;
    cursor: grab;
}

.carousel-container.active {
    cursor: grabbing;
}


.carousel-slider {
    display: flex;
    will-change: transform; 
    padding: 2rem 1.5rem; 
    overflow: visible; 
}


.carousel-item {
    position: relative;
    flex-shrink: 0;
    width: 350px;
    height: 350px;
    margin-right: 20px;
    border-radius: 16px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    user-select: none;
}

/* Add a subtle lift and shadow on hover */
.carousel-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
}

/* Make the image zoom slightly on hover */
.carousel-item:hover img {
    transform: scale(1.05);
}

/* Gradient overlay for text readability */
.carousel-item::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 16px;
    background: linear-gradient(to top, rgba(0,0,0,0.7) 0%, rgba(0,0,0,0) 50%);
    z-index: 1;
}

.carousel-item img {
    position: absolute;
    top: 0; left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 0; /* Image is behind the gradient */
    transition: transform 0.3s ease;
}

.carousel-content {
    position: relative;
    z-index: 2; /* Content is on top of the gradient */
    display: flex;
    flex-direction: column;
    height: 100%;
    justify-content: flex-end; /* Align content to the bottom */
    padding: 1.5rem;
    color: var(--white-color); /* White text for better contrast */
    text-align: left;
}

.carousel-item p {
    font-size: 1.2rem;
    font-weight: 600;
    text-shadow: 1px 1px 3px rgba(0,0,0,0.5);
    margin-bottom: 1rem;
}

/* Updated selector to target the new <a> tag */
.carousel-button {
    font-size: 1rem;
    padding: 0.75rem 1.5rem;
    border-radius: 50px; /* Pill-shaped button */
    align-self: flex-start; /* Align to the left */
    margin-top: 0;
    background-color: var(--primary-color);
    color: var(--white-color);
    border: none;
    font-weight: bold;
    cursor: pointer;
    transition: background-color 0.2s;
    text-decoration: none;
    display: inline-block;
}

.carousel-button:hover {
    background-color: #e60000;
}

/* Mobile styles */
@media (max-width: 600px) {
    .hero-index {
        min-height: 20vh;
    }
    .hero-index h1 {
        font-size: 2.2rem;
        margin: 0.5rem 0;
    }

    .introduction {
        padding: 2rem 1.5rem;
        font-size: 1rem;
    }
    .introduction h2 {
        font-size: 1.3rem;
        margin-left: 0;
    }
    .introduction hr {
        width: 80px;
        margin-left: 0;
        margin-bottom: 10px;
    }
    .introduction p {
        margin-left: 0;
        margin-right: 0;
        font-size: 1rem;
    }

    .services {
        padding: 1rem 0;
    }
    .services h2 {
        font-size: 1.75rem;
        margin-top: 10px;
    }

    .carousel-slider {
        gap: 1rem;
        padding: 1rem;
    }
    .carousel-item {
        flex: 0 0 80vw;
        width: 80vw;
        height: 80vw;
    }
    .carousel-content {
        padding: 1rem;
    }
    .carousel-item p {
        font-size: 1.1rem;
    }
    .carousel-item button {
        padding: 0.5rem 1rem;
    }

    .cta-section {
        padding: 3rem 1rem;
    }
    .cta-section h2 {
        font-size: 1.8rem;
    }
    .cta-section p {
        font-size: 1rem;
    }
    .cta-button {
        padding: 0.8rem 2rem;
        font-size: 1rem;
    }
}

/* --- Custom Scrollbar Indicator --- */
.carousel-scrollbar {
    width: 50%;
    height: 8px;
    background-color: var(--fourth-color, #e0e0e0);
    border-radius: 4px;
    margin: 2rem auto;
    position: relative;
    overflow: hidden;
}

.carousel-scrollbar:hover {
    cursor: pointer;
}

.scrollbar-thumb {
    height: 100%;
    background-color: var(--primary-color);
    border-radius: 4px;
    position: absolute;
    top: 0;
    left: 0;
    width: 0; 
}

@media (max-width: 600px) {
    .carousel-scrollbar {
        width: 80%;
    }
}
