:root {
    --primary: #1a5276;
    --primary-dark: #0e3651;
    --primary-light: #2980b9;
    --secondary: #27ae60;
    --accent: #00bcd4;
    --dark: #1c2833;
    --gray: #566573;
    --light-gray: #ecf0f1;
    --white: #ffffff;
    --bg-light: #f8f9fa;
    --shadow: 0 4px 20px rgba(0,0,0,0.1);
    --shadow-hover: 0 8px 30px rgba(0,0,0,0.15);
    --transition: all 0.3s ease;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

body {
    font-family: 'Segoe UI', 'Helvetica Neue', Arial, sans-serif;
    color: var(--dark);
    line-height: 1.6;
    overflow-x: hidden;
    background: var(--white);
}

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

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

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

.section-title {
    text-align: center;
    margin-bottom: 50px;
}

.section-title h2 {
    font-size: 36px;
    color: var(--primary);
    margin-bottom: 15px;
    font-weight: 700;
}

.section-title p {
    font-size: 16px;
    color: var(--gray);
    max-width: 700px;
    margin: 0 auto;
}

.section-title .line {
    display: block;
    width: 60px;
    height: 3px;
    background: var(--accent);
    margin: 15px auto 0;
    border-radius: 2px;
}

.btn {
    display: inline-block;
    padding: 12px 30px;
    background: var(--primary);
    color: var(--white);
    border-radius: 30px;
    font-size: 15px;
    font-weight: 500;
    border: none;
    cursor: pointer;
    transition: var(--transition);
    text-align: center;
}

.btn:hover {
    background: var(--primary-light);
    color: var(--white);
    transform: translateY(-2px);
    box-shadow: var(--shadow);
}

.btn-outline {
    background: transparent;
    border: 2px solid var(--primary);
    color: var(--primary);
}

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

/* Header */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(255,255,255,0.98);
    box-shadow: 0 2px 20px rgba(0,0,0,0.08);
    transition: var(--transition);
}

.site-header.scrolled {
    box-shadow: 0 2px 30px rgba(0,0,0,0.12);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 15px 20px;
    max-width: 1200px;
    margin: 0 auto;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
}

.logo-icon {
    width: 45px;
    height: 45px;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 700;
    font-size: 20px;
}

.logo-text {
    font-size: 22px;
    font-weight: 700;
    color: var(--primary);
}

.logo-text span { color: var(--accent); }

.main-nav ul {
    display: flex;
    list-style: none;
    gap: 35px;
}

.main-nav a {
    font-size: 15px;
    font-weight: 500;
    color: var(--dark);
    padding: 5px 0;
    position: relative;
}

.main-nav a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--accent);
    transition: var(--transition);
}

.main-nav a:hover,
.main-nav a.active {
    color: var(--primary);
}

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

.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 5px;
}

.nav-toggle span {
    width: 25px;
    height: 3px;
    background: var(--dark);
    border-radius: 3px;
    transition: var(--transition);
}

/* Hero / Video Section */
.hero-section {
    position: relative;
    height: 100vh;
    min-height: 600px;
    overflow: hidden;
    background: var(--dark);
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('https://images.unsplash.com/photo-1576086213369-97a306d36557?w=1920') center/cover no-repeat, linear-gradient(135deg, #1a5276, #0e3651);
    animation: heroZoom 20s ease-in-out infinite alternate;
}

@keyframes heroZoom {
    0% { transform: scale(1); }
    100% { transform: scale(1.1); }
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(26,82,118,0.85), rgba(0,188,212,0.6));
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-content {
    text-align: center;
    color: var(--white);
    z-index: 2;
    padding: 0 20px;
    max-width: 900px;
}

.hero-content h1 {
    font-size: 56px;
    font-weight: 700;
    margin-bottom: 20px;
    animation: fadeInUp 1s ease;
}

.hero-content p {
    font-size: 20px;
    margin-bottom: 30px;
    opacity: 0.95;
    animation: fadeInUp 1s ease 0.2s;
}

.hero-content .hero-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    animation: fadeInUp 1s ease 0.4s;
}

.hero-content .btn {
    padding: 15px 40px;
    font-size: 16px;
}

.hero-content .btn-secondary {
    background: transparent;
    border: 2px solid var(--white);
}

.hero-content .btn-secondary:hover {
    background: var(--white);
    color: var(--primary);
}

/* Scroll Indicator */
.scroll-indicator {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 3;
}

.scroll-indicator span {
    display: block;
    width: 25px;
    height: 25px;
    border-right: 2px solid var(--white);
    border-bottom: 2px solid var(--white);
    transform: rotate(45deg);
    animation: scrollDown 2s infinite;
    opacity: 0.7;
}

