/* Smooth scroll for anchor links */
html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Halyard Display', 'Poppins', sans-serif;
    background-color: var(--bg-color);
    color: var(--bs-body-color);
    overflow-x: hidden;
    line-height: 1.6;
}

/* Fade + slide-up animation setup */
.fade-slide {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s ease-out;
}

    /* When element is visible */
    .fade-slide.show {
        opacity: 1;
        transform: translateY(0);
    }

/* Navbar */
/* Base Navbar */
#mainNavbar {
    background-color: rgba(var(--bs-body-bg-rgb), 0.6);
    backdrop-filter: blur(12px);
    transition: all 0.3s ease;
}

    #mainNavbar.scrolled {
        background: var(--bs-gradient);
        box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
        padding-top: 0.4rem !important;
        padding-bottom: 0.4rem !important;
    }

/* Page Load Animation */
.opacity-0 {
    opacity: 0;
}

.translate-down {
    transform: translateY(-20px);
}

.fade-in-up {
    opacity: 1;
    transform: translateY(0);
    transition: all 0.6s ease;
}

/* Nav Links */
#mainNavbar .nav-link {
    position: relative;
    font-weight: 500;
    padding: 0.5rem 1rem;
    color: var(--bs-body-color);
    transition: color 0.3s ease;
}

    #mainNavbar .nav-link.active {
        color: var(--bs-primary);
    }

    #mainNavbar .nav-link::after {
        content: "";
        position: absolute;
        bottom: 0;
        left: 50%;
        width: 0%;
        height: 2px;
        background: var(--bs-primary);
        transition: width 0.3s ease, left 0.3s ease;
    }

    #mainNavbar .nav-link.active::after {
        width: 100%;
        left: 0;
    }

/* Mobile Menu */
@media (max-width: 991px) {
    #navbarNav {
        background: rgba(var(--bs-body-bg-rgb), 0.95);
        backdrop-filter: blur(12px);
        padding: 1.5rem;
    }

    #mainNavbar .nav-link {
        padding: 0.75rem 0;
        font-size: 1.2rem;
    }
}

/* Hero section */
.hero {
    position: relative;
    height: 100vh;
    width: 100%;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    background-color: var(--bg-color);
}

    .hero::after {
        content: "";
        position: absolute;
        inset: 0;
        background: url('/assets/images/bg_h1.png') center/cover no-repeat;
        opacity: 1;
    }

    .hero .container {
        position: relative;
        z-index: 2;
        padding: 0 1rem;
    }

    /* Titles */
    .hero .Hero-title-text {
        font-size: clamp(2.2rem, 5.5vw, 5rem);
        font-weight: 700;
        letter-spacing: 1px;
        margin: 0;
        line-height: 1.15;
        color: var(--accent-color);
    }

    .hero .Hero-title1-text {
        font-size: 125px;
        font-family: 'Halyard Display', sans-serif;
        font-weight: 700;
        letter-spacing: 1px;
        margin: 0;
        line-height: 1.15;
    }

.bgimage-text {
    background: var(--bgimage-text);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.gradient-text {
    background: linear-gradient(90deg, #ff0080, #ff8c00);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* Subtitle */
.hero .Hero-subtitle-text {
    font-size: clamp(1.1rem, 2.5vw, 1.5rem);
    font-weight: 400;
    opacity: 0.9;
    line-height: 1.5;
    max-width: 650px;
    margin: 0 auto 1.5rem;
    color: var(--accent-color);
}

/* Hero Section */
#section2 {
    position: relative;
}

    #section2 video {
        object-fit: cover;
    }

    /* Dark Overlay */
    #section2::before {
        content: "";
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: rgba(0, 0, 0, 0.55);
        z-index: 1;
    }

/* Hero Content */
.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    top: 50%;
    transform: translateY(-50%);
    max-width: 800px;
    margin: auto;
    padding: 0 15px;
}

    .hero-content h1 {
        font-size: 3rem;
        font-weight: 700;
        margin-bottom: 1rem;
    }

    .hero-content p {
        font-size: 1.2rem;
        color: var(--bs-dark-bg-subtle);
        margin-bottom: 1.5rem;
    }

    .hero-content a {
        display: inline-block;
        margin: 0.5rem 0;
        padding: 0.75rem 1.5rem;
        background: var(--accent-color);
        color: var(--bs-white);
        border-radius: 50px;
        font-weight: 600;
        transition: background 0.3s ease, transform 0.3s ease;
    }

        .hero-content a:hover {
            background: #e67a00;
            transform: translateY(-2px);
        }

