/* Import Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Alexandria:wght@300;400;600;700;800&family=Poppins:wght@300;400;600;700;800&family=El+Messiri:wght@400;500;600;700&family=Playfair+Display:wght@400;500;600;700;800&display=swap');

/* Base Styles */
html {
    font-family: 'Poppins', 'Alexandria', sans-serif;
}

h1,
h2,
h3,
h4,
h5,
h6,
.font-heading {
    font-family: 'Playfair Display', 'El Messiri', serif;
}

/* ===== Splash / Loading Screen ===== */
.splash-screen {
    position: fixed;
    inset: 0;
    z-index: 9999;
    background: #000000;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.6s ease, visibility 0.6s ease;
}

.splash-screen.hidden {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.splash-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2.5rem;
}

.splash-logo {
    width: 280px;
    max-width: 70vw;
    object-fit: contain;
    animation: splashLogoIn 1s cubic-bezier(0.16, 1, 0.3, 1) forwards;
    opacity: 0;
    border-radius: 12px;
}

@keyframes splashLogoIn {
    0% {
        opacity: 0;
        transform: scale(0.7);
        filter: blur(10px);
    }

    100% {
        opacity: 1;
        transform: scale(1);
        filter: blur(0);
    }
}

.splash-loader {
    width: 200px;
    max-width: 50vw;
    height: 3px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    overflow: hidden;
    animation: splashLogoIn 0.8s 0.3s cubic-bezier(0.16, 1, 0.3, 1) forwards;
    opacity: 0;
}

.splash-loader-bar {
    height: 100%;
    width: 0%;
    background: linear-gradient(90deg, #22c55e, #3b82f6, #22c55e);
    background-size: 200% 100%;
    border-radius: 10px;
    animation: splashBarFill 1.8s 0.5s ease-in-out forwards, splashBarShimmer 1.5s 0.5s linear infinite;
}

@keyframes splashBarFill {
    0% {
        width: 0%;
    }

    60% {
        width: 70%;
    }

    100% {
        width: 100%;
    }
}

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

    100% {
        background-position: -200% 0;
    }
}

/* Glassmorphism Header */
.glass-header {
    background-color: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(226, 232, 240, 0.5);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.glass-header.scrolled {
    background-color: rgba(59, 55, 55, 0.95);
    box-shadow: 0 4px 20px -2px rgba(15, 23, 42, 0.05);
    height: 70px;
}

/* Hero Section Gradient background */
.hero-gradient {
    background: linear-gradient(135deg, #0a1628 0%, #0f2040 30%, #142850 60%, #0c1a3a 100%) !important;
    position: relative;
}

.hero-gradient::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse at 20% 50%, rgba(30, 64, 175, 0.15) 0%, transparent 60%),
        radial-gradient(ellipse at 80% 20%, rgba(245, 158, 11, 0.08) 0%, transparent 50%),
        radial-gradient(ellipse at 60% 80%, rgba(20, 40, 80, 0.3) 0%, transparent 50%);
    z-index: 1;
    pointer-events: none;
}

/* Animated Fluid Blob behind product */
.blob-shape {
    border-radius: 60% 40% 30% 70% / 60% 30% 70% 40%;
    animation: blob-bounce 8s ease-in-out infinite;
}

@keyframes blob-bounce {
    0% {
        border-radius: 60% 40% 30% 70% / 60% 30% 70% 40%;
        transform: rotate(0deg) scale(1);
    }

    50% {
        border-radius: 50% 60% 70% 40% / 50% 60% 30% 60%;
        transform: rotate(180deg) scale(1.05);
    }

    100% {
        border-radius: 60% 40% 30% 70% / 60% 30% 70% 40%;
        transform: rotate(360deg) scale(1);
    }
}

/* Scroll Reveal animations */
.reveal {
    opacity: 0;
    transform: translateY(40px);
    filter: blur(10px);
    transition: opacity 1.2s cubic-bezier(0.16, 1, 0.3, 1),
        transform 1.2s cubic-bezier(0.16, 1, 0.3, 1),
        filter 1.2s cubic-bezier(0.16, 1, 0.3, 1);
    will-change: transform, opacity, filter;
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
    filter: blur(0);
}

.reveal-right {
    opacity: 0;
    transform: translateX(50px);
    filter: blur(8px);
    transition: opacity 1.2s cubic-bezier(0.16, 1, 0.3, 1),
        transform 1.2s cubic-bezier(0.16, 1, 0.3, 1),
        filter 1.2s cubic-bezier(0.16, 1, 0.3, 1);
    will-change: transform, opacity, filter;
}

.reveal-right.active {
    opacity: 1;
    transform: translateX(0);
    filter: blur(0);
}

.reveal-left {
    opacity: 0;
    transform: translateX(-50px);
    filter: blur(8px);
    transition: opacity 1.2s cubic-bezier(0.16, 1, 0.3, 1),
        transform 1.2s cubic-bezier(0.16, 1, 0.3, 1),
        filter 1.2s cubic-bezier(0.16, 1, 0.3, 1);
    will-change: transform, opacity, filter;
}

.reveal-left.active {
    opacity: 1;
    transform: translateX(0);
    filter: blur(0);
}

.reveal-scale {
    opacity: 0;
    transform: scale(0.92);
    filter: blur(8px);
    transition: opacity 1.2s cubic-bezier(0.16, 1, 0.3, 1),
        transform 1.2s cubic-bezier(0.16, 1, 0.3, 1),
        filter 1.2s cubic-bezier(0.16, 1, 0.3, 1);
    will-change: transform, opacity, filter;
}

.reveal-scale.active {
    opacity: 1;
    transform: scale(1);
    filter: blur(0);
}

/* Delay modifiers */
.reveal.delay-100 {
    transition-delay: 100ms;
}

.reveal.delay-200 {
    transition-delay: 200ms;
}

.reveal.delay-300 {
    transition-delay: 300ms;
}

/* Interactive Active Nav Link styles */
.nav-link {
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: #f59e0b;
    /* Accent yellow */
    transition: width 0.3s ease;
}

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

/* Form success overlay control */
#formSuccess.show {
    display: flex;
    opacity: 1;
}

/* Mobile Nav Menu Show/Hide transitions */
#mobile-menu {
    max-height: 0;
    opacity: 0;
    overflow: hidden;
    transition: max-height 0.4s ease-in-out, opacity 0.3s ease-in-out;
}

#mobile-menu.open {
    max-height: 500px;
    opacity: 1;
}

/* Direction aware icons (Arabic / French) */
html[dir="rtl"] .arrow-icon {
    transform: rotate(180deg);
}

html[dir="rtl"] .main-nav {
    flex-direction: row-reverse;
}

html[dir="rtl"] .main-nav> :not([hidden])~ :not([hidden]) {
    --tw-space-x-reverse: 1;
    margin-right: 2rem;
    margin-left: 0px;
}

/* How to use connecting line and active circle states */
.step-num-circle {
    transition: all 0.3s ease;
}

.step-num-circle.active {
    box-shadow: 0 0 0 8px rgba(30, 64, 175, 0.2);
}

/* Brand Font Styles */
.brand-wrapper {
    display: inline-flex;
    align-items: baseline;
    direction: ltr;
    margin: 0 0.25rem;
    vertical-align: bottom;
}

.brand-v {
    font-family: 'Great Vibes', cursive;
    font-size: 1.6em;
    margin-right: -0.03em;
    color: inherit;
    font-weight: normal;
    line-height: 0.8;
    padding-right: 0.05em;
}

.brand-text {
    font-family: 'Poppins', sans-serif;
    font-weight: 800;
    letter-spacing: -0.02em;
}