/* ===== Service Page Gallery Styles ===== */

/* Gallery Section */
.project-gallery-section {
    padding: 80px 0;
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
}

/* Gallery Slideshow Container */
.gallery-slideshow {
    position: relative;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    overflow: hidden;
    border-radius: 15px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.2);
}

/* Gallery Track (contains all slides) */
.gallery-track {
    display: flex;
    transition: transform 0.5s ease;
}

/* Individual Gallery Item */
.gallery-item {
    min-width: 100%;
    height: 600px;
    position: relative;
}

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

/* Gallery Caption (project name & location) */
.gallery-caption {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.8), transparent);
    padding: 30px;
    color: white;
}

.gallery-caption h3 {
    font-size: 1.5rem;
    margin-bottom: 5px;
}

.gallery-caption p {
    font-size: 1rem;
    opacity: 0.9;
}

/* Gallery Navigation Controls */
.gallery-controls {
    position: absolute;
    top: 50%;
    width: 100%;
    display: flex;
    justify-content: space-between;
    transform: translateY(-50%);
    padding: 0 20px;
    z-index: 10;
}

.gallery-btn {
    background: rgba(33, 150, 243, 0.8);
    color: white;
    border: none;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    font-size: 20px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.gallery-btn:hover {
    background: rgba(33, 150, 243, 1);
    transform: scale(1.1);
}

/* Gallery Counter (1/50) */
.gallery-counter {
    position: absolute;
    top: 20px;
    right: 20px;
    background: rgba(0,0,0,0.7);
    color: white;
    padding: 10px 20px;
    border-radius: 20px;
    font-size: 14px;
    z-index: 10;
}

/* RTL: Counter on left for Arabic */
[dir="rtl"] .gallery-counter {
    right: auto;
    left: 20px;
}

/* Gallery Thumbnails Container */
.gallery-thumbnails {
    display: flex;
    gap: 10px;
    margin-top: 20px;
    overflow-x: auto;
    padding: 10px 0;
}

/* Scrollbar Styling */
.gallery-thumbnails::-webkit-scrollbar {
    height: 8px;
}

.gallery-thumbnails::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 10px;
}

.gallery-thumbnails::-webkit-scrollbar-thumb {
    background: #2196F3;
    border-radius: 10px;
}

/* Individual Thumbnail */
.gallery-thumb {
    min-width: 120px;
    height: 80px;
    border-radius: 8px;
    overflow: hidden;
    cursor: pointer;
    border: 3px solid transparent;
    transition: all 0.3s ease;
}

.gallery-thumb.active {
    border-color: #2196F3;
    transform: scale(1.05);
}

.gallery-thumb:hover {
    opacity: 0.8;
}

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

/* ===== CTA Buttons ===== */

.cta-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    margin-top: 40px;
    flex-wrap: wrap;
}

.cta-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 18px 40px;
    border-radius: 50px;
    font-size: 18px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
}

/* Primary Button (Blue - for Projects) */
.cta-btn-primary {
    background: linear-gradient(135deg, #2196F3, #1976D2);
    color: white;
}

.cta-btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(33, 150, 243, 0.4);
}

/* Secondary Button (Orange - for Contact/Quote) */
.cta-btn-secondary {
    background: linear-gradient(135deg, #FF6B35, #F4511E);
    color: white;
}

.cta-btn-secondary:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(255, 107, 53, 0.4);
}

/* ===== Responsive Design ===== */

@media (max-width: 968px) {
    .gallery-item {
        height: 500px;
    }
}

@media (max-width: 768px) {
    .gallery-item {
        height: 400px;
    }
    
    .gallery-caption {
        padding: 20px;
    }
    
    .gallery-caption h3 {
        font-size: 1.2rem;
    }
    
    .gallery-caption p {
        font-size: 0.9rem;
    }
    
    .cta-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .cta-btn {
        width: 100%;
        max-width: 300px;
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .gallery-item {
        height: 350px;
    }
    
    .gallery-thumb {
        min-width: 100px;
        height: 70px;
    }
    
    .gallery-btn {
        width: 40px;
        height: 40px;
        font-size: 16px;
    }
    
    .cta-btn {
        padding: 15px 30px;
        font-size: 16px;
    }
}
