:root {

    --primary-blue: #ff9100;
    --secondary-green: #e99e3c;
    --accent-light-blue: #eaac5a;
    --text-dark: #212529; 
    --text-light: #495057;
    --background-light: #f8f9fa;
    --white-color: #ffffff;
    --border-color: #dee2e6;
    --light-orange: #fffaf0;
}

html {
    scroll-behavior: smooth;
}

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

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

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

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

@keyframes fadeInSlide {
    from {
        opacity: 0;
        transform: translateX(-50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes bounceIn {
    0% { transform: scale(0.95); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
}

.fade-in-up {
    animation: fadeInUp 0.8s ease-out forwards;
}

.fade-in-slide {
    animation: fadeInSlide 0.8s ease-out forwards;
}

.bounce-hover {
    transition: transform 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

.bounce-hover:hover {
    animation: bounceIn 0.6s ease-out;
}

.animate-on-scroll {
    opacity: 0;
    transform: translateY(50px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.animate-on-scroll.animate {
    opacity: 1;
    transform: translateY(0);
}

.top-header {
    background-color: var(--background-light);
    padding: 10px 0;
    font-size: 14px;
    border-bottom: 1px solid var(--border-color);
    color: var(--text-light);
}
.top-header i {
    color: var(--secondary-green);
    margin-right: 8px;
}
.contact-details span {
    margin-right: 20px;
}

.main-navigation {
    background: var(--white-color);
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
    height: 80px;
    position: sticky;
    top: 0;
    z-index: 1000;

    width: 100%;
    left: 0;
}
.brand-logo img {
    height: 80px;
}
.nav-menu {
    display: flex;
    list-style: none;
    gap: 35px;
    margin: 0;
    padding: 0;
}
.nav-menu a {
    text-decoration: none;
    color: var(--text-dark);
    font-weight: 700;
    padding-bottom: 5px;
    position: relative;
    transition: color 0.3s;
}
.nav-menu a:hover, .nav-menu a.active {
    color: var(--primary-blue);
}
.nav-menu a.active::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 100%;
    height: 3px;
    background-color: var(--secondary-green);
}
.quote-button {
    background-color: var(--secondary-green);
    color: var(--white-color);
    padding: 12px 25px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 700;
    transition: background-color 0.3s, transform 0.2s;
    position: relative;
    overflow: hidden; 
}
.quote-button::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: rgba(255,255,255,0.3);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}
.quote-button:hover::before {
    width: 300px;
    height: 300px;
}
.quote-button:hover {
    background-color: var(--primary-blue);
    transform: translateY(-2px);
}

.mobile-nav-toggle {
    display: none;
}

.hero {
    padding: 80px 0;
    position: relative;
    overflow: hidden;
}
.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(255,145,0,0.05) 0%, rgba(233,158,60,0.05) 100%);
    z-index: 1;
}
.hero-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    align-items: center;
    gap: 60px;
    position: relative;
    z-index: 2;
}
.hero-image-column {
    display: flex;
    align-items: center;
    position: relative;
}
.hero-image-column img {
    width: 100%;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0,95,115,0.2);
    animation: fadeInUp 1s ease-out 0.5s both; /* Delay cho image */
}
.main-headline {
    font-size: 42px;
    color: var(--primary-blue);
    line-height: 1.2;
    margin-bottom: 20px;
    animation: fadeInSlide 0.8s ease-out both;
}
.sub-headline {
    font-size: 18px;
    color: var(--text-light);
    margin-bottom: 40px;
    animation: fadeInUp 0.8s ease-out 0.3s both;
}
.feature-list {
    display: flex;
    flex-direction: column;
    gap: 25px;
    margin-bottom: 40px;
}
.feature-item {
    display: flex;
    align-items: center;
    opacity: 0;
    animation: fadeInUp 0.6s ease-out forwards;
}
.feature-item:nth-child(1) { animation-delay: 0.5s; }
.feature-item:nth-child(2) { animation-delay: 0.7s; }
.feature-item:nth-child(3) { animation-delay: 0.9s; }
.feature-icon {
    background-color: #e0f2f1;
    width: 55px;
    height: 55px;
    border-radius: 12px;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-right: 20px;
    transition: transform 0.3s;
}
.feature-item:hover .feature-icon {
    transform: scale(1.1);
}
.feature-icon i {
    font-size: 24px;
    color: var(--secondary-green);
}
.feature-text h3 {
    margin: 0 0 5px 0;
    font-size: 18px;
}
.feature-text p {
    margin: 0;
    color: var(--text-light);
}
.learn-more-button {
    background-color: var(--primary-blue);
    color: var(--white-color);
    padding: 15px 35px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 700;
    display: inline-block;
    transition: background-color 0.3s, transform 0.2s;
    position: relative;
    overflow: hidden;
    animation: bounceIn 0.8s ease-out 1.2s both;
}
.learn-more-button::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: rgba(255,255,255,0.3);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}
.learn-more-button:hover::before {
    width: 300px;
    height: 300px;
}
.learn-more-button:hover {
    background-color: #004250;
    transform: translateY(-2px);
}

