/* home.css - Optimized for Single Screen (No Scroll) */

.homepage {
    background-color: var(--color-surface-card);
    color: var(--color-text-main);
    position: relative;
    display: flex;
    flex-direction: column;
    position: relative;
    overflow: hidden;
}

.homepage__background-image {
    z-index: 0;
    position: absolute;
    top: -100px;
    right: -260px;
}

@media (max-width: 991px) {
    .homepage__background-image {
        right: -400px;
        opacity: 0.3;
    }
}

.homepage__background-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}


@media (min-width: 992px) {
    .homepage {
        overflow: visible !important;
        height: auto !important; 
        min-height: calc(100vh - 80px);
    }
}

.homepage__background-shape {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        radial-gradient(circle at 80% 20%, rgba(132, 0, 255, 0.03), transparent 60%),
        radial-gradient(circle at 10% 80%, rgba(0, 81, 255, 0.02), transparent 50%),
        radial-gradient(circle at 50% 50%, rgba(255, 0, 128, 0.01), transparent 80%);
    pointer-events: none;
    z-index: 0;
}

/* Hero Section Layout - Căn giữa nội dung */
.hero-section {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center; 
    flex: 1;
    padding: 10px 0; /* Giảm padding thêm nữa */
}

.hero-section__container {
    margin: 0 auto;
    width: 100%;
}

.hero-section__row {
    display: flex;
    flex-wrap: wrap;
    align-items: center; /* Căn giữa nội dung và visual */
}

/* Content Column */
.hero-section__content-col {
}

.hero-section__badge {
    display: inline-flex;
    align-items: center;
    background-color: #f5f5f5;
    padding: 6px 12px;
    border-radius: 100px;
    font-size: 14px; 
    color: #4d4d4d;
    margin-bottom: 20px;
}

.hero-section__badge i {
    color: var(--color-text-main);
    margin-right: 6px;
}

.hero-section__title {
    font-size: 42px; /* Đã giảm theo yêu cầu */
    font-weight: 700;
    line-height: 1.3;
    margin-bottom: 20px;
}

.hero-section__description {
    font-size: 17px;
    line-height: 1.5;
    color: var(--color-text-main);
    max-width: 480px;
    margin-bottom: 20px;
}

/* Feature List */
.hero-section__feature-list {
    list-style: none;
    padding: 0;
    margin: 0 0 20px 0;
}

.hero-section__feature-item {
    display: flex;
    align-items: center;
    margin-bottom: 8px;
    font-size: 15px;
}

.hero-section__feature-item i {
    color: var(--color-brand-accent);
    font-size: 12px;
    margin-right: 10px;
}

/* Hero Action Bar (JaySearch Style) */
.hero-action-bar {
    max-width: 500px;
    margin-bottom: 20px;
}

.hero-action-bar__body {
    background-color: var(--color-surface-card);
    border: 1px solid var(--color-border-subtle);
    border-radius: 100px;
    display: flex;
    align-items: center;
    padding: 6px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.06);
}

.hero-action-bar__input-wrapper {
    flex: 1;
    padding-left: 15px;
}
.hero-action-bar__input-wrapper span{
    opacity: 0.5;
}
.hero-action-bar__input-wrapper i{
    opacity: 0.5;
    margin-right: 5px;
}
.hero-action-bar__input {
    width: 100%;
    border: none;
    background: transparent;
    outline: none;
    font-size: 16px;
    color: var(--color-text-main);
}

.hero-action-bar__input::placeholder {
    color: var(--color-text-secondary);
    opacity: 0.6;
}

.hero-action-bar__btn {
    background-color: #474747;
    color: #fff !important;
    padding: 8px 30px; 
    border-radius: 100px;
    font-size: 15px; 
    text-decoration: none;
    flex-shrink: 0;
}

.hero-action-bar__btn:hover {
    background-color: #000;
}

.hero-action-bar__footer span {
    font-size: 13px;
    line-height: normal;
}

/* Testimonial Section */
.homepage-testimonial {
    max-width: 580px;
}

.homepage-testimonial__header {
    display: flex;
    align-items: center;
    margin-bottom: 15px;
}

.homepage-testimonial__avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    margin-right: 15px;
    object-fit: cover;
}

.homepage-testimonial__info {
    display: flex;
    align-content: flex-start;
    flex-wrap: wrap;
    gap: 5px;
}

.homepage-testimonial__name {
    font-size: 16px;
    font-weight: 700;
    margin: 0;
    color: #000;
}

.homepage-testimonial__title {
    font-size: 13px;
    color: #444;
    margin: 0;
    width: 100%; /* Push title to next line */
}

