/* Homepage Specific Styles (Chỉ áp dụng cho Trang Chủ /) */

/* Hero Carousel Slider with Full Background Images */
.hero-slider-wrapper {
    border-radius: 0 0 24px 24px;
    background-color: #0b1120;
    overflow: hidden;
}

.hero-slide {
    color: #ffffff;
    min-height: 540px;
    padding-top: 3.5rem !important;
    padding-bottom: 4.5rem !important;
    display: flex;
    align-items: center;
    position: relative;
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
}

.hero-slide::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(90deg, rgba(15, 23, 42, 0.95) 0%, rgba(15, 23, 42, 0.85) 50%, rgba(15, 23, 42, 0.5) 100%);
    z-index: 1;
}

.hero-slide .container {
    position: relative;
    z-index: 2;
}

.hero-slide.slide-1 {
    background-image: url('/img/slider_bg_1.png?v=3');
}

.hero-slide.slide-2 {
    background-image: url('/img/slider_bg_2.png?v=3');
}

.hero-slide.slide-3 {
    background-image: url('/img/slider_bg_3.png?v=3');
}

/* Carousel Fade Transition Custom Rule */
.hero-carousel.carousel-fade .carousel-item {
    opacity: 0;
    transition: opacity 0.6s ease-in-out;
}

.hero-carousel.carousel-fade .carousel-item.active,
.hero-carousel.carousel-fade .carousel-item-next.carousel-item-left,
.hero-carousel.carousel-fade .carousel-item-prev.carousel-item-right {
    z-index: 1;
    opacity: 1;
}

.hero-carousel.carousel-fade .active.carousel-item-left,
.hero-carousel.carousel-fade .active.carousel-item-right {
    z-index: 0;
    opacity: 0;
}

.hero-title {
    font-size: 2.85rem;
    font-weight: 800;
    line-height: 1.25;
    letter-spacing: -0.02em;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.4);
}

.hero-badge {
    background: rgba(37, 99, 235, 0.35);
    border: 1px solid rgba(255, 255, 255, 0.3);
    backdrop-filter: blur(8px);
    padding: 6px 18px;
    border-radius: 50rem;
    font-size: 0.875rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.carousel-indicators {
    bottom: 24px !important;
    margin-bottom: 0 !important;
    z-index: 10;
}

.carousel-indicators li {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    margin: 0 5px;
    background-color: rgba(255, 255, 255, 0.4);
    border: none;
    transition: all 0.3s ease;
}

.carousel-indicators li.active {
    width: 32px;
    border-radius: 6px;
    background-color: #3b82f6;
}

.carousel-control-prev-icon,
.carousel-control-next-icon {
    background-color: rgba(15, 23, 42, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(6px);
    width: 46px;
    height: 46px;
    background-size: 45%;
    border-radius: 50%;
    transition: all 0.3s ease;
}

.carousel-control-prev-icon:hover,
.carousel-control-next-icon:hover {
    background-color: var(--primary-color);
    transform: scale(1.1);
}

/* Feature Box for Homepage */
.feature-box {
    padding: 30px 20px;
    text-align: center;
    background: #ffffff;
    border-radius: 20px;
    border: 1px solid #e2e8f0;
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    height: 100% !important;
    margin: 0 !important;
}

.feature-box h3 {
    font-size: 1rem;
    font-weight: 700;
    line-height: 1.35;
    margin-bottom: 0.75rem;
    min-height: 52px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    width: 100%;
}

.feature-box p {
    font-size: 0.875rem;
    line-height: 1.5;
    color: #64748b;
    margin-bottom: 0;
    flex-grow: 1;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    text-align: center;
    width: 100%;
}

.feature-box:hover {
    transform: translateY(-6px) !important;
    box-shadow: var(--shadow-lg);
    border-color: #cbd5e1;
}

.feature-box .icon-wrapper {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    margin: 0 auto 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.75rem;
    flex-shrink: 0;
}

/* Glassmorphism & Custom Hero Banner Styles */
.hero-glass-card {
    background: rgba(15, 23, 42, 0.55);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.18) !important;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.35);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.hero-glass-card:hover {
    transform: translateY(-4px);
    border-color: rgba(255, 255, 255, 0.3) !important;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.45);
}

