/* ROVNXT Premium Hover Effects */
/* Separated for maintainability as requested */

:root {
    --ease-pop: cubic-bezier(0.34, 1.56, 0.64, 1);
    /* Bouncy pop */
}

/* --- POP 2X UP ANIMATION --- */
/* A more dramatic lift than the standard hover-card */
.hover-pop-2x {
    transition: transform 0.4s var(--ease-pop), box-shadow 0.4s ease;
    will-change: transform;
}

.hover-pop-2x:hover {
    transform: translateY(-12px) scale(1.03);
    /* ~2x the usual 5px lift */
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
    z-index: 10;
    /* Ensure it overlaps neighbors */
}

/* --- MAGNETIC CURSOR INTERACTION (Optional Helper) --- */
/* Elements that really want to stick to the cursor can get this */
.hover-magnetic:hover {
    transform: scale(1.1);
    z-index: 20;
}

/* --- TEXT GLOW ON HOVER --- */
.hover-text-glow {
    transition: text-shadow 0.3s ease, color 0.3s ease;
}

.hover-text-glow:hover {
    color: #fff;
    text-shadow: 0 0 10px rgba(6, 182, 212, 0.8);
}

/* ==========================================================================
   PREMIUM HOVER EFFECTS v2.0
   ========================================================================== */

/* --- 3D CARD TILT (Perspective Effect) --- */
.hover-tilt {
    transform-style: preserve-3d;
    transition: transform 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    will-change: transform;
}

.hover-tilt:hover {
    transform: perspective(1000px) rotateX(5deg) rotateY(-5deg) scale(1.02);
}

/* --- IMAGE HOVER WITH GLOW --- */
.img-hover-glow {
    transition: transform 0.5s ease, box-shadow 0.5s ease, filter 0.5s ease;
    will-change: transform;
}

.img-hover-glow:hover {
    transform: scale(1.05);
    box-shadow: 0 20px 60px rgba(57, 87, 35, 0.4);
    filter: brightness(1.1);
}

/* --- ENHANCED IMAGE HOVER (Existing improvement) --- */
.img-hover-effect {
    transition: transform 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94), filter 0.6s ease;
}

.img-hover-effect:hover {
    transform: scale(1.08);
    filter: brightness(1.05) contrast(1.02);
}

/* --- ANIMATED UNDERLINE FOR LINKS --- */
.hover-underline {
    position: relative;
    text-decoration: none;
}

.hover-underline::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, #395723, #699E3C);
    transition: width 0.3s ease;
}

.hover-underline:hover::after {
    width: 100%;
}

/* --- ICON ROTATION ON HOVER --- */
.hover-icon-rotate {
    transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.hover-icon-rotate:hover svg,
.hover-icon-rotate:hover .icon {
    transform: rotate(15deg) scale(1.1);
}

.hover-icon-rotate svg,
.hover-icon-rotate .icon {
    transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* --- GLASS MORPHISM ENHANCEMENT --- */
.hover-glass-enhance {
    backdrop-filter: blur(10px);
    transition: backdrop-filter 0.3s ease, background-color 0.3s ease, border-color 0.3s ease;
}

.hover-glass-enhance:hover {
    backdrop-filter: blur(20px);
    background-color: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.2);
}

/* --- INPUT FOCUS GLOW --- */
.input-focus-glow {
    transition: box-shadow 0.3s ease, border-color 0.3s ease;
}

.input-focus-glow:focus {
    box-shadow: 0 0 0 3px rgba(57, 87, 35, 0.3), 0 0 20px rgba(57, 87, 35, 0.2);
    border-color: #699E3C;
    outline: none;
}

/* --- BUTTON SHINE EFFECT --- */
.btn-shine {
    position: relative;
    overflow: hidden;
}

.btn-shine::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg,
            transparent,
            rgba(255, 255, 255, 0.2),
            transparent);
    transition: left 0.5s ease;
}

.btn-shine:hover::before {
    left: 100%;
}

/* --- SCALE DOWN ON CLICK --- */
.hover-press {
    transition: transform 0.1s ease;
}

.hover-press:active {
    transform: scale(0.97);
}

/* --- BORDER GLOW ON HOVER --- */
.hover-border-glow {
    transition: box-shadow 0.3s ease, border-color 0.3s ease;
}

.hover-border-glow:hover {
    box-shadow: 0 0 30px rgba(57, 87, 35, 0.5);
    border-color: rgba(105, 158, 60, 0.8);
}

/* --- GROUP ICON SLIDE --- */
.group:hover .group-icon-slide {
    transform: translateX(5px);
}

.group-icon-slide {
    transition: transform 0.3s ease;
}

/* --- CARD LIFT SHADOW --- */
.hover-card-lift {
    transition: transform 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94), box-shadow 0.4s ease;
}

.hover-card-lift:hover {
    transform: translateY(-8px);
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.3), 0 0 40px rgba(57, 87, 35, 0.15);
}