body {
    font-family: 'Be Vietnam Pro', sans-serif;
}

.group:hover .submenu {
    display: block;
    z-index: 1000;
}

.submenu {
    min-width: 300px;
    background: linear-gradient(to bottom, #2563eb, #1e40af);
    color: white;
    top: 100%;
    margin-top: -2px;
}

.submenu li a {
    white-space: nowrap;
    display: block;
    padding: 8px 16px;
}

.submenu li a:hover {
    background: #1e3a8a;
}

.group .submenu {
    transition: all 0.2s ease-in-out;
}

.project-card,
.skill-card,
.product-card,
.contact-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.project-card:hover,
.skill-card:hover,
.product-card:hover,
.contact-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.15);
}

.progress-bar {
    height: 8px;
    background-color: #e5e7eb;
    border-radius: 4px;
    overflow: hidden;
}

.progress {
    height: 100%;
    background-color: #2563eb;
    transition: width 0.5s ease;
}

.star-rating {
    color: #facc15;
}

#mobile-menu {
    display: none;
    background: linear-gradient(to bottom, #2563eb, #1e40af);
    z-index: 1000;
    padding: 1rem;
}

#mobile-menu.active {
    display: block;
}

#mobile-menu ul {
    display: flex;
    flex-direction: column;
}

#mobile-menu ul li {
    margin: 0.5rem 0;
}

#mobile-menu ul li a {
    color: white;
    font-size: 1rem;
    padding: 0.5rem 1rem;
    display: block;
}

#mobile-menu .submenu {
    display: none;
    position: static;
    background: none;
    margin-top: 0.5rem;
}

#mobile-menu .submenu.active {
    display: block;
}

#mobile-menu .submenu li a {
    font-size: 0.9rem;
    color: #e5e7eb;
    padding: 0.5rem 2rem;
}

#mobile-menu .submenu li a:hover {
    background: none;
    color: white;
}

.close-menu {
    color: white;
    font-size: 1.5rem;
    margin-right: 1rem;
}

.parent-menu {
    cursor: pointer;
}


/* Đảm bảo ảnh trong project-card và product-card hiển thị hình vuông */

.project-card img,
.product-card img {
    width: 100%;
    aspect-ratio: 1 / 1;
    /* Tỷ lệ 1:1 cho hình vuông */
    object-fit: cover;
    /* Đảm bảo ảnh lấp đầy mà không méo */
    border-radius: 0.375rem;
    /* rounded-md */
    margin-bottom: 1rem;
    /* mb-4 */
}

@media (max-width: 768px) {
    .desktop-nav {
        display: none;
    }
    .hamburger {
        display: block;
    }
    .border-y.border-dotted.border-gray-300 .grid {
        display: flex;
        flex-wrap: nowrap;
        gap: 1rem;
        font-size: 0.85rem;
        justify-content: space-between;
    }
    .border-y.border-dotted.border-gray-300 .grid>div {
        flex: 1;
        min-width: 0;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }
}

@media (min-width: 769px) {
    .hamburger {
        display: none;
    }
    #mobile-menu {
        display: none !important;
    }
    header .container {
        display: flex;
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
    header .desktop-nav ul {
        justify-content: center;
    }
}