/* ============================================
   LECHI Furniture - Animations Stylesheet
   Version: 1.0.0
   Animated Furniture Icons & Effects
   WordPress Ready
============================================ */

/* ============================================
   1. Furniture Icon Colors
============================================ */
.furniture-icon {
    --icon-primary: #1a1a1a;
    --icon-secondary: #c9a66b;
    --icon-accent: #8b7355;
    --icon-light: #e5e5e5;
}

.furniture-icon .icon-line {
    fill: none;
    stroke: var(--icon-primary);
    stroke-width: 3;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.furniture-icon .icon-fill {
    fill: var(--icon-primary);
}

.furniture-icon .icon-detail {
    fill: var(--icon-secondary);
}

/* ============================================
   2. Sofa Icon Animations
============================================ */
#sofa-icon {
    --sofa-color: #1a1a1a;
    --cushion-color: #c9a66b;
    --pillow-color: #8b7355;
}

#sofa-icon .sofa-base {
    fill: var(--sofa-color);
    transform-origin: center bottom;
}

#sofa-icon .sofa-back {
    fill: var(--sofa-color);
    transform-origin: center bottom;
}

#sofa-icon .sofa-arm-left,
#sofa-icon .sofa-arm-right {
    fill: var(--sofa-color);
}

#sofa-icon .sofa-cushion {
    fill: var(--cushion-color);
    transform-origin: center;
}

#sofa-icon .sofa-leg {
    fill: var(--sofa-color);
}

#sofa-icon .sofa-pillow {
    fill: var(--pillow-color);
    transform-origin: center;
}

/* Sofa Hover Animation */
.category-card:hover #sofa-icon .sofa-cushion {
    animation: cushionBounce 0.6s ease-in-out;
}

.category-card:hover #sofa-icon .sofa-pillow:first-of-type {
    animation: pillowWiggle 0.8s ease-in-out;
}

.category-card:hover #sofa-icon .sofa-pillow:last-of-type {
    animation: pillowWiggle 0.8s ease-in-out 0.1s;
}

.category-card:hover #sofa-icon .sofa-back {
    animation: sofaBackBounce 0.5s ease-out;
}

@keyframes cushionBounce {
    0%, 100% { transform: scale(1); }
    25% { transform: scale(1.1, 0.9); }
    50% { transform: scale(0.95, 1.05); }
    75% { transform: scale(1.02, 0.98); }
}

@keyframes pillowWiggle {
    0%, 100% { transform: rotate(0deg); }
    25% { transform: rotate(-8deg); }
    75% { transform: rotate(8deg); }
}

@keyframes sofaBackBounce {
    0%, 100% { transform: scaleY(1); }
    50% { transform: scaleY(1.02); }
}

/* ============================================
   3. Bed Icon Animations
============================================ */
#bed-icon {
    --bed-color: #1a1a1a;
    --pillow-color: #e8e8e8;
    --blanket-color: #c9a66b;
}

#bed-icon .bed-frame {
    fill: var(--bed-color);
}

#bed-icon .bed-headboard {
    fill: var(--bed-color);
    transform-origin: center bottom;
}

#bed-icon .bed-pillow {
    fill: var(--pillow-color);
    transform-origin: center;
}

#bed-icon .bed-blanket {
    fill: var(--blanket-color);
    transform-origin: center bottom;
}

#bed-icon .bed-fold {
    stroke: rgba(0, 0, 0, 0.2);
}

#bed-icon .bed-leg {
    fill: var(--bed-color);
}

/* Bed Hover Animation */
.category-card:hover #bed-icon .bed-pillow:first-of-type {
    animation: pillowFluff 0.6s ease-in-out;
}

.category-card:hover #bed-icon .bed-pillow:last-of-type {
    animation: pillowFluff 0.6s ease-in-out 0.15s;
}

.category-card:hover #bed-icon .bed-blanket {
    animation: blanketWave 1s ease-in-out;
}

