/* Google Fonts Import: Playfair Display (English Headings), Inter (English Body), Noto Serif SC (Chinese Headings), Noto Sans SC (Chinese Body) */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500&family=Noto+Sans+SC:wght@300;400;500&family=Noto+Serif+SC:wght@300;400;500;600&family=Playfair+Display:ital,wght@0,400;0,500;0,600;1,400&display=swap');

/* =========================================
   Base Resets & Typography
   ========================================= */
html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    color: #2A2A2A; /* Charcoal Grey */
    background-color: #FFFFFF;
    line-height: 1.6;
}

/* Custom Font Utilities used in HTML via Tailwind config or standard classes */
.font-heading {
    font-family: 'Playfair Display', 'Noto Serif SC', serif;
}

.font-body {
    font-family: 'Inter', 'Noto Sans SC', sans-serif;
}

/* =========================================
   Interactive Elements
   ========================================= */

/* Image Hover Zoom Effect - Subtle scale */
.img-hover-zoom {
    overflow: hidden;
    display: block; /* Ensure it behaves correctly as a wrapper */
}

.img-hover-zoom img {
    transition: transform 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    width: 100%;
    height: 100%;
    object-fit: cover;
    will-change: transform;
}

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

/* Navigation Links - Underline Animation */
.nav-item {
    position: relative;
    display: inline-block;
}

.nav-link {
    position: relative;
    text-decoration: none;
    color: #2A2A2A;
    padding-bottom: 4px;
    letter-spacing: 0.05em;
    font-weight: 400;
    transition: color 0.3s ease;
}

.nav-link::after {
    content: '';
    position: absolute;
    width: 0;
    height: 1px;
    bottom: 0;
    left: 0;
    background-color: #2A2A2A;
    transition: width 0.3s ease;
}

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

/* =========================================
   Animations
   ========================================= */

/* Fade In Up - For scrolling reveal */
.fade-in-up {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 1s ease-out, transform 1s cubic-bezier(0.215, 0.61, 0.355, 1);
}

.fade-in-up.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Carousel Fade Transition */
.carousel-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 1.5s ease-in-out;
    z-index: 0;
}

.carousel-slide.active {
    opacity: 1;
    z-index: 10;
}

/* =========================================
   Utilities & Mobile
   ========================================= */

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 6px;
}

::-webkit-scrollbar-track {
    background: #F8F8F8;
}

::-webkit-scrollbar-thumb {
    background: #E5E7EB;
    border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
    background: #9CA3AF;
}

/* Loading Shimmer Effect */
.shimmer {
    background: #f6f7f8;
    background-image: linear-gradient(to right, #f6f7f8 0%, #edeef1 20%, #f6f7f8 40%, #f6f7f8 100%);
    background-repeat: no-repeat;
    background-size: 1000px 100%; 
    animation: placeholderShimmer 1.5s linear infinite forwards;
}

@keyframes placeholderShimmer {
    0% { background-position: -468px 0; }
    100% { background-position: 468px 0; }
}

/* Mobile Menu Transition */
.mobile-menu {
    transition: transform 0.3s ease-in-out, opacity 0.3s ease-in-out;
    transform: translateY(-10px);
    opacity: 0;
    pointer-events: none;
}

.mobile-menu.open {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
}