/* ===== HELIDA Tools Website - Main Stylesheet ===== */

/* ===== CSS Variables ===== */
:root {
    --primary: #1a5f8a;
    --primary-dark: #0f3d5c;
    --primary-light: #2980b9;
    --accent: #e67e22;
    --accent-hover: #d35400;
    --dark: #0a1628;
    --dark-light: #132238;
    --gray-900: #1a1a2e;
    --gray-800: #2d2d3f;
    --gray-700: #4a4a5a;
    --gray-600: #6b6b7b;
    --gray-500: #8e8e9e;
    --gray-400: #b0b0be;
    --gray-300: #d1d1db;
    --gray-200: #e8e8ee;
    --gray-100: #f4f4f7;
    --gray-50: #fafafc;
    --white: #ffffff;
    --shadow-sm: 0 1px 3px rgba(0,0,0,0.08);
    --shadow: 0 4px 20px rgba(0,0,0,0.1);
    --shadow-lg: 0 10px 40px rgba(0,0,0,0.15);
    --shadow-xl: 0 20px 60px rgba(0,0,0,0.2);
    --radius-sm: 6px;
    --radius: 10px;
    --radius-lg: 16px;
    --radius-xl: 24px;
    --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --max-width: 1200px;
    --header-height: 75px;
    --topbar-height: 40px;
}

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

html {
    scroll-behavior: smooth;
    scroll-padding-top: calc(var(--header-height) + var(--topbar-height) + 20px);
}

body {
    font-family: var(--font);
    font-size: 15px;
    line-height: 1.7;
    color: var(--gray-800);
    background: var(--white);
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

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

ul { list-style: none; }

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

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

/* ===== Top Bar ===== */
.top-bar {
    background: var(--dark);
    color: rgba(255,255,255,0.8);
    font-size: 13px;
    height: var(--topbar-height);
    line-height: var(--topbar-height);
    z-index: 1001;
    position: relative;
}

.top-bar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 100%;
}

.top-bar-left span {
    margin-right: 20px;
}

.top-bar-left i {
    margin-right: 6px;
    color: var(--accent);
}

.top-bar-right {
    display: flex;
    align-items: center;
    gap: 16px;
}

.social-top a {
    color: rgba(255,255,255,0.6);
    font-size: 13px;
    margin-left: 12px;
    transition: var(--transition);
}

.social-top a:hover {
    color: var(--accent);
}

/* Language Switcher */
.lang-switcher {
    position: relative;
    z-index: 1002;
}

.lang-btn {
    background: rgba(255,255,255,0.1);
    color: rgba(255,255,255,0.9);
    border: 1px solid rgba(255,255,255,0.15);
    padding: 4px 12px;
    border-radius: var(--radius-sm);
    cursor: pointer;
    font-size: 13px;
    font-family: var(--font);
    display: flex;
    align-items: center;
    gap: 6px;
    transition: var(--transition);
}

.lang-btn:hover {
    background: rgba(255,255,255,0.2);
}

.lang-menu {
    display: none;
    position: absolute;
    top: 100%;
    right: 0;
    margin-top: 6px;
    background: var(--white);
    border-radius: var(--radius);
    box-shadow: var(--shadow-lg);
    min-width: 170px;
    max-height: 320px;
    overflow-y: auto;
    z-index: 1003;
}

.lang-menu.show { display: block; }

.lang-menu a {
    display: block;
    padding: 10px 18px;
    color: var(--gray-800);
    font-size: 14px;
    transition: var(--transition);
    border-bottom: 1px solid var(--gray-100);
}

.lang-menu a:last-child { border-bottom: none; }

.lang-menu a:hover {
    background: var(--gray-50);
    color: var(--primary);
}

/* ===== Header ===== */
.header {
    background: var(--white);
    height: var(--header-height);
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}

.header.scrolled {
    box-shadow: var(--shadow);
}

.header .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 100%;
}

/* Logo */
.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-shrink: 0;
}

.logo-img {
    height: 44px;
    width: auto;
    object-fit: contain;
}

.logo-icon {
    width: 44px;
    height: 44px;
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    border-radius: var(--radius);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-size: 22px;
}

