/* Index Page Styles */

/* Hero Section */
.hero-section {
    position: relative;
    overflow: hidden;
    padding-top: 15px;
    padding-bottom: 15px;
    display: flex;
    align-items: center;
    background-color: #fcfbf9;
}

@keyframes slideUpFade {
    0% {
        opacity: 0;
        transform: translateY(30px);
    }

    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideRightFade {
    0% {
        opacity: 0;
        transform: translateX(-30px);
    }

    100% {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes floatAnim {
    0% {
        transform: translateY(0px);
    }

    50% {
        transform: translateY(-10px);
    }

    100% {
        transform: translateY(0px);
    }
}

.hero-section::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -10%;
    width: 800px;
    height: 800px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(255, 87, 34, 0.05) 0%, rgba(255, 87, 34, 0) 70%);
    z-index: 0;
    pointer-events: none;
    animation: floatAnim 8s ease-in-out infinite;
}

.hero-container {
    gap: 15px;
    align-items: stretch;
}

.hero-content {
    flex: 1.3;
    min-width: 300px;
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.hero-content>* {
    opacity: 0;
    animation: slideUpFade 0.8s ease-out forwards;
}

.hero-content .hero-title-badge {
    animation-delay: 0.1s;
}

.hero-content .hero-title {
    animation-delay: 0.2s;
}

.hero-content .ai-showcase-card {
    animation-delay: 0.3s;
}

.hero-content .hero-desc {
    animation-delay: 0.4s;
}

.hero-content .flex.gap-4 {
    animation-delay: 0.5s;
}

.hero-media {
    flex: 0.7;
    min-width: 300px;
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    opacity: 0;
    animation: slideRightFade 0.8s ease-out 0.4s forwards;
}

.hero-title-badge {
    font-size: 24px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.hero-title-logo {
    height: 28px;
    width: 28px;
    object-fit: contain;
}

.hero-title {
    font-size: 44.8px;
    font-weight: 800;
    line-height: 1.4;
    color: #111;
}

.hero-title-highlight {
    font-size: 44.8px;
    font-weight: 800;
    color: #FF5722;
}

.hero-desc {
    font-size: 17.6px;
    line-height: 1.8;
    /* color: #666; */
    /* max-width: 80%; */
}

@keyframes jumpIn {
    0% {
        opacity: 0;
        transform: translateY(10px);
    }

    50% {
        opacity: 1;
        transform: translateY(-2px);
    }

    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero-btn {
    padding: 12px 15px;
    font-size: 17.6px;
    background: #FF5722;
    color: white;
    border-radius: 8px;
    border: none;
    box-shadow: 0 4px 6px rgba(255, 87, 34, 0.2);
    transition: all 0.3s;
}

.hero-btn:hover, a.hero-btn:hover {
    color: white;
}

.flex-1-spacer {
    flex: 1;
}

.hero-section .btn-primary:hover, .hero-section a.btn-primary:hover {
    background: #e64a19;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(255, 87, 34, 0.3);
}

/* AI Showcase Card (Replacing Carousel) */
.ai-showcase-card {
    position: relative;
    overflow: hidden;
    /* margin-bottom: 15px; */
    border-radius: 24px;
    padding: 15px;
    /* background: linear-gradient(145deg, #ffffff 0%, #f4f6fb 100%); */
    /* box-shadow: 0 2px 0 0 rgba(255, 87, 34, 0.18), 0 16px 48px rgba(0, 0, 0, 0.09); */
    border: 1.5px solid rgba(255, 87, 34, 0.10);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    transition: box-shadow 0.3s ease;
}

.ai-showcase-card::before {
    content: '';
    position: absolute;
    top: -60%;
    left: -60%;
    width: 220%;
    height: 220%;
    background: radial-gradient(circle at 40% 40%, rgba(255, 87, 34, 0.07) 0%, rgba(135, 206, 235, 0.09) 30%, rgba(255, 255, 255, 0) 60%);
    animation: rotateBg 24s linear infinite;
    z-index: 0;
    pointer-events: none;
}

.ai-showcase-badge {
    position: absolute;
    top: 18px;
    left: 18px;
    background: linear-gradient(135deg, #fff 60%, #fff5f2 100%);
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 13.12px;
    font-weight: 700;
    color: #FF5722;
    display: flex;
    align-items: center;
    gap: 5px;
    box-shadow: 0 2px 10px rgba(255, 87, 34, 0.13);
    border: 1px solid rgba(255, 87, 34, 0.15);
    z-index: 3;
    letter-spacing: 0.16px;
}

.ai-showcase-badge svg {
    stroke: #FF5722;
}

.ai-showcase-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: #fff;
    border: 1.5px solid rgba(0, 0, 0, 0.08);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.10);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: #333;
    z-index: 4;
    transition: background 0.2s, box-shadow 0.2s, transform 0.2s, color 0.2s;
}

.ai-showcase-nav:hover {
    background: #FF5722;
    color: #fff;
    border-color: #FF5722;
    box-shadow: 0 4px 16px rgba(255, 87, 34, 0.28);
    transform: translateY(-50%) scale(1.10);
}

.ai-showcase-nav.left {
    left: 14px;
}

.ai-showcase-nav.right {
    right: 14px;
}

.ai-showcase-dots {
    display: flex;
    justify-content: center;
    gap: 6px;
    margin-top: 15px;
    z-index: 3;
    padding: 0;
    background: none;
}

.ai-showcase-dots span {
    width: 8px;
    height: 8px;
    border-radius: 99px;
    background: rgba(0, 0, 0, 0.15);
    cursor: pointer;
    transition: background 0.3s, width 0.3s;
}

.ai-showcase-dots span.active {
    width: 22px;
    background: #FF5722;
}

@keyframes rotateBg {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

.ai-carousel-wrapper {
    position: relative;
    width: 100%;
    height: 200px;
    display: flex;
    justify-content: center;
    align-items: center;
    perspective: 1000px;
    transform-style: preserve-3d;
}

.ai-slide {
    position: absolute;
    top: 50%;
    left: 50%;
    width: calc(100% - 30px);
    max-width: 800px;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-radius: 16px;
    padding: 15px 0;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.05);
    border: 1px solid rgba(255, 87, 34, 0.1);
    opacity: 0;
    pointer-events: none;
    display: flex;
    flex-direction: column;
    align-items: center;
    transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 1;
    transform: translate(-50%, -50%) scale(0.8);
}

.ai-slide.active {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
    z-index: 3;
    pointer-events: auto;
    box-shadow: 0 15px 40px rgba(255, 87, 34, 0.15);
}

.ai-slide.prev {
    opacity: 0.7;
    transform: translate(-65%, -50%) scale(0.85);
    z-index: 2;
    pointer-events: auto;
    cursor: pointer;
}

.ai-slide.next {
    opacity: 0.7;
    transform: translate(-35%, -50%) scale(0.85);
    z-index: 2;
    pointer-events: auto;
    cursor: pointer;
}

.ai-slide.hidden-left {
    opacity: 0;
    transform: translate(-90%, -50%) scale(0.7);
    z-index: 1;
    pointer-events: none;
    cursor: default;
}

.ai-slide.hidden-right {
    opacity: 0;
    transform: translate(-10%, -50%) scale(0.7);
    z-index: 1;
    pointer-events: none;
    cursor: default;
}

.ai-slide-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 15px;
    justify-content: center;
    z-index: 1;
}

.ai-slide-icon {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    border-radius: 12px;
    box-shadow: none;
}

.ai-slide-icon svg {
    width: 40px !important;
    height: 40px !important;
}

.ai-slide-name {
    font-size: 32px;
    font-weight: 800;
    color: #111;
}

.ai-slide-desc {
    font-size: 16.8px;
    line-height: 1.6;
    color: #555;
    text-align: center;
    margin-bottom: 15px;
    padding: 0 15px;
    max-width: 100%;
    z-index: 1;
}

.ai-slide-tags {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px;
    z-index: 1;
}

.ai-slide-tags span {
    font-size: 14.4px;
    padding: 6px 15px;
    background: rgba(255, 87, 34, 0.1);
    color: #FF5722;
    border-radius: 20px;
    font-weight: 600;
}

/* Video Player */
.video-container {
    /* background: #000; */
    /* height: 100%; */
    position: relative;
    border-radius: 16px;
    /* box-shadow: 0 20px 40px -5px rgba(0, 0, 0, 0.15), 0 10px 20px -5px rgba(0, 0, 0, 0.1); */
}

.video-container video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.video-overlay {
    background: rgba(0, 0, 0, 0.2);
    transition: background 0.3s;
}

.video-overlay .play-toggle {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: rgba(255, 87, 34, 0.9);
    border: 3px solid rgba(255, 255, 255, 0.9);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    backdrop-filter: blur(4px);
    transition: transform 0.2s, background 0.2s;
    box-shadow: 0 0 0 0 rgba(255, 87, 34, 0.7);
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% {
        transform: scale(0.95);
        box-shadow: 0 0 0 0 rgba(255, 87, 34, 0.7);
    }

    70% {
        transform: scale(1);
        box-shadow: 0 0 0 20px rgba(255, 87, 34, 0);
    }

    100% {
        transform: scale(0.95);
        box-shadow: 0 0 0 0 rgba(255, 87, 34, 0);
    }
}

/* Mobile Responsive for Index Page */
@media (max-width: 768px) {
    .hero-container {
        flex-direction: column;
    }
    .hero-content {
        align-items: center;
        text-align: center;
        margin-bottom: 15px;
    }
    .hero-title {
        font-size: 32px;
    }
    .hero-title-highlight {
        font-size: 32px;
        display: block; /* Wrap text */
    }
    .hero-desc {
        font-size: 16px;
    }
    .hero-media {
        width: 100%;
        box-sizing: border-box;
    }
    .ai-showcase-card {
        padding: 15px 15px; /* Reduce padding on mobile */
    }
    .ai-carousel-wrapper {
        height: 320px; /* Adjust height */
    }
    .ai-slide {
        padding: 15px 10px;
        width: 75%;
    }
    .ai-slide-name {
        font-size: 24px;
    }
    .ai-slide-desc {
        font-size: 14.4px;
        padding: 0 10px;
        margin-bottom: 15px;
    }
    .ai-slide-tags span {
        font-size: 12.8px;
        padding: 4px 10px;
    }
}


.video-overlay .play-toggle svg {
    margin-left: 6px;
    width: 40px;
    height: 40px;
}

.video-container:hover .video-controls {
    opacity: 1 !important;
}

.video-overlay.hidden {
    opacity: 0;
    pointer-events: none;
}

.video-overlay:hover .play-toggle {
    transform: scale(1.1);
    background: rgba(255, 255, 255, 0.35);
}

.video-controls {
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 12px 15px;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.8), transparent);
    gap: 12px;
    color: white;
    opacity: 0;
    transition: opacity 0.3s;
}

