/* =============================================================
   MICRO-INTERACTIONS & ANIMATIONS
   Moscow Valley Farm Resort
   ============================================================= */

/* ------ Global Transition Base ------ */

/* =============================================================
   1. NAV LINK HOVER — Animated Underline + Glow
   ============================================================= */
.nav-menu__link {
    position: relative;
    transition: color 0.3s ease, text-shadow 0.3s ease;
}

.nav-menu__link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, #f57c00, #ff9800);
    transition: width 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94), left 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    border-radius: 2px;
}

.nav-menu__link:hover::after {
    width: 100%;
    left: 0;
}

.nav-menu__link:hover {
    text-shadow: 0 0 20px rgba(245, 124, 0, 0.3);
}

/* =============================================================
   2. BUTTONS — Ripple + Lift + Arrow Nudge
   ============================================================= */
.tw-btn-hover-white,
.tw-btn-hover-black,
.header-button a,
.service-two-btn a,
.gallery-two-btn a,
.cta-form a,
button[type="submit"] {
    transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1),
        box-shadow 0.3s ease !important;
    will-change: transform;
}

.tw-btn-hover-white:hover,
.tw-btn-hover-black:hover,
.header-button a:hover,
.service-two-btn a:hover,
.gallery-two-btn a:hover,
.cta-form a:hover,
button[type="submit"]:hover {
    transform: translateY(-3px) scale(1.02) !important;
    box-shadow: 0 10px 30px rgba(245, 124, 0, 0.25) !important;
}

.tw-btn-hover-white:active,
.tw-btn-hover-black:active,
.header-button a:active,
.service-two-btn a:active,
.gallery-two-btn a:active,
.cta-form a:active,
button[type="submit"]:active {
    transform: translateY(-1px) scale(0.98) !important;
    box-shadow: 0 4px 12px rgba(245, 124, 0, 0.2) !important;
}

/* Arrow icon nudge on button hover */
.tw-btn-hover-white:hover .ph-arrow-up-right,
.tw-btn-hover-black:hover .ph-arrow-up-right,
.header-button a:hover .ph-arrow-up-right,
.service-two-btn a:hover .ph-arrow-up-right,
.gallery-two-btn a:hover .ph-arrow-up-right,
.cta-form a:hover .ph-arrow-up-right,
button[type="submit"]:hover .ph-arrow-up-right {
    transform: translate(3px, -3px);
    transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.ph-arrow-up-right {
    transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    display: inline-block;
}

/* =============================================================
   3. SERVICE / ROOM CARDS — Hover Lift + Image Zoom
   ============================================================= */
.service-two-wrapper {
    transition: transform 0.45s cubic-bezier(0.25, 0.46, 0.45, 0.94),
        box-shadow 0.45s ease;
    border-radius: 12px;
    will-change: transform;
}

.service-two-wrapper:hover {
    transform: translateY(-12px);
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.12);
}

.service-two-thumb {
    overflow: hidden;
    border-radius: 12px;
}

.service-two-thumb img {
    transition: transform 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    will-change: transform;
}

.service-two-wrapper:hover .service-two-thumb img {
    transform: scale(1.08);
}

/* Room tags slide in */
.service-two-thumb .position-absolute ul li {
    transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1),
        opacity 0.3s ease;
    opacity: 0.9;
}

.service-two-wrapper:hover .service-two-thumb .position-absolute ul li {
    opacity: 1;
    transform: translateY(-4px);
}

.service-two-wrapper:hover .service-two-thumb .position-absolute ul li:nth-child(1) {
    transition-delay: 0s;
}

.service-two-wrapper:hover .service-two-thumb .position-absolute ul li:nth-child(2) {
    transition-delay: 0.05s;
}

.service-two-wrapper:hover .service-two-thumb .position-absolute ul li:nth-child(3) {
    transition-delay: 0.1s;
}

.service-two-wrapper:hover .service-two-thumb .position-absolute ul li:nth-child(4) {
    transition-delay: 0.15s;
}

