/* Global Styles & Variables */
:root {
    --bg-color: #0d0d0d;
    --text-color: #f5f5f5;
    --accent-color: #c9a227;
    /* Gold accent for a premium feel */
    --gray-color: #888;
    --transition-slow: 0.8s cubic-bezier(0.16, 1, 0.3, 1);
    --transition-fast: 0.3s ease;
}

.reveal-text {
    opacity: 0;
    transform: translateY(30px);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    /* cursor: none; */
    /* Disabled custom cursor for better usability */
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

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

h1,
h2,
h3,
h4,
.since {
    font-family: 'Bodoni Moda', serif;
    letter-spacing: 2px;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition-fast);
}

ul {
    list-style: none;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 5%;
}

.section {
    padding: 100px 0;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

/* Custom Cursor */
#custom-cursor {
    position: fixed;
    width: 8px;
    height: 8px;
    background-color: var(--text-color);
    border-radius: 50%;
    pointer-events: none;
    z-index: 9999;
    transition: transform 0.1s ease;
}

#cursor-follower {
    position: fixed;
    width: 40px;
    height: 40px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    pointer-events: none;
    z-index: 9998;
    transition: transform 0.2s cubic-bezier(0.16, 1, 0.3, 1), background 0.3s ease;
}

/* Page Loader */
.page-loader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--bg-color);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 99999;
    transition: opacity 0.6s ease, visibility 0.6s ease;
    animation: autoHideLoader 2.5s ease forwards;
}

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

/* CSS Fallback: auto-hide loader after 2.5s even if JS fails */
@keyframes autoHideLoader {
    0%, 80% {
        opacity: 1;
        visibility: visible;
    }
    100% {
        opacity: 0;
        visibility: hidden;
        pointer-events: none;
    }
}

.loader-content {
    text-align: center;
}

.loader-logo {
    font-family: 'Bodoni Moda', serif;
    font-size: 2rem;
    font-weight: 700;
    letter-spacing: 4px;
    color: var(--text-color);
    animation: loaderPulse 1.5s ease-in-out infinite;
}

.loader-bar {
    width: 120px;
    height: 2px;
    background: rgba(255, 255, 255, 0.1);
    margin: 20px auto 0;
    border-radius: 2px;
    overflow: hidden;
}

.loader-bar::after {
    content: '';
    display: block;
    width: 40%;
    height: 100%;
    background: var(--accent-color);
    animation: loaderSlide 1s ease-in-out infinite;
}

@keyframes loaderPulse {
    0%, 100% { opacity: 0.5; }
    50% { opacity: 1; }
}

@keyframes loaderSlide {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(350%); }
}

/* Scroll Progress Indicator */
.scroll-progress {
    position: fixed;
    top: 0;
    left: 0;
    width: 0%;
    height: 2px;
    background: linear-gradient(90deg, var(--accent-color), #f0c74f);
    z-index: 10001;
    transition: width 0.1s linear;
}

/* Navigation */
header {
    position: fixed;
    top: 0;
    width: 100%;
    padding: 30px 5%;
    z-index: 1000;
    background: linear-gradient(to bottom, rgba(13, 13, 13, 0.8), transparent);
    backdrop-filter: blur(10px);
}

nav {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 60px;
}

.logo h1 {
    font-size: 1.5rem;
    font-weight: 700;
}

.logo span {
    font-size: 0.8rem;
    display: block;
    margin-top: -5px;
    letter-spacing: 4px;
    color: var(--gray-color);
}

.logo-right {
    /* Positioned by flexbox gap */
}

.logo-right h1 {
    text-align: right;
}

.nav-links {
    display: flex;
    gap: 40px;
}

.nav-links li a {
    font-size: 0.9rem;
    font-weight: 300;
    letter-spacing: 1px;
    opacity: 0.6;
    position: relative;
    padding-bottom: 4px;
}

.nav-links li a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 1px;
    background: var(--accent-color);
    transition: width 0.3s ease;
}

.nav-links li a:hover::after,
.nav-links li a.active::after {
    width: 100%;
}

.nav-links li a:hover,
.nav-links li a.active {
    opacity: 1;
    color: var(--accent-color);
}

/* Hero Section */
#hero {
    position: relative;
    overflow: hidden;
    background: radial-gradient(circle at center, #1a1a1a 0%, #0d0d0d 100%);
}

.hero-content {
    position: relative;
    z-index: 2;
    padding: 0 5%;
}

.hero-content h2 {
    font-size: clamp(2.5rem, 8vw, 5rem);
    font-weight: 300;
    line-height: 1.1;
    margin-bottom: 40px;
}

.hero-content h2 span {
    font-style: italic;
    color: var(--accent-color);
}

.hero-scroll-indicator {
    display: flex;
    align-items: center;
    gap: 20px;
    font-size: 0.7rem;
    letter-spacing: 3px;
    opacity: 0;
    animation: fadeInUp 1s ease 1.5s forwards;
}

.hero-scroll-indicator span {
    animation: pulse 2s ease-in-out infinite;
}

.hero-scroll-indicator .line {
    width: 80px;
    height: 1px;
    background-color: var(--text-color);
    animation: scrollLine 2s infinite alternate;
}

@keyframes scrollLine {
    from {
        transform: scaleX(0.2);
        transform-origin: left;
    }

    to {
        transform: scaleX(1);
        transform-origin: left;
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 0.5;
        transform: translateY(0);
    }
}

