/*
====================================
CAROUSELS STYLESHEET
====================================
Purpose: Styles for all carousel components (Projects, Experience, Testimonials)
Features: Navigation buttons, cards, dots indicators, responsive design
Author: Kamakhya Narayan Keshari
Last Updated: 2025
====================================
*/

/* ==========================================
   EXPERIENCE CAROUSEL STYLES
   ========================================== */
#experience-container {
    scrollbar-width: thin;
    scrollbar-color: #cbd5e0 #f7fafc;
    overflow-x: auto;
    overflow-y: hidden;
    scroll-behavior: smooth;
    scroll-snap-type: x mandatory;
}

#experience-container::-webkit-scrollbar {
    height: 8px;
}

#experience-container::-webkit-scrollbar-track {
    background: #f7fafc;
    border-radius: 4px;
}

#experience-container::-webkit-scrollbar-thumb {
    background: #cbd5e0;
    border-radius: 4px;
}

#experience-container::-webkit-scrollbar-thumb:hover {
    background: #a0aec0;
}

.experience-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    flex-shrink: 0;
    width: 250px;
    height: auto;
    min-height: 380px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    padding: 16px;
    scroll-snap-align: start;
}

.experience-card--brand {
    width: 300px;
    min-height: 400px;
    padding: 0;
    align-items: stretch;
}

.experience-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.15);
}

/* Experience Navigation Buttons */
.experience-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.85);
    color: white;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    font-size: 24px;
    font-weight: bold;
    box-shadow: 0 6px 20px rgba(0,0,0,0.3);
    border: 2px solid rgba(255,255,255,0.2);
    cursor: pointer;
    z-index: 10;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(10px);
}

.experience-btn:hover {
    background: rgba(0, 0, 0, 0.95);
    box-shadow: 0 8px 25px rgba(0,0,0,0.4);
    transform: translateY(-50%) scale(1.1);
    border-color: rgba(255,255,255,0.4);
}

.experience-btn:active {
    transform: translateY(-50%) scale(0.95);
}

.experience-btn.left { 
    left: 20px;
}

.experience-btn.right { 
    right: 20px;
}

.experience-btn:disabled {
    opacity: 0.3;
    cursor: not-allowed;
    transform: translateY(-50%) scale(1);
}

/* Experience Dots Indicator */
.experience-dots {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 20px;
}

.experience-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #cbd5e0;
    cursor: pointer;
    transition: all 0.3s ease;
}

.experience-dot.active {
    background: #09090b;
    transform: scale(1.2);
}

/* ==========================================
   PROJECTS CAROUSEL STYLES
   ========================================== */
#projects-container {
    scrollbar-width: thin;
    scrollbar-color: #cbd5e0 #f7fafc;
    overflow-x: auto;
    overflow-y: hidden;
    scroll-behavior: smooth;
    scroll-snap-type: x mandatory;
}

#projects-container::-webkit-scrollbar {
    height: 8px;
}

#projects-container::-webkit-scrollbar-track {
    background: #f7fafc;
    border-radius: 4px;
}

#projects-container::-webkit-scrollbar-thumb {
    background: #cbd5e0;
    border-radius: 4px;
}

#projects-container::-webkit-scrollbar-thumb:hover {
    background: #a0aec0;
}

.project-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    flex-shrink: 0;
    width: 250px;
    height: auto;
    min-height: 340px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    padding: 16px;
    scroll-snap-align: start;
}

.project-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.15);
}

/* Projects Navigation Buttons */
.projects-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.12);
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    width: 50px;
    height: 50px;
    font-size: 24px;
    font-weight: bold;
    box-shadow: 0 6px 20px rgba(0,0,0,0.3);
    border: 2px solid rgba(255,255,255,0.2);
    cursor: pointer;
    z-index: 10;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(10px);
}

.projects-btn:hover {
    background: rgba(0, 0, 0, 0.95);
    box-shadow: 0 8px 25px rgba(0,0,0,0.4);
    transform: translateY(-50%) scale(1.1);
    border-color: rgba(255,255,255,0.4);
}

