/* ============================================================
   FYP Journey — Hero Section
   components/hero.css
   ============================================================ */

/* ── Hero Wrapper ── */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    overflow: hidden;
    padding-top: 80px;
    /* navbar height offset */
    background: var(--color-bg-dark);
}

/* ── Background Blob Decoration ── */
.hero__bg {
    position: absolute;
    inset: 0;
    z-index: 0;
    overflow: hidden;
}

.hero__blob {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.18;
    animation: blobMorph 10s ease-in-out infinite;
}

.hero__blob--1 {
    width: 520px;
    height: 520px;
    background: var(--color-secondary);
    top: -120px;
    left: -100px;
    animation-delay: 0s;
}

.hero__blob--2 {
    width: 380px;
    height: 380px;
    background: var(--color-accent);
    bottom: -80px;
    right: 30%;
    animation-delay: 3s;
}

.hero__blob--3 {
    width: 280px;
    height: 280px;
    background: var(--color-primary-light);
    top: 40%;
    right: -60px;
    animation-delay: 6s;
}

/* ── Grid Layout ── */
.hero__inner {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
    gap: clamp(3.5rem, 7vw, 6.5rem);
    align-items: center;
    width: 100%;
    max-width: 1320px;
    margin-inline: auto;
    padding-inline: clamp(1.5rem, 4vw, 3rem);
    padding-block: var(--space-16);
}

/* ── Left: Content ── */
.hero__content {
    display: flex;
    flex-direction: column;
    gap: var(--space-6);
    padding-right: clamp(0rem, 1vw, 0.75rem);
}

/* Badge pill */
.hero__badge {
    display: inline-flex;
    align-items: center;
    gap: var(--space-2);
    padding: 0.35rem 1rem;
    background: rgba(59, 130, 246, 0.15);
    border: 1px solid rgba(59, 130, 246, 0.3);
    border-radius: var(--radius-full);
    width: fit-content;
    animation: fadeInDown 0.7s var(--ease-out) both;
}

.hero__badge-dot {
    width: 8px;
    height: 8px;
    background: var(--color-secondary-light);
    border-radius: 50%;
    animation: pulseRing 1.8s ease-out infinite;
    box-shadow: 0 0 0 0 rgba(96, 165, 250, 0.6);
}

.hero__badge-text {
    font-family: var(--font-display);
    font-size: var(--text-xs);
    font-weight: var(--font-semibold);
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--color-secondary-light);
}

/* Heading */
.hero__heading {
    font-family: var(--font-display);
    font-size: clamp(2.2rem, 4.5vw, 3.6rem);
    font-weight: var(--font-black);
    line-height: 1.15;
    color: var(--color-text-white);
    animation: fadeInUp 0.8s var(--ease-out) 0.1s both;
}

.hero__heading .line-accent {
    color: var(--color-accent);
}

.hero__heading .line-blue {
    color: var(--color-secondary-light);
}

/* Tagline */
.hero__tagline {
    display: inline-flex;
    align-items: center;
    gap: var(--space-3);
    font-family: var(--font-display);
    font-size: var(--text-base);
    font-weight: var(--font-semibold);
    font-style: italic;
    color: var(--color-text-on-dark);
    opacity: 0.85;
    animation: fadeInUp 0.8s var(--ease-out) 0.2s both;
}

.hero__tagline::before {
    content: '';
    display: block;
    width: 32px;
    height: 2px;
    background: var(--color-accent);
    border-radius: var(--radius-full);
    flex-shrink: 0;
}

/* Description */
.hero__desc {
    font-size: var(--text-lg);
    color: var(--color-text-on-dark);
    line-height: var(--leading-relaxed);
    max-width: 46ch;
    opacity: 0.85;
    animation: fadeInUp 0.8s var(--ease-out) 0.3s both;
}

/* CTA Buttons */
.hero__actions {
    display: flex;
    align-items: center;
    gap: var(--space-4);
    flex-wrap: wrap;
    animation: fadeInUp 0.8s var(--ease-out) 0.4s both;
}

/* Stats row */
.hero__stats {
    display: flex;
    align-items: center;
    gap: var(--space-8);
    padding-top: var(--space-4);
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    animation: fadeInUp 0.8s var(--ease-out) 0.5s both;
}

.hero__stat {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.hero__stat-number {
    font-family: var(--font-display);
    font-size: var(--text-2xl);
    font-weight: var(--font-black);
    color: var(--color-text-white);
    line-height: 1;
}

.hero__stat-number span {
    color: var(--color-accent);
}

.hero__stat-label {
    font-size: var(--text-xs);
    color: var(--color-text-on-dark);
    opacity: 0.7;
    letter-spacing: 0.04em;
}

/* ── Right: Image Slider ── */
.hero__visual {
    position: relative;
    height: 560px;
    width: 100%;
    max-width: 620px;
    justify-self: end;
    animation: fadeInRight 0.9s var(--ease-out) 0.2s both;
}

/* Slider container */
.hero__slider {
    position: relative;
    width: 100%;
    height: 100%;
    border-radius: var(--radius-2xl);
    overflow: hidden;
    box-shadow: var(--shadow-xl);
}

/* Each slide */
.hero__slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    transition: opacity 0.9s var(--ease-out);
    z-index: 1;
}