@keyframes pulse {
    0%, 100% {
        opacity: 0.5;
    }
    50% {
        opacity: 1;
    }
}

/* Works Section */
.section-title h3 {
    font-size: 3rem;
    opacity: 0.1;
    margin-bottom: -20px;
}

.section-title p {
    font-size: 1.5rem;
    font-weight: 500;
    margin-left: 10px;
}

.filter-buttons {
    margin: 40px 0;
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

.filter-btn {
    background: none;
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--text-color);
    padding: 8px 20px;
    font-size: 0.8rem;
    letter-spacing: 1px;
    cursor: pointer;
    transition: var(--transition-fast);
}

.filter-btn:hover,
.filter-btn.active {
    border-color: var(--accent-color);
    color: var(--accent-color);
}

/* Modern Card Layout - UI/UX Pro Max */
.works-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 40px;
    padding-bottom: 50px;
    perspective: 1000px;
    /* Enable 3D perspective */
}

.work-item {
    position: relative;
    border-radius: 16px;
    background: rgba(30, 30, 30, 0.4);
    overflow: hidden;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.2, 0, 0, 1);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.05);
    aspect-ratio: 16/9;
    /* Keep consistent ratio */
}

/* Micro-Depth & Hover Effect */
.work-item:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow:
        0 20px 40px rgba(0, 0, 0, 0.4),
        0 0 0 1px rgba(181, 155, 110, 0.3);
    /* Accent color border glow */
    z-index: 10;
}

.work-img {
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.work-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.8s cubic-bezier(0.2, 1, 0.2, 1);
    filter: brightness(0.9);
}

/* Breathing Effect: 5% scale on image hover */
.work-item:hover .work-img img {
    transform: scale(1.05);
    /* 5% zoom */
    filter: brightness(1);
}

.work-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: auto;
    min-height: 80px;
    background: rgba(0, 0, 0, 0.6);
    /* Semi-transparent base */
    backdrop-filter: blur(12px);
    /* Frosted Glass Effect */
    -webkit-backdrop-filter: blur(12px);
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 15px 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    transform: translateY(100%);
    /* Initially hidden */
    transition: transform 0.3s cubic-bezier(0.2, 0, 0, 1);
}

.work-item:hover .work-overlay {
    transform: translateY(0);
}

.work-overlay h4 {
    font-size: 1.1rem;
    font-weight: 500;
    color: #fff;
    margin-bottom: 4px;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

.work-overlay span {
    font-size: 0.75rem;
    letter-spacing: 2px;
    color: var(--accent-color);
    text-transform: uppercase;
    font-weight: 600;
    opacity: 0.9;
}

.work-item:hover .work-overlay h4 {
    transform: translateY(0);
}

/* About Section */
.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 100px;
    align-items: center;
}

.since {
    color: var(--accent-color);
    font-size: 1.2rem;
    margin-bottom: 20px;
}

.about-text h4 {
    font-size: 2.5rem;
    line-height: 1.3;
    margin-bottom: 30px;
}

.about-text .description {
    font-size: 1.1rem;
    color: var(--gray-color);
    margin-bottom: 40px;
}

.team-info {
    display: flex;
    gap: 40px;
}

.member h5 {
    font-size: 1.1rem;
    margin-bottom: 5px;
}

.member span {
    font-size: 0.8rem;
    color: var(--gray-color);
}

.about-cta-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.8rem;
    margin-top: 2.5rem;
    padding: 1rem 2rem;
    background: linear-gradient(135deg, var(--accent-color) 0%, #8b7355 100%);
    color: #fff;
    text-decoration: none;
    font-size: 1rem;
    font-weight: 500;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.about-cta-btn:hover {
    transform: translateX(5px);
    box-shadow: 0 8px 25px rgba(196, 163, 90, 0.4);
}

.about-cta-btn svg {
    transition: transform 0.3s ease;
}

.about-cta-btn:hover svg {
    transform: translateX(5px);
}

.about-visual {
    position: relative;
}

.about-visual img {
    width: 100%;
    border-radius: 5px;
}

.experience-badge {
    position: absolute;
    bottom: -30px;
    left: -30px;
    background: var(--accent-color);
    color: #000;
    padding: 30px;
    display: flex;
    flex-direction: column;
    align-items: center;
    border-radius: 5px;
}

.experience-badge .number {
    font-size: 2.5rem;
    font-weight: 700;
    font-family: 'Bodoni Moda', serif;
}

.experience-badge .label {
    font-size: 0.7rem;
    letter-spacing: 2px;
    font-weight: 600;
}

/* Contact Section */
.contact-card {
    background: #151515;
    padding: 100px;
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 50px;
    border-radius: 5px;
}

.info-item {
    margin-bottom: 30px;
}

.info-item span {
    display: block;
    font-size: 0.7rem;
    color: var(--accent-color);
    letter-spacing: 2px;
    margin-bottom: 5px;
}

.info-item a,
.info-item p {
    font-size: 1.2rem;
    font-weight: 300;
}

.contact-form-wrapper {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.contact-form-wrapper h4 {
    font-size: 2.5rem;
    line-height: 1.1;
    margin-bottom: 40px;
}

#contact-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
    max-width: 400px;
}

.input-group {
    position: relative;
    width: 100%;
}

.input-group input,
.input-group textarea {
    width: 100%;
    background: transparent;
    border: none;
    border-bottom: 1px solid rgba(255, 255, 255, 0.3);
    padding: 10px 0;
    color: #fff;
    font-size: 1rem;
    outline: none;
    transition: border-color 0.3s ease;
    resize: none;
    font-family: inherit;
}

.input-group textarea {
    min-height: 40px;
    max-height: 150px;
}

.input-group input:focus,
.input-group textarea:focus,
.input-group input:not(:placeholder-shown),
.input-group textarea:not(:placeholder-shown) {
    border-color: var(--accent-color);
}

.input-group label {
    position: absolute;
    top: 10px;
    left: 0;
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.5);
    pointer-events: none;
    transition: all 0.3s ease;
}

