/* 
   Vertex Sphere - Graphic Design Portfolio Slider
   Premium styling for the image-based portfolio showcase.
*/

.secure-portfolio-slider {
    position: relative;
    max-width: 900px;
    margin: 0 auto;
    background: transparent;
    user-select: none;
    -webkit-user-select: none;
}

.portfolio__single {
    outline: none;
    padding: 10px;
    cursor: grab;
}

.portfolio__single:active {
    cursor: grabbing;
}

.portfolio__single img {
    width: 100%;
    height: auto;
    max-height: 70vh; /* Responsive height */
    border-radius: 15px;
    object-fit: contain;
    display: block;
    margin: 0 auto;
    box-shadow: 0 15px 40px rgba(0,0,0,0.4);
    border: 1px solid rgba(255, 255, 255, 0.05);
    -webkit-user-drag: none;
    user-drag: none;
}

/* Image Appearance & Animation */
.secure-portfolio-slider .portfolio__single img {
    transform: scale(0.95);
    transition: transform 1s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.8s ease;
    opacity: 0.85; /* Increased brightness for inactive slides */
}

.secure-portfolio-slider .slick-current .portfolio__single img {
    transform: scale(1);
    opacity: 1; /* Full brightness for active slide */
}

/* Dots Styling - Modern Indicator */
.secure-portfolio-slider .slick-dots {
    bottom: -40px; 
    display: flex !important;
    justify-content: center;
    list-style: none;
    padding: 0;
    margin: 0;
    width: 100%;
    position: absolute;
    z-index: 10;
}

.secure-portfolio-slider .slick-dots li {
    margin: 0 6px;
    display: inline-block;
}

.secure-portfolio-slider .slick-dots li button {
    width: 25px; /* Wider dash */
    height: 3px;  /* Very thin 'ptle' height */
    background: rgba(255, 255, 255, 0.15);
    border: none;
    font-size: 0;
    color: transparent;
    padding: 0;
    line-height: 0;
    cursor: pointer;
    transition: all 0.4s ease;
    border-radius: 2px;
}

.secure-portfolio-slider .slick-dots li.slick-active button {
    background: #a70006;
    width: 45px; /* Longer active dash */
    box-shadow: 0 0 10px rgba(167, 0, 6, 0.3);
}

/* Navigation Buttons - Positioned on Sides */
.col-12.position-relative {
    position: relative !important;
}

.slide-group {
    position: absolute;
    top: 40%; /* Move up closer to the center of the graphic */
    left: 0;
    width: 100%;
    transform: translateY(-50%);
    display: flex !important;
    justify-content: space-between !important;
    padding: 0 10px;
    z-index: 1000;
    pointer-events: none;
}

.slide-btn {
    pointer-events: auto;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    transition: all 0.4s ease;
    cursor: pointer;
    backdrop-filter: blur(10px);
}

.slide-btn:hover {
    background: #a70006;
    border-color: #a70006;
    box-shadow: 0 0 20px rgba(167, 0, 6, 0.6);
    transform: scale(1.1);
}

.prev-portfolio {
    margin-left: -25px; /* Pull it slightly outside for a cleaner look */
}

.next-portfolio {
    margin-right: -25px; /* Pull it slightly outside */
}

/* Hide navigation when disabled (non-looping) */
.slide-btn.slick-disabled {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

/* Mobile-specific adjustments */
@media (max-width: 991px) {
    .custom-portfolio-title {
        font-size: 32px !important;
        line-height: 1.2;
        padding: 0 15px;
        color: #fff;
    }
    .secure-portfolio-slider {
        max-width: 100%;
    }
}

@media (max-width: 768px) {
    .portfolio-header-mob {
        margin-top: 30px !important;
        margin-bottom: 20px !important;
    }
    .custom-portfolio-title {
        font-size: 26px !important;
        letter-spacing: 0;
    }
    .secure-portfolio-slider {
        max-width: 100%;
        padding: 0;
    }
    .portfolio__single {
        padding: 0;
    }
    .portfolio__single img {
        max-height: 55vh; 
        border-radius: 8px;
    }
    .secure-portfolio-slider .slick-dots {
        bottom: -25px; /* Bring dots closer to the image */
    }
    .portfolio-three {
        padding-bottom: 30px !important;
    }
}

@media (max-width: 480px) {
    .custom-portfolio-title {
        font-size: 22px !important;
    }
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .secure-portfolio-slider {
        max-width: 95%;
    }
    .portfolio__single img {
        max-height: 60vh;
    }
    .slide-group {
        padding: 0 10px;
    }
    .slide-btn {
        width: 45px;
        height: 45px;
        font-size: 16px;
    }
}