.logo-text {
    display: flex;
    flex-direction: column;
    line-height: 1.2;
}

.logo-name {
    font-size: 20px;
    font-weight: 800;
    color: var(--dark);
    letter-spacing: -0.5px;
}

.logo-sub {
    font-size: 11px;
    color: var(--gray-600);
    text-transform: uppercase;
    letter-spacing: 2px;
    font-weight: 500;
}

/* Navigation */
.nav {
    display: flex;
    align-items: center;
    gap: 4px;
}

.nav-link {
    padding: 8px 16px;
    border-radius: var(--radius-sm);
    font-size: 15px;
    font-weight: 500;
    color: var(--gray-700);
    transition: var(--transition);
    white-space: nowrap;
}

.nav-link:hover,
.nav-link.active {
    color: var(--primary);
    background: rgba(26, 95, 138, 0.06);
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 8px;
}

.btn-search, .btn-mobile-menu, .btn-lang-mobile {
    width: 40px;
    height: 40px;
    border: none;
    background: var(--gray-100);
    border-radius: var(--radius);
    cursor: pointer;
    font-size: 16px;
    color: var(--gray-700);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.btn-search:hover, .btn-mobile-menu:hover, .btn-lang-mobile:hover {
    background: var(--primary);
    color: var(--white);
}

.btn-mobile-menu {
    display: none;
}

.btn-lang-mobile {
    display: none;
}

.lang-menu-mobile {
    display: none;
}

/* Search Overlay */
.search-overlay {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--white);
    padding: 20px 0;
    box-shadow: var(--shadow);
    z-index: 999;
}

.search-overlay.show { display: block; }

.search-box {
    max-width: 600px;
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    gap: 12px;
}

.search-input {
    flex: 1;
    padding: 14px 20px;
    border: 2px solid var(--gray-200);
    border-radius: var(--radius);
    font-size: 16px;
    font-family: var(--font);
    outline: none;
    transition: var(--transition);
}

.search-input:focus {
    border-color: var(--primary);
}

.search-close {
    width: 48px;
    height: 48px;
    border: none;
    background: var(--gray-100);
    border-radius: var(--radius);
    cursor: pointer;
    font-size: 20px;
    color: var(--gray-600);
    transition: var(--transition);
}

.search-close:hover {
    background: #e74c3c;
    color: var(--white);
}

/* ===== Hero / Slider ===== */
.hero {
    position: relative;
    height: calc(100vh - var(--header-height) - var(--topbar-height));
    min-height: 550px;
    max-height: 800px;
    overflow: hidden;
    background: var(--dark);
}

.slider {
    position: relative;
    height: 100%;
}

.slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.8s ease, transform 0.8s ease;
    transform: scale(1.05);
    pointer-events: none;
}

.slide.active {
    opacity: 1;
    transform: scale(1);
    pointer-events: all;
}

.slide-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
}

.slide-bg::after {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: radial-gradient(ellipse at 70% 50%, rgba(26,95,138,0.3) 0%, transparent 60%);
}

.slide-content {
    position: relative;
    z-index: 2;
    height: 100%;
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    gap: 60px;
}

.slide-text {
    color: var(--white);
    animation: fadeInUp 0.8s ease forwards;
}

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

.slide-tag {
    display: inline-block;
    background: rgba(230, 126, 34, 0.2);
    color: var(--accent);
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 20px;
    border: 1px solid rgba(230, 126, 34, 0.3);
}

.slide-text h1 {
    font-size: clamp(28px, 4vw, 48px);
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 20px;
    letter-spacing: -1px;
}

.slide-text p {
    font-size: clamp(15px, 1.5vw, 18px);
    color: rgba(255,255,255,0.7);
    margin-bottom: 32px;
    max-width: 540px;
    line-height: 1.7;
}

.slide-btns {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 28px;
    border-radius: 50px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    border: 2px solid transparent;
    font-family: var(--font);
    white-space: nowrap;
}

.btn-primary {
    background: var(--accent);
    color: var(--white);
    border-color: var(--accent);
}

.btn-primary:hover {
    background: var(--accent-hover);
    border-color: var(--accent-hover);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(230, 126, 34, 0.35);
}

