/* Reset mặc định */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Body */
body {
    font-family: 'Roboto', sans-serif;
    color: #333;
    background: #f5f7fa;
    line-height: 1.6;
}

/* Container */
.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
}

/* Header */
header {
    background: #002B5B;
    padding: 15px 0;
    position: sticky;
    top: 0;
    z-index: 999;
    box-shadow: 0 2px 6px rgba(0,0,0,0.1);
}
header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}
header .logo a {
    font-size: 28px;
    font-weight: bold;
    color: white;
    text-decoration: none;
}
header .logo a span {
    color: #FF6F00;
}
header nav ul {
    list-style: none;
    display: flex;
    gap: 30px;
}
header nav ul li a {
    color: white;
    text-decoration: none;
    font-weight: 500;
    font-size: 16px;
    position: relative;
    padding: 5px 0;
    transition: color 0.3s;
}
header nav ul li a::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -3px;
    width: 0%;
    height: 2px;
    background: #FF6F00;
    transition: width 0.4s ease;
}
header nav ul li a:hover {
    color: #FF6F00;
}
header nav ul li a:hover::after {
    width: 100%;
}

/* Banner */
.banner {
    background: url('../images/banner.jpg') no-repeat center center/cover;
    background-color: #002B5B;
    color: white;
    text-align: center;
    padding: 140px 20px;
    position: relative;
    animation: kenburns 20s ease-in-out infinite alternate;
    background-attachment: fixed;
}
html {
    scroll-behavior: smooth;
}
@keyframes kenburns {
    0% {
        background-size: 100% 100%;
    }
    100% {
        background-size: 110% 110%;
    }
}
.banner::after {
    content: '';
    position: absolute;
    top:0; left:0; right:0; bottom:0;
    background: rgba(0, 43, 91, 0.5);
}
.banner .container {
    position: relative;
    z-index: 1;
}
.banner h1 {
    font-size: 48px;
    margin-bottom: 20px;
}
.banner p {
    font-size: 20px;
    margin-bottom: 30px;
}
.banner .btn-primary {
    background: #FF6F00;
    padding: 12px 25px;
    color: white;
    text-decoration: none;
    border-radius: 5px;
    font-weight: bold;
    transition: background 0.3s, transform 0.3s, box-shadow 0.3s;
}
.banner .btn-primary:hover {
    background: #e65c00;
    transform: scale(1.05);
    box-shadow: 0 6px 15px rgba(0,0,0,0.2);
}

/* Banner animation */
.banner h1, .banner p, .banner .btn-primary {
    opacity: 0;
    transform: translateY(30px);
    animation: fadeUp 1s ease forwards;
}
.banner p {
    animation-delay: 0.3s;
}
.banner .btn-primary {
    animation-delay: 0.6s;
}
@keyframes fadeUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Sections chung */
section {
    padding: 80px 0;
}

/* About, Services, Contact CTA chung */
.about h2,
.services h2,
.contact-cta h2 {
    text-align: center;
    font-size: 36px;
    margin-bottom: 40px;
    color: #002B5B;
}

/* About Section */
.about {
    background: #f5f7fa;
}
.about-flex {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 80px;
}
.about-image {
    flex: 1 1 40%;
    opacity: 0;
    transform: translateY(30px);
    animation: fadeUp 1s ease forwards;
}
.about-image img {
    width: 100%;
    border-radius: 12px;
    box-shadow: 0 8px 20px rgba(0,0,0,0.15);
    transition: transform 0.4s ease, box-shadow 0.4s ease;
}
.about-image img:hover {
    transform: scale(1.05);
    box-shadow: 0 12px 24px rgba(0,0,0,0.25);
}
.about-content {
    flex: 1 1 50%;
    opacity: 0;
    transform: translateY(30px);
    animation: fadeUp 1s ease forwards;
    animation-delay: 0.5s;
}
.about-content h2 {
    font-size: 36px;
    color: #002B5B;
    margin-bottom: 10px;
}
.about-content .line {
    width: 60px;
    height: 4px;
    background: #FF6F00;
    margin-bottom: 20px;
}
.about-content p {
    font-size: 16px;
    color: #555;
    margin-bottom: 20px;
}
.about-content .btn-about {
    display: inline-block;
    background: #FF6F00;
    color: white;
    padding: 12px 30px;
    text-decoration: none;
    border-radius: 30px;
    font-weight: bold;
    transition: all 0.3s ease;
}
.about-content .btn-about:hover {
    background: #e65c00;
    transform: translateY(-3px);
    box-shadow: 0 6px 15px rgba(0,0,0,0.2);
}

