:root {
    --primary: #8B4513;
    /* SaddleBrown */
    --primary-dark: #5C2E0B;
    --secondary: #D97706;
    /* Amber-600 */
    --bg-color: #FDFBF7;
    /* Warm off-white */
    --text-main: #2D241E;
}

@import url('https://fonts.googleapis.com/css2?family=Noto+Serif+TC:wght@400;600;700;900&family=Noto+Sans+TC:wght@300;400;500;700&display=swap');

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Noto Sans TC', sans-serif;
    background-color: var(--bg-color);
    color: var(--text-main);
    overflow-x: hidden;
}

.font-serif {
    font-family: 'Noto Serif TC', serif;
}

/* Navbar smooth transitions */
.nav-transparent {
    background-color: transparent;
    transition: all 0.4s ease;
}

.nav-solid {
    background-color: rgba(62, 39, 35, 0.95);
    backdrop-filter: blur(12px);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
}

/* Hero Section Overlay & Typography */
.hero-overlay {
    background: linear-gradient(180deg, rgba(0, 0, 0, 0.5) 0%, rgba(62, 39, 35, 0.7) 100%);
}

/* Original Poetic Text Styles */
.hero-brand-content {
    position: absolute;
    right: 5%;
    top: 50%;
    transform: translateY(-50%);
    z-index: 2;
    flex-direction: row-reverse;
    gap: 20px;
}

.vertical-text {
    writing-mode: vertical-rl;
    color: #FFF;
    text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.6);
    font-family: 'Noto Serif TC', "PMingLiU", serif;
}

.vertical-text.main {
    font-size: 3.5rem;
    font-weight: 900;
    letter-spacing: 15px;
    border-left: 3px solid #B71C1C;
    /* stamp-red */
    padding-left: 20px;
}

.vertical-text.sub {
    font-size: 1.8rem;
    letter-spacing: 8px;
    color: #E0E0E0;
    margin-top: 50px;
}

/* Scroll Fade-in Animation */
.fade-in {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

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

/* Hover Effects */
.hover-lift {
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.4s ease;
}

.hover-lift:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(139, 69, 19, 0.12);
}

/* News Ticker Scrollbar Customization */
.news-container::-webkit-scrollbar {
    width: 6px;
}

.news-container::-webkit-scrollbar-thumb {
    background-color: var(--primary);
    border-radius: 10px;
}

.news-container::-webkit-scrollbar-track {
    background-color: rgba(0, 0, 0, 0.05);
}

/* Floating Action Buttons */
.fab-container {
    position: fixed;
    right: 24px;
    bottom: 24px;
    z-index: 50;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.fab-btn {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    color: white;
}

.fab-btn:hover {
    transform: scale(1.1) rotate(5deg);
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.25);
}

/* Custom Stamps/Badges */
.stamp {
    display: inline-block;
    color: #b71c1c;
    border: 2px solid #b71c1c;
    border-radius: 4px;
    padding: 2px 6px;
    font-size: 0.6em;
    font-weight: 700;
    transform: rotate(-5deg);
    margin-left: 8px;
    opacity: 0.8;
}

/* Mobile Menu */
#mobileMenu {
    transition: max-height 0.4s ease-in-out, opacity 0.3s ease;
    max-height: 0;
    opacity: 0;
    overflow: hidden;
}

#mobileMenu.active {
    max-height: 500px;
    opacity: 1;
}

/* Image masking/shapes */
.blob-mask {
    border-radius: 60% 40% 30% 70% / 60% 30% 70% 40%;
    animation: blobMorph 8s ease-in-out infinite alternate;
}

@keyframes blobMorph {
    0% {
        border-radius: 60% 40% 30% 70% / 60% 30% 70% 40%;
    }

    50% {
        border-radius: 30% 60% 70% 40% / 50% 60% 30% 60%;
    }

    100% {
        border-radius: 60% 40% 30% 70% / 60% 30% 70% 40%;
    }
}