/* Premium Optimization for Secret Match */
:root {
    --bg-dark: #0a0610;
    --bg-deep: #050208;
    --primary: #ff2e63;
    /* Vibrant Pink/Red */
    --primary-glow: rgba(255, 46, 99, 0.6);
    --accent: #08d9d6;
    /* Cyan Accent */
    --text-main: #ffffff;
    --text-muted: #b0b0b0;
    --glass-bg: rgba(20, 20, 30, 0.6);
    --glass-border: rgba(255, 255, 255, 0.1);
    --card-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.37);
    --font-main: "Noto Sans TC", sans-serif;
    --ease-out-expo: cubic-bezier(0.19, 1, 0.22, 1);
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

body {
    margin: 0;
    padding: 0;
    font-family: var(--font-main);
    background-color: var(--bg-dark);
    color: var(--text-main);
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

/* Dynamic Mesh Gradient Background */
.bg-mesh {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: -1;
    background:
        radial-gradient(at 0% 0%, hsla(340, 100%, 46%, 0.2) 0px, transparent 50%),
        radial-gradient(at 100% 0%, hsla(280, 100%, 46%, 0.2) 0px, transparent 50%),
        radial-gradient(at 100% 100%, hsla(240, 100%, 46%, 0.2) 0px, transparent 50%),
        radial-gradient(at 0% 100%, hsla(320, 100%, 46%, 0.2) 0px, transparent 50%);
    filter: blur(60px);
    animation: bgShift 20s ease-in-out infinite alternate;
}

@keyframes bgShift {
    0% {
        transform: scale(1);
    }

    100% {
        transform: scale(1.1);
    }
}

.container {
    width: min(1120px, 92%);
    margin: 0 auto;
}

/* Glassmorphism Utilities */
.glass {
    background: var(--glass-bg);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--glass-border);
    box-shadow: var(--card-shadow);
}

/* Header */
.site-header {
    position: sticky;
    top: 0;
    z-index: 100;
    padding: 16px 0;
    transition: all 0.3s ease;
}

.site-header.scrolled {
    background: rgba(10, 6, 16, 0.85);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--glass-border);
    padding: 12px 0;
}

.header__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.brand {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 700;
    font-size: 1.2rem;
    letter-spacing: 0.5px;
}

.brand__logo {
    font-size: 1.4rem;
    filter: drop-shadow(0 0 8px var(--primary-glow));
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    border-radius: 50px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s var(--ease-out-expo);
    border: none;
    text-decoration: none;
    position: relative;
    overflow: hidden;
}

.btn:active {
    transform: scale(0.96);
}

.btn--primary {
    background: linear-gradient(135deg, #ff2e63, #ff0044);
    color: white;
    box-shadow: 0 4px 15px var(--primary-glow);
}

.btn--primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px var(--primary-glow);
}

.btn--primary::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: 0.5s;
}

.btn--primary:hover::after {
    left: 100%;
}

.btn--line {
    background: #06c755;
    color: white;
    font-weight: 700;
}

.btn--line:hover {
    background: #05b34c;
    box-shadow: 0 4px 12px rgba(6, 199, 85, 0.4);
}

.btn--pulse {
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(255, 46, 99, 0.7);
    }

    70% {
        box-shadow: 0 0 0 15px rgba(255, 46, 99, 0);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(255, 46, 99, 0);
    }
}

/* Hero Section */
.hero {
    padding: 80px 0 60px;
    min-height: 80vh;
    display: flex;
    align-items: center;
}

.hero__grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: center;
}

