/* Biến màu sắc toàn cục */
:root {
    --primary-color: #E18711;
    --primary-hover: #c4750e;
    --text-main: #333333;
    --text-muted: #666666;
    --bg-light: #f8f9fa;
    --white: #ffffff;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
    color: var(--text-main);
    line-height: 1.6;
    background-color: var(--bg-light);
}

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

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

/* Nút bấm (Buttons) */
.btn {
    display: inline-block;
    padding: 10px 24px;
    border-radius: 4px;
    text-decoration: none;
    font-weight: bold;
    transition: all 0.3s ease;
    cursor: pointer;
}

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

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

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

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

/* Header */
.header {
    background-color: var(--white);
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    padding: 15px 0;
    position: sticky;
    top: 0;
    z-index: 100;
}

.logo a {
    display: flex;
    align-items: center;
    text-decoration: none;
}

.logo img {
    max-height: 60px; /* Bạn có thể tăng giảm số này tùy theo độ lớn mong muốn của logo */
    width: auto;
    display: block;
    object-fit: contain;
}

.logo span {
    color: var(--primary-color);
}

.nav-links a {
    text-decoration: none;
    color: var(--text-main);
    margin-left: 25px;
    font-weight: 500;
    transition: color 0.3s;
}

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

/* Hero Section */
.hero {
    background: linear-gradient(rgba(0,0,0,0.7), rgba(0,0,0,0.7)), url('https://via.placeholder.com/1920x600?text=Cong+Trinh+Xay+Dung') center/cover;
    color: var(--white);
    padding: 100px 20px;
}

.hero h2 {
    font-size: 2.5rem;
    margin-bottom: 15px;
}

.hero p {
    font-size: 1.2rem;
    margin-bottom: 30px;
    color: #ddd;
}
/* Layout Giới thiệu Sản phẩm Zig-Zag */
.showcase-section {
    padding: 80px 20px;
}

.showcase-row {
    display: flex;
    align-items: center;
    gap: 60px; /* Khoảng cách giữa ảnh và chữ */
    margin-bottom: 90px;
}

/* Đảo ngược layout: Chữ trái, Ảnh phải */
.showcase-row.reverse {
    flex-direction: row-reverse;
}

.showcase-image {
    flex: 1; /* Chiếm 50% chiều rộng */
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1); /* Tạo bóng đổ nhẹ cho ảnh */
}

.showcase-image img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
    transition: transform 0.4s ease;
}

/* Hiệu ứng zoom nhẹ ảnh khi hover */
.showcase-image:hover img {
    transform: scale(1.03);
}

.showcase-content {
    flex: 1; /* Chiếm 50% chiều rộng */
}

.showcase-content h3 {
    font-size: 32px;
    color: var(--primary-color);
    margin-bottom: 20px;
}

.showcase-content p {
    font-size: 16px;
    color: var(--text-muted);
    margin-bottom: 30px;
    line-height: 1.8;
}

/* Reponsive: Chỉnh lại hiển thị dọc khi xem trên điện thoại và máy tính bảng nhỏ */
@media (max-width: 991px) {
    .showcase-row,
    .showcase-row.reverse {
        flex-direction: column; /* Ép về hiển thị dọc trên mobile */
        gap: 30px;
        margin-bottom: 60px;
        text-align: center; /* Căn giữa chữ trên mobile */
    }
    
    .showcase-content h3 {
        font-size: 26px;
    }
}

/* =========================================
   Timeline Section (Lịch sử 6 năm)
========================================= */
.timeline-section {
    padding: 60px 20px 80px;
}

.timeline {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
    padding-left: 40px;
}

/* Đường kẻ dọc màu cam */
.timeline::before {
    content: '';
    position: absolute;
    left: 0;
    top: 5px;
    height: calc(100% - 10px);
    width: 2px;
    background-color: var(--primary-color);
}

.timeline-item {
    position: relative;
    margin-bottom: 50px;
}

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

/* Các dấu chấm mốc thời gian */
.timeline-dot {
    position: absolute;
    left: -48px; /* Căn chuẩn chấm tròn với đường kẻ */
    top: 3px;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background-color: var(--white);
    border: 4px solid var(--primary-color);
    box-shadow: 0 0 0 4px rgba(225, 135, 17, 0.2);
    z-index: 1;
}

.timeline-content {
    background-color: var(--white);
    padding: 20px 30px;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.04);
    border-left: 4px solid var(--primary-color);
    transition: transform 0.3s;
}

.timeline-content:hover {
    transform: translateX(5px);
}

.timeline-content h3 {
    color: var(--primary-color);
    font-size: 22px;
    margin-bottom: 10px;
}

/* =========================================
   Contact Form Section (Form liên hệ)
========================================= */
.contact-section {
    padding: 0 20px 100px;
}

.form-container {
    max-width: 600px;
    margin: 0 auto;
    background-color: var(--white);
    padding: 40px;
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.08);
}

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

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 15px 20px;
    border: 1px solid #e0e0e0;
    border-radius: 6px;
    font-size: 15px;
    font-family: inherit;
    background-color: #fcfcfc;
    transition: all 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    background-color: var(--white);
    box-shadow: 0 0 0 3px rgba(225, 135, 17, 0.1);
}

.btn-block {
    display: block;
    width: 100%;
    text-align: center;
    font-size: 16px;
    padding: 16px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Responsive cho màn hình nhỏ */
@media (max-width: 768px) {
    .form-container {
        padding: 30px 20px;
    }
}

/* Footer */
.footer {
    background-color: #222;
    color: #ccc;
    padding: 60px 20px 30px;
}

.footer h2 {
    color: var(--primary-color);
    margin-bottom: 15px;
}