/* ============================================
   C-Mold Industrial Style - Main CSS
   Color Palette: Blue & Gray Industrial Theme
   ============================================ */

/* ---------- Reset & Base ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
    font-family: 'Segoe UI', 'Helvetica Neue', Arial, sans-serif;
    color: #333;
    background: #f4f6f8;
    line-height: 1.6;
}
a { text-decoration: none; color: inherit; transition: all 0.3s ease; }
ul { list-style: none; }
img { max-width: 100%; display: block; }
.container { max-width: 1200px; margin: 0 auto; padding: 0 20px; }

/* ---------- Color Variables via Classes ---------- */
:root {
    --primary-dark: #1a2332;
    --primary-blue: #2c3e50;
    --accent-blue: #3498db;
    --accent-orange: #e67e22;
    --gray-light: #ecf0f1;
    --gray-mid: #bdc3c7;
    --gray-dark: #7f8c8d;
    --text-dark: #2c3e50;
    --text-light: #fff;
    --shadow: 0 4px 15px rgba(0,0,0,0.1);
    --shadow-hover: 0 8px 25px rgba(0,0,0,0.15);
}

/* ---------- Header / Navigation ---------- */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background: var(--primary-dark);
    box-shadow: 0 2px 10px rgba(0,0,0,0.3);
}
.header .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 70px;
}
.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    color: var(--text-light);
    font-size: 1.5rem;
    font-weight: 700;
    letter-spacing: 1px;
}
.logo-icon {
    width: 40px;
    height: 40px;
    background: var(--accent-blue);
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 900;
    font-size: 1.2rem;
    color: #fff;
}
.nav ul { display: flex; gap: 8px; }
.nav a {
    color: #ccc;
    padding: 8px 18px;
    border-radius: 4px;
    font-size: 0.95rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
.nav a:hover, .nav a.active {
    color: #fff;
    background: rgba(52,152,219,0.2);
}
.nav a.active { border-bottom: 2px solid var(--accent-blue); }

/* Language Switcher */
.lang-switch {
    display: flex;
    gap: 4px;
    margin-left: 20px;
}
.lang-switch a {
    padding: 4px 10px;
    font-size: 0.8rem;
    border-radius: 3px;
    border: 1px solid rgba(255,255,255,0.3);
    color: #ccc;
}
.lang-switch a:hover, .lang-switch a.active {
    background: var(--accent-blue);
    border-color: var(--accent-blue);
    color: #fff;
}

/* Mobile Menu Toggle */
.menu-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    padding: 10px;
}
.menu-toggle span {
    width: 25px;
    height: 3px;
    background: #fff;
    border-radius: 2px;
    transition: all 0.3s ease;
}

/* ---------- Hero Section ---------- */
.hero {
    margin-top: 70px;
    position: relative;
    height: 600px;
    background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary-blue) 100%);
    display: flex;
    align-items: center;
    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="10" height="10" patternUnits="userSpaceOnUse"><path d="M 10 0 L 0 0 0 10" fill="none" stroke="rgba(255,255,255,0.03)" stroke-width="1"/></pattern></defs><rect width="100" height="100" fill="url(%23grid)"/></svg>');
    opacity: 0.5;
}
.hero-content {
    position: relative;
    z-index: 2;
    color: #fff;
    max-width: 600px;
}
.hero-content h1 {
    font-size: 3rem;
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 20px;
    text-transform: uppercase;
    letter-spacing: 2px;
}
.hero-content h1 span { color: var(--accent-blue); }
.hero-content p {
    font-size: 1.15rem;
    color: #b0bec5;
    margin-bottom: 30px;
    line-height: 1.8;
}
.hero-buttons { display: flex; gap: 15px; }
.btn {
    display: inline-block;
    padding: 14px 32px;
    border-radius: 4px;
    font-weight: 600;
    font-size: 0.95rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.3s ease;
    cursor: pointer;
    border: none;
}
.btn-primary {
    background: var(--accent-blue);
    color: #fff;
}
.btn-primary:hover {
    background: #2980b9;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(52,152,219,0.4);
}
.btn-outline {
    background: transparent;
    border: 2px solid rgba(255,255,255,0.5);
    color: #fff;
}
.btn-outline:hover {
    background: rgba(255,255,255,0.1);
    border-color: #fff;
}
.hero-stats {
    position: absolute;
    right: 5%;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    flex-direction: column;
    gap: 30px;
}
.stat-item {
    text-align: center;
    color: #fff;
    padding: 20px;
    background: rgba(255,255,255,0.05);
    border-radius: 8px;
    border: 1px solid rgba(255,255,255,0.1);
    min-width: 150px;
}
.stat-number {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--accent-blue);
    display: block;
}
.stat-label {
    font-size: 0.85rem;
    color: #b0bec5;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* ---------- Section Common ---------- */
.section { padding: 80px 0; }
.section-header { text-align: center; margin-bottom: 50px; }
.section-header h2 {
    font-size: 2.2rem;
    font-weight: 700;
    color: var(--text-dark);
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 15px;
    position: relative;
    display: inline-block;
}
.section-header h2::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: var(--accent-blue);
}
.section-header p {
    color: var(--gray-dark);
    font-size: 1.05rem;
    max-width: 600px;
    margin: 20px auto 0;
}

