/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Optimize rendering performance */
* {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

:root {
    --primary-color: #1e40af;
    --primary-hover: #1d4ed8;
    --secondary-color: #3b82f6;
    --accent-color: #374151;
    --neutral-color: #374151;
    --text-primary: #1e293b;
    --text-secondary: #475569;
    --text-muted: #64748b;
    --bg-primary: #f8fafc;
    --bg-secondary: #f1f5f9;
    --bg-tertiary: #e2e8f0;
    --border-color: #e2e8f0;
    --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --gradient: linear-gradient(135deg, #1e40af 0%, #3b82f6 100%);
    --accent-gradient: linear-gradient(135deg, #374151 0%, #1f2937 100%);
    --warm-gradient: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 50%, #e2e8f0 100%);
    --container-width: 1200px;
    --border-radius: 12px;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Disable transitions during language switching to prevent flashing */
.no-transitions,
.no-transitions *,
.no-transitions *:before,
.no-transitions *:after {
    transition: none !important;
    animation: none !important;
    transform: none !important;
}

/* Special handling for Chinese language to prevent font rendering issues */
.chinese-lang * {
    font-family: 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', '微软雅黑', 'SimSun', '宋体', sans-serif;
    font-display: swap;
    text-rendering: optimizeSpeed;
}

/* Special handling for Arabic language to prevent font rendering issues */
.arabic-lang * {
    font-family: 'Noto Sans Arabic', 'Tahoma', 'Arial Unicode MS', sans-serif;
    font-display: swap;
    text-rendering: optimizeSpeed;
    direction: rtl;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.6;
    color: var(--text-primary);
    background-color: var(--bg-primary);
    overflow-x: hidden;
}

.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 20px;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1rem;
}

h1 {
    font-size: 3.5rem;
    background: var(--gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

h2 {
    font-size: 2.5rem;
    color: var(--text-primary);
}

h3 {
    font-size: 1.5rem;
    color: var(--text-primary);
}

p {
    color: var(--text-secondary);
    margin-bottom: 1rem;
}

/* Buttons */
.btn-primary, .btn-secondary {
    padding: 12px 24px;
    border: none;
    border-radius: var(--border-radius);
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: var(--transition);
    text-decoration: none;
    display: inline-block;
    text-align: center;
}

.btn-primary {
    background: #1e40af;
    color: white;
}

.btn-primary:hover {
    background: #1d4ed8;
    transform: translateY(-2px);
    box-shadow: var(--shadow);
}

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

.btn-secondary:hover {
    background: var(--bg-secondary);
    border-color: var(--primary-color);
    transform: translateY(-2px);
}

/* Language Switcher - More subtle styling */
.language-switcher {
    position: relative;
    display: inline-block;
    margin-left: 10px;
}

.language-switcher button {
    background: transparent;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    padding: 4px 8px;
    cursor: pointer;
    font-size: 0.75rem;
    color: var(--text-secondary);
    transition: color 0.3s ease;
    display: flex;
    align-items: center;
    gap: 4px;
    opacity: 0.8;
}

.language-switcher button:hover {
    background: var(--bg-secondary);
    border-color: var(--text-secondary);
    opacity: 1;
    color: var(--text-primary);
}

.language-switcher button.active {
    background: var(--bg-secondary);
    color: var(--text-primary);
    border-color: var(--text-secondary);
    opacity: 1;
}

.language-dropdown {
    position: absolute;
    top: 100%;
    right: 0;
    background: var(--bg-primary);
    border: 1px solid var(--border-color);
    border-radius: 6px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    min-width: 100px;
    z-index: 1001;
    display: none;
    margin-top: 4px;
}

.language-dropdown.show {
    display: block;
}

.language-dropdown button {
    width: 100%;
    border: none;
    border-radius: 0;
    padding: 8px 12px;
    text-align: left;
    background: none;
    border-bottom: 1px solid var(--border-color);
    font-size: 0.85rem;
    color: var(--text-secondary);
    transition: var(--transition);
}

.language-dropdown button:last-child {
    border-bottom: none;
}

.language-dropdown button:hover {
    background: var(--bg-secondary);
    color: var(--text-primary);
}

.language-dropdown button.active {
    background: var(--bg-secondary);
    color: var(--text-primary);
}

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border-color);
    z-index: 1000;
    transition: background-color 0.3s ease, backdrop-filter 0.3s ease;
    box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px 0 rgba(0, 0, 0, 0.06);
}

.nav-container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 70px;
}

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

.logo-img {
    width: 50px;
    height: 50px;
    border-radius: 8px;
    object-fit: contain;
    background: transparent;
    opacity: 1;
}

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

.nav-menu {
    display: flex;
    align-items: center;
    gap: 2rem;
    margin-left: auto;
    margin-right: 2rem;
}

.nav-right {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.nav-link {
    color: var(--text-secondary);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
    position: relative;
}

.nav-link:hover,
.nav-link.active {
    color: var(--text-primary);
}

.nav-link.active::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    right: 0;
    height: 2px;
    background: var(--primary-color);
    border-radius: 1px;
}

/* CTA Button - More prominent styling */
.cta-button {
    background: linear-gradient(135deg, #1e40af, #3b82f6);
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 8px;
    font-weight: 700;
    font-size: 0.95rem;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(30, 64, 175, 0.3);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    position: relative;
    overflow: hidden;
    will-change: transform;
    backface-visibility: hidden;
    transform: translateZ(0);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    opacity: 1;
    visibility: visible;
}

.cta-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: none;
}

.cta-button:hover::before {
    left: 100%;
}

.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    cursor: pointer;
    gap: 4px;
}

@media (max-width: 768px) {
    .nav-container {
        grid-template-columns: auto 1fr auto;
        gap: 1rem;
    }
    
    .nav-right {
        display: none;
    }
    
    .mobile-menu-toggle {
        display: flex;
    }
}

.mobile-menu-toggle span {
    width: 25px;
    height: 3px;
    background: var(--text-primary);
    transition: var(--transition);
}

/* Hero Section */
.hero {
    padding: 120px 0 80px;
    background: var(--warm-gradient);
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grid" width="20" height="20" patternUnits="userSpaceOnUse"><path d="M 20 0 L 0 0 0 20" fill="none" stroke="%23e2e8f0" stroke-width="0.5"/></pattern></defs><rect width="100" height="100" fill="url(%23grid)"/></svg>');
    opacity: 0.3;
}

.hero-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: start;
    position: relative;
    z-index: 1;
}

.hero-title-top {
    grid-column: 1 / -1;
    text-align: left;
    margin-bottom: 0;
}

.hero-title-top h1 {
    font-size: 3.5rem;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 0.5rem;
    background: var(--gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-title-top .hero-subtitle {
    font-size: 1.5rem;
    font-weight: 300;
    letter-spacing: 0.05em;
    color: var(--text-secondary);
    line-height: 1.4;
    margin: 0;
    text-align: left;
}

.hero-text {
    grid-column: 1;
    display: flex;
    flex-direction: column;
}

.hero-text-content {
    display: flex;
    flex-direction: column;
}

.hero-text p {
    font-size: 1.25rem;
    margin-bottom: 2rem;
    color: var(--text-secondary);
}

.hero-images {
    grid-column: 2;
    position: relative;
    display: flex;
    align-items: flex-start;
    margin-top: 0;
    align-self: start;
    padding-top: 0;
    height: fit-content;
}

/* Contact page hero - centered text */
.contact-hero-content {
    grid-template-columns: 1fr !important;
    justify-items: center;
    text-align: center;
}

.contact-hero-text {
    max-width: 800px;
    margin: 0 auto;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
}

.hero-images img {
    width: 100%;
    height: auto;
    border-radius: var(--border-radius);
    object-fit: cover;
    transition: var(--transition);
}

.hero-images img:hover {
    transform: scale(1.02);
}

/* About page hero image - match text height */
.hero-section-about .hero-content {
    align-items: stretch;
}

.hero-section-about .hero-images {
    height: 100%;
    align-self: stretch;
    padding-top: 0;
}

.hero-section-about .hero-images img {
    height: 100%;
    min-height: 320px;
    object-fit: cover;
}

.hero-section-about .hero-images figure {
    margin: 0;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.hero-section-about .hero-images figure img {
    flex: 1;
    min-height: 0;
}

.hero-section-about .hero-images figcaption {
    font-size: 0.9rem;
    color: var(--text-muted);
    margin-top: 0.75rem;
    line-height: 1.5;
    font-style: italic;
    flex-shrink: 0;
}

.image-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    height: 400px;
}

/* Showcase page - four equal-sized images in 2×2 grid */
.showcase .image-grid {
    grid-template-columns: 1fr 1fr;
    grid-template-rows: 1fr 1fr;
    height: auto;
    width: 100%;
    gap: 0.75rem;
}

.grid-item {
    border-radius: var(--border-radius);
    overflow: hidden;
    position: relative;
    background: var(--bg-tertiary);
    border: none;
}

/* Showcase page - all grid items equal size */
.showcase .grid-item {
    width: 100%;
    height: 100%;
}

.grid-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
    border-radius: 0;
    border: none;
}

.grid-item:hover img {
    transform: scale(1.05);
}

.grid-item:nth-child(1) {
    grid-row: 1 / 3;
}

/* Showcase page - remove special grid positioning */
.showcase .grid-item:nth-child(1),
.showcase .grid-item:nth-child(2),
.showcase .grid-item:nth-child(3),
.showcase .grid-item:nth-child(4) {
    grid-row: auto;
    grid-column: auto;
}

.grid-item:nth-child(2) {
    grid-column: 2;
}

.grid-item:nth-child(3) {
    grid-column: 2;
}

.grid-item:nth-child(4) {
    grid-column: 1;
    grid-row: 3;
}

/* Services Section */
.services {
    padding: 80px 0;
    background: var(--bg-tertiary);
}

.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.section-header h2 {
    margin-bottom: 1rem;
}

.section-header p {
    font-size: 1.25rem;
    color: var(--text-muted);
}

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

.service-card {
    background: #ffffff;
    padding: 2rem;
    border-radius: var(--border-radius);
    border: 1px solid var(--border-color);
    transition: var(--transition);
    text-align: left;
    box-shadow: 0 4px 6px 0 rgba(0, 0, 0, 0.1), 0 2px 4px 0 rgba(0, 0, 0, 0.06);
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary-color);
}

