
/* Header */
.main-header {
    background-color: #fff;
    padding: 15px 0;
    border-bottom: 1px solid #eee;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
    transition: all 0.3s ease; /* Thêm transition */
}

.main-header.scrolled {
    padding: 10px 0;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

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

.logo a {
    font-size: 1.8em;
    font-weight: bold;
    color: var(--dark-gray);
    text-decoration: none;
    transition: color 0.3s ease;
}

.logo a:hover {
    color: var(--primary-color);
}

.logo .highlight {
    color: var(--primary-color);
}

.main-nav ul {
    list-style: none;
    display: flex;
}

.main-nav ul li {
    margin-left: 30px;
}

.main-nav ul li a {
    text-decoration: none;
    color: var(--text-color);
    font-weight: 500;
    font-size: 1.1em;
    transition: color 0.3s ease;
}

.main-nav ul li a:hover,
.main-nav ul li a.active {
    color: var(--primary-color);
}

.contact-buttons {
    display: flex;
    align-items: center;
}

/* Hero Section */
.hero-section {
    background-size: cover;
    background-position: center;
    color: #fff;
    text-align: center;
    padding: 150px 0;
    position: relative;
    overflow: hidden; /* Ensure background image doesn't overflow */
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.5); /* Dark overlay */
}

.hero-section .container {
    position: relative;
    z-index: 1;
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 1s forwards 0.5s;
}

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

.hero-section h1 {
    font-size: 3.5em;
    margin-bottom: 20px;
    font-weight: 700;
    animation: slideInLeft 1s forwards 0.8s;
    opacity: 0;
}

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

.hero-section p {
    font-size: 1.4em;
    margin-bottom: 40px;
    animation: slideInRight 1s forwards 1s;
    opacity: 0;
}

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

.hero-actions .btn {
    font-size: 1.1em;
    padding: 15px 30px;
    animation: zoomIn 1s forwards 1.2s;
    opacity: 0;
}

@keyframes zoomIn {
    from {
        opacity: 0;
        transform: scale(0.8);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

/* Info Section */
.info-section {
    padding: 80px 0;
    background-color: var(--light-gray);
    text-align: center;
}

.info-section h2 {
    font-size: 2.5em;
    margin-bottom: 60px;
    color: var(--dark-gray);
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.info-item {
    background-color: #fff;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    opacity: 0;
    transform: translateY(20px);
}

.info-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
}

.info-item i {
    font-size: 3em;
    color: var(--primary-color);
    margin-bottom: 20px;
    transition: transform 0.3s ease;
}

.info-item:hover i {
    transform: scale(1.1);
}

.info-item h3 {
    font-size: 1.5em;
    margin-bottom: 15px;
    color: var(--dark-gray);
}

.info-item p {
    font-size: 1em;
    color: var(--text-color);
}

/* Products Section */
.products-section {
    padding: 80px 0;
    text-align: center;
}

.products-section h2 {
    font-size: 2.5em;
    margin-bottom: 60px;
    color: var(--dark-gray);
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.product-item {
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
    overflow: hidden;
    text-align: left;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    opacity: 0;
    transform: translateY(20px);
}

.product-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
}

.product-item img {
    width: 100%;
    height: 220px;
    object-fit: cover;
    border-bottom: 1px solid #eee;
    transition: transform 0.3s ease;
}

.product-item:hover img {
    transform: scale(1.05);
}

.product-item h3 {
    font-size: 1.4em;
    margin: 20px 20px 10px;
    color: var(--dark-gray);
}

.product-item p {
    font-size: 0.95em;
    color: var(--text-color);
    margin: 0 20px 20px;
}

.product-item .btn-detail {
    display: block;
    text-align: center;
    margin: 0 20px 20px;
    padding: 10px;
}

.text-center {
    text-align: center;
}

/* Services Section */
.services-section {
    background-size: cover;
    background-position: center;
    color: #fff;
    text-align: center;
    padding: 100px 0;
    position: relative;
}

.services-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.6); /* Dark overlay */
}

.services-section .container {
    position: relative;
    z-index: 1;
    opacity: 0;
    transform: translateY(20px);
}

.services-section h2 {
    font-size: 2.8em;
    margin-bottom: 20px;
    font-weight: 700;
}

.services-section p {
    font-size: 1.3em;
    margin-bottom: 40px;
}

.service-list {
    list-style: none;
    margin-bottom: 40px;
    padding: 0;
}

.service-list li {
    font-size: 1.1em;
    margin-bottom: 10px;
}

.service-list li i {
    color: #28a745; /* Green checkmark */
    margin-right: 10px;
}

/* Call to Action Section */
.cta-section {
    background-color: var(--dark-gray);
    color: #fff;
    padding: 80px 0;
    text-align: center;
}

.cta-section h2 {
    font-size: 2.5em;
    margin-bottom: 20px;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.cta-section p {
    font-size: 1.2em;
    margin-bottom: 40px;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out 0.2s;
}

.cta-section .btn {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out 0.4s;
}

/* Footer */
.main-footer {
    background-color: #222;
    color: #eee;
    padding: 60px 0 20px;
    font-size: 0.95em;
}

.main-footer h3 {
    color: #fff;
    margin-bottom: 25px;
    font-size: 1.4em;
}

.main-footer p, .main-footer ul li {
    margin-bottom: 10px;
}

.main-footer a {
    color: #eee;
    text-decoration: none;
}

.main-footer a:hover {
    color: var(--primary-color);
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-bottom: 40px;
}

.footer-col ul {
    list-style: none;
}

.social-icons a {
    font-size: 1.5em;
    margin-right: 15px;
    color: #eee;
}

.social-icons a:hover {
    color: var(--primary-color);
}

.footer-bottom {
    text-align: center;
    border-top: 1px solid #444;
    padding-top: 20px;
}

/* Responsive Design */
@media (max-width: 992px) {
    .main-nav {
        display: none; /* Hide nav on smaller screens, will use hamburger menu via JS */
    }
    .main-header .container {
        flex-wrap: wrap;
        justify-content: center;
    }
    .logo,
    .contact-buttons {
        width: 100%;
        text-align: center;
        margin-bottom: 15px;
    }
    .contact-buttons a {
        margin: 5px;
    }
    .hero-section h1 {
        font-size: 2.5em;
    }
    .hero-section p {
        font-size: 1.1em;
    }
    .hero-actions .btn {
        padding: 10px 20px;
        font-size: 1em;
        margin: 5px;
    }
    .info-grid, .product-grid, .footer-grid {
        grid-template-columns: 1fr;
    }
    .info-item, .product-item, .footer-col {
        margin-bottom: 20px;
    }
    .main-header .container {
        flex-direction: column;
    }
    .main-nav {
        margin-top: 15px;
    }
}

@media (max-width: 768px) {
    .page-header h1 {
        font-size: 2em;
    }
    .services-detail-section h2, .contact-info h2, .contact-form h2, .map-section h2 {
        font-size: 1.8em;
    }
    .service-item-detail {
        padding: 30px;
    }
    .service-item-detail h2 {
        font-size: 1.6em;
    }
    .service-item-detail p, .service-item-detail ul li, .service-item-detail ol li {
        font-size: 1em;
    }
    .contact-info p {
        font-size: 1em;
    }
    .contact-info .social-icons a {
        font-size: 1.5em;
    }
    .form-group label, .form-group input, .form-group textarea {
        font-size: 0.95em;
    }
}
