/* Mr.YES Theatre Design System */
:root {
    /* Color Palette - Playful Circus Theme */
    --primary: #E85D5D;
    /* Circus Red */
    --primary-hover: #D04545;
    --secondary: #F4C430;
    /* Sunny Yellow */
    --accent-green: #76C2AF;
    /* Mint Green */
    --accent-blue: #5C9CE6;
    /* Sky Blue */
    --dark: #FAF1E6;
    /* Cream/Beige Background */
    --darker: #F0E2D0;
    /* Slightly darker cream for alternating sections */
    --light: #FFFFFF;
    /* White for cards/stickers */
    --text-main: #4A3F35;
    /* Dark Brown for text */
    --white: #FFFFFF;

    /* Gradients */
    --gradient-primary: linear-gradient(135deg, #E85D5D, #FF7B7B);
    --gradient-dark: linear-gradient(135deg, #FAF1E6, #F0E2D0);

    /* Typography */
    --font-heading: 'Outfit', 'Noto Sans TC', sans-serif;
    --font-body: 'Noto Sans TC', sans-serif;

    /* Utilities */
    --radius-sm: 15px;
    --radius-md: 25px;
    --radius-lg: 40px;
    --transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);

    /* Shadows - Soft & Playful */
    --shadow-glass: 0 4px 15px rgba(0, 0, 0, 0.05);
    --shadow-card: 0 10px 30px rgba(74, 63, 53, 0.08);
    --shadow-hover: 0 15px 35px rgba(232, 93, 93, 0.2);
    --shadow-solid: 4px 4px 0px rgba(74, 63, 53, 0.15);
    /* Sticker-like drop shadow */
}

/* Reset & Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

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

body {
    font-family: var(--font-body);
    color: var(--text-main);
    /* Dark brown text */
    background-color: var(--dark);
    /* Cream Base */
    line-height: 1.6;
    overflow-x: hidden;
}

h1,
h2,
h3,
h4 {
    font-family: var(--font-heading);
    font-weight: 900;
    line-height: 1.2;
}

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

.section-padding {
    padding: 100px 0;
}

.bg-light {
    background-color: var(--darker);
    /* Alternating dark blue */
}

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

/* Section Title */
.section-title {
    font-size: 2.8rem;
    margin-bottom: 50px;
    color: var(--text-main);
    position: relative;
    display: inline-block;
}

.section-title span {
    color: var(--primary);
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 15px 35px;
    border-radius: 50px;
    font-size: 1.1rem;
    font-weight: 700;
    text-decoration: none;
    cursor: pointer;
    transition: var(--transition);
    border: none;
    font-family: var(--font-heading);
}

.btn-primary {
    background: var(--primary);
    color: var(--white);
    box-shadow: var(--shadow-solid);
}

.btn-primary:hover {
    transform: translateY(-3px);
    background: var(--primary-hover);
    box-shadow: 6px 6px 0px rgba(74, 63, 53, 0.15);
}

.btn-outline {
    background: var(--white);
    color: var(--primary);
    border: 3px solid var(--primary);
    box-shadow: var(--shadow-solid);
}

.btn-outline:hover {
    background: var(--primary);
    color: var(--white);
}

.text-link {
    color: var(--primary);
    text-decoration: none;
    font-weight: 700;
    font-size: 1.1rem;
    display: inline-flex;
    align-items: center;
    transition: var(--transition);
}

.text-link:hover {
    transform: translateX(5px);
    color: var(--primary-hover);
}

.w-100 {
    width: 100%;
}

.mt-4 {
    margin-top: 2rem;
}

/* --- Navbar --- */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    transition: var(--transition);
    padding: 20px 0;
}

