:root {
    --primary: #111827;
    --primary-light: #1f2937;
    --accent: #f97316;
    --accent-hover: #ea580c;
    --text-main: #334155;
    --text-muted: #64748b;
    --white: #ffffff;
    --bg-light: #f8fafc;
    --bg-dark: #0f172a;
    --border: #e2e8f0;
    --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', sans-serif;
    color: var(--text-main);
    line-height: 1.6;
    background-color: var(--white);
    overflow-x: hidden;
}

h1, h2, h3, h4 {
    font-family: 'Roboto Condensed', sans-serif;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--primary);
}

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

ul {
    list-style: none;
}

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

/* Header */
header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background: rgba(17, 24, 39, 0.9);
    backdrop-filter: blur(10px);
    padding: 15px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

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

.logo {
    font-size: 1.5rem;
    color: var(--white);
    display: flex;
    align-items: center;
}

.logo-bold {
    font-weight: 700;
    color: var(--accent);
}

.logo-thin {
    font-weight: 300;
    margin-left: 2px;
}

.header-right {
    display: flex;
    align-items: center;
    gap: 30px;
}

.nav-links {
    display: flex;
    gap: 25px;
}

.nav-links a {
    color: #94a3b8;
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.nav-links a:hover {
    color: var(--accent);
}

/* Language Switcher */
.lang-switcher {
    display: flex;
    background: rgba(255, 255, 255, 0.05);
    padding: 4px;
    border-radius: 6px;
    gap: 2px;
}

.lang-btn {
    background: transparent;
    border: none;
    color: #94a3b8;
    padding: 4px 8px;
    font-size: 0.75rem;
    font-weight: 700;
    cursor: pointer;
    border-radius: 4px;
    transition: var(--transition);
}

.lang-btn:hover {
    color: var(--white);
}

.lang-btn.active {
    background: var(--accent);
    color: var(--white);
}

.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    color: var(--white);
    font-size: 1.5rem;
}

/* Hero */
.hero {
    height: 100vh;
    background: url('hero_factory.png');
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    position: relative;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, rgba(17, 24, 39, 0.9) 0%, rgba(17, 24, 39, 0.4) 100%);
}

.hero-container {
    position: relative;
    z-index: 10;
}

.hero-text {
    max-width: 700px;
    color: var(--white);
}

.hero-badge {
    display: inline-block;
    background: rgba(249, 115, 22, 0.2);
    color: var(--accent);
    padding: 6px 15px;
    border-radius: 4px;
    font-size: 0.85rem;
    font-weight: 700;
    margin-bottom: 20px;
    border-left: 3px solid var(--accent);
}

.hero h1 {
    font-size: 4.5rem;
    color: var(--white);
    line-height: 1;
    margin-bottom: 25px;
}

.hero h1 span {
    color: var(--accent);
}

.hero p {
    font-size: 1.25rem;
    color: #cbd5e1;
    margin-bottom: 40px;
    max-width: 600px;
}

.hero-actions {
    display: flex;
    gap: 20px;
}

.btn-primary {
    background: var(--accent);
    color: var(--white);
    padding: 15px 35px;
    font-weight: 700;
    text-transform: uppercase;
    font-size: 0.9rem;
}

.btn-primary:hover {
    background: var(--accent-hover);
    transform: translateY(-2px);
}

.btn-outline {
    border: 2px solid var(--white);
    color: var(--white);
    padding: 13px 33px;
    font-weight: 700;
    text-transform: uppercase;
    font-size: 0.9rem;
}

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

/* Stats */
.stats {
    background: var(--bg-dark);
    padding: 50px 0;
    border-bottom: 4px solid var(--accent);
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    text-align: center;
}

.stat-item {
    border-right: 1px solid rgba(255, 255, 255, 0.1);
}

.stat-item:last-child {
    border-right: none;
}

.stat-num {
    display: block;
    font-family: 'Roboto Condensed', sans-serif;
    font-size: 3rem;
    font-weight: 700;
    color: var(--accent);
}

.stat-item p {
    color: #94a3b8;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* History */
section {
    padding: 100px 0;
}

.history-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
}

.history-text h2 {
    font-size: 3rem;
    margin-bottom: 25px;
}