.hero-badge-gradient {
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.25) 0%, rgba(217, 119, 6, 0.35) 100%);
    border: 1px solid rgba(245, 158, 11, 0.5);
    color: #fef08a;
    backdrop-filter: blur(8px);
}

.hero-badge-info {
    background: linear-gradient(135deg, rgba(14, 165, 233, 0.25) 0%, rgba(2, 132, 199, 0.35) 100%);
    border: 1px solid rgba(56, 189, 248, 0.5);
    color: #e0f2fe;
    backdrop-filter: blur(8px);
}

.hero-badge-success {
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.25) 0%, rgba(5, 150, 105, 0.35) 100%);
    border: 1px solid rgba(52, 211, 153, 0.5);
    color: #d1fae5;
    backdrop-filter: blur(8px);
}

.border-white-15 {
    border-color: rgba(255, 255, 255, 0.15) !important;
}

.border-white-10 {
    border-color: rgba(255, 255, 255, 0.10) !important;
}

.bg-warning-soft {
    background: rgba(245, 158, 11, 0.18) !important;
}

.bg-info-soft {
    background: rgba(14, 165, 233, 0.18) !important;
}

.bg-success-soft {
    background: rgba(16, 185, 129, 0.18) !important;
}

.text-white-75 {
    color: rgba(255, 255, 255, 0.75) !important;
}

.hover-scale {
    transition: transform 0.25s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

.hover-scale:hover {
    transform: translateY(-2px) scale(1.02);
}

.hero-subtitle {
    font-size: 1.125rem;
    line-height: 1.65;
    letter-spacing: -0.01em;
}

/* 3D WebGL Overlay & Stepped Slide Styles */
#webgl-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: 1;
    pointer-events: none;
    transition: opacity 0.5s ease;
}

/* Sci-Fi Cyber Cursor HUD Overlay & Scanner Laser Beam */
.custom-cursor {
    position: fixed;
    width: 36px;
    height: 36px;
    border: 2px solid rgba(0, 210, 255, 0.85);
    border-radius: 50%;
    pointer-events: none;
    z-index: 99999;
    transform: translate(-50%, -50%);
    transition: width 0.25s ease, height 0.25s ease, border-color 0.25s ease, background 0.25s ease;
    box-shadow: 0 0 15px rgba(0, 210, 255, 0.4);
}

.custom-cursor-dot {
    position: fixed;
    width: 8px;
    height: 8px;
    background: #00d2ff;
    border-radius: 50%;
    pointer-events: none;
    z-index: 100000;
    transform: translate(-50%, -50%);
    box-shadow: 0 0 10px #00d2ff;
}

.custom-cursor.hovered {
    width: 58px;
    height: 58px;
    border-color: #00ffaa;
    background: rgba(0, 255, 170, 0.12);
    box-shadow: 0 0 25px rgba(0, 255, 170, 0.6);
}