.Bg_img {
    background: url('/assets/images/bg_h1.png') center/cover no-repeat;
    background-color: var(--bg-color);
}

/* Marquee section styling */
#section3 {
    border-top: 2px solid rgba(255, 255, 255, 0.1);
    border-bottom: 2px solid rgba(255, 255, 255, 0.1);
}

/* Smooth fade & slide */
/* Fade & slide entrance */
.fade-slide {
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.8s ease-out;
}

.fade-slide-in {
    opacity: 1;
    transform: translateY(0);
}

/* Marquee Section with Parallax Background */
.marquee-section {
    position: relative;
    height: 400px;
    overflow: hidden;
    display: flex;
    align-items: center;
    border-top: 2px solid rgba(255, 255, 255, 0.1);
    border-bottom: 2px solid rgba(255, 255, 255, 0.1);
}

    /* Dark gradient overlay for text readability */
    .marquee-section .overlay {
        position: absolute;
        inset: 0;
        background: linear-gradient(to right, rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.1), rgba(0, 0, 0, 0.5));
        z-index: 1;
    }

/* Scrolling text styling */
.scrolling-text {
    position: relative;
    width: 200%;
    white-space: nowrap;
    z-index: 2;
    display: flex;
    gap: 100px;
    overflow: hidden;
}

.scrolling-content {
    display: inline-block;
    animation: marquee 100s linear infinite;
}

    .scrolling-content span {
        font-weight: 700;
        letter-spacing: 1px;
        color: #ff8c00;
        text-shadow: 0px 2px 8px rgba(0, 0, 0, 0.6);
        padding-right: 4rem;
        /* spacing between repeats */
    }

/* Smooth continuous scrolling */
@keyframes marquee {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-50%);
    }
}

/* Cards */
.card {
    border-radius: 1rem;
}

