/* 
 * Project: Fashion Visual Showcase
 * Description: Custom styles complementing Tailwind CSS for animations and specific layouts.
 * Author: HAISNAP
 */

/* Google Fonts: Noto Sans SC for modern, clean typography */
@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+SC:wght@100;300;400;500;700&display=swap');

/* Global Reset & Base Styles */
html, body {
    font-family: 'Noto Sans SC', sans-serif;
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    background-color: #FFFFFF; /* Consistent with minimalist white theme */
    color: #1F2937; /* Dark gray for text */
    overflow-x: hidden;
    width: 100%;
    height: 100%;
}

/* Utility: Hide scrollbar while maintaining scroll functionality */
.no-scrollbar::-webkit-scrollbar {
    display: none;
}
.no-scrollbar {
    -ms-overflow-style: none;  /* IE and Edge */
    scrollbar-width: none;  /* Firefox */
}

/* Utility: Custom Typography */
.text-balance {
    text-wrap: balance;
}

/* Component: Image Hover Effects */
.group:hover .group-hover\:scale-105 {
    transform: scale(1.05);
}

.img-wrapper {
    overflow: hidden;
    position: relative;
}

.img-wrapper img {
    transition: transform 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94), filter 0.5s ease;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.img-wrapper:hover img {
    transform: scale(1.03);
}

/* Animation: Fade In */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.animate-fade-in {
    animation: fadeIn 1.2s ease-out forwards;
}

/* Animation: Slide Up */
@keyframes slideUp {
    from { 
        opacity: 0; 
        transform: translateY(30px); 
    }
    to { 
        opacity: 1; 
        transform: translateY(0); 
    }
}

.animate-slide-up {
    animation: slideUp 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

/* Animation Delays */
.delay-100 { animation-delay: 0.1s; }
.delay-200 { animation-delay: 0.2s; }
.delay-300 { animation-delay: 0.3s; }
.delay-500 { animation-delay: 0.5s; }
.delay-700 { animation-delay: 0.7s; }

/* Carousel / Slider Styles */
.carousel-container {
    position: relative;
    width: 100%;
    height: 100vh;
    overflow: hidden;
}

.carousel-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 1.5s ease-in-out, transform 10s linear; /* Slow zoom effect */
    transform: scale(1);
    z-index: 0;
}

.carousel-slide.active {
    opacity: 1;
    transform: scale(1.05); /* Subtle zoom on active */
    z-index: 1;
}

.carousel-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Navigation Active Indicator */
.nav-item {
    position: relative;
}

.nav-item::after {
    content: '';
    position: absolute;
    width: 0;
    height: 1px;
    bottom: -4px;
    left: 0;
    background-color: currentColor;
    transition: width 0.3s ease;
}

.nav-item:hover::after,
.nav-item.active::after {
    width: 100%;
}

/* Page Transitions (handled by JS) */
#app-container {
    transition: opacity 0.5s ease-in-out;
}

.page-hidden {
    opacity: 0;
    pointer-events: none;
}

/* Loading Skeleton */
.skeleton {
    background: #f3f4f6;
    background: linear-gradient(110deg, #ececec 8%, #f5f5f5 18%, #ececec 33%);
    background-size: 200% 100%;
    animation: 1.5s shine linear infinite;
}

@keyframes shine {
    to {
        background-position-x: -200%;
    }
}