/* Services Section */
.services .service-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 30px;
}
.service-item {
    background: white;
    padding: 30px 20px;
    border-radius: 10px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    text-align: center;
    transition: transform 0.3s, box-shadow 0.3s;
}
.service-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 16px rgba(0,0,0,0.2);
}
.service-item h3 {
    color: #002B5B;
    margin-bottom: 15px;
}
.service-item p {
    font-size: 15px;
}

/* Contact CTA Section */
.contact-cta {
    background: #002B5B;
    color: white;
    text-align: center;
    padding: 50px 20px; /* Giảm padding top-bottom */
}

.contact-cta .btn-secondary {
    background: #FF6F00;
    padding: 12px 25px;
    color: white;
    text-decoration: none;
    border-radius: 5px;
    font-weight: bold;
    display: inline-block;
    margin-top: 20px;
    transition: background 0.3s;
}
.contact-cta .btn-secondary:hover {
    background: #e65c00;
}

/* Footer */
footer {
    text-align: center;
    background: #001f3f;
    padding: 20px 0;
    color: white;
    font-size: 14px;
}

/* Services Section */
.services {
    background: #ffffff;
}
.services h2 {
    text-align: center;
    font-size: 36px;
    color: #002B5B;
    margin-bottom: 50px;
}
.service-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}
/* .service-item {
    background: #f9fafb;
    padding: 30px 20px;
    border-radius: 16px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
    text-align: center;
    transition: transform 0.3s, box-shadow 0.3s;
}
.service-item:hover {
    transform: translateY(-8px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.15);
} */



.service-item {
    text-decoration: none;
    color: inherit;
    display: block;
  }
  .service-item:hover {
    transform: translateY(-5px);
    transition: 0.3s ease;
  }
  





.service-icon {
    margin-bottom: 20px;
}
.service-icon img {
    width: 60px;
    height: 60px;
}
.service-item h3 {
    font-size: 20px;
    color: #002B5B;
    margin-bottom: 15px;
}
.service-item p {
    font-size: 15px;
    color: #555;
}

/* Social Links */
.social-links {
    margin-top: 30px;
    display: flex;
    justify-content: center;
    gap: 20px;
}
.social-links a img {
    width: 40px;
    height: 40px;
    transition: transform 0.3s;
}
.social-links a:hover img {
    transform: scale(1.2);
}


/* Banner nhỏ cho các page phụ */
.banner-small {
    background: #002B5B;
    color: white;
    text-align: center;
    padding: 80px 20px;
}
.banner-small h1 {
    font-size: 36px;
    margin: 0;
}

/* About page content */
.about-page {
    background: #ffffff;
    padding: 60px 20px;
}
.about-page h2 {
    color: #002B5B;
    font-size: 28px;
    margin-bottom: 20px;
}
.about-page p {
    margin-bottom: 20px;
    color: #555;
    font-size: 16px;
}
.core-values {
    list-style: none;
    padding: 0;
    margin-top: 20px;
}
.core-values li {
    margin-bottom: 10px;
    font-size: 16px;
}

#scrollTopBtn {
    display: none; /* Ẩn lúc đầu */
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 99;
    border: none;
    outline: none;
    background-color: #FF6F00;
    color: white;
    cursor: pointer;
    padding: 12px 16px;
    border-radius: 50%;
    font-size: 18px;
    box-shadow: 0 6px 10px rgba(0,0,0,0.2);
    transition: background 0.3s, transform 0.3s;
}
#scrollTopBtn:hover {
    background-color: #e65c00;
    transform: scale(1.1);
}

/* Toggle Dark Mode */
.dark-toggle {
    margin-left: 20px;
  }
  
  .toggle-label {
    cursor: pointer;
    font-size: 20px;
    transition: color 0.3s;
  }
  
  body.dark-mode {
    background-color: #121212;
    color: #f0f0f0;
  }
  
  /* Điều chỉnh các phần tử khác */
  body.dark-mode header {
    background-color: #1e1e1e;
  }
  
  body.dark-mode .banner,
  body.dark-mode .contact-cta {
    background-color: #1e1e1e;
  }
  
  body.dark-mode .service-item,
  body.dark-mode .product-card {
    background-color: #2a2a2a;
    color: #eee;
  }
  
  body.dark-mode a,
  body.dark-mode .btn-primary,
  body.dark-mode .btn-secondary {
    color: #ff9900;
  }
  
  body.dark-mode .btn-primary,
  body.dark-mode .btn-secondary {
    background-color: #333;
    border: 1px solid #ff9900;
  }
  

  .service-item {
    text-decoration: none;
    color: inherit;
    display: block;
  }
  .service-item:hover {
    transform: translateY(-5px);
    transition: 0.3s ease;
  }
  