/* NIU Plant - Apple-Style Premium Design System */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&display=swap');

:root {
    /* Brand Colors - Refined for Deep Premium Feel */
    --niu-green: #307b3c;
    --niu-dark: #163829;
    --niu-dark-rgb: 22, 56, 41;
    --niu-accent: #4caf50;

    /* Apple-Style Neutrals */
    --bg-body: #f5f5f7;
    /* Classic Apple light grey background */
    --bg-surface: #ffffff;
    --text-main: #1d1d1f;
    /* Apple's nearly black */
    --text-muted: #86868b;
    /* Apple's muted grey */
    --border-light: rgba(0, 0, 0, 0.05);
    /* Extremely subtle border */

    /* Glassmorphism 2.0 - "Frozen Glass" */
    --glass-bg: rgba(255, 255, 255, 0.65);
    --glass-border: rgba(255, 255, 255, 0.4);
    --glass-blur: 20px;
    --glass-saturate: 180%;

    /* Shadows - Soft & Ambient */
    --shadow-sm: 0 4px 6px -1px rgba(0, 0, 0, 0.02);
    --shadow-md: 0 12px 24px -6px rgba(0, 0, 0, 0.04);
    --shadow-lg: 0 24px 48px -12px rgba(0, 0, 0, 0.08);
    /* Lift shadow */
    --shadow-inner: inset 0 0 0 1px rgba(255, 255, 255, 0.5);

    /* Spacing & Layout */
    --container-width: 1080px;
    /* Tighter container for readability */
    --header-height: 60px;
    /* Apple headers are often smaller/sleeker */
    --radius-sm: 12px;
    --radius-md: 20px;
    --radius-lg: 32px;
    /* For Bento cards */

    /* Transitions */
    --ease-apple: cubic-bezier(0.25, 1, 0.5, 1);
    /* Snappy but smooth */
    /* Snappy but smooth */
}

/* Ambient Background - Animated Blobs */
body::before {
    content: '';
    position: fixed;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background:
        radial-gradient(circle at 50% 50%, rgba(48, 123, 60, 0.08) 0%, transparent 50%),
        radial-gradient(circle at 0% 0%, rgba(22, 56, 41, 0.05) 0%, transparent 40%),
        radial-gradient(circle at 100% 100%, rgba(76, 175, 80, 0.05) 0%, transparent 40%);
    z-index: -1;
    animation: drift 20s infinite alternate linear;
    pointer-events: none;
}

/* Premium Grain Overlay */
body::after {
    content: "";
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0.03;
    z-index: 9999;
    pointer-events: none;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.65' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)'/%3E%3C/svg%3E");
}

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

    100% {
        transform: translate(-2%, -5%) rotate(5deg);
    }
}

/* Text Reveal Animation Classes */
.reveal-text {
    position: relative;
    overflow: hidden;
    display: block;
}

.reveal-text span {
    display: inline-block;
    transform: translateY(100%);
    opacity: 0;
    transition: transform 1s var(--ease-apple), opacity 1s var(--ease-apple);
}

.reveal-text.is-visible span {
    transform: translateY(0);
    opacity: 1;
}

/* Global Tooltip */
.custom-tooltip {
    position: fixed;
    pointer-events: none;
    background: rgba(22, 56, 41, 0.9);
    color: white;
    padding: 8px 16px;
    border-radius: 8px;
    font-size: 0.8rem;
    font-weight: 500;
    z-index: 9999;
    opacity: 0;
    transform: translate(-50%, 10px);
    transition: opacity 0.2s, transform 0.2s;
    backdrop-filter: blur(4px);
    white-space: nowrap;
}

.custom-tooltip.active {
    opacity: 1;
    transform: translate(-50%, -10px);
}

/* Lenis Recommended CSS */
html.lenis {
    width: auto;
    min-height: 100%;
}

.lenis-smooth iframe {
    pointer-events: none;
}

/* Reset & Base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: 'SF Pro Display', 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    background-color: var(--bg-body);
    color: var(--text-main);
    line-height: 1.4;
    /* Tighter line height for headlines, standard for body */
    overflow-x: hidden;
    font-size: 17px;
    /* Apple standard body size */
    letter-spacing: -0.01em;
}

h1,
h2,
h3,
h4,
.role {
    font-family: 'SF Pro Display', 'Inter', -apple-system, sans-serif;
    color: var(--text-main);
    font-weight: 600;
    letter-spacing: -0.025em;
    /* Tighter tracking for display text */
}

