/* ============================================
   Homepage Fullscreen Background Slideshow
   Professional dark design with smooth transitions
   ============================================ */

/* Hero Slideshow Container - Ultra Modern */
.hero-slideshow {
    position: relative;
    width: 100%;
    height: 100vh;
    min-height: 600px;
    max-height: 100vh;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    isolation: isolate;
    scroll-snap-align: start;
    scroll-snap-stop: always;
}

@media (max-width: 768px) {
    .hero-slideshow {
        min-height: 100vh;
        height: 100vh;
    }
}

.hero-slideshow::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(ellipse at center, rgba(0, 255, 136, 0.1) 0%, transparent 70%);
    z-index: 2;
    pointer-events: none;
    animation: pulse 4s ease-in-out infinite;
}

/* Background Images Container */
.slideshow-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.hero-globe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.hero-globe canvas {
    display: block;
}

/* Individual Background Slide - Enhanced */
.slideshow-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 2s ease-in-out, transform 2s ease-in-out;
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
    filter: blur(2px) brightness(0.7);
    transform: scale(1.1);
    will-change: opacity, transform;
}

.slideshow-slide.active {
    transform: scale(1.05);
    filter: blur(1px) brightness(0.8);
}

/* Active slide */
.slideshow-slide.active {
    opacity: 1;
    z-index: 2;
}

/* Previous slide (for smooth transitions) */
.slideshow-slide.prev {
    opacity: 0;
    z-index: 1;
}

/* Dark Overlay for Readability - Enhanced */
.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        radial-gradient(ellipse at top, rgba(10, 10, 10, 0.9) 0%, transparent 50%),
        radial-gradient(ellipse at bottom, rgba(10, 10, 10, 0.9) 0%, transparent 50%),
        linear-gradient(135deg, rgba(10, 10, 10, 0.85) 0%, rgba(20, 20, 20, 0.75) 50%, rgba(10, 10, 10, 0.85) 100%);
    background-color: rgba(0, 20, 10, 0.3);
    z-index: 3;
    pointer-events: none;
    backdrop-filter: blur(1px);
    -webkit-backdrop-filter: blur(1px);
}

/* Hero Content Wrapper */
.hero-content-wrapper {
    position: relative;
    z-index: 10;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}

/* Hero Content - Enhanced */
.hero-content {
    max-width: 1000px;
    padding: var(--spacing-md);
    animation: fadeInUp 1.2s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    z-index: 10;
}

.hero-content > * {
    position: relative;
    z-index: 10;
}

.hero-content::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(0, 255, 136, 0.05) 0%, transparent 70%);
    animation: pulse 6s ease-in-out infinite;
    pointer-events: none;
    z-index: 1;
}

/* Team Name / Main Title */
.hero-title {
    margin-bottom: var(--spacing-md);
}

.team-name {
    font-family: var(--font-heading);
    font-size: 5rem;
    font-weight: 900;
    letter-spacing: 4px;
    color: var(--green-primary);
    display: inline-block;
    animation: glow 3s ease-in-out infinite alternate, gradientShift 5s ease infinite;
    position: relative;
    text-transform: uppercase;
    text-shadow: 0 0 40px rgba(0, 255, 136, 0.8),
                 0 0 80px rgba(0, 255, 136, 0.4),
                 0 0 120px rgba(0, 255, 136, 0.2);
    z-index: 10;
    /* Fallback gradient */
    background: linear-gradient(135deg, var(--green-primary) 0%, var(--green-secondary) 50%, var(--green-primary) 100%);
    background-size: 200% auto;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    filter: drop-shadow(0 0 20px rgba(0, 255, 136, 0.5));
}

.team-name::before {
    content: attr(data-text);
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    color: var(--green-primary);
    filter: blur(20px);
    opacity: 0.6;
    z-index: -1;
    animation: glow 3s ease-in-out infinite alternate;
    text-shadow: 0 0 40px rgba(0, 255, 136, 0.8);
}

/* Mission Statement */
.hero-mission {
    font-size: 1.5rem;
    color: var(--text-primary);
    line-height: 1.8;
    margin-bottom: var(--spacing-md);
    font-weight: 300;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.8),
                 0 4px 20px rgba(0, 0, 0, 0.5);
    position: relative;
    z-index: 10;
    background: rgba(0, 0, 0, 0.3);
    padding: 1rem 2rem;
    border-radius: 12px;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

/* Keywords Section */
.hero-keywords {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: var(--spacing-sm);
    margin-bottom: var(--spacing-lg);
    font-size: 1.125rem;
}