.input-group input:focus~label,
.input-group textarea:focus~label,
.input-group input:not(:placeholder-shown)~label,
.input-group textarea:not(:placeholder-shown)~label {
    top: -20px;
    font-size: 0.75rem;
    color: var(--accent-color);
    letter-spacing: 1px;
}

.modern-submit-btn {
    position: relative;
    margin-top: 20px;
    background: var(--accent-color);
    color: #000;
    border: none;
    padding: 15px 40px;
    font-size: 0.9rem;
    font-weight: 700;
    letter-spacing: 2px;
    cursor: pointer;
    overflow: hidden;
    transition: all 0.3s ease;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.modern-submit-btn:hover {
    background: #fff;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.modern-submit-btn .btn-text {
    transition: all 0.3s ease;
}

.modern-submit-btn .success-icon {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0);
    opacity: 0;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    color: #000;
    width: 24px;
    height: 24px;
}

.modern-submit-btn .loading-spinner {
    position: absolute;
    width: 20px;
    height: 20px;
    border: 2px solid rgba(0, 0, 0, 0.1);
    border-top-color: #000;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
    opacity: 0;
    transition: opacity 0.3s;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* Button States */
.modern-submit-btn.loading .btn-text {
    opacity: 0;
    transform: translateY(-20px);
}

.modern-submit-btn.loading .loading-spinner {
    opacity: 1;
}

.modern-submit-btn.success {
    background: #4caf50;
    /* Green color for success */
    color: #fff;
    pointer-events: none;
}

.modern-submit-btn.success .btn-text {
    opacity: 0;
}

.modern-submit-btn.success .loading-spinner {
    opacity: 0;
}

.modern-submit-btn.success .success-icon {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1.2);
}

.modern-submit-btn.success .success-icon svg {
    color: #fff;
}

/* Animations */
.reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: all 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

