/* Font Imports from loli.net mirror */
@import url('https://fonts.loli.net/css2?family=Noto+Sans+SC:wght@300;400;500&display=swap');

/* Global Variables */
:root {
    --font-main: 'Helvetica Neue', 'Helvetica', 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', 'Noto Sans SC', sans-serif;
    --color-text-primary: #333333;
    --color-bg-primary: #F9FAFB;
}

/* Reset & Base Styles */
html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
}

body {
    font-family: var(--font-main);
    background-color: var(--color-bg-primary);
    color: var(--color-text-primary);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
    line-height: 1.6;
}

/* Selection Color */
::selection {
    background: #E5E7EB;
    color: #1F2937;
}

/* Custom Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-fade-up {
    animation: fadeInUp 1s cubic-bezier(0.16, 1, 0.3, 1) forwards;
    opacity: 0; /* Initial state hidden */
}

/* 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; }

/* Image Effects */
.img-zoom-container {
    overflow: hidden;
    position: relative;
}

.img-zoom-container img {
    transition: transform 0.8s ease-in-out, filter 0.5s ease;
    will-change: transform;
}

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

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

::-webkit-scrollbar-track {
    background: transparent;
}

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

::-webkit-scrollbar-thumb:hover {
    background: #D1D5DB;
}

/* Typography Helpers */
.font-light-heading {
    font-weight: 300;
    letter-spacing: -0.02em;
}

.text-justify-custom {
    text-align: justify;
    text-justify: inter-word;
}

/* Dynamic Slots */
[data-slot="content"]:empty {
    display: none;
}