@keyframes scrollDown {
    0%, 100% { transform: rotate(45deg) translateY(0); }
    50% { transform: rotate(45deg) translateY(10px); }
}

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

/* Hero fallback image (when no video) */
.hero-fallback {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-fallback::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('https://images.unsplash.com/photo-1532187863486-abf9dbad1b69?w=1920') center/cover;
    opacity: 0.3;
}

/* Page Banner */
.page-banner {
    position: relative;
    padding: 120px 0 80px;
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: var(--white);
    text-align: center;
    overflow: hidden;
}

.page-banner::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: url('https://images.unsplash.com/photo-1559757148-5c350d0d3c56?w=1920') center/cover;
    opacity: 0.2;
}

.page-banner .container { position: relative; z-index: 2; }

.page-banner h1 {
    font-size: 42px;
    font-weight: 700;
    margin-bottom: 10px;
}

.page-banner p {
    font-size: 18px;
    opacity: 0.9;
}

/* Features Section */
.features-section {
    padding: 80px 0;
    background: var(--bg-light);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}

.feature-card {
    background: var(--white);
    padding: 40px 30px;
    border-radius: 15px;
    text-align: center;
    transition: var(--transition);
    box-shadow: var(--shadow);
}

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

.feature-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    font-size: 36px;
}

.feature-card h3 {
    font-size: 20px;
    color: var(--primary);
    margin-bottom: 15px;
}

.feature-card p {
    color: var(--gray);
    font-size: 15px;
}

/* About Preview */
.about-preview {
    padding: 80px 0;
}

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

.about-image {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: var(--shadow);
}

.about-image img {
    width: 100%;
    height: 450px;
    object-fit: cover;
}

.about-content h2 {
    font-size: 36px;
    color: var(--primary);
    margin-bottom: 20px;
    font-weight: 700;
}

.about-content p {
    color: var(--gray);
    font-size: 16px;
    margin-bottom: 20px;
}

.about-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin: 30px 0;
}

.stat-item {
    text-align: center;
    padding: 20px;
    background: var(--bg-light);
    border-radius: 10px;
}

.stat-number {
    font-size: 36px;
    font-weight: 700;
    color: var(--accent);
}

.stat-label {
    font-size: 14px;
    color: var(--gray);
    margin-top: 5px;
}

/* Product Section */
.products-section {
    padding: 80px 0;
    background: var(--bg-light);
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}

.product-card {
    background: var(--white);
    border-radius: 15px;
    overflow: hidden;
    transition: var(--transition);
    box-shadow: var(--shadow);
}

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

.product-image {
    aspect-ratio: 1 / 1;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

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

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

.product-badge {
    position: absolute;
    top: 15px;
    right: 15px;
    background: var(--secondary);
    color: var(--white);
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 500;
}

.product-info {
    padding: 25px;
}

.product-info h3 {
    font-size: 20px;
    color: var(--dark);
    margin-bottom: 10px;
}

.product-info p {
    color: var(--gray);
    font-size: 14px;
    margin-bottom: 15px;
    line-height: 1.5;
}

.product-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 15px;
    border-top: 1px solid var(--light-gray);
}

.product-price {
    font-size: 22px;
    font-weight: 700;
    color: var(--primary);
}

.product-link {
    color: var(--accent);
    font-weight: 500;
    font-size: 14px;
}

.product-link:hover { color: var(--primary); }

/* Product Detail */
.product-detail {
    padding: 60px 0;
}

.detail-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: start;
}

.detail-col {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.detail-image {
    border-radius: 20px;
    overflow: hidden;
    box-shadow: var(--shadow);
    aspect-ratio: 1 / 1;
}

.detail-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.trust-badges {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    padding: 20px;
    background: var(--bg-light);
    border-radius: 15px;
    color: var(--gray);
    font-size: 14px;
}

.trust-badges div {
    display: flex;
    align-items: center;
    gap: 8px;
}

.title-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 15px;
    flex-wrap: wrap;
    gap: 10px;
}
.detail-info h1 {
    font-size: 36px;
    color: var(--primary);
    margin: 0;
}
.product-code {
    font-size: 14px;
    color: #666;
    background: #f0f0f0;
    padding: 4px 12px;
    border-radius: 4px;
    border: 1px solid #ddd;
    font-weight: 500;
    white-space: nowrap;
}

.detail-info .price-wrap {
    margin-bottom: 20px;
    display: flex;
    align-items: baseline;
    gap: 15px;
    flex-wrap: wrap;
}
.detail-info .price {
    font-size: 28px;
    color: var(--accent);
    font-weight: 700;
}
.detail-info .price-usd {
    font-size: 18px;
    color: #888;
    font-weight: 500;
    border: 1px solid #ddd;
    padding: 4px 12px;
    border-radius: 6px;
    background: #f8f9fa;
}
.detail-info .price-aud {
    color: var(--accent);
}