/* ---------- Services Section ---------- */
.services { background: #fff; }
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
}
.service-card {
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: all 0.3s ease;
    border: 1px solid #eee;
}
.service-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
}
.service-img {
    height: 200px;
    background: linear-gradient(135deg, var(--primary-blue), var(--primary-dark));
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}
.service-img::after {
    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="dots" width="8" height="8" patternUnits="userSpaceOnUse"><circle cx="4" cy="4" r="1" fill="rgba(255,255,255,0.1)"/></pattern></defs><rect width="100" height="100" fill="url(%23dots)"/></svg>');
}
.service-icon {
    font-size: 3rem;
    color: rgba(255,255,255,0.9);
    z-index: 1;
}
.service-info { padding: 25px; }
.service-info h3 {
    font-size: 1.25rem;
    color: var(--text-dark);
    margin-bottom: 10px;
    font-weight: 700;
}
.service-info p {
    color: var(--gray-dark);
    font-size: 0.95rem;
    line-height: 1.7;
}
.service-info .btn {
    margin-top: 15px;
    padding: 10px 20px;
    font-size: 0.85rem;
}

/* ---------- About Section ---------- */
.about { background: var(--gray-light); }
.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: center;
}
.about-text h3 {
    font-size: 1.8rem;
    color: var(--text-dark);
    margin-bottom: 20px;
    font-weight: 700;
}
.about-text p {
    color: #555;
    margin-bottom: 15px;
    line-height: 1.8;
}
.about-features {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
    margin-top: 25px;
}
.feature-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 15px;
    background: #fff;
    border-radius: 6px;
    border-left: 3px solid var(--accent-blue);
    font-size: 0.9rem;
    color: var(--text-dark);
    font-weight: 500;
}
.feature-icon {
    color: var(--accent-blue);
    font-size: 1.2rem;
}
.about-image {
    background: linear-gradient(135deg, var(--primary-dark), var(--primary-blue));
    border-radius: 10px;
    height: 400px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255,255,255,0.3);
    font-size: 5rem;
    position: relative;
    overflow: hidden;
}

/* ---------- Equipment Section ---------- */
.equipment { background: #fff; }
.equipment-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 25px;
}
.equipment-card {
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 30px;
    text-align: center;
    transition: all 0.3s ease;
    background: #fafafa;
}
.equipment-card:hover {
    border-color: var(--accent-blue);
    box-shadow: var(--shadow);
    transform: translateY(-3px);
}
.equipment-icon {
    font-size: 2.5rem;
    margin-bottom: 15px;
    display: block;
}
.equipment-card h4 {
    color: var(--text-dark);
    font-size: 1.1rem;
    margin-bottom: 8px;
    font-weight: 700;
}
.equipment-card p {
    color: var(--gray-dark);
    font-size: 0.9rem;
}

/* ---------- News Section ---------- */
.news { background: var(--gray-light); }
.news-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
}
.news-card {
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: all 0.3s ease;
}
.news-card:hover { box-shadow: var(--shadow-hover); }
.news-img {
    height: 200px;
    background: linear-gradient(135deg, #667eea, #764ba2);
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255,255,255,0.5);
    font-size: 3rem;
}
.news-body { padding: 20px; }
.news-date {
    font-size: 0.8rem;
    color: var(--accent-blue);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
}
.news-body h3 {
    font-size: 1.15rem;
    color: var(--text-dark);
    margin: 10px 0;
    font-weight: 700;
    line-height: 1.4;
}
.news-body p {
    color: var(--gray-dark);
    font-size: 0.9rem;
    line-height: 1.6;
}
.news-body .read-more {
    display: inline-block;
    margin-top: 12px;
    color: var(--accent-blue);
    font-weight: 600;
    font-size: 0.9rem;
}
.news-body .read-more:hover { color: var(--accent-orange); }