/* Reveal Variants - Different Directions */
.reveal-left {
    opacity: 0;
    transform: translateX(-60px);
    transition: all 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal-left.active {
    opacity: 1;
    transform: translateX(0);
}

.reveal-right {
    opacity: 0;
    transform: translateX(60px);
    transition: all 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal-right.active {
    opacity: 1;
    transform: translateX(0);
}

.reveal-scale {
    opacity: 0;
    transform: scale(0.9);
    transition: all 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal-scale.active {
    opacity: 1;
    transform: scale(1);
}

/* Staggered Grid Animation */
.stagger-item {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.stagger-item.active {
    opacity: 1;
    transform: translateY(0);
}

/* Header Scroll Effect */
header {
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

header.scrolled {
    padding: 15px 5%;
    background: rgba(13, 13, 13, 0.95);
}

header.scrolled .logo h1 {
    font-size: 1.2rem;
}

header.scrolled .logo span {
    font-size: 0.65rem;
}

/* Parallax Container */
.parallax-container {
    overflow: hidden;
    position: relative;
}

.parallax-element {
    will-change: transform;
    transition: transform 0.1s linear;
}

/* Section Title Animation */
.section-title h3 {
    transition: all 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.section-title.active h3 {
    opacity: 0.15;
    letter-spacing: 8px;
}

/* Floating Animation for Badges */
@keyframes float {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-10px);
    }
}

.experience-badge {
    animation: float 4s ease-in-out infinite;
}

/* Smooth Image Reveal */
.about-visual img {
    clip-path: inset(0 100% 0 0);
    transition: clip-path 1.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.about-visual.active img {
    clip-path: inset(0 0 0 0);
}

/* Category Card Stagger */
.category-card {
    transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Work Item Hover Enhancement */
.work-item {
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.work-item:hover {
    transform: translateY(-12px) scale(1.02);
}

/* Burger Menu - Hidden on Desktop */
.burger {
    display: none;
}

/* Responsive */
@media (max-width: 968px) {

    /* Nav centered layout reset for mobile */
    nav {
        justify-content: space-between;
        gap: 0;
    }

    /* Mobile Navigation */
    body {
        overflow-x: hidden;
    }

    .nav-links {
        position: absolute;
        right: 0px;
        height: 92vh;
        top: 8vh;
        background-color: var(--bg-color);
        display: flex;
        flex-direction: column;
        align-items: center;
        width: 75%;
        transform: translateX(100%);
        transition: transform 0.5s ease-in;
        z-index: 999;
        padding-top: 50px;
        border-left: 1px solid rgba(255, 255, 255, 0.1);
    }

    .nav-links li {
        opacity: 0;
        margin: 20px 0;
    }

    .burger {
        display: block;
        cursor: pointer;
    }

    .nav-active {
        transform: translateX(0%);
    }

    .about-grid {
        grid-template-columns: 1fr;
        gap: 50px;
    }

    .contact-card {
        grid-template-columns: 1fr;
        padding: 50px;
    }

    .contact-cta h4 {
        font-size: 2rem;
    }
}

/* Burger Menu Animation */
.burger div {
    width: 25px;
    height: 3px;
    background-color: var(--text-color);
    margin: 5px;
    transition: all 0.3s ease;
}

.toggle .line1 {
    transform: rotate(-45deg) translate(-5px, 6px);
}

.toggle .line2 {
    opacity: 0;
}

.toggle .line3 {
    transform: rotate(45deg) translate(-5px, -6px);
}

@keyframes navLinkFade {
    from {
        opacity: 0;
        transform: translateX(50px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Works Header */
.works-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-bottom: 50px;
}

.back-btn {
    background: none;
    border: 1px solid var(--accent-color);
    color: var(--accent-color);
    padding: 10px 25px;
    font-size: 0.9rem;
    letter-spacing: 1px;
    cursor: pointer;
    transition: var(--transition-fast);
    display: flex;
    align-items: center;
    gap: 10px;
}

.back-btn:hover {
    background: var(--accent-color);
    color: #000;
}

.back-btn .arrow {
    font-size: 1.2rem;
}

/* Categories Grid */
.categories-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 14px;
}

.category-card {
    position: relative;
    aspect-ratio: 3/4;
    overflow: hidden;
    cursor: pointer;
}

.cat-img {
    width: 100%;
    height: 100%;
    position: relative;
}

.cat-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--transition-slow);
}

.cat-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.8) 0%, transparent 60%);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 30px;
}

.category-card:hover .cat-img img {
    transform: scale(1.1);
}

.cat-overlay h4 {
    font-size: 1.1rem;
    margin-bottom: 4px;
}

.cat-overlay span {
    font-size: 0.65rem;
    letter-spacing: 2px;
    color: var(--accent-color);
    opacity: 0.8;
}

/* Transitions */
#categories-grid,
#works-grid {
    transition: opacity 0.5s ease;
}

/* Hero Reveal Fix */
.reveal-text {
    opacity: 0;
    transform: translateY(30px);
}

/* Video Modal Styles */

/* Floating CTA Button */
.floating-cta {
    position: fixed;
    bottom: 30px;
    left: 30px;
    display: flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.9rem 1.5rem;
    background: linear-gradient(135deg, var(--accent-color) 0%, #8b7355 100%);
    color: #fff;
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    border-radius: 50px;
    box-shadow: 0 4px 20px rgba(196, 163, 90, 0.4);
    z-index: 1999;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.3s ease;
    pointer-events: none;
}

.floating-cta.visible {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}

.floating-cta:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 30px rgba(196, 163, 90, 0.5);
}

@media (max-width: 768px) {
    .floating-cta {
        left: 50%;
        transform: translateX(-50%) translateY(20px);
        bottom: 20px;
    }
    .floating-cta.visible {
        transform: translateX(-50%) translateY(0);
    }
    .floating-cta:hover {
        transform: translateX(-50%) translateY(-3px);
    }
}

/* Chatbot Container */
.chatbot-container {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 2000;
}

.chat-trigger {
    min-width: 60px;
    height: 60px;
    padding: 0 20px;
    border-radius: 30px;
    background: var(--accent-color);
    color: #000;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    box-shadow: 0 10px 30px rgba(181, 155, 110, 0.3);
    transition: var(--transition-fast);
}

.chat-trigger:hover {
    transform: scale(1.05);
    box-shadow: 0 15px 40px rgba(181, 155, 110, 0.4);
}

.chat-trigger svg {
    width: 24px;
    height: 24px;
    flex-shrink: 0;
}

.chat-label {
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 0.5px;
    white-space: nowrap;
}

.chat-badge {
    position: absolute;
    top: -5px;
    right: -5px;
    background: #ff4444;
    color: white;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    font-size: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid #000;
}

/* Chat Window */
.chat-window {
    position: absolute;
    bottom: 80px;
    right: 0;
    width: 350px;
    height: 500px;
    background: rgba(15, 15, 15, 0.85);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    display: none;
    flex-direction: column;
    overflow: hidden;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
    animation: slideUp 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.chat-header {
    padding: 20px;
    background: rgba(255, 255, 255, 0.03);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.assistant-info {
    display: flex;
    align-items: center;
    gap: 12px;
}

.assistant-avatar {
    width: 36px;
    height: 36px;
    background: var(--accent-color);
    color: #000;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.8rem;
}

.assistant-text h5 {
    margin: 0;
    font-size: 0.95rem;
    color: #fff;
}

.assistant-text span {
    font-size: 0.7rem;
    color: #888;
}

.close-chat {
    background: none;
    border: none;
    color: #fff;
    font-size: 24px;
    cursor: pointer;
    opacity: 0.5;
    transition: var(--transition-fast);
}

.close-chat:hover {
    opacity: 1;
}

.chat-body {
    flex: 1;
    padding: 20px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.msg {
    max-width: 80%;
    padding: 12px 16px;
    border-radius: 15px;
    font-size: 0.9rem;
    line-height: 1.5;
}

.bot-msg {
    background: rgba(255, 255, 255, 0.05);
    color: #e0e0e0;
    align-self: flex-start;
    border-bottom-left-radius: 2px;
}

.user-msg {
    background: var(--accent-color);
    color: #000;
    align-self: flex-end;
    border-bottom-right-radius: 2px;
}

.chat-footer {
    padding: 20px;
    background: rgba(255, 255, 255, 0.02);
}

.chat-options {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.option-btn {
    background: rgba(181, 155, 110, 0.1);
    border: 1px solid rgba(181, 155, 110, 0.3);
    color: var(--accent-color);
    padding: 10px 15px;
    border-radius: 10px;
    text-align: left;
    font-size: 0.85rem;
    cursor: pointer;
    transition: var(--transition-fast);
}

.option-btn:hover {
    background: var(--accent-color);
    color: #000;
}

.chat-input-area {
    display: flex;
    gap: 10px;
}

.chat-input {
    flex: 1;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    padding: 10px;
    color: #fff;
    font-size: 0.85rem;
    outline: none;
}

.send-msg {
    background: var(--accent-color);
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 10px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #000;
}

/* Scrollbar for chat body */
.chat-body::-webkit-scrollbar {
    width: 4px;
}

.chat-body::-webkit-scrollbar-track {
    background: transparent;
}

.chat-body::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
}

@media (max-width: 480px) {
    .chat-window {
        width: calc(100vw - 40px);
        height: 450px;
        right: -10px;
    }

    /* 單欄作品格：避免 320px 最小寬在小手機溢出 */
    .works-grid {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    /* 浮動 CTA 在小螢幕下移，避免和右下聊天按鈕重疊 */
    .floating-cta {
        bottom: 90px;
    }
}

.modal {
    display: none;
    position: fixed;
    z-index: 2000;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.95);
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.95);
    overflow-y: auto;
    padding: 60px 20px 20px 20px;
}

.modal.active {
    display: block;
    animation: fadeIn 0.3s ease;
}

.modal-content {
    position: relative;
    background: #1a1a1a;
    margin: auto;
    max-width: 1200px;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.8);
}

.video-container {
    position: relative;
    padding-bottom: 56.25%;
    /* 16:9 Aspect Ratio */
    height: 0;
    overflow: hidden;
}

.video-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

/* Hero Video Banner - Centered in Hero Section */
/* Hero Video Banner - Centered in Hero Section */
.hero-video-banner {
    width: 85%;
    max-width: 1400px;
    margin: 0 auto 20px auto;
    position: relative;
    z-index: 10;
}

.showreel-wrapper {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.6);
    transition: all 0.5s cubic-bezier(0.86, 0, 0.07, 1);
    background: #000;
}

.showreel-wrapper iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    /* Let clicks pass through to container/watermarks if needed, or re-enable */
}

/* 2. Dynamic Cover */
.video-cover {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #000;
    z-index: 2;
    transition: opacity 0.6s ease;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

.video-cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.8;
    transition: transform 6s ease;
}

/* Hover: Fade out cover -> Reveal Muted Video */
.showreel-wrapper:hover .video-cover {
    opacity: 0;
    pointer-events: none;
}

.play-hint {
    position: absolute;
    z-index: 3;
    border: 1px solid rgba(255, 255, 255, 0.3);
    padding: 10px 20px;
    backdrop-filter: blur(5px);
    border-radius: 30px;
    transition: all 0.3s ease;
}

.hint-text {
    font-size: 0.8rem;
    letter-spacing: 2px;
    font-weight: 500;
}

.showreel-wrapper:hover .play-hint {
    opacity: 0;
    transform: scale(1.1);
}

/* 3. Brand Watermark */
.brand-watermark {
    position: absolute;
    bottom: 25px;
    right: 30px;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    pointer-events: none;
    z-index: 5;
    opacity: 0.6;
    mix-blend-mode: overlay;
    transition: opacity 0.3s ease;
}

.wm-logo {
    font-family: 'Bodoni Moda', serif;
    font-weight: 700;
    font-size: 1.5rem;
    line-height: 1;
}

.wm-text {
    font-size: 0.6rem;
    letter-spacing: 3px;
    margin-top: 2px;
}

.showreel-wrapper:hover .brand-watermark {
    opacity: 0.9;
}

/* showreel-outer: 與 showreel-wrapper 同寬，但無 overflow:hidden，讓按鈕定位正確 */
.showreel-outer {
    position: relative;
    width: 100%;
}

/* Mute Toggle Button — position: absolute 相對於 .showreel-outer（有 position:relative，無 overflow:hidden） */
.mute-btn {
    position: absolute;
    bottom: 12px;
    right: 12px;
    background: rgba(0, 0, 0, 0.65);
    border: 1px solid rgba(255, 255, 255, 0.35);
    color: #fff;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 200;
    opacity: 0.8;
    transition: opacity 0.25s ease, background 0.25s ease, transform 0.25s ease;
}

.mute-btn:hover {
    opacity: 1;
    background: rgba(196, 163, 90, 0.9);
    border-color: transparent;
    transform: scale(1.08);
}

/* Theater mode */
body.theater-active .mute-btn {
    position: fixed;
    bottom: 20px;
    right: 20px;
    top: auto;
    left: auto;
    z-index: 10001;
}

/* Theater Mode Trigger — 永遠顯示，不依賴 hover（iframe 不傳遞 hover 事件） */
.theater-btn {
    position: absolute;
    top: 16px;
    right: 16px;
    background: rgba(0, 0, 0, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: #fff;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 10;
    opacity: 0.75;
    transition: all 0.25s ease;
}

.theater-btn:hover {
    opacity: 1;
    background: rgba(196, 163, 90, 0.9);
    border-color: transparent;
    transform: scale(1.08);
}

/* --- THEATER MODE STATE --- */
.showreel-wrapper.theater-mode {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    border-radius: 0;
    z-index: 9999;
    margin: 0;
    aspect-ratio: unset;
    /* Fill screen */
}

.showreel-wrapper.theater-mode iframe {
    pointer-events: auto;
    /* Enable controls in theater mode */
    object-fit: contain;
}

.close-theater-btn {
    display: none;
    position: absolute;
    top: 30px;
    right: 30px;
    background: none;
    border: none;
    color: #fff;
    font-size: 3rem;
    cursor: pointer;
    z-index: 20;
    line-height: 0.8;
    opacity: 0.7;
    transition: 0.3s;
}

.showreel-wrapper.theater-mode .close-theater-btn {
    display: block;
}

.showreel-wrapper.theater-mode .close-theater-btn:hover {
    opacity: 1;
    transform: scale(1.1);
}

.showreel-wrapper.theater-mode .video-cover,
.showreel-wrapper.theater-mode .theater-btn,
.showreel-wrapper.theater-mode .brand-watermark {
    display: none;
    /* Hide UI elements in immersive mode */
}

#hero {
    position: relative;
    padding-top: 100px;
    padding-bottom: 0px;
}

.close-modal {
    position: absolute;
    top: 20px;
    right: 20px;
    font-size: 2rem;
    color: var(--gray-color);
    cursor: pointer;
    transition: var(--transition-fast);
    z-index: 10000;
    background: rgba(0, 0, 0, 0.5);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
}

.close-modal:hover {
    color: #fff;
    transform: rotate(90deg);
    background: rgba(0, 0, 0, 0.8);
}

.modal-info {
    padding: 30px 40px;
}

.modal-info h4 {
    font-size: 1.8rem;
    margin-bottom: 5px;
}

.modal-info p {
    font-size: 0.9rem;
    color: var(--accent-color);
    letter-spacing: 2px;
}

/* Modal Actions */
.modal-actions {
    display: flex;
    gap: 1rem;
    margin-top: 1.2rem;
    flex-wrap: wrap;
}

.modal-detail-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.7rem 1.2rem;
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 6px;
    color: #ccc;
    text-decoration: none;
    font-size: 0.85rem;
    transition: all 0.3s ease;
}

