/* Exporindo Trade Hub - Animation & Polish Styles */

/* ===== BASE ANIMATIONS ===== */
@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-50px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(50px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes scaleIn {
    from {
        opacity: 0;
        transform: scale(0.9);
    }

    to {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes float {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-10px);
    }
}

@keyframes pulse-glow {

    0%,
    100% {
        box-shadow: 0 0 20px rgba(198, 168, 124, 0.3);
    }

    50% {
        box-shadow: 0 0 40px rgba(198, 168, 124, 0.5);
    }
}

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

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

/* ===== UTILITY CLASSES ===== */
.animate-fade-in {
    animation: fadeIn 0.6s ease-out forwards;
}

.animate-fade-in-up {
    animation: fadeInUp 0.8s ease-out forwards;
}

.animate-fade-in-down {
    animation: fadeInDown 0.8s ease-out forwards;
}

.animate-slide-left {
    animation: slideInLeft 0.8s ease-out forwards;
}

.animate-slide-right {
    animation: slideInRight 0.8s ease-out forwards;
}

.animate-scale-in {
    animation: scaleIn 0.5s ease-out forwards;
}

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

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

/* ===== HOVER TRANSITIONS ===== */

/* Magnetic Button - Premium feel */
.btn-magnetic {
    position: relative;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.btn-magnetic::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: rgba(255, 255, 255, 0.15);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: width 0.6s ease, height 0.6s ease;
}

.btn-magnetic:hover::before {
    width: 300px;
    height: 300px;
}

.btn-magnetic:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 20px 40px rgba(198, 168, 124, 0.35);
}

.btn-magnetic:active {
    transform: translateY(-1px) scale(0.99);
}

/* Card Hover - Lift Effect */
.card-hover {
    transition: all 0.5s cubic-bezier(0.23, 1, 0.32, 1);
}

.card-hover:hover {
    transform: translateY(-12px);
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.15);
}

/* Image Zoom on Hover */
.img-zoom {
    overflow: hidden;
}

.img-zoom img {
    transition: transform 1s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.img-zoom:hover img {
    transform: scale(1.1);
}

/* Link Underline Animation */
.link-underline {
    position: relative;
    display: inline-block;
}

.link-underline::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -4px;
    left: 0;
    background: linear-gradient(90deg, #C6A87C, #D4B88C);
    transition: width 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.link-underline:hover::after {
    width: 100%;
}

/* Certification Badge Hover */
.cert-badge {
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    cursor: default;
}

.cert-badge:hover {
    transform: scale(1.08) rotate(-2deg);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.12);
    border-color: #C6A87C;
}

/* ===== SECTION STYLING ===== */

/* Hero Gradient Overlay */
.hero-gradient {
    background: linear-gradient(to top,
            rgba(43, 27, 23, 0.9) 0%,
            rgba(43, 27, 23, 0.5) 40%,
            rgba(43, 27, 23, 0.2) 100%);
}

/* Section Divider - Elegant Gold Line */
.section-divider {
    height: 1px;
    background: linear-gradient(to right,
            transparent 0%,
            rgba(198, 168, 124, 0.3) 20%,
            rgba(198, 168, 124, 0.6) 50%,
            rgba(198, 168, 124, 0.3) 80%,
            transparent 100%);
}

/* Glow Effect for Icons */
.glow-gold {
    box-shadow: 0 0 30px rgba(198, 168, 124, 0.4);
    transition: box-shadow 0.3s ease;
}

.glow-gold:hover {
    box-shadow: 0 0 50px rgba(198, 168, 124, 0.6);
}

/* ===== MODAL STYLES ===== */

/* Modal Backdrop Animation */
#modalBackdrop {
    transition: opacity 0.3s ease;
}

/* Modal Content Slide Up */
#productModal>div:last-child {
    animation: fadeInUp 0.4s ease-out;
}

/* Modal Scrollbar */
.modal-scroll::-webkit-scrollbar {
    width: 6px;
}

.modal-scroll::-webkit-scrollbar-track {
    background: #f5f5f5;
    border-radius: 3px;
}

.modal-scroll::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, #C6A87C, #8D6E63);
    border-radius: 3px;
}

.modal-scroll::-webkit-scrollbar-thumb:hover {
    background: #C6A87C;
}

/* ===== CAROUSEL STYLES ===== */
#carouselControls button {
    transition: all 0.3s ease;
}

#carouselControls button:hover {
    transform: scale(1.1);
}

#thumbnailStrip img {
    transition: all 0.3s ease;
}

#thumbnailStrip img:hover {
    opacity: 1 !important;
    transform: scale(1.1);
}

/* ===== FORM INPUT ANIMATIONS ===== */
input,
textarea,
select {
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

input:focus,
textarea:focus,
select:focus {
    box-shadow: 0 2px 0 #C6A87C;
}

/* Floating Label Animation - already handled by Tailwind peer classes */

/* ===== RESPONSIVE ADJUSTMENTS ===== */
@media (max-width: 768px) {
    .card-hover:hover {
        transform: translateY(-6px);
        box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
    }

    .btn-magnetic:hover {
        transform: translateY(-2px);
    }
}

/* ===== SMOOTH SCROLL BEHAVIOR ===== */
html {
    scroll-behavior: smooth;
}

/* ===== SELECTION COLORS ===== */
::selection {
    background-color: rgba(198, 168, 124, 0.3);
    color: #2B1B17;
}

/* ===== LOADING SHIMMER EFFECT ===== */
.shimmer {
    background: linear-gradient(90deg,
            #f0f0f0 25%,
            #e0e0e0 50%,
            #f0f0f0 75%);
    background-size: 200% 100%;
    animation: shimmer 1.5s infinite;
}

/* Floating WhatsApp Button */
.float-wa {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 90;
    background-color: #25d366;
    color: white;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
    transition: all 0.3s ease;
}

.float-wa:hover {
    transform: scale(1.1);
    background-color: #128c7e;
}