.video-controls div.flex {
    color: white;
    background: none;
    border: none;
    cursor: pointer;
}

.video-controls select {
    background: transparent;
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 4px;
    padding: 2px 6px;
    cursor: pointer;
    font-size: 12px;
}

.video-controls select option {
    color: black;
}

.video-controls div.flex:hover,
.video-controls select:hover {
    color: #FF5722 !important;
    border-color: #FF5722 !important;
}

/* Vertical Showcase Styles */
.ai-showcase-card.vertical-showcase {
    border: none;
    padding: 0;
    background: transparent;
    overflow: visible;
}
.ai-showcase-card.vertical-showcase::before {
    display: none;
}
.vertical-showcase .ai-carousel-wrapper {
    height: 600px !important;
}

.vertical-showcase .ai-slide {
    transform: translate(-50%, -50%) scale(0.8);
}
.vertical-showcase .ai-slide.active {
    transform: translate(-50%, -50%) scale(1);
    z-index: 10;
}
.vertical-showcase .ai-slide.prev {
    transform: translate(-50%, -115%) scale(0.85);
    pointer-events: auto;
    cursor: pointer;
    z-index: 5;
}
.vertical-showcase .ai-slide.next {
    transform: translate(-50%, 15%) scale(0.85);
    pointer-events: auto;
    cursor: pointer;
    z-index: 5;
}
.vertical-showcase .ai-slide.hidden-left {
    transform: translate(-50%, -170%) scale(0.7);
    pointer-events: none;
    cursor: default;
}
.vertical-showcase .ai-slide.hidden-right {
    transform: translate(-50%, 70%) scale(0.7);
    pointer-events: none;
    cursor: default;
}