h2 {
    font-size: 3rem;
    /* Very large section headers */
    line-height: 1.05;
    margin-bottom: 2rem;
}

h3 {
    font-size: 1.75rem;
    margin-bottom: 0.75rem;
}

p {
    line-height: 1.5;
    color: var(--text-muted);
    font-weight: 400;
    letter-spacing: -0.01em;
}

a {
    text-decoration: none;
    color: inherit;
    transition: color 0.2s var(--ease-apple), transform 0.2s var(--ease-apple);
}

/* Utilities */
.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 24px;
}

.container.header-wide {
    max-width: 1400px;
    /* Wider for Navbar */
}

.section {
    padding: 160px 0;
    /* Huge whitespace */
    position: relative;
    overflow: hidden;
}

/* Premium Background Utilities */
.bg-texture-light {
    background-color: #fcfcfc;
    /* Clean premium off-white */
    /* Texture provided by global body::after overlay */
}

.bg-luxury-dark {
    background: url('../images/bg_hero_luxury.png') no-repeat center center;
    background-size: cover;
    color: white;
}

.bg-luxury-dark h2,
.bg-luxury-dark p {
    color: white;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.bg-palm-overlay {
    position: relative;
    background: url('../images/bg_palm_art.png') no-repeat center center;
    background-size: cover;
    color: white;
}

.bg-palm-overlay::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(22, 56, 41, 0.85);
    backdrop-filter: blur(5px);
    z-index: 1;
}

.bg-palm-overlay>* {
    position: relative;
    z-index: 2;
}

.grid {
    display: grid;
    gap: 24px;
    /* Uniform gap for Bento */
}

.flex {
    display: flex;
    gap: 16px;
}

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

.text-green {
    color: var(--niu-green);
}

.bg-surface {
    background-color: var(--bg-body);
    /* Keep consistent bg */
}

/* Navbar - Floating Glass Pill */
/* Navbar - Floating Glass Pill */
header {
    position: fixed;
    top: 24px;
    left: 50%;
    transform: translateX(-50%);
    width: auto;
    /* Removed min-width to avoid empty space gap */
    background: rgba(255, 255, 255, 0.75);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 99px;
    /* Pill shape */
    z-index: 1000;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
    transition: all 0.3s var(--ease-apple);
}

header .container {
    height: 64px;
    padding: 0 60px;
    /* Increased padding creates visual width */
    display: flex;
    justify-content: center;
    /* Groups items closer */
    gap: 80px;
    /* Specific, intentional gap between logo and links */
    align-items: center;
}

.logo {
    font-weight: 700;
    font-size: 1.25rem;
    /* Fallback text size */
    color: var(--text-main);
    letter-spacing: -0.02em;
    display: flex;
    align-items: center;
}

header .logo img {
    height: 64px !important;
    /* Increased from 48px to ~64px to fill space */
    width: auto;
    max-width: none;
    /* Ensure no constraints */
    object-fit: contain;
    transition: transform 0.3s var(--ease-apple);
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.05));
    /* Subtle lift */
}

header .logo:hover img {
    transform: scale(1.05);
}

nav ul {
    position: relative;
    /* Anchor for backdrop */
    display: flex;
    /* Ensure flex layout */
    gap: 32px !important;
    list-style: none;
    margin: 0;
    padding: 0;
}

nav ul li a {
    position: relative;
    /* Above backdrop */
    z-index: 5;
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text-main);
    opacity: 0.8;
    padding: 10px 20px;
    border-radius: 30px;
    transition: color 0.3s;
}

nav ul li a:hover,
nav ul li a.active {
    color: white;
    opacity: 1;
    /* Background handled by .nav-backdrop */
}

.nav-backdrop {
    position: absolute;
    top: 0;
    left: 0;
    background: #307b3c;
    border-radius: 30px;
    z-index: 1;
    /* Behind text */
    opacity: 0;
    box-shadow: 0 4px 12px rgba(48, 123, 60, 0.3);
    pointer-events: none;
}

/* Hero Section - Cinematic Video Simulation */
.hero-section {
    padding-top: 0;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    position: relative;
    overflow: hidden;
}

/* The Living Background Container */
.hero-bg-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    overflow: hidden;
}

/* The Image itself - Ken Burns Effect */
.hero-bg-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    animation: kenBurns 30s infinite alternate ease-in-out;
    transform-origin: center center;
}