.navbar.scrolled {
    padding: 15px 0;
    background: rgba(250, 241, 230, 0.95);
    /* Cream Glass */
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border-bottom: 3px dashed var(--secondary);
    /* Cute dashed border */
    box-shadow: var(--shadow-glass);
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.brand-logo {
    font-size: 2rem;
    font-weight: 900;
    color: var(--primary);
    text-decoration: none;
    font-family: var(--font-heading);
    letter-spacing: 1px;
}

.brand-logo span {
    color: var(--secondary);
}

.nav-links {
    display: flex;
    gap: 30px;
    align-items: center;
}

.nav-link {
    color: var(--text-main);
    text-decoration: none;
    font-weight: 700;
    font-size: 1.05rem;
    transition: var(--transition);
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0%;
    height: 3px;
    background: var(--secondary);
    transition: var(--transition);
    border-radius: 2px;
}

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

.nav-link.highlight-link {
    background: var(--secondary);
    color: var(--dark);
    padding: 8px 20px;
    border-radius: 20px;
}

.nav-link.highlight-link::after {
    display: none;
}

.nav-link.highlight-link:hover {
    background: var(--white);
    transform: translateY(-2px);
}

.mobile-menu-btn {
    display: none;
    background: transparent;
    border: none;
    cursor: pointer;
    flex-direction: column;
    gap: 5px;
}

.mobile-menu-btn span {
    width: 25px;
    height: 3px;
    background: var(--white);
    transition: var(--transition);
}

/* --- Hero Section --- */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    color: var(--text-main);
    overflow: hidden;
    padding-top: 80px;
}

.hero-slider-center-wrapper {
    position: relative;
    z-index: 3;
    width: 85%;
    max-width: 1000px;
    margin: 0 auto;
    aspect-ratio: 16/9;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-card);
    border: 8px solid var(--white);
}

.hero-center-cta {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 20px;
    z-index: 10;
}

.hero-slider {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    background: var(--dark);
    overflow: hidden;
}

.slide {
    position: absolute;
    top: 0;
    left: 100%;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    transition: left 0.8s cubic-bezier(0.77, 0, 0.18, 1);
}

.slide.active {
    left: 0;
    animation: kenburns 15s ease-in-out forwards;
}

.slide.prev {
    left: -100%;
}

/* Simple slider: disable kenburns, keep clean transition */
.simple-slider .slide.active {
    animation: none;
}

.slide-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(250, 241, 230, 0.08);
    z-index: 2;
}

.hero-text {
    max-width: 100%;
}

.main-title {
    font-size: 5rem;
    margin-bottom: 20px;
    letter-spacing: -1px;
    cursor: zoom-in;
    display: inline-block;
    transition: transform 0.3s ease, letter-spacing 0.3s ease;
}

.main-title:hover {
    transform: scale(1.08);
    letter-spacing: 2px;
}

.main-title span {
    color: var(--secondary);
    display: block;
    font-size: 4rem;
}

.subtitle {
    font-size: 1.5rem;
    margin-bottom: 40px;
    color: rgba(74, 63, 53, 0.85);
    line-height: 1.5;
}

.hero-buttons {
    display: flex;
    gap: 20px;
}

.decor {
    position: absolute;
    z-index: 1;
    font-size: 3rem;
    opacity: 0.6;
}

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

.about-text p {
    font-size: 1.2rem;
    margin-bottom: 20px;
    color: rgba(74, 63, 53, 0.85);
}

.about-image-wrapper {
    position: relative;
    height: 500px;
}

.about-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 90%;
    height: 90%;
    background-image: url('../images/performance_2.png');
    background-size: cover;
    background-position: center;
    border-radius: var(--radius-lg);
    border: 4px solid var(--white);
    z-index: 2;
    box-shadow: var(--shadow-solid);
}

.about-shape {
    position: absolute;
    bottom: 0;
    right: 0;
    width: 80%;
    height: 80%;
    background: var(--secondary);
    border-radius: var(--radius-lg);
    z-index: 1;
    transform: translate(10%, 10%);
}

/* Performance Timeline Layout */
.performance-timeline {
    position: relative;
    padding-left: 30px;
    margin-top: 20px;
}

.performance-timeline::before {
    content: '';
    position: absolute;
    left: 0;
    top: 5px;
    bottom: 5px;
    width: 3px;
    background: var(--secondary);
    opacity: 0.3;
    border-radius: 10px;
}