.service-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    background: none !important;
    border-radius: 0 !important;
}

.service-icon-img {
    width: 80px !important;
    height: 80px !important;
    max-width: 80px !important;
    max-height: 80px !important;
    object-fit: contain;
    display: block;
    margin: 0 auto 1.5rem;
    background: transparent;
}

.service-card h3 {
    margin-bottom: 1rem;
    color: var(--text-primary);
    text-align: center;
}

.service-card p {
    color: var(--text-secondary);
    text-align: left;
}

/* Categories Section */
.categories {
    padding: 80px 0;
    background: var(--bg-primary);
}

.categories-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.category-item {
    background: #ffffff;
    border-radius: 12px;
    overflow: visible;
    transition: var(--transition);
    border: none;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.06);
    padding: 6px;
}

.category-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12), 0 4px 8px rgba(0, 0, 0, 0.08);
}

.category-item img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    border-radius: 8px;
    border: none;
}

.category-content {
    padding: 1.5rem;
}

.category-content h3 {
    margin-bottom: 0.5rem;
    color: var(--text-primary);
}

.category-content p {
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 1rem;
}

.subcategories {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 0.75rem;
}

.subcategory-tag {
    background: var(--primary-color);
    color: white;
    padding: 0.25rem 0.75rem;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 500;
    opacity: 0.9;
    transition: opacity 0.3s ease;
}

.subcategory-tag:hover {
    opacity: 1;
}

/* Process Section */
.process {
    padding: 80px 0;
    background: var(--bg-tertiary);
}

.process-steps {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.step {
    text-align: center;
    position: relative;
}

.step-number {
    width: 60px;
    height: 60px;
    background: var(--gradient);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: 700;
    margin: 0 auto 1.5rem;
}

.step h3 {
    margin-bottom: 1rem;
    color: var(--text-primary);
    text-align: center;
}

.step p {
    color: var(--text-secondary);
    text-align: left;
}

/* CTA Section */
.cta-section {
    padding: 80px 0;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    text-align: center;
}

.cta-content h2 {
    color: white;
    margin-bottom: 1rem;
}

.cta-content p {
    color: rgba(255, 255, 255, 0.9);
    font-size: 1.25rem;
    margin-bottom: 2rem;
}

.cta-section .btn-primary {
    background: white;
    color: #1e40af;
}

.cta-section .btn-primary:hover {
    background: rgba(255, 255, 255, 0.9);
    transform: translateY(-2px);
}

/* Footer */
.footer {
    background: var(--bg-tertiary);
    padding: 60px 0 20px;
    border-top: 1px solid var(--border-color);
}

/* Social Links Styles */
.social-links {
    display: flex;
    gap: 1rem;
    margin-top: 1rem;
}

.social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.75rem;
    background: rgba(255, 255, 255, 0.25);
    border-radius: 8px;
    color: white;
    text-decoration: none;
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.4);
    opacity: 1;
    width: 48px;
    height: 48px;
}

.social-link span {
    display: none;
}

.social-link.linkedin {
    background: rgba(0, 119, 181, 0.4);
    border-color: rgba(0, 119, 181, 0.7);
}

.social-link.whatsapp {
    background: rgba(37, 211, 102, 0.4);
    border-color: rgba(37, 211, 102, 0.7);
}

.social-link:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    opacity: 1;
}

.social-link.instagram {
    background: rgba(225, 48, 108, 0.4);
    border-color: rgba(225, 48, 108, 0.7);
}

.social-link.tiktok {
    background: rgba(0, 0, 0, 0.4);
    border-color: rgba(0, 0, 0, 0.7);
}

.social-link.linkedin:hover {
    background: #0077b5;
    border-color: #0077b5;
}

.social-link.whatsapp:hover {
    background: #25d366;
    border-color: #25d366;
}

.social-link.instagram:hover {
    background: #e1306c;
    border-color: #e1306c;
}

.social-link.tiktok:hover {
    background: #000000;
    border-color: #000000;
}

/* Disabled state for Instagram and TikTok */
.social-link.instagram,
.social-link.tiktok {
    opacity: 0.45;
    cursor: default;
    pointer-events: none;
}

.social-link.instagram:hover,
.social-link.tiktok:hover {
    transform: none;
    box-shadow: none;
    opacity: 0.45;
    background: rgba(225, 48, 108, 0.4);
    border-color: rgba(225, 48, 108, 0.7);
}

.social-link.tiktok:hover {
    background: rgba(0, 0, 0, 0.4);
    border-color: rgba(0, 0, 0, 0.7);
}

.social-link svg {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
}

.social-link span {
    font-size: 0.9rem;
    font-weight: 500;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 2rem;
    margin-bottom: 2rem;
    align-items: start;
}

.footer-section:nth-child(2) {
    margin-top: 5rem;
    margin-left: 3rem;
    margin-bottom: 1rem;
}

.footer-section:nth-child(3) {
    margin-top: 5rem;
    margin-left: 1rem;
    margin-bottom: 1rem;
}

.footer-section:nth-child(4) {
    margin-top: 5rem;
    margin-left: 0rem;
    margin-bottom: 1rem;
}

.footer-section:nth-child(5) {
    margin-top: 5rem;
    margin-left: 1rem;
    margin-bottom: 1rem;
}

.footer-section:first-child p {
    line-height: 1.6;
    max-width: 350px;
    margin-bottom: 1rem;
}

.footer-section h4 {
    color: var(--text-primary);
    margin-bottom: 1.5rem;
    font-weight: 700;
    font-size: 1.1rem;
}

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

.footer-section ul li {
    margin-bottom: 0.5rem;
}

.footer-section ul li a {
    color: var(--text-secondary);
    text-decoration: none;
    transition: var(--transition);
}

.footer-section ul li a:hover {
    color: var(--primary-color);
}

/* Ensure only email address stays on one line in Contact Info section */
.footer-section:nth-child(4) ul li:first-child {
    white-space: nowrap;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 1rem;
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid var(--border-color);
    color: var(--text-muted);
}


/* Modal */
.modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(5px);
}