.detail-info .description {
    color: var(--gray);
    margin-bottom: 25px;
    line-height: 1.8;
}

.detail-specs {
    background: var(--bg-light);
    padding: 25px;
    border-radius: 15px;
    margin-bottom: 25px;
}

.detail-specs h3 {
    font-size: 18px;
    color: var(--primary);
    margin-bottom: 15px;
}

.spec-list {
    list-style: none;
}

.spec-list li {
    padding: 10px 0;
    border-bottom: 1px solid var(--light-gray);
    display: flex;
    justify-content: space-between;
    color: var(--gray);
}

.spec-list li:last-child { border-bottom: none; }

.spec-list strong {
    color: var(--dark);
    font-weight: 600;
}

/* Product Content Section */
.product-content-section {
    padding: 60px 0;
    background: var(--bg-light);
}

.content-tabs {
    display: flex;
    gap: 10px;
    margin-bottom: 30px;
    border-bottom: 2px solid var(--light-gray);
}

.tab-btn {
    padding: 15px 30px;
    background: none;
    border: none;
    font-size: 16px;
    font-weight: 500;
    color: var(--gray);
    cursor: pointer;
    border-bottom: 3px solid transparent;
    transition: var(--transition);
}

.tab-btn.active {
    color: var(--primary);
    border-bottom-color: var(--accent);
}

.tab-content {
    display: none;
    background: var(--white);
    padding: 40px;
    border-radius: 15px;
    box-shadow: var(--shadow);
}

.tab-content.active { display: block; }

.tab-content h3 {
    color: var(--primary);
    margin-bottom: 15px;
    font-size: 20px;
}

.tab-content p,
.tab-content li {
    color: var(--gray);
    line-height: 1.8;
}

.tab-content ul {
    padding-left: 20px;
}

/* Tracking Section */
.tracking-section {
    padding: 80px 0;
}

.tracking-box {
    max-width: 700px;
    margin: 0 auto;
    background: var(--white);
    padding: 50px;
    border-radius: 20px;
    box-shadow: var(--shadow);
}

.tracking-form {
    display: flex;
    gap: 15px;
    margin-bottom: 30px;
}

.tracking-input {
    flex: 1;
    padding: 15px 20px;
    border: 2px solid var(--light-gray);
    border-radius: 30px;
    font-size: 15px;
    transition: var(--transition);
    outline: none;
}

.tracking-input:focus {
    border-color: var(--accent);
}

.tracking-btn {
    padding: 15px 40px;
    background: var(--primary);
    color: var(--white);
    border: none;
    border-radius: 30px;
    font-size: 15px;
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition);
}

.tracking-btn:hover {
    background: var(--primary-light);
}

.tracking-result {
    display: none;
}

.tracking-result.show { display: block; }

.tracking-steps {
    list-style: none;
    position: relative;
    padding-left: 40px;
}

.tracking-steps::before {
    content: '';
    position: absolute;
    left: 12px;
    top: 20px;
    bottom: 20px;
    width: 2px;
    background: var(--light-gray);
}

.tracking-steps li {
    position: relative;
    padding-bottom: 30px;
}

.tracking-steps li::before {
    content: '';
    position: absolute;
    left: -34px;
    top: 5px;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: var(--light-gray);
    border: 3px solid var(--white);
    box-shadow: 0 0 0 2px var(--light-gray);
}

.tracking-steps li.active::before {
    background: var(--accent);
    box-shadow: 0 0 0 2px var(--accent);
}

.tracking-steps li.current::before {
    background: var(--secondary);
    box-shadow: 0 0 0 2px var(--secondary);
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% { box-shadow: 0 0 0 2px var(--secondary); }
    50% { box-shadow: 0 0 0 5px rgba(39,174,96,0.3); }
}

.tracking-step-date {
    font-size: 14px;
    color: var(--gray);
}

.tracking-step-desc {
    font-size: 16px;
    color: var(--dark);
    font-weight: 500;
}

/* About Page */
.about-page {
    padding: 80px 0;
}

.about-intro {
    text-align: center;
    margin-bottom: 60px;
}

.about-intro h2 {
    font-size: 36px;
    color: var(--primary);
    margin-bottom: 20px;
}

.about-intro p {
    color: var(--gray);
    max-width: 800px;
    margin: 0 auto;
    font-size: 16px;
    line-height: 1.8;
}

.about-block {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
    margin-bottom: 80px;
}

.about-block.reverse {
    direction: rtl;
}

