/* Reset & Base */
* { margin: 0; padding: 0; box-sizing: border-box; }
body { font-family: 'Segoe UI', Tahoma, sans-serif; color: #333; line-height: 1.6; }
a { text-decoration: none; color: inherit; }
img { max-width: 100%; display: block; }

/* Top Bar */
.top-bar {
    background: #1a8fd6;
    color: #fff;
    padding: 6px 40px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 15px;
}
.top-bar .logo-text { font-weight: bold; font-size: 18px; letter-spacing: 1px; }
.top-bar .contact-info { display: flex; align-items: center; gap: 30px; flex-wrap: wrap; }
.top-bar .email, .top-bar .phone { display: flex; align-items: center; gap: 8px; }
.top-bar .phone {
    background: #fff;
    color: #1a8fd6;
    padding: 0px 20px;
    border-radius: 30px;
    font-weight: bold;
}
.top-bar select {
    padding: 6px 15px;
    border-radius: 5px;
    border: none;
    background: #fff;
    cursor: pointer;
}

/* Navbar */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 40px;
    background: #fff;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}
.navbar .logo-img { height: 80px; }
.nav-links { display: flex; gap: 30px; list-style: none; }
.nav-links a {
    font-weight: 600;
    color: #1a8fd6;
    padding: 8px 4px;
    border-bottom: 3px solid transparent;
    transition: 0.3s;
    text-transform: uppercase;
    font-size: 14px;
}
.nav-links a:hover, .nav-links a.active { border-bottom-color: #1a8fd6; }

/* Hero Section */
.hero {
    position: relative;
    height: 600px;
    background: url('../images/hero.jpg') center/cover no-repeat;
    display: flex;
    align-items: center;
    padding: 0 80px;
}
.hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.35);
}
.hero-content { position: relative; max-width: 700px; color: #fff; }
.hero-content h1 {
    font-size: 50px;
    color: #f5a623;
    margin-bottom: 25px;
    font-weight: 700;
}
.hero-content p { color: #f5a623; font-size: 18px; line-height: 1.8; }

/* Page Banner */
.page-banner {
    position: relative;
    height: 400px;
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 0 0 50% 50%/0 0 20% 20%;
    overflow: hidden;
}
.page-banner h1 {
    font-size: 50px;
    color: #f5a623;
    z-index: 2;
    text-shadow: 2px 2px 5px rgba(0,0,0,0.3);
}
.banner-about { background-image: url('../images/about.jpg'); }
.banner-services { background-image: url('../images/service.jpg'); }
.banner-reviews { background-image: url('../images/review.jpg'); }

/* About Content */
.about-section { padding: 60px 80px; max-width: 1400px; margin: 0 auto; }
.about-section h2 { color: #1a8fd6; font-size: 32px; margin-bottom: 20px; }
.about-section h3 { color: #1a8fd6; font-size: 22px; margin: 30px 0 15px; }
.about-section p { margin-bottom: 15px; text-indent: 30px; }

/* Services Section */
.services-section { padding: 60px 80px; max-width: 1400px; margin: 0 auto; }
.services-title { text-align: center; margin-bottom: 40px; }
.services-title h2 { color: #1a8fd6; font-size: 36px; }
.services-title p { color: #777; }
.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}
.service-card { transition: 0.3s; }
.service-card:hover { transform: translateY(-5px); }
.service-card h3 { color: #1a8fd6; margin-bottom: 15px; font-size: 20px; }
.service-card img {
    width: 100%;
    height: 220px;
    object-fit: cover;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

/* Reviews Section */
.reviews-section { padding: 60px 80px; max-width: 1400px; margin: 0 auto; }
.review-card {
    display: flex;
    align-items: center;
    gap: 30px;
    background: #fff;
    padding: 25px;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
    margin-bottom: 25px;
}
.review-card img {
    width: 180px;
    height: 180px;
    object-fit: cover;
    border-radius: 8px;
    flex-shrink: 0;
}
.review-card .stars { color: #f5a623; font-size: 18px; margin-top: 10px; }
.review-card .name { font-weight: bold; }

/* Footer */
footer {
    background: #1a8fd6;
    color: #fff;
    padding: 60px 80px 30px;
}
.footer-grid {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 40px;
}
.footer-col h3 { margin-bottom: 20px; font-size: 20px; }
.newsletter-form {
    display: flex;
    background: #fff;
    border-radius: 30px;
    padding: 5px;
    max-width: 400px;
}
.newsletter-form input {
    flex: 1;
    border: none;
    padding: 10px 20px;
    outline: none;
    border-radius: 30px;
}
.newsletter-form button {
    background: #e74c3c;
    color: #fff;
    border: none;
    padding: 10px 30px;
    border-radius: 30px;
    cursor: pointer;
    font-weight: bold;
}
.footer-col ul { list-style: none; }
.footer-col ul li {
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 10px;
}
.footer-col ul li::before {
    content: '➤';
    background: #fff;
    color: #1a8fd6;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
}
.map-placeholder {
    width: 100%;
    height: 250px;
    background: #ddd;
    border-radius: 10px;
    overflow: hidden;
}
.abn { margin-top: 25px; font-weight: bold; }

/* Responsive */
@media (max-width: 992px) {
    .services-grid { grid-template-columns: repeat(2, 1fr); }
    .footer-grid { grid-template-columns: 1fr; }
    .hero, .about-section, .services-section, .reviews-section, footer { padding-left: 30px; padding-right: 30px; }
    .navbar { padding: 15px 20px; flex-wrap: wrap; }
    .nav-links { gap: 15px; flex-wrap: wrap; }
    .hero-content h1, .page-banner h1 { font-size: 32px; }
}
@media (max-width: 600px) {
    .services-grid { grid-template-columns: 1fr; }
    .review-card { flex-direction: column; text-align: center; }
    .top-bar { padding: 10px 20px; flex-direction: column; }
}

/* ===== HERO VIDEO ===== */
.hero {
    position: relative;
    width: 100%;
    height: 100vh;              /* Toàn màn hình */
    min-height: 600px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: left;
}

/* Video Background */
.hero-video {
    position: absolute;
    top: 50%;
    left: 50%;
    min-width: 100%;
    min-height: 100%;
    width: auto;
    height: auto;
    transform: translate(-50%, -50%);
    object-fit: cover;
    z-index: 1;
}

/* Lớp phủ tối để text dễ đọc */
.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.45);  /* Độ tối, tăng giảm tùy ý */
    z-index: 2;
}

/* Nội dung hero */
.hero-content {
    position: relative;
    z-index: 3;
    text-align: left;
    color: #fff;
    max-width: 700px;
    padding: 0 20px;
    animation: fadeInUp 1.2s ease;
}

.hero-content h1 {
    font-size: 2.4rem;
    font-weight: 700;
    margin-bottom: 20px;
    text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.5);
    line-height: 1.2;
}

.hero-content p {
    font-size: 1.1rem;
    line-height: 1.8;
    margin-bottom: 30px;
    text-shadow: 1px 1px 4px rgba(0, 0, 0, 0.5);
}

/* Nút CTA */
.hero-btn {
    display: inline-block;
    padding: 14px 40px;
    background: #1a8fd6;          /* Màu cam, đổi tùy ý */
    color: #fff;
    text-decoration: none;
    font-weight: 600;
    border-radius: 30px;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.hero-btn:hover {
    background: #e55a2b;
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
}

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

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
    .hero {
        height: 80vh;
        min-height: 500px;
    }
    .hero-content h1 {
        font-size: 2.5rem;
    }
    .hero-content p {
        font-size: 1rem;
    }
    .hero-btn {
        padding: 12px 30px;
        font-size: 0.9rem;
    }
}

@media (max-width: 480px) {
    .hero-content h1 {
        font-size: 2rem;
    }
    .hero-content p {
        font-size: 0.9rem;
    }
}

/* ===== NAVBAR TRANSPARENT → WHITE ===== */
.navbar {
    position: fixed;
    top: 40px;
    left: 0;
    width: 100%;
    z-index: 1000;
    padding: 20px 0;                          /* Padding lớn ban đầu */
    background: transparent;                  /* Trong suốt */
    transition: all 0.4s ease;                /* Animation mượt */
}

/* Khi scroll xuống - thêm class .scrolled */
.navbar.scrolled {
    background: #ffffff;                      /* Nền trắng */
    padding: 10px 0;                          /* Nhỏ lại */
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.1); /* Đổ bóng nhẹ */
    top: 0;
}

/* Container */
.nav-container {
    width: 100%;
    margin: 0 auto;
    padding: 0 30px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

/* Logo */
.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    transition: all 0.4s ease;
}

.logo-img {
    transition: all 0.4s ease;
}

.navbar.scrolled .logo-img {
    height: 40px;                             /* Logo nhỏ lại khi scroll */
}

.logo-text {
    font-size: 1.5rem;
    font-weight: 700;
    color: #ffffff;                           /* Trắng khi trong suốt */
    transition: all 0.4s ease;
}

.navbar.scrolled .logo-text {
    color: #1a8fd6;                           /* Cam khi scroll */
    font-size: 1.3rem;
}

/* Menu */
.nav-menu {
    display: flex;
    gap: 35px;
    list-style: none;
    margin: 0;
    padding: 0;
}

.nav-menu a {
    color: #ffffff;                           /* Trắng ban đầu */
    text-decoration: none;
    font-weight: 500;
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    position: relative;
    transition: all 0.3s ease;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3); /* Bóng nhẹ cho dễ đọc trên video */
}

.navbar.scrolled .nav-menu a {
    color: #1a8fd6;                           /* Đen khi scroll */
    text-shadow: none;
}

/* Hover effect */
.nav-menu a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: #1a8fd6;
    transition: width 0.3s ease;
}

.nav-menu a:hover::after {
    width: 100%;
}

.nav-menu a:hover {
    color: #1a8fd6;
}

/* Nút ngôn ngữ */
.nav-right {
    display: flex;
    align-items: center;
    gap: 15px;
}

.lang-btn {
    padding: 8px 16px;
    background: transparent;
    border: 2px solid #ffffff;
    color: #ffffff;
    border-radius: 20px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s ease;
}

.navbar.scrolled .lang-btn {
    border-color: #1a8fd6;
    color: #1a8fd6;
}

.lang-btn:hover {
    background: #1a8fd6;
    color: #ffffff;
    border-color: #1a8fd6;
}

/* Menu toggle (mobile) */
.menu-toggle {
    display: none;
    background: transparent;
    border: none;
    color: #ffffff;
    font-size: 1.5rem;
    cursor: pointer;
}

.navbar.scrolled .menu-toggle {
    color: #333333;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
    .nav-menu {
        position: fixed;
        top: 70px;
        left: -100%;
        width: 100%;
        height: calc(100vh - 70px);
        background: #ffffff;
        flex-direction: column;
        align-items: center;
        justify-content: flex-start;
        padding-top: 50px;
        gap: 25px;
        transition: left 0.4s ease;
    }
    
    .nav-menu.active {
        left: 0;
    }
    
    .nav-menu a {
        color: #333333 !important;
        text-shadow: none !important;
        font-size: 1.2rem;
    }
    
    .menu-toggle {
        display: block;
    }
    
    .logo-text {
        font-size: 1.1rem;
    }
}