.modal-content {
    background: var(--bg-primary);
    margin: 10% auto;
    padding: 0;
    border-radius: var(--border-radius);
    width: 85%;
    max-width: 500px;
    max-height: 80vh;
    overflow-y: auto;
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-lg);
    animation: modalSlideIn 0.3s ease-out;
}

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: translateY(-50px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.modal-header {
    padding: 2rem 2rem 1rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid var(--border-color);
}

.modal-header h2 {
    margin: 0;
    color: var(--text-primary);
}

.close {
    color: var(--text-muted);
    font-size: 2rem;
    font-weight: bold;
    cursor: pointer;
    transition: var(--transition);
}

.close:hover {
    color: var(--text-primary);
}

.quote-form {
    padding: 2rem;
}

.form-group {
    margin-bottom: 1.5rem;
}

/* Turnstile widget styling */
.form-group .cf-turnstile {
    margin: 0.5rem 0;
    min-height: 65px;
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
    width: 100%;
    position: relative;
}

.form-group .cf-turnstile iframe {
    width: 100% !important;
    height: 65px !important;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    color: var(--text-primary);
    font-weight: 500;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    background: var(--bg-secondary);
    color: var(--text-primary);
    font-size: 1rem;
    transition: var(--transition);
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(30, 64, 175, 0.1);
}

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

.quote-form .btn-primary {
    width: 100%;
    padding: 14px;
    font-size: 1.1rem;
}

/* File Upload Styles */
.file-upload {
    position: relative;
}

.file-upload input[type="file"] {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
}

.file-upload-label {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 16px;
    background: var(--bg-secondary);
    border: 2px dashed var(--border-color);
    border-radius: var(--border-radius);
    cursor: pointer;
    transition: var(--transition);
    font-weight: 500;
    color: var(--text-secondary);
    width: 100%;
    justify-content: center;
}

.file-upload-label:hover {
    border-color: var(--primary-color);
    background: var(--bg-tertiary);
    color: var(--primary-color);
}

.file-upload-label svg {
    transition: var(--transition);
}

.file-upload-label:hover svg {
    transform: translateY(-2px);
}

.file-list {
    margin-top: 1rem;
    display: none;
}

.file-list.show {
    display: block;
}

.file-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 8px 12px;
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
}

.file-item:last-child {
    margin-bottom: 0;
}

.file-name {
    color: var(--text-primary);
    font-weight: 500;
}

.file-size {
    color: var(--text-muted);
    font-size: 0.8rem;
}

.file-remove {
    background: none;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    padding: 4px;
    border-radius: 4px;
    transition: var(--transition);
}

.file-remove:hover {
    background: rgba(239, 68, 68, 0.1);
    color: #ef4444;
}

}

/* Responsive Design */
@media (max-width: 768px) {
    .nav-menu {
        position: fixed;
        top: 0;
        left: -100%;
        width: 80%;
        max-width: 300px;
        height: 100vh;
        background: var(--bg-primary);
        flex-direction: column;
        justify-content: flex-start;
        align-items: flex-start;
        padding: 80px 20px 20px;
        box-shadow: 2px 0 10px rgba(0, 0, 0, 0.1);
        transition: left 0.3s ease;
        z-index: 1000;
        display: flex;
    }
    
    .nav-menu.active {
        left: 0;
    }
    
    .nav-menu .nav-link {
        display: block;
        padding: 15px 0;
        border-bottom: 1px solid var(--border-color);
        width: 100%;
        font-size: 1.1rem;
        color: var(--text-primary);
        text-decoration: none;
    }
    
    .nav-menu .nav-link:hover {
        color: var(--primary-color);
    }
    
    .nav-menu .cta-button {
        margin-top: 20px;
        width: 100%;
        text-align: center;
        padding: 12px 20px;
        transition: all 0.3s ease;
    }
    
    .mobile-menu-toggle {
        display: flex;
        flex-direction: column;
        cursor: pointer;
        padding: 10px;
        z-index: 1001;
    }
    
    .mobile-menu-toggle span {
        width: 25px;
        height: 3px;
        background: var(--text-primary);
        margin: 3px 0;
        transition: 0.3s;
        border-radius: 2px;
    }
    
    .mobile-menu-toggle.active span:nth-child(1) {
        transform: rotate(-45deg) translate(-5px, 6px);
    }
    
    .mobile-menu-toggle.active span:nth-child(2) {
        opacity: 0;
    }
    
    .mobile-menu-toggle.active span:nth-child(3) {
        transform: rotate(45deg) translate(-5px, -6px);
    }
    
    /* Mobile overlay */
    .mobile-overlay {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: rgba(0, 0, 0, 0.5);
        z-index: 999;
        opacity: 0;
        visibility: hidden;
        transition: all 0.3s ease;
    }
    
    .mobile-overlay.active {
        opacity: 1;
        visibility: visible;
    }
    
    h1 {
        font-size: 2rem;
        line-height: 1.3;
    }
    
    h2 {
        font-size: 1.75rem;
        line-height: 1.4;
    }
    
    h3 {
        font-size: 1.35rem;
        line-height: 1.4;
    }
    
    p {
        font-size: 1rem;
        line-height: 1.7;
    }
    
    .hero-content {
        grid-template-columns: 1fr;
        grid-template-rows: auto;
        gap: 2rem;
        text-align: center;
    }
    
    .hero-text {
        grid-column: 1;
        grid-row: auto;
    }
    
    .hero-images {
        grid-column: 1;
        grid-row: auto;
        height: auto;
        padding-top: 0 !important;
    }
    
    .hero-images img {
        height: auto !important;
        min-height: 300px;
        max-height: 500px;
    }
    
    /* About page hero image mobile */
    .hero-section-about .hero-images img {
        height: auto !important;
        min-height: 250px;
        max-height: 400px;
    }
    
    .hero-section-about .hero-images figure {
        height: auto;
    }
    
    .hero-section-about .hero-images figcaption {
        font-size: 0.85rem;
        margin-top: 0.5rem;
    }
    
    .hero-title-top {
        margin-bottom: 2rem;
    }
    
    .hero-title-top h1 {
        font-size: 2rem;
        line-height: 1.3;
        margin-bottom: 0.5rem;
    }
    
    .hero-title-top .hero-subtitle {
        font-size: 1.5rem;
        margin-bottom: 0;
    }
    
    .hero-text h1 {
        font-size: 2rem;
        line-height: 1.3;
        margin-bottom: 1rem;
    }
    
    .hero-text .hero-subtitle {
        font-size: 1.5rem;
        margin-bottom: 1rem;
    }
    
    .hero-text p {
        font-size: 1.1rem;
        line-height: 1.6;
        margin-bottom: 1.5rem;
    }
    
    .hero-buttons {
        justify-content: center;
        flex-wrap: wrap;
        gap: 0.75rem;
    }
    
    .image-grid {
        height: 250px;
    }
    
    /* Showcase page mobile - four equal-sized images */
    .showcase .image-grid {
        grid-template-columns: 1fr 1fr;
        grid-template-rows: 1fr 1fr;
        height: auto;
        width: 100%;
        gap: 0.75rem;
    }
    
    .hero-images {
        height: auto;
    }
    
    .hero-images img {
        width: 100%;
        height: auto;
        min-height: 300px;
        max-height: 500px;
    }
    
    .section-header {
        margin-bottom: 2rem;
    }
    
    .section-header h2 {
        margin-bottom: 0.75rem;
    }
    
    .section-header p {
        font-size: 1rem;
        line-height: 1.6;
    }
    
    .services-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .service-card {
        padding: 1.5rem;
    }
    
    .service-icon-img {
        width: 64px !important;
        height: 64px !important;
        max-width: 64px !important;
        max-height: 64px !important;
        margin-bottom: 1rem;
    }
    
    .service-card h3 {
        font-size: 1.25rem;
        margin-bottom: 0.75rem;
        line-height: 1.4;
    }
    
    .service-card p {
        font-size: 0.95rem;
        line-height: 1.6;
    }
    
    .categories-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    /* 移动端弱化 hover 效果 */
    .category-item:hover {
        transform: translateY(-1px);
        box-shadow: 0 6px 20px rgba(0, 0, 0, 0.08);
    }
    
    .product-item:hover {
        box-shadow: 0 6px 20px rgba(0, 0, 0, 0.08);
    }
    
    .product-item:hover img {
        transform: translateY(-1px);
    }
    
    .grid-item:hover img {
        transform: scale(1.05);
    }
    
    .factory-item:hover {
        transform: translateY(-1px);
        box-shadow: 0 6px 20px rgba(0, 0, 0, 0.08);
    }
    
    .packaging-item:hover {
        transform: translateY(-1px);
        box-shadow: 0 6px 20px rgba(0, 0, 0, 0.08);
    }
    
    .process-steps {
        grid-template-columns: 1fr;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .footer-section {
        text-align: center;
        margin-left: 0 !important;
        margin-top: 2rem !important;
    }
    
    .footer-section:first-child {
        margin-top: 0 !important;
    }
    
    .footer-logo {
        justify-content: center;
    }
    
    .footer-section:first-child p {
        margin-left: auto;
        margin-right: auto;
    }
    
    .social-links {
        justify-content: center;
    }
    
    .modal-content {
        margin: 10% auto;
        width: 95%;
    }
    
    .modal-header,
    .quote-form {
        padding: 1.5rem;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 15px;
    }
    
    h1 {
        font-size: 1.75rem;
        line-height: 1.3;
    }
    
    h2 {
        font-size: 1.5rem;
        line-height: 1.4;
    }
    
    h3 {
        font-size: 1.2rem;
        line-height: 1.4;
    }
    
    .hero {
        padding: 80px 0 50px;
    }
    
    .hero-text .hero-subtitle {
        font-size: 1.25rem;
        margin-bottom: 1rem;
    }
    
    .hero-text p {
        font-size: 1rem;
        line-height: 1.6;
    }
    
    .services,
    .categories,
    .process,
    .cta-section {
        padding: 50px 0;
    }
    
    .service-card {
        padding: 1.25rem;
    }
    
    .service-icon-img {
        width: 56px !important;
        height: 56px !important;
        max-width: 56px !important;
        max-height: 56px !important;
        margin-bottom: 0.875rem;
    }
    
    .service-card h3 {
        font-size: 1.15rem;
        margin-bottom: 0.625rem;
    }
    
    .service-card p {
        font-size: 0.9rem;
        line-height: 1.6;
    }
    
    .hero-buttons {
        flex-direction: column;
        align-items: center;
        gap: 0.75rem;
    }
    
    .btn-primary,
    .btn-secondary {
        width: 100%;
        max-width: 300px;
        font-size: 0.95rem;
        padding: 12px 20px;
    }
    
    .section-header h2 {
        font-size: 1.5rem;
        margin-bottom: 0.75rem;
    }
    
    .section-header p {
        font-size: 0.95rem;
        line-height: 1.6;
    }
}

/* Loading and Animation States */
.loading {
    opacity: 0.6;
    pointer-events: none;
}

.fade-in {
    animation: fadeIn 0.6s ease-out;
}

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

/* Success/Error Messages */
.message {
    padding: 1rem;
    border-radius: var(--border-radius);
    margin-bottom: 1rem;
    font-weight: 500;
}

.message.success {
    background: rgba(34, 197, 94, 0.1);
    color: #22c55e;
    border: 1px solid rgba(34, 197, 94, 0.2);
}

.message.error {
    background: rgba(239, 68, 68, 0.1);
    color: #ef4444;
    border: 1px solid rgba(239, 68, 68, 0.2);
}

/* Additional Page Styles */

/* Company Timeline */
.company-timeline {
    padding: 100px 0;
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
    position: relative;
    overflow: hidden;
}

.company-timeline::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grain" width="100" height="100" patternUnits="userSpaceOnUse"><circle cx="25" cy="25" r="1" fill="%23e2e8f0" opacity="0.3"/><circle cx="75" cy="75" r="1" fill="%23cbd5e1" opacity="0.2"/><circle cx="50" cy="10" r="0.5" fill="%23f1f5f9" opacity="0.4"/></pattern></defs><rect width="100" height="100" fill="url(%23grain)"/></svg>');
    opacity: 0.4;
    pointer-events: none;
}

