/* Custom Components for Livifi */
/* Contains unique design elements that remain custom after Bootstrap migration */

/* Logo styling with custom dot animation */
.logo-image {
    height: 40px;
    width: auto;
    filter: brightness(0) invert(1); /* Make logo white to match text */
}

.logo::after {
    content: '';
    position: absolute;
    top: 2px;
    right: -16px;
    width: 12px;
    height: 12px;
    background: var(--primary-teal);
    border-radius: 50%;
    border: 2px solid var(--primary-teal);
}

.logo::before {
    content: '';
    position: absolute;
    top: 5px;
    right: -13px;
    width: 6px;
    height: 6px;
    background: var(--white);
    border-radius: 50%;
    z-index: 1;
}

/* Hero badge with pulse animation */
.hero-badge {
    display: inline-flex;
    align-items: center;
    background: rgba(0, 191, 166, 0.1);
    color: var(--primary-teal);
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 500;
    margin-bottom: 24px;
    border: 1px solid rgba(0, 191, 166, 0.2);
}

.hero-badge::before {
    content: '';
    display: inline-block;
    width: 8px;
    height: 8px;
    background: var(--primary-teal);
    border-radius: 50%;
    margin-right: 8px;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% { opacity: 1; }
    50% { opacity: 0.5; }
    100% { opacity: 1; }
}

/* Hero CTA arrow animation */
.hero-cta::after {
    content: '';
    display: inline-block;
    width: 0;
    height: 0;
    border-left: 8px solid var(--white);
    border-top: 6px solid transparent;
    border-bottom: 6px solid transparent;
    margin-left: 12px;
    transition: transform 0.3s ease;
}

.hero-cta:hover::after {
    transform: translateX(4px);
}

/* City Slideshow Styles */
.city-slideshow {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1;
}

.slideshow-container {
    position: relative;
    width: 100%;
    height: 100%;
}

.slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 1.5s ease-in-out, transform 1.5s ease-in-out;
    transform: scale(1.1);
}

.slide.active {
    opacity: 1;
    transform: scale(1);
}

.slide.next {
    opacity: 0;
    transform: scale(0.9);
}

.city-image-text {
    margin-bottom: 40px !important;
}

/* Slideshow Indicators */
.slideshow-indicators {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 8px;
    z-index: 3;
}

.indicator {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.4);
    cursor: pointer;
    transition: all 0.3s ease;
}

.indicator.active {
    background: var(--primary-teal);
    transform: scale(1.2);
}

.indicator:hover {
    background: rgba(255, 255, 255, 0.7);
}

.visual-content {
    position: absolute;
    bottom: 100px; /* Moved up from 60px to 100px to avoid overlap with indicators */
    left: 50%;
    transform: translateX(-50%);
    text-align: center;
    color: var(--white);
    z-index: 2;
    background: rgba(0, 0, 0, 0.3);
    padding: 20px 30px;
    border-radius: 15px;
    backdrop-filter: blur(10px);
}

.visual-icon {
    font-size: 48px;
    margin-bottom: 10px;
    opacity: 0.9;
}

.visual-text {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 5px;
}

.visual-subtext {
    font-size: 14px;
    opacity: 0.8;
}


/* Back to Top Button */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, var(--primary-teal) 0%, #00a693 100%);
    color: var(--white);
    border: none;
    border-radius: 50%;
    cursor: pointer;
    font-size: 18px;
    box-shadow: 0 4px 20px rgba(0, 191, 166, 0.3);
    transition: all 0.3s ease;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.back-to-top:hover {
    background: linear-gradient(135deg, #00a693 0%, var(--primary-teal) 100%);
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(0, 191, 166, 0.4);
}

.back-to-top:active {
    transform: translateY(0);
    box-shadow: 0 4px 20px rgba(0, 191, 166, 0.3);
}

/* Button shimmer effect */
.btn-primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s;
}

.btn-primary:hover::before {
    left: 100%;
}

/* Card gradient top border */
.card-gradient-top::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-teal) 0%, var(--accent-yellow) 100%);
    border-top-left-radius: 24px;
    border-top-right-radius: 24px;
}

/* Responsive adjustments for custom components */
@media (max-width: 1024px) {
    .visual-content {
        bottom: 80px; /* Adjusted for tablet screens to avoid indicator overlap */
        padding: 15px 20px;
    }
    
    .visual-icon {
        font-size: 36px;
    }
    
    .visual-text {
        font-size: 18px;
    }
}

@media (max-width: 768px) {
    .visual-content {
        bottom: 70px; /* Adjusted for mobile screens to avoid indicator overlap */
        padding: 12px 16px;
    }
    
    .visual-icon {
        font-size: 32px;
    }
    
    .visual-text {
        font-size: 16px;
    }
    
    .visual-subtext {
        font-size: 12px;
    }
    
    .slideshow-indicators {
        bottom: 10px;
    }
    
    .indicator {
        width: 6px;
        height: 6px;
    }
    
    .back-to-top {
        bottom: 20px;
        right: 20px;
        width: 45px;
        height: 45px;
        font-size: 16px;
    }
}
