:root {
    --primary: #0f172a;
    --accent: #c5a059;
    --accent-dark: #b08d4a;
    --text-main: #1e293b;
    --text-muted: #64748b;
    --bg-dark: #0f172a;
    --bg-light: #ffffff;
    --white: #ffffff;
    --transition: all 0.6s cubic-bezier(0.165, 0.84, 0.44, 1);
}

/* --- Tối ưu Reset & Base --- */
* { margin: 0; padding: 0; box-sizing: border-box; }
body { 
    font-family: 'Inter', system-ui, -apple-system, sans-serif; 
    color: var(--text-main); 
    line-height: 1.6; 
    overflow-x: hidden;
}

/* --- Logic cho Scroll Reveal --- */
.reveal {
    opacity: 0;
    transition: all 0.8s ease-out;
    will-change: transform, opacity;
}

.fade-up { transform: translateY(40px); }
.fade-left { transform: translateX(-50px); }
.fade-right { transform: translateX(50px); }

/* Khi Class .active được JS thêm vào */
.reveal.active {
    opacity: 1;
    transform: translate(0, 0);
}

/* --- Layout Sections --- */
.hero-legal, .services-section, .about-section {
    width: 100%;
    padding: 100px 5%;
}

/* --- Hero Section --- */
.hero-legal {
    position: relative;
    height: 100vh; /* Cao bằng màn hình */
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background-color: #0a0f1d; /* Nền dự phòng */
}

.video-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.video-background video {
    width: 100%;
    height: 100%;
    object-fit: cover; /* Video sẽ phủ kín vùng chứa giống background-size: cover */
    pointer-events: none; /* Tránh video cản trở việc click chuột */
}

.video-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        rgba(15, 23, 42, 0.6), /* Phủ tối 60% ở trên */
        rgba(15, 23, 42, 0.8)  /* Phủ tối 80% ở dưới */
    );
    z-index: 2;
}
/* Đảm bảo chữ nổi lên trên video */
.hero-content {
    position: relative;
    z-index: 10;
    text-align: center;
}

.hero-badge-alt {
    display: block;
    font-size: 16px; /* Tăng nhẹ kích thước cho dễ đọc */
    text-transform: uppercase;
    letter-spacing: 4px;
    color: rgba(255, 255, 255, 0.7); /* Màu trắng với độ mờ 70% để vẫn có cảm giác chìm */
    margin-bottom: 15px;
    font-weight: 500;
}

/* 2. Tiêu đề chính: Làm to hơn đáng kể */
.hero-title-large {
    font-size: clamp(3rem, 8vw, 5rem) !important; /* Sử dụng clamp để tự co giãn, tối đa 5rem */
    line-height: 1.1;
    font-weight: 900; /* Tăng độ dày chữ lên mức tối đa */
    margin-bottom: 30px;
    letter-spacing: -1px; /* Thu hẹp khoảng cách chữ một chút để trông hiện đại hơn khi kích thước lớn */
}

/* Đảm bảo chữ DANH BẠ màu trắng tinh khiết */
.hero-title-large .text-white {
    color: #ffffff !important;
    text-shadow: 0 5px 15px rgba(0,0,0,0.3); /* Thêm bóng đổ nhẹ để chữ trắng nổi bật trên video */
}

/* Chữ LUẬT SƯ màu đồng */
.hero-title-large .text-gradient {
    color: var(--accent) !important;
}


/* Responsive: Trên điện thoại nếu video load chậm có thể ẩn video hiện ảnh */
@media (max-width: 768px) {
    .video-background video {
        /* opacity: 0; // Bật dòng này nếu bạn muốn tắt video trên mobile để tiết kiệm 4G */
    }
}

/* Đảm bảo chữ DANH BẠ luôn màu trắng */
.hero-legal h1 .text-white {
    color: #ffffff !important;
}

/* Chữ LUẬT SƯ giữ màu đồng/vàng kim */
.hero-legal h1 .text-gradient {
    color: var(--accent); /* Sử dụng biến màu vàng kim hiện có */
}

/* Tinh chỉnh tiêu đề chính để đồng bộ với Logo */
.hero-legal h1 {
    font-weight: 800;
    letter-spacing: 1px;
    margin-top: 10px;
}
.text-gradient { color: var(--accent); }

/* --- Buttons --- */
.btn-gold, .btn-outline {
    padding: 16px 35px;
    border-radius: 12px;
    text-decoration: none;
    font-weight: 700;
    display: inline-block;
    transition: var(--transition);
}
.btn-gold { background: var(--accent); color: white; }
.btn-gold:hover { transform: translateY(-3px); box-shadow: 0 10px 20px rgba(197, 160, 89, 0.3); }
.btn-outline { border: 2px solid rgba(255,255,255,0.4); color: white; margin-left: 15px; }
.btn-outline:hover { background: var(--white); color: var(--primary); }

/* --- Services Grid --- */
/* --- Trang trí tiêu đề dịch vụ --- */
.text-center { text-align: center; }

.section-header {
    max-width: 700px;
    margin: 0 auto 60px; /* Căn giữa block tiêu đề */
    position: relative;
}