/* Floating settings button */
.settings-toggle {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background: var(--accent-color, #007bff);
    color: white;
    border: none;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    font-size: 1.5rem;
    cursor: pointer;
    z-index: 1001;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    transition: background 0.3s ease;
}

    .settings-toggle:hover {
        background: var(--accent-color-hover, #0056b3);
    }

.settings-panel {
    position: fixed;
    top: 0;
    right: -400px;
    width: 300px;
    height: 100vh;
    background: var(--bg-color, #222);
    z-index: 2001;
    /* Always above navbar */
    padding: 25px;
    box-shadow: -4px 0 12px rgba(0, 0, 0, 0.2);
    overflow-y: auto;
    transition: right 0.35s cubic-bezier(0.68, -0.55, 0.27, 1.55);
}

    .settings-panel.open {
        z-index: 2001;
        right: 0;
    }

    .settings-panel h4 {
        margin-bottom: 15px;
        font-size: 1.2rem;
        font-weight: bold;
    }

.settings-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    z-index: 2000;
    /* Just below the panel */
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

    .settings-overlay.active {
        opacity: 1;
        pointer-events: auto;
    }

.theme-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(80px, 1fr));
    gap: 10px;
}

.theme-option {
    display: flex;
    flex-direction: column;
    align-items: center;
    cursor: pointer;
    padding: 10px;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.05);
    transition: transform 0.2s ease, background 0.3s ease;
}

    .theme-option:hover {
        transform: scale(1.05);
        background: rgba(255, 255, 255, 0.1);
    }

    .theme-option.active {
        outline: 2px solid var(--accent-color, #007bff);
        background: rgba(255, 255, 255, 0.15);
    }

.swatch {
    width: 42px;
    height: 42px;
    border-radius: 12px;
    background: var(--swatch);
    box-shadow: inset 0 1px 3px rgba(255, 255, 255, 0.2), 0 2px 6px rgba(0, 0, 0, 0.3);
    margin-bottom: 5px;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.theme-option:hover .swatch {
    transform: scale(1.1);
    box-shadow: inset 0 1px 3px rgba(255, 255, 255, 0.3), 0 4px 12px rgba(0, 0, 0, 0.4);
}

.theme-option.active .swatch {
    outline: 3px solid var(--accent-color, #007bff);
    box-shadow: 0 0 10px var(--accent-color, #007bff);
}

.label {
    font-size: 0.8rem;
    text-align: center;
}

.card-wrap {
    background: var(--theme-color-alter_dark_05);
    border-radius: 14px;
    padding: 20px;
    box-shadow: 0 10px 30px rgba(11, 17, 34, 0.06);
}

.wheel-wrap {
    width: var(--size);
    max-width: 100%;
    margin: 0 auto;
    position: relative;
    user-select: none;
}

svg.product-wheel {
    width: 100%;
    height: auto;
    display: block;
}

/* visible slice (gradient) */
.slice-vis {
    transition: transform .16s cubic-bezier(.16, .9, .3, 1), filter .12s;
    transform-origin: 100px 100px;
}

    .slice-vis.hovered {
        transform: scale(1.06);
        filter: drop-shadow(0 10px 22px rgba(0, 0, 0, 0.10));
    }

/* thin white highlight stroke on top of slice */
.slice-edge {
    opacity: 0;
    transition: opacity .12s;
    pointer-events: none;
}

.slice-vis.hovered + .slice-edge {
    opacity: 1;
}

/* invisible hit area - full wedge for pointer events */
.slice-hit {
    fill: transparent;
    cursor: pointer;
    pointer-events: all;
}

/* center */
.center-circle {
    fill: #fff;
    stroke: rgba(11, 17, 34, 0.06);
    stroke-width: 1;
}

.center-text {
    font-size: 12px;
    font-weight: 700;
    fill: #0b1220;
    text-anchor: middle;
    dominant-baseline: middle;
}

/* pill label */
.hover-pill {
    position: relative;
    z-index: 1200;
    background: rgba(11, 17, 34, 0.95);
    color: #fff;
    padding: 6px 10px;
    border-radius: 999px;
    font-size: 12px;
    display: none;
    white-space: nowrap;
    transition: opacity .15s ease, transform .15s ease;
    width: max-content;
    text-align: center;
    place-self: center;
}

    .hover-pill.show {
        display: block;
        opacity: 1;
    }

/* rich tooltip */
.tooltip-rich {
    position: relative;
    z-index: 1250;
    min-width: 220px;
    max-width: 320px;
    background: linear-gradient(180deg, #ffffff, #fbfdff);
    border-radius: 12px;
    box-shadow: 0 12px 30px rgba(8, 18, 33, 0.12);
    padding: 12px;
    display: none;
    gap: 10px;
    transform-origin: top center;
    transition: opacity .15s ease, transform .15s cubic-bezier(.16, .9, .3, 1);
    will-change: left, top, opacity, transform;
    place-self: center;
    margin-top: 20px;
}

    .tooltip-rich.show {
        display: grid;
        opacity: 1;
        transform: translateY(0) scale(1);
    }

    .tooltip-rich.measuring {
        display: block;
        visibility: hidden;
    }

    /* used while measuring */
    .tooltip-rich .thumb {
        width: 72px;
        height: 72px;
        border-radius: 10px;
        overflow: hidden;
        background: #f2f6fb;
    }

    .tooltip-rich img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        display: block;
    }

    .tooltip-rich .title {
        font-weight: 700;
        font-size: 13px;
    }

    .tooltip-rich .desc {
        font-size: 12px;
        color: #3f5b6b;
        margin-bottom: 6px;
        line-height: 1.15;
    }

    .tooltip-rich .cta {
        font-size: 12px;
        display: inline-block;
        background: #eef7ff;
        padding: 6px 8px;
        border-radius: 8px;
        text-decoration: none;
        color: #0b1220;
        font-weight: 600;
    }

/* right column list */
.product-item {
    display: flex;
    gap: 12px;
    align-items: center;
    padding: 10px 14px;
    border-radius: 10px;
    transition: transform .12s, box-shadow .12s;
}

    .product-item:hover {
        transform: translateX(6px);
        box-shadow: 0 8px 20px rgba(11, 17, 34, 0.06);
    }

    .product-item i {
        width: 36px;
        text-align: center;
        font-size: 18px;
    }

@media (max-width: 767px) {
    .wheel-wrap {
        width: 320px;
    }

    .tooltip-rich {
        left: 50% !important;
        transform: translate(-50%, 6px) scale(.98);
    }
}

@keyframes bounceFade {
    0% {
        transform: scale(0.5) translateY(20px);
        opacity: 0;
    }

    50% {
        transform: scale(1.1) translateY(-5px);
        opacity: 1;
    }

    70% {
        transform: scale(0.95) translateY(0);
    }

    100% {
        transform: scale(1) translateY(0);
    }
}

.icon-animate i {
    display: inline-block;
    animation: bounceFade 0.8s ease forwards;
}

.skeleton {
    background: linear-gradient(90deg, #ccc, #e0e0e0, #ccc);
    background-size: 200% 100%;
    animation: skeleton-loading 1.2s infinite;
    border-radius: 6px;
}

.skeleton-img {
    height: 180px;
    width: 100%;
}

.skeleton-title {
    height: 18px;
    margin-top: 10px;
    width: 80%;
}

.skeleton-sub {
    height: 14px;
    margin-top: 6px;
    width: 60%;
}

.skeleton-line {
    height: 12px;
    margin-top: 8px;
    width: 100%;
}

    .skeleton-line.short {
        width: 40%;
    }

@keyframes skeleton-loading {
    0% {
        background-position: 200% 0;
    }

    100% {
        background-position: -200% 0;
    }
}

.filter-buttons {
    text-align: center;
    margin-bottom: 30px;
}

    .filter-buttons button {
        margin: 5px;
        padding: 8px 18px;
        border-radius: 30px;
    }

.product-card {
    background: var(--theme-color-alter_dark_05);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
}

    .product-card:hover {
        transform: translateY(-5px);
        box-shadow: 0 8px 25px rgba(0, 0, 0, 0.12);
    }

.product-image-wrapper::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    backdrop-filter: blur(5px);
    background: rgba(0, 0, 0, 0.3);
    /* example overlay */
    pointer-events: none;
    z-index: 1;
    border-radius: 0.25rem;
    /* or whatever you want */
}

.product-image-wrapper {
    position: relative;
    overflow: hidden;
    /* if you want to clip the overlay */
}

    .product-image-wrapper * {
        position: relative;
        z-index: 1;
    }

.product-image {
    width: 100%;
    height: 220px;
    object-fit: contain;
}

.product-details {
    padding: 15px;
}

.product-title {
    font-size: 1.1rem;
    font-weight: 600;
}

.product-sub {
    font-size: 0.9rem;
    color: #777;
    margin-bottom: 10px;
}

.product-points {
    font-size: 0.85rem;
    padding-left: 18px;
    list-style-type: none;
}

    .product-points li {
        margin-bottom: 4px;
    }

/* Buttons */
.btn-custom {
    background: #ff8c00;
    border: none;
    padding: 0.75rem 1.5rem;
    font-size: 1.1rem;
    font-weight: 600;
    border-radius: 50px;
    transition: 0.3s;
}

    .btn-custom:hover {
        background: #e67a00;
        transform: translateY(-2px);
    }

.btn-primary {
    background: linear-gradient(135deg, #ff0080, var(--bs-blue));
    border: none;
    padding: 0.75rem 1.75rem;
    border-radius: 50px;
    font-size: 1rem;
    font-weight: 600;
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
}

    .btn-primary:hover {
        transform: translateY(-3px) scale(1.02);
        box-shadow: 0 8px 15px rgba(255, 0, 128, 0.4);
    }

.btn-link {
    color: var(--accent-color);
    font-weight: 600;
    font-size: 1rem;
    text-decoration: none;
    letter-spacing: 0.5px;
}

    .btn-link:hover {
        text-decoration: underline;
    }

/* Divider */
hr {
    border-color: rgba(255, 255, 255, 0.15);
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .hero .Hero-title-text {
        font-size: 2rem;
    }

    .hero .Hero-subtitle-text {
        font-size: 1rem;
    }

    .btn-primary, .btn-link {
        font-size: 0.9rem;
    }
}

#BusinessModel h1 {
    color: var(--accent-color);
}

#BusinessModel h2 {
    color: var(--bs-primary-text-emphasis);
}

/* Hover & Focus styles for accessibility */
.list-item {
    transition: background-color 0.3s ease;
}

    .list-item:hover, .list-item:focus {
        background-color: rgba(255, 140, 0, 0.15);
        outline: none;
        cursor: pointer;
    }

    /* Keyboard focus outline */
    .list-item:focus-visible {
        outline: 3px solid #ff8c00;
        outline-offset: 2px;
    }

/* SECTION BACKGROUND (image + theme tint) */
#IncomeTypesModel {
    position: relative;
    background-image: url(/assets/images/bg_h1.png);
    background-size: cover;
    background-position: center;
    isolation: isolate;
}

    #IncomeTypesModel::before {
        content: "";
        position: absolute;
        inset: 0;
        background: var(--bs-gradient-10);
        /* lightens/darkens image for readability */
        z-index: 0;
        pointer-events: none;
    }

    #IncomeTypesModel > .container {
        position: relative;
        z-index: 1;
        /* sit above the tint */
    }

    /* TYPOGRAPHY */
    #IncomeTypesModel h1 {
        color: var(--bs-primary);
    }