@keyframes kenBurns {
    0% {
        transform: scale(1.0) translate(0, 0);
    }

    50% {
        transform: scale(1.1) translate(-1%, 1%);
    }

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

/* Cinematic Vignette Overlay */
.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0.6) 0%, rgba(0, 0, 0, 0.4) 100%);
    z-index: 2;
}

/* Dust Motes Overlay */
.dust-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.65' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)'/%3E%3C/svg%3E");
    opacity: 0.15;
    mix-blend-mode: overlay;
    z-index: 3;
    pointer-events: none;
}

.hero-content {
    max-width: 960px;
    margin: 0 auto;
    position: relative;
    z-index: 10;
    /* Above all visuals */
    padding-top: 150px;
    /* Increased to clear the wider navbar */
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 800;
    letter-spacing: -0.02em;
    line-height: 1.1;
    margin-bottom: 32px;
    color: white;
    /* White text for contrast against video */
    text-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
    /* Deep shadow for readability */
}

.hero-title a {
    color: #81c784;
    /* Lighter green for dark background */
    -webkit-text-fill-color: #81c784;
    text-decoration-color: rgba(129, 199, 132, 0.5);
    transition: all 0.3s;
}

.hero-title a:hover {
    color: #a5d6a7;
    text-shadow: 0 0 20px rgba(129, 199, 132, 0.6);
}

.hero-subtitle {
    font-size: 1.25rem;
    /* Reduced from 1.6rem */
    color: rgba(255, 255, 255, 0.9);
    font-weight: 500;
    max-width: 760px;
    margin: 0 auto 48px auto;
    letter-spacing: -0.01em;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.4);
    text-align: justify;
    /* Justify text */
    text-align-last: center;
    /* Center the last line for balance */
}

.btn-primary {
    display: inline-block;
    background: rgba(255, 255, 255, 0.1);
    /* Glass base */
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.6);
    color: white;
    padding: 18px 48px;
    border-radius: 99px;
    font-weight: 600;
    font-size: 1.1rem;
    transition: all 0.4s var(--ease-apple);
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.1);
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
    position: relative;
    overflow: hidden;
    z-index: 10;
}

.btn-primary:hover {
    background: white;
    color: var(--niu-dark);
    transform: translateY(-4px) scale(1.05);
    box-shadow: 0 0 30px rgba(255, 255, 255, 0.4);
    border-color: white;
}

/* Cards & Bento Grid System - Glassmorphism Remaster */
.bento-card {
    background: rgba(255, 255, 255, 0.6);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-radius: var(--radius-lg);
    padding: 40px;
    position: relative;
    overflow: hidden;
    transition: transform 0.4s var(--ease-apple), box-shadow 0.4s var(--ease-apple);
    border: 1px solid rgba(255, 255, 255, 0.4);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.04);
}

.bento-card:hover {
    transform: scale(1.01) translateY(-4px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.08);
    background: rgba(255, 255, 255, 0.8);
    z-index: 10;
}

/* Image Placeholders */
.image-placeholder {
    width: 100%;
    background-color: rgba(0, 0, 0, 0.03);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
    font-weight: 500;
    font-size: 0.9rem;
    overflow: hidden;
    position: relative;
    transition: transform 0.5s var(--ease-apple);
}

.hero-image {
    height: 60vh;
    width: 100%;
    max-width: 1200px;
    margin: 40px auto 0;
    border-radius: 32px;
    overflow: hidden;
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.5);
}

.hero-image:hover {
    transform: scale(1.01);
}

/* Certifications Bar */
/* Certifications Bar - Enhanced */
.certifications-bar {
    display: flex;
    justify-content: center;
    gap: 32px;
    margin-top: 48px;
    opacity: 1;
}

.cert-item {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: fadeInUp 0.8s var(--ease-apple) backwards;
}

.cert-item:nth-child(1) {
    animation-delay: 0.1s;
}

.cert-item:nth-child(2) {
    animation-delay: 0.2s;
}

.cert-item:nth-child(3) {
    animation-delay: 0.3s;
}

.cert-item:nth-child(4) {
    animation-delay: 0.4s;
}

.cert-logo {
    width: 64px;
    height: 64px;
    object-fit: contain;
    filter: grayscale(100%) opacity(0.7);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    /* Bouncy enter */
    cursor: pointer;
}

