/* Liwa Station Services Portal - Custom Stylesheet */
@import url('https://fonts.googleapis.com/css2?family=Cairo:wght@300;400;500;600;700;800&family=IBM+Plex+Sans:wght@300;400;500;600;700&family=Montserrat:wght@400;500;600;700;800&display=swap');

:root {
    --primary-gold: #775a19;
    --primary-container: #c5a059;
    --primary-light: #e9c176;
    --muted-gold: #E3D2AF;
    --midnight-navy: #1e1b16;
    --deep-onyx: #121212;
    --warm-bg: #FDFBF7;
    --surface-container: #f5ede4;
    --outline: #7f7667;
    --outline-variant: #d1c5b4;
    --ambient-shadow: 0 20px 40px -10px rgba(18, 18, 18, 0.06);
    --gold-glow: 0 0 25px rgba(197, 160, 89, 0.25);
}

/* Global Reset & Base Setup */
html {
    scroll-behavior: smooth;
}

body {
    background-color: var(--warm-bg);
    color: var(--midnight-navy);
    font-family: 'Cairo', sans-serif;
    overflow-x: hidden;
    transition: background-color 0.3s ease, color 0.3s ease;
}

/* Typography mappings for English/Arabic */
html[lang="en"] body {
    font-family: 'IBM Plex Sans', sans-serif;
}

html[lang="en"] h1, 
html[lang="en"] h2, 
html[lang="en"] h3, 
html[lang="en"] .font-headline {
    font-family: 'Montserrat', sans-serif;
}

html[lang="ar"] body, 
html[lang="ar"] h1, 
html[lang="ar"] h2, 
html[lang="ar"] h3, 
html[lang="ar"] .font-headline {
    font-family: 'Cairo', sans-serif;
}

/* Glassmorphism Navigation */
.glass-navbar {
    background: rgba(253, 251, 247, 0.88);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid rgba(209, 197, 180, 0.4);
}

.glass-card {
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(227, 210, 175, 0.4);
}

/* Premium Card Hover Effects */
.service-card {
    transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 25px 50px -12px rgba(30, 27, 22, 0.12);
}

.service-card:hover .service-icon {
    transform: scale(1.12) rotate(-3deg);
    background-color: var(--primary-gold);
    color: #ffffff !important;
}

.service-icon {
    transition: all 0.3s ease;
}

/* Gold Gradient Details */
.gold-gradient-text {
    background: linear-gradient(135deg, #775a19 0%, #c5a059 50%, #9e7a2c 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.gold-gradient-bg {
    background: linear-gradient(135deg, #775a19 0%, #c5a059 100%);
}

.gold-border-top {
    border-top: 4px solid var(--primary-container);
}

/* Active Nav Pill */
.nav-link {
    position: relative;
    padding-bottom: 4px;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0%;
    height: 2px;
    background-color: var(--primary-gold);
    transition: width 0.3s ease;
}

html[dir="rtl"] .nav-link::after {
    left: auto;
    right: 0;
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
}

/* Badge Pulse Animation */
.pulse-badge {
    position: relative;
}

.pulse-badge::before {
    content: '';
    position: absolute;
    top: 50%;
    right: -10px;
    transform: translateY(-50%);
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background-color: #10B981;
    box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7);
    animation: pulse-green 2s infinite;
}

html[dir="ltr"] .pulse-badge::before {
    right: auto;
    left: -10px;
}

@keyframes pulse-green {
    0% {
        box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7);
    }
    70% {
        box-shadow: 0 0 0 8px rgba(16, 185, 129, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(16, 185, 129, 0);
    }
}

/* Progress Step Bar */
.step-item {
    position: relative;
}

.step-item:not(:last-child)::after {
    content: '';
    position: absolute;
    top: 20px;
    right: 50%;
    width: 100%;
    height: 3px;
    background-color: #e5e7eb;
    z-index: 0;
}

html[dir="ltr"] .step-item:not(:last-child)::after {
    right: auto;
    left: 50%;
}

.step-item.completed:not(:last-child)::after {
    background-color: var(--primary-container);
}

.step-circle {
    position: relative;
    z-index: 10;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #FDFBF7;
}

::-webkit-scrollbar-thumb {
    background: #c5a059;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #775a19;
}

/* Modal Backdrop Blur */
.modal-backdrop {
    background: rgba(18, 18, 18, 0.65);
    backdrop-filter: blur(6px);
}

/* Toast Notifications */
#toast-container {
    position: fixed;
    bottom: 24px;
    right: 24px;
    z-index: 9999;
}

html[dir="ltr"] #toast-container {
    right: auto;
    left: 24px;
}

/* Floating WhatsApp Button Positioning */
#floating-wa-btn {
    position: fixed;
    bottom: 24px;
    left: 24px;
    z-index: 999;
}

html[dir="ltr"] #floating-wa-btn {
    left: auto;
    right: 24px;
}

/* Dynamic Motion & Keyframe Animations */

/* Scroll Reveal Classes */
.reveal {
    opacity: 0;
    transform: translateY(35px);
    transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
    will-change: opacity, transform;
}

.reveal.reveal-left {
    transform: translateX(-45px);
}

.reveal.reveal-right {
    transform: translateX(45px);
}

.reveal.reveal-scale {
    transform: scale(0.92);
}

.reveal.active {
    opacity: 1;
    transform: translateY(0) translateX(0) scale(1);
}

/* Stagger Delays */
.delay-100 { transition-delay: 0.1s; }
.delay-200 { transition-delay: 0.2s; }
.delay-300 { transition-delay: 0.3s; }
.delay-400 { transition-delay: 0.4s; }
.delay-500 { transition-delay: 0.5s; }

/* Continuous Ambient Animations */
.animate-float {
    animation: float 5s ease-in-out infinite;
}

.animate-float-slow {
    animation: float-slow 8s ease-in-out infinite;
}

.animate-pulse-glow {
    animation: pulse-glow 3s ease-in-out infinite;
}

.animate-shimmer {
    background-size: 200% 100%;
    animation: shimmer 3s linear infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    50% { transform: translateY(-10px) rotate(0.8deg); }
}

@keyframes float-slow {
    0%, 100% { transform: translateY(0px) scale(1); }
    50% { transform: translateY(-18px) scale(1.04); }
}

@keyframes pulse-glow {
    0%, 100% { opacity: 0.35; filter: blur(25px); transform: scale(1); }
    50% { opacity: 0.65; filter: blur(35px); transform: scale(1.08); }
}

@keyframes shimmer {
    0% { background-position: -200% 0; }
    100% { background-position: 200% 0; }
}

/* Interactive Card & Button Motion */
.btn-ripple {
    position: relative;
    overflow: hidden;
}

.ripple-effect {
    position: absolute;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.4);
    transform: scale(0);
    animation: ripple 0.6s linear;
    pointer-events: none;
}

@keyframes ripple {
    to {
        transform: scale(4);
        opacity: 0;
    }
}

/* Modal Pop Animation */
.animate-modal-pop {
    animation: modalPop 0.4s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes modalPop {
    0% {
        opacity: 0;
        transform: scale(0.9) translateY(20px);
    }
    100% {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}