.btn-outline {
    background: transparent;
    color: var(--white);
    border-color: rgba(255,255,255,0.3);
}

.btn-outline:hover {
    background: rgba(255,255,255,0.1);
    border-color: rgba(255,255,255,0.6);
    transform: translateY(-2px);
}

.btn-lg {
    padding: 18px 36px;
    font-size: 17px;
}

.btn-block {
    width: 100%;
    justify-content: center;
}

/* Hero Product Showcase */
.hero-product-showcase {
    position: relative;
    width: 100%;
    height: 400px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-blade {
    position: absolute;
    color: rgba(255,255,255,0.08);
    animation: floatBlade 6s ease-in-out infinite;
}

.hero-blade-1 {
    font-size: 280px;
    top: 10%;
    left: 10%;
    animation-delay: 0s;
}

.hero-blade-2 {
    font-size: 220px;
    top: 40%;
    right: 5%;
    animation-delay: -2s;
    color: rgba(255,255,255,0.05);
}

.hero-blade-3 {
    font-size: 160px;
    bottom: 10%;
    left: 25%;
    animation-delay: -4s;
    color: rgba(230, 126, 34, 0.08);
}

@keyframes floatBlade {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    33% { transform: translateY(-15px) rotate(5deg); }
    66% { transform: translateY(10px) rotate(-3deg); }
}

/* Slider Controls */
.slider-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: rgba(255,255,255,0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255,255,255,0.2);
    color: var(--white);
    font-size: 20px;
    cursor: pointer;
    z-index: 10;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
}

.slider-arrow:hover {
    background: var(--accent);
    border-color: var(--accent);
}

.slider-prev { left: 24px; }
.slider-next { right: 24px; }

.slider-dots {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
    z-index: 10;
}

.slider-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(255,255,255,0.3);
    border: none;
    cursor: pointer;
    transition: var(--transition);
}

.slider-dot.active {
    background: var(--accent);
    width: 28px;
    border-radius: 5px;
}

/* ===== Sections ===== */
.section {
    padding: 90px 0;
}

.section-header {
    text-align: center;
    margin-bottom: 56px;
}

.section-subtitle {
    display: inline-block;
    color: var(--accent);
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 12px;
}

.section-title {
    font-size: clamp(28px, 3vw, 40px);
    font-weight: 800;
    color: var(--dark);
    margin-bottom: 16px;
    letter-spacing: -0.5px;
}

.section-divider {
    width: 60px;
    height: 4px;
    background: linear-gradient(90deg, var(--primary), var(--accent));
    border-radius: 2px;
    margin: 0 auto;
}

.section-desc {
    max-width: 600px;
    margin: 20px auto 0;
    color: var(--gray-600);
    font-size: 16px;
}

/* ===== About Section ===== */
.about {
    background: var(--white);
}

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

.about-image {
    position: relative;
}

.about-img-placeholder {
    width: 100%;
    aspect-ratio: 4/3;
    background: linear-gradient(135deg, var(--gray-100), var(--gray-200));
    border-radius: var(--radius-lg);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: var(--gray-500);
    gap: 16px;
}

.about-img-placeholder i {
    font-size: 64px;
    color: var(--primary);
    opacity: 0.5;
}

.about-img-placeholder span {
    font-size: 14px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.about-stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
    margin-top: 20px;
}

.stat {
    background: var(--white);
    padding: 16px 10px;
    border-radius: var(--radius);
    text-align: center;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--gray-200);
}

.stat-num {
    display: block;
    font-size: 24px;
    font-weight: 800;
    color: var(--primary);
}

.stat-label {
    display: block;
    font-size: 11px;
    color: var(--gray-600);
    margin-top: 4px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

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

.about-content .btn {
    margin-top: 12px;
}

/* ===== Products Section ===== */
.products {
    background: var(--gray-50);
}

.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 24px;
}

.product-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    border: 1px solid var(--gray-200);
    cursor: pointer;
}

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

.product-img {
    height: 260px;
    padding: 16px;
    background: linear-gradient(135deg, var(--gray-100), var(--gray-200));
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 48px;
    color: var(--primary);
    overflow: hidden;
}

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

.product-card:hover .product-img {
    background: linear-gradient(135deg, rgba(26,95,138,0.05), rgba(26,95,138,0.1));
}

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