/* Room title link hover */
.service-two-title a {
    transition: color 0.3s ease, letter-spacing 0.3s ease;
}

.service-two-title a:hover {
    color: #f57c00 !important;
    letter-spacing: 0.5px;
}

/* =============================================================
   4. EXPERIENCE / FOOD CARDS — Overlay Reveal
   ============================================================= */
.experience-thumb {
    overflow: hidden;
    border-radius: 12px;
}

.experience-thumb img {
    transition: transform 0.7s cubic-bezier(0.25, 0.46, 0.45, 0.94),
        filter 0.5s ease;
    will-change: transform;
}

.experience-wrapper:hover .experience-thumb img {
    transform: scale(1.06);
    filter: brightness(1.05);
}

.experience-content {
    transition: transform 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94),
        opacity 0.3s ease;
}

.experience-wrapper:hover .experience-content {
    transform: translateY(-6px);
}

.experience-tag span {
    transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1),
        box-shadow 0.3s ease;
}

.experience-wrapper:hover .experience-tag span {
    transform: scale(1.05);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
}

/* =============================================================
   5. GALLERY IMAGES — Hover Glow + Lift
   ============================================================= */
.gallery-two-thumb {
    overflow: hidden;
    border-radius: 12px;
    transition: box-shadow 0.4s ease;
}

.gallery-two-thumb img {
    transition: transform 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94),
        filter 0.4s ease;
    will-change: transform;
}

.gallery-two-wrapper:hover .gallery-two-thumb {
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

.gallery-two-wrapper:hover .gallery-two-thumb img {
    transform: scale(1.05);
    filter: brightness(1.08) saturate(1.1);
}

/* =============================================================
   6. CONTACT INFO CARDS — Hover Border + Icon Bounce
   ============================================================= */
.contact-two-wrap {
    transition: transform 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94),
        box-shadow 0.4s ease,
        border-color 0.3s ease;
    border: 2px solid transparent;
}

.contact-two-wrap:hover {
    transform: translateY(-8px);
    box-shadow: 0 16px 40px rgba(245, 124, 0, 0.12);
    border-color: rgba(245, 124, 0, 0.3);
}

.contact-two-wrap .tw-text-16 {
    transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    display: inline-block;
}

.contact-two-wrap:hover .tw-text-16 {
    transform: scale(1.15) rotate(-5deg);
}

/* =============================================================
   7. FEATURE TWO CARDS — Subtle Tilt on Hover
   ============================================================= */
.feature-two-wrapper {
    transition: transform 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94),
        box-shadow 0.4s ease,
        border-color 0.3s ease;
}

.feature-two-wrapper:hover {
    transform: translateY(-6px) rotate(-0.5deg);
    box-shadow: 0 20px 40px rgba(245, 124, 0, 0.15);
}

.feature-two-wrapper:hover .rounded-circle {
    transition: transform 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
    transform: scale(1.1);
}

/* =============================================================
   8. COUNTER NUMBERS — Scale Pop on Scroll
   ============================================================= */
.counter-title {
    transition: transform 0.3s ease;
}

.counter-wrap:hover .counter-title {
    transform: scale(1.05);
}

/* Fix counter + sign alignment: override main.css -28px margin */
.counter-two-title span {
    margin-inline-start: 0 !important;
}

.counter-two-title {
    display: flex;
    align-items: baseline;
    white-space: nowrap;
}

/* =============================================================
   9. FLOATING CTA BUTTONS — Pulse + Hover Grow
   ============================================================= */
.whatsapp-button {
    transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1),
        filter 0.3s ease;
    animation: floatBounce 3s ease-in-out infinite;
}

.whatsapp-button:hover {
    transform: scale(1.15) !important;
    filter: drop-shadow(0 8px 20px rgba(37, 211, 102, 0.4));
    animation-play-state: paused;
}

.call-button {
    transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1),
        filter 0.3s ease;
    animation: floatBounce 3s ease-in-out infinite;
    animation-delay: 1.5s;
}