.orange-divider {
    width: 60px;
    height: 4px;
    background: var(--accent);
    margin-bottom: 30px;
}

.history-text p {
    font-size: 1.1rem;
    color: var(--text-muted);
    margin-bottom: 20px;
}

.history-img-box {
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 20px 20px 0 var(--bg-light);
}

.history-img-box img {
    width: 100%;
    display: block;
}

/* Tech Grid */
.tech {
    background: var(--bg-light);
}

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

.section-title h2 {
    font-size: 3rem;
    margin-bottom: 15px;
}

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

.tech-card.full-width {
    grid-column: 1 / -1;
}

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

.tech-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
}

.tech-img {
    height: 250px;
}

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

.tech-info {
    padding: 30px;
}

.tech-info h3 {
    font-size: 1.25rem;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.tech-info h3 i {
    color: var(--accent);
}

.tech-info p {
    font-size: 0.95rem;
    color: var(--text-muted);
}

.technical-office {
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    background: var(--primary);
    color: var(--white);
}

.technical-office h3, .technical-office p {
    color: var(--white);
}

/* Quality */
.quality-section {
    padding: 0;
}

.quality-banner {
    background: linear-gradient(rgba(17, 24, 39, 0.8), rgba(17, 24, 39, 0.8)), url('metrology.png');
    background-size: cover;
    background-position: center;
    padding: 100px 0;
    text-align: center;
    color: var(--white);
}

.quality-text h2 {
    font-size: 3.5rem;
    color: var(--white);
    margin-bottom: 20px;
}

.cert-logos {
    display: flex;
    justify-content: center;
    gap: 40px;
    margin-top: 40px;
}

.cert-item {
    display: flex;
    align-items: center;
    gap: 15px;
    background: rgba(255, 255, 255, 0.1);
    padding: 20px 30px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 4px;
}

.cert-item i {
    font-size: 2rem;
    color: var(--accent);
}

.cert-item span {
    font-weight: 700;
    letter-spacing: 1px;
}

/* Contact */
.contact-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
}

.contact-list {
    margin-top: 40px;
}

.c-item {
    display: flex;
    gap: 20px;
    margin-bottom: 30px;
}

.c-item i {
    width: 50px;
    height: 50px;
    background: var(--bg-light);
    color: var(--accent);
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 4px;
    font-size: 1.2rem;
}

.contact-form-box {
    background: var(--bg-light);
    padding: 50px;
    border-radius: 8px;
}

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

.form-group input, .form-group textarea {
    width: 100%;
    padding: 15px;
    border: 1px solid var(--border);
    border-radius: 4px;
    background: var(--white);
}

.submit-btn {
    width: 100%;
    background: var(--primary);
    color: var(--white);
    border: none;
    padding: 18px;
    font-weight: 700;
    text-transform: uppercase;
    cursor: pointer;
    transition: var(--transition);
}

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

/* Footer */
footer {
    background: var(--primary);
    color: #94a3b8;
    padding: 80px 0 40px;
    border-top: 4px solid var(--accent);
}

.footer-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 40px;
}

.footer-social a {
    color: var(--white);
    font-size: 1.5rem;
    margin-left: 20px;
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.footer-links a {
    color: #94a3b8;
    margin-left: 20px;
    font-size: 0.9rem;
}

/* Back to Top */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: var(--accent);
    color: var(--white);
    border: none;
    border-radius: 4px;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
    z-index: 999;
}

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

/* Mobile */
@media (max-width: 992px) {
    .nav-links, .lang-switcher { display: none; }
    .mobile-menu-btn { display: block; }
    .hero h1 { font-size: 3rem; }
    .history-content, .contact-wrapper { grid-template-columns: 1fr; gap: 40px; }
    .stats-grid { grid-template-columns: 1fr 1fr; gap: 20px; }
    .tech-grid { grid-template-columns: 1fr; }
    .cert-logos { flex-direction: column; align-items: center; }
}

@media (max-width: 600px) {
    .hero h1 { font-size: 2.2rem; }
    .hero-actions { flex-direction: column; }
    .stats-grid { grid-template-columns: 1fr; }
}