.modal-detail-btn:hover {
    border-color: var(--accent-color);
    color: var(--accent-color);
}

.modal-cta-btn {
    display: inline-flex;
    align-items: center;
    padding: 0.7rem 1.5rem;
    background: linear-gradient(135deg, var(--accent-color) 0%, #8b7355 100%);
    border-radius: 6px;
    color: #fff;
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: 500;
    transition: all 0.3s ease;
}

.modal-cta-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(196, 163, 90, 0.4);
}

/* Scroll Lock */
body.modal-open {
    overflow: hidden;
}

/* Animations Reveal Enhancement */
.work-item {
    cursor: none;
}

/* Social Interaction Styles */
.social-section {
    margin-top: 30px;
    padding: 20px;
    background: rgba(255, 255, 255, 0.02);
    border-radius: 12px;
}

/* Login Prompt */
.login-prompt {
    text-align: center;
    padding: 30px 20px;
}

.login-prompt p {
    color: var(--gray-color);
    margin-bottom: 20px;
    font-size: 0.95rem;
}

.google-login-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 12px 24px;
    background: #fff;
    color: #333;
    border: none;
    border-radius: 6px;
    font-size: 0.95rem;
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition-fast);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.google-login-btn:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    transform: translateY(-2px);
}

/* User Info */
.user-info {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 15px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    margin-bottom: 20px;
}

