/* --- General & Base Styles --- */
body {
    margin: 0;
    padding: 0;
    font-family: Montserrat, sans-serif;
    color: #1a1a1a;
    overflow-x: hidden;
}

.fixed-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    object-fit: cover;
    z-index: -1;
}

/* --- Section & Animation Styles --- */
section {
    position: relative;
    z-index: 1;
    margin: 40px auto;
    padding: 60px 20px;
    border-radius: 16px;
    width: 90%;
    max-width: 1200px;
    color: #333;
    opacity: 0;
    transform: translateY(50px);
    transition: opacity 1s ease-out, transform 1s ease-out;
}

.section-content-wrapper {
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 30px;
    box-sizing: border-box;
    position: relative;
    z-index: 1;
}

/* Reveal animations */
.reveal-fade-up.revealed,
.reveal-slide-left.revealed,
.reveal-slide-right.revealed,
.timeline-item.revealed,
section.visible {
    opacity: 1;
    transform: translateY(0);
}

/* --- Timeline Section --- */
section.timeline-section {
    opacity: 1 !important;
    transform: translateY(0) !important;
}

.timeline-section .section-title {
    font-size: 2.5em;
    margin-bottom: 50px;
    color: #333;
    text-align: center;
}

.timeline-container {
    position: relative;
    padding: 0 10px;
}

.timeline-line {
    position: absolute;
    width: 4px;
    background-color: #daa520;
    top: 0;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    z-index: 1;
    height: 0;
    transition: height 1.5s ease-out;
}

.timeline-line.revealed {
    height: 100%;
}

.timeline-item {
    position: relative;
    margin-bottom: 50px;
    display: flex;
    align-items: center;
    opacity: 0;
    transform: translateY(50px);
    transition: opacity .8s ease-out, transform .8s ease-out;
    z-index: 2;
}

.timeline-item:nth-child(2n) {
    flex-direction: row-reverse;
}

.timeline-dot {
    width: 20px;
    height: 20px;
    background-color: #e24c4b;
    border: 3px solid #fff;
    border-radius: 50%;
    position: relative;
    z-index: 3;
    flex-shrink: 0;
    opacity: 0;
    transform: scale(0);
    transition: opacity .5s, transform .5s;
}

.timeline-item.revealed .timeline-dot {
    opacity: 1;
    transform: scale(1);
}

.timeline-item:nth-child(odd) .timeline-dot {
    margin-right: 30px;
    margin-left: calc(50% - 10px);
}

.timeline-item:nth-child(2n) .timeline-dot {
    margin-left: 30px;
    margin-right: calc(50% - 10px);
}

.timeline-content {
    background-color: rgba(255, 255, 255, .8);
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, .1);
    text-align: left;
    width: calc(50% - 50px);
}

.timeline-year {
    font-size: 1.1em;
    font-weight: 700;
    color: #daa520;
    margin-bottom: 5px;
    display: block;
}

.timeline-content h3 {
    font-size: 1.4em;
    color: #333;
    margin-bottom: 10px;
}

.timeline-content p {
    font-size: .95em;
    color: #666;
}

/* --- Feature Section --- */
.about-feature {
    padding: 60px 0;
}

.feature-item {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 30px;
    margin-bottom: 60px;
    background-color: rgba(255, 255, 255, .85);
    border-radius: 16px;
    overflow: hidden;
    padding: 20px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, .1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, .2);
}

.feature-item:nth-child(2n) {
    flex-direction: row-reverse;
}

.feature-image-container {
    flex: 1 1 50%;
    border-radius: 12px;
    overflow: hidden;
}

.feature-image-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform .4s;
}

.feature-image-container:hover img {
    transform: scale(1.05);
}

.feature-text-container {
    flex: 1 1 50%;
    padding: 0 30px;
}

.feature-text-container h3 {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 15px;
    color: #036;
}

.feature-text-container p {
    font-size: 1.1rem;
    line-height: 1.7;
    color: #333;
}


/* --- Modal Styles --- */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, .5);
}

.modal-content {
    background-color: #fefefe;
    margin: 15% auto;
    padding: 30px;
    border: 1px solid #888;
    width: 80%;
    max-width: 500px;
    border-radius: 10px;
    text-align: center;
    position: relative;
    box-shadow: 0 5px 15px rgba(0, 0, 0, .3);
}

.close-button {
    color: #aaa;
    position: absolute;
    top: 10px;
    right: 20px;
    font-size: 28px;
    font-weight: 700;
}

.close-button:hover,
.close-button:focus {
    color: #000;
    text-decoration: none;
    cursor: pointer;
}