/* ---------- Contact Section ---------- */
.contact { background: #fff; }
.contact-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
}
.contact-info h3 {
    font-size: 1.5rem;
    color: var(--text-dark);
    margin-bottom: 20px;
    font-weight: 700;
}
.contact-item {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    margin-bottom: 20px;
    padding: 15px;
    background: var(--gray-light);
    border-radius: 6px;
}
.contact-icon {
    font-size: 1.5rem;
    color: var(--accent-blue);
    flex-shrink: 0;
}
.contact-item .label {
    font-weight: 600;
    color: var(--text-dark);
    font-size: 0.9rem;
    display: block;
    margin-bottom: 3px;
}
.contact-item .value {
    color: #555;
    font-size: 0.95rem;
}
.contact-form {
    background: var(--gray-light);
    padding: 35px;
    border-radius: 10px;
}
.contact-form h3 {
    font-size: 1.3rem;
    color: var(--text-dark);
    margin-bottom: 20px;
    font-weight: 700;
}
.form-group {
    margin-bottom: 15px;
}
.form-group label {
    display: block;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 5px;
    font-size: 0.9rem;
}
.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 0.95rem;
    font-family: inherit;
    transition: border-color 0.3s ease;
    background: #fff;
}
.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--accent-blue);
    box-shadow: 0 0 0 3px rgba(52,152,219,0.1);
}
.form-group textarea { resize: vertical; min-height: 100px; }
.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
}
.btn-submit {
    width: 100%;
    padding: 14px;
    background: var(--accent-blue);
    color: #fff;
    border: none;
    border-radius: 4px;
    font-size: 1rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    cursor: pointer;
    transition: all 0.3s ease;
}
.btn-submit:hover {
    background: #2980b9;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(52,152,219,0.3);
}

/* ---------- Footer ---------- */
.footer {
    background: var(--primary-dark);
    color: #ccc;
    padding: 50px 0 20px;
}
.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 40px;
    margin-bottom: 30px;
}
.footer h4 {
    color: #fff;
    font-size: 1.1rem;
    margin-bottom: 20px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
}
.footer p, .footer a {
    font-size: 0.9rem;
    line-height: 1.8;
    color: #aaa;
}
.footer a:hover { color: var(--accent-blue); }
.footer-links li { margin-bottom: 8px; }
.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.1);
    padding-top: 20px;
    text-align: center;
    font-size: 0.85rem;
    color: #777;
}

/* ---------- Social Media ---------- */
.social-section {
    border-top: 1px solid rgba(255,255,255,0.1);
    padding-top: 25px;
    margin-top: 10px;
    text-align: center;
}
.social-section h4 {
    color: #fff;
    font-size: 1rem;
    margin-bottom: 15px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
}
.social-links {
    display: flex;
    justify-content: center;
    gap: 10px;
    flex-wrap: nowrap;
}
.social-links a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: rgba(255,255,255,0.08);
    border: 1px solid rgba(255,255,255,0.15);
    color: #ccc;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    text-decoration: none;
}
.social-links a:hover {
    background: var(--accent-blue);
    border-color: var(--accent-blue);
    color: #fff;
    transform: translateY(-3px);
}
.social-links a svg {
    width: 15px;
    height: 15px;
    fill: currentColor;
}

/* ---------- Page Banner ---------- */
.page-banner {
    margin-top: 70px;
    height: 250px;
    background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary-blue) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    text-align: center;
    position: relative;
}
.page-banner h1 {
    font-size: 2.5rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 3px;
}
.page-banner p {
    color: #b0bec5;
    margin-top: 10px;
    font-size: 1.05rem;
}

/* ---------- Breadcrumb ---------- */
.breadcrumb {
    padding: 15px 0;
    background: var(--gray-light);
    font-size: 0.9rem;
    color: var(--gray-dark);
}
.breadcrumb a { color: var(--accent-blue); }
.breadcrumb a:hover { text-decoration: underline; }

/* ---------- Responsive ---------- */
@media (max-width: 992px) {
    .hero-stats { display: none; }
    .hero-content h1 { font-size: 2.2rem; }
    .about-content { grid-template-columns: 1fr; }
    .contact-wrapper { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 768px) {
    .nav ul { display: none; }
    .menu-toggle { display: flex; }
    .nav.active ul {
        display: flex;
        flex-direction: column;
        position: absolute;
        top: 70px;
        left: 0;
        width: 100%;
        background: var(--primary-dark);
        padding: 20px;
    }
    .hero { height: 450px; }
    .hero-content h1 { font-size: 1.8rem; }
    .hero-buttons { flex-direction: column; }
    .section { padding: 50px 0; }
    .section-header h2 { font-size: 1.6rem; }
    .services-grid, .news-grid { grid-template-columns: 1fr; }
    .form-row { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: 1fr; }
    .stat-number { font-size: 2rem; }
}
