:root {
    --color-primary: #1a1a1a;
    --color-secondary: #333333;
    --color-cta: #c9a962;
    --color-background: #f8f8f8;
    --color-text: #1a1a1a;
    --color-surface: #ffffff;
    --color-border: #e0e0e0;
    --color-muted: #666666;
    --color-accent: #f0f0f0;
}

.dark {
    --color-primary: #f0f0f0;
    --color-secondary: #cccccc;
    --color-cta: #c9a962;
    --color-background: #0a0a0a;
    --color-text: #f0f0f0;
    --color-surface: #1a1a1a;
    --color-border: #333333;
    --color-muted: #999999;
    --color-accent: #262626;
}

html {
    transition: background-color 0.4s ease-in-out, color 0.4s ease-in-out;
    scroll-behavior: smooth;
}

* {
    transition: background-color 0.4s ease-in-out, color 0.4s ease-in-out, border-color 0.4s ease-in-out, box-shadow 0.4s ease-in-out;
}

.theme-transition-complete {
    transition: none !important;
}

.section-with-texture {
    position: relative;
}

.texture-dots {
    background-image: radial-gradient(circle, var(--color-muted) 1px, transparent 1px);
    background-size: 20px 20px;
    opacity: 0.25;
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    pointer-events: none;
}

.texture-lines {
    background-image: linear-gradient(90deg, var(--color-muted) 1px, transparent 1px), linear-gradient(var(--color-muted) 1px, transparent 1px);
    background-size: 40px 40px;
    opacity: 0.15;
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    pointer-events: none;
}

.texture-diagonal {
    background-image: repeating-linear-gradient(45deg, transparent, transparent 10px, var(--color-muted) 10px, var(--color-muted) 11px);
    background-size: 20px 20px;
    opacity: 0.12;
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    pointer-events: none;
}

.animate-on-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.animate-on-scroll.visible {
    opacity: 1;
    transform: translateY(0);
}

.hover-lift {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.hover-lift:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.hover-glow {
    transition: box-shadow 0.3s ease, transform 0.3s ease;
}

.hover-glow:hover {
    box-shadow: 0 0 20px rgba(201, 169, 98, 0.3);
    transform: scale(1.02);
}

.theme-toggle-btn, .lang-toggle-btn {
    background-color: var(--color-surface);
    border: 1px solid var(--color-border);
    color: var(--color-text);
}

.theme-toggle-btn:hover, .lang-toggle-btn:hover {
    background-color: var(--color-accent);
}

.card-hover:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

.dark .card-hover:hover {
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.4), 0 10px 10px -5px rgba(0, 0, 0, 0.2);
}

.nav-link {
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--color-cta);
    transition: width 0.3s ease;
}

.nav-link:hover::after {
    width: 100%;
}

.hero-image-container {
    position: relative;
    overflow: hidden;
}

.hero-image-container::before {
    content: '';
    position: absolute;
    top: -20px;
    left: -20px;
    width: 160px;
    height: 160px;
    background: radial-gradient(circle, var(--color-cta) 0%, transparent 70%);
    opacity: 0.15;
    border-radius: 50%;
}

.hero-image-container::after {
    content: '';
    position: absolute;
    bottom: -20px;
    right: -20px;
    width: 160px;
    height: 160px;
    background: radial-gradient(circle, var(--color-primary) 0%, transparent 70%);
    opacity: 0.1;
    border-radius: 50%;
}