.vertical-showcase .ai-showcase-nav.top {
    top: 0px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10;
}
.vertical-showcase .ai-showcase-nav.top:hover {
    transform: translateX(-50%) scale(1.10);
}
.vertical-showcase .ai-showcase-nav.bottom {
    bottom: 0px;
    top: auto;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10;
}
.vertical-showcase .ai-showcase-nav.bottom:hover {
    transform: translateX(-50%) scale(1.10);
}

@media (max-width: 768px) {
    .ai-slide {
        width: 75%;
    }
    .vertical-showcase .ai-carousel-wrapper {
        height: 300px !important;
    }
    .vertical-showcase .ai-slide.prev {
        transform: translate(-75%, -50%) scale(0.85);
    }
    .vertical-showcase .ai-slide.next {
        transform: translate(-25%, -50%) scale(0.85);
    }
    .vertical-showcase .ai-slide.hidden-left {
        transform: translate(-100%, -50%) scale(0.7);
    }
    .vertical-showcase .ai-slide.hidden-right {
        transform: translate(0%, -50%) scale(0.7);
    }
    .vertical-showcase .ai-showcase-nav.top {
        top: 50%;
        left: 0px;
        bottom: auto;
        transform: translateY(-50%);
    }
    .vertical-showcase .ai-showcase-nav.top:hover {
        transform: translateY(-50%) scale(1.10);
    }
    .vertical-showcase .ai-showcase-nav.top svg {
        transform: rotate(-90deg);
    }
    .vertical-showcase .ai-showcase-nav.bottom {
        top: 50%;
        right: 0px;
        left: auto;
        bottom: auto;
        transform: translateY(-50%);
    }
    .vertical-showcase .ai-showcase-nav.bottom:hover {
        transform: translateY(-50%) scale(1.10);
    }
    .vertical-showcase .ai-showcase-nav.bottom svg {
        transform: rotate(-90deg);
    }
}