.timeline {
    position: relative;
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 2rem;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 50%;
    top: 0;
    bottom: 0;
    width: 4px;
    background: linear-gradient(180deg, var(--primary-color) 0%, var(--accent-color) 50%, var(--primary-color) 100%);
    transform: translateX(-50%);
    border-radius: 2px;
    box-shadow: 0 0 20px rgba(59, 130, 246, 0.3);
    will-change: auto;
    backface-visibility: hidden;
}

.timeline-item {
    position: relative;
    margin-bottom: 5rem;
    display: flex;
    align-items: center;
    opacity: 1;
    transform: none;
    min-height: 120px;
}

/* 奇数项：内容在左边 */
.timeline-item:nth-child(odd) {
    flex-direction: row;
}

.timeline-item:nth-child(odd) .timeline-content {
    margin-right: 3rem;
    text-align: left;
    max-width: 42%;
    margin-left: 0;
}

/* 偶数项：内容在右边 */
.timeline-item:nth-child(even) {
    flex-direction: row-reverse;
}

.timeline-item:nth-child(even) .timeline-content {
    margin-left: 3rem;
    text-align: left;
    max-width: 42%;
    margin-right: 0;
}

/* 时间点居中定位 */
.timeline-year {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    z-index: 3;
    top: 50%;
    transform: translate(-50%, -50%);
}

/* 添加连接线 */
.timeline-item:nth-child(odd) .timeline-content::after {
    content: '';
    position: absolute;
    right: -15px;
    top: 50%;
    transform: translateY(-50%);
    width: 15px;
    height: 2px;
    background: linear-gradient(90deg, #3b82f6 0%, rgba(59, 130, 246, 0.3) 100%);
    z-index: 1;
}

.timeline-item:nth-child(even) .timeline-content::after {
    content: '';
    position: absolute;
    left: -15px;
    top: 50%;
    transform: translateY(-50%);
    width: 15px;
    height: 2px;
    background: linear-gradient(270deg, #3b82f6 0%, rgba(59, 130, 246, 0.3) 100%);
    z-index: 1;
}

/* Timeline animation removed to prevent flickering on page load */
/* .timeline-item:nth-child(1) { animation-delay: 0.1s; } */
/* .timeline-item:nth-child(2) { animation-delay: 0.2s; } */
/* .timeline-item:nth-child(3) { animation-delay: 0.3s; } */
/* .timeline-item:nth-child(4) { animation-delay: 0.4s; } */
/* .timeline-item:nth-child(5) { animation-delay: 0.5s; } */
/* .timeline-item:nth-child(6) { animation-delay: 0.6s; } */
/* .timeline-item:nth-child(7) { animation-delay: 0.7s; } */
/* .timeline-item:nth-child(8) { animation-delay: 0.8s; } */

/* @keyframes timelineFadeIn {
    to {
        opacity: 1;
        transform: translateY(0);
    }
} */

.timeline-item:nth-child(odd) {
    flex-direction: row;
}

.timeline-item:nth-child(even) {
    flex-direction: row-reverse;
}

.timeline-year {
    background: linear-gradient(135deg, #3b82f6 0%, #1d4ed8 100%);
    color: white;
    padding: 0.8rem 1.2rem;
    border-radius: 20px;
    font-weight: 600;
    font-size: 0.9rem;
    white-space: nowrap;
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    z-index: 3;
    min-width: 90px;
    text-align: center;
    box-shadow: 0 3px 12px rgba(59, 130, 246, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: all 0.2s ease;
    flex-shrink: 0;
}

.timeline-year:hover {
    transform: translate(-50%, -50%) scale(1.02);
    box-shadow: 0 4px 16px rgba(59, 130, 246, 0.4);
}



.timeline-content {
    background: rgba(255, 255, 255, 0.9);
    padding: 2rem;
    border-radius: 15px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.08);
    border: 1px solid rgba(0, 0, 0, 0.05);
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
    position: relative;
    overflow: visible;
    text-align: left;
    max-width: 42%;
}

.timeline-content:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.12);
}

.timeline-content::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-color) 0%, var(--accent-color) 100%);
    border-radius: 20px 20px 0 0;
}

.timeline-content:hover {
    transform: translateY(-5px);
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.15), 0 12px 24px rgba(0, 0, 0, 0.1);
}

.timeline-content h3 {
    color: var(--primary-color);
    margin-bottom: 1rem;
    font-size: 1.3rem;
    font-weight: 700;
    position: relative;
}

.timeline-content h3::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 0;
    width: 40px;
    height: 3px;
    background: linear-gradient(90deg, var(--accent-color) 0%, var(--primary-color) 100%);
    border-radius: 2px;
}

.timeline-content p {
    color: var(--text-secondary);
    font-size: 1rem;
    line-height: 1.7;
    margin: 0;
}

.timeline-item::before {
    content: '';
    position: absolute;
    left: 50%;
    top: 50%;
    width: 20px;
    height: 20px;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--accent-color) 100%);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    z-index: 3;
    border: 4px solid white;
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.4);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.timeline-item:hover::before {
    transform: translate(-50%, -50%) scale(1.1);
    box-shadow: 0 6px 20px rgba(59, 130, 246, 0.6);
}

/* Responsive Timeline */
@media (max-width: 768px) {
    .company-timeline {
        padding: 60px 0;
    }
    
    .timeline {
        padding: 0 1rem;
    }
    
    .timeline::before {
        left: 1.5rem;
        width: 3px;
        transform: none;
    }
    
    .timeline-item {
        flex-direction: column !important;
        align-items: flex-start !important;
        padding-left: 3.5rem;
        margin-bottom: 2.5rem;
        position: relative;
        display: flex !important;
    }
    
    .timeline-year {
        position: static !important;
        left: auto !important;
        top: auto !important;
        transform: none !important;
        margin: 0 0 1rem 0 !important;
        align-self: flex-start !important;
        font-size: 0.9rem;
        padding: 0.6rem 1rem;
        min-width: 100px;
        order: -1 !important;
        z-index: 2;
        display: block !important;
        width: auto;
        flex-shrink: 0;
    }
    
    .timeline-content {
        max-width: 100% !important;
        padding: 1.5rem;
        margin-left: 0 !important;
        margin-right: 0 !important;
        margin-top: 0 !important;
        order: 0 !important;
        width: 100%;
        position: relative;
        z-index: 1;
        flex: 1;
    }
    
    .timeline-item::before {
        left: 1.5rem;
        top: 0.5rem;
        width: 16px;
        height: 16px;
        transform: translate(-50%, 0);
    }
    
    .timeline-item:nth-child(odd) .timeline-content::after,
    .timeline-item:nth-child(even) .timeline-content::after {
        display: none;
    }
    
    .timeline-content h3 {
        font-size: 1.1rem;
        margin-bottom: 0.75rem;
    }
    
    .timeline-content p {
        font-size: 0.9rem;
        line-height: 1.6;
    }
}