.hero__slide.active {
    opacity: 1;
    z-index: 2;
}

.hero__slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center top;
    display: block;
}

/* Slide overlay gradient */
.hero__slide::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to top,
            rgba(15, 30, 69, 0.65) 0%,
            rgba(15, 30, 69, 0.15) 50%,
            transparent 100%);
    z-index: 1;
}

/* Slide caption */
.hero__slide-caption {
    position: absolute;
    bottom: var(--space-6);
    left: var(--space-6);
    right: var(--space-6);
    z-index: 2;
    opacity: 0;
    transform: translateY(12px);
    transition: opacity 0.5s var(--ease-out) 0.4s,
        transform 0.5s var(--ease-out) 0.4s;
}

.hero__slide.active .hero__slide-caption {
    opacity: 1;
    transform: translateY(0);
}

.hero__slide-caption-text {
    font-family: var(--font-display);
    font-size: var(--text-sm);
    font-weight: var(--font-medium);
    color: rgba(255, 255, 255, 0.9);
    background: rgba(15, 30, 69, 0.5);
    backdrop-filter: blur(8px);
    padding: 0.5rem 1rem;
    border-radius: var(--radius-full);
    display: inline-block;
    border: 1px solid rgba(255, 255, 255, 0.12);
}

/* Slider dots */
.hero__slider-dots {
    position: absolute;
    bottom: var(--space-5);
    right: var(--space-5);
    display: flex;
    gap: var(--space-2);
    z-index: 3;
}

.hero__dot {
    width: 8px;
    height: 8px;
    border-radius: var(--radius-full);
    background: rgba(255, 255, 255, 0.35);
    border: none;
    cursor: pointer;
    transition: background var(--duration-base) var(--ease-out),
        width var(--duration-base) var(--ease-out);
    padding: 0;
}

.hero__dot.active {
    background: var(--color-text-white);
    width: 24px;
}

/* Floating card on slider */
.hero__float-card {
    position: absolute;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(16px);
    border-radius: var(--radius-lg);
    padding: var(--space-4) var(--space-5);
    box-shadow: var(--shadow-xl);
    z-index: 4;
    border: 1px solid rgba(255, 255, 255, 0.8);
    animation: float 4s ease-in-out infinite;
}

.hero__float-card--1 {
    bottom: 92px;
    left: -28px;
    animation-delay: 0s;
}

.hero__float-card--2 {
    top: 40px;
    right: -28px;
    animation-delay: 2s;
}

.hero__float-card-icon {
    font-size: 1.4rem;
    margin-bottom: var(--space-1);
}
.hero__float-card-icon i {
    color: #4f46e5;
    /* font-size: 1.4rem; */
}

.hero__float-card-label {
    font-family: var(--font-display);
    font-size: var(--text-xs);
    font-weight: var(--font-bold);
    color: var(--color-text-primary);
    white-space: nowrap;
}

.hero__float-card-sub {
    font-size: var(--text-xs);
    color: var(--color-text-secondary);
    white-space: nowrap;
}

/* Scroll indicator */
.hero__scroll {
    position: absolute;
    bottom: var(--space-8);
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--space-2);
    z-index: 2;
    animation: fadeIn 1s var(--ease-out) 1s both;
}

.hero__scroll-label {
    font-size: var(--text-xs);
    font-weight: var(--font-medium);
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.45);
}

.hero__scroll-line {
    width: 1.5px;
    height: 48px;
    background: linear-gradient(to bottom, rgba(255, 255, 255, 0.4), transparent);
    border-radius: var(--radius-full);
    animation: scrollBounce 2s ease-in-out infinite;
}

/* ── Responsive ── */
@media (max-width: 1024px) {
    .hero__inner {
        grid-template-columns: 1fr;
        text-align: center;
        padding-block: var(--space-20) var(--space-12);
    }

    .hero__badge {
        margin-inline: auto;
    }

    .hero__tagline {
        justify-content: center;
    }

    .hero__desc {
        max-width: none;
        margin-inline: auto;
    }

    .hero__actions {
        justify-content: center;
    }

    .hero__stats {
        justify-content: center;
    }

    .hero__visual {
        height: 420px;
        max-width: 560px;
        margin-inline: auto;
        width: 100%;
    }

    .hero__float-card--1 {
        left: 0;
        bottom: 48px;
    }

    .hero__float-card--2 {
        right: 0;
        top: 16px;
    }
}

@media (max-width: 640px) {
    .hero__heading {
        font-size: 2rem;
    }

    .hero__visual {
        height: 320px;
    }

    .hero__stats {
        gap: var(--space-6);
    }

    .hero__float-card {
        display: none;
    }

    .hero__scroll {
        display: none;
    }
}