.cert-item:hover .cert-logo {
    filter: grayscale(0%) opacity(1);
    transform: scale(1.15) translateY(-5px);
    filter: drop-shadow(0 10px 15px rgba(48, 123, 60, 0.3));
}

/* Tooltip Styles */
.cert-item::before {
    content: attr(data-tooltip);
    position: absolute;
    bottom: -40px;
    left: 50%;
    transform: translateX(-50%) translateY(10px);
    background: rgba(22, 56, 41, 0.95);
    color: white;
    padding: 6px 14px;
    border-radius: 8px;
    font-size: 0.75rem;
    font-weight: 600;
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s var(--ease-apple);
    pointer-events: none;
    backdrop-filter: blur(4px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    z-index: 100;
}

.cert-item::after {
    content: '';
    position: absolute;
    bottom: -14px;
    left: 50%;
    transform: translateX(-50%) translateY(10px);
    border-width: 6px;
    border-style: solid;
    border-color: transparent transparent rgba(22, 56, 41, 0.95) transparent;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s var(--ease-apple);
    z-index: 100;
}

.cert-item:hover::before,
.cert-item:hover::after {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
}

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

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

/* Products - Swiper & Grid */
.product-swiper {
    padding-bottom: 60px;
}

.product-item {
    background: rgba(255, 255, 255, 0.6);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-radius: var(--radius-lg);
    padding: 32px;
    height: 100%;
    border: 1px solid rgba(255, 255, 255, 0.4);
    transition: transform 0.3s var(--ease-apple);
}

.product-item:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.08);
    background: rgba(255, 255, 255, 0.8);
}

/* Team Section - Ultra Premium Profile Cards */
.leadership-grid {
    grid-template-columns: repeat(auto-fit, minmax(360px, 1fr));
    gap: 40px;
    padding: 20px;
}

.profile-card {
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.9) 0%, rgba(255, 255, 255, 0.6) 100%);
    backdrop-filter: blur(30px);
    -webkit-backdrop-filter: blur(30px);
    padding: 60px 40px;
    border-radius: 40px;
    text-align: center;
    box-shadow:
        0 10px 30px rgba(0, 0, 0, 0.02),
        inset 0 0 0 1px rgba(255, 255, 255, 0.8);
    transition: all 0.5s cubic-bezier(0.23, 1, 0.32, 1);
    position: relative;
    overflow: hidden;
    /* Subtle border gradient via box-shadow hack or border-image if needed, 
       but inset shadow is cleaner for apple style */
}

/* Shimmer Effect */
.profile-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 50%;
    height: 100%;
    background: linear-gradient(to right,
            transparent,
            rgba(255, 255, 255, 0.8),
            transparent);
    transform: skewX(-25deg);
    transition: 0.5s;
    pointer-events: none;
    z-index: 10;
}

.profile-card:hover::before {
    left: 150%;
    transition: 0.7s ease-in-out;
}

.profile-card:hover {
    transform: translateY(-12px) scale(1.01);
    box-shadow:
        0 30px 60px rgba(30, 80, 45, 0.15),
        /* Green tinted deep shadow */
        inset 0 0 0 1px rgba(255, 255, 255, 0.9);
}

