/* General Styles */
body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.7;
    margin: 0;
    padding: 0;
    background-color: #f8f8f8;
    color: #222;
    overflow-x: hidden;
}

.container {
    width: 80%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 30px;
    background-color: #fff;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.15);
    border-radius: 10px;
    overflow: hidden;
    animation: fadeIn 1s ease-in-out;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Header Styles */
header {
    text-align: center;
    padding: 30px 0;
    position: relative;
    background: linear-gradient(135deg, #f8f8f8 0%, #e8e8e8 100%);
    border-radius: 10px;
}

.logo-container {
    width: 80px;
    height: 80px;
    margin: 0 auto 20px;
    border-radius: 50%;
    overflow: hidden;
    position: relative;
    border: 3px solid #007bff;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

#logo {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease-in-out, filter 0.4s ease;
}

.logo-container:hover #logo {
    transform: rotate(360deg) scale(1.2);
    filter: brightness(1.1);
}

.main-heading {
    font-size: 2.2em;
    margin-bottom: 15px;
    font-weight: 700;
    color: #007bff;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.1);
}

.tagline {
    font-size: 1.1em;
    color: #555;
    margin-bottom: 30px;
    font-style: italic;
}

/* Navigation Styles */
.main-nav {
    background-color: #007bff;
    padding: 15px 0;
    border-radius: 10px;
    margin-bottom: 30px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

.menu {
    display: flex;
    justify-content: center;
    align-items: center;
    list-style: none;
    padding: 0;
    margin: 0;
}

.menu > li {
    margin: 0 15px;
    position: relative;
}

.menu > li > a {
    text-decoration: none;
    color: #fff;
    font-weight: 600;
    padding: 10px 15px;
    border-radius: 5px;
    transition: background-color 0.3s ease, color 0.3s ease;
    display: block;
}

.menu > li:hover > a {
    background-color: #0056b3;
    color: #f8f8f8;
}

.sub-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background-color: #fff;
    list-style: none;
    padding: 0;
    border-radius: 5px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
    z-index: 10;
    min-width: 200px;
}

.menu > li:hover .sub-menu {
    display: block;
    animation: slideDown 0.4s ease-in-out;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.sub-menu li {
    border-bottom: 1px solid #eee;
}

.sub-menu li a {
    text-decoration: none;
    color: #333;
    padding: 10px 15px;
    display: block;
    transition: background-color 0.3s ease, color 0.3s ease;
}

.sub-menu li:hover a {
    background-color: #f0f0f0;
    color: #007bff;
}

/* Section Styles */
section {
    margin-bottom: 40px;
    padding: 30px;
    background-color: #f8f8f8;
    border-radius: 10px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    position: relative;
    overflow: hidden;
}

.section-heading {
    font-size: 2em;
    margin-bottom: 25px;
    font-weight: 700;
    color: #007bff;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.1);
    position: relative;
    z-index: 2;
}

.content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 30px;
}

.text-content {
    flex: 1;
    position: relative;
    z-index: 2;
}

.text-content p {
    font-size: 1.1em;
    color: #444;
    margin-bottom: 20px;
}

.text-content p b {
    color: #007bff;
    font-weight: 600;
}

.image-content {
    flex: 1;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 15px;
    position: relative;
    z-index: 2;
}

.lazy-image {
    width: calc(50% - 15px);
    max-width: 250px;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
    transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.lazy-image:hover {
    transform: translateY(-5px) scale(1.05);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

/* Section 1 Specific Styles */
.section-1 .lazy-image {
    animation: slideInLeft 1s ease-in-out;
}

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Section 2 Specific Styles */
.section-2 .lazy-image {
    animation: slideInRight 1s ease-in-out;
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Section 3 Specific Styles */
.section-3 .lazy-image {
    animation: zoomIn 1s ease-in-out;
}

@keyframes zoomIn {
    from {
        opacity: 0;
        transform: scale(0.8);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

/* Section 4 Specific Styles */
.section-4 .lazy-image {
    animation: fadeIn 1s ease-in-out;
}
/* Section 5 Specific Styles */
.section-5 {
    background: none;
    box-shadow: none;
}
.section-5 .lazy-image {
    animation: flipInX 1s ease-in-out;
}
.section-5 .image-content{
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    align-content: center;
    align-items: stretch;
}

@keyframes flipInX {
    from {
        opacity: 0;
        transform: perspective(400px) rotateX(90deg);
    }
    to {
        opacity: 1;
        transform: perspective(400px) rotateX(0);
    }
}

/* Contact Section Styles */
.contact {
    background-color: #e8e8e8;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    text-align: center;
}

.contact .section-heading {
    margin-bottom: 30px;
    color: #007bff;
}

form {
    display: flex;
    flex-direction: column;
    align-items: center;
}

form input[type="email"],
form textarea {
    width: 100%;
    max-width: 500px;
    padding: 12px;
    margin-bottom: 15px;
    border: 1px solid #ccc;
    border-radius: 5px;
    font-size: 1em;
    transition: box-shadow 0.3s ease;
}

form input[type="email"]:focus,
form textarea:focus {
    outline: none;
    box-shadow: 0 0 5px rgba(0, 123, 255, 0.5);
}

form textarea {
    resize: vertical;
    min-height: 120px;
}

form .contact-link {
    background-color: #007bff;
    color: #fff;
    padding: 12px 25px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    text-decoration: none;
    font-size: 1.1em;
    transition: background-color 0.3s ease, transform 0.3s ease;
}

form .contact-link:hover {
    background-color: #0056b3;
    transform: translateY(-2px);
}

/* Footer Styles */
footer {
    text-align: center;
    padding: 30px 0;
    background-color: #333;
    color: #fff;
    border-radius: 10px;
}

footer p {
    margin-bottom: 15px;
    font-size: 0.9em;
}

footer a {
    color: #007bff;
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s ease;
}

footer a:hover {
    color: #0056b3;
}

/* Responsive Design */
@media (max-width: 768px) {
    .container {
        width: 95%;
        padding: 20px;
    }

    .content {
        flex-direction: column;
    }

    .image-content {
        margin-top: 30px;
    }

    .lazy-image {
        width: 100%;
        max-width: 350px;
    }

    .menu {
        flex-wrap: wrap;
    }

    .menu > li {
        margin: 10px;
    }

    .sub-menu {
        position: static;
        display: none;
        width: 100%;
        box-shadow: none;
    }

    .menu > li:hover .sub-menu {
        display: block;
    }

    .sub-menu li {
        border-bottom: none;
    }
    .section-5 .image-content{
        justify-content: space-around;
    }
    .section-5 .lazy-image{
        width: 45%;
    }
}

/* Additional Styling */
.menu > li > a::after {
    content: '\25BC';
    font-size: 0.8em;
    margin-left: 5px;
    display: inline-block;
    transition: transform 0.3s ease;
}

.menu > li:hover > a::after {
    transform: rotate(180deg);
}

.section-1::before,
.section-2::before,
.section-3::before,
.section-4::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-repeat: no-repeat;
    opacity: 0.05;
    z-index: 1;
}

.section-1::before {
    background-image: url('cost.vn-1.png');
}

.section-2::before {
    background-image: url('cost.vn-4.png');
}

.section-3::before {
    background-image: url('cost.vn-6.png');
}

.section-4::before {
    background-image: url('cost.vn-10.png');
}

.text-content,
.image-content {
    position: relative;
    z-index: 2;
}

/* Animation Delays for Images */
.section-1 .lazy-image:nth-child(1) {
    animation-delay: 0.2s;
}

.section-1 .lazy-image:nth-child(2) {
    animation-delay: 0.4s;
}

.section-1 .lazy-image:nth-child(3) {
    animation-delay: 0.6s;
}
.section-2 .lazy-image:nth-child(1) {
    animation-delay: 0.2s;
}

.section-2 .lazy-image:nth-child(2) {
    animation-delay: 0.4s;
}
.section-3 .lazy-image:nth-child(1) {
    animation-delay: 0.2s;
}

.section-3 .lazy-image:nth-child(2) {
    animation-delay: 0.4s;
}
.section-3 .lazy-image:nth-child(3) {
    animation-delay: 0.6s;
}
.section-3 .lazy-image:nth-child(4) {
    animation-delay: 0.8s;
}
.section-4 .lazy-image:nth-child(1) {
    animation-delay: 0.2s;
}

.section-4 .lazy-image:nth-child(2) {
    animation-delay: 0.4s;
}
.section-4 .lazy-image:nth-child(3) {
    animation-delay: 0.6s;
}
.section-4 .lazy-image:nth-child(4) {
    animation-delay: 0.8s;
}