.about-block.reverse > * {
    direction: ltr;
}

.about-block-image {
    border-radius: 20px;
    overflow: hidden;
    box-shadow: var(--shadow);
}

.about-block-image img {
    width: 100%;
    height: 400px;
    object-fit: cover;
}

.about-block-content h3 {
    font-size: 28px;
    color: var(--primary);
    margin-bottom: 20px;
}

.about-block-content p {
    color: var(--gray);
    line-height: 1.8;
    margin-bottom: 15px;
}

/* Mission / Vision */
.mission-section {
    padding: 80px 0;
    background: var(--bg-light);
}

.mission-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.mission-card {
    background: var(--white);
    padding: 50px 30px;
    border-radius: 20px;
    text-align: center;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.mission-card:hover {
    transform: translateY(-5px);
}

.mission-icon {
    width: 70px;
    height: 70px;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    font-size: 32px;
    color: white;
}

.mission-card h3 {
    font-size: 22px;
    color: var(--primary);
    margin-bottom: 15px;
}

.mission-card p {
    color: var(--gray);
    line-height: 1.7;
}

/* Contact Page */
.contact-section {
    padding: 80px 0;
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
}

.contact-info h2 {
    font-size: 36px;
    color: var(--primary);
    margin-bottom: 20px;
}

.contact-info > p {
    color: var(--gray);
    margin-bottom: 30px;
    line-height: 1.8;
}

.contact-list {
    list-style: none;
}

.contact-list li {
    display: flex;
    gap: 20px;
    padding: 20px 0;
    border-bottom: 1px solid var(--light-gray);
}

.contact-list li:last-child { border-bottom: none; }

.contact-icon {
    width: 50px;
    height: 50px;
    background: var(--bg-light);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    flex-shrink: 0;
}

.contact-details h4 {
    font-size: 16px;
    color: var(--dark);
    margin-bottom: 5px;
}

.contact-details p {
    color: var(--gray);
    font-size: 15px;
}

.whatsapp-float {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 60px;
    height: 60px;
    background: #25D366;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-size: 30px;
    text-decoration: none;
    box-shadow: 0 4px 20px rgba(37,211,102,0.4);
    z-index: 999;
    transition: var(--transition);
    animation: whatsappPulse 2s infinite;
}

.whatsapp-float:hover {
    transform: scale(1.1);
    color: var(--white);
}

@keyframes whatsappPulse {
    0%, 100% { box-shadow: 0 4px 20px rgba(37,211,102,0.4); }
    50% { box-shadow: 0 4px 30px rgba(37,211,102,0.7); }
}

.contact-form-wrapper {
    background: var(--white);
    padding: 40px;
    border-radius: 20px;
    box-shadow: var(--shadow);
}

.contact-form-wrapper h3 {
    font-size: 24px;
    color: var(--primary);
    margin-bottom: 25px;
}

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

.form-group label {
    display: block;
    font-size: 14px;
    color: var(--dark);
    margin-bottom: 8px;
    font-weight: 500;
}

.form-control {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid var(--light-gray);
    border-radius: 10px;
    font-size: 15px;
    transition: var(--transition);
    outline: none;
    font-family: inherit;
}

.form-control:focus {
    border-color: var(--accent);
}

textarea.form-control {
    resize: vertical;
    min-height: 120px;
}

.submit-btn {
    width: 100%;
    padding: 15px;
    background: var(--primary);
    color: var(--white);
    border: none;
    border-radius: 10px;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition);
}

.submit-btn:hover {
    background: var(--primary-light);
}

/* Footer */
.site-footer {
    background: var(--dark);
    color: var(--white);
    padding: 60px 0 20px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 40px;
    margin-bottom: 40px;
}

.footer-brand .logo-text {
    color: var(--white);
    margin-bottom: 15px;
}

.footer-brand p {
    color: rgba(255,255,255,0.7);
    font-size: 14px;
    line-height: 1.8;
    margin-bottom: 20px;
}

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

