/* ========================================
   PawPawFans Design System
   柔和极简 + 自然暖色调
   ======================================== */

/* === CSS Variables === */
:root {
    /* Brand Colors from Logo */
    --color-primary: #4CAF50;
    /* 绿色 */
    --color-primary-light: #81C784;
    --color-primary-dark: #388E3C;
    --color-secondary: #FF9800;
    /* 橙色 */
    --color-secondary-light: #FFB74D;
    --color-secondary-dark: #F57C00;

    /* Neutral Colors */
    --color-text: #424242;
    --color-text-light: #757575;
    --color-text-muted: #9E9E9E;
    --color-background: #FAFAFA;
    --color-surface: #FFFFFF;
    --color-surface-warm: #FFF8E1;
    /* 温暖的米色背景 */
    --color-border: #E0E0E0;

    /* Gradients */
    --gradient-hero: linear-gradient(135deg, #E8F5E9 0%, #FFF8E1 50%, #FFF3E0 100%);
    --gradient-primary: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-light) 100%);
    --gradient-secondary: linear-gradient(135deg, var(--color-secondary) 0%, var(--color-secondary-light) 100%);

    /* Typography */
    --font-primary: 'Nunito', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --font-chinese: 'Noto Sans SC', 'PingFang SC', 'Microsoft YaHei', sans-serif;

    /* Spacing */
    --spacing-xs: 0.25rem;
    --spacing-sm: 0.5rem;
    --spacing-md: 1rem;
    --spacing-lg: 1.5rem;
    --spacing-xl: 2rem;
    --spacing-2xl: 3rem;
    --spacing-3xl: 4rem;

    /* Border Radius - 圆润温暖 */
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-xl: 24px;
    --radius-full: 9999px;

    /* Shadows - 柔和阴影 */
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.06);
    --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.08);
    --shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.1);
    --shadow-hover: 0 12px 40px rgba(0, 0, 0, 0.12);

    /* Transitions */
    --transition-fast: 0.15s ease;
    --transition-normal: 0.3s ease;
    --transition-slow: 0.5s ease;

    /* Container */
    --container-max: 1200px;
    --container-padding: 1.5rem;
}

/* === Dark Mode Variables === */
html.dark-mode {
    --color-text: #E0E0E0;
    --color-text-light: #BDBDBD;
    --color-text-muted: #9E9E9E;
    --color-background: #121212;
    --color-surface: #1E1E1E;
    --color-surface-warm: #2A2520;
    --color-border: #333333;

    --gradient-hero: linear-gradient(135deg, #1a2e1a 0%, #2a2520 50%, #2a2018 100%);

    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.3);
    --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.4);
    --shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.5);
    --shadow-hover: 0 12px 40px rgba(0, 0, 0, 0.6);
}

html.dark-mode body {
    background-color: var(--color-background);
    color: var(--color-text);
}

/* ========================================
   Theme Transition System
   1.5s synchronized smooth transition for all elements
   ======================================== */