.projects-btn:active {
    transform: translateY(-50%) scale(0.95);
}

.projects-btn.left { 
    left: 20px;
}

.projects-btn.right { 
    right: 20px;
}

.projects-btn:disabled {
    opacity: 0.3;
    cursor: not-allowed;
    transform: translateY(-50%) scale(1);
}

/* Projects Dots Indicator */
.projects-dots {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 20px;
}

.projects-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #cbd5e0;
    cursor: pointer;
    transition: all 0.3s ease;
}

.projects-dot.active {
    background: #ffffff;
    transform: scale(1.2);
}

/* ==========================================
   RESPONSIVE CAROUSEL STYLES
   ========================================== */
@media (max-width: 1024px) {
    .experience-btn, 
    .projects-btn { 
        display: flex;
        width: 40px;
        height: 40px;
        font-size: 20px;
    }
    .experience-btn.left, 
    .projects-btn.left { 
        left: 10px; 
    }
    .experience-btn.right, 
    .projects-btn.right { 
        right: 10px; 
    }
}

@media (max-width: 640px) {
    .experience-btn, 
    .projects-btn { 
        width: 35px;
        height: 35px;
        font-size: 18px;
    }
    .experience-btn.left, 
    .projects-btn.left { 
        left: 5px; 
    }
    .experience-btn.right, 
    .projects-btn.right { 
        right: 5px; 
    }
    
    .experience-card,
    .project-card {
        width: 220px;
        min-height: 320px;
    }
}

/* ==========================================
   GALLERY CAROUSEL STYLES (Existing)
   ========================================== */
.gallery-slider {
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
    height: 450px;
    border-radius: 16px;
    background: #f8f9fa;
}

.gallery-track {
    display: flex;
    gap: 1rem;
    padding: 0.5rem;
}

.gallery-item {
    scroll-snap-align: start;
    flex: 0 0 auto;
    border-radius: 16px;
    overflow: hidden;
    background: #fff;
    box-shadow: 0 10px 30px rgba(0,0,0,0.08);
    height: 400px;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Responsive widths for gallery */
@media (max-width: 640px) {
    .gallery-item { width: 85vw; }
}
@media (min-width: 641px) and (max-width: 1024px) {
    .gallery-item { width: 45vw; }
}
@media (min-width: 1025px) {
    .gallery-item { width: 30vw; }
}

/* Gallery Buttons */
.gallery-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255,255,255,0.85);
    border-radius: 50%;
    width: 40px;
    height: 40px;
    font-size: 22px;
    box-shadow: 0 4px 14px rgba(0,0,0,0.15);
    border: none;
    cursor: pointer;
    z-index: 10;
}

.gallery-btn.left { left: -12px; }
.gallery-btn.right { right: -12px; }

@media (max-width: 1024px) {
    .gallery-btn { display: none; }
}

/* ==========================================
   TESTIMONIAL CAROUSEL STYLES
   ========================================== */
#testimonial-container {
    scrollbar-width: thin;
    scrollbar-color: #cbd5e0 #f7fafc;
    overflow-x: auto;
    overflow-y: hidden;
    scroll-behavior: smooth;
}

#testimonial-container::-webkit-scrollbar {
    height: 8px;
}

#testimonial-container::-webkit-scrollbar-track {
    background: #f7fafc;
    border-radius: 4px;
}

#testimonial-container::-webkit-scrollbar-thumb {
    background: #cbd5e0;
    border-radius: 4px;
}

.testimonial-card {
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    flex-shrink: 0;
    width: 250px;
    height: auto;
    min-height: 280px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    padding: 16px;
}

.testimonial-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.testimonial-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.85);
    border-radius: 50%;
    width: 40px;
    height: 40px;
    font-size: 22px;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.15);
    border: none;
    cursor: pointer;
    z-index: 10;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.testimonial-btn:hover {
    background: rgba(255, 255, 255, 0.95);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
}

.testimonial-btn.left { left: -12px; }
.testimonial-btn.right { right: -12px; }

@media (max-width: 1024px) {
    .testimonial-btn { display: none; }
}