.product-info {
    padding: 20px;
}

.product-info h3 {
    font-size: 15px;
    font-weight: 600;
    color: var(--dark);
    margin-bottom: 12px;
    line-height: 1.3;
}

.product-specs {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.product-specs span {
    font-size: 12px;
    color: var(--gray-600);
}

.product-specs span span {
    font-weight: 600;
    color: var(--gray-700);
}

/* ===== Product Categories (New Layout) ===== */
.product-category {
    margin-bottom: 56px;
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-lg);
    overflow: hidden;
    background: var(--white);
}

.product-category:last-child {
    margin-bottom: 0;
}

.product-cat-header {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 28px 32px;
    background: linear-gradient(135deg, var(--dark), var(--primary-dark));
    color: var(--white);
}

.product-cat-icon {
    width: 60px;
    height: 60px;
    min-width: 60px;
    background: rgba(230, 126, 34, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 26px;
    color: var(--accent);
    border: 2px solid rgba(230, 126, 34, 0.3);
}

.product-cat-info h3 {
    font-size: 22px;
    font-weight: 700;
    margin-bottom: 6px;
}

.product-cat-info p {
    font-size: 14px;
    color: rgba(255,255,255,0.7);
    line-height: 1.5;
}

.product-sub-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0;
    border-top: 1px solid var(--gray-200);
}

.product-card-sub {
    border-radius: 0;
    box-shadow: none;
    border: none;
    border-right: 1px solid var(--gray-200);
    border-bottom: 1px solid var(--gray-200);
}

.product-card-sub:nth-child(4n) {
    border-right: none;
}

.product-card-sub:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-lg);
    border-color: transparent;
    z-index: 2;
    position: relative;
}

.product-card-sub .product-img {
    height: 260px;
}

.product-card-sub h4 {
    font-size: 14px;
    font-weight: 600;
    color: var(--dark);
    margin-bottom: 8px;
}

.product-tag {
    display: inline-block;
    font-size: 12px;
    color: var(--primary);
    background: rgba(26, 95, 138, 0.08);
    padding: 4px 10px;
    border-radius: 4px;
    font-weight: 500;
}

.product-card-add {
    background: var(--gray-50);
}

.product-card-add .product-img {
    background: transparent;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 40px;
    color: var(--gray-400);
    transition: var(--transition);
}

.product-card-add:hover .product-img {
    color: var(--primary);
    background: rgba(26,95,138,0.04);
}

.product-card-add h4 {
    color: var(--gray-500);
}

.product-card-dummy {
    visibility: hidden;
    pointer-events: none;
}

/* ===== Certificates Section ===== */
.certificates {
    background: var(--white);
}

.cert-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 24px;
}

.cert-card {
    text-align: center;
    padding: 40px 24px;
    border: 2px solid var(--gray-200);
    border-radius: var(--radius-lg);
    transition: var(--transition);
}

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

.cert-icon {
    width: 72px;
    height: 72px;
    background: linear-gradient(135deg, rgba(26,95,138,0.1), rgba(41,128,185,0.1));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    font-size: 30px;
    color: var(--primary);
}

.cert-card h3 {
    font-size: 17px;
    font-weight: 700;
    color: var(--dark);
    margin-bottom: 8px;
}

.cert-card p {
    font-size: 13px;
    color: var(--gray-600);
}

/* ===== News Section ===== */
.news {
    background: var(--gray-50);
}

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

.news-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    border: 1px solid var(--gray-200);
}

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

.news-img {
    height: 180px;
    background: linear-gradient(135deg, var(--gray-100), var(--gray-200));
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 12px;
    position: relative;
}

.news-img i {
    font-size: 40px;
    color: var(--primary);
    opacity: 0.5;
}

.news-date {
    font-size: 12px;
    color: var(--gray-600);
    font-weight: 500;
}

.news-content {
    padding: 24px;
}

.news-content h3 {
    font-size: 16px;
    font-weight: 700;
    color: var(--dark);
    margin-bottom: 10px;
    line-height: 1.4;
}

.news-content p {
    font-size: 14px;
    color: var(--gray-600);
    margin-bottom: 16px;
    line-height: 1.6;
}

