/**
 * Custom Theme Styles
 *
 * Additional styles beyond style.css
 *
 * @package RIKAI_Marketing
 */

/* ==========================================================================
   ANIMATIONS
   ========================================================================== */

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

@keyframes pulse {
    0%,
    100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
}

.fade-in {
    animation: fadeIn 0.6s ease-out;
}

/* ==========================================================================
   CUSTOM COMPONENTS
   ========================================================================== */

/* Gradient Text */
.text-gradient {
    background: linear-gradient(
        135deg,
        var(--primary-color) 0%,
        var(--secondary-color) 100%
    );
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Service Icon Hover Effect */
.service-icon {
    transition: transform 0.3s ease;
}

.card:hover .service-icon {
    transform: scale(1.1);
}

/* Feature Icon */
.feature-icon {
    flex-shrink: 0;
}

/* Stats Box */
.stat-box {
    transition: transform 0.3s ease;
}

.stat-box:hover {
    transform: translateY(-5px);
}

/* ==========================================================================
   HERO SECTION
   ========================================================================== */

.hero-section {
    position: relative;
    overflow: hidden;
}

.hero-section::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(
        135deg,
        rgba(0, 102, 255, 0.95) 0%,
        rgba(0, 217, 255, 0.95) 100%
    );
    z-index: -1;
}

.hero-content h1 {
    line-height: 1.2;
}

.hero-stats {
    opacity: 0.9;
}

.hero-image {
    animation: pulse 3s infinite ease-in-out;
}

/* ==========================================================================
   CARDS
   ========================================================================== */

.blog-card .card,
.case-card .card {
    transition: all 0.3s ease;
    overflow: hidden;
}

.blog-card .card:hover,
.case-card .card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15) !important;
}

.card-img-top {
    transition: transform 0.3s ease;
}

.card:hover .card-img-top {
    transform: scale(1.05);
}

/* ==========================================================================
   FORMS
   ========================================================================== */

.form-control:focus,
.form-select:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.2rem rgba(0, 102, 255, 0.25);
}

.form-label {
    font-weight: 700;
    color: var(--dark-color);
}

.form-check-input:checked {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}

/* ==========================================================================
   BREADCRUMBS
   ========================================================================== */

.breadcrumb {
    background: transparent;
    padding: 0;
}

.breadcrumb-item + .breadcrumb-item::before {
    content: "\f105";
    font-family: "FontAwesome";
    padding: 0 0.5rem;
    margin-right: 0.5rem;
}

.breadcrumb-item a {
    color: var(--primary-text-color);
    text-decoration: none;
}

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

/* ==========================================================================
   STAR RATING
   ========================================================================== */

.star-rating {
    display: inline-flex;
    gap: 2px;
}

.star-rating i {
    font-size: 1rem;
}

/* ==========================================================================
    =========================================================================
    =========================================================================
    RIKAI MARKETING CUSTOM STYLES
    =========================================================================
    =========================================================================
    ========================================================================== */

.section-component {
    padding: 4rem 0;
}

.section-component--change-bg-to-gray .section-component {
    background-color: var(--dark-color-light) !important;
}

.section-component.section-component--white-container .container {
    background-color: #ffffff;
    padding: 80px 30px;
    filter: var(--filter-drop-shadow);
}

.section-component--change-container-to-blue .container {
    background-color: var(--third-color) !important;
    filter: unset !important;
}

.section-component.section-component--blue {
    background-color: var(--third-color);
    padding: 60px 30px;
}

.section-component.section-component--white {
    background-color: #ffffff;
}

.section-component .component-name {
    color: var(--primary-color);
    text-transform: uppercase;
    margin-bottom: 0px;
}

.section-component .component-title {
    margin-bottom: 40px;
}

.section-component .component-title > div.underline-title span,
.section-component .component-title > div.underline-title p {
    position: relative;
}

.section-component .component-title > div.underline-title > span::after,
.section-component .component-title > div.underline-title > p::after {
    content: "";
    position: absolute;
    bottom: -3px;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    height: 2px;
    background: var(--primary-color);
}

.section-component .component-name span,
.section-component .component-name p,
.section-component .component-title span,
.section-component .component-title p {
    font-size: 26px;
    font-weight: 700;
    text-align: center;
}

.section-component .component-highlight {
    color: var(--primary-color);
    font-size: 20px;
    font-weight: 700;
    margin: 0 auto 40px;
    text-align: center;
}

.section-component .component-description {
    margin-bottom: 40px;
}

.section-component .component-description span,
.section-component .component-description p {
    font-size: 18px;
    margin-bottom: 0px;
}

.section-component .post-container {
    padding-top: 200px;
}

.post-container .contents {
    background-color: #ffffff;
    filter: var(--filter-drop-shadow);
    padding: 40px;
    border-bottom: 1px solid var(--dark-color);
}

.custom-2-buttons-group {
    display: flex;
    justify-content: center;
    gap: 30px;
}

@media (max-width: 665px) {
    .custom-2-buttons-group {
        flex-direction: column;
        gap: 15px;
    }
}

/* ==========================================================================
   Banner
   ========================================================================== */
.rikai-custom-banner {
    position: relative;
    width: 100%;
    min-height: 600px;
    display: flex;
    align-items: center;
    overflow: visible;
}

.rikai-custom-banner__bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    z-index: 1;
}

.rikai-custom-banner__overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.45);
    z-index: 2;
}

/* ==================================================
   Main Content
   ================================================== */

.rikai-custom-banner__content {
    position: relative;
    z-index: 3;
    color: #ffffff;
    width: 100%;
    padding: 80px 0;
    margin-top: 120px;
}

.rikai-custom-banner__content .container {
    margin: 0 auto;
    padding: 0 20px;
    padding-right: 20%;
}

.rikai-custom-banner__label {
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 20px;
    color: #ffffff;
}

.rikai-custom-banner__title {
    line-height: 1.2;
    margin-bottom: 30px;
    color: #ffffff;
}

.rikai-custom-banner__description {
    font-size: 18px;
    line-height: 1.6;
    max-width: 800px;
    opacity: 0.95;
}

/* ==================================================
   Scroll Indicator
   ================================================== */

.rikai-custom-banner__scroll {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 3;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    color: #ffffff;
    animation: rikai-custom-banner-bounce 2s infinite;
}

.rikai-custom-banner__scroll-text {
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.rikai-custom-banner__scroll-arrow {
    font-size: 20px;
    line-height: 1;
}

/* Bounce animation for scroll indicator */
@keyframes rikai-custom-banner-bounce {
    0%,
    20%,
    50%,
    80%,
    100% {
        transform: translateX(-50%) translateY(0);
    }
    40% {
        transform: translateX(-50%) translateY(-10px);
    }
    60% {
        transform: translateX(-50%) translateY(-5px);
    }
}

/* ==================================================
   Responsive Design
   ================================================== */

@media (max-width: 992px) {
    .rikai-custom-banner {
        min-height: 500px;
    }

    .rikai-custom-banner__content {
        padding: 60px 0;
        margin-top: 60px;
    }

    .rikai-custom-banner__content .container {
        margin-top: 80px;
    }

    .rikai-custom-banner__title {
        font-size: 38px;
    }

    .rikai-custom-banner__description {
        font-size: 16px;
    }
}

@media (max-width: 768px) {
    .rikai-custom-banner {
        min-height: 450px;
    }

    .rikai-custom-banner__content {
        padding: 50px 0;
        margin-top: 30px;
    }

    .rikai-custom-banner__label {
        font-size: 22px;
        margin-bottom: 15px;
    }

    .rikai-custom-banner__title {
        font-size: 28px;
        margin-bottom: 20px;
    }

    .rikai-custom-banner__description {
        font-size: 15px;
    }

    .rikai-custom-banner__scroll {
        bottom: 20px;
    }
}

@media (max-width: 576px) {
    .section-component,
    .section-component.section-component--blue {
        padding: 60px 20px;
    }

    .rikai-custom-banner {
        min-height: 400px;
    }

    .rikai-custom-banner__content {
        padding: 40px 0;
    }

    .rikai-custom-banner__title {
        font-size: 28px;
    }

    .rikai-custom-banner__description {
        font-size: 14px;
    }

    .rikai-custom-banner__scroll-text {
        font-size: 10px;
    }

    .rikai-custom-banner__scroll-arrow {
        font-size: 16px;
    }
}

/* ==========================================================================
   TOP Page
   ========================================================================== */

.top-page-first-section {
    margin: 10px 0px 0px 0px;
}

.top-page-first-section .top-images {
    position: relative;
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 40px;
}

/* Ảnh tròn bên trái */
.top-page-first-section .top-images .circle-image-left {
    width: 178px;
    height: 178px;
    border-radius: 50%;
    object-fit: cover;
    position: absolute;
    left: 15%;
    top: -50px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    z-index: 2;
}

/* Ảnh tròn bên phải */
.top-page-first-section .top-images .circle-image-right {
    width: 153px;
    height: 153px;
    border-radius: 50%;
    object-fit: cover;
    position: absolute;
    right: 15%;
    top: 100px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

/* Ảnh tròn dưới bên trái (section thứ 2) */
.top-page-first-section .top-images .circle-image-bottom {
    width: 288px;
    height: 288px;
    border-radius: 50%;
    object-fit: cover;
    position: absolute;
    left: 2%;
    top: 70px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    z-index: 2;
}

.top-page-first-section .component-title,
.top-page-first-section .component-description {
    position: relative;
    z-index: 3;
}

.top-page-second-section .component-description {
    margin-bottom: 40px;
    font-weight: bold;
}

/* ==========================================================================
   RESPONSIVE
   ========================================================================== */
@media (max-width: 1199px) {
    .top-page-first-section .top-images .circle-image-left {
        left: -5%;
    }
    .top-page-first-section .top-images .circle-image-right {
        right: -2%;
    }
    .top-page-first-section .top-images .circle-image-bottom {
        width: 250px;
        height: 250px;
        left: -20%;
        top: 70px;
    }
}

@media (max-width: 991px) {
    .top-page-first-section .top-images .circle-image-left {
        left: -5%;
    }
    .top-page-first-section .top-images .circle-image-right {
        right: -5%;
    }
    .top-page-first-section .top-images .circle-image-bottom {
        left: -110px;
    }
}

@media (max-width: 767px) {
    .hero-section h1 {
        font-size: 2rem !important;
    }

    .display-2 {
        font-size: 2.5rem;
    }

    .display-3 {
        font-size: 2rem;
    }

    .display-4 {
        font-size: 1.75rem;
    }

    .display-5 {
        font-size: 1.5rem;
    }

    .hero-stats {
        margin-top: 2rem !important;
    }

    .stat-item h3 {
        font-size: 2rem;
    }

    .top-page-first-section .top-images .circle-image-left {
        left: -25%;
    }
    .top-page-first-section .top-images .circle-image-right {
        right: -25%;
    }
    .top-page-first-section .top-images .circle-image-bottom {
        left: -55%;
    }
}

@media (max-width: 576px) {
    .top-page-first-section .top-images .circle-image-left {
        width: 108px;
        height: 108px;
        left: -50px;
        top: -80px;
    }
    .top-page-first-section .top-images .circle-image-right {
        width: 109px;
        height: 109px;
        right: -5%;
        top: 440px;
    }
    .top-page-first-section .top-images .circle-image-bottom {
        width: 164px;
        height: 164px;
        left: -70px;
        top: 510px;
    }
}

/* ==========================================================================
   TAG CHIP (shared across case-studies, news, blogs)
   ========================================================================== */

.tag-chip {
    display: inline-block;
    padding: 4px 15px;
    border: 1px solid var(--third-border-color);
    border-radius: 50px;
    color: var(--primary-color);
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    text-decoration: none;
    transition: all 0.3s ease;
    user-select: none;
}

.tag-chip:hover {
    background-color: var(--primary-color);
    color: #fff;
    border-color: var(--primary-color);
    transform: translateY(-2px);
}

.tag-chip.active {
    background-color: var(--primary-color);
    color: #fff;
    border-color: var(--primary-color);
}

@media (max-width: 991.98px) {
    .tag-chip {
        font-size: 0.85rem;
        padding: 0.4rem 1rem;
    }
}

@media (max-width: 767.98px) {
    .tag-chip {
        font-size: 0.8rem;
        padding: 0.35rem 0.85rem;
    }
}

/* ==========================================================================
   White Triangle Style (used in Development Models component)
   ========================================================================== */
.white-triangle-style {
    width: 0;
    height: 0;
    border-left: 20px solid transparent;
    border-right: 20px solid transparent;
    border-bottom: 20px solid #ffffff;
    rotate: 180deg;
    margin: 0 auto;
    margin-bottom: -20px;
}

/* ========================================
   SINGLE POST BOTTOM NAVIGATION
   ======================================== */

.single-post-bottom-navigation {
    padding: 40px 0px 20px;
    /* background-color: #ffffff; */
}

.single-post-bottom-navigation .container {
    display: flex;
    flex-direction: row;
    justify-content: center;
    justify-items: center;
    align-items: center;
    gap: 40px;
}

.single-post-bottom-navigation__item {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 20px;
    text-decoration: none;
    color: var(--muted-text-color) !important;
    padding: 10px 24px;
    transition: all 1s ease;
    max-width: calc(50% - 8px);
}

.single-post-bottom-navigation__item:hover
    .single-post-bottom-navigation__arrow::before,
.single-post-bottom-navigation__item:hover
    .single-post-bottom-navigation__label {
    color: var(--dark-color);
    font-weight: 700;
}

.single-post-bottom-navigation__arrow::before {
    font-size: 20px;
}

.single-post-bottom-navigation__label {
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    opacity: 0.8;
}

.single-post-bottom-navigation__item.single-post-bottom-navigation__item--empty
    .single-post-bottom-navigation__arrow::before,
.single-post-bottom-navigation__item.single-post-bottom-navigation__item--empty
    .single-post-bottom-navigation__label {
    color: #ffffff;
    cursor: default;
    user-select: none;
}

.single-post-bottom-navigation .btn-sm {
    padding: 10px 24px;
}

@media (max-width: 992px) {
    .single-post-bottom-navigation .container {
        padding: 0px 50px;
        justify-content: space-between;
        gap: 0px;
    }
}

@media (max-width: 575px) {
    .single-post-bottom-navigation .container {
        padding: 0px 0px;
        justify-content: space-between;
        gap: 0px;
    }
}