/* Timeline Scroll Animation - Disabled to prevent flickering */
/* .timeline-item {
    transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
} */

/* .timeline-item.animate-in {
    opacity: 1;
    transform: translateY(0);
} */

/* Timeline Section Header Enhancement */
.company-timeline .section-header {
    text-align: center;
    margin-bottom: 4rem;
    position: relative;
}

.company-timeline .section-header h2 {
    font-size: 2.5rem;
    font-weight: 800;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--accent-color) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin: 0 auto 1rem;
    position: relative;
    display: inline-block;
    width: fit-content;
    max-width: 100%;
}

.company-timeline .section-header::after {
    content: '';
    position: absolute;
    top: calc(2.5rem + 1rem - 10px);
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-color) 0%, var(--accent-color) 100%);
    border-radius: 2px;
    pointer-events: none;
    z-index: 1;
}

.company-timeline .section-header .history-subtitle {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-top: 0.5rem;
    margin-bottom: 1.5rem;
    font-weight: 400;
    font-style: italic;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.company-timeline .section-header p {
    font-size: 1.1rem;
    color: var(--text-secondary);
    max-width: 800px;
    margin: 0 auto;
    line-height: 1.7;
    text-align: left;
}

/* Timeline Decorative Elements */

.story-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.story-text h2 {
    margin-bottom: 1.5rem;
}

.story-text p {
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
}

.story-image figure {
    margin: 0;
    display: flex;
    flex-direction: column;
}

.story-image img {
    width: 100%;
    height: 400px;
    object-fit: cover;
    border-radius: var(--border-radius);
}

.story-image figcaption {
    font-size: 0.9rem;
    color: var(--text-muted);
    margin-top: 0.75rem;
    line-height: 1.5;
    font-style: italic;
}

/* Advantages */
.advantages {
    padding: 80px 0;
    background: var(--bg-secondary);
}

.advantages-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.advantage-card {
    background: var(--bg-primary);
    padding: 2rem;
    border-radius: var(--border-radius);
    border: 1px solid var(--border-color);
    transition: var(--transition);
    text-align: left;
    box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px 0 rgba(0, 0, 0, 0.06);
}

.advantage-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary-color);
}

.advantage-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 1.5rem;
    background: var(--gradient);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
}

/* Certifications */
.certifications {
    padding: 80px 0;
    background: var(--bg-primary);
}

.certificates-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin-bottom: 3rem;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

.certificate-item {
    background: var(--bg-primary);
    padding: 1.5rem;
    border-radius: var(--border-radius);
    border: 1px solid var(--border-color);
    box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px 0 rgba(0, 0, 0, 0.06);
    transition: var(--transition);
    text-align: center;
}

.certificate-item:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary-color);
}

.certificate-item a {
    display: block;
    text-decoration: none;
}

.certificate-item img {
    width: 100%;
    height: auto;
    border-radius: 8px;
    display: block;
    transition: var(--transition);
}

.certificate-item:hover img {
    transform: scale(1.05);
}

.certificate-item h4 {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-top: 1rem;
    margin-bottom: 0.5rem;
    text-align: center;
}

.certificate-item p {
    font-size: 0.9rem;
    color: var(--text-secondary);
    line-height: 1.6;
    margin: 0;
    text-align: left;
}

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

.certificates-cta .btn-secondary {
    display: inline-block;
    padding: 14px 32px;
    font-size: 1rem;
    font-weight: 600;
    text-decoration: none;
}

/* Certifications Page Styles */
.certification-section {
    padding: 60px 0;
}

.certification-content {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 3rem;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
}

.certification-content[style*="flex-direction: row-reverse"] {
    grid-template-columns: 1.5fr 1fr;
    direction: rtl;
}

.certification-content[style*="flex-direction: row-reverse"] > * {
    direction: ltr;
}

.certification-logo {
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    background: white;
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    padding: 20px;
    box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.05), 0 1px 2px 0 rgba(0, 0, 0, 0.03);
    min-height: 200px;
    width: 100%;
    max-width: 300px;
    margin: 0 auto;
}

.certification-logo img {
    max-width: 100%;
    max-height: 160px;
    width: auto;
    height: auto;
    object-fit: contain;
    display: block;
}

/* Visual center alignment adjustments */
.certification-logo img[src*="iso9001-logo"] {
    transform: translateY(5px);
}

.certification-logo img[src*="grs-logo"] {
    transform: scale(1.06);
}

.certification-text h2 {
    font-size: 2rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 1rem;
}

.certification-text p {
    font-size: 1.1rem;
    line-height: 1.7;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}

@media (max-width: 768px) {
    .certification-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .certification-content[style*="flex-direction: row-reverse"] {
        flex-direction: column !important;
    }
    
    .certification-logo {
        min-height: 180px;
        padding: 15px;
        max-width: 100%;
    }
    
    .certification-logo img {
        max-height: 150px;
    }
    
    .certification-text h2 {
        font-size: 1.75rem;
    }
    
    .certification-text p {
        font-size: 1rem;
    }
}

/* Gallery */
.gallery {
    padding: 80px 0;
    background: var(--bg-secondary);
}



.gallery-overlay h4 {
    margin-bottom: 0.5rem;
    color: white;
}

.gallery-overlay p {
    color: rgba(255, 255, 255, 0.9);
    margin: 0;
}

/* Specifications */
.specifications {
    padding: 80px 0;
    background: var(--bg-secondary);
}

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

.spec-category {
    background: var(--bg-primary);
    padding: 2rem;
    border-radius: var(--border-radius);
    border: 1px solid var(--border-color);
    box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px 0 rgba(0, 0, 0, 0.06);
}

.spec-category h3 {
    margin-bottom: 1.5rem;
    color: var(--text-primary);
}

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

.spec-category li {
    padding: 0.5rem 0;
    color: var(--text-secondary);
    position: relative;
    padding-left: 1.5rem;
}

.spec-category li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--primary-color);
    font-weight: bold;
}

/* Branding */
.branding {
    padding: 80px 0;
    background: var(--bg-primary);
}

.branding-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.branding-features {
    margin-top: 2rem;
}

.feature {
    margin-bottom: 2rem;
}

.feature h4 {
    margin-bottom: 0.5rem;
    color: var(--text-primary);
}

.feature p {
    color: var(--text-secondary);
}

.branding-image img {
    width: 100%;
    height: 400px;
    object-fit: cover;
    border-radius: var(--border-radius);
}

/* Logistics */
.logistics {
    padding: 80px 0;
    background: var(--bg-secondary);
}

.logistics-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.logistics-item {
    background: var(--bg-primary);
    padding: 2rem;
    border-radius: var(--border-radius);
    border: 1px solid var(--border-color);
    text-align: center;
    transition: var(--transition);
    box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px 0 rgba(0, 0, 0, 0.06);
}

.logistics-item:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary-color);
}

.logistics-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 1.5rem;
    background: var(--gradient);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
}

.logistics-item h3 {
    margin-bottom: 1rem;
    color: var(--text-primary);
    text-align: center;
}

.logistics-item p {
    color: var(--text-secondary);
    text-align: left;
}

/* Process Timeline */
.process-flow {
    padding: 80px 0;
    background: var(--bg-primary);
}

.process-timeline {
    margin-top: 3rem;
}

.timeline-item {
    display: flex;
    align-items: center;
    margin-bottom: 3rem;
    position: relative;
}


.timeline-number {
    width: 60px;
    height: 60px;
    background: var(--gradient);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: 700;
    margin-right: 2rem;
    flex-shrink: 0;
}

.timeline-content h3 {
    margin-bottom: 0.5rem;
    color: var(--text-primary);
}

.timeline-content p {
    color: var(--text-secondary);
}

/* Product Gallery */
.product-gallery {
    padding: 80px 0;
    background: var(--bg-secondary);
}

.gallery-filters {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 3rem;
    flex-wrap: wrap;
}

.filter-btn {
    padding: 10px 20px;
    border: 2px solid var(--border-color);
    background: transparent;
    color: var(--text-secondary);
    border-radius: var(--border-radius);
    cursor: pointer;
    transition: var(--transition);
    font-weight: 500;
}

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

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