.category-card:hover #bed-icon .bed-headboard {
    animation: headboardPulse 0.5s ease-out;
}

@keyframes pillowFluff {
    0%, 100% { transform: scale(1) rotate(0deg); }
    30% { transform: scale(1.1, 0.9) rotate(-3deg); }
    60% { transform: scale(0.95, 1.05) rotate(2deg); }
}

@keyframes blanketWave {
    0%, 100% { transform: translateY(0); }
    25% { transform: translateY(-3px); }
    50% { transform: translateY(0); }
    75% { transform: translateY(-2px); }
}

@keyframes headboardPulse {
    0%, 100% { transform: scaleY(1); }
    50% { transform: scaleY(1.03); }
}

/* ============================================
   4. Table Icon Animations
============================================ */
#table-icon {
    --table-color: #1a1a1a;
    --plate-color: #e8e8e8;
    --vase-color: #8b7355;
    --flower-color: #c9a66b;
}

#table-icon .table-top {
    fill: var(--table-color);
    transform-origin: center;
}

#table-icon .table-leg {
    fill: var(--table-color);
}

#table-icon .table-support {
    fill: none;
    stroke: var(--table-color);
    stroke-width: 3;
}

#table-icon .table-plate {
    fill: var(--plate-color);
    stroke: #ccc;
    stroke-width: 1;
}

#table-icon .table-vase {
    fill: var(--vase-color);
}

#table-icon .table-flower {
    fill: var(--flower-color);
    transform-origin: center;
}

/* Table Hover Animation */
.category-card:hover #table-icon .table-flower:nth-child(1) {
    animation: flowerSway 1s ease-in-out;
}

.category-card:hover #table-icon .table-flower:nth-child(2) {
    animation: flowerSway 1s ease-in-out 0.1s;
}

.category-card:hover #table-icon .table-flower:nth-child(3) {
    animation: flowerSway 1s ease-in-out 0.2s;
}

.category-card:hover #table-icon .table-plate:first-of-type {
    animation: plateShine 0.8s ease-in-out;
}

.category-card:hover #table-icon .table-plate:last-of-type {
    animation: plateShine 0.8s ease-in-out 0.2s;
}

@keyframes flowerSway {
    0%, 100% { transform: rotate(0deg) scale(1); }
    25% { transform: rotate(10deg) scale(1.1); }
    50% { transform: rotate(-5deg) scale(1.05); }
    75% { transform: rotate(5deg) scale(1.08); }
}

@keyframes plateShine {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.7; transform: scale(1.05); }
}

/* ============================================
   5. Chair Icon Animations
============================================ */
#chair-icon {
    --chair-color: #1a1a1a;
    --cushion-color: #c9a66b;
    --back-line-color: rgba(255, 255, 255, 0.3);
}

#chair-icon .chair-back {
    fill: var(--chair-color);
    transform-origin: center bottom;
}

#chair-icon .chair-back-line {
    stroke: var(--back-line-color);
    stroke-width: 2;
}

#chair-icon .chair-seat {
    fill: var(--chair-color);
}

#chair-icon .chair-leg {
    fill: var(--chair-color);
}

#chair-icon .chair-back-leg {
    fill: none;
    stroke: var(--chair-color);
    stroke-width: 6;
    stroke-linecap: round;
}

#chair-icon .chair-cushion {
    fill: var(--cushion-color);
    transform-origin: center;
}

/* Chair Hover Animation */
.category-card:hover #chair-icon .chair-back {
    animation: chairBackWiggle 0.6s ease-in-out;
}

.category-card:hover #chair-icon .chair-cushion {
    animation: cushionSquish 0.5s ease-in-out;
}

.category-card:hover #chair-icon {
    animation: chairRock 0.8s ease-in-out;
}

@keyframes chairBackWiggle {
    0%, 100% { transform: rotate(0deg); }
    25% { transform: rotate(-2deg); }
    75% { transform: rotate(2deg); }
}

