/* ============================================
   DEMASUS OTEL & SPA - Custom Styles
   Tailwind CSS + Custom Overrides
   ============================================ */

/* Flag Icons */
.fi {
    width: 20px;
    height: 15px;
    border-radius: 2px;
    vertical-align: middle;
    display: inline-block;
}

/* Active Link Underline */
.active-link {
    position: relative;
}

.active-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 12px;
    right: 12px;
    height: 2px;
    background-color: #FF6600;
    border-radius: 2px;
}

/* Ensure all menu items are perfectly aligned */
nav ul li a {
    display: flex;
    align-items: center;
    justify-content: center;
    white-space: nowrap;
}

/* Active Language Item */
.language-item.active-lang {
    background-color: rgba(255, 102, 0, 0.15);
    color: #FF6600;
    font-weight: 600;
}

/* Smooth Scroll */
html {
    scroll-behavior: smooth;
}

/* Preloader Styles */
#preloader {
    transition: opacity 0.5s ease-out, visibility 0.5s ease-out;
}

#preloader.hidden {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

@keyframes progress {
    0% {
        transform: translateX(-100%);
    }
    100% {
        transform: translateX(400%);
    }
}

.animate-progress {
    animation: progress 1.5s ease-in-out infinite;
}

/* Accessibility - Focus Styles */
*:focus-visible {
    outline: 2px solid #FF6600;
    outline-offset: 2px;
}

/* Hero Slider Styles */
.hero-slider {
    min-height: 500px;
}

.hero-slide {
    will-change: opacity;
}

.hero-slider-dot.active-dot {
    width: 2.5rem;
    background-color: white;
}

.hero-slider-dot {
    transition: all 0.3s ease;
}

.hero-slider-prev,
.hero-slider-next {
    backdrop-filter: blur(8px);
}

/* Hero Slider Responsive */
@media (max-width: 768px) {
    .hero-slider {
        max-height: 600px;
        min-height: 400px;
    }
    
    .hero-slider h1,
    .hero-slider h2 {
        font-size: 2rem;
    }
    
    .hero-slider p {
        font-size: 1.125rem;
    }
}

/* Mobile Fixed Call Buttons */
.mobile-fixed-buttons {
    animation: slideUp 0.5s ease-out;
}

@keyframes slideUp {
    from {
        transform: translateY(100%);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

/* Typewriter Text Effect */
.typewriter-text {
    min-width: 120px;
    display: inline-block;
    position: relative;
    padding-right: 8px;
}

.typewriter-text::after {
    content: '|';
    animation: blink 1s infinite;
    position: absolute;
    right: 0;
}

@keyframes blink {
    0%, 50% {
        opacity: 1;
    }
    51%, 100% {
        opacity: 0;
    }
}

/* Mobile Buttons Hover Effect */
.mobile-fixed-buttons a:active {
    transform: scale(0.95);
    transition: transform 0.1s;
}

/* Ensure buttons are above footer on mobile */
@media (max-width: 1023px) {
    body {
        padding-bottom: 80px;
    }
}

/* Reduced Motion */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
    
    .hero-slide {
        transition: none !important;
    }
    
    .mobile-fixed-buttons {
        animation: none !important;
    }
    
    .typewriter-text::after {
        animation: none !important;
        opacity: 0 !important;
    }
    
    .typewriter-text {
        animation: none !important;
    }
}