.product-item {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    background: #ffffff;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    border: none;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.06);
    padding: 6px;
}

.product-item img {
    width: 100%;
    height: 300px;
    object-fit: cover;
    transition: var(--transition);
    border-radius: 8px;
    border: none;
}

/* When only one product is visible (after filtering), make it larger */
.products-grid.single-product {
    grid-template-columns: 1fr;
    max-width: 600px;
    margin: 0 auto;
}

.products-grid.single-product .product-item img {
    height: 500px;
}

.product-overlay {
    position: absolute;
    bottom: 6px;
    left: 6px;
    right: 6px;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.8));
    color: white;
    padding: 2rem 1.5rem 1.5rem;
    transform: translateY(100%);
    transition: var(--transition);
    border-radius: 0 0 8px 8px;
}

.product-item:hover .product-overlay {
    transform: translateY(0);
}

.product-item:hover {
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12), 0 4px 8px rgba(0, 0, 0, 0.08);
}

.product-item:hover img {
    transform: translateY(-3px);
}

.product-overlay h4 {
    margin-bottom: 0.5rem;
    color: white;
}

.product-overlay p {
    color: rgba(255, 255, 255, 0.9);
    margin: 0;
}

/* Factory Tour */
.factory-tour {
    padding: 80px 0;
    background: var(--bg-primary);
}

.factory-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.factory-item {
    background: #ffffff;
    border-radius: 12px;
    overflow: visible;
    border: none;
    transition: var(--transition);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.06);
    padding: 6px;
}

.factory-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12), 0 4px 8px rgba(0, 0, 0, 0.08);
}

.factory-item img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    border-radius: 8px;
    border: none;
}

.factory-content {
    padding: 1.5rem;
}

.factory-content h3 {
    margin-bottom: 0.5rem;
    color: var(--text-primary);
}

.factory-content p {
    color: var(--text-secondary);
}

/* Packaging Examples */
.packaging-examples {
    padding: 80px 0;
    background: var(--bg-secondary);
}

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

.packaging-item {
    background: #ffffff;
    border-radius: 12px;
    overflow: visible;
    border: none;
    transition: var(--transition);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.06);
    padding: 6px;
}

.packaging-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12), 0 4px 8px rgba(0, 0, 0, 0.08);
}

.packaging-item img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    border-radius: 8px;
    border: none;
}

.packaging-content {
    padding: 1.5rem;
}

.packaging-content h3 {
    margin-bottom: 0.5rem;
    color: var(--text-primary);
}

.packaging-content p {
    color: var(--text-secondary);
}