.call-button:hover {
    transform: scale(1.15) !important;
    filter: drop-shadow(0 8px 20px rgba(245, 124, 0, 0.4));
    animation-play-state: paused;
}

@keyframes floatBounce {

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

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

/* =============================================================
   10. ABOUT TWO IMAGE — Parallax Reveal Border
   ============================================================= */
.about-two-thumb {
    overflow: hidden;
    border-radius: 12px;
    position: relative;
}

.about-two-thumb img {
    transition: transform 0.7s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    will-change: transform;
}

.about-two-thumb:hover img {
    transform: scale(1.04);
}

/* =============================================================
   11. FEATURE-ITEM CARDS (About Section) — Lift + Border Flash
   ============================================================= */
.feature-two-item {
    transition: transform 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94),
        box-shadow 0.4s ease,
        border-color 0.3s ease;
    border: 2px solid transparent;
}

.feature-two-item:hover {
    transform: translateY(-6px);
    box-shadow: 0 16px 36px rgba(0, 0, 0, 0.08);
    border-color: rgba(245, 124, 0, 0.25);
}

/* =============================================================
   12. SCROLL-TRIGGERED REVEAL CLASSES (applied via JS)
   ============================================================= */
.reveal-up {
    opacity: 0;
    transform: translateY(60px);
    transition: opacity 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94),
        transform 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.reveal-up.revealed {
    opacity: 1;
    transform: translateY(0);
}

.reveal-left {
    opacity: 0;
    transform: translateX(-60px);
    transition: opacity 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94),
        transform 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.reveal-left.revealed {
    opacity: 1;
    transform: translateX(0);
}

.reveal-right {
    opacity: 0;
    transform: translateX(60px);
    transition: opacity 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94),
        transform 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.reveal-right.revealed {
    opacity: 1;
    transform: translateX(0);
}

.reveal-scale {
    opacity: 0;
    transform: scale(0.9);
    transition: opacity 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94),
        transform 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.reveal-scale.revealed {
    opacity: 1;
    transform: scale(1);
}

/* =============================================================
   13. SECTION HEADINGS — Subtle Rise on Hover
   ============================================================= */
.section-two-title {
    transition: transform 0.3s ease;
}

.section-two-wrapper:hover .section-two-title {
    transform: translateY(-2px);
}

.section-two-subtitle {
    transition: letter-spacing 0.3s ease;
}

.section-two-wrapper:hover .section-two-subtitle {
    letter-spacing: 2px;
}

/* =============================================================
   14. FOOTER LINKS — Slide Right on Hover
   ============================================================= */
.footer-col-4 ul li a {
    transition: transform 0.3s ease, color 0.3s ease, padding-left 0.3s ease;
    display: inline-block;
}

.footer-col-4 ul li a:hover {
    transform: translateX(6px);
    padding-left: 4px;
}

/* =============================================================
   15. SOCIAL ICONS — Hover Scale + Color Pop
   ============================================================= */
.footer-bottom-social li a,
.contact-two-wrap ul li a {
    transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1),
        color 0.3s ease !important;
    display: inline-block;
}

.footer-bottom-social li a:hover,
.contact-two-wrap ul li a:hover {
    transform: scale(1.3) rotate(-8deg) !important;
}

/* =============================================================
   16. HEADER — Smooth Fixed Transition
   ============================================================= */
.header {
    transition: background-color 0.4s ease,
        box-shadow 0.4s ease,
        backdrop-filter 0.4s ease,
        padding 0.3s ease;
}

.header.fixed-header {
    backdrop-filter: blur(12px);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
}

/* =============================================================
   17. LOGO — Hover Bounce
   ============================================================= */