.homepage-testimonial__quote {
    font-size: 15px; 
    font-style: italic;
    line-height: 1.4;
    color: #333;
    margin: 0;
    max-width: 540px;
}

/* Visual Column */
.hero-section__visual-col {
}

.hero-visual__main {
    width: 100%;
    aspect-ratio: 16 / 10;
    background: #fcfcfc;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 30px 60px rgba(0,0,0,0.08);
}

.hero-visual__canvas {
    position: relative;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.hero-visual__mockup {
    position: absolute;
    top: 0;
    left: 0;
    width: 100% !important;
    height: 100% !important;
    object-fit: cover;
    display: block;
    opacity: 1;
    transform: translateX(0);
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1), opacity 1s ease;
    pointer-events: none;
    z-index: 1;
}

.hero-visual__mockup.active {
    opacity: 1;
    transform: translateX(0);
    z-index: 3;
    pointer-events: auto;
}

/* Transition States */
.next-enter { transform: translateX(100%); opacity: 0; }
.prev-enter { transform: translateX(-100%); opacity: 0; }
.exit-left { transform: translateX(-100%); opacity: 0; }
.exit-right { transform: translateX(100%); opacity: 0; }

.hero-visual__footer {
    width: 100%;
    position: relative;
    z-index: 2;
}

.hero-visual__footer-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    margin-top: 30px;
}

.hero-visual__text {
    flex: 1;
    display: flex;
    flex-direction: column;
    line-height: 1.3;
}

.hero-visual__text-line1 {
    font-size: 16px;
    font-style: italic;
    font-weight: 400;
    color: #4d4d4d;
    margin-bottom: 5px;
}

.hero-visual__text-line2 {
    font-size: 18px;
    font-weight: 400;
    color: var(--color-text-main);
    display: block;
}

/* Gallery Slider */
.hero-gallery-container {
    max-width: 350px; 
    overflow: hidden;
    position: relative;
}

.hero-gallery {
    display: flex;
    gap: 15px; 
    padding: 10px 0;
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    will-change: transform;
}

.hero-gallery__wrapper {
    flex-shrink: 0;
    background: #f0f0f0;
    padding: 6px;
    border-radius: 10px;
    transition: transform 0.1s ease, background 0.3s ease;
}


.hero-gallery__item {
    width: 90px;
    aspect-ratio: 16/10;
    border-radius: 6px;
    object-fit: cover;
    cursor: pointer;
    display: block;
    opacity: 0.6;
    transition: opacity 0.1s ease;
}

.hero-gallery__item--active {
    opacity: 1;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

/* Footer Section - Fixed bottom */
.homepage-footer {
    border-top: 1px solid var(--color-gray-100);
    padding: 20px 0;
}

.homepage-footer__container {
    max-width: 1300px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.homepage-footer__copyright, .homepage-footer__links a {
    font-size: 11px; /* Cực kỳ nhỏ gọn ở footer */
    color: var(--color-text-secondary);
    opacity: 0.7;
}

/* Responsiveness fallback */
@media (max-width: 991px) {
    .homepage { overflow-y: auto; height: auto; } 
    .hero-section { padding: 25px 0; }
    .hero-section__container { padding: 0 20px; }
    .hero-section__content-col { padding: 0; margin-bottom: 25px; }
    .hero-section__visual-col { padding: 0 15px; }
    .hero-section__title { 
        font-size: 28px; 
        line-height: 1.25;
        margin-bottom: 15px;
        letter-spacing: -0.02em;
    }
    .hero-section__content {
        padding: 0 15px;
    }
    .hero-action-bar__body {
        padding: 4px;
        border-radius: 12px;
        flex-direction: column;
        align-items: stretch;
        gap: 10px;
    }
    .hero-action-bar__btn {
        text-align: center;
        width: 100%;
        padding: 12px;
    }
    .hero-action-bar__input-wrapper {
        padding: 5px 12px;
    }
    .homepage-testimonial__quote {
        font-size: 14px;
    }
    .hero-visual__footer-content {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }
    .hero-gallery-container {
        max-width: 100%;
    }
}

@media (max-width: 480px) {
    .hero-section__container { padding: 0 15px; }
    .hero-section__title { font-size: 24px; }
    .hero-section__description { font-size: 14px; }
}

@media (max-height: 700px) {
    .hero-section__title { font-size: 32px; }
    .hero-section__description { margin-bottom: 15px; }
    .hero-action-bar { margin-bottom: 25px; }
    .hero-visual__mockup { max-height: 40vh; }
    .hero-visual__footer-content {
       flex-wrap: wrap !important;
       justify-content: flex-start !important;
    }
}