.profile-card .image-placeholder {
    width: 160px !important;
    height: 160px !important;
    margin: 0 auto 40px !important;
    border-radius: 50%;
    border: 4px solid rgba(255, 255, 255, 0.9);
    box-shadow:
        0 8px 20px rgba(0, 0, 0, 0.05),
        0 0 0 8px rgba(255, 255, 255, 0.3);
    /* Outer ring */
    transition: all 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.profile-card:hover .image-placeholder {
    transform: scale(1.08) rotate(-2deg);
    box-shadow:
        0 16px 32px rgba(48, 123, 60, 0.2),
        0 0 0 12px rgba(48, 123, 60, 0.05);
    /* Green ring expands */
    border-color: #fff;
}

.profile-card h3 {
    font-size: 2rem;
    margin-bottom: 12px;
    background: linear-gradient(135deg, #1d1d1f 0%, #307b3c 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: -0.03em;
}

.profile-card .role {
    display: inline-block;
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--niu-green);
    margin-bottom: 32px;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    background: rgba(48, 123, 60, 0.08);
    /* Minimal pill bg */
    padding: 8px 16px;
    border-radius: 20px;
}

/* Staggered Socials */
.profile-socials {
    display: flex;
    justify-content: center;
    gap: 16px;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.profile-card:hover .profile-socials {
    opacity: 1;
    transform: translateY(0);
    transition-delay: 0.1s;
}

.profile-socials .social-btn {
    opacity: 0;
    transform: translateY(10px);
    transition: all 0.4s ease;
}

.profile-card:hover .profile-socials .social-btn {
    opacity: 1;
    transform: translateY(0);
}

.profile-card:hover .profile-socials .social-btn:nth-child(1) {
    transition-delay: 0.15s;
}

.profile-card:hover .profile-socials .social-btn:nth-child(2) {
    transition-delay: 0.25s;
}

/* About Page - Story Grid (Image Bento) */
/* About Page - Ultra Premium Story Grid */
.story-grid {
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    grid-auto-rows: minmax(480px, auto);
    /* Taller default cards */
    gap: 32px;
    margin-top: 80px;
}

.story-card-image {
    position: relative;
    border-radius: 40px;
    /* More rounded */
    overflow: hidden;
    padding: 60px;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    background-color: #1a1a1a;
    /* Darker placeholder */
    transition: all 0.6s cubic-bezier(0.16, 1, 0.3, 1);
    /* Elegant easing */
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1), inset 0 0 0 1px rgba(255, 255, 255, 0.1);
    /* Subtle light border */
}

.story-card-image:hover {
    transform: translateY(-8px) scale(1.005);
    box-shadow: 0 40px 80px rgba(0, 0, 0, 0.25), inset 0 0 0 1px rgba(255, 255, 255, 0.2);
    z-index: 2;
}

/* Specific Grid Placements */
.story-card-image:nth-child(1) {
    grid-column: span 12;
    min-height: 600px;
    /* Panoramic */
}

.story-card-image:nth-child(2) {
    grid-column: span 6;
}

.story-card-image:nth-child(3) {
    grid-column: span 6;
}

@media (max-width: 900px) {

    .story-card-image:nth-child(1),
    .story-card-image:nth-child(2),
    .story-card-image:nth-child(3) {
        grid-column: span 12;
        min-height: 480px;
    }
}

/* Background Images & Parallax */
.story-bg {
    position: absolute;
    top: -5%;
    left: -5%;
    width: 110%;
    height: 110%;
    background-size: cover;
    background-position: center;
    transition: transform 1.2s cubic-bezier(0.16, 1, 0.3, 1);
    z-index: 1;
    filter: brightness(0.85) saturate(1.1);
    /* Richer color */
}

.story-card-image:hover .story-bg {
    transform: scale(1.08);
    /* Slow zoom */
    filter: brightness(1.0);
}

.story-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.85) 0%, rgba(0, 0, 0, 0.4) 40%, rgba(0, 0, 0, 0) 100%);
    z-index: 2;
    transition: opacity 0.6s;
}

/* Glass Box Content for perfect legibility */
/* Glass Box Content for perfect legibility */
/* Glass Box Content - Ultra Clean Crystal Glass */
.story-content {
    position: relative;
    z-index: 3;
    display: inline-block;
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.12) 0%, rgba(255, 255, 255, 0.02) 100%);
    /* White Sheen, No Tint */
    backdrop-filter: blur(16px);
    /* Slightly less messy blur */
    -webkit-backdrop-filter: blur(16px);
    padding: 40px;
    border-radius: 32px;
    border: 1px solid rgba(255, 255, 255, 0.25);
    /* Crisper, polished edge */
    border-top: 1px solid rgba(255, 255, 255, 0.4);
    /* Highlight on top edge */
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    transform: translateY(20px);
    transition: all 0.6s cubic-bezier(0.16, 1, 0.3, 1);
    max-width: 900px;
}

.story-card-image:hover .story-content {
    transform: translateY(0);
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.18) 0%, rgba(255, 255, 255, 0.05) 100%);
    border-color: rgba(255, 255, 255, 0.35);
    box-shadow: 0 16px 48px rgba(0, 0, 0, 0.15);
}

.story-content h3 {
    font-size: 2.25rem;
    /* Balanced for box */
    letter-spacing: -0.02em;
    font-weight: 700;
    margin-bottom: 16px;
    color: white;
    text-shadow: none;
    /* Glass provides contrast */
}

.story-content p {
    color: rgba(255, 255, 255, 0.9);
    font-size: 1.15rem;
    line-height: 1.6;
    font-weight: 400;
    text-shadow: none;
    margin: 0;
}