.timeline-item {
    position: relative;
    margin-bottom: 25px;
}

.timeline-item::before {
    content: '';
    position: absolute;
    left: -35px;
    top: 5px;
    width: 13px;
    height: 13px;
    background: var(--secondary);
    border: 3px solid var(--white);
    border-radius: 50%;
    z-index: 2;
    box-shadow: 2px 2px 0px rgba(74, 63, 53, 0.1);
}

.timeline-year {
    font-family: var(--font-heading);
    font-weight: 900;
    font-size: 1.4rem;
    color: var(--primary);
    display: block;
    margin-bottom: 5px;
    line-height: 1;
}

.timeline-content {
    font-size: 1.1rem;
    color: var(--text-main);
    line-height: 1.5;
}

.timeline-content span {
    display: block;
    margin-bottom: 5px;
}


/* --- Classic Programs --- */
.programs-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
}

.program-card {
    background: var(--white);
    /* Sticker card */
    border: 3px solid var(--accent-blue);
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-solid);
    transition: var(--transition);
}

.program-card:hover {
    transform: translateY(-5px);
    box-shadow: 6px 6px 0px rgba(74, 63, 53, 0.15);
    border-color: var(--primary);
}

.card-img {
    height: 250px;
    background-size: cover;
    background-position: center;
}

.card-content {
    padding: 30px;
}

.card-content h3 {
    font-size: 1.6rem;
    margin-bottom: 15px;
    color: var(--primary);
}

.card-content p {
    color: rgba(74, 63, 53, 0.8);
    margin-bottom: 0;
}

/* --- Event 2026 --- */
.event-special {
    background: var(--darker);
    color: var(--text-main);
    overflow: hidden;
}

.event-banner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 50px;
    background: var(--white);
    border: 4px dashed var(--accent-green);
    padding: 60px;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-solid);
}

.event-content {
    flex: 1;
}

.badge {
    display: inline-block;
    background: var(--primary);
    color: var(--white);
    padding: 5px 15px;
    border-radius: 20px;
    font-weight: bold;
    margin-bottom: 20px;
    font-size: 0.9rem;
}

.event-content h2 {
    font-size: 3.5rem;
    margin-bottom: 20px;
    color: var(--primary);
}

.event-content p {
    font-size: 1.2rem;
    margin-bottom: 30px;
    color: var(--text-main);
}

.event-features {
    list-style: none;
    margin-bottom: 30px;
}

.event-features li {
    font-size: 1.1rem;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.event-visual {
    flex: 1;
    display: flex;
    justify-content: center;
}

.ticket-mockup {
    background: var(--gradient-primary);
    border-radius: 15px;
    padding: 20px;
    width: 300px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
    transform: rotate(5deg);
}

.ticket-header {
    border-bottom: 2px dashed rgba(255, 255, 255, 0.5);
    padding-bottom: 10px;
    text-align: center;
    font-weight: bold;
    letter-spacing: 3px;
}

.ticket-body {
    padding: 30px 10px;
    text-align: center;
}

.ticket-body h4 {
    font-size: 2rem;
    margin-bottom: 10px;
}

/* --- Services (Project & Courses) --- */
.services-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
}

.service-block {
    background: var(--white);
    border: 3px solid var(--secondary);
    padding: 50px;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-solid);
    transition: var(--transition);
}

.service-block:hover {
    transform: translateY(-5px);
    box-shadow: 6px 6px 0px rgba(74, 63, 53, 0.15);
    border-color: var(--primary);
}

.icon-wrapper {
    font-size: 4rem;
    margin-bottom: 20px;
}

.service-block h3 {
    font-size: 2rem;
    margin-bottom: 20px;
}

.service-block p {
    font-size: 1.1rem;
    color: rgba(74, 63, 53, 0.8);
    margin-bottom: 30px;
}

/* --- Contact Section --- */
.contact-card {
    display: flex;
    background: var(--white);
    border: 4px solid var(--accent-blue);
    border-radius: var(--radius-lg);
    overflow: hidden;
    color: var(--text-main);
    box-shadow: var(--shadow-solid);
}