.footer-social a {
    width: 40px;
    height: 40px;
    background: rgba(255,255,255,0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-size: 18px;
    transition: var(--transition);
}

.footer-social a:hover {
    background: var(--accent);
    transform: translateY(-3px);
}

.footer-column h4 {
    font-size: 16px;
    color: var(--white);
    margin-bottom: 20px;
    font-weight: 600;
}

.footer-column ul {
    list-style: none;
}

.footer-column li {
    margin-bottom: 12px;
}

.footer-column a {
    color: rgba(255,255,255,0.7);
    font-size: 14px;
    transition: var(--transition);
}

.footer-column a:hover {
    color: var(--accent);
    padding-left: 5px;
}

.footer-bottom {
    text-align: center;
    padding-top: 30px;
    border-top: 1px solid rgba(255,255,255,0.1);
    color: rgba(255,255,255,0.5);
    font-size: 14px;
}

/* Back to Top */
.back-to-top {
    position: fixed;
    bottom: 30px;
    left: 30px;
    width: 45px;
    height: 45px;
    background: var(--primary);
    color: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
    z-index: 998;
    font-size: 20px;
    border: none;
}

.back-to-top.show {
    opacity: 1;
    visibility: visible;
}

.back-to-top:hover {
    background: var(--primary-light);
    transform: translateY(-3px);
}

/* Animations */
.fade-in {
    opacity: 1;
    transform: none;
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in.visible {
    opacity: 1;
    transform: none;
}

/* Product Filter */
.product-filter {
    display: flex;
    gap: 15px;
    justify-content: center;
    margin-bottom: 40px;
    flex-wrap: wrap;
}

.filter-btn {
    padding: 10px 25px;
    background: var(--white);
    border: 2px solid var(--light-gray);
    border-radius: 25px;
    color: var(--gray);
    font-size: 14px;
    cursor: pointer;
    transition: var(--transition);
}

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

/* Responsive */
@media (max-width: 992px) {
    .about-grid,
    .detail-grid,
    .contact-grid,
    .about-block {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .about-block.reverse { direction: ltr; }
    
    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }
    
    .mission-grid {
        grid-template-columns: 1fr;
    }
    
    .hero-content h1 { font-size: 40px; }
    .hero-content p { font-size: 16px; }
}

@media (max-width: 768px) {
    .main-nav {
        position: fixed;
        top: 70px;
        right: -100%;
        width: 100%;
        max-width: 300px;
        height: calc(100vh - 70px);
        background: var(--white);
        padding: 30px;
        box-shadow: -5px 0 20px rgba(0,0,0,0.1);
        transition: right 0.3s ease;
    }
    
    .main-nav.open { right: 0; }
    
    .main-nav ul {
        flex-direction: column;
        gap: 20px;
    }
    
    .nav-toggle { display: flex; }
    
    .hero-section { min-height: 500px; }
    .hero-content h1 { font-size: 32px; }
    .hero-content .hero-buttons { flex-direction: column; align-items: center; }
    
    .footer-grid {
        grid-template-columns: 1fr;
    }
    
    .tracking-form {
        flex-direction: column;
    }
    
    .about-stats {
        grid-template-columns: 1fr;
    }
    
    .section-title h2 { font-size: 28px; }
}

@media (max-width: 480px) {
    .container { padding: 0 15px; }
    
    .hero-content h1 { font-size: 26px; }
    .page-banner h1 { font-size: 28px; }
    
    .product-info { padding: 20px; }
    .tracking-box { padding: 30px 20px; }
    
    .hero-content .btn {
        width: 100%;
    }
}

/* Utility Classes */
.text-center { text-align: center; }
.text-left { text-align: left; }
.mt-20 { margin-top: 20px; }
.mt-40 { margin-top: 40px; }
.mb-20 { margin-bottom: 20px; }
.mb-40 { margin-bottom: 40px; }

/* Icon Font - Inline SVG icons via Unicode */
.icon {
    display: inline-block;
    line-height: 1;
}

/* ===== Header actions & Theme Toggle ===== */
.header-actions {
    display: flex;
    align-items: center;
    gap: 12px;
}

.theme-toggle {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    border: none;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #000;
    color: #fff;
    transition: background 0.3s ease, color 0.3s ease, transform 0.3s ease;
    flex-shrink: 0;
}

.theme-toggle:hover {
    transform: scale(1.08);
}

.theme-toggle .icon-sun {
    display: none;
}

.theme-toggle .icon-moon {
    display: block;
}

/* Dark / Light mode transition for the whole page */
body,
.site-header,
.product-card,
.product-info,
.filter-btn,
.tracking-box,
.contact-form-wrapper,
.section-title h2,
.section-title p,
.page-banner,
.detail-info,
.contact-info,
.site-footer,
.features-section,
.feature-card,
.feature-card h3,
.feature-card p,
.about-preview,
.about-content,
.about-content h2,
.about-content p,
.stat-item,
.stat-number,
.stat-label,
.messages-section,
.msg-card,
.msg-header,
.msg-name,
.msg-date,
.msg-tag,
.msg-content,
.msg-page-btn,
.msg-page-info,
.contact-section,
.contact-details h4,
.contact-details p,
.contact-icon,
.contact-list li,
.form-group label,
.form-control {
    transition: background-color 0.35s ease, color 0.35s ease, border-color 0.35s ease, box-shadow 0.35s ease;
}

/* ===== Dark Mode ===== */
body[data-theme="dark"] {
    background: #121212;
    color: #e5e7eb;
    /* Override CSS variables so inline styles and existing rules cascade correctly */
    --bg-light: #121212;
    --light-gray: #2a2a2a;
}

body[data-theme="dark"] a {
    color: #5db4e7;
}

body[data-theme="dark"] a:hover {
    color: #7cc7f5;
}

/* Theme button - swap colors in dark mode */
body[data-theme="dark"] .theme-toggle {
    background: #fff;
    color: #000;
}

body[data-theme="dark"] .theme-toggle .icon-sun {
    display: block;
}

body[data-theme="dark"] .theme-toggle .icon-moon {
    display: none;
}

/* Header in dark mode */
body[data-theme="dark"] .site-header {
    background: rgba(24, 24, 27, 0.98);
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.5);
}

body[data-theme="dark"] .main-nav a {
    color: #e5e7eb;
}

body[data-theme="dark"] .main-nav a:hover,
body[data-theme="dark"] .main-nav a.active {
    color: var(--accent);
}

body[data-theme="dark"] .nav-toggle span {
    background: #e5e7eb;
}

body[data-theme="dark"] .logo-text {
    color: #fff;
}

/* Section titles */
body[data-theme="dark"] .section-title h2 {
    color: #e5e7eb;
}

body[data-theme="dark"] .section-title p {
    color: #9ca3af;
}

/* Page banner */
body[data-theme="dark"] .page-banner {
    background: #1f2937;
}

/* ===== Home page sections ===== */
/* Features section (Why Choose Us cards) */
body[data-theme="dark"] .features-section {
    background: #121212;
}

body[data-theme="dark"] .feature-card {
    background: #1e1e1e;
    color: #e5e7eb;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
    border: 1px solid #2a2a2a;
}

body[data-theme="dark"] .feature-card:hover {
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.7);
    border-color: #3a3a3a;
    transform: translateY(-10px);
}