.header-divider {
    width: 80px;
    height: 4px;
    background: var(--accent);
    margin: 20px auto 0;
    border-radius: 2px;
    position: relative;
}

.header-divider::before {
    content: '';
    position: absolute;
    width: 20px;
    height: 4px;
    background: var(--primary);
    left: 50%;
    transform: translateX(-50%);
}

/* --- Trang trí Grid & Card --- */
.services-section {
    background: var(--bg-alt); /* Nền xám nhẹ để nổi bật thẻ trắng */
    position: relative;
    overflow: hidden;
}

/* Hiệu ứng hạt trang trí mờ phía sau (optional) */
.services-section::before {
    content: 'LAW';
    position: absolute;
    font-size: 20rem;
    font-weight: 900;
    color: rgba(15, 23, 42, 0.03);
    top: 0;
    left: -50px;
    line-height: 1;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
    max-width: 1200px;
    margin: 0 auto;
}

.service-card {
    background: #ffffff;
    padding: 60px 40px;
    border-radius: 30px;
    border: 1px solid rgba(226, 232, 240, 0.8);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.02);
    position: relative;
    overflow: hidden;
    transition: var(--transition-slow);
}

.service-card:hover {
    transform: translateY(-15px);
    box-shadow: 0 30px 60px rgba(15, 23, 42, 0.1);
    border-color: var(--accent);
}

/* Icon trang trí */
.service-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, var(--primary), #1e293b);
    color: var(--accent);
    border-radius: 22px;
    font-size: 32px;
    margin: 0 auto 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 10px 20px rgba(15, 23, 42, 0.2);
}

/* Đường line vàng nhỏ dưới chân thẻ khi hover */
.card-border-bottom {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 4px;
    background: var(--accent);
    transition: 0.5s ease;
}

.service-card:hover .card-border-bottom {
    width: 100%;
}

.service-card h3 {
    font-size: 1.5rem;
    margin-bottom: 20px;
    color: var(--primary);
    font-weight: 700;
}

.service-card p {
    color: var(--text-muted);
    font-size: 1rem;
    line-height: 1.7;
}

/* Responsive */
@media (max-width: 992px) {
    .services-grid {
        grid-template-columns: 1fr;
        max-width: 500px;
    }
}
.services-grid { 
    display: grid; 
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); 
    gap: 30px; 
    max-width: 1400px; 
    margin: 0 auto; 
}

.service-card {
    background: var(--white);
    padding: 40px;
    border-radius: 24px;
    border: 1px solid #e2e8f0;
    transition: var(--transition);
    text-align: center;
}
.service-card:hover { 
    transform: translateY(-10px); 
    border-color: var(--accent);
    box-shadow: 0 20px 40px rgba(0,0,0,0.05);
}

.service-icon {
    width: 70px; height: 70px;
    background: var(--primary);
    color: var(--accent);
    display: flex; align-items: center; justify-content: center;
    margin: 0 auto 20px;
    border-radius: 15px;
    font-size: 28px;
}

/* --- About Section (Dark Theme) --- */
.about-section { background: var(--bg-dark); color: var(--white); }
.about-container { max-width: 1200px; margin: 0 auto; }
.about-flex { display: grid; grid-template-columns: 1fr 1fr; gap: 80px; align-items: center; }

.image-placeholder { 
    height: 550px; border-radius: 30px; overflow: hidden; 
    position: relative; border: 1px solid rgba(197, 160, 89, 0.2);
}
.legal-icon-img { width: 100%; height: 100%; object-fit: cover; }

.experience-tag {
    position: absolute; bottom: 30px; right: -20px;
    background: var(--accent); color: var(--primary);
    padding: 20px 30px; border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
}

.feature-item { display: flex; align-items: center; margin-bottom: 15px; }
.feature-item i { color: var(--accent); margin-right: 12px; }

/* --- Responsive --- */
@media (max-width: 992px) {
    .about-flex { grid-template-columns: 1fr; gap: 50px; }
    .btn-outline { margin-left: 0; margin-top: 15px; width: 100%; }
    .btn-gold { width: 100%; text-align: center; }
}

.dashicons, [class^="dashicons-"] {
    font-family: dashicons !important;
}

/* Định dạng Logo Header */
.logo-link {
    text-decoration: none;
    display: inline-block;
}

.logo-text {
    font-weight: 800; /* Độ dày cực đại tạo sự uy nghiêm */
    font-size: 24px;
    letter-spacing: 2px; /* Khoảng cách chữ sang trọng */
    text-transform: uppercase;
    font-family: 'Inter', sans-serif; /* Đồng bộ font với toàn trang */
    transition: all 0.3s ease;
}

.logo-text .text-white {
    color: #ffffff; /* Màu trắng cho chữ DANH BẠ */
}

.logo-text .text-gold {
    color: #c2a172; /* Màu đồng cho chữ LUẬT SƯ */
}

/* Hiệu ứng khi di chuột qua logo */
.logo-link:hover .logo-text {
    filter: brightness(1.2); /* Làm sáng toàn bộ logo */
    text-shadow: 0 0 10px rgba(194, 161, 114, 0.3); /* Phát sáng nhẹ màu đồng */
}