/* Chart Canvas */
.chart-container {
    background: white;
    padding: 24px;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
}

/* Footer - Simple & Clean */
footer {
    background: white;
    padding: 80px 0;
    border-top: 1px solid var(--border-light);
}

footer p {
    font-size: 0.8rem;
    opacity: 0.6;
}

/* Responsive */
@media (max-width: 768px) {
    :root {
        --container-width: 100%;
        --header-height: 50px;
    }

    /* Reset Header for Mobile */
    header {
        top: 0;
        left: 0;
        transform: none;
        width: 100%;
        min-width: 100%;
        border-radius: 0;
        border-bottom: 1px solid rgba(0, 0, 0, 0.05);
        background: rgba(255, 255, 255, 0.9);
    }

    .hero-section {
        padding-top: 160px;
        min-height: auto;
    }

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

    .hero-subtitle {
        font-size: 1.1rem;
    }

    header .container {
        padding: 0 20px;
    }

    nav {
        display: none;
    }

    /* Still hiding nav for simplicity */

    .certifications-bar {
        flex-wrap: wrap;
        gap: 16px;
    }
}

/* Future/Looking Ahead Section - Bright Future Theme */
/* Future/Looking Ahead Section - Bright Future Theme */
.future-section {
    position: relative;
    padding: 160px 0;
    overflow: hidden;
    color: var(--text-main);
    background-color: #fcfcfc;
    /* Clean premium off-white */
}

/* Background image removed per request */

.future-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 120%;
    /* Taller for parallax */
    background: url('../images/future_facility_daylight.png') no-repeat center center;
    background-size: cover;
    z-index: 0;
}

.future-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    /* Soft white fade from bottom */
    background: linear-gradient(to top, rgba(245, 245, 247, 1) 0%, rgba(245, 245, 247, 0.4) 50%, rgba(245, 245, 247, 0) 100%);
    z-index: 1;
}

.future-card {
    position: relative;
    z-index: 2;
    background: rgba(255, 255, 255, 0.7);
    /* Bright frosted glass */
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border: 1px solid rgba(255, 255, 255, 0.6);
    border-radius: 32px;
    padding: 80px 48px;
    max-width: 960px;
    margin: 0 auto;
    text-align: center;
    box-shadow: 0 32px 60px rgba(0, 0, 0, 0.05);
    /* Soft light shadow */
    transition: transform 0.5s var(--ease-apple);
}

.future-card:hover {
    transform: translateY(-5px);
    background: rgba(255, 255, 255, 0.85);
    box-shadow: 0 40px 80px rgba(0, 0, 0, 0.08);
}

.future-title {
    font-size: 3.5rem;
    font-weight: 800;
    margin-bottom: 24px;
    /* Green Gradient Text */
    background: linear-gradient(135deg, #163829 0%, #307b3c 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.05));
    background-clip: text;
}

.future-text {
    font-size: 1.5rem;
    line-height: 1.6;
    color: var(--text-main);
    /* Dark legible text */
    max-width: 760px;
    margin: 0 auto;
    font-weight: 500;
    opacity: 0.9;
}

/* Footer - Premium Descriptive & Glass */
footer {
    position: relative;
    padding: 120px 0 60px;
    background: #ffffff;
    /* Clean solid white */
    border-top: 1px solid rgba(0, 0, 0, 0.05);
    overflow: hidden;
}

.footer-content {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr;
    gap: 60px;
    margin-bottom: 80px;
    position: relative;
    z-index: 2;
}

.footer-brand-col {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.footer-logo {
    height: 120px;
    width: auto;
    object-fit: contain;
}

.footer-desc {
    font-size: 1rem;
    line-height: 1.7;
    color: var(--text-muted);
    max-width: 320px;
}

.footer-heading {
    font-size: 0.9rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--niu-dark);
    margin-bottom: 24px;
    opacity: 0.7;
}

.footer-nav {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.footer-nav a {
    font-size: 1.05rem;
    color: var(--text-muted);
    transition: all 0.3s var(--ease-apple);
    display: inline-flex;
    align-items: center;
    gap: 8px;
    width: fit-content;
}

.footer-nav a:hover {
    color: var(--niu-green);
    transform: translateX(6px);
}

.footer-nav a::before {
    content: '';
    width: 6px;
    height: 6px;
    background: var(--niu-green);
    border-radius: 50%;
    opacity: 0;
    transition: all 0.3s;
    transform: scale(0);
}

.footer-nav a:hover::before {
    opacity: 1;
    transform: scale(1);
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 40px;
    border-top: 1px solid rgba(0, 0, 0, 0.05);
    font-size: 0.9rem;
    color: var(--text-muted);
}

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

.social-btn {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: white;
    border: 1px solid rgba(0, 0, 0, 0.05);
    display: flex;
    align-items: center;
    justify-content: center;
    /* CHANGE: Specific transitions to avoid conflict with GSAP transform */
    transition: background 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275),
        color 0.4s ease,
        box-shadow 0.4s ease,
        border-color 0.4s ease;
    color: var(--niu-dark);
    position: relative;
    overflow: hidden;
    /* ensure GSAP can move it without CSS fighting back */
}

.social-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--niu-green);
    border-radius: 50%;
    transform: scale(0);
    transition: transform 0.4s var(--ease-apple);
    z-index: 0;
}