/* CARD STYLES (dark/light aware + accent) */
.incentive-card {
    background: var(--bs-body-bg);
    border: 1px solid var(--bs-primary);
    border-radius: 14px;
    padding: 30px 22px;
    box-shadow: 0 4px 18px rgba(0, 0, 0, 0.06);
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
}

    .incentive-card:hover {
        transform: translateY(-6px);
        box-shadow: 0 10px 28px rgba(0, 0, 0, 0.12);
        border-color: rgba(var(--accent-color-rgb), 0.35);
    }

.icon-wrapper {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    margin: 0 auto 18px auto;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 34px;
    color: var(--accent-color);
    background: rgba(var(--accent-color-rgb), 0.12);
    transition: background 0.3s ease, color 0.3s ease, box-shadow 0.3s ease;
}

.incentive-card:hover .icon-wrapper {
    background: var(--accent-color);
    color: #fff;
    box-shadow: 0 6px 16px rgba(var(--accent-color-rgb), 0.35);
}

.card-title {
    color: var(--bs-body-color);
    font-size: 1.25rem;
    margin-bottom: 10px;
}

.card-text {
    color: var(--bs-gray-500);
    font-size: 0.95rem;
}

/* MOBILE TWEAKS */
@media (max-width: 576px) {
    .icon-wrapper {
        width: 58px;
        height: 58px;
        font-size: 28px;
    }

    .card-title {
        font-size: 1.1rem;
    }
}