.news-link {
    color: var(--primary);
    font-weight: 600;
    font-size: 14px;
}

.news-link:hover {
    color: var(--accent);
}

/* ===== Download Section ===== */
.download {
    background: linear-gradient(135deg, var(--dark), var(--primary-dark));
}

.download-box {
    text-align: center;
    color: var(--white);
    padding: 60px 24px;
}

.download-icon {
    width: 90px;
    height: 90px;
    background: rgba(230, 126, 34, 0.15);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 24px;
    font-size: 36px;
    color: var(--accent);
    border: 2px solid rgba(230, 126, 34, 0.3);
}

.download-box h2 {
    font-size: 32px;
    font-weight: 800;
    margin-bottom: 16px;
}

.download-box p {
    font-size: 16px;
    color: rgba(255,255,255,0.7);
    margin-bottom: 32px;
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
}

.download-box .btn {
    font-size: 16px;
}

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

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 48px;
    align-items: start;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.contact-info-card {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    padding: 20px;
    background: var(--gray-50);
    border-radius: var(--radius);
    border: 1px solid var(--gray-200);
    transition: var(--transition);
}

.contact-info-card:hover {
    border-color: var(--primary-light);
    box-shadow: var(--shadow-sm);
}

.contact-icon-circle {
    width: 44px;
    height: 44px;
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-size: 18px;
    flex-shrink: 0;
}

.contact-info-card h4 {
    font-size: 15px;
    font-weight: 700;
    color: var(--dark);
    margin-bottom: 4px;
}

.contact-info-card p {
    font-size: 14px;
    color: var(--gray-600);
}

