/**
 * Hero Slider Styles
 * 
 * Slider-specific styles for the Devv Plug Tech homepage hero section.
 * This stylesheet implements a full-screen slider showcasing 6 service categories
 * with smooth animations, thumbnail navigation, and responsive design.
 * 
 * Features:
 * - Full viewport slider with background images
 * - Content overlay with semi-transparent gradient
 * - Thumbnail navigation strip
 * - Arrow controls for manual navigation
 * - Progress indicator for auto-play timing
 * - Mobile-responsive layouts
 * - Accessibility-compliant with ARIA support
 * 
 * Z-Index Hierarchy:
 * - Progress bar: 1000 (top of page)
 * - Header: 101 (existing - must stay above slider)
 * - Slider container: 50
 * - Arrow controls: 10
 * - Thumbnails: 5
 * - Content overlay: 2
 * - Background images: 1
 * 
 * @author Devv Plug Tech
 * @version 1.0.0
 */

/* ============================================
   1. SLIDER CONTAINER AND BASE STYLES
   ============================================ */

.hero-slider {
    position: relative;
    width: 100vw;
    height: 100vh;
    overflow: hidden;
    z-index: 50;
}

/* ============================================
   2. SLIDE ELEMENTS
   ============================================ */

.hero-slider-list {
    position: relative;
    width: 100%;
    height: 100%;
    margin: 0;
    padding: 0;
    list-style: none;
}

.hero-slider-item {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 1000ms ease-in-out;
    z-index: 0;
}

.hero-slider-item.active {
    opacity: 1;
    z-index: 1;
}

/* Background Images */
.hero-slider-item picture,
.hero-slider-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
}

/* ============================================
   3. CONTENT OVERLAY
   ============================================ */

.hero-slider-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(10deg, rgba(10, 36, 99, 0.8), rgba(58, 134, 255, 0.6));
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

/* Fallback for browsers without backdrop-filter support */
@supports not (backdrop-filter: blur(10px)) {
    .hero-slider-overlay {
        background: linear-gradient(10deg, rgba(10, 36, 99, 0.9), rgba(58, 134, 255, 0.7));
    }
}

.hero-slider-content {
    max-width: 1200px;
    padding: 4rem 2rem;
    color: white;
    text-align: center;
}

/* Typography */
.hero-slider-content h1 {
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    font-size: 3.5rem;
    line-height: 1.2;
    margin-bottom: 1.5rem;
    color: white;
    text-shadow: 2px 4px 8px rgba(0, 0, 0, 0.3);
}

.hero-slider-content p {
    font-family: 'Source Sans Pro', sans-serif;
    font-size: 1.25rem;
    color: #E2E8F0;
    margin-bottom: 2.5rem;
    line-height: 1.6;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

/* ============================================
   4. CTA BUTTONS
   ============================================ */

.hero-slider-cta {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
    align-items: center;
}

.hero-slider-cta a {
    display: inline-block;
    padding: 1rem 2rem;
    font-weight: 600;
    font-size: 1rem;
    border-radius: 8px;
    text-decoration: none;
    transition: all 0.3s ease;
    min-width: 200px;
    text-align: center;
    min-height: 44px;
    line-height: 1.5;
}

.hero-slider-cta a:first-child {
    background-color: #0A2463;
    color: white;
    border: 2px solid #0A2463;
}

.hero-slider-cta a:first-child:hover {
    background-color: #051633;
    border-color: #051633;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(10, 36, 99, 0.4);
}

.hero-slider-cta a:last-child {
    background-color: transparent;
    color: white;
    border: 2px solid white;
}

.hero-slider-cta a:last-child:hover {
    background-color: rgba(255, 255, 255, 0.15);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(255, 255, 255, 0.2);
}

.hero-slider-cta a:focus {
    outline: 3px solid #3A86FF;
    outline-offset: 2px;
}

/* ============================================
   5. THUMBNAIL NAVIGATION
   ============================================ */

.hero-slider-thumbnails {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    z-index: 5;
    display: flex;
    gap: 1.5rem;
    padding: 0;
    margin: 0;
    list-style: none;
    overflow-x: auto;
    max-width: 90vw;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
}

.hero-slider-thumbnails::-webkit-scrollbar {
    display: none;
}

.hero-slider-thumbnails li {
    flex-shrink: 0;
}

.hero-slider-thumbnail-btn {
    position: relative;
    width: 250px;
    height: 300px;
    border: 3px solid transparent;
    border-radius: 20px;
    overflow: hidden;
    cursor: pointer;
    background: none;
    padding: 0;
    transition: all 0.3s ease;
    filter: brightness(0.5);
}

.hero-slider-thumbnail-btn:hover {
    transform: scale(1.05);
    filter: brightness(0.7);
}

.hero-slider-thumbnail-btn:focus {
    outline: 3px solid #3A86FF;
    outline-offset: 2px;
}

.hero-slider-thumbnail-btn[aria-selected="true"] {
    border-color: #3A86FF;
    filter: brightness(1.5);
}

.hero-slider-thumbnail-btn picture,
.hero-slider-thumbnail-btn img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.hero-slider-thumbnail-label {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 1rem;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.8), transparent);
    color: white;
    font-weight: 600;
    font-size: 0.9rem;
    text-align: center;
}

/* ============================================
   6. ARROW CONTROLS
   ============================================ */

.hero-slider-arrows {
    position: absolute;
    top: 2rem;
    right: 2rem;
    z-index: 10;
    display: flex;
    gap: 1rem;
}

.hero-slider-arrow {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.4);
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    color: white;
}

.hero-slider-arrow:hover {
    background: rgba(255, 255, 255, 1);
    color: #0A2463;
}

.hero-slider-arrow:focus {
    outline: 3px solid #3A86FF;
    outline-offset: 2px;
}

.hero-slider-arrow:disabled,
.hero-slider-arrow.disabled {
    pointer-events: none;
    opacity: 0.3;
}

.hero-slider-arrow svg {
    width: 20px;
    height: 20px;
    fill: currentColor;
}

/* ============================================
   7. PROGRESS INDICATOR
   ============================================ */

.hero-slider-progress {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background-color: #fc4102;
    z-index: 1000;
    transform-origin: left;
    animation: progressBar 3000ms linear;
}

@keyframes progressBar {
    from {
        transform: scaleX(1);
    }
    to {
        transform: scaleX(0);
    }
}

.hero-slider-progress.paused {
    animation-play-state: paused;
}

/* ============================================
   8. ACCESSIBILITY
   ============================================ */

.sr-only,
.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border-width: 0;
}

/* ============================================
   9. MOBILE RESPONSIVE STYLES
   ============================================ */

@media (max-width: 768px) {
    .hero-slider-content h1 {
        font-size: 2.5rem;
    }

    .hero-slider-content p {
        font-size: 1rem;
    }

    .hero-slider-content {
        padding: 2rem 1.5rem;
    }

    .hero-slider-cta {
        flex-direction: column;
        gap: 1rem;
    }

    .hero-slider-cta a {
        width: 100%;
        max-width: 300px;
    }

    /* Adjust arrow positioning for thumb accessibility */
    .hero-slider-arrows {
        top: auto;
        bottom: 22rem;
        right: 1rem;
        flex-direction: column;
    }

    /* Reduce thumbnail dimensions */
    .hero-slider-thumbnail-btn {
        width: 150px;
        height: 200px;
    }

    .hero-slider-thumbnails {
        bottom: 1rem;
        gap: 1rem;
    }
}

@media (max-width: 480px) {
    .hero-slider-content h1 {
        font-size: 2rem;
    }

    .hero-slider-content p {
        font-size: 0.9rem;
    }

    .hero-slider-thumbnail-btn {
        width: 120px;
        height: 160px;
    }

    .hero-slider-thumbnail-label {
        font-size: 0.75rem;
        padding: 0.75rem;
    }
}

/* ============================================
   10. ANIMATION PERFORMANCE
   ============================================ */

/* GPU acceleration for smooth animations */
.hero-slider-item,
.hero-slider-overlay,
.hero-slider-thumbnail-btn,
.hero-slider-arrow {
    will-change: transform, opacity;
    transform: translateZ(0);
}

/* Reduced animations for low-performance devices */
@media (prefers-reduced-motion: reduce) {
    .hero-slider-item,
    .hero-slider-thumbnail-btn,
    .hero-slider-arrow,
    .hero-slider-cta a {
        transition: none;
    }

    .hero-slider-progress {
        animation: none;
    }
}

/* ============================================
   11. SERVICE-SPECIFIC PLACEHOLDER GRADIENTS
   ============================================ */

/**
 * PLACEHOLDER BACKGROUNDS
 * 
 * These gradient backgrounds serve as temporary placeholders until actual
 * service images are provided. Each gradient uses brand colors (#0A2463, #3A86FF, #70a6ad)
 * to create visually distinct backgrounds for each service category.
 * 
 * TO REPLACE WITH REAL IMAGES:
 * Simply remove or comment out these background styles once proper images are added
 * to the HTML <picture> elements. The gradients will automatically be overridden by
 * the background images.
 */

/* Service 1: Graphic/Motion Design - Vibrant blue to teal diagonal */
.hero-slider-item[data-service="graphic-design"] {
    background: linear-gradient(135deg, #0A2463 0%, #3A86FF 50%, #70a6ad 100%);
}

/* Service 2: Digital Marketing - Dynamic angular gradient */
.hero-slider-item[data-service="digital-marketing"] {
    background: linear-gradient(45deg, #3A86FF 0%, #70a6ad 60%, #0A2463 100%);
}

/* Service 3: SEO - Radial gradient from center */
.hero-slider-item[data-service="seo"] {
    background: radial-gradient(ellipse at center, #3A86FF 0%, #0A2463 70%, #000 100%);
}

/* Service 4: Web Development - Horizontal tech-inspired bands */
.hero-slider-item[data-service="web-development"] {
    background: linear-gradient(180deg, #0A2463 0%, #3A86FF 40%, #70a6ad 70%, #3A86FF 100%);
}

/* Service 5: Software Development - Diagonal stripes effect */
.hero-slider-item[data-service="software-development"] {
    background: linear-gradient(225deg, #70a6ad 0%, #0A2463 30%, #3A86FF 60%, #0A2463 100%);
}

/* Service 6: UI/UX Design - Soft multi-stop gradient */
.hero-slider-item[data-service="ui-ux-design"] {
    background: linear-gradient(160deg, #3A86FF 0%, #70a6ad 35%, #0A2463 70%, #3A86FF 100%);
}

/* Add subtle overlay pattern for visual interest (optional enhancement) */
.hero-slider-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        repeating-linear-gradient(
            45deg,
            transparent,
            transparent 10px,
            rgba(255, 255, 255, 0.02) 10px,
            rgba(255, 255, 255, 0.02) 20px
        );
    z-index: 0;
    pointer-events: none;
}

/* Ensure overlay appears above pattern */
.hero-slider-item .hero-slider-overlay {
    z-index: 2;
}

/* ============================================
   12. PRINT STYLES
   ============================================ */

@media print {
    .hero-slider-arrows,
    .hero-slider-thumbnails,
    .hero-slider-progress {
        display: none;
    }

    .hero-slider-item:not(.active) {
        display: none;
    }
}