.logo a img {
    transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.logo a:hover img {
    transform: scale(1.05);
}

/* =============================================================
   18. CTA SECTION — Background Parallax Shimmer
   ============================================================= */
.cta-area::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 200%;
    height: 100%;
    background: linear-gradient(90deg,
            transparent 0%,
            rgba(255, 255, 255, 0.03) 25%,
            rgba(255, 255, 255, 0.06) 50%,
            rgba(255, 255, 255, 0.03) 75%,
            transparent 100%);
    animation: shimmer 8s ease-in-out infinite;
    pointer-events: none;
    z-index: 1;
}

@keyframes shimmer {
    0% {
        transform: translateX(-30%);
    }

    50% {
        transform: translateX(30%);
    }

    100% {
        transform: translateX(-30%);
    }
}

.cta-area .text-center {
    position: relative;
    z-index: 2;
}

/* =============================================================
   19. FORM INPUTS — Focus Glow
   ============================================================= */
.contact-two-form .form-control {
    transition: border-color 0.3s ease,
        box-shadow 0.3s ease;
}

.contact-two-form .form-control:focus {
    border-color: #f57c00 !important;
    box-shadow: 0 2px 0 0 #f57c00;
}

.contact-two-form .form-control:focus+.position-absolute,
.contact-two-form .position-relative:focus-within>span:first-child {
    color: #f57c00 !important;
    transition: color 0.3s ease;
}

/* =============================================================
   20. BANNER — Title Shimmer
   ============================================================= */
.banner-two-content .banner-title {
    background-size: 200% auto;
    animation: bannerTextGlow 4s ease-in-out infinite alternate;
}

@keyframes bannerTextGlow {
    0% {
        text-shadow: 0 0 20px rgba(255, 255, 255, 0);
    }

    100% {
        text-shadow: 0 0 30px rgba(255, 255, 255, 0.15),
            0 0 60px rgba(245, 124, 0, 0.08);
    }
}

/* =============================================================
   21. SCROLL PROGRESS — Enhanced Glow
   ============================================================= */
.progress-wrap.active-progress {
    animation: progressGlow 2s ease-in-out infinite alternate;
}

@keyframes progressGlow {
    0% {
        box-shadow: 0 0 10px rgba(245, 124, 0, 0.2);
    }

    100% {
        box-shadow: 0 0 20px rgba(245, 124, 0, 0.5);
    }
}

/* =============================================================
   22. IMAGE TILT ON HOVER (for larger screens)
   ============================================================= */
@media (min-width: 992px) {

    .about-two-thumb,
    .gallery-two-thumb {
        perspective: 1000px;
    }

    .about-two-thumb img {
        transition: transform 0.5s ease;
    }
}

/* =============================================================
   23. STAGGER DELAYS FOR REVEAL ANIMATIONS
   ============================================================= */
.reveal-delay-1 {
    transition-delay: 0.1s;
}

.reveal-delay-2 {
    transition-delay: 0.2s;
}

.reveal-delay-3 {
    transition-delay: 0.3s;
}

.reveal-delay-4 {
    transition-delay: 0.4s;
}

.reveal-delay-5 {
    transition-delay: 0.5s;
}

.reveal-delay-6 {
    transition-delay: 0.6s;
}

/* =============================================================
   24. REDUCED MOTION — Accessibility
   ============================================================= */
@media (prefers-reduced-motion: reduce) {

    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }

    .whatsapp-button,
    .call-button {
        animation: none !important;
    }
}

/* =============================================================
   25. BUTTON RIPPLE EFFECT
   ============================================================= */
.btn-ripple {
    position: absolute;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.35);
    transform: scale(0);
    animation: rippleEffect 0.6s ease-out;
    pointer-events: none;
}

@keyframes rippleEffect {
    to {
        transform: scale(4);
        opacity: 0;
    }
}

/* =============================================================
   26. TOURIST CARDS — Hover Lift + Icon Glow
   ============================================================= */
.tourist-card {
    transition: transform 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94),
        box-shadow 0.4s ease;
}

.tourist-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.1);
}

.tourist-card .icon-wrapper {
    transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1),
        box-shadow 0.3s ease;
}

.tourist-card:hover .icon-wrapper {
    transform: scale(1.1);
    box-shadow: 0 8px 20px rgba(245, 124, 0, 0.2);
}

