

.hero-section {
    position: relative;
    height: 100vh;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

/* Gradient Background with Image */
.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    background: linear-gradient(45deg, #f47e39, #ffca2c, #f47e39);
    background-size: 200% 200%;
    animation: gradientFlow 10s ease infinite;
    /* Thêm hình ảnh nền tối ưu */
    background-image: url('/public/images/hero-bg.webp');
    background-position: center;
    background-size: cover;
    background-blend-mode: overlay;
}

@keyframes gradientFlow {
    0% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
    100% {
        background-position: 0% 50%;
    }
}

.overlay-home {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.4));
    /* display: none; */
}
.menu-toggle-input {
    display: none;
}

.menu-toggle {
    display: none;
    color: #fff;
    font-size: 1.5rem;
    cursor: pointer;
}

@media (max-width: 768px) {
    .menu-toggle {
        display: block;
    }

    .nav-list {
        display: none;
    }

    .menu-toggle-input:checked ~ .nav-list {
        display: flex;
    }
}

/* Header Top (Logo and Navigation) */
.header-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 50px;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(5px);
    position: absolute;
    top: 0;
    width: 100%;
    z-index: 10;
}

.logo-container {
    display: flex;
    align-items: center;
    gap: 15px;
}

.logo {
    height: 60px;
    transition: transform 0.3s ease;
}

.logo:hover {
    transform: scale(1.1);
}

.company-info {
    color: #fff;
    text-transform: uppercase;
}