.section-divider {
    width: 80px;
    height: 3px;
    background: linear-gradient(90deg, var(--color-cta), #8b7355);
    margin: 0 auto;
    border-radius: 2px;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-fade-in-up {
    animation: fadeInUp 0.6s ease-out forwards;
}

.animate-delay-100 { animation-delay: 0.1s; }
.animate-delay-200 { animation-delay: 0.2s; }
.animate-delay-300 { animation-delay: 0.3s; }
.animate-delay-400 { animation-delay: 0.4s; }
.animate-delay-500 { animation-delay: 0.5s; }

@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

.input-field {
    background-color: var(--color-surface);
    border-color: var(--color-border);
    color: var(--color-text);
}

.input-field:focus {
    border-color: var(--color-cta);
    box-shadow: 0 0 0 3px rgba(201, 169, 98, 0.1);
}

.dark .input-field:focus {
    box-shadow: 0 0 0 3px rgba(201, 169, 98, 0.2);
}

.social-icon {
    background-color: var(--color-accent);
    color: var(--color-cta);
}

.social-icon:hover {
    background-color: var(--color-cta);
    color: var(--color-background);
}

.footer-link {
    color: var(--color-muted);
}

.footer-link:hover {
    color: var(--color-cta);
}

.service-card {
    background-color: var(--color-surface);
    border: 1px solid var(--color-border);
}

.product-card {
    background-color: var(--color-accent);
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
    border-color: var(--color-cta);
}

.dark .product-card:hover {
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.4);
}

.icon-container {
    background-color: var(--color-accent);
    color: var(--color-cta);
    transition: transform 0.3s ease, background-color 0.3s ease, color 0.3s ease;
}

.icon-container:hover {
    transform: scale(1.1);
    background-color: var(--color-cta);
    color: var(--color-background);
}

.company-logo {
    font-weight: 600;
    letter-spacing: 0.05em;
}

.chinese-seal {
    width: 12px;
    height: 12px;
    background-color: #c41e3a;
    border-radius: 50%;
    display: inline-block;
    margin-right: 4px;
}

.toast-container {
    position: fixed;
    top: 100px;
    right: 20px;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.toast {
    display: flex;
    align-items: center;
    padding: 16px 24px;
    border-radius: 8px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
    animation: toastSlideIn 0.3s ease-out;
    max-width: 400px;
}

.toast-success {
    background-color: #10b981;
    color: white;
}

.toast-error {
    background-color: #ef4444;
    color: white;
}

.toast-info {
    background-color: #3b82f6;
    color: white;
}

.toast-icon {
    margin-right: 12px;
    font-size: 20px;
}

.toast-content {
    flex: 1;
    font-weight: 500;
}

.toast-close {
    background: none;
    border: none;
    color: white;
    cursor: pointer;
    font-size: 18px;
    padding: 0;
    margin-left: 12px;
    opacity: 0.7;
    transition: opacity 0.2s;
}

.toast-close:hover {
    opacity: 1;
}

.toast-exit {
    animation: toastSlideOut 0.3s ease-in forwards;
}

@keyframes toastSlideIn {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes toastSlideOut {
    from {
        transform: translateX(0);
        opacity: 1;
    }
    to {
        transform: translateX(100%);
        opacity: 0;
    }
}

.bg-gradient-custom {
    background-image: url('../images/welcome-cover.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    position: relative;
}

.bg-gradient-custom::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to bottom, rgba(248, 248, 248, 0.85), rgba(248, 248, 248, 0.95));
    z-index: 0;
}

.dark .bg-gradient-custom::before {
    background: linear-gradient(to bottom, rgba(10, 10, 10, 0.85), rgba(10, 10, 10, 0.95));
}

.bg-surface {
    background-color: var(--color-surface);
}

.bg-accent {
    background-color: var(--color-accent);
}

.text-muted {
    color: var(--color-muted);
}

.border-custom {
    border-color: var(--color-border);
}

.transition-all-300 {
    transition: all 300ms ease-in-out;
}

.text-shadow {
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.content-auto {
    content-visibility: auto;
}

@media (min-width: 1200px) {
    #contact .flex.flex-col.md\\:flex-row.items-stretch > div > div {
        display: flex;
        flex-direction: column;
    }
    
    #contact .flex.flex-col.md\\:flex-row.items-stretch > div > div > *:last-child {
        margin-top: auto;
    }
}