/* Apply transition to ALL elements for synchronized theme change */
*,
*::before,
*::after {
    transition: background-color 1.2s cubic-bezier(0.25, 0.46, 0.45, 0.94),
        color 1.2s cubic-bezier(0.25, 0.46, 0.45, 0.94),
        border-color 1.2s cubic-bezier(0.25, 0.46, 0.45, 0.94),
        box-shadow 1.2s cubic-bezier(0.25, 0.46, 0.45, 0.94),
        fill 1.2s cubic-bezier(0.25, 0.46, 0.45, 0.94),
        stroke 1.2s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

/* Supplementary transition for images and overlays */
img,
.hero,
.hero-image,
.hero-ship,
.leaves-container,
.rainforest-bg,
.frosted-overlay,
.aurora-blob,
.fireflies-container,
.butterflies-container,
.bioluminescent-overlay,
.navbar-inner,
.footer,
.section {
    transition: background-color 1.2s cubic-bezier(0.25, 0.46, 0.45, 0.94),
        background-image 0s,
        background 1.2s cubic-bezier(0.25, 0.46, 0.45, 0.94),
        filter 1.2s cubic-bezier(0.25, 0.46, 0.45, 0.94),
        opacity 1.2s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

html.dark-mode .card,
html.dark-mode .feature-card,
html.dark-mode .contact-form {
    background: var(--color-surface);
    border-color: var(--color-border);
}

html.dark-mode .section-title h2,
html.dark-mode .hero-title,
html.dark-mode h1,
html.dark-mode h2,
html.dark-mode h3 {
    color: var(--color-text);
}

html.dark-mode .footer {
    background: #0a0a0a;
}

html.dark-mode .footer-logo img {
    opacity: 0.7;
}

html.dark-mode .btn-secondary {
    background: var(--color-surface);
    color: var(--color-text);
    border-color: var(--color-border);
}

/* Dark mode image dimming for white background images */
html.dark-mode .brand-logo img,
html.dark-mode .feature-icon img,
html.dark-mode .card img {
    filter: brightness(0.88) contrast(1.05);
    transition: filter 1.2s cubic-bezier(0.4, 0, 0.2, 1);
}

html.dark-mode .product-card-image img,
html.dark-mode .product-card .card-image img {
    filter: none;
}

html.dark-mode .brand-card {
    background: var(--color-surface);
}

html.dark-mode .product-card-compact {
    background: #f2f2f2;
    border-color: rgba(0, 0, 0, 0.08);
}

html.dark-mode .sidebar {
    background: var(--color-surface);
}

/* === Reset & Base === */
*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    overflow-y: scroll;
    /* scroll-behavior: smooth; */
    font-size: 16px;
}

body {
    font-family: var(--font-chinese);
    color: var(--color-text);
    background-color: var(--color-background);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

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

a:hover {
    color: var(--color-primary-dark);
}

/* === Typography === */
h1,
h2,
h3,
h4,
h5,
h6 {
    font-weight: 700;
    line-height: 1.3;
    color: var(--color-text);
}

h1 {
    font-size: 2.5rem;
}

h2 {
    font-size: 2rem;
}

h3 {
    font-size: 1.5rem;
}

h4 {
    font-size: 1.25rem;
}

.text-english {
    font-family: var(--font-primary);
    font-weight: 300;
    letter-spacing: 0.02em;
}

.text-gradient {
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* === Layout === */
.container {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 var(--container-padding);
}

.section {
    padding: var(--spacing-3xl) 0;
}

.section-title {
    text-align: center;
    margin-bottom: var(--spacing-2xl);
}

.section-title h2 {
    margin-bottom: var(--spacing-sm);
}

.section-title .subtitle {
    color: var(--color-text-light);
    font-size: 1.1rem;
}

/* === Navigation - Dynamic Island Style === */
.navbar {
    position: fixed;
    top: 16px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 1000;
    width: auto;
    max-width: calc(100% - 32px);
}

.navbar-inner {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 28px;
    padding: 14px 36px;
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-radius: 50px;
    border: 1px solid rgba(0, 0, 0, 0.08);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    transition: padding 0.3s ease-out, gap 0.3s ease-out, background 0.15s ease, border 0.15s ease;
    transform: translateZ(0);
    -webkit-transform: translateZ(0);
}

.navbar-logo {
    display: flex;
    align-items: center;
}

.navbar-logo img {
    display: block;
    height: 56px;
    width: auto;
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.navbar-menu {
    display: flex;
    align-items: center;
    gap: 24px;
    list-style: none;
    transition: gap 0.4s ease;
    justify-content: center;
}

.navbar-menu a {
    color: var(--color-text);
    font-weight: 500;
    font-size: 0.9rem;
    padding: 8px 0;
    position: relative;
    white-space: nowrap;
    line-height: 1;
    transition: color 0.3s ease;
    display: flex;
    align-items: center;
}

.navbar-menu a:hover {
    color: var(--color-primary);
}

.navbar-menu a.active {
    color: var(--color-primary);
}

.navbar-menu a.nav-disabled,
a.nav-disabled {
    opacity: 0.55;
    cursor: not-allowed;
    pointer-events: none;
}

/* Dark mode navbar */
html.dark-mode .navbar-inner {
    background: rgba(30, 30, 30, 0.9);
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

html.dark-mode .navbar-menu a {
    color: rgba(255, 255, 255, 0.85);
}

html.dark-mode .navbar-menu a:hover {
    color: #fff;
}

html.dark-mode .navbar-controls-toggle {
    border-color: rgba(255, 255, 255, 0.18);
    background: rgba(30, 30, 30, 0.7);
    color: rgba(255, 255, 255, 0.85);
}

/* Navbar Controls (right side) */
.navbar-controls {
    display: flex;
    align-items: center;
    gap: 12px;
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
}

.navbar-controls-panel {
    display: flex;
    align-items: center;
    gap: 12px;
}

.navbar-controls-toggle {
    display: none;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border-radius: 12px;
    border: 1px solid rgba(0, 0, 0, 0.12);
    background: rgba(255, 255, 255, 0.7);
    color: var(--color-text);
    cursor: pointer;
    transition: all var(--transition-fast);
}

/* Dark Mode Toggle */
.theme-toggle {
    position: relative;
    width: 48px;
    height: 26px;
    background: rgba(0, 0, 0, 0.1);
    border-radius: 13px;
    border: none;
    cursor: pointer;
    padding: 2px;
    transition: background 0.3s ease;
}

.theme-toggle::before {
    content: '';
    position: absolute;
    top: 3px;
    left: 3px;
    width: 20px;
    height: 20px;
    background: linear-gradient(135deg, #ffd93d, #ff9500);
    border-radius: 50%;
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1), background 0.3s ease, box-shadow 0.3s ease;
    box-shadow: 0 2px 6px rgba(255, 149, 0, 0.4);
}

/* Dark mode toggle state - use html.dark-mode instead of .dark class */
html.dark-mode .theme-toggle {
    background: rgba(255, 255, 255, 0.15);
}

html.dark-mode .theme-toggle::before {
    transform: translateX(22px);
    background: linear-gradient(135deg, #a0a0ff, #6060ff);
    box-shadow: 0 2px 6px rgba(96, 96, 255, 0.4);
}

/* Language Dropdown */
.lang-dropdown {
    position: relative;
}

.lang-dropdown-btn {
    display: flex;
    align-items: center;
    gap: 6px;
    height: 26px;
    min-width: 48px;
    padding: 0 12px;
    background: rgba(0, 0, 0, 0.08);
    border: none;
    border-radius: 20px;
    color: var(--color-text);
    font-size: 0.85rem;
    font-weight: 500;
    line-height: 1;
    cursor: pointer;
    transition: all 0.3s ease;
}

.lang-dropdown-btn:hover {
    background: rgba(0, 0, 0, 0.12);
}

.lang-dropdown-btn i {
    font-size: 0.7rem;
    transition: transform 0.3s ease;
}

.lang-dropdown.open .lang-dropdown-btn i {
    transform: rotate(180deg);
}

html.dark-mode .lang-dropdown-btn {
    background: rgba(255, 255, 255, 0.15);
    color: rgba(255, 255, 255, 0.85);
}

html.dark-mode .lang-dropdown-btn:hover {
    background: rgba(255, 255, 255, 0.25);
    color: #fff;
}

.lang-dropdown-menu {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    min-width: 120px;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    border-radius: 12px;
    border: 1px solid rgba(0, 0, 0, 0.08);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    overflow: hidden;
}

html.dark-mode .lang-dropdown-menu {
    background: rgba(30, 30, 30, 0.95);
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
}

.lang-dropdown.open .lang-dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.lang-dropdown-item {
    display: block;
    width: 100%;
    padding: 10px 16px;
    background: none;
    border: none;
    color: var(--color-text-light);
    font-size: 0.85rem;
    text-align: left;
    cursor: pointer;
    transition: all 0.2s ease;
}

.lang-dropdown-item:hover {
    background: rgba(0, 0, 0, 0.05);
    color: var(--color-text);
}

html.dark-mode .lang-dropdown-item:hover {
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
}

.lang-dropdown-item.active {
    color: var(--color-primary);
    font-weight: 600;
}

/* Navbar scrolled state - compact pill */
.navbar.scrolled .navbar-inner {
    padding: 10px 24px;
    gap: 20px;
}

.navbar.scrolled .navbar-logo img {
    height: 44px;
}

.navbar.scrolled .navbar-menu {
    gap: 16px;
}

.navbar.scrolled .navbar-menu a {
    font-size: 0.82rem;
}

.navbar.scrolled .navbar-controls {
    gap: 8px;
}

.navbar.scrolled .theme-toggle {
    width: 40px;
    height: 22px;
}

.navbar.scrolled .theme-toggle::before {
    width: 16px;
    height: 16px;
    top: 3px;
    left: 3px;
}

html.dark-mode .navbar.scrolled .theme-toggle::before {
    transform: translateX(18px);
}

/* Dark mode logo brightness fix */
html.dark-mode .navbar-logo img {
    filter: none;
    opacity: 1;
}

.navbar.scrolled .lang-dropdown-btn {
    height: 22px;
    min-width: 40px;
    padding: 0 10px;
    font-size: 0.78rem;
}

/* Mobile Menu Toggle */
.navbar-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: var(--spacing-sm);
}

.navbar-toggle span {
    width: 24px;
    height: 2px;
    background: rgba(255, 255, 255, 0.85);
    transition: all var(--transition-fast);
}

/* === Hero Section with Gradient Wave Animation === */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding-top: 100px;
    position: relative;
    overflow: hidden;
    /* Animated gradient background with slightly deeper colors */
    background: linear-gradient(-45deg,
            #eef2dc 0%,
            #d4ecd6 25%,
            #e5f0d8 50%,
            #d4ecd6 75%,
            #eef2dc 100%);
    background-size: 400% 400%;
    animation: gradientWave 12s ease-in-out infinite;
}

@keyframes gradientWave {
    0% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }

    100% {
        background-position: 0% 50%;
    }
}

/* === Multi-layer Hero Background System === */

/* Aurora blobs container */
.aurora-container {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    overflow: hidden;
    z-index: 1;
}

/* Base aurora blob styles */
.aurora-blob {
    position: absolute;
    border-radius: 50%;
    filter: blur(100px);
    opacity: 0.6;
    mix-blend-mode: soft-light;
    will-change: transform, opacity;
}

/* Blob 1: Large green - top left */
.blob-1 {
    width: 50%;
    height: 50%;
    top: -10%;
    left: -5%;
    background: radial-gradient(circle, rgba(120, 200, 120, 0.7) 0%, rgba(76, 175, 80, 0.3) 50%, transparent 70%);
    animation: blobFloat1 11s ease-in-out infinite;
}

/* Blob 2: Warm amber - bottom right */
.blob-2 {
    width: 45%;
    height: 45%;
    bottom: -5%;
    right: -5%;
    background: radial-gradient(circle, rgba(255, 200, 100, 0.6) 0%, rgba(255, 150, 50, 0.25) 50%, transparent 70%);
    animation: blobFloat2 13s ease-in-out infinite;
}

/* Blob 3: Subtle teal - center */
.blob-3 {
    width: 40%;
    height: 40%;
    top: 30%;
    left: 35%;
    background: radial-gradient(circle, rgba(100, 220, 180, 0.5) 0%, rgba(80, 180, 140, 0.2) 50%, transparent 70%);
    animation: blobFloat3 17s ease-in-out infinite;
}

/* Blob 4: Deep forest - bottom left */
.blob-4 {
    width: 35%;
    height: 40%;
    bottom: 10%;
    left: 5%;
    background: radial-gradient(circle, rgba(60, 140, 80, 0.5) 0%, rgba(40, 100, 60, 0.2) 50%, transparent 70%);
    animation: blobFloat4 19s ease-in-out infinite;
}

/* Prime-timed animations for organic feel */
@keyframes blobFloat1 {

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

    30% {
        transform: translate(8%, 12%) scale(1.15);
    }

    60% {
        transform: translate(-5%, 5%) scale(0.9);
    }
}

@keyframes blobFloat2 {

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

    40% {
        transform: translate(-12%, -8%) scale(1.2);
    }

    70% {
        transform: translate(5%, -5%) scale(0.85);
    }
}

@keyframes blobFloat3 {

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

    35% {
        transform: translate(10%, -10%) scale(1.1);
    }

    65% {
        transform: translate(-8%, 8%) scale(0.95);
    }
}

@keyframes blobFloat4 {

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

    45% {
        transform: translate(-6%, 10%) scale(1.18);
    }

    75% {
        transform: translate(8%, -6%) scale(0.88);
    }
}

/* ========================================
   Rainforest Background System - Simple & Performant
   Uses pre-rendered images with depth of field baked in
   ======================================== */

/* Rainforest background layer - single image with depth of field already rendered */
.rainforest-bg {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: url('../assets/rainforest-bg-day.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    z-index: 1;
    /* Simple gentle sway animation - very light on performance */
    animation: gentleSway 30s ease-in-out infinite;
    will-change: transform;
}

/* For smaller headers, tile the image */
.page-header-rainforest .rainforest-bg {
    background-size: auto 100%;
    background-repeat: repeat-x;
    background-position: center bottom;
}

/* Simple sway animation - minimal transform for performance */
@keyframes gentleSway {

    0%,
    100% {
        transform: translateX(0) scale(1);
    }

    50% {
        transform: translateX(-1%) scale(1.02);
    }
}

/* Frosted glass overlay - sits in front of the rainforest */
.frosted-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.45);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    z-index: 2;
}

/* ========================================
   Dark Mode - Moonlit Rainforest
   ======================================== */

html.dark-mode .rainforest-bg {
    /* Switch to night image */
    background-image: url('../assets/rainforest-bg-night.png');
}

html.dark-mode .frosted-overlay {
    background: rgba(5, 10, 20, 0.4);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
}

/* ========================================
   Legacy Support - Container Classes
   For backwards compatibility with existing HTML
   ======================================== */

/* Map old leaves-container to new rainforest-bg */
.leaves-container {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: url('../assets/rainforest-bg-day.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    z-index: 1;
    animation: gentleSway 30s ease-in-out infinite;
    overflow: hidden;
}

/* Hide the old multi-layer divs */
.leaves-layer {
    display: none;
}

html.dark-mode .leaves-container {
    background-image: url('../assets/rainforest-bg-night.png');
}

/* Page header specific styling */
.page-header-rainforest .leaves-container {
    background-size: auto 120%;
    background-repeat: repeat-x;
    background-position: center bottom;
}

/* ========================================
   Firefly Animation - Dark Mode Only
   Lightweight floating particles with glow
   ======================================== */

.fireflies-container {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 3;
    pointer-events: none;
    overflow: hidden;
    opacity: 0;
    transition: opacity 1.2s cubic-bezier(0.4, 0, 0.2, 1);
}

html.dark-mode .fireflies-container {
    opacity: 1;
}

.firefly {
    position: absolute;
    width: 4px;
    height: 4px;
    background: radial-gradient(circle, rgba(120, 255, 100, 1) 0%, rgba(80, 255, 80, 0.6) 40%, transparent 70%);
    border-radius: 50%;
    box-shadow: 0 0 8px 2px rgba(100, 255, 100, 0.6),
        0 0 16px 4px rgba(100, 255, 100, 0.3);
    animation: fireflyFloat 15s ease-in-out infinite, fireflyGlow 3s ease-in-out infinite;
    will-change: transform, opacity;
}

.firefly:nth-child(1) {
    left: 10%;
    top: 60%;
    animation-delay: 0s, 0s;
    animation-duration: 18s, 2.5s;
}

.firefly:nth-child(2) {
    left: 25%;
    top: 75%;
    width: 3px;
    height: 3px;
    animation-delay: -3s, -1s;
    animation-duration: 22s, 3.5s;
}

.firefly:nth-child(3) {
    left: 55%;
    top: 65%;
    animation-delay: -7s, -0.5s;
    animation-duration: 20s, 2.8s;
}

.firefly:nth-child(4) {
    left: 75%;
    top: 80%;
    width: 5px;
    height: 5px;
    animation-delay: -12s, -2s;
    animation-duration: 25s, 4s;
}

.firefly:nth-child(5) {
    left: 90%;
    top: 55%;
    width: 3px;
    height: 3px;
    animation-delay: -5s, -1.5s;
    animation-duration: 16s, 3s;
}

@keyframes fireflyFloat {
    0% {
        transform: translate(0, 0);
    }

    20% {
        transform: translate(30px, -40px);
    }

    40% {
        transform: translate(-20px, -60px);
    }

    60% {
        transform: translate(40px, -30px);
    }

    80% {
        transform: translate(-30px, -50px);
    }

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

@keyframes fireflyGlow {

    0%,
    100% {
        opacity: 0.3;
        box-shadow: 0 0 4px 1px rgba(100, 255, 100, 0.4);
    }

    50% {
        opacity: 1;
        box-shadow: 0 0 12px 4px rgba(120, 255, 100, 0.8),
            0 0 24px 8px rgba(100, 255, 100, 0.4);
    }
}

/* ========================================
   Butterfly Animation - Light Mode Only
   Lightweight floating butterflies with wing flap
   ======================================== */

.butterflies-container {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 3;
    pointer-events: none;
    overflow: hidden;
    opacity: 1;
    transition: opacity 1.2s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Hide butterflies in dark mode */
html.dark-mode .butterflies-container {
    opacity: 0;
}

.butterfly {
    position: absolute;
    width: 20px;
    height: 20px;
    animation: butterflyFloat 20s ease-in-out infinite;
    will-change: transform, opacity;
}

.butterfly span {
    position: absolute;
    width: 12px;
    height: 8px;
    background: linear-gradient(135deg, #FF9800 0%, #FFB74D 50%, #FFF59D 100%);
    border-radius: 50% 50% 20% 50%;
    animation: wingFlap 0.3s ease-in-out infinite;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.butterfly span:first-child {
    left: 0;
    transform-origin: right center;
}

.butterfly span:last-child {
    right: 0;
    transform-origin: left center;
    animation-delay: 0.05s;
}

/* Different butterfly colors and positions */
.butterfly:nth-child(1) {
    left: 15%;
    top: 30%;
    animation-duration: 25s;
    animation-delay: 0s;
}

.butterfly:nth-child(1) span {
    background: linear-gradient(135deg, #FF9800 0%, #FFB74D 50%, #FFF59D 100%);
}

.butterfly:nth-child(2) {
    left: 70%;
    top: 45%;
    animation-duration: 22s;
    animation-delay: -5s;
    transform: scale(0.8);
}

.butterfly:nth-child(2) span {
    background: linear-gradient(135deg, #4CAF50 0%, #81C784 50%, #C5E1A5 100%);
}

.butterfly:nth-child(3) {
    left: 45%;
    top: 25%;
    animation-duration: 28s;
    animation-delay: -10s;
    transform: scale(0.6);
}

.butterfly:nth-child(3) span {
    background: linear-gradient(135deg, #9C27B0 0%, #CE93D8 50%, #F3E5F5 100%);
}

.butterfly:nth-child(4) {
    left: 85%;
    top: 60%;
    animation-duration: 24s;
    animation-delay: -15s;
    transform: scale(0.7);
}

.butterfly:nth-child(4) span {
    background: linear-gradient(135deg, #2196F3 0%, #64B5F6 50%, #BBDEFB 100%);
}

@keyframes butterflyFloat {
    0% {
        transform: translate(0, 0) rotate(0deg);
    }

    10% {
        transform: translate(50px, -30px) rotate(10deg);
    }

    20% {
        transform: translate(80px, 20px) rotate(-5deg);
    }

    30% {
        transform: translate(40px, 50px) rotate(15deg);
    }

    40% {
        transform: translate(-30px, 30px) rotate(-10deg);
    }

    50% {
        transform: translate(-60px, -20px) rotate(5deg);
    }

    60% {
        transform: translate(-20px, -50px) rotate(-15deg);
    }

    70% {
        transform: translate(30px, -40px) rotate(10deg);
    }

    80% {
        transform: translate(70px, 10px) rotate(-5deg);
    }

    90% {
        transform: translate(20px, 40px) rotate(5deg);
    }

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

@keyframes wingFlap {

    0%,
    100% {
        transform: rotateY(0deg) scaleX(1);
    }

    50% {
        transform: rotateY(70deg) scaleX(0.3);
    }
}

/* About Section Logo Styling */
.about-logo-container {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
}

.about-logo {
    max-width: 350px;
    width: 100%;
    height: auto;
    filter: drop-shadow(0 8px 24px rgba(0, 0, 0, 0.1));
    transition: transform 0.3s ease, filter 0.8s ease;
}

.about-logo:hover {
    transform: scale(1.05);
}

html.dark-mode .about-logo {
    filter: drop-shadow(0 8px 24px rgba(0, 0, 0, 0.3));
}

/* ========================================
   Bioluminescent Breathing Effect
   Subtle pulsing glow overlay for plants
   ======================================== */

.bioluminescent-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 2;
    pointer-events: none;
    opacity: 0;
    transition: opacity 1.2s cubic-bezier(0.4, 0, 0.2, 1);
    background:
        /* Green glow spots */
        radial-gradient(ellipse 100px 80px at 15% 85%, rgba(80, 255, 130, 0.15) 0%, transparent 70%),
        radial-gradient(ellipse 80px 60px at 35% 90%, rgba(100, 255, 100, 0.12) 0%, transparent 70%),
        radial-gradient(ellipse 120px 100px at 60% 88%, rgba(80, 255, 130, 0.14) 0%, transparent 70%),
        radial-gradient(ellipse 90px 70px at 85% 82%, rgba(100, 255, 120, 0.13) 0%, transparent 70%),
        /* Orange/amber glow spots */
        radial-gradient(ellipse 60px 50px at 45% 75%, rgba(255, 160, 80, 0.1) 0%, transparent 70%),
        radial-gradient(ellipse 70px 55px at 70% 78%, rgba(255, 180, 100, 0.08) 0%, transparent 70%),
        /* Cyan accent */
        radial-gradient(ellipse 80px 60px at 25% 70%, rgba(100, 220, 255, 0.06) 0%, transparent 70%);
    animation: biolumBreathing 6s ease-in-out infinite;
}

html.dark-mode .bioluminescent-overlay {
    opacity: 1;
}

@keyframes biolumBreathing {

    0%,
    100% {
        opacity: 0.5;
        transform: scale(1);
    }

    50% {
        opacity: 1;
        transform: scale(1.02);
    }
}

/* Dark mode adjustments */
html.dark-mode .aurora-blob {
    opacity: 0.75;
}

html.dark-mode .blob-1 {
    background: radial-gradient(circle, rgba(100, 220, 140, 0.8) 0%, rgba(60, 180, 100, 0.4) 50%, transparent 70%);
}

html.dark-mode .blob-2 {
    background: radial-gradient(circle, rgba(255, 180, 80, 0.7) 0%, rgba(255, 140, 40, 0.3) 50%, transparent 70%);
}

html.dark-mode .blob-3 {
    background: radial-gradient(circle, rgba(80, 220, 200, 0.6) 0%, rgba(60, 180, 160, 0.25) 50%, transparent 70%);
}

html.dark-mode .blob-4 {
    background: radial-gradient(circle, rgba(40, 160, 100, 0.6) 0%, rgba(30, 120, 70, 0.25) 50%, transparent 70%);
}

html.dark-mode .leaves-background {
    opacity: 0.08;
    filter: invert(1) brightness(0.7);
}

html.dark-mode .frosted-overlay {
    background: rgba(0, 0, 0, 0.2);
}



.hero-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--spacing-3xl);
    align-items: center;
    position: relative;
    z-index: 10;
}

.hero-text {
    z-index: 1;
}

.hero-tagline {
    font-size: 0.9rem;
    color: var(--color-secondary-dark);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: var(--spacing-md);
}

.hero-title {
    font-size: 3.5rem;
    line-height: 1.2;
    margin-bottom: var(--spacing-lg);
}

.hero-title .highlight {
    color: var(--color-primary);
}

.hero-description {
    font-size: 1.2rem;
    color: var(--color-text-light);
    margin-bottom: var(--spacing-xl);
    max-width: 500px;
}

.hero-buttons {
    display: flex;
    gap: var(--spacing-md);
    flex-wrap: wrap;
}

.hero-image {
    position: relative;
    z-index: 1;
    display: flex;
    justify-content: center;
    align-items: center;
}

.hero-image img {
    width: 100%;
    max-width: 500px;
    height: auto;
    object-fit: cover;
    border-radius: var(--radius-lg);
    animation: float 6s ease-in-out infinite;
    filter: drop-shadow(0 20px 40px rgba(0, 0, 0, 0.15));
    transition: filter 1.2s cubic-bezier(0.4, 0, 0.2, 1), opacity 1.2s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Hero Parrot - Day/Night crossfade switching using opacity */
.hero-parrot {
    max-width: 350px;
    position: relative;
}

.hero-parrot img {
    border-radius: 0;
    max-width: 300px;
    transition: opacity 1.2s cubic-bezier(0.25, 0.46, 0.45, 0.94),
        filter 1.2s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

/* Both parrot images stacked, use opacity for crossfade */
.hero-parrot .parrot-day {
    opacity: 1;
    position: relative;
    z-index: 2;
}

.hero-parrot .parrot-night {
    opacity: 0;
    position: absolute;
    top: 0;
    left: 0;
    z-index: 1;
}

/* Hero Ship - Day/Night crossfade with proper sequencing */
/* New image fades in first, old image fades out after */
.hero-ship {
    max-width: 500px;
    position: relative;
}

.hero-ship img {
    border-radius: var(--radius-lg);
    max-width: 100%;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.2);
}

/* Day ship - base state (Visible in Day) */
.hero-ship .ship-day {
    opacity: 1;
    position: relative;
    z-index: 2;
    /* When entering Day mode (becoming visible), fade in immediately */
    transition: opacity 1.2s cubic-bezier(0.25, 0.46, 0.45, 0.94),
        filter 1.2s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

/* Night ship - base state (Hidden in Day) */
.hero-ship .ship-night {
    opacity: 0;
    position: absolute;
    top: 0;
    left: 0;
    z-index: 1;
    /* When entering Day mode (becoming hidden), fade out with delay */
    /* This ensures Day image has appeared before this one disappears */
    transition: opacity 1.2s cubic-bezier(0.25, 0.46, 0.45, 0.94) 0.6s,
        filter 1.2s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

/* Dark mode: crossfade ship images */
html.dark-mode .hero-ship .ship-day {
    opacity: 0;
    /* When entering Dark mode (becoming hidden), we can fade out with delay */
    /* It is covered by ship-night (z-index 3), so delay keeps it solid behind */
    transition: opacity 1.2s cubic-bezier(0.25, 0.46, 0.45, 0.94) 0.6s,
        filter 1.2s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

html.dark-mode .hero-ship .ship-night {
    opacity: 1;
    z-index: 3;
    /* Bring to top in dark mode so we see fade in immediately */
    /* When entering Dark mode (becoming visible), fade in immediately */
    transition: opacity 1.2s cubic-bezier(0.25, 0.46, 0.45, 0.94),
        filter 1.2s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    filter: drop-shadow(0 0 30px rgba(255, 200, 100, 0.3));
}

/* Dark mode hero section */
html.dark-mode .hero {
    background: linear-gradient(-45deg,
            #1a2518 0%,
            #1e2e1a 25%,
            #20281d 50%,
            #1e2e1a 75%,
            #1a2518 100%);
}

html.dark-mode .hero::before {
    background: radial-gradient(circle, rgba(76, 175, 80, 0.12) 0%, transparent 70%);
}

html.dark-mode .hero-tagline {
    color: var(--color-secondary-light);
}

html.dark-mode .hero-image img {
    filter: drop-shadow(0 20px 40px rgba(0, 0, 0, 0.4)) brightness(0.85) saturate(0.9);
}

/* Dark mode: switch parrot images using opacity */
html.dark-mode .hero-parrot .parrot-day {
    opacity: 0;
}

html.dark-mode .hero-parrot .parrot-night {
    opacity: 1;
    position: relative;
    filter: drop-shadow(0 0 20px rgba(100, 255, 100, 0.3));
}

/* Wave Animation for Header Bars */
@keyframes waveShimmer {
    0% {
        transform: translateX(-100%);
    }

    100% {
        transform: translateX(100%);
    }
}

.wave-bg {
    position: relative;
    overflow: hidden;
}

.wave-bg::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg,
            transparent 0%,
            rgba(255, 255, 255, 0.2) 25%,
            rgba(255, 255, 255, 0.35) 50%,
            rgba(255, 255, 255, 0.2) 75%,
            transparent 100%);
    animation: waveShimmer 6s ease-in-out infinite;
    pointer-events: none;
    z-index: 0;
}

.wave-bg>* {
    position: relative;
    z-index: 1;
}

/* ========================================
   Page Header with Rainforest Background
   Subpage header style with leaves effect
   ======================================== */

.page-header-rainforest {
    position: relative;
    overflow: hidden;
    background: linear-gradient(135deg, #e8f5e9 0%, #fff8e1 50%, #fff3e0 100%);
}

/* Page header uses smaller tiled background */
.page-header-rainforest .leaves-container {
    z-index: 1;
    background-size: auto 150%;
    background-repeat: repeat-x;
    background-position: center center;
}

.page-header-rainforest .frosted-overlay {
    z-index: 2;
}

.page-header-rainforest .container {
    position: relative;
    z-index: 3;
}

/* Dark mode for page header rainforest */
html.dark-mode .page-header-rainforest {
    background: linear-gradient(135deg, #0a1610 0%, #121a12 50%, #151a18 100%);
}

/* Header content positioning */
.page-header-rainforest h1,
.page-header-rainforest p {
    position: relative;
    z-index: 4;
}

.active-filters {
    display: flex;
    min-height: 42px;
    flex-wrap: wrap;
    gap: var(--spacing-xs);
    margin-bottom: var(--spacing-lg);
    align-items: center;
}

/* === Buttons === */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--spacing-sm);
    padding: var(--spacing-md) var(--spacing-xl);
    font-size: 1rem;
    font-weight: 600;
    border: none;
    border-radius: var(--radius-full);
    cursor: pointer;
    transition: all var(--transition-normal);
    text-decoration: none;
}

.btn-primary {
    background: var(--gradient-primary);
    color: white;
    box-shadow: 0 4px 16px rgba(76, 175, 80, 0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(76, 175, 80, 0.4);
    color: white;
}

.btn-secondary {
    background: white;
    color: var(--color-text);
    border: 2px solid var(--color-border);
}

.btn-secondary:hover {
    border-color: var(--color-primary);
    color: var(--color-primary);
}

.btn-whatsapp {
    background: #25D366;
    color: white;
}

.btn-whatsapp:hover {
    background: #128C7E;
    color: white;
}

/* === Cards === */
.card {
    background: var(--color-surface);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    overflow: hidden;
    transition: all var(--transition-normal);
}

.card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-hover);
}

.card-image {
    aspect-ratio: 4/3;
    overflow: hidden;
}

.card-image picture {
    display: block;
    width: 100%;
    height: 100%;
}

.product-card .card-image {
    background: #ffffff;
}

html.dark-mode .product-card .card-image {
    background: #f2f2f2;
}

.product-card .card-image img {
    object-fit: contain;
    padding: var(--spacing-sm);
}

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

.card:hover .card-image img {
    transform: scale(1.05);
}

.card-content {
    padding: var(--spacing-lg);
}

.card-title {
    font-size: 1.1rem;
    margin-bottom: var(--spacing-sm);
}

.card-text {
    color: var(--color-text-light);
    font-size: 0.95rem;
}

/* === Brand Section === */
.brands-section {
    background: var(--color-surface);
}

.brands-marquee {
    position: relative;
    overflow: hidden;
    padding: var(--spacing-sm) 0;
}

.brands-track {
    display: flex;
    width: max-content;
    animation: brand-scroll 28s linear infinite;
    will-change: transform;
}

.brands-row {
    display: flex;
    align-items: center;
    gap: var(--spacing-2xl);
    padding-right: var(--spacing-2xl);
}

.brands-marquee:hover .brands-track {
    animation-play-state: paused;
}

.brand-item {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: var(--spacing-md) var(--spacing-xl);
    background: white;
    border-radius: var(--radius-md);
    transition: all var(--transition-normal);
    min-height: 88px;
    min-width: 180px;
}

.brand-item:hover {
    background: var(--color-surface-warm);
    transform: scale(1.05);
    box-shadow: var(--shadow-md);
}

.brand-item img {
    max-height: 50px;
    max-width: 120px;
    width: auto;
    height: auto;
    object-fit: contain;
    filter: none;
    transition: transform var(--transition-normal);
    animation: brand-float 4s ease-in-out infinite;
    will-change: transform;
}

body.is-scrolling .hero,
body.is-scrolling .aurora-blob,
body.is-scrolling .rainforest-bg,
body.is-scrolling .leaves-container,
body.is-scrolling .firefly,
body.is-scrolling .butterfly,
body.is-scrolling .brands-track,
body.is-scrolling .brand-item img {
    animation-play-state: paused !important;
}


body.is-scrolling .aurora-blob {
    mix-blend-mode: normal !important;
}

.brand-item:hover img {
    transform: scale(1.08);
}

@keyframes brand-scroll {
    from {
        transform: translateX(0);
    }
    to {
        transform: translateX(-50%);
    }
}

@keyframes brand-float {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-4px);
    }
}

/* === Products Section === */
.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: var(--spacing-xl);
}

.product-card-link {
    text-decoration: none;
    color: inherit;
    display: block;
}

.product-card-link:hover {
    color: inherit;
}

.product-card .card-content {
    text-align: center;
}

.product-brand {
    font-size: 0.8rem;
    color: var(--color-secondary);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: var(--spacing-xs);
}

/* === Features Section === */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: var(--spacing-xl);
}

.feature-card {
    text-align: center;
    padding: var(--spacing-xl);
}

.feature-icon {
    width: 64px;
    height: 64px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto var(--spacing-lg);
    background: var(--gradient-hero);
    border-radius: var(--radius-lg);
    font-size: 1.5rem;
}

/* === Contact Section === */
.contact-section {
    background: var(--gradient-hero);
}

.contact-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: var(--spacing-xl);
}

.contact-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: var(--spacing-xl);
    background: var(--color-surface);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    transition: all var(--transition-normal);
}

.contact-item:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
}

.contact-icon {
    width: 56px;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--gradient-primary);
    color: white;
    border-radius: var(--radius-md);
    font-size: 1.5rem;
    margin-bottom: var(--spacing-md);
}

.contact-item h4 {
    margin-bottom: var(--spacing-sm);
}

.contact-item p {
    color: var(--color-text-light);
    font-size: 0.9rem;
}

/* === Footer === */
.footer {
    background: var(--color-text);
    color: white;
    padding: var(--spacing-2xl) 0;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: var(--spacing-lg);
}

.footer-logo {
    flex: 1;
    display: flex;
    justify-content: flex-start;
    padding: 6px 12px;
    border-radius: 12px;
    background: transparent;
    box-shadow: none;
}

.footer-logo img {
    height: 90px;
    filter: brightness(0) invert(1);
    opacity: 0.85;
}

.footer-info {
    text-align: center;
    flex: 2;
    text-align: center;
}

.footer-info p {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: var(--spacing-xs);
}

.footer-links {
    display: flex;
    gap: var(--spacing-lg);
    flex: 1;
    justify-content: flex-end;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.7);
    transition: color var(--transition-fast);
}

.footer-links a:hover {
    color: white;
}

/* === Floating Contact Buttons === */
.floating-buttons {
    position: fixed;
    bottom: var(--spacing-xl);
    right: var(--spacing-xl);
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding: 0;
    z-index: 999;
}

.floating-btn {
    width: 52px;
    height: 52px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.35rem;
    color: var(--floating-color, var(--color-text));
    background: rgba(255, 255, 255, 0.86);
    border: 1px solid rgba(0, 0, 0, 0.08);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    box-shadow: 0 10px 26px rgba(0, 0, 0, 0.12);
    transition: all var(--transition-normal);
    cursor: pointer;
}

.floating-btn:hover {
    transform: scale(1.08);
    color: var(--floating-color, var(--color-text));
}

.floating-btn.wechat {
    --floating-color: #07C160;
}

.floating-btn.email {
    --floating-color: #0a84ff;
}

.floating-btn.whatsapp {
    --floating-color: #25D366;
}

.floating-btn.xiaohongshu {
    --floating-color: #FE2C55;
}

html.dark-mode .floating-buttons {
    background: transparent;
}

html.dark-mode .floating-btn {
    color: var(--floating-color, rgba(255, 255, 255, 0.92));
    background: rgba(18, 18, 18, 0.7);
    border-color: rgba(255, 255, 255, 0.12);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.4);
}

/* WeChat QR Modal */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1001;
    opacity: 0;
    visibility: hidden;
    transition: all var(--transition-normal);
}

.modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.modal-content {
    background: var(--color-surface);
    color: var(--color-text);
    padding: var(--spacing-xl);
    border-radius: var(--radius-lg);
    text-align: center;
    max-width: 320px;
    transform: scale(0.9);
    transition: transform var(--transition-normal);
    box-shadow: var(--shadow-hover);
}

.modal-overlay.active .modal-content {
    transform: scale(1);
}

.modal-content h3 {
    margin-bottom: var(--spacing-md);
}

.modal-content img {
    margin: 0 auto var(--spacing-md);
    max-width: 200px;
}

.wechat-qr-frame {
    width: 200px;
    height: 200px;
    margin: 0 auto var(--spacing-md);
    border-radius: 8px;
    background: var(--color-background);
    border: 1px solid var(--color-border);
    position: relative;
    overflow: hidden;
}

.wechat-qr-img {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 170px;
    height: 170px;
    object-fit: contain;
    transform: translate(-50%, -50%);
}

.email-display {
    padding: 12px 16px;
    border-radius: 10px;
    background: var(--color-background);
    border: 1px solid var(--color-border);
    font-weight: 600;
    letter-spacing: 0.02em;
    color: var(--color-text);
    margin: 0 auto var(--spacing-md);
    max-width: 240px;
}

.modal-close {
    background: var(--color-background);
    border: none;
    padding: var(--spacing-sm) var(--spacing-lg);
    border-radius: var(--radius-full);
    cursor: pointer;
    font-size: 0.9rem;
    color: var(--color-text-light);
    transition: all var(--transition-fast);
}

.modal-close:hover {
    background: var(--color-border);
    color: var(--color-text);
}

html.dark-mode .modal-content {
    border: 1px solid rgba(255, 255, 255, 0.08);
}

html.dark-mode .wechat-qr-frame {
    background: rgba(255, 255, 255, 0.06);
    border-color: rgba(255, 255, 255, 0.12);
}

html.dark-mode .email-display {
    background: rgba(255, 255, 255, 0.06);
    border-color: rgba(255, 255, 255, 0.12);
    color: rgba(255, 255, 255, 0.9);
}

html.dark-mode .modal-close {
    background: rgba(255, 255, 255, 0.08);
    color: rgba(255, 255, 255, 0.85);
}

html.dark-mode .modal-close:hover {
    background: rgba(255, 255, 255, 0.16);
    color: #fff;
}

/* === Responsive === */
@media (max-width: 1024px) {
    .hero-content {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .hero-description {
        margin-left: auto;
        margin-right: auto;
    }

    .hero-buttons {
        justify-content: center;
    }

    .hero-image {
        order: -1;
    }

    .brands-track {
        animation-duration: 24s;
    }

    .brands-row {
        gap: var(--spacing-xl);
        padding-right: var(--spacing-xl);
    }

    .brand-item {
        min-width: 160px;
        min-height: 80px;
    }
}

@media (max-width: 768px) {
    :root {
        --container-padding: 1rem;
    }

    h1 {
        font-size: 2rem;
    }

    h2 {
        font-size: 1.5rem;
    }

    .hero-title {
        font-size: 2.5rem;
    }

    .navbar {
        width: calc(100% - 8px);
        max-width: calc(100% - 8px);
    }

    .navbar-menu {
        position: static;
        width: 100%;
        flex-direction: row;
        flex-wrap: nowrap;
        justify-content: center;
        gap: 4px;
        padding: 0;
        background: transparent;
        box-shadow: none;
        transform: none;
        opacity: 1;
        visibility: visible;
        border-radius: 0;
        overflow: hidden;
        flex: 1 1 auto;
        min-width: 0;
    }

    .navbar-inner {
        flex-wrap: nowrap;
        gap: 8px;
        padding: 8px 12px;
        width: 100%;
        justify-content: space-between;
    }

    .navbar-menu a {
        font-size: 0.7rem;
        padding: 4px 2px;
        line-height: 1;
    }

    .navbar-toggle {
        display: none;
    }

    .navbar-logo {
        flex: 0 0 auto;
    }

    .navbar-logo img {
        height: 32px;
    }

    .navbar-controls {
        flex: 0 0 auto;
        gap: 4px;
    }

    .navbar-menu a.nav-hidden {
        display: none;
    }

    .nav-overflow-list {
        display: flex;
        flex-direction: column;
        gap: 8px;
        padding-bottom: 10px;
        margin-bottom: 10px;
        border-bottom: 1px solid rgba(0, 0, 0, 0.1);
    }

    .nav-overflow-list:empty {
        display: none;
        border-bottom: none;
        padding-bottom: 0;
        margin-bottom: 0;
    }

    .nav-overflow-list a {
        display: block;
        font-size: 0.9rem;
        color: inherit;
        text-decoration: none;
        padding: 6px 8px;
        border-radius: 8px;
    }

    .nav-overflow-list a.nav-disabled {
        opacity: 0.6;
        pointer-events: none;
    }

    html.dark-mode .nav-overflow-list {
        border-bottom: 1px solid rgba(255, 255, 255, 0.12);
    }

    .navbar-controls-toggle {
        display: flex;
        width: 30px;
        height: 30px;
    }

    .navbar-controls-panel {
        position: absolute;
        top: calc(100% + 8px);
        right: 0;
        display: none;
        flex-direction: column;
        align-items: stretch;
        gap: 10px;
        padding: 12px;
        background: rgba(255, 255, 255, 0.96);
        border: 1px solid rgba(0, 0, 0, 0.12);
        border-radius: 16px;
        box-shadow: 0 12px 32px rgba(0, 0, 0, 0.18);
        z-index: 1100;
        min-width: 160px;
    }

    html.dark-mode .navbar-controls-panel {
        background: rgba(24, 24, 24, 0.96);
        border-color: rgba(255, 255, 255, 0.14);
    }

    .navbar-controls.open .navbar-controls-panel {
        display: flex;
    }

    .navbar-controls-panel .lang-dropdown,
    .navbar-controls-panel .lang-dropdown-btn {
        width: 100%;
    }

    .navbar-controls-panel .lang-dropdown-btn {
        justify-content: space-between;
    }

    .navbar-controls-panel .theme-toggle {
        align-self: flex-start;
    }

    .navbar-menu::-webkit-scrollbar {
        display: none;
    }

    /* Disable scrolled shrinking on mobile */
    .navbar.scrolled {
        padding: var(--spacing-xs) var(--spacing-md);
    }

    .navbar.scrolled .navbar-inner {
        max-width: none;
        border-radius: var(--radius-lg);
    }

    .navbar.scrolled .lang-switcher {
        display: flex;
    }

    .navbar.scrolled .navbar-logo img {
        height: 32px;
    }

    .navbar.scrolled .navbar-menu a {
        font-size: 0.68rem;
    }

    .brands-track {
        animation-duration: 20s;
    }

    .brands-row {
        gap: var(--spacing-lg);
        padding-right: var(--spacing-lg);
    }

    .brand-item {
        min-width: 140px;
        min-height: 72px;
        padding: var(--spacing-sm) var(--spacing-lg);
    }

    .floating-buttons {
        bottom: var(--spacing-md);
        right: var(--spacing-md);
    }

    .floating-btn {
        width: 48px;
        height: 48px;
        font-size: 1.25rem;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 2rem;
    }

    .hero-buttons {
        flex-direction: column;
        width: 100%;
    }

    .btn {
        width: 100%;
    }

    .footer-logo {
        justify-content: center;
    }

    .footer-links {
        justify-content: center;
    }

    .footer-content {
        flex-direction: column;
        gap: var(--spacing-lg);
        text-align: center;
    }
}

html {
    overflow-y: scroll;
}