.floating-contact-buttons {
    position: fixed;
    bottom: 30px;
    right: 30px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    z-index: 990; 
}
.fab-icon {
    width: 55px;
    height: 55px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    color: var(--white-color);
    font-size: 22px;
    text-decoration: none;
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
    transition: transform 0.3s, background-color 0.3s;
}
.fab-icon:hover {
    transform: scale(1.1) rotate(5deg); 
}
.fab-icon.call { background-color: #007bff; }
.fab-icon.messenger { background: linear-gradient(45deg, #0099ff, #a033ff); }
.fab-icon.back-to-top {
    background-color: var(--text-light);
    display: none;
}
.fab-icon.back-to-top:hover {
    background-color: var(--text-dark);
}
.fab-icon.facebook { background-color: #1877F2; }
.fab-icon.zalo {
    background-color: transparent;
    box-shadow: none;
    width: 60px;
    height: 60px;
}
.fab-icon.zalo:hover {
    transform: scale(1.1);
}
.zalo-img-icon {
    width: 100%;
    height: 100%;
    object-fit: contain;
    border-radius: 50%;
}

.content-section {
    padding: 80px 0;
}
.bg-light {
    background-color: var(--background-light);
}
.section-title {
    font-size: 36px;
    color: var(--primary-blue);
    margin-bottom: 20px;
    text-align: center;
}
.section-subtitle {
    font-size: 18px;
    color: var(--text-light);
    max-width: 600px;
    margin: 0 auto 50px auto;
}
.text-center {
    text-align: center;
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 50px;
    align-items: center;
}
.about-image img {
    width: 100%;
    border-radius: 15px;
    animation: fadeInUp 1s ease-out both;
}
.about-content h3 {
    font-size: 24px;
    margin-bottom: 15px;
}
.about-content p {
    font-size: 16px;
    color: var(--text-light);
    line-height: 1.8;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}
.service-card {
    background-color: var(--white-color);
    padding: 40px;
    text-align: center;
    border-radius: 15px;
    box-shadow: 0 8px 25px rgba(0,0,0,0.08);
    transition: transform 0.3s, box-shadow 0.3s;
    opacity: 0; 
}
.service-card.animate {
    animation: fadeInUp 0.6s ease-out forwards;
}
.service-card:nth-child(1).animate { animation-delay: 0.2s; }
.service-card:nth-child(2).animate { animation-delay: 0.4s; }
.service-card:nth-child(3).animate { animation-delay: 0.6s; }
.service-card:hover {
    transform: translateY(-10px) rotate(1deg); 
    box-shadow: 0 12px 35px rgba(0,95,115,0.15);
}
.card-icon {
    font-size: 40px;
    color: var(--secondary-green);
    margin-bottom: 20px;
    transition: transform 0.3s;
}
.service-card:hover .card-icon {
    transform: scale(1.2) rotate(360deg);
}
.service-card h4 {
    font-size: 22px;
    margin-bottom: 15px;
}
.service-card p {
    color: var(--text-light);
}

.contact-info-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-top: 50px;
}
.contact-info-item {
    text-align: center;
    transition: transform 0.3s;
}
.contact-info-item:hover {
    transform: translateY(-5px);
}
.contact-info-item i {
    font-size: 32px;
    color: var(--primary-blue);
    margin-bottom: 20px;
}
.contact-info-item h4 {
    font-size: 20px;
    margin-bottom: 10px;
}
.contact-info-item p {
    font-size: 16px;
    color: var(--text-light);
    margin: 0;
}

.map-container {
    margin-top: 50px;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 8px 25px rgba(0,0,0,0.08);
}
.map-container iframe {
    display: block;
    width: 100%;
    height: 450px;
    border: 0;
}

.site-footer {
    background-color: var(--light-orange);
    color: var(--text-dark); 
    padding-top: 60px; 
    font-size: 15px;
    line-height: 1.7;
    box-shadow: 0 -4px 20px rgba(255,145,0,0.1); 
}

.footer-top {
    padding-bottom: 40px; 
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
}

.footer-column.about {
    grid-column: span 1; 
}

.footer-column.links {
    grid-column: span 1;
}

.footer-column.contact {
    grid-column: span 1;
}

.footer-logo {
    height: 150px; 
    margin-bottom: 20px;
    background-color: transparent; 
    padding: 5px 10px;
    border-radius: 5px;
}

.footer-column p {
    color: var(--text-light);
    margin-bottom: 20px;
}

.footer-social-icons {
    display: flex;
    gap: 12px;
    margin-top: 20px;
}

.social-icon {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: #ffe8cc; 
    color: var(--primary-blue);
    font-size: 16px;
    text-decoration: none;
    transition: background-color 0.3s, transform 0.3s, color 0.3s;
}
.social-icon:hover {
    background-color: var(--primary-blue);
    color: var(--white-color); 
    transform: translateY(-3px) scale(1.1);
}

.footer-column-title {
    font-size: 20px;
    font-weight: 700;
    color: var(--text-dark); 
    margin-bottom: 25px;
    position: relative;
}

.footer-nav-menu,
.footer-contact-info {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-nav-menu li {
    margin-bottom: 12px;
}

.footer-nav-menu li a,
.footer-contact-info li a {
    text-decoration: none;
    color: var(--text-light); 
    transition: color 0.3s, padding-left 0.3s;
}

.footer-nav-menu li a:hover {
    color: var(--primary-blue); 
    padding-left: 5px;
}

.footer-contact-info li {
    display: flex;
    align-items: flex-start;
    margin-bottom: 15px;
    color: var(--text-light);
}

.footer-contact-info li i {
    margin-right: 12px;
    font-size: 16px;
    margin-top: 4px;
    width: 20px; 
    text-align: center;
    color: var(--primary-blue);
}
.footer-contact-info li span {
    flex: 1; 
}
.footer-contact-info li a:hover {
    color: var(--primary-blue); 
}

/* Thanh Copyright */
.footer-bottom {
    background-color: rgba(255,145,0,0.05);
    text-align: center;
    padding: 20px 0;
    margin-top: 40px;
    font-size: 14px;
    color: var(--text-light);
    border-top: 1px solid #ffe8cc;
}

.footer-bottom p {
    margin: 0;
}


.nav-item-dropdown {
    position: relative; 
}

.nav-item-dropdown > a .fa-chevron-down {
    font-size: 12px;
    margin-left: 6px;
    transition: transform 0.3s ease;
}

.dropdown-menu {
    display: block;
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 250px;
    
    background-color: var(--white-color);
    box-shadow: 0 8px 16px rgba(0,0,0,0.1);
    border-radius: 8px;
    
    list-style: none;
    margin: 0;
    padding: 8px 0;
    z-index: 1100;

    visibility: hidden;
    opacity: 0;
    transform: translateY(10px);
    transition: opacity 0.3s ease, transform 0.3s ease, visibility 0.3s ease;
}

.nav-item-dropdown:hover > .dropdown-menu {
    visibility: visible;
    opacity: 1;
    transform: translateY(0);
}

.nav-item-dropdown:hover > a .fa-chevron-down {
    transform: rotate(180deg);
}

.dropdown-menu li {
    position: relative;
}

.dropdown-menu li a {
    display: block;
    padding: 10px 20px;
    color: var(--text-dark);
    font-weight: 500;
    font-size: 15px;
    white-space: nowrap; 
    transition: background-color 0.2s, color 0.2s;
}

.dropdown-menu li a.active::after,
.dropdown-menu li a::after {
    content: none;
}

.dropdown-menu li a:hover {
    background-color: var(--background-light);
    color: var(--primary-blue); 
}

@media (max-width: 992px) {
    .hero-grid, .about-grid {
        grid-template-columns: 1fr;
        gap: 40px;
        text-align: center;
    }

    .hero-image-column {
        order: -1;
    }
    
    .feature-item {
        justify-content: center;
        text-align: left;
    }

    .main-headline {
        font-size: 36px;
    }

    .services-grid, .contact-info-grid {
        grid-template-columns: 1fr;
    }

    .mobile-nav-toggle {
        display: block;
        background: none;
        border: none;
        font-size: 28px;
        color: var(--primary-blue);
        cursor: pointer;
        z-index: 1001;
    }

    .nav-menu {
        position: fixed;
        top: 0;
        right: -100%;
        width: 80%;
        max-width: 320px;
        height: 100vh;
        background-color: var(--white-color);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 40px;
        transition: right 0.4s ease-in-out;
        box-shadow: -5px 0 15px rgba(0,0,0,0.1);
    }

    .nav-menu.active {
        right: 0;
    }

    .nav-menu a {
        font-size: 18px;
    }
    
    .quote-button {
        display: none;
    }

    .nav-item-dropdown {
        position: static; 
        width: 100%;
        text-align: center;
    }
    
    /* Hiển thị lại icon chevron và thêm hiệu ứng */
    .nav-item-dropdown > a .fa-chevron-down {
        display: inline-block; 
        transition: transform 0.3s ease;
        margin-left: 8px;
    }
    
    /* CSS cho icon khi xoay */
    .nav-item-dropdown > a.submenu-active-link .fa-chevron-down {
        transform: rotate(180deg);
    }

    /* Ẩn dropdown-menu đi để làm menu accordion */
    .dropdown-menu {
        position: static;
        transform: none;
        box-shadow: none;
        background-color: transparent;
        min-width: auto;
        width: 100%;
        
        /* === PHẦN CHÍNH: Ẩn menu con mặc định === */
        padding: 0 0 0 25px; /* Vẫn giữ thụt lề */
        max-height: 0;
        overflow: hidden;
        opacity: 0;
        visibility: hidden;
        /* Thêm transition cho mượt */
        transition: max-height 0.4s ease-out, opacity 0.3s ease-out, padding 0.3s ease-out;
    }

    /* Lớp để kích hoạt menu con */
    .dropdown-menu.submenu-active {
        max-height: 500px; /* Chiều cao đủ lớn để chứa các mục */
        opacity: 1;
        visibility: visible;
        padding: 10px 0 10px 25px; /* Thêm padding khi mở */
    }
    
    .dropdown-menu li a {
        padding: 8px 15px;
        font-size: 16px;
    }

    .footer-grid {
        grid-template-columns: repeat(2, 1fr); 
        gap: 40px;
    }
    .footer-column.about {
        grid-column: span 2; 
        text-align: center;
    }
    .footer-social-icons {
        justify-content: center;
    }
    .footer-column.contact,
    .footer-column.links {
        grid-column: span 1;
    }
}

@media (max-width: 768px) {
    .footer-grid {
        grid-template-columns: 1fr;
    }
    .footer-column.about,
    .footer-column.links,
    .footer-column.contact {
        grid-column: span 1; 
        text-align: center;
    }
    .footer-contact-info li {
        justify-content: center;
        text-align: left; 
    }
}


@media (max-width: 576px) {
    .content-section {
        padding: 60px 0;
    }
    
    .main-headline {
        font-size: 32px;
    }

    .section-title {
        font-size: 28px;
    }

    .service-card {
        padding: 30px;
    }

    .top-header .contact-details {
        font-size: 12px;
    }

    .floating-contact-buttons {
        bottom: 20px;
        right: 20px;
    }

    .fab-icon {
        width: 50px;
        height: 50px;
        font-size: 20px;
    }

    .fab-icon.zalo {
        width: 55px;
        height: 55px;
    }
}


.fab-icon.zalo {
    cursor: pointer;
}

.zalo-popup-overlay {
    position: fixed;
    top: 80px; 
    left: 0;
    width: 100%;
    height: calc(100vh - 80px);
    background-color: rgba(0, 0, 0, 0.6);
    z-index: 999; 
    
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
    
    visibility: hidden;
    opacity: 0;
    transition: opacity 0.3s ease-in-out, visibility 0.3s ease-in-out;
}

.zalo-popup-overlay.show {
    visibility: visible;
    opacity: 1;
}

.zalo-popup-content {
    width: 100%;
    max-width: 450px; 
    background-color: var(--white-color);
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.2);
    
    transform: scale(0.95);
    opacity: 0;
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275), opacity 0.2s;
    overflow: hidden; 
}

.zalo-popup-overlay.show .zalo-popup-content {
    transform: scale(1);
    opacity: 1;
    transition-delay: 0.05s; 
}

.zalo-popup-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 15px;
    background-color: var(--primary-blue);
    color: var(--white-color);
}

.zalo-popup-header span {
    font-weight: 700;
}

.zalo-popup-close {
    background: none;
    border: none;
    color: var(--white-color);
    font-size: 24px;
    line-height: 1;
    cursor: pointer;
    opacity: 0.8;
    padding: 0;
}
.zalo-popup-close:hover {
    opacity: 1;
}

.zalo-staff-list {
    list-style: none;
    margin: 0;
    padding: 10px;
    max-height: 60vh;
    overflow-y: auto;
}

.zalo-staff-item {
    display: flex;
    align-items: center;
    padding: 12px 10px;
    text-decoration: none;
    color: var(--text-dark);
    border-radius: 8px;
    transition: background-color 0.2s;
}

.zalo-staff-item:hover {
    background-color: var(--background-light);
}

.zalo-staff-item img {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    margin-right: 12px;
    object-fit: cover;
    border: 1px solid var(--border-color);
}

.zalo-staff-item span {
    font-size: 15px;
    font-weight: 500;
}

main {
    padding-top: 80px;
}