.social-btn svg {
    position: relative;
    z-index: 1;
    transition: all 0.4s var(--ease-apple);
}

.social-btn:hover {
    /* REMOVED: transform: translateY(-5px) - let GSAP handle movement */
    border-color: transparent;
    box-shadow: 0 10px 20px rgba(46, 125, 50, 0.25);
}

.social-btn:hover::before {
    transform: scale(1);
}

.social-btn:hover svg {
    color: white;
    transform: rotate(10deg) scale(1.15);
    /* Slightly bigger scale for the icon itself */
}

@media (max-width: 768px) {
    .footer-content {
        grid-template-columns: 1fr;
        gap: 40px;
        text-align: center;
    }

    .footer-brand-col {
        align-items: center;
    }

    .footer-nav {
        align-items: center;
    }

    .footer-bottom {
        flex-direction: column-reverse;
        gap: 24px;
    }
}

/* Contact Page Styles */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: start;
    margin-top: 40px;
}

.contact-info .page-title {
    font-size: 3.5rem;
    /* Adjusted for balance */
    line-height: 1.1;
    margin-bottom: 24px;
    background: linear-gradient(135deg, #163829 0%, #307b3c 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.05));
    background-clip: text;
}

.contact-details {
    display: flex;
    flex-direction: column;
    gap: 32px;
    margin-top: 48px;
}

.contact-item .label {
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--text-muted);
    margin-bottom: 8px;
    font-weight: 700;
}

.contact-item .value {
    font-size: 1.25rem;
    color: var(--niu-dark);
    font-weight: 500;
    line-height: 1.5;
}

.contact-item .value.link {
    text-decoration: none;
    transition: color 0.3s;
}

.contact-item .value.link:hover {
    color: var(--niu-green);
}

/* Glass Form */
.glass-form {
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    padding: 48px;
    border-radius: 24px;
    border: 1px solid rgba(255, 255, 255, 0.6);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.05);
}

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

.form-group label {
    display: block;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--niu-dark);
    margin-bottom: 8px;
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 16px;
    border-radius: 12px;
    border: 1px solid rgba(0, 0, 0, 0.1);
    background: rgba(255, 255, 255, 0.8);
    font-family: inherit;
    font-size: 1rem;
    transition: all 0.3s var(--ease-apple);
    color: var(--text-main);
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--niu-green);
    background: white;
    box-shadow: 0 0 0 4px rgba(76, 175, 80, 0.1);
}

.form-group textarea {
    resize: vertical;
}

@media (max-width: 900px) {
    .contact-grid {
        grid-template-columns: 1fr;
        gap: 48px;
    }

    .contact-info .page-title {
        font-size: 2.5rem;
    }

    .glass-form {
        padding: 32px;
    }
}

/* =========================================
   Products Page - Premium Remaster
   ========================================= */

/* Product Hero */
.product-hero {
    position: relative;
    height: 70vh;
    min-height: 600px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    background-color: var(--niu-dark);
    /* Fallback/Main color */
    background: radial-gradient(circle at center, rgba(22, 56, 41, 0.9) 0%, #163829 100%),
        url('../images/bg_palm_art.png') no-repeat center center;
    background-size: cover;
    color: white;
    margin-bottom: 60px;
    border-radius: 0 0 40px 40px;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.2);
}

.product-hero h1 {
    font-size: 3rem;
    font-weight: 800;
    margin-bottom: 24px;
    letter-spacing: -0.02em;
    color: #ffffff;
    /* Gradient removed to fix visibility issue on some rendering engines */
    filter: drop-shadow(0 4px 10px rgba(0, 0, 0, 0.3));
}