:root {
    --contact-gradient-light: linear-gradient(135deg, #0062ff, #00bfff);
    --contact-gradient-dark: linear-gradient(135deg, #0a84ff, #30d5ff);
}

/* Auto adjust gradient based on theme */
[data-bs-theme="light"] {
    --contact-gradient: var(--contact-gradient-light);
}

[data-bs-theme="dark"] {
    --contact-gradient: var(--contact-gradient-dark);
}

/* Glassmorphism card */
.contact-card {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

[data-bs-theme="light"] .contact-card {
    background: rgba(255, 255, 255, 0.7);
}

.contact-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

/* Icon pulse animation on hover */
.icon-animate {
    display: inline-block;
    transition: transform 0.3s ease;
}

    .icon-animate:hover {
        transform: scale(1.2);
    }

#contactInfoSection {
    backdrop-filter: blur(12px);
    background: rgba(255, 255, 255, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

[data-bs-theme="dark"] #contactInfoSection {
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.icon-animate:hover {
    animation: pulse 0.6s ease-in-out infinite alternate;
}

@keyframes pulse {
    from {
        transform: scale(1);
    }

    to {
        transform: scale(1.15);
    }
}

.contact-card {
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

    .contact-card:hover {
        transform: translateY(-5px);
        box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
    }

#contactFormSection {
    opacity: 0;
    transform: translateX(30px);
    transition: all 0.5s ease;
    display: block;
    /* keep block to animate */
    overflow: hidden;
}

    #contactFormSection.show-form {
        opacity: 1;
        transform: translateX(0);
        max-width: 55%;
    }

#contactInfoSection {
    transition: all 0.5s ease;
}

    #contactInfoSection.shrink-info {
        flex: 0 0 45%;
    }
