/* ========================================
   JEGADAT - Custom Styles
   ======================================== */

/* Gradient Text */
.text-gradient {
    background: linear-gradient(135deg, #6366f1, #a855f7, #ec4899);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Glass Effect */
.glass {
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.05);
}

/* Fade In Up Animation */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-fade-in-up {
    animation: fadeInUp 1s ease-out forwards;
}

/* ========================================
   MARQUEE / TECHNOLOGY CAROUSEL
   ======================================== */

/* Desktop: smooth, standard speed */
@keyframes marquee {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-50%);
    }
}

.animate-marquee {
    animation: marquee 25s linear infinite;
}

/* Mobile: faster speed, tighter layout */
@media (max-width: 768px) {
    .animate-marquee {
        animation: marquee 6s linear infinite;
    }
}

/* Custom Scrollbar (used in cookie prefs modal) */
.custom-scrollbar::-webkit-scrollbar {
    width: 6px;
}
.custom-scrollbar::-webkit-scrollbar-track {
    background: transparent;
}
.custom-scrollbar::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.15);
    border-radius: 3px;
}
.custom-scrollbar::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.25);
}

/* Toast Animations (contact form feedback) */
@keyframes toastIn {
    from { opacity: 0; transform: translateY(8px); }
    to { opacity: 1; transform: translateY(0); }
}
@keyframes toastOut {
    from { opacity: 1; transform: translateY(0); }
    to { opacity: 0; transform: translateY(8px); }
}
.toast-enter {
    animation: toastIn 0.35s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}
.toast-exit {
    animation: toastOut 0.2s ease-in forwards;
}

/* ========================================
   INLINE STYLE EXTRACTIONS (CSP: no unsafe-inline)
   ======================================== */

/* Marquee: GPU hint for transform animation */
#marquee-track {
    will-change: transform;
}

/* Marquee content: spacing between logos */
.marquee-content {
    gap: 3.5rem;
    padding-right: 3.5rem;
}

/* Marquee logo items: fixed minimum width */
.marquee-content > div {
    min-width: 100px;
}

/* Conditional phone field: starts hidden, JS controls max-height/margin-top */
#conditional-phone {
    max-height: 0;
    margin-top: 0;
}

/* Noise texture background (self-hosted, replaces external grainy-gradients CDN) */
.noise-bg {
    background-image: url('/assets/images/noise.svg');
}

/* WhatsApp floating button: complex transition + initial collapsed width */
#whatsapp-btn {
    transition: opacity 0.5s ease, transform 0.5s ease, background-color 0.3s,
                border-color 0.3s, box-shadow 0.3s, max-width 0.4s ease;
    max-width: 44px;
}