.contact-info {
    flex: 1;
    padding: 60px;
}

.contact-info h2 {
    font-size: 3rem;
    margin-bottom: 20px;
}

.contact-info h2 span {
    color: var(--secondary);
}

.contact-info p {
    font-size: 1.2rem;
    margin-bottom: 40px;
    opacity: 0.9;
}

.contact-details {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 15px;
}

.contact-item .icon {
    font-size: 1.5rem;
}

.contact-link {
    color: var(--text-main);
    text-decoration: none;
    font-size: 1.2rem;
    font-weight: bold;
    transition: var(--transition);
}

.contact-link:hover {
    color: var(--secondary);
}

.contact-form-wrapper {
    flex: 1;
    background: var(--darker);
    padding: 60px;
    color: var(--text-main);
    border-left: 4px dashed var(--accent-blue);
}

.form-group {
    margin-bottom: 25px;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 15px 20px;
    border: 2px solid rgba(74, 63, 53, 0.2);
    border-radius: var(--radius-sm);
    font-size: 1rem;
    font-family: var(--font-body);
    transition: var(--transition);
    background: var(--white);
    color: var(--text-main);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: rgba(74, 63, 53, 0.4);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 4px 4px 0px rgba(232, 93, 93, 0.15);
    background: var(--white);
}

/* Option styling for the select dropdown */
.form-group select option {
    background: var(--white);
    color: var(--text-main);
}

/* --- Footer --- */
footer {
    background: var(--darker);
    color: var(--text-main);
    padding: 80px 0 0;
}

.footer-content {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    border-bottom: 2px dashed rgba(74, 63, 53, 0.2);
    padding-bottom: 40px;
    margin-bottom: 30px;
}

.footer-logo-img {
    flex: 0 0 auto;
}

.footer-logo-img img {
    display: block;
    filter: drop-shadow(2px 4px 8px rgba(0, 0, 0, 0.15));
    transition: var(--transition);
}

.footer-logo-img:hover img {
    transform: scale(1.05) rotate(-2deg);
}

.footer-links {
    display: flex;
    gap: 30px;
}

.footer-links a {
    color: rgba(74, 63, 53, 0.7);
    text-decoration: none;
    transition: var(--transition);
}

.footer-links a:hover {
    color: var(--primary);
}

.social-links {
    display: flex;
    gap: 15px;
}

.social-links a {
    width: 40px;
    height: 40px;
    background: var(--white);
    border: 2px solid var(--primary);
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 50%;
    color: var(--primary);
    text-decoration: none;
    font-weight: bold;
    transition: var(--transition);
}

.social-links a:hover {
    background: var(--primary);
    color: var(--white);
    transform: translateY(-3px);
}

.footer-bottom {
    text-align: center;
    color: rgba(74, 63, 53, 0.6);
    font-size: 0.9rem;
    padding-bottom: 20px;
}

/* --- Animations & Utilities --- */
.reveal,
.reveal-left,
.reveal-right,
.zoom-in {
    opacity: 0;
    transition: all 0.8s cubic-bezier(0.5, 0, 0, 1);
}

.reveal {
    transform: translateY(40px);
}

.reveal-left {
    transform: translateX(-50px);
}

.reveal-right {
    transform: translateX(50px);
}

.zoom-in {
    transform: scale(0.85);
}

.reveal.active,
.reveal-left.active,
.reveal-right.active,
.zoom-in.active {
    opacity: 1;
    transform: translate(0) scale(1);
}

@keyframes kenburns {
    0% {
        transform: scale(1);
    }

    100% {
        transform: scale(1.08);
    }
}

@keyframes float {
    0% {
        transform: translateY(0px) rotate(0deg);
    }

    50% {
        transform: translateY(-20px) rotate(5deg);
    }

    100% {
        transform: translateY(0px) rotate(0deg);
    }
}