#product-hero-title {
    position: relative;
    overflow: hidden;
}

#product-hero-title span {
    display: inline-block;
    opacity: 0;
    /* Clean slate for GSAP */
    transform: translateY(100%);
    transition: none !important;
    /* CRITICAL: Prevent CSS fighting GSAP */
}

.product-hero p {
    font-size: 1.25rem;
    color: rgba(255, 255, 255, 0.9);
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.6;
}

/* Filter Menu - Magnetic Glass Pill */
.filter-menu-container {
    display: flex;
    justify-content: center;
    margin: -90px auto 60px;
    /* Overlap hero */
    position: relative;
    z-index: 10;
}

.filter-menu {
    display: flex;
    gap: 8px;
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    padding: 8px;
    border-radius: 99px;
    border: 1px solid rgba(255, 255, 255, 0.6);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
}

.filter-btn {
    padding: 12px 32px;
    border-radius: 99px;
    border: none;
    background: transparent;
    color: var(--text-muted);
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s var(--ease-apple);
    position: relative;
    font-size: 1rem;
    white-space: nowrap;
}

.filter-btn:hover {
    color: var(--niu-dark);
}

.filter-btn.active {
    background: var(--niu-green);
    color: white;
    box-shadow: 0 4px 12px rgba(48, 123, 60, 0.3);
}

/* Product Grid */
.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
    gap: 40px;
    padding-bottom: 120px;
}

/* Premium Product Card */
.product-card-premium {
    background: white;
    border-radius: 32px;
    overflow: hidden;
    position: relative;
    border: 1px solid rgba(0, 0, 0, 0.04);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.02);
    transition: all 0.5s cubic-bezier(0.19, 1, 0.22, 1);
    height: 100%;
    display: flex;
    flex-direction: column;
}

.product-card-premium:hover {
    transform: translateY(-12px) scale(1.02);
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.08);
    z-index: 2;
}

.card-image-wrapper {
    height: 320px;
    background: #f8f9fa;
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px;
}

.card-image-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    transition: transform 0.6s var(--ease-apple);
    filter: drop-shadow(0 10px 20px rgba(0, 0, 0, 0.1));
}

.product-card-premium:hover .card-image-wrapper img {
    transform: scale(1.1) translateY(-10px);
}

/* Floating Badge */
.product-badge {
    position: absolute;
    top: 20px;
    right: 20px;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--niu-green);
    letter-spacing: 0.05em;
    text-transform: uppercase;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.card-content {
    padding: 32px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    background: white;
    position: relative;
    z-index: 2;
}

.card-content h3 {
    font-size: 1.5rem;
    margin-bottom: 12px;
    color: var(--niu-dark);
}

.card-content p {
    font-size: 1rem;
    color: var(--text-muted);
    margin-bottom: 24px;
    flex-grow: 1;
}

.card-meta {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    margin-top: auto;
    padding-top: 20px;
    border-top: 1px solid rgba(0, 0, 0, 0.05);
}

.meta-pill {
    font-size: 0.75rem;
    color: var(--text-muted);
    background: #f5f5f7;
    padding: 6px 12px;
    border-radius: 8px;
    font-weight: 500;
}

/* "Learn More" Reveal on Hover */
.learn-more-btn {
    opacity: 0;
    transform: translateY(10px);
    color: var(--niu-green);
    font-weight: 600;
    font-size: 0.9rem;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    transition: all 0.3s var(--ease-apple);
    margin-top: 16px;
}

.product-card-premium:hover .learn-more-btn {
    opacity: 1;
    transform: translateY(0);
}

@media (max-width: 768px) {
    .product-hero {
        height: auto;
        padding: 140px 24px 80px;
        min-height: auto;
        border-radius: 0 0 24px 24px;
    }

    .product-hero h1 {
        font-size: 2.5rem;
    }

    .filter-menu-container {
        margin-top: -40px;
        overflow-x: auto;
        padding: 0 24px;
        justify-content: flex-start;
        /* Horizontal scroll on mobile */
        width: 100%;
        scrollbar-width: none;
        /* Hide scrollbar */
    }

    .filter-menu-container::-webkit-scrollbar {
        display: none;
    }

    .filter-menu {
        width: max-content;
    }

    .product-grid {
        gap: 24px;
    }
}