body[data-theme="dark"] .feature-card h3 {
    color: #7cc7f5;
}

body[data-theme="dark"] .feature-card p {
    color: #9ca3af;
}

/* About Preview (both sections: About Weitai Bio + Manufacturing Facility) */
body[data-theme="dark"] .about-preview {
    background: #121212 !important;
}

body[data-theme="dark"] .about-content h2 {
    color: #f3f4f6;
}

body[data-theme="dark"] .about-content p {
    color: #9ca3af;
}

body[data-theme="dark"] .about-stats {
    background: transparent;
}

body[data-theme="dark"] .stat-item {
    background: #1e1e1e;
    border: 1px solid #2a2a2a;
}

body[data-theme="dark"] .stat-number {
    color: #22d3ee;
}

body[data-theme="dark"] .stat-label {
    color: #9ca3af;
}

/* Manufacturing facility checklist <li> inline color fix */
body[data-theme="dark"] .about-content ul li,
body[data-theme="dark"] .about-preview ul li {
    color: #d1d5db !important;
}

/* CTA gradient section (keep gradient but force title text white) */
body[data-theme="dark"] .features-section[style*="linear-gradient"] h2,
body[data-theme="dark"] .features-section[style*="linear-gradient"] p {
    color: #fff !important;
}

/* Product section & cards */
body[data-theme="dark"] .products-section {
    background: #121212;
}

body[data-theme="dark"] .product-card {
    background: #1e1e1e;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
    border: 1px solid #2a2a2a;
}

body[data-theme="dark"] .product-card:hover {
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.7);
    border-color: #3a3a3a;
    transform: translateY(-5px);
}

body[data-theme="dark"] .product-info {
    background: #1e1e1e;
}

body[data-theme="dark"] .product-info h3 {
    color: #f3f4f6;
}

body[data-theme="dark"] .product-info p {
    color: #9ca3af;
}

body[data-theme="dark"] .product-price {
    color: #22d3ee;
}

body[data-theme="dark"] .product-link {
    color: #5db4e7;
}

body[data-theme="dark"] .product-link:hover {
    color: #7cc7f5;
}

/* Filter buttons */
body[data-theme="dark"] .filter-btn {
    background: #1e1e1e;
    border-color: #3a3a3a;
    color: #d1d5db;
}

body[data-theme="dark"] .filter-btn:hover,
body[data-theme="dark"] .filter-btn.active {
    background: var(--primary);
    border-color: var(--primary);
    color: #fff;
}

/* Tracking box */
body[data-theme="dark"] .tracking-box {
    background: #1e1e1e;
    color: #e5e7eb;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
    border: 1px solid #2a2a2a;
}