/* Global Market Understanding Section */
.global-market-section {
    padding: 80px 0;
    background: linear-gradient(135deg, #f0f9ff 0%, #e0f2fe 50%, #f0f9ff 100%);
    position: relative;
    overflow: hidden;
}

.global-market-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: 
        radial-gradient(circle at 20% 30%, rgba(59, 130, 246, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 70%, rgba(147, 197, 253, 0.1) 0%, transparent 50%);
    pointer-events: none;
}

.global-market-content {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 4rem;
    align-items: center;
    position: relative;
    z-index: 1;
}

.global-market-text h2 {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
    color: var(--text-primary);
    font-weight: 700;
}

.global-market-text .market-intro {
    font-size: 1.2rem;
    color: var(--text-secondary);
    margin-bottom: 1rem;
    line-height: 1.8;
}

.global-market-text .market-highlight {
    font-size: 1.3rem;
    color: var(--primary-color);
    margin-bottom: 1.5rem;
    line-height: 1.8;
}

.global-market-text .market-highlight strong {
    color: var(--primary-color);
    font-weight: 700;
}

.global-market-text .market-desc {
    font-size: 1.1rem;
    color: var(--text-secondary);
    margin-bottom: 2rem;
    line-height: 1.8;
}

.global-market-text .market-desc strong {
    color: var(--text-primary);
    font-weight: 600;
}

.market-blog-link {
    display: inline-block;
    margin-top: 1rem;
    font-size: 1.1rem;
    padding: 1rem 2rem;
    transition: var(--transition);
}

.market-blog-link:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.global-market-visual {
    position: relative;
    height: 400px;
}

.world-map-container {
    position: relative;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #dbeafe 0%, #bfdbfe 100%);
    border-radius: var(--border-radius);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    overflow: hidden;
}

.world-map-container::before {
    content: '🌍';
    font-size: 8rem;
    opacity: 0.3;
    position: absolute;
    z-index: 0;
}

.flag-marker {
    position: absolute;
    font-size: 2.5rem;
    cursor: pointer;
    transition: var(--transition);
    z-index: 2;
    animation: float 3s ease-in-out infinite;
}

.flag-marker:hover {
    transform: scale(1.2);
    z-index: 3;
}

.flag-brazil {
    top: 45%;
    left: 25%;
    animation-delay: 0s;
}

.flag-germany {
    top: 20%;
    left: 50%;
    animation-delay: 0.5s;
}

.flag-nigeria {
    top: 35%;
    left: 50%;
    animation-delay: 1s;
}

.flag-turkey {
    top: 25%;
    left: 55%;
    animation-delay: 1.5s;
}

.flag-usa {
    top: 30%;
    left: 15%;
    animation-delay: 2s;
}

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

/* Responsive for Global Market Section */
@media (max-width: 968px) {
    .global-market-content {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
    
    .global-market-visual {
        height: 300px;
    }
    
    .global-market-text h2 {
        font-size: 2rem;
    }
}

@media (max-width: 768px) {
    .global-market-section {
        padding: 60px 0;
    }
    
    .global-market-text h2 {
        font-size: 1.75rem;
    }
    
    .global-market-text .market-intro,
    .global-market-text .market-highlight {
        font-size: 1.1rem;
    }
    
    .world-map-container::before {
        font-size: 5rem;
    }
    
    .flag-marker {
        font-size: 2rem;
    }
}

/* Insights/Blog Page Styles */
.insights-hero {
    padding: 80px 0 60px;
    background: linear-gradient(135deg, #f8fafc 0%, #e0f2fe 50%, #f8fafc 100%);
}

.insights-hero .hero-text {
    text-align: center;
    max-width: 900px;
    margin: 0 auto;
}

.insights-hero h1 {
    font-size: 3rem;
    margin-bottom: 1.5rem;
    background: var(--gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.insights-hero p {
    font-size: 1.25rem;
    color: var(--text-secondary);
    line-height: 1.8;
}

/* Blog Categories Filter */
.blog-categories {
    padding: 40px 0;
    background: var(--bg-primary);
    border-bottom: 1px solid var(--border-color);
}

.category-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    justify-content: center;
}

.category-filter {
    padding: 0.75rem 1.5rem;
    border: 2px solid var(--border-color);
    background: white;
    color: var(--text-primary);
    border-radius: var(--border-radius);
    font-size: 0.95rem;
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition);
}

.category-filter:hover {
    border-color: var(--primary-color);
    color: var(--primary-color);
    transform: translateY(-2px);
}

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

/* Blog Posts Section */
.blog-posts-section {
    padding: 60px 0;
    background: var(--bg-primary);
}

.blog-posts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 2.5rem;
    margin-top: 3rem;
}

.blog-post-card {
    background: white;
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
    display: block;
    opacity: 1;
    transform: translateY(0);
}

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

.blog-post-image {
    position: relative;
    width: 100%;
    height: 280px;
    overflow: hidden;
    background: var(--bg-secondary);
    display: flex;
    align-items: center;
    justify-content: center;
}

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

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

.blog-category-badge {
    position: absolute;
    top: 1rem;
    left: 1rem;
    background: var(--primary-color);
    color: white;
    padding: 0.4rem 0.9rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.blog-post-content {
    padding: 1.5rem;
}

.blog-post-content h3 {
    font-size: 1.35rem;
    margin-bottom: 0.75rem;
    color: var(--text-primary);
    line-height: 1.4;
    font-weight: 600;
}

.blog-post-meta {
    font-size: 0.875rem;
    color: var(--text-muted);
    margin-bottom: 1rem;
    display: flex;
    gap: 0.5rem;
}

.blog-post-content p {
    color: var(--text-secondary);
    line-height: 1.7;
    margin-bottom: 1.25rem;
    font-size: 0.95rem;
}

.blog-read-more {
    color: var(--primary-color);
    font-weight: 600;
    text-decoration: none;
    font-size: 0.95rem;
    transition: var(--transition);
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.blog-read-more:hover {
    color: var(--primary-hover);
    gap: 1rem;
}

.insights-cta-title {
    font-size: 2.25rem;
    margin-bottom: 1rem;
    color: var(--text-primary);
}

.insights-cta-desc {
    font-size: 1.1rem;
    color: var(--text-secondary);
    margin-bottom: 2rem;
}

/* Responsive for Blog Page */
@media (max-width: 968px) {
    .blog-posts-grid {
        grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
        gap: 2rem;
    }
    
    .insights-hero h1 {
        font-size: 2.25rem;
    }
    
    .insights-hero p {
        font-size: 1.1rem;
    }
}

@media (max-width: 768px) {
    .insights-hero {
        padding: 60px 0 40px;
    }
    
    .insights-hero h1 {
        font-size: 1.75rem;
    }
    
    .insights-hero p {
        font-size: 1rem;
    }
    
    .blog-posts-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .category-filters {
        justify-content: flex-start;
        overflow-x: auto;
        padding-bottom: 0.5rem;
    }
    
    .category-filter {
        white-space: nowrap;
        flex-shrink: 0;
    }
}

/* Blog Post Single Page Styles */
.blog-post-hero {
    padding: 120px 0 60px;
    background: linear-gradient(135deg, #f8fafc 0%, #e0f2fe 50%, #f8fafc 100%);
}

.blog-post-header {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.back-link {
    display: inline-block;
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 500;
    margin-bottom: 1.5rem;
    transition: var(--transition);
}

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

.blog-post-header .blog-category-badge {
    display: inline-block;
    background: var(--primary-color);
    color: white;
    padding: 0.4rem 0.9rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 1.5rem;
}

.blog-post-header h1 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: var(--text-primary);
    line-height: 1.3;
}

.blog-post-header .blog-post-meta {
    font-size: 1rem;
    color: var(--text-muted);
    display: flex;
    gap: 1rem;
    justify-content: center;
}

.blog-post-content-section {
    padding: 60px 0;
    background: white;
}

.blog-post-main {
    max-width: 800px;
    margin: 0 auto;
}

.blog-post-featured-image {
    margin-bottom: 3rem;
    border-radius: var(--border-radius);
    overflow: hidden;
}

.blog-post-featured-image img {
    width: 100%;
    height: auto;
    display: block;
}

.blog-post-text {
    line-height: 1.8;
    color: var(--text-primary);
}

.blog-post-text .blog-intro {
    font-size: 1.25rem;
    color: var(--text-secondary);
    font-weight: 500;
    margin-bottom: 2.5rem;
    padding: 1.5rem;
    background: var(--bg-secondary);
    border-left: 4px solid var(--primary-color);
    border-radius: var(--border-radius);
}

.blog-post-text h2 {
    font-size: 2rem;
    margin-top: 3rem;
    margin-bottom: 1.5rem;
    color: var(--text-primary);
}

.blog-post-text h3 {
    font-size: 1.5rem;
    margin-top: 2rem;
    margin-bottom: 1rem;
    color: var(--text-primary);
}

.blog-post-text p {
    margin-bottom: 1.5rem;
    font-size: 1.05rem;
    color: var(--text-secondary);
}

.blog-post-text ul {
    margin: 1.5rem 0;
    padding-left: 2rem;
}

.blog-post-text li {
    margin-bottom: 0.75rem;
    font-size: 1.05rem;
    color: var(--text-secondary);
}

.blog-post-text li strong {
    color: var(--text-primary);
    font-weight: 600;
}

.blog-image-container {
    margin: 2.5rem 0;
}

.blog-image-container img {
    width: 100%;
    height: auto;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
}

.image-caption {
    font-size: 0.9rem;
    color: var(--text-muted);
    text-align: center;
    margin-top: 0.75rem;
    font-style: italic;
}

.blog-post-cta {
    margin-top: 4rem;
    padding: 3rem;
    background: linear-gradient(135deg, #f0f9ff 0%, #e0f2fe 100%);
    border-radius: var(--border-radius);
    text-align: center;
}

.blog-post-cta h2 {
    font-size: 2rem;
    margin-bottom: 1rem;
    color: var(--text-primary);
}

.blog-post-cta p {
    font-size: 1.1rem;
    color: var(--text-secondary);
    margin-bottom: 2rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

@media (max-width: 768px) {
    .blog-post-hero {
        padding: 100px 0 40px;
    }
    
    .blog-post-header h1 {
        font-size: 1.75rem;
    }
    
    .blog-post-text .blog-intro {
        font-size: 1.1rem;
    }
    
    .blog-post-text h2 {
        font-size: 1.5rem;
    }
    
    .blog-post-text h3 {
        font-size: 1.25rem;
    }
    
    .blog-post-cta {
        padding: 2rem 1.5rem;
    }
}

/* Testimonials */
.testimonials {
    padding: 80px 0;
    background: var(--bg-primary);
}

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.testimonial-item {
    background: var(--bg-secondary);
    padding: 2rem;
    border-radius: var(--border-radius);
    border: 1px solid var(--border-color);
    transition: var(--transition);
}

.testimonial-item:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.testimonial-content {
    margin-bottom: 1.5rem;
}

.testimonial-content p {
    font-style: italic;
    color: var(--text-secondary);
    font-size: 1.1rem;
    line-height: 1.6;
}

.testimonial-author h4 {
    margin-bottom: 0.25rem;
    color: var(--text-primary);
}

.testimonial-author span {
    color: var(--text-muted);
    font-size: 0.9rem;
}

/* Address Container Styles */
.address-container {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-top: 0.5rem;
}

.address-item {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    padding: 0.75rem;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: var(--transition);
}

.address-item:hover {
    background: rgba(255, 255, 255, 0.15);
    transform: translateY(-2px);
}

.address-icon {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: var(--gradient);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    box-shadow: 0 2px 8px rgba(30, 64, 175, 0.3);
}

.address-icon i {
    color: white;
    font-size: 14px;
}

.address-content h4 {
    margin: 0 0 0.25rem 0;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-primary);
}

.address-content p {
    margin: 0;
    font-size: 0.85rem;
    color: var(--text-secondary);
    line-height: 1.4;
}

/* Responsive adjustments for address container */
@media (max-width: 768px) {
    .address-container {
        gap: 0.75rem;
    }
    
    .address-item {
        padding: 0.5rem;
        gap: 0.5rem;
    }
    
    .address-icon {
        width: 28px;
        height: 28px;
    }
    
    .address-icon i {
        font-size: 12px;
    }
    
    .address-content h4 {
        font-size: 0.85rem;
    }
    
    .address-content p {
        font-size: 0.8rem;
    }
}

/* Contact Info */
.contact-info {
    padding: 80px 0;
    background: var(--bg-secondary);
}

.contact-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.contact-item {
    background: var(--bg-primary);
    padding: 2rem;
    border-radius: var(--border-radius);
    border: 1px solid var(--border-color);
    text-align: center;
    transition: var(--transition);
}

.contact-item:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary-color);
}

.contact-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 1.5rem;
    background: var(--gradient);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
}

.contact-item h3 {
    margin-bottom: 0.5rem;
    color: var(--text-primary);
}

.contact-item p {
    margin-bottom: 1rem;
    color: var(--text-secondary);
}

.contact-item a {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
    transition: var(--transition);
}

.contact-item a:hover {
    color: var(--primary-hover);
}

.contact-item span {
    color: var(--text-secondary);
    line-height: 1.6;
}

/* Contact Form Section */
.contact-form-section {
    padding: 80px 0;
    background: var(--bg-primary);
}

.form-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: start;
}

.form-benefits {
    margin-top: 2rem;
    min-height: 200px; /* Reserve space to prevent layout shift */
}

.benefit {
    margin-bottom: 1.5rem;
    min-height: 60px; /* Reserve space for each benefit item */
}

.benefit h4 {
    margin-bottom: 0.5rem;
    color: var(--text-primary);
    min-height: 1.5em; /* Reserve space for title */
    line-height: 1.5;
}

.benefit p {
    color: var(--text-secondary);
    min-height: 1.5em; /* Reserve space for description */
    line-height: 1.6;
}

.form-container {
    background: var(--bg-primary);
    padding: 2rem;
    border-radius: var(--border-radius);
    border: 1px solid var(--border-color);
    box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px 0 rgba(0, 0, 0, 0.06);
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.contact-form .form-group {
    margin-bottom: 0;
}

.contact-form select {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    background: var(--bg-secondary);
    color: var(--text-primary);
    font-size: 1rem;
    transition: var(--transition);
}

.contact-form select:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(30, 64, 175, 0.1);
}

/* FAQ */
.faq {
    padding: 80px 0;
    background: var(--bg-primary);
}

.faq-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
}

.faq-item {
    background: var(--bg-primary);
    padding: 2rem;
    border-radius: var(--border-radius);
    border: 1px solid var(--border-color);
    transition: var(--transition);
    box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px 0 rgba(0, 0, 0, 0.06);
}

.faq-item:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow);
}