/* =============================================================
   27. ABOUT LIST ITEMS — Stagger Hover
   ============================================================= */
.about-list ul li {
    transition: transform 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94),
        box-shadow 0.3s ease;
}

.about-list ul li:hover {
    transform: translateX(8px);
    box-shadow: 0 4px 16px rgba(245, 124, 0, 0.1);
}

/* =============================================================
   28. FOOTER CONTACT — Icon + Text Single-Line Layout
   ============================================================= */
.footer-col-4 ul li>.ph {
    flex-shrink: 0;
    line-height: 1.6;
}

.footer-col-4 ul li:has(> .ph) {
    display: flex;
    align-items: flex-start;
    gap: 8px;
}

.footer-col-4 ul li:has(> .ph) a {
    display: inline;
}

.footer-col-4 ul li:has(> .ph-envelope) a,
.footer-col-4 ul li:has(> .ph-phone) a {
    white-space: nowrap;
}

/* =============================================================
   29. MOBILE SAFETY — Ensure all elements are visible on mobile
   Prevents GSAP gsap.from() opacity:0 from hiding content
   when ScrollTrigger doesn't fire on mobile devices
   ============================================================= */
@media (max-width: 991px) {
    /* Force visibility on all GSAP-animated elements */
    .tw_fade_anim,
    .experience-wrapper,
    .contact-two-wrap,
    .footer-col-4,
    .counter-wrap,
    .section-two-subtitle,
    .section-two-title,
    .gallery-two-thumb img,
    .gallery-two-wrapper,
    .gallery-two-slider,
    .cta-title,
    .cursor-text,
    .feature-two-wrapper,
    .feature-two-item,
    .service-two-wrapper,
    .about-two-thumb,
    .tourist-card,
    .amenity-card,
    .gallery-ip-wrapper,
    .contact-two-form,
    .contact-two-right,
    .about-list,
    .about-wrapper,
    .footer-bottom-social,
    .footer-bottom-wrap,
    .city-card,
    .russia-header,
    .section-wrapper,
    .section-subtitle,
    .section-title {
        opacity: 1 !important;
        visibility: visible !important;
        transform: none !important;
    }

    /* SplitText char animation - ensure text is visible on mobile */
    .tw-char-animation,
    .tw-char-animation *,
    .tw-char-animation .char,
    .tw-char-animation .word {
        opacity: 1 !important;
        visibility: visible !important;
        transform: none !important;
    }

    /* Ensure reveal classes are visible on mobile */
    .reveal-up,
    .reveal-left,
    .reveal-right,
    .reveal-scale {
        opacity: 1 !important;
        transform: none !important;
    }

    /* Counter: prevent + sign overlap with number */
    .counter-title,
    .counter-two-title {
        font-size: 2.5rem !important;
        white-space: nowrap;
        overflow: visible;
        display: flex;
        align-items: baseline;
    }

    .counter-two-title span {
        margin-inline-start: 0 !important;
    }
}

/* =============================================================
   30. MOBILE MENU — Ensure links are visible
   ============================================================= */
.mobile-menu .nav-menu__item {
    opacity: 1 !important;
    visibility: visible !important;
    transform: none !important;
}

.mobile-menu .nav-menu__link,
.nav-menu--mobile .nav-menu__link {
    color: #1a1a1a !important;
    opacity: 1 !important;
    visibility: visible !important;
}

.mobile-menu .nav-menu__link::after {
    display: none;
}

/* =============================================================
   31. FOOTER ICONS — Fallback for phosphor icon loading
   ============================================================= */
.footer-col-4 ul li > i.ph {
    font-style: normal;
    display: inline-block;
    min-width: 1em;
    text-align: center;
}

/* Ensure footer content is always visible */
.footer-col-4,
.footer-col-4 ul,
.footer-col-4 ul li,
.footer-col-4 ul li a {
    opacity: 1 !important;
    visibility: visible !important;
}