/* Contact / form areas */
body[data-theme="dark"] .contact-form-wrapper,
body[data-theme="dark"] .contact-info {
    background: #1e1e1e;
    color: #e5e7eb;
}

body[data-theme="dark"] .contact-info h2,
body[data-theme="dark"] .contact-form-wrapper h3 {
    color: #f3f4f6;
}

body[data-theme="dark"] .contact-info > p,
body[data-theme="dark"] .detail-info .description {
    color: #9ca3af;
}

body[data-theme="dark"] .contact-item span:first-child {
    color: #9ca3af;
}

body[data-theme="dark"] .contact-item span:last-child {
    color: #e5e7eb;
}

/* Contact section — the page itself (Get in Touch grid area) */
body[data-theme="dark"] .contact-section {
    background: #121212;
}

body[data-theme="dark"] .contact-details h4 {
    color: #f3f4f6;
}

body[data-theme="dark"] .contact-details p {
    color: #d1d5db;
}

body[data-theme="dark"] .contact-list li {
    border-bottom-color: #2a2a2a;
}

body[data-theme="dark"] .contact-icon {
    background: #2a2a2a;
}

body[data-theme="dark"] .contact-info h4,
body[data-theme="dark"] .form-group label {
    color: #e5e7eb;
}

body[data-theme="dark"] .form-control {
    background: #121212;
    border-color: #3a3a3a;
    color: #e5e7eb;
}

body[data-theme="dark"] .form-control:focus {
    border-color: var(--accent);
    background: #121212;
    color: #e5e7eb;
    box-shadow: 0 0 0 3px rgba(0, 188, 212, 0.15);
}

body[data-theme="dark"] .form-control::placeholder {
    color: #6b7280;
}

/* ===== Contact page Customer Messages section ===== */
/* Light mode default styles for msg classes used in the AJAX renderer */
.messages-section {
    background: var(--bg-light);
}

.msg-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 25px;
}

.msg-card {
    background: #fff;
    padding: 25px;
    border-radius: 12px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
    border-left: 4px solid var(--primary);
    transition: transform 0.2s, background-color 0.35s, border-color 0.35s, color 0.35s, box-shadow 0.35s;
}

.msg-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.1);
}

.msg-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
    padding-bottom: 12px;
    border-bottom: 1px solid #f0f0f0;
}

.msg-name {
    color: var(--dark);
    font-size: 16px;
    font-weight: 700;
    margin: 0;
}

.msg-date {
    font-size: 12px;
    color: #999;
    white-space: nowrap;
}

.msg-tag {
    display: inline-block;
    padding: 3px 10px;
    background: #e0f7fa;
    color: var(--primary);
    border-radius: 12px;
    font-size: 12px;
    margin-bottom: 12px;
}

.msg-content {
    color: #555;
    line-height: 1.6;
    margin: 0;
    font-size: 14px;
}

.msg-empty,
.msg-loading {
    text-align: center;
    padding: 40px;
    color: #999;
}

.msg-empty { grid-column: 1 / -1; }

.msg-pager {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 4px;
}

.msg-page-btn {
    padding: 8px 14px;
    border: 1px solid #ddd;
    background: #fff;
    color: #374151;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s ease;
    font-size: 14px;
}

.msg-page-btn:hover {
    border-color: var(--accent);
    color: var(--accent);
}

.msg-page-btn.active {
    background: var(--primary);
    color: #fff;
    border-color: var(--primary);
}

.msg-page-info {
    margin-left: 15px;
    color: #666;
    font-size: 14px;
}

/* Dark mode for Customer Messages */
body[data-theme="dark"] .messages-section {
    background: #121212 !important;
}

body[data-theme="dark"] .msg-card {
    background: #1e1e1e;
    color: #e5e7eb;
    border-left-color: #22d3ee;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.5);
    border-bottom: 1px solid #2a2a2a;
}

body[data-theme="dark"] .msg-card:hover {
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.7);
    border-left-color: #67e8f9;
}

body[data-theme="dark"] .msg-header {
    border-bottom-color: #2a2a2a;
}

body[data-theme="dark"] .msg-name {
    color: #f3f4f6;
}

body[data-theme="dark"] .msg-date {
    color: #9ca3af;
}

body[data-theme="dark"] .msg-tag {
    background: rgba(34, 211, 238, 0.12);
    color: #67e8f9;
}

body[data-theme="dark"] .msg-content {
    color: #d1d5db;
}

body[data-theme="dark"] .msg-loading,
body[data-theme="dark"] .msg-empty {
    color: #9ca3af !important;
}

body[data-theme="dark"] .msg-page-btn {
    background: #1e1e1e;
    border-color: #3a3a3a;
    color: #d1d5db;
}