.contact-form-wrap {
    background: var(--white);
    padding: 36px;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
    border: 1px solid var(--gray-200);
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

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

.form-group {
    width: 100%;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 14px 18px;
    border: 2px solid var(--gray-200);
    border-radius: var(--radius);
    font-size: 15px;
    font-family: var(--font);
    outline: none;
    transition: var(--transition);
    background: var(--gray-50);
}

.form-group input:focus,
.form-group textarea:focus {
    border-color: var(--primary);
    background: var(--white);
    box-shadow: 0 0 0 3px rgba(26,95,138,0.08);
}

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

.form-success {
    text-align: center;
    padding: 40px 20px;
    color: #27ae60;
    font-size: 18px;
    font-weight: 600;
}

.form-success i {
    font-size: 48px;
    display: block;
    margin-bottom: 16px;
}

/* ===== Product Inquiry Indicator ===== */
.inquiry-product {
    background: linear-gradient(135deg, rgba(26,95,138,0.05), rgba(230,126,34,0.08));
    border: 1px dashed var(--primary);
    border-radius: var(--radius);
    padding: 16px;
    margin-bottom: 16px;
    animation: fadeInUp 0.3s ease;
}
.inquiry-header {
    font-size: 13px;
    color: var(--primary);
    font-weight: 600;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 6px;
}
.inquiry-card {
    display: flex;
    align-items: center;
    gap: 12px;
    background: var(--white);
    border-radius: var(--radius-sm);
    padding: 10px 14px;
    position: relative;
}
.inquiry-card img {
    width: 64px;
    height: 64px;
    object-fit: contain;
    border-radius: 4px;
    border: 1px solid var(--gray-200);
    background: var(--gray-50);
    flex-shrink: 0;
}
.inquiry-info {
    flex: 1;
    min-width: 0;
}
.inquiry-info strong {
    display: block;
    font-size: 14px;
    color: var(--dark);
    margin-bottom: 2px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.inquiry-info span {
    font-size: 12px;
    color: var(--gray-600);
}
.inquiry-remove {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    border: 1px solid #e0e0e0;
    background: #fff;
    color: #999;
    font-size: 14px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: all 0.2s;
}
.inquiry-remove:hover {
    background: #fee;
    border-color: #fcc;
    color: #e74c3c;
}

/* ===== Footer ===== */
.footer {
    background: var(--dark);
    color: rgba(255,255,255,0.7);
    padding-top: 70px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1.3fr;
    gap: 48px;
    padding-bottom: 48px;
    border-bottom: 1px solid rgba(255,255,255,0.08);
}

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

.footer-company {
    font-size: 22px;
    font-weight: 800;
    color: var(--white);
    letter-spacing: -0.5px;
}

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

.footer-col p {
    font-size: 14px;
    line-height: 1.7;
    margin-bottom: 20px;
}

.footer-col ul li {
    margin-bottom: 10px;
}

.footer-col ul li a {
    color: rgba(255,255,255,0.6);
    font-size: 14px;
    transition: var(--transition);
}

.footer-col ul li a:hover {
    color: var(--accent);
    padding-left: 4px;
}

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

.footer-social a {
    width: 38px;
    height: 38px;
    background: rgba(255,255,255,0.08);
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255,255,255,0.6);
    font-size: 15px;
    transition: var(--transition);
}

.footer-social a:hover {
    background: var(--accent);
    color: var(--white);
}

.newsletter-input-wrap {
    display: flex;
    background: rgba(255,255,255,0.08);
    border-radius: var(--radius);
    overflow: hidden;
    border: 1px solid rgba(255,255,255,0.1);
}

.newsletter-input-wrap input {
    flex: 1;
    padding: 12px 16px;
    border: none;
    background: transparent;
    color: var(--white);
    font-size: 14px;
    font-family: var(--font);
    outline: none;
}

.newsletter-input-wrap input::placeholder {
    color: rgba(255,255,255,0.4);
}

.newsletter-input-wrap button {
    padding: 12px 18px;
    background: var(--accent);
    border: none;
    color: var(--white);
    cursor: pointer;
    font-size: 16px;
    transition: var(--transition);
}

.newsletter-input-wrap button:hover {
    background: var(--accent-hover);
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 24px 0;
    font-size: 13px;
    flex-wrap: wrap;
    gap: 8px;
}

/* ===== Chat Widget ===== */
.chat-widget {
    position: fixed;
    bottom: 24px;
    right: 24px;
    z-index: 999;
}

.chat-toggle {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: var(--accent);
    color: var(--white);
    border: none;
    font-size: 22px;
    cursor: pointer;
    box-shadow: var(--shadow-lg);
    transition: var(--transition);
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.chat-toggle:hover {
    background: var(--accent-hover);
    transform: scale(1.05);
}

.chat-badge {
    position: absolute;
    top: -4px;
    right: -4px;
    background: #27ae60;
    color: var(--white);
    font-size: 10px;
    padding: 3px 8px;
    border-radius: 10px;
    font-weight: 600;
    white-space: nowrap;
}

.chat-box {
    display: none;
    position: absolute;
    bottom: 70px;
    right: 0;
    width: 340px;
    background: var(--white);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-xl);
    overflow: hidden;
}

.chat-box.show { display: block; }

.chat-header {
    background: var(--primary);
    color: var(--white);
    padding: 16px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.chat-header h4 {
    font-size: 15px;
    font-weight: 600;
}

.chat-close {
    background: none;
    border: none;
    color: var(--white);
    cursor: pointer;
    font-size: 16px;
    opacity: 0.8;
}

.chat-close:hover { opacity: 1; }

.chat-body {
    padding: 20px;
    min-height: 100px;
    max-height: 300px;
    overflow-y: auto;
}

.chat-message {
    background: var(--gray-100);
    padding: 12px 16px;
    border-radius: var(--radius);
    font-size: 14px;
    color: var(--gray-700);
}

.chat-footer {
    padding: 12px 16px;
    border-top: 1px solid var(--gray-200);
    display: flex;
    gap: 8px;
}

.chat-footer input {
    flex: 1;
    padding: 10px 14px;
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-sm);
    font-size: 14px;
    font-family: var(--font);
    outline: none;
}

.chat-footer button {
    width: 40px;
    height: 40px;
    background: var(--primary);
    border: none;
    border-radius: var(--radius-sm);
    color: var(--white);
    cursor: pointer;
    transition: var(--transition);
}

.chat-footer button:hover {
    background: var(--primary-dark);
}

/* ===== Back to Top ===== */
.back-to-top {
    position: fixed;
    bottom: 90px;
    right: 24px;
    width: 44px;
    height: 44px;
    background: var(--white);
    border: 1px solid var(--gray-300);
    border-radius: 50%;
    font-size: 16px;
    cursor: pointer;
    box-shadow: var(--shadow);
    transition: var(--transition);
    opacity: 0;
    visibility: hidden;
    z-index: 998;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--gray-700);
}

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