.user-photo {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 2px solid var(--accent-color);
}

.user-name {
    flex: 1;
    color: #fff;
    font-weight: 500;
}

.logout-btn {
    padding: 6px 16px;
    background: rgba(255, 255, 255, 0.1);
    color: var(--gray-color);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 4px;
    font-size: 0.85rem;
    cursor: pointer;
    transition: var(--transition-fast);
}

.logout-btn:hover {
    background: rgba(255, 255, 255, 0.15);
    color: #fff;
}

/* Like Section */
.like-section {
    margin-bottom: 25px;
}

.like-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    background: rgba(255, 255, 255, 0.05);
    border: 2px solid rgba(255, 255, 255, 0.1);
    border-radius: 50px;
    color: var(--gray-color);
    font-size: 1rem;
    cursor: pointer;
    transition: var(--transition-fast);
}

.like-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.like-btn:not(:disabled):hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: var(--accent-color);
    transform: scale(1.05);
}

.like-btn.liked {
    border-color: #ff4757;
    color: #ff4757;
}

.like-btn.liked .heart-icon {
    fill: #ff4757;
    stroke: #ff4757;
}

.heart-icon {
    width: 20px;
    height: 20px;
    transition: var(--transition-fast);
}

/* Comments Section */
.comments-section h5 {
    color: #fff;
    font-size: 1.1rem;
    margin-bottom: 15px;
    font-weight: 600;
}