.hero__copy h1 {
    font-size: clamp(2.5rem, 5vw, 4rem);
    line-height: 1.1;
    margin-bottom: 16px;
    background: linear-gradient(to right, #fff, #ffccd5);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.subtitle {
    font-size: 1.1rem;
    color: var(--text-muted);
    margin-bottom: 24px;
}

.hero__badges {
    display: flex;
    gap: 12px;
    list-style: none;
    padding: 0;
    margin-bottom: 32px;
}

.hero__badges li {
    padding: 6px 14px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    font-size: 0.9rem;
    color: var(--accent);
}

/* Filter Panel */
.cta-panel {
    border-radius: 24px;
    padding: 24px;
    margin-top: 20px;
}

.filters {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-bottom: 24px;
}

.label {
    display: block;
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-bottom: 10px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.chips {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.chip {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--glass-border);
    color: var(--text-muted);
    padding: 8px 16px;
    border-radius: 20px;
    cursor: pointer;
    transition: all 0.2s;
}

.chip:hover {
    background: rgba(255, 255, 255, 0.1);
    color: white;
}

.chip.is-active {
    background: var(--primary);
    border-color: var(--primary);
    color: white;
    box-shadow: 0 4px 12px rgba(255, 46, 99, 0.3);
}

/* Visual Stack */
.portrait-stack {
    position: relative;
    height: 450px;
    width: 100%;
    perspective: 1000px;
}

.portrait-card {
    position: absolute;
    width: 65%;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.5s var(--ease-out-expo);
}

.portrait-card img {
    width: 100%;
    display: block;
}

.portrait-card--a {
    top: 0;
    left: 5%;
    transform: rotate(-6deg) translateZ(0);
    z-index: 1;
}

.portrait-card--b {
    top: 40px;
    right: 0;
    transform: rotate(6deg) translateZ(20px);
    z-index: 2;
}

.portrait-card--c {
    bottom: 20px;
    left: 20%;
    transform: rotate(-2deg) translateZ(40px);
    z-index: 3;
}

.portrait-card:hover {
    transform: scale(1.05) rotate(0deg) z-index(10);
    z-index: 10;
    border-color: var(--primary);
}

/* Gallery */
.gallery {
    padding: 80px 0;
}

.gallery h2 {
    font-size: 2rem;
    margin-bottom: 10px;
}

.section-sub {
    color: var(--text-muted);
    margin-bottom: 30px;
}

.gallery__slider {
    display: flex;
    gap: 20px;
    overflow-x: auto;
    padding-bottom: 20px;
    scroll-snap-type: x mandatory;
}

.gallery__slider::-webkit-scrollbar {
    height: 6px;
}

.gallery__slider::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.2);
    border-radius: 3px;
}

.gallery-card {
    flex: 0 0 300px;
    position: relative;
    border-radius: 16px;
    overflow: hidden;
    scroll-snap-align: center;
    cursor: pointer;
}

.gallery-card img {
    width: 100%;
    aspect-ratio: 3/4;
    object-fit: cover;
    transition: transform 0.6s var(--ease-out-expo);
}

.gallery-card:hover img {
    transform: scale(1.1);
}

.gallery-caption {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 20px;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.9), transparent);
    transform: translateY(100%);
    transition: transform 0.3s ease;
}

.gallery-card:hover .gallery-caption {
    transform: translateY(0);
}

/* Features */
.features {
    padding: 60px 0;
}

.features__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.feature {
    padding: 30px;
    border-radius: 24px;
    text-align: center;
    transition: transform 0.3s ease;
}

.feature:hover {
    transform: translateY(-10px);
    border-color: var(--primary);
}

.feature__icon {
    font-size: 2.5rem;
    margin-bottom: 16px;
}

.feature h3 {
    margin-bottom: 12px;
    color: white;
}

.feature p {
    color: var(--text-muted);
    font-size: 0.95rem;
}

/* CTA Section */
.cta {
    padding: 80px 0;
    text-align: center;
}

.cta__card {
    background: linear-gradient(180deg, rgba(255, 46, 99, 0.1), rgba(10, 6, 16, 0));
    border: 1px solid var(--primary-glow);
    padding: 60px 20px;
    border-radius: 30px;
    position: relative;
    overflow: hidden;
}

.cta__card::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255, 46, 99, 0.2), transparent 70%);
    animation: rotate 10s linear infinite;
    pointer-events: none;
}

@keyframes rotate {
    100% {
        transform: rotate(360deg);
    }
}

.cta__card h2 {
    font-size: 2.5rem;
    margin-bottom: 16px;
    position: relative;
}

.cta__card p {
    color: var(--text-muted);
    margin-bottom: 32px;
    position: relative;
}

.cta__card .btn {
    position: relative;
    z-index: 1;
}

/* Footer */
.site-footer {
    padding: 60px 0;
    border-top: 1px solid var(--glass-border);
    color: var(--text-muted);
    font-size: 0.9rem;
}

.footer__grid {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 40px;
}

.footer__links a {
    color: var(--text-muted);
    margin-left: 20px;
    transition: color 0.2s;
}

.footer__links a:hover {
    color: white;
}

/* Scroll Animations */
.reveal-on-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s var(--ease-out-expo);
}

.reveal-on-scroll.is-visible {
    opacity: 1;
    transform: translateY(0);
}

/* Responsive */
@media (max-width: 768px) {
    .hero__grid {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .hero__badges {
        justify-content: center;
    }

    .portrait-stack {
        height: 350px;
        width: 80%;
        margin: 0 auto;
    }

    .features__grid {
        grid-template-columns: 1fr;
    }

    .gallery-card {
        flex: 0 0 80vw;
    }
}