body[data-theme="dark"] .msg-page-btn:hover {
    border-color: var(--accent);
    color: var(--accent);
}

body[data-theme="dark"] .msg-page-btn.active {
    background: var(--primary);
    color: #fff;
    border-color: var(--primary);
}

body[data-theme="dark"] .msg-page-info {
    color: #9ca3af;
}

body[data-theme="dark"] input[type="text"],
body[data-theme="dark"] input[type="email"],
body[data-theme="dark"] input[type="tel"],
body[data-theme="dark"] input[type="password"],
body[data-theme="dark"] input[type="number"],
body[data-theme="dark"] textarea,
body[data-theme="dark"] select {
    background: #121212;
    border-color: #3a3a3a;
    color: #e5e7eb;
}

body[data-theme="dark"] input::placeholder,
body[data-theme="dark"] textarea::placeholder {
    color: #6b7280;
}

/* Product detail */
body[data-theme="dark"] .detail-info {
    background: #121212;
}

body[data-theme="dark"] .detail-info h1,
body[data-theme="dark"] .detail-info h2,
body[data-theme="dark"] .detail-info h3 {
    color: #f3f4f6;
}

body[data-theme="dark"] .detail-info .price {
    color: #22d3ee;
}

body[data-theme="dark"] .detail-info .price-usd {
    background: #2a2a2a;
    border-color: #3a3a3a;
    color: #9ca3af;
}

body[data-theme="dark"] .detail-info .spec-label {
    color: #9ca3af;
}

body[data-theme="dark"] .detail-info .spec-value {
    color: #e5e7eb;
}

body[data-theme="dark"] .product-code {
    background: #2a2a2a;
    color: #d1d5db;
    border-color: #3a3a3a;
}

/* Pagination */
body[data-theme="dark"] .pagination a,
body[data-theme="dark"] .pagination span {
    background: #1e1e1e;
    color: #d1d5db;
    border-color: #3a3a3a;
}

body[data-theme="dark"] .pagination a:hover {
    border-color: var(--accent);
    color: var(--accent);
}

body[data-theme="dark"] .pagination .current {
    background: var(--primary);
    color: #fff;
    border-color: var(--primary);
}

body[data-theme="dark"] .pagination-info {
    color: #9ca3af;
}

/* Message cards / testimonials */
body[data-theme="dark"] .message-card,
body[data-theme="dark"] .testimonial-card {
    background: #1e1e1e;
    color: #e5e7eb;
    border: 1px solid #2a2a2a;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
}

body[data-theme="dark"] .message-author h4,
body[data-theme="dark"] .testimonial-author h4 {
    color: #f3f4f6;
}

body[data-theme="dark"] .message-author span,
body[data-theme="dark"] .testimonial-author span {
    color: #9ca3af;
}

body[data-theme="dark"] .message-subject {
    color: #5db4e7;
}

body[data-theme="dark"] .message-text {
    color: #d1d5db;
}

/* About sections */
body[data-theme="dark"] .about-section,
body[data-theme="dark"] .mission-section,
body[data-theme="dark"] .history-section {
    background: #121212;
}

body[data-theme="dark"] .about-content h2,
body[data-theme="dark"] .mission-item h3,
body[data-theme="dark"] .history-item h3 {
    color: #f3f4f6;
}

body[data-theme="dark"] .about-content p,
body[data-theme="dark"] .mission-item p,
body[data-theme="dark"] .history-item p {
    color: #9ca3af;
}

body[data-theme="dark"] .mission-item,
body[data-theme="dark"] .about-stats .stat-item {
    background: #1e1e1e;
    border-color: #2a2a2a;
}

body[data-theme="dark"] .stat-number {
    color: #22d3ee;
}

body[data-theme="dark"] .stat-label {
    color: #9ca3af;
}

/* Features / CTA section (gradient, keep but adjust text contrast if needed) */
body[data-theme="dark"] .features-section h2 {
    color: #fff;
}

/* Footer - already dark, but ensure link colors remain readable */
body[data-theme="dark"] .site-footer {
    background: #0a0a0a;
}

/* Back to top */
body[data-theme="dark"] .back-to-top {
    background: #1f2937;
    color: #fff;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.5);
}

body[data-theme="dark"] .back-to-top:hover {
    background: var(--primary-light);
}

/* No products / empty states */
body[data-theme="dark"] #productsGrid > div[style*="grid-column"],
body[data-theme="dark"] .products-grid > div[style*="grid-column"] {
    color: #9ca3af !important;
}

@media (max-width: 768px) {
    body[data-theme="dark"] .main-nav {
        background: #1e1e1e;
        box-shadow: -5px 0 20px rgba(0, 0, 0, 0.6);
    }
}