.comment-input-area {
    margin-bottom: 25px;
}

.comment-input {
    width: 100%;
    min-height: 80px;
    padding: 12px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    color: #fff;
    font-family: 'Noto Sans TC', sans-serif;
    font-size: 0.95rem;
    resize: vertical;
    transition: var(--transition-fast);
}

.comment-input:focus {
    outline: none;
    border-color: var(--accent-color);
    background: rgba(255, 255, 255, 0.08);
}

.comment-input::placeholder {
    color: var(--gray-color);
}

.submit-comment-btn {
    margin-top: 10px;
    padding: 10px 24px;
    background: var(--accent-color);
    color: #000;
    border: none;
    border-radius: 6px;
    font-weight: 600;
    font-size: 0.9rem;
    cursor: pointer;
    transition: var(--transition-fast);
}

.submit-comment-btn:hover {
    background: #f0c74f;
    transform: translateY(-2px);
}

.submit-comment-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* Comments List */
.comments-list {
    max-height: 400px;
    overflow-y: auto;
}

.loading-comments {
    text-align: center;
    color: var(--gray-color);
    padding: 20px;
    font-size: 0.9rem;
}

.no-comments {
    text-align: center;
    color: var(--gray-color);
    padding: 30px;
    font-size: 0.95rem;
}

.comment-item {
    padding: 15px;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 8px;
    margin-bottom: 12px;
    transition: var(--transition-fast);
}

.comment-item:hover {
    background: rgba(255, 255, 255, 0.05);
}

.comment-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
}

.comment-user-photo {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: 2px solid rgba(255, 255, 255, 0.1);
}

.comment-user-name {
    flex: 1;
    color: var(--accent-color);
    font-weight: 500;
    font-size: 0.9rem;
}

.comment-time {
    color: var(--gray-color);
    font-size: 0.8rem;
}

.comment-content {
    color: var(--gray-color);
    line-height: 1.6;
    font-size: 0.95rem;
    margin-bottom: 8px;
    white-space: pre-wrap;
    word-wrap: break-word;
}

.comment-actions {
    display: flex;
    gap: 10px;
}

.delete-comment-btn {
    padding: 4px 12px;
    background: rgba(255, 77, 87, 0.1);
    color: #ff4d57;
    border: 1px solid rgba(255, 77, 87, 0.2);
    border-radius: 4px;
    font-size: 0.8rem;
    cursor: pointer;
    transition: var(--transition-fast);
}

.delete-comment-btn:hover {
    background: rgba(255, 77, 87, 0.2);
}

/* Scrollbar for comments */
.comments-list::-webkit-scrollbar {
    width: 6px;
}

.comments-list::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 3px;
}

.comments-list::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.2);
    border-radius: 3px;
}

.comments-list::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.3);
}

/* Hero Video Background - Centered at 70% */
.hero-video-bg {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 70%;
    height: 70%;
    overflow: hidden;
    z-index: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-video-bg iframe {
    width: 100%;
    height: 100%;
    border: none;
    pointer-events: none;
}

#hero {
    position: relative;
    min-height: 100vh;
}

/* Adjust EXPLORE indicator positioning */
.hero-scroll-indicator {
    text-align: center;
    margin-top: 10px;
    margin-bottom: 0px;
}

/* Reduce Works section top padding */
#works {
    padding-top: 0px !important;
    margin-top: -20px !important;
}

/* Search Bar Styles */
.search-container {
    position: relative;
    margin-left: auto;
    /* Push to right */
    margin-right: 20px;
}

.search-container input {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #fff;
    padding: 0.8rem 1rem 0.8rem 2.5rem;
    border-radius: 50px;
    font-size: 0.95rem;
    width: 250px;
    transition: all 0.3s ease;
    font-family: 'Noto Sans TC', sans-serif;
}

.search-container input:focus {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.3);
    width: 300px;
    outline: none;
    box-shadow: 0 0 15px rgba(255, 255, 255, 0.05);
}

.search-container .search-icon {
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    color: rgba(255, 255, 255, 0.4);
    pointer-events: none;
}

@media (max-width: 768px) {
    .works-header {
        flex-direction: column;
        gap: 1.5rem;
        align-items: flex-start;
    }

    .search-container {
        width: 100%;
        margin: 0;
    }

    .search-container input {
        width: 100%;
    }

    .search-container input:focus {
        width: 100%;
    }
}

/* Blog Section Styles */
.blog-section-header {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    margin-bottom: 2.5rem;
}

/* Featured Post Card */
.blog-featured-card {
    display: grid;
    grid-template-columns: 45% 55%;
    gap: 0;
    text-decoration: none;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 16px;
    overflow: hidden;
    margin-bottom: 3rem;
    transition: border-color 0.3s, box-shadow 0.3s;
}

.blog-featured-card:hover {
    border-color: rgba(196, 163, 90, 0.5);
    box-shadow: 0 16px 48px rgba(0, 0, 0, 0.6);
}

.featured-img-wrap {
    aspect-ratio: 4 / 3;
    overflow: hidden;
}

.featured-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s;
}

.blog-featured-card:hover .featured-img {
    transform: scale(1.04);
}

.featured-content {
    padding: 2.5rem 2rem 2.5rem 2.5rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 1rem;
}