.company-name {
    font-size: 1.5rem;
    font-weight: 700;
    background: linear-gradient(90deg, #f47e39, #ffca2c);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.company-field {
    font-size: 0.9rem;
    font-weight: 400;
    opacity: 0.8;
}

.company-slogan {
    font-size: 0.8rem;
    font-weight: 300;
    opacity: 0.6;
}

/* Navigation */
.main-nav {
    display: flex;
    align-items: center;
    gap: 20px;
}

.nav-list {
    list-style: none;
    display: flex;
    gap: 20px;
}

.nav-item {
    position: relative;
}

.nav-item a {
    color: #fff;
    text-decoration: none;
    font-weight: 600;
    padding: 10px 15px;
    border-radius: 5px;
    transition: background 0.3s, color 0.3s, transform 0.3s;
}

.nav-item a:hover {
    background: #f47e39;
    color: #fff;
    transform: translateY(-2px);
}

/* Dropdown Menu */
.dropdown {
    position: relative;
}

.dropdown-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background-color: #fff;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    border-radius: 5px;
    z-index: 1000;
    min-width: 200px;
    transform: translateY(10px);
    opacity: 0;
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.dropdown:hover .dropdown-menu {
    display: block;
    opacity: 1;
    transform: translateY(-5px);
    background-color: #ffffff;
}

.dropdown-list {
    list-style: none;
    padding: 10px 0;
}

.dropdown-list li {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 20px;
    transition: background 0.3s, transform 0.3s;
}

.dropdown-list li:hover {
    background: #f4f4f9;
    transform: translateX(5px);
}

.dropdown-list li a {
    color: #2c3e50;
    font-weight: 500;
}

.dropdown-list li img {
    width: 40px;
    height: 40px;
    object-fit: cover;
    border-radius: 5px;
    transition: transform 0.3s;
}

.dropdown-list li:hover img {
    transform: scale(1.1);
}

/* Hero Content */
.hero-content {
    text-align: center;
    color: #fff;
    padding: 50px;
    position: relative;
    z-index: 1;
    /* margin-top: 300px; Adjusted to center the content vertically */
    animation: fadeInUp 1s ease forwards;
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 1s ease forwards 0.5s;
}

.hero-content h1 {
    font-size: 4.6rem;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 15px;
}

.hero-content h2 span {
    background: linear-gradient(90deg, #f47e39, #ffca2c);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    font-size: 4.6rem;
}

.hero-content h3 {
    font-size: 2.5rem;
    font-weight: 400;
    margin-bottom: 10px;
    opacity: 0.9;
    color: gainsboro;
}

.hero-content .company-name {
    font-size: 2rem;
    font-weight: 600;
    background: linear-gradient(90deg, #f47e39, #ffca2c);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* Scroll Down Indicator */
.scroll-down {
    text-align: center;
    margin-bottom: 30px;
    position: relative;
    z-index: 1;
    opacity: 0;
    animation: fadeIn 1s ease forwards 1s;
}

.scroll-down a {
    color: #fff;
    text-decoration: none;
    font-size: 1rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 5px;
    opacity: 0.8;
    transition: opacity 0.3s, transform 0.3s;
}

.scroll-down a:hover {
    opacity: 1;
    transform: translateY(-5px);
}

.scroll-down i {
    font-size: 1.5rem;
    animation: bounce 2s infinite;
}

/* Animations */
@keyframes fadeInUp {
    0% {
        opacity: 0;
        transform: translateY(20px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    0% {
        opacity: 0;
    }
    100% {
        opacity: 1;
    }
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateY(0);
    }
    40% {
        transform: translateY(10px);
    }
    60% {
        transform: translateY(5px);
    }
}

/* Responsive Design */
@media (max-width: 1024px) {
    .header-top {
        padding: 15px 30px;
    }

    .hero-content h1 {
        font-size: 2.5rem;
    }

    .nav-list {
        gap: 10px;
    }

    .nav-item a {
        padding: 8px 10px;
    }
}

@media (max-width: 768px) {
    .header-top {
        flex-direction: row;
        align-items: flex-start;
        gap: 15px;
        align-items: center;
    }

    .nav-list {
        display: none;
        flex-direction: column;
        width: 100%;
        background: rgba(0, 0, 0, 0.8);
        padding: 20px;
        position: absolute;
        top: 100%;
        left: 0;
    }

    .nav-list.active {
        display: flex;
    }

    .dropdown-menu {
        position: static;
        background: rgba(255, 255, 255, 0.9);
        transform: none;
        opacity: 1;
    }

    .hero-content h1 {
        font-size: 2rem;
    }

    .hero-content h3 {
        font-size: 1.2rem;
    }

    .hero-content .company-name {
        font-size: 1.5rem;
    }

    /* Mobile Menu Structure */
    .mobile-menu {
        position: fixed;
        top: 0;
        right: -100%;
        width: 280px;
        height: 100vh;
        background: #fff;
        box-shadow: -2px 0 10px rgba(0, 0, 0, 0.1);
        z-index: 1000;
        transition: right 0.3s ease;
        padding: 20px;
    }

    .mobile-nav-list {
        margin-top: 60px; /* Space for close button */
        list-style: none;
        padding: 0;
    }

    /* Mobile Dropdown Styling */
    .mobile-nav-item.dropdown {
        position: relative;
    }

    .mobile-dropdown-list {
        height: 0;
        opacity: 0;
        visibility: hidden;
        overflow: hidden;
        transition: all 0.3s ease;
        padding-left: 20px;
        border-left: 2px solid transparent;
    }

    /* Active State for Dropdown */
    .dropdown-toggle:checked ~ .mobile-dropdown-list {
        height: auto;
        opacity: 1;
        visibility: visible;
        padding: 10px 0 10px 20px;
        margin: 10px 0;
        border-left: 2px solid var(--primary-color);
    }

    /* Dropdown Items */
    .mobile-dropdown-list li {
        opacity: 0;
        transform: translateX(-10px);
        transition: all 0.3s ease;
    }

    .dropdown-toggle:checked ~ .mobile-dropdown-list li {
        opacity: 1;
        transform: translateX(0);
    }

    /* Dropdown Arrow Animation */
    .dropdown-label i {
        transition: transform 0.3s ease;
    }

    .dropdown-toggle:checked ~ .dropdown-label i {
        transform: rotate(180deg);
    }

    /* Links Styling */
    .mobile-nav-item a,
    .dropdown-label {
        display: block;
        padding: 12px 15px;
        color: #333;
        text-decoration: none;
        font-weight: 500;
        transition: all 0.3s ease;
    }

    .mobile-dropdown-list li a {
        padding: 8px 15px;
        color: #666;
        font-size: 0.9em;
    }
}

@media (max-width: 480px) {
    .header-top {
        padding: 10px 20px;
        align-items: center;
    }

    .logo {
        height: 50px;
    }

    .hero-content h1 {
        font-size: 1.5rem;
    }

    .hero-content h3 {
        font-size: 1rem;
    }

    .hero-content .company-name {
        font-size: 1.2rem;
    }
}


/* public/css/home.css */
/* (Giữ nguyên CSS hiện tại cho desktop, chỉ thêm phần mobile menu) */

/* Menu Toggle */
.menu-toggle-input {
    display: none;
}

.menu-toggle {
    display: none;
    color: #fff;
    font-size: 1.5rem;
    cursor: pointer;
    margin-left: 50px;
}

@media (max-width: 768px) {
    .menu-toggle {
        display: block;
    }

    .nav-list {
        display: none !important; /* Ẩn menu desktop trên mobile */
    }
}

/* Mobile Menu (Off-canvas) */
.mobile-menu {
    position: fixed;
    top: 0;
    right: -100%;
    width: 280px;
    height: 100vh;
    background: linear-gradient(135deg, #2c3e50, #1a252f);
    box-shadow: 2px 0 10px rgba(0, 0, 0, 0.3);
    z-index: 1000;
    transition: right 0.3s ease;
    overflow-y: auto;
}

.menu-toggle-input:checked ~ .mobile-menu {
    right: 0;
}

/* Mobile Menu Header */
.mobile-menu-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    background: linear-gradient(90deg, #f47e39, #ffca2c);
}

.mobile-menu-header .logo-container {
    display: flex;
    align-items: center;
    gap: 10px;
}

.mobile-menu-header .logo {
    height: 40px;
}

.mobile-menu-header .company-info {
    color: #fff;
}

.mobile-menu-header .company-name {
    font-size: 1.2rem;
    font-weight: 600;
    background: none;
    -webkit-text-fill-color: #fff;
}

.mobile-menu-header .company-field {
    font-size: 0.8rem;
    opacity: 0.8;
}

.menu-close {
    color: #fff;
    font-size: 1.5rem;
    cursor: pointer;
}

/* Mobile Menu List */
.mobile-nav-list {
    list-style: none;
    padding: 20px;
}

.mobile-nav-item {
    margin-bottom: 10px;
}

.mobile-nav-item a {
    display: block;
    color: #fff;
    text-decoration: none;
    font-weight: 500;
    padding: 12px 15px;
    border-radius: 5px;
    transition: background 0.3s, transform 0.3s;
}

.mobile-nav-item a:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: translateX(5px);
}

/* Dropdown in Mobile Menu */
.mobile-nav-item.dropdown {
    position: relative;
}

.dropdown-toggle {
    display: none;
}

.dropdown-label {
    display: block;
    color: #fff;
    font-weight: 500;
    padding: 12px 15px;
    border-radius: 5px;
    cursor: pointer;
    transition: background 0.3s;
}

.dropdown-label:hover {
    background: rgba(255, 255, 255, 0.1);
}

.mobile-dropdown-list {
    display: none;
    list-style: none;
    padding: 0 15px 0 30px;
    margin-top: 5px;
}

.dropdown-toggle:checked ~ .mobile-dropdown-list {
    display: block;
}

.mobile-dropdown-list li a {
    padding: 10px 15px;
    font-size: 0.9rem;
    color: #ddd;
}

.mobile-dropdown-list li a:hover {
    background: rgba(255, 255, 255, 0.05);
    transform: translateX(5px);
}

/* Overlay when menu is open */
.menu-toggle-input:checked ~ .mobile-menu::after {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: -1;
}

/* Responsive Adjustments */
@media (min-width: 769px) {
    .mobile-menu {
        display: none;
    }
}


