/* 
 * Luxe Habitat - Premium Furniture Showcase
 * Custom CSS Styles
 */

/* Container Spacing - Improved Bootstrap-like container system 
 * Provides responsive padding and max-width for all content blocks
 * Used across all layout sections for consistency
 */
.container {
    width: 100%;
    margin-left: auto;
    margin-right: auto;
    padding-left: 1rem;
    padding-right: 1rem;
}

/* Progressive container sizing for different screen sizes */
@media (min-width: 640px) {
    .container {
        max-width: 640px;
        padding-left: 1.5rem;
        padding-right: 1.5rem;
    }
}

@media (min-width: 768px) {
    .container {
        max-width: 768px;
    }
}

@media (min-width: 1024px) {
    .container {
        max-width: 1024px;
        padding-left: 2rem;
        padding-right: 2rem;
    }
}

@media (min-width: 1280px) {
    .container {
        max-width: 1280px;
    }
}

@media (min-width: 1536px) {
    .container {
        max-width: 1400px;
        padding-left: 2.5rem;
        padding-right: 2.5rem;
    }
}

/* Product Detail Page Styles */
.product-detail-gallery img {
    transition: transform 0.5s ease;
}

.product-detail-gallery img:hover {
    transform: scale(1.03);
}

.product-thumbnail.active {
    box-shadow: 0 0 0 2px #a78bfa;
    transform: translateY(-3px);
}

.product-tab-button.active {
    border-color: #a78bfa;
    color: #a78bfa;
}

.product-specs-list li {
    display: flex;
    align-items: flex-start;
    margin-bottom: 0.75rem;
}

.product-specs-list i {
    color: #a78bfa;
    margin-right: 0.75rem;
    margin-top: 0.25rem;
}

/* Custom Cursor */
.custom-cursor {
    position: fixed;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background-color: rgba(167, 139, 250, 0.5);
    pointer-events: none;
    z-index: 9999;
    transform: translate(-50%, -50%);
    transition: transform 0.1s ease, width 0.2s ease, height 0.2s ease, background-color 0.2s ease;
}

.custom-cursor.grow {
    width: 50px;
    height: 50px;
    background-color: rgba(167, 139, 250, 0.3);
}

/* Loader Animation */
#page-loader {
    transition: opacity 0.5s ease, visibility 0.5s ease;
}

/* Glassmorphism Cards */
.glassmorphism-card {
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(10px);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.3);
    transition: all 0.3s ease;
}

.dark .glassmorphism-card {
    background: rgba(33, 37, 41, 0.7);
    border: 1px solid rgba(52, 58, 64, 0.3);
}

/* Neumorphic Buttons */
.neumorphic-button {
    box-shadow: 10px 10px 20px #d1d9e6, -10px -10px 20px #ffffff;
    transition: all 0.3s ease;
}

.neumorphic-button:hover {
    box-shadow: 5px 5px 10px #d1d9e6, -5px -5px 10px #ffffff;
}

.neumorphic-button:active {
    box-shadow: inset 5px 5px 10px #d1d9e6, inset -5px -5px 10px #ffffff;
}

.dark .neumorphic-button-dark {
    box-shadow: 10px 10px 20px #1c1c1c, -10px -10px 20px #2c2c2c;
}

.dark .neumorphic-button-dark:hover {
    box-shadow: 5px 5px 10px #1c1c1c, -5px -5px 10px #2c2c2c;
}

.dark .neumorphic-button-dark:active {
    box-shadow: inset 5px 5px 10px #1c1c1c, inset -5px -5px 10px #2c2c2c;
}

/* Progress Bar */
#progress-bar {
    width: 0;
    transition: width 0.2s ease;
}

/* Parallax Elements */
.parallax-bg {
    will-change: transform;
}

/* Horizontal Scroll Container */
.horizontal-scroll-container {
    scrollbar-width: none; /* Firefox */
    -ms-overflow-style: none; /* IE and Edge */
}

.horizontal-scroll-container::-webkit-scrollbar {
    display: none; /* Chrome, Safari, Opera */
}

/* Testimonial Marquee Animation */
@keyframes marquee {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(-50%);
    }
}

.animate-marquee {
    animation: marquee 30s linear infinite;
}

.testimonial-track {
    width: max-content;
}

/* Product Cards Hover Effects */
.product-card:hover .glassmorphism-card {
    transform: translateY(-10px);
}

/* Mobile Menu Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.mobile-dropdown-content {
    animation: fadeIn 0.3s ease forwards;
}

/* Magnetic Hover Effect */
.magnetic-hover {
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

/* Counter Animation */
@keyframes countUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.counter.visible {
    animation: countUp 1s ease forwards;
}

/* Location Cards */
.location-card {
    transition: all 0.3s ease;
}

.location-card:hover {
    transform: translateY(-5px);
}

/* Search Overlay Animation */
#search-overlay {
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

/* Product 360 View Modal Animation */
#product-360-modal {
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

/* Chatbot Button Animation */
@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(167, 139, 250, 0.7);
    }
    70% {
        box-shadow: 0 0 0 15px rgba(167, 139, 250, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(167, 139, 250, 0);
    }
}

#chatbot-toggle {
    animation: pulse 2s infinite;
}

/* Utility Classes */
.text-shadow {
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.3);
}

.hover-lift {
    transition: transform 0.3s ease;
}

.hover-lift:hover {
    transform: translateY(-5px);
}

/* Additional Animations for Page Elements */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in-up {
    opacity: 0;
    animation: fadeInUp 0.8s ease forwards;
}

/* Staggered Animation Delays */
.delay-100 {
    animation-delay: 0.1s;
}

.delay-200 {
    animation-delay: 0.2s;
}

.delay-300 {
    animation-delay: 0.3s;
}

.delay-400 {
    animation-delay: 0.4s;
}

.delay-500 {
    animation-delay: 0.5s;
}