.featured-title {
    font-size: clamp(1.3rem, 2.5vw, 1.8rem);
    color: #fff;
    font-weight: 700;
    line-height: 1.35;
    margin: 0;
}

.featured-excerpt {
    font-size: 0.95rem;
    color: #999;
    line-height: 1.75;
    margin: 0;
    display: -webkit-box;
    -webkit-line-clamp: 4;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.featured-read-more {
    font-size: 0.9rem;
    color: #c4a35a;
    font-weight: 500;
    letter-spacing: 0.5px;
    transition: color 0.3s;
}

.blog-featured-card:hover .featured-read-more {
    color: #d4b46a;
}

/* Blog Grid */
.blog-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.8rem;
    padding: 0;
}

.blog-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 12px;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s;
    cursor: pointer;
}

.blog-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 36px rgba(0, 0, 0, 0.6);
    border-color: rgba(196, 163, 90, 0.4);
}

.blog-card-img {
    width: 100%;
    aspect-ratio: 16 / 9;
    object-fit: cover;
    opacity: 0.85;
    transition: opacity 0.3s ease, transform 0.4s;
}

.blog-card:hover .blog-card-img {
    opacity: 1;
    transform: scale(1.03);
}

.blog-card-content {
    padding: 1.4rem;
}

.blog-date {
    font-size: 0.78rem;
    color: var(--accent-gold);
    display: block;
    margin-bottom: 0.5rem;
    letter-spacing: 0.5px;
}

.blog-card-title {
    font-size: 1.05rem;
    margin-bottom: 0.75rem;
    color: #fff;
    line-height: 1.5;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.blog-card-excerpt {
    font-size: 0.875rem;
    color: #888;
    line-height: 1.65;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Responsive blog grid */
@media (max-width: 900px) {
    .blog-featured-card {
        grid-template-columns: 1fr;
    }

    .featured-img-wrap {
        aspect-ratio: 16 / 9;
    }

    .featured-content {
        padding: 1.5rem;
    }

    .blog-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 600px) {
    .blog-grid {
        grid-template-columns: 1fr;
    }
}

/* Blog Modal */
.blog-content-modal {
    max-width: 800px;
    width: 90%;
    background: #1a1a1a;
    max-height: 90vh;
    overflow-y: auto;
}

.blog-modal-header {
    padding: 2rem 2rem 1rem;
}

.blog-modal-body {
    padding: 0 2rem 2rem;
}

.blog-blocks {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.blog-detail-img {
    width: 100%;
    max-height: 480px;
    object-fit: cover;
    border-radius: 8px;
}

.blog-text {
    font-size: 1rem;
    line-height: 1.8;
    color: #ddd;
    white-space: pre-wrap;
    /* Preserve line breaks */
}

.close-modal-blog {
    position: absolute;
    top: 15px;
    right: 20px;
    font-size: 2rem;
    color: #fff;
    cursor: pointer;
    background: none;
    border: none;
    z-index: 10;
}

/* DJ SELECT Carousel Section */
.dj-select-section {
    padding: 60px 0 80px;
    background: linear-gradient(180deg, var(--bg-color) 0%, #111 100%);
    overflow: hidden;
}

.carousel-wrapper {
    position: relative;
    display: flex;
    align-items: center;
    gap: 20px;
    margin-top: 40px;
}

.carousel-track-container {
    flex: 1;
    overflow: hidden;
    border-radius: 12px;
}

.carousel-track {
    display: flex;
    gap: 24px;
    transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.carousel-slide {
    flex: 0 0 calc(33.333% - 16px);
    aspect-ratio: 16/9;
    border-radius: 12px;
    overflow: hidden;
    cursor: pointer;
    position: relative;
    background: #1a1a1a;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.carousel-slide:hover {
    transform: scale(1.03);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.6);
}

.carousel-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.carousel-slide:hover img {
    transform: scale(1.08);
}

.carousel-slide-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 20px;
    background: linear-gradient(to top, rgba(0,0,0,0.9) 0%, transparent 100%);
    transform: translateY(100%);
    transition: transform 0.3s ease;
}

.carousel-slide:hover .carousel-slide-overlay {
    transform: translateY(0);
}

.carousel-slide-overlay h4 {
    font-size: 1rem;
    font-weight: 500;
    color: #fff;
    margin: 0;
}

.carousel-slide-overlay span {
    font-size: 0.75rem;
    color: var(--accent-color);
    letter-spacing: 1px;
}

.carousel-btn {
    flex-shrink: 0;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--text-color);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    z-index: 10;
}

.carousel-btn:hover {
    background: var(--accent-color);
    color: #000;
    border-color: var(--accent-color);
    transform: scale(1.1);
}

.carousel-btn:disabled {
    opacity: 0.3;
    cursor: not-allowed;
}

.carousel-dots {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 30px;
}

.carousel-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
}

.carousel-dot.active {
    background: var(--accent-color);
    transform: scale(1.2);
}

.carousel-dot:hover {
    background: rgba(255, 255, 255, 0.4);
}

/* Responsive Carousel */
@media (max-width: 1024px) {
    .carousel-slide {
        flex: 0 0 calc(50% - 12px);
    }
}

@media (max-width: 768px) {
    .carousel-slide {
        flex: 0 0 100%;
    }

    .carousel-btn {
        width: 40px;
        height: 40px;
    }

    .carousel-wrapper {
        gap: 10px;
    }
}