@keyframes spin-sway {
    0% {
        transform: rotate(-8deg) scale(1);
    }

    50% {
        transform: rotate(8deg) scale(1.1);
    }

    100% {
        transform: rotate(-8deg) scale(1);
    }
}

/* Logo wrapper with pop-out 04 effect */
.logo-wrapper {
    position: relative;
    display: inline-flex;
    align-items: center;
}

.logo-wrapper .brand-logo {
    position: relative;
    z-index: 2;
    display: block;
}

.logo-deco-04 {
    position: absolute;
    right: -30px;
    top: 50%;
    transform: translateY(-50%) scale(0) rotate(-20deg);
    height: 90px;
    width: auto;
    z-index: 1;
    transform-origin: left center;
    filter: drop-shadow(2px 4px 8px rgba(0, 0, 0, 0.25));
    transition: transform 0.45s cubic-bezier(0.34, 1.56, 0.64, 1), opacity 0.3s ease;
    opacity: 0;
    pointer-events: none;
}

/* Pop out when hovering the logo wrapper */
.logo-wrapper:hover .logo-deco-04 {
    transform: translateY(-50%) scale(1) rotate(8deg);
    opacity: 1;
}

/* Gentle sway after pop-out */
.logo-wrapper:hover .logo-deco-04 {
    animation: deco-sway 3s ease-in-out infinite;
    animation-delay: 0.4s;
}

@keyframes deco-sway {
    0% {
        transform: translateY(-50%) scale(1) rotate(6deg);
    }

    50% {
        transform: translateY(-60%) scale(1.08) rotate(14deg);
    }

    100% {
        transform: translateY(-50%) scale(1) rotate(6deg);
    }
}

/* --- Nav Link Pop-out 04 Effect --- */
.nav-deco-wrapper {
    position: relative;
    display: inline-block;
}

/* The 04.png positioned above the nav link, hidden by default */
.nav-deco-04 {
    position: absolute;
    top: -10px;
    left: 50%;
    transform: translateX(-50%) translateY(0) scale(0) rotate(-15deg);
    transform-origin: center bottom;
    height: 90px;
    width: auto;
    opacity: 0;
    pointer-events: none;
    transition:
        transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1),
        opacity 0.2s ease;
    filter: drop-shadow(1px 3px 6px rgba(0, 0, 0, 0.25));
    z-index: 100;
}

/* Pop out above nav link on hover */
.nav-deco-wrapper:hover .nav-deco-04 {
    transform: translateX(-50%) translateY(-55px) scale(1) rotate(8deg);
    opacity: 1;
    animation: nav-deco-sway 2.5s ease-in-out infinite;
    animation-delay: 0.35s;
}

@keyframes nav-deco-sway {
    0% {
        transform: translateX(-50%) translateY(-55px) scale(1) rotate(6deg);
    }

    50% {
        transform: translateX(-50%) translateY(-65px) scale(1.08) rotate(14deg);
    }

    100% {
        transform: translateX(-50%) translateY(-55px) scale(1) rotate(6deg);
    }
}

/* --- Hero Scattered Stickers --- */
.hero-sticker {
    position: absolute;
    z-index: 4;
    pointer-events: none;
    filter: drop-shadow(2px 4px 10px rgba(0, 0, 0, 0.18));
}

/* Top-left: daddy figure */
.sticker-a {
    left: 2%;
    top: 18%;
    height: 160px;
    width: auto;
    transform: rotate(-10deg);
    animation: float-a 7s ease-in-out infinite;
}

/* Top-right: girl figure */
.sticker-b {
    right: 2%;
    top: 15%;
    height: 150px;
    width: auto;
    transform: rotate(8deg);
    animation: float-b 6s ease-in-out infinite;
    animation-delay: 1s;
}

/* Bottom-left: tent */
.sticker-c {
    left: 3%;
    bottom: 10%;
    height: 130px;
    width: auto;
    transform: rotate(5deg);
    animation: float-c 8s ease-in-out infinite;
    animation-delay: 0.5s;
}