.back-to-top:hover {
    background: var(--primary);
    color: var(--white);
    border-color: var(--primary);
}

/* ===== RTL Support ===== */
html[dir="rtl"] .top-bar-left span {
    margin-right: 0;
    margin-left: 20px;
}

html[dir="rtl"] .top-bar-left i {
    margin-right: 0;
    margin-left: 6px;
}

html[dir="rtl"] .social-top a {
    margin-left: 0;
    margin-right: 12px;
}

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

html[dir="rtl"] .slider-prev { left: auto; right: 24px; }
html[dir="rtl"] .slider-next { right: auto; left: 24px; }

html[dir="rtl"] .footer-col ul li a:hover {
    padding-left: 0;
    padding-right: 4px;
}

html[dir="rtl"] .chat-widget {
    right: auto;
    left: 24px;
}

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

html[dir="rtl"] .back-to-top {
    right: auto;
    left: 24px;
}

/* ===== Responsive Design ===== */
@media (max-width: 1024px) {
    .about-grid,
    .contact-grid {
        grid-template-columns: 1fr;
    }

    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }

    .about-stats {
        grid-template-columns: repeat(4, 1fr);
    }

    .slide-content {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .slide-text p {
        margin-left: auto;
        margin-right: auto;
    }

    .slide-btns {
        justify-content: center;
    }

    .hero-product-showcase {
        display: none;
    }
}

@media (max-width: 768px) {
    :root {
        --topbar-height: 0px;
    }

    .top-bar {
        display: none;
    }

    .header {
        --header-height: 64px;
    }

    .nav {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: var(--white);
        flex-direction: column;
        padding: 16px;
        box-shadow: var(--shadow);
        gap: 0;
    }

    .nav.show { display: flex; }

    .nav-link {
        padding: 14px 16px;
        border-radius: var(--radius-sm);
        width: 100%;
    }

    .btn-mobile-menu {
        display: flex;
    }

    .btn-lang-mobile {
        display: flex;
    }

    .lang-menu-mobile {
        display: none;
        position: absolute;
        top: 100%;
        right: 48px;
        margin-top: 8px;
        background: var(--white);
        border-radius: var(--radius);
        box-shadow: var(--shadow-lg);
        min-width: 160px;
        max-height: 340px;
        overflow-y: auto;
        z-index: 1003;
    }

    .lang-menu-mobile.show { display: block; }

    .lang-menu-mobile a {
        display: block;
        padding: 12px 18px;
        color: var(--gray-800);
        font-size: 14px;
        border-bottom: 1px solid var(--gray-100);
        text-decoration: none;
    }

    .lang-menu-mobile a:hover {
        background: var(--gray-50);
        color: var(--primary);
    }

    .hero {
        height: 500px;
        min-height: 400px;
    }

    .slide-content {
        gap: 24px;
    }

    .slide-text h1 {
        font-size: 26px;
    }

    .slider-arrow {
        width: 40px;
        height: 40px;
        font-size: 16px;
    }

    .section {
        padding: 60px 0;
    }

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

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 32px;
    }

    .footer-bottom {
        flex-direction: column;
        text-align: center;
    }

    .product-grid {
        grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
        gap: 16px;
    }

    .product-sub-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .product-card-sub:nth-child(2n) {
        border-right: none;
    }

    .product-cat-header {
        padding: 20px;
    }

    .product-cat-info h3 {
        font-size: 18px;
    }

    .news-grid {
        grid-template-columns: 1fr;
    }

    .cert-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .about-stats {
        grid-template-columns: repeat(2, 1fr);
    }

    .chat-box {
        width: 300px;
        right: -10px;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 16px;
    }

    .slide-text h1 {
        font-size: 22px;
    }

    .slide-btns {
        flex-direction: column;
        align-items: center;
    }

    .product-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .cert-grid {
        grid-template-columns: 1fr;
    }

    .contact-form-wrap {
        padding: 20px;
    }
}
