/* RBN Global - Custom Styles */

/* Animation Keyframes */
@keyframes progressBar {
    from {
        transform: scaleX(0);
    }

    to {
        transform: scaleX(1);
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInLeft {
    from {
        opacity: 0;
        transform: translateX(-40px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes fadeInRight {
    from {
        opacity: 0;
        transform: translateX(40px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes scaleIn {
    from {
        opacity: 0;
        transform: scale(0.9);
    }

    to {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes kenBurns {
    from {
        transform: scale(1.05);
    }

    to {
        transform: scale(1.1);
    }
}

/* Animation Utilities */
.animate-fade-in-up {
    animation: fadeInUp 0.6s ease-out forwards;
    opacity: 0;
}

.animate-fade-in-left {
    animation: fadeInLeft 0.6s ease-out forwards;
    opacity: 0;
}

.animate-fade-in-right {
    animation: fadeInRight 0.6s ease-out forwards;
    opacity: 0;
}

.animate-scale-in {
    animation: scaleIn 0.6s ease-out forwards;
    opacity: 0;
}

/* Delay utilities */
.delay-100 {
    animation-delay: 0.1s;
}

.delay-200 {
    animation-delay: 0.2s;
}

.delay-300 {
    animation-delay: 0.3s;
}

.delay-400 {
    animation-delay: 0.4s;
}

.delay-500 {
    animation-delay: 0.5s;
}

/* Hero Overlay Gradient */
.hero-overlay {
    background: linear-gradient(135deg, hsla(350, 80%, 42%, 0.85) 0%, hsla(220, 20%, 15%, 0.7) 100%);
}

/* CTA Gradient */
.cta-gradient {
    background: linear-gradient(135deg, hsl(350, 80%, 42%) 0%, hsl(350, 90%, 35%) 100%);
}

/* Text Gradient */
.text-gradient {
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-image: linear-gradient(135deg, hsl(350, 80%, 42%) 0%, hsl(350, 90%, 35%) 100%);
}

/* Scrollbar hide for category filters */
.no-scrollbar {
    -ms-overflow-style: none;
    scrollbar-width: none;
}

.no-scrollbar::-webkit-scrollbar {
    display: none;
}

/* Smooth transitions */
* {
    scroll-behavior: smooth;
}

/* Line clamp utilities */
.line-clamp-1 {
    display: -webkit-box;
    -webkit-line-clamp: 1;
    line-clamp: 1;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.line-clamp-2 {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Intersection Observer animation trigger */
.scroll-animate {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.scroll-animate.visible {
    opacity: 1;
    transform: translateY(0);
}

.scroll-animate-left {
    opacity: 0;
    transform: translateX(-40px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.scroll-animate-left.visible {
    opacity: 1;
    transform: translateX(0);
}

.scroll-animate-right {
    opacity: 0;
    transform: translateX(40px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.scroll-animate-right.visible {
    opacity: 1;
    transform: translateX(0);
}

.scroll-animate-scale {
    opacity: 0;
    transform: scale(0.95);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.scroll-animate-scale.visible {
    opacity: 1;
    transform: scale(1);
}

/* Form styling */
input[type="text"],
input[type="email"],
input[type="tel"],
input[type="date"],
input[type="file"],
textarea,
select {
    font-family: 'Open Sans', sans-serif;
}

/* Custom select styling */
.custom-select {
    appearance: none;
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 20 20'%3e%3cpath stroke='%236b7280' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='M6 8l4 4 4-4'/%3e%3c/svg%3e");
    background-position: right 0.75rem center;
    background-repeat: no-repeat;
    background-size: 1.5em 1.5em;
}

/* Preloader Styles */
.preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    transition: opacity 0.6s ease-out, visibility 0.6s;
}

.preloader.hidden {
    opacity: 0;
    visibility: hidden;
}

.rbn-logo-text {
    font-family: 'Montserrat', sans-serif;
    font-size: 64px;
    font-weight: 950;
    letter-spacing: -2px;
    line-height: 1;
    display: flex;
    align-items: baseline;
    gap: 4px;
}

.fill-text {
    position: relative;
    color: #e5e7eb;
    /* Light gray (unfilled) */
    display: inline-block;
}

.fill-text::after {
    content: attr(data-text);
    position: absolute;
    left: 0;
    top: 0;
    width: 0%;
    height: 100%;
    color: hsl(350, 80%, 42%);
    /* Primary Red (filled) */
    overflow: hidden;
    animation: textFill 2s cubic-bezier(0.65, 0, 0.35, 1) forwards;
}

.global-text {
    color: #1a1a1a;
    opacity: 0;
    animation: fadeIn 0.4s ease-out 1.2s forwards;
    font-size: 58px;
    font-weight: 800;
}

.loader-line {
    width: 100%;
    height: 3px;
    background-color: #f3f4f6;
    margin-top: 15px;
    position: relative;
    overflow: hidden;
    border-radius: 2px;
}

.loader-line::after {
    content: '';
    position: absolute;
    left: -50%;
    width: 50%;
    height: 100%;
    background-color: hsl(350, 80%, 42%);
    animation: lineProgress 2s linear infinite;
}

@keyframes textFill {
    0% {
        width: 0%;
        transform: scale(1);
    }

    50% {
        width: 100%;
        transform: scale(1.05);
    }

    100% {
        width: 100%;
        transform: scale(1);
    }
}

@keyframes fadeIn {
    to {
        opacity: 1;
    }
}

@keyframes lineProgress {
    0% {
        left: -50%;
    }

    100% {
        left: 100%;
    }
}