.faq-item h3 {
    margin-bottom: 1rem;
    color: var(--text-primary);
}

.faq-item p {
    color: var(--text-secondary);
    line-height: 1.6;
}

/* Enhanced Color Scheme Styles */
/* Removed circular background gradients for service icons - now using PNG images */
.service-card:nth-child(odd) .service-icon,
.advantage-card:nth-child(odd) .advantage-icon {
    background: none !important;
    border-radius: 0 !important;
}

.service-card:nth-child(even) .service-icon,
.advantage-card:nth-child(even) .advantage-icon {
    background: none !important;
    border-radius: 0 !important;
}

.logistics-item:nth-child(odd) .logistics-icon {
    background: var(--accent-gradient);
}

.contact-item:nth-child(even) .contact-icon {
    background: var(--accent-gradient);
}

/* Professional accent borders */
.category-item:hover,
.product-item:hover,
.factory-item:hover,
.packaging-item:hover {
    border-color: var(--accent-color);
}

/* Enhanced shadows with professional tones */
.service-card:hover,
.advantage-card:hover,
.logistics-item:hover {
    box-shadow: 0 20px 40px rgba(55, 65, 81, 0.1), var(--shadow-lg);
}

/* Mobile Responsive Updates */
@media (max-width: 768px) {
    .certificates-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        max-width: 100%;
    }
    
    .certificate-item {
        padding: 1.25rem;
    }
    
    .story-content,
    .branding-content,
    .form-content,
    .hours-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .form-row {
        grid-template-columns: 1fr;
    }
    
    .timeline-item {
        flex-direction: column;
        text-align: center;
    }
    
    .timeline-item::after {
        display: none;
    }
    
    .timeline-number {
        margin-right: 0;
        margin-bottom: 1rem;
    }
    
    .schedule-item {
        flex-direction: column;
        text-align: center;
        gap: 0.5rem;
    }
    
    .gallery-filters {
        justify-content: flex-start;
        overflow-x: auto;
        padding-bottom: 1rem;
    }
    
    .filter-btn {
        white-space: nowrap;
        flex-shrink: 0;
    }
}
/* Enhanced Mobile Menu Styles */
/* Enhanced Mobile Form Optimizations */
/* Enhanced Touch-friendly optimizations */
@media (max-width: 768px) {
    .btn-primary,
    .btn-secondary {
        min-height: 48px;
        padding: 14px 24px;
        font-size: 1rem;
        touch-action: manipulation;
    }
    
    .nav-link {
        min-height: 44px;
        display: flex;
        align-items: center;
        touch-action: manipulation;
    }
    
    .modal-content {
        margin: 5% auto;
        width: 95%;
        max-height: 90vh;
        overflow-y: auto;
    }
    
    .modal-header {
        padding: 20px 20px 10px;
    }
    
    .quote-form {
        padding: 20px;
    }
    
    .filter-btn {
        min-height: 44px;
        padding: 10px 20px;
        touch-action: manipulation;
    }
}

/* Prevent body scroll when menu is open */
body.menu-open {
    overflow: hidden;
    position: fixed;
    width: 100%;
}

/* Touch feedback */
/* Mobile Language Switcher */
@media (max-width: 768px) {
    .language-switcher {
        margin-left: 10px;
        z-index: 1002;
    }
    
    .language-switcher button {
        padding: 8px 12px;
        font-size: 0.9rem;
        min-height: 44px;
        touch-action: manipulation;
    }
    
    .language-dropdown {
        z-index: 1003;
        right: 0;
        left: auto;
    }
    
    /* Language switcher in mobile menu */
    .nav-menu .language-switcher {
        margin-top: 20px;
        width: 100%;
        text-align: center;
        margin-left: 0;
    }
    
    .nav-menu .language-switcher button {
        width: 100%;
        justify-content: center;
        padding: 12px 20px;
        min-height: 48px;
        border: 1px solid var(--border-color);
        background: var(--bg-secondary);
    }
}

/* Responsive images */
img {
    max-width: 100%;
    height: auto;
    object-fit: cover;
}

/* RTL Support for Arabic */
html[dir="rtl"] {
    direction: rtl;
}

html[dir="rtl"] .nav-container {
    flex-direction: row-reverse;
}

html[dir="rtl"] .nav-menu {
    flex-direction: row-reverse;
}

html[dir="rtl"] .nav-right {
    flex-direction: row-reverse;
}

html[dir="rtl"] .language-switcher {
    text-align: right;
}

html[dir="rtl"] .language-dropdown {
    right: 0;
    left: auto;
}

/* Language-specific styling */
.language-switcher button {
    direction: ltr; /* Keep language switcher LTR */
}

/* Factory Gallery Styles */
.factory-gallery {
    margin: 3rem 0;
}

/* Manufacturing Process Grid */
.manufacturing-process-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.process-step {
    background: white;
    border-radius: var(--border-radius);
    padding: 0;
    box-shadow: var(--shadow);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.process-step:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.process-image {
    width: 100%;
    height: 200px;
    overflow: hidden;
    position: relative;
}

.process-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.process-number {
    position: absolute;
    top: 1rem;
    right: 1rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    background: var(--primary-color);
    color: white;
    border-radius: 50%;
    font-size: 1.5rem;
    font-weight: 700;
    z-index: 2;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.process-step h4,
.process-step p {
    padding: 0 2rem;
}

.process-step h4 {
    padding-top: 2rem;
    margin-bottom: 1rem;
}

.process-step p {
    padding-bottom: 2rem;
}

.process-step h4 {
    font-size: 1.25rem;
    color: var(--text-primary);
    margin-bottom: 1rem;
    font-weight: 600;
    line-height: 1.4;
}

.process-step p {
    color: var(--text-secondary);
    line-height: 1.7;
    font-size: 1rem;
    margin: 0;
}

.manufacturing-intro {
    max-width: 800px;
    margin: 0 auto 3rem;
    text-align: center;
    color: var(--text-secondary);
    font-size: 1.1rem;
    line-height: 1.7;
}

@media (max-width: 768px) {
    .manufacturing-process-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .process-image {
        height: 180px;
    }
    
    .process-number {
        width: 40px;
        height: 40px;
        font-size: 1.25rem;
        top: 0.75rem;
        right: 0.75rem;
    }
    
    .process-step h4,
    .process-step p {
        padding-left: 1.5rem;
        padding-right: 1.5rem;
    }
    
    .process-step h4 {
        padding-top: 1.5rem;
        font-size: 1.1rem;
    }
    
    .process-step p {
        padding-bottom: 1.5rem;
    }
    
    .manufacturing-intro {
        font-size: 1rem;
        margin-bottom: 2rem;
    }
}

.gallery-category {
    margin-bottom: 3rem;
}

.gallery-category h3 {
    font-size: 1.5rem;
    color: #333;
    margin-bottom: 1.5rem;
    text-align: center;
    font-weight: 600;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.gallery-item {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    cursor: pointer;
}

.gallery-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
}

.gallery-item img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    display: block;
}

.gallery-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.8));
    color: white;
    padding: 1rem;
    transform: translateY(100%);
    transition: transform 0.3s ease;
}

.gallery-item:hover .gallery-overlay {
    transform: translateY(0);
}

.gallery-overlay span {
    font-size: 1rem;
    font-weight: 500;
}

/* Modal Styles */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    animation: fadeIn 0.3s ease;
}

.modal-content {
    margin: auto;
    display: block;
    max-width: 90%;
    max-height: 90%;
    object-fit: contain;
    animation: zoomIn 0.3s ease;
}

#caption {
    margin: auto;
    display: block;
    width: 80%;
    max-width: 700px;
    text-align: center;
    color: #ccc;
    padding: 10px 0;
    height: 150px;
}

.close {
    position: absolute;
    top: 15px;
    right: 35px;
    color: #f1f1f1;
    font-size: 40px;
    font-weight: bold;
    transition: 0.3s;
    cursor: pointer;
}

.close:hover,
.close:focus {
    color: #bbb;
    text-decoration: none;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes zoomIn {
    from { transform: scale(0.5); }
    to { transform: scale(1); }
}

@media (max-width: 768px) {
    .gallery-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .gallery-item img {
        height: 200px;
    }
    
    .modal-content {
        max-width: 95%;
        max-height: 80%;
    }
    
    .close {
        top: 10px;
        right: 20px;
        font-size: 30px;
    }
}

/* Chinese language specific styles */
[lang="zh"] .footer-section:nth-child(2),
[lang="zh"] .footer-section:nth-child(3),
[lang="zh"] .footer-section:nth-child(4),
[lang="zh"] .footer-section:nth-child(5) {
    margin-top: 2rem !important;
}