/* Bottom-right: MR.YES badge */
.sticker-d {
    right: 3%;
    bottom: 12%;
    height: 110px;
    width: auto;
    transform: rotate(-6deg);
    animation: float-d 5.5s ease-in-out infinite;
    animation-delay: 1.5s;
}

@keyframes float-a {

    0%,
    100% {
        transform: rotate(-10deg) translateY(0px);
    }

    50% {
        transform: rotate(-6deg) translateY(-18px);
    }
}

@keyframes float-b {

    0%,
    100% {
        transform: rotate(8deg) translateY(0px);
    }

    50% {
        transform: rotate(12deg) translateY(-15px);
    }
}

@keyframes float-c {

    0%,
    100% {
        transform: rotate(5deg) translateY(0px);
    }

    50% {
        transform: rotate(2deg) translateY(-20px);
    }
}

@keyframes float-d {

    0%,
    100% {
        transform: rotate(-6deg) translateY(0px);
    }

    50% {
        transform: rotate(-10deg) translateY(-14px);
    }
}

.floating {
    animation: float 6s ease-in-out infinite;
}

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

    .hero-grid,
    .about-grid,
    .event-banner,
    .contact-card {
        flex-direction: column;
        grid-template-columns: 1fr;
    }

    .event-banner {
        padding: 40px;
    }

    .contact-info,
    .contact-form-wrapper {
        padding: 40px;
    }

    .main-title {
        font-size: 4rem;
    }

    .main-title span {
        font-size: 3rem;
    }
}

@media (max-width: 768px) {
    .mobile-menu-btn {
        display: flex;
        z-index: 1001;
    }

    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        width: 80%;
        max-width: 300px;
        height: 100vh;
        background: var(--dark);
        flex-direction: column;
        justify-content: center;
        transition: var(--transition);
        box-shadow: -10px 0 30px rgba(0, 0, 0, 0.5);
    }

    .nav-links.active {
        right: 0;
    }

    .services-grid {
        grid-template-columns: 1fr;
    }

    .footer-content {
        flex-direction: column;
        gap: 30px;
    }
}

/* --- Floating Music Button --- */
.music-toggle-btn {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: var(--white);
    border: 3px solid var(--primary);
    color: var(--text-main);
    font-size: 1.5rem;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    z-index: 1000;
    box-shadow: var(--shadow-solid);
    transition: var(--transition);
    opacity: 0.8;
}

.music-toggle-btn:hover {
    transform: translateY(-5px) scale(1.1);
    background: var(--primary);
    color: var(--white);
}

.music-toggle-btn.playing {
    animation: pulse 2s infinite;
    opacity: 1;
}

@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(232, 93, 93, 0.4);
    }

    70% {
        box-shadow: 0 0 0 15px rgba(232, 93, 93, 0);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(232, 93, 93, 0);
    }
}

/* --- Hero Marquee (新增：首頁跑馬燈區塊樣式) --- */
/* 跑馬燈外層容器：設定絕對定位於底部、背景色、層級與隱藏超出的內容 */
.hero-marquee-container {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    background: rgba(244, 196, 48, 0.9);
    /* Sunny Yellow with opacity */
    color: var(--text-main);
    padding: 10px 0;
    z-index: 20;
    overflow: hidden;
    white-space: nowrap;
    border-top: 2px dashed var(--white);
}

/* 跑馬燈內容：設定動畫滾動效果及文字排版 */
.hero-marquee-content {
    display: inline-block;
    padding-left: 100%;
    animation: marquee-scroll 20s linear infinite;
    font-weight: 700;
    font-size: 1.1rem;
    letter-spacing: 1px;
}

/* 跑馬燈文字間距 */
.hero-marquee-content span {
    margin: 0 20px;
}

/* 跑馬燈分隔點顏色 */
.hero-marquee-content .dot {
    color: var(--primary);
}

/* 跑馬燈滾動動畫關鍵影格：由右至左平移 */
@keyframes marquee-scroll {
    0% {
        transform: translate(0, 0);
    }

    100% {
        transform: translate(-100%, 0);
    }
}