.cyber-scanner-line {
    position: fixed;
    top: -10%;
    left: 0;
    width: 100vw;
    height: 4px;
    background: linear-gradient(90deg, transparent, #00d2ff, #00ffaa, #00d2ff, transparent);
    box-shadow: 0 0 25px #00d2ff, 0 0 50px #00ffaa, 0 0 80px #00d2ff;
    z-index: 9999;
    pointer-events: none;
    opacity: 0;
}

/* Vertical Step Navigation Pill Bar */
.scroll-steps-nav {
    position: fixed;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    z-index: 99;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.step-item {
    display: flex;
    align-items: center;
    gap: 12px;
    cursor: pointer;
    opacity: 0.45;
    transition: all 0.3s ease;
    flex-direction: row-reverse;
}

.step-item:hover, .step-item.active {
    opacity: 1;
}

.step-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    border: 2px solid #00d2ff;
    transition: all 0.3s ease;
}

.step-item.active .step-dot {
    background: #00d2ff;
    box-shadow: 0 0 14px #00d2ff;
    transform: scale(1.35);
}

.step-label {
    font-size: 12px;
    font-weight: 600;
    color: #f0f6ff;
    background: rgba(4, 9, 20, 0.9);
    padding: 5px 12px;
    border-radius: 12px;
    border: 1px solid rgba(0, 210, 255, 0.25);
    pointer-events: none;
    white-space: nowrap;
    opacity: 0;
    transform: translateX(10px);
    transition: all 0.3s ease;
}

.step-item:hover .step-label, .step-item.active .step-label {
    opacity: 1;
    transform: translateX(0);
}

/* 3D Hero Slider Section */
.hero-slider-wrapper-3d {
    position: relative;
    width: 100%;
    background: #040914;
    border-radius: 0 0 32px 32px;
    overflow: hidden;
}

.hero-slide-3d {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 40px;
    width: 100%;
    min-height: 90vh;
    align-items: center;
    padding: 100px 5% 70px 5%;
    position: relative;
    border-bottom: 1px solid rgba(0, 210, 255, 0.08);
}

.hero-slide-3d.slide-right {
    grid-template-columns: 0.8fr 1.2fr;
}

.hero-slide-3d.slide-right .slide-block {
    grid-column: 2;
    margin-left: auto;
}

.hero-slide-3d.slide-right .slide-3d-spacer {
    grid-column: 1;
    grid-row: 1;
}

.slide-block {
    display: flex;
    flex-direction: column;
    gap: 20px;
    max-width: 720px;
    z-index: 10;
    position: relative;
}

.hero-slide-3d .slide-block {
    opacity: 0.15;
    filter: blur(10px);
    transform: translateY(40px) scale(0.95);
    transition: opacity 0.85s cubic-bezier(0.16, 1, 0.3, 1), filter 0.85s cubic-bezier(0.16, 1, 0.3, 1), transform 0.85s cubic-bezier(0.16, 1, 0.3, 1);
}

.hero-slide-3d.active .slide-block {
    opacity: 1;
    filter: blur(0px);
    transform: translateY(0) scale(1);
}

.feature-cards-container-3d {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin-top: 10px;
}

.feature-card-3d {
    background: rgba(10, 22, 44, 0.65);
    border: 1px solid rgba(0, 210, 255, 0.25);
    padding: 18px;
    border-radius: 16px;
    backdrop-filter: blur(12px);
    transition: all 0.4s ease;
}

.feature-card-3d.active-card {
    border-color: #00d2ff;
    box-shadow: 0 0 25px rgba(0, 210, 255, 0.3);
    transform: scale(1.02);
    background: rgba(0, 210, 255, 0.12);
}

.slider-controls-3d {
    position: absolute;
    bottom: 25px;
    left: 5%;
    display: flex;
    align-items: center;
    gap: 25px;
    z-index: 90;
    background: rgba(4, 9, 20, 0.8);
    padding: 8px 18px;
    border-radius: 30px;
    border: 1px solid rgba(0, 210, 255, 0.2);
    backdrop-filter: blur(12px);
}

.arrow-btn-3d {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: 0.3s;
}

.arrow-btn-3d:hover {
    background: #00d2ff;
    color: #000;
    border-color: #00d2ff;
    box-shadow: 0 0 15px #00d2ff;
}

.dots-container-3d {
    display: flex;
    gap: 10px;
}

.dot-3d {
    width: 25px;
    height: 6px;
    border-radius: 4px;
    background: rgba(255, 255, 255, 0.2);
    cursor: pointer;
    transition: 0.4s;
}

.dot-3d.active {
    width: 45px;
    background: #00d2ff;
    box-shadow: 0 0 10px #00d2ff;
}

.scroll-hint-3d {
    position: absolute;
    bottom: 25px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    align-items: center;
    gap: 10px;
    color: #94a3b8;
    font-size: 13px;
    z-index: 20;
    pointer-events: none;
    background: rgba(4, 9, 20, 0.8);
    padding: 8px 20px;
    border-radius: 20px;
    border: 1px solid rgba(0, 210, 255, 0.3);
    box-shadow: 0 0 15px rgba(0, 210, 255, 0.15);
}