/* Hero Slider Container */
#hero-slider {
    width: 100%;
    height: 90vh;
    position: relative;
    overflow: hidden;
    background: #000;
    cursor: grab;
}

#hero-slider:active {
    cursor: grabbing;
}

#hero-slider img {
    user-select: none;
    -webkit-user-drag: none;
}

.slider-wrapper, .slide {
    width: 100%;
    height: 100%;
}

.slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    display: flex;
    justify-content: center;
    align-items: center;
    
    /* Transition Logic */
    opacity: 0;
    visibility: hidden; /* Fixes the link click bug */
    pointer-events: none; 
    transition: opacity 1.5s ease-in-out, visibility 1.5s; 
    z-index: 1;
}

.slide.active {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    z-index: 2; /* Ensures the active slide is on top */
}

/* Typography & Content */
.slide h1 {
    font-size: 48px;
    font-weight: 700;
    margin-bottom: 10px;
    font-family: "Raleway", sans-serif;
}

.slide h2 {
    font-size: 24px;
    margin-bottom: 30px;
    font-weight: 400;
    font-family: "Poppins", sans-serif;
}

.btn-get-started {
    font-family: "Raleway", sans-serif;
    font-weight: 500;
    font-size: 16px;
    letter-spacing: 1px;
    display: inline-block;
    padding: 10px 35px;
    border-radius: 50px;
    transition: 0.5s;
    color: #fff;
    background: #5fcf80; /* Mentor Green */
    text-decoration: none;
    border: 2px solid #5fcf80;
}

.btn-get-started:hover {
    background: transparent;
    color: #fff;
    border-color: #fff;
}

/* Animations */
.animate-content {
    transform: translateY(30px);
    opacity: 0;
    transition: 0.8s all ease;
}

.slide.active .animate-content {
    transform: translateY(0);
    opacity: 1;
}

.delay-1 { transition-delay: 0.3s; }
.delay-2 { transition-delay: 0.5s; }

/* Navigation */
.slider-nav {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10;
}

.dot {
    height: 12px;
    width: 12px;
    margin: 0 5px;
    background-color: rgba(255, 255, 255, 0.4);
    border-radius: 50%;
    display: inline-block;
    cursor: pointer;
}

.dot.active {
    background-color: #5fcf80;
}