/* --- Philosophy Section --- */
.philosophy-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.philosophy-card {
    padding: 30px;
    text-align: center;
    border-radius: 12px;
    background: rgba(255, 255, 255, .8);
    border: 1px solid rgba(255, 255, 255, .3);
    transition: transform .3s, box-shadow .3s;
}

.philosophy-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, .1);
}

.philosophy-icon {
    font-size: 3rem;
    color: #007bff;
}

.philosophy-card h3 {
    font-size: 1.8rem;
    color: #036;
    margin: 20px 0 15px;
}

.philosophy-card p {
    font-size: 1rem;
    line-height: 1.7;
    color: #444;
}

.philosophy-card ul {
    list-style: none;
    padding: 0;
    text-align: left;
    margin-top: 15px;
}

.philosophy-card ul li {
    font-size: 1rem;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
}

.philosophy-card ul li i {
    color: #28a745;
    margin-right: 10px;
}

/* --- Team Section --- */
.team-section {
    background: transparent; /* Explicitly set to transparent */
    margin-bottom: 200px;
}

.section-subtitle {
    text-align: center;
    max-width: 700px;
    margin: -40px auto 40px;
    font-size: 1.1rem;
    line-height: 1.7;
    color: #333;
}

.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 360px));
    justify-content: center;
    gap: 30px;
    margin-top: 40px;
}

.team-member-card {
    background: rgba(255, 255, 255, .9);
    backdrop-filter: blur(10px);
    border-radius: 16px;
    padding: 30px 20px;
    text-align: center;
    box-shadow: 0 8px 32px rgba(0, 0, 0, .1);
    border: 1px solid rgba(255, 255, 255, .2);
    transition: transform .3s, box-shadow .3s;
}

.team-member-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, .15);
}

.team-member-photo {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    object-fit: cover;
    border: 5px solid #fff;
    box-shadow: 0 4px 15px rgba(0, 0, 0, .1);
    margin-bottom: 20px;
}

.team-member-name {
    font-size: 1.5rem;
    margin: 0 0 5px;
    color: #1a1a1a;
}

.team-member-title {
    font-size: 1rem;
    color: #007bff;
    font-weight: 600;
    margin: 0;
}


/* --- Media Queries for Responsiveness --- */

/* Tablet (max-width: 992px) */
@media (max-width: 992px) {
    .feature-item,
    .feature-item:nth-child(2n) {
        flex-direction: column;
        text-align: center;
    }

    .feature-text-container {
        padding: 20px 0;
    }
}

/* Small Tablet & Large Mobile (max-width: 768px) */
@media (max-width: 768px) {
    .timeline-line {
        left: 20px;
    }

    .timeline-item,
    .timeline-item:nth-child(2n) {
        flex-direction: column;
        align-items: flex-start;
    }

    .timeline-dot {
        margin: 0;
        position: absolute;
        left: 10px;
        top: 0;
    }

    .timeline-content {
        width: calc(100% - 50px);
        margin-left: 50px;
        margin-top: 10px;
    }

    .timeline-item:nth-child(odd) .timeline-content,
    .timeline-item:nth-child(2n) .timeline-content {
        margin-left: 50px;
    }

    .planner-input-group {
        flex-direction: column;
        align-items: stretch;
    }

    #destinationInput,
    #generatePlanBtn {
        max-width: 100%;
    }
}

/* Mobile (max-width: 576px) */
@media (max-width: 576px) {
    .timeline-item {
        margin-bottom: 30px;
    }

    .timeline-content {
        padding: 15px;
    }
}
@media (max-width: 428px) {
    /* Giảm padding chung của các section */
    section {
        padding: 40px 15px;
        margin: 30px auto;
    }
    /* Điều chỉnh kích thước các tiêu đề chính */
    .service-title,
    .section-title {
        font-size: 1.8em;
        margin-bottom: 30px;
    }

    /* Section "Chúng tôi là ai?" */
    .feature-item {
        padding: 15px;
    }
    .feature-text-container h3 {
        font-size: 1.6rem;
    }
    .feature-text-container p {
        font-size: 0.95rem;
    }

    /* Section "Triết lý" */
    .philosophy-grid {
        gap: 20px;
    }
    .philosophy-card {
        padding: 25px 20px;
    }
    .philosophy-card h3 {
        font-size: 1.5rem;
    }
    .philosophy-icon {
        font-size: 2.5rem;
    }
    .timeline-content h3 {
        font-size: 1.2em;
    }

    .section-subtitle {
        margin: -20px auto 30px;
        font-size: 1rem;
    }
    .team-member-photo {
        width: 120px;
        height: 120px;
    }
    .team-member-name {
        font-size: 1.3rem;
    }
}