.keyword {
    color: var(--green-primary);
    font-weight: 700;
    font-family: var(--font-heading);
    letter-spacing: 2px;
    text-shadow: 0 0 15px rgba(0, 255, 136, 0.5);
    padding: 0.5rem 1rem;
    background: rgba(0, 255, 136, 0.1);
    border: 1px solid rgba(0, 255, 136, 0.3);
    border-radius: 8px;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    transition: all 0.3s ease;
    text-transform: uppercase;
    font-size: 0.9rem;
}

.keyword:hover {
    background: rgba(0, 255, 136, 0.2);
    border-color: var(--green-primary);
    box-shadow: 0 0 20px rgba(0, 255, 136, 0.4);
    transform: translateY(-2px);
}

.keyword-separator {
    color: var(--text-muted);
    margin: 0 var(--spacing-xs);
}

/* Hero Buttons - Ultra Enhanced */
.hero-buttons {
    display: flex;
    gap: var(--spacing-sm);
    justify-content: center;
    flex-wrap: wrap;
    margin-top: var(--spacing-md);
}

.hero-buttons .btn {
    min-width: 200px;
    padding: 1.25rem 3rem;
    font-size: 1.125rem;
    position: relative;
    overflow: hidden;
    animation: float 3s ease-in-out infinite;
}

.hero-buttons .btn:nth-child(2) {
    animation-delay: 0.5s;
}

/* Enhanced Button Styles for Hero */
.hero-buttons .btn-primary {
    background-color: var(--green-primary);
    color: var(--bg-primary);
    box-shadow: 0 4px 15px rgba(0, 255, 136, 0.3);
}

.hero-buttons .btn-primary:hover {
    background-color: var(--green-secondary);
    box-shadow: 0 6px 25px rgba(0, 255, 136, 0.5);
    transform: translateY(-2px);
}

.hero-buttons .btn-secondary {
    background-color: transparent;
    color: var(--green-primary);
    border: 2px solid var(--green-primary);
    box-shadow: 0 0 15px rgba(0, 255, 136, 0.2);
}

.hero-buttons .btn-secondary:hover {
    background-color: rgba(0, 255, 136, 0.1);
    box-shadow: 0 0 25px rgba(0, 255, 136, 0.4);
    transform: translateY(-2px);
}

/* Slideshow Indicators (Optional - Hidden by default) */
.slideshow-indicators {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: var(--spacing-xs);
    z-index: 15;
    /* Hidden by default, uncomment to show */
    display: none;
}

.indicator {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.3);
    border: 2px solid rgba(0, 255, 136, 0.5);
    cursor: pointer;
    transition: all 0.3s ease;
}

.indicator.active {
    background-color: var(--green-primary);
    box-shadow: 0 0 10px rgba(0, 255, 136, 0.5);
}

/* Animations - Enhanced */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(50px) scale(0.9);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

@keyframes glow {
    0%, 100% {
        text-shadow: 
            0 0 20px rgba(0, 255, 136, 0.4),
            0 0 40px rgba(0, 255, 136, 0.3),
            0 0 60px rgba(0, 255, 136, 0.2);
        filter: drop-shadow(0 0 20px rgba(0, 255, 136, 0.3));
    }
    50% {
        text-shadow: 
            0 0 30px rgba(0, 255, 136, 0.6),
            0 0 60px rgba(0, 255, 136, 0.4),
            0 0 90px rgba(0, 255, 136, 0.3);
        filter: drop-shadow(0 0 30px rgba(0, 255, 136, 0.5));
    }
}

@keyframes gradientShift {
    0% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
    100% {
        background-position: 0% 50%;
    }
}

@keyframes pulse {
    0%, 100% {
        opacity: 0.5;
        transform: scale(1);
    }
    50% {
        opacity: 0.8;
        transform: scale(1.1);
    }
}

@keyframes float {
    0%, 100% {
        transform: translateY(0px) rotate(0deg);
    }
    33% {
        transform: translateY(-15px) rotate(2deg);
    }
    66% {
        transform: translateY(-20px) rotate(-2deg);
    }
}

@keyframes shimmer {
    0% {
        background-position: -1000px 0;
    }
    100% {
        background-position: 1000px 0;
    }
}

@keyframes rotate {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

/* Shimmer effect for cards */
.mission-card::after,
.service-card::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(0, 255, 136, 0.1),
        transparent
    );
    transition: left 0.5s ease;
}

.mission-card:hover::after,
.service-card:hover::after {
    left: 100%;
}

/* Mission Icon Replacements (CSS-based visuals instead of emojis) */
.mission-icon {
    width: 60px;
    height: 60px;
    margin: 0 auto var(--spacing-sm);
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    opacity: 0.9;
}

.mission-icon-shield {
    /* Shield icon - protection */
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%2300ff88'%3E%3Cpath d='M12 1L3 5v6c0 5.55 3.84 10.74 9 12 5.16-1.26 9-6.45 9-12V5l-9-4z'/%3E%3C/svg%3E");
}

.mission-icon-detection {
    /* Eye/search icon - detection */
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%2300ff88'%3E%3Cpath d='M12 4.5C7 4.5 2.73 7.61 1 12c1.73 4.39 6 7.5 11 7.5s9.27-3.11 11-7.5c-1.73-4.39-6-7.5-11-7.5zM12 17c-2.76 0-5-2.24-5-5s2.24-5 5-5 5 2.24 5 5-2.24 5-5 5zm0-8c-1.66 0-3 1.34-3 3s1.34 3 3 3 3-1.34 3-3-1.34-3-3-3z'/%3E%3C/svg%3E");
}

.mission-icon-response {
    /* Lightning/bolt icon - response */
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%2300ff88'%3E%3Cpath d='M7 2v11h3v9l7-12h-4l4-8z'/%3E%3C/svg%3E");
}

.mission-icon-innovation {
    /* Rocket/gear icon - innovation */
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%2300ff88'%3E%3Cpath d='M2.81 14.12L5.64 11.3l-1.41-1.41L1.4 12.71c-.39.39-.39 1.02 0 1.41zm5.64 0l5.66-5.66-1.41-1.41-5.66 5.66-1.41-1.41zM21.71 3.54l-9.12 9.12c-.39.39-1.02.39-1.41 0l-1.41-1.41 9.12-9.12c.39-.39 1.02-.39 1.41 0l1.41 1.41c.39.39.39 1.02 0 1.41z'/%3E%3C/svg%3E");
}

/* Responsive Design */
@media (max-width: 768px) {
    .hero-slideshow {
        min-height: 100vh;
        height: 100vh;
        max-height: 100vh;
        padding: 2rem 0;
    }
    
    .hero-content-wrapper {
        padding: 1rem;
        height: 100%;
        display: flex;
        align-items: center;
        justify-content: center;
    }
    
    .hero-content {
        max-width: 100%;
        padding: 1rem;
        width: 100%;
    }
    
    .team-name {
        font-size: 2rem;
        letter-spacing: 2px;
        line-height: 1.2;
        margin-bottom: 1rem;
    }
    
    .hero-mission {
        font-size: 1rem;
        line-height: 1.6;
        margin-bottom: 1rem;
        padding: 0.75rem 1rem;
    }
    
    .hero-keywords {
        font-size: 0.85rem;
        flex-direction: column;
        gap: 0.5rem;
        margin-bottom: 1.5rem;
    }
    
    .keyword {
        font-size: 0.8rem;
        padding: 0.4rem 0.8rem;
    }
    
    .keyword-separator {
        display: none;
    }
    
    .hero-buttons {
        flex-direction: column;
        gap: 0.75rem;
        width: 100%;
    }
    
    .hero-buttons .btn {
        min-width: 100%;
        width: 100%;
        padding: 0.875rem 1.5rem;
        font-size: 0.9rem;
    }
}

@media (max-width: 480px) {
    .hero-slideshow {
        min-height: 100vh;
        height: 100vh;
        padding: 1rem 0;
    }
    
    .hero-content {
        padding: 0.5rem;
    }
    
    .team-name {
        font-size: 1.75rem;
        letter-spacing: 1px;
    }
    
    .hero-mission {
        font-size: 0.9rem;
        padding: 0.5rem 0.75rem;
    }
    
    .hero-keywords {
        font-size: 0.75rem;
    }
    
    .keyword {
        font-size: 0.7rem;
        padding: 0.3rem 0.6rem;
    }
}

/* Ensure slideshow doesn't interfere with navigation */
.hero-slideshow {
    margin-top: 0;
}

/* Accessibility: Reduce motion for users who prefer it */
@media (prefers-reduced-motion: reduce) {
    .slideshow-slide {
        transition: none;
    }
    
    .hero-content {
        animation: none;
    }
    
    .team-name {
        animation: none;
    }
}