@keyframes cushionSquish {
    0%, 100% { transform: scaleY(1); }
    50% { transform: scaleY(0.85); }
}

@keyframes chairRock {
    0%, 100% { transform: rotate(0deg); }
    25% { transform: rotate(-3deg); }
    75% { transform: rotate(3deg); }
}

/* ============================================
   6. Wardrobe Icon Animations
============================================ */
#wardrobe-icon {
    --wardrobe-color: #1a1a1a;
    --handle-color: #c9a66b;
    --mirror-color: rgba(255, 255, 255, 0.3);
    --door-color: #2a2a2a;
}

#wardrobe-icon .wardrobe-body {
    fill: var(--wardrobe-color);
}

#wardrobe-icon .wardrobe-door-left {
    fill: var(--door-color);
    transform-origin: right center;
}

#wardrobe-icon .wardrobe-door-right {
    fill: var(--door-color);
    transform-origin: left center;
}

#wardrobe-icon .wardrobe-line {
    stroke: var(--wardrobe-color);
    stroke-width: 2;
}

#wardrobe-icon .wardrobe-handle {
    fill: var(--handle-color);
}

#wardrobe-icon .wardrobe-top {
    fill: var(--wardrobe-color);
}

#wardrobe-icon .wardrobe-leg {
    fill: var(--wardrobe-color);
}

#wardrobe-icon .wardrobe-mirror {
    fill: var(--mirror-color);
}

/* Wardrobe Hover Animation - Doors Open */
.category-card:hover #wardrobe-icon .wardrobe-door-left {
    animation: doorOpenLeft 0.8s ease-in-out forwards;
}

.category-card:hover #wardrobe-icon .wardrobe-door-right {
    animation: doorOpenRight 0.8s ease-in-out forwards;
}

.category-card:hover #wardrobe-icon .wardrobe-handle {
    animation: handleGlow 0.8s ease-in-out;
}

@keyframes doorOpenLeft {
    0%, 100% { transform: perspective(200px) rotateY(0deg); }
    50% { transform: perspective(200px) rotateY(30deg); }
}

@keyframes doorOpenRight {
    0%, 100% { transform: perspective(200px) rotateY(0deg); }
    50% { transform: perspective(200px) rotateY(-30deg); }
}

@keyframes handleGlow {
    0%, 100% { fill: var(--handle-color); }
    50% { fill: #e0c090; }
}

/* ============================================
   7. Desk Icon Animations
============================================ */
#desk-icon {
    --desk-color: #1a1a1a;
    --drawer-color: #2a2a2a;
    --handle-color: #c9a66b;
    --monitor-color: #333;
    --screen-color: #4a90d9;
}

#desk-icon .desk-top {
    fill: var(--desk-color);
}

#desk-icon .desk-drawer-section {
    fill: var(--desk-color);
}

#desk-icon .desk-drawer {
    fill: var(--drawer-color);
    transform-origin: right center;
}

#desk-icon .desk-handle {
    stroke: var(--handle-color);
    stroke-width: 3;
    stroke-linecap: round;
}

#desk-icon .desk-leg {
    fill: var(--desk-color);
}

#desk-icon .desk-monitor {
    fill: var(--monitor-color);
}

#desk-icon .desk-monitor-stand,
#desk-icon .desk-monitor-base {
    fill: var(--desk-color);
}

#desk-icon .desk-keyboard {
    fill: var(--drawer-color);
}

#desk-icon .desk-lamp {
    fill: none;
    stroke: var(--desk-color);
    stroke-width: 4;
    stroke-linecap: round;
}

#desk-icon .desk-lamp-head {
    fill: var(--handle-color);
    transform-origin: center;
}

/* Desk Hover Animation */
.category-card:hover #desk-icon .desk-drawer:nth-child(1) {
    animation: drawerSlide 0.5s ease-in-out 0s;
}

.category-card:hover #desk-icon .desk-drawer:nth-child(2) {
    animation: drawerSlide 0.5s ease-in-out 0.15s;
}

.category-card:hover #desk-icon .desk-drawer:nth-child(3) {
    animation: drawerSlide 0.5s ease-in-out 0.3s;
}

.category-card:hover #desk-icon .desk-monitor {
    animation: monitorGlow 1s ease-in-out;
}

.category-card:hover #desk-icon .desk-lamp-head {
    animation: lampSwing 0.8s ease-in-out;
}

@keyframes drawerSlide {
    0%, 100% { transform: translateX(0); }
    50% { transform: translateX(8px); }
}

@keyframes monitorGlow {
    0%, 100% { fill: var(--monitor-color); }
    50% { fill: #444; }
}

@keyframes lampSwing {
    0%, 100% { transform: rotate(0deg); }
    25% { transform: rotate(-15deg); }
    75% { transform: rotate(10deg); }
}

/* ============================================
   8. General Icon Hover Effects
============================================ */
.animated-icon {
    transition: all 0.3s ease;
}

.category-card:hover .animated-icon {
    transform: scale(1.05);
}

/* Color Change on Hover */
.category-card:hover .furniture-icon {
    --icon-primary: #c9a66b;
    --icon-secondary: #1a1a1a;
}

/* ============================================
   9. Hero Floating Icons Animation
============================================ */
.hero-floating-icons .floating-icon {
    animation: float 6s ease-in-out infinite;
}

.hero-floating-icons .icon-chair {
    animation-delay: 0s;
}

.hero-floating-icons .icon-table {
    animation-delay: 1s;
}

.hero-floating-icons .icon-bed {
    animation-delay: 2s;
}

.hero-floating-icons .icon-wardrobe {
    animation-delay: 3s;
}

.hero-floating-icons .icon-sofa {
    animation-delay: 4s;
}

@keyframes float {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    25% { transform: translateY(-20px) rotate(2deg); }
    50% { transform: translateY(-10px) rotate(-1deg); }
    75% { transform: translateY(-25px) rotate(1deg); }
}

.hero-floating-icons svg {
    fill: rgba(255, 255, 255, 0.1);
    stroke: rgba(255, 255, 255, 0.15);
}

/* ============================================
   10. Button & Link Animations
============================================ */
.btn {
    position: relative;
    overflow: hidden;
}

.btn::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:hover::before {
    left: 100%;
}

/* ============================================
   11. Card Animations
============================================ */
.product-card,
.category-card,
.service-card,
.testimonial-card {
    transition: transform 0.4s ease, box-shadow 0.4s ease;
}

/* Staggered Animation on Load */
[data-aos="fade-up"] {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

[data-aos="fade-up"].aos-animate {
    opacity: 1;
    transform: translateY(0);
}

/* ============================================
   12. Text Animations
============================================ */
.hero-title {
    overflow: hidden;
}

.hero-title span {
    display: inline-block;
    animation: textReveal 1s ease forwards;
    animation-delay: 0.5s;
    opacity: 0;
    transform: translateY(100%);
}

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

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

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

/* ============================================
   14. Scroll Animations
============================================ */
.scroll-reveal {
    opacity: 0;
    transform: translateY(50px);
    transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

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

/* ============================================
   15. Image Hover Effects
============================================ */
.gallery-item img,
.product-image img,
.instagram-item img {
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Ken Burns Effect */
.hero-slide {
    animation: kenBurns 20s ease-in-out infinite alternate;
}

@keyframes kenBurns {
    0% { 
        background-size: 100%;
        background-position: center;
    }
    100% { 
        background-size: 110%;
        background-position: center right;
    }
}

/* ============================================
   16. Navigation Animations
============================================ */
.nav-menu > li > a::after {
    content: '';
    position: absolute;
    bottom: 0;
    right: 0;
    width: 0;
    height: 2px;
    background-color: var(--color-secondary);
    transition: width 0.3s ease;
}

.nav-menu > li > a:hover::after,
.nav-menu > li.active > a::after {
    width: 100%;
}

/* Dropdown Animation */
.dropdown-menu {
    transform-origin: top center;
}

.dropdown-menu li {
    opacity: 0;
    transform: translateY(-10px);
}

.nav-menu > li:hover .dropdown-menu li {
    animation: dropdownReveal 0.3s ease forwards;
}

.nav-menu > li:hover .dropdown-menu li:nth-child(1) { animation-delay: 0.05s; }
.nav-menu > li:hover .dropdown-menu li:nth-child(2) { animation-delay: 0.1s; }
.nav-menu > li:hover .dropdown-menu li:nth-child(3) { animation-delay: 0.15s; }
.nav-menu > li:hover .dropdown-menu li:nth-child(4) { animation-delay: 0.2s; }
.nav-menu > li:hover .dropdown-menu li:nth-child(5) { animation-delay: 0.25s; }

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

/* ============================================
   17. Badge Animations
============================================ */
.badge.sale,
.badge.new,
.badge.hot {
    animation: badgePulse 2s ease-in-out infinite;
}

@keyframes badgePulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

/* ============================================
   18. Cart & Wishlist Animations
============================================ */
.cart-btn .count,
.wishlist-btn .count {
    transition: transform 0.3s ease;
}

.cart-btn:hover .count,
.wishlist-btn:hover .count {
    animation: countBounce 0.5s ease;
}

@keyframes countBounce {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.3); }
}

/* ============================================
   19. Social Icons Animation
============================================ */
.social-links a,
.footer-social a {
    transition: all 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

.social-links a:hover,
.footer-social a:hover {
    transform: translateY(-5px) scale(1.1);
}

/* ============================================
   20. Form Input Animations
============================================ */
input:focus,
textarea:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(201, 166, 107, 0.2);
}

.newsletter-form input {
    transition: all 0.3s ease;
}

.newsletter-form input:focus {
    transform: scale(1.02);
}

/* ============================================
   21. Ripple Effect
============================================ */
.ripple {
    position: relative;
    overflow: hidden;
}

.ripple::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    opacity: 0;
}

.ripple:active::after {
    width: 200%;
    height: 200%;
    opacity: 1;
    transition: width 0.3s, height 0.3s, opacity 0.3s;
}

/* ============================================
   22. Particle Effect for Hero
============================================ */
.particles {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    pointer-events: none;
}

.particle {
    position: absolute;
    width: 10px;
    height: 10px;
    background: rgba(201, 166, 107, 0.3);
    border-radius: 50%;
    animation: particleFloat 15s infinite;
}

@keyframes particleFloat {
    0%, 100% {
        transform: translateY(100vh) rotate(0deg);
        opacity: 0;
    }
    10% {
        opacity: 1;
    }
    90% {
        opacity: 1;
    }
    100% {
        transform: translateY(-100vh) rotate(720deg);
        opacity: 0;
    }
}

/* ============================================
   23. Marquee Animation
============================================ */
.marquee {
    overflow: hidden;
    white-space: nowrap;
}

.marquee-content {
    display: inline-block;
    animation: marquee 20s linear infinite;
}

@keyframes marquee {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

/* ============================================
   24. Typing Effect
============================================ */
.typing-text {
    overflow: hidden;
    border-left: 3px solid var(--color-secondary);
    white-space: nowrap;
    animation: typing 3.5s steps(40, end), blink 0.75s step-end infinite;
}

@keyframes typing {
    from { width: 0; }
    to { width: 100%; }
}

@keyframes blink {
    from, to { border-color: transparent; }
    50% { border-color: var(--color-secondary); }
}

/* ============================================
   25. 3D Tilt Effect
============================================ */
.tilt-effect {
    transform-style: preserve-3d;
    transition: transform 0.3s ease;
}

.tilt-effect:hover {
    transform: perspective(1000px) rotateX(5deg) rotateY(-5deg);
}

/* ============================================
   26. Magnetic Button Effect
============================================ */
.magnetic-btn {
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}
