/*───────────────────────────────────────────────
  CSS VARIABLES
───────────────────────────────────────────────*/
:root {
    --primary-color: #50908F;
    --accent-color: #D2211E;
    --bg-color: #F9FAFB;
    --grey-1: #2A2727;
    --white: #fff;
}

/*───────────────────────────────────────────────
  BASE STYLES
───────────────────────────────────────────────*/
html {
    scroll-behavior: smooth;
}

body {
    font-family: "Montserrat", sans-serif;
    background-color: var(--bg-color);
}

.no-scroll {
    overflow: hidden;
    height: 100vh;
}

.navbar {
    padding: 1rem 2rem;
    background-color: #fff;
}

.navbar-brand img {
    height: 32px;
}

.nav-link {
    color: var(--primary-color);
    margin: 0 .5rem;
    transition: color 0.25s ease;
}

.nav-link:hover,
.nav-link:focus-visible {
    color: var(--accent-color);
    /* #D2211E */
}

img {
    max-width: 100%;
    height: auto;
}

/* Glassy dropdown menu style */
.dropdown-glass {
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-radius: 0.75rem;
    box-shadow: 0 10px 25px var(--primary-color);
    padding: 0.75rem 0;
    border: none;
    min-width: 220px;
}

/* Accent hover on dropdown items */
.dropdown-glass .dropdown-item {
    transition: background-color 0.3s, color 0.3s;
}

.dropdown-glass .dropdown-item:hover {
    color: var(--accent-color);
    background-color: rgba(210, 33, 30, 0.1);
    /* subtle red tint */
}

/* Hover trigger for dropdown (large screens only) */
@media (min-width: 992px) {
    .dropdown-hover:hover>.dropdown-menu {
        display: block;
        margin-top: 0;
    }
}

/* Animated arrow */
.dropdown-toggle-custom {
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

.dropdown-hover:hover .dropdown-arrow {
    transform: rotate(90deg);
}

.dropdown-arrow {
    transition: transform 0.3s ease;
}

/*───────────────────────────────────────────────
  Mobile-friendly Solutions dropdown
───────────────────────────────────────────────*/
@media (max-width: 991px) {

    /* 1. Make the dropdown-menu static so it sits inline */
    .dropdown-menu.dropdown-glass {
        position: static !important;
        float: none !important;
        display: none;
        width: 100%;
        margin: .5rem 0 0 0;
        padding: .5rem 0;
        box-shadow: none;
        /* let the page’s natural flow give context */
        background: var(--white);
        /* solid white for readability */
        border-radius: 0;
        /* flush with nav collapse */
    }

    /* 2. Show it when .show is toggled */
    .dropdown-menu.dropdown-glass.show {
        display: block;
    }

    /* 3. Full-width links */
    .dropdown-menu.dropdown-glass .dropdown-item {
        padding: .75rem 1.5rem;
    }

    /* 4. Rotate the arrow when open */
    .dropdown-arrow.rotated {
        transform: rotate(90deg);
    }
}

/*───────────────────────────────────────────────
  HERO
───────────────────────────────────────────────*/
.hero-section {
    padding: 4rem 0;
    position: relative;
    overflow: hidden;
}

.hero-title {
    font-size: clamp(2rem, 6vw, 3.5rem);
    font-weight: 700;
    color: var(--grey-1);
    line-height: 1.2;
    margin-bottom: 1.5rem;
}

.highlight {
    color: var(--primary-color);
    font-weight: 700;
}

.hero-description {
    color: var(--grey-1);
    font-size: 1.1rem;
    margin-bottom: 2rem;
    max-width: 500px;
}

#dynamic-text {
    color: var(--accent-color);
    white-space: nowrap;
    overflow: hidden;
    border-right: 2px solid var(--accent-color);
    font-weight: bold;
    width: fit-content;
    animation: blink-caret .75s step-end infinite;
}

.hero-lottie-bg {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 800px;
    height: 800px;
    opacity: 0.30;
    pointer-events: none;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-lottie-bg dotlottie-player {
    width: 100%;
    height: 100%;
    max-width: 1000px;
    max-height: 1000px;
}

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

@keyframes blink-caret {

    from,
    to {
        border-color: transparent;
    }

    50% {
        border-color: var(--accent-color);
    }
}

.hero-image {
    position: relative;
}

.hero-image img {
    max-width: 100%;
    border-radius: 20px;
}

.floating-card {
    position: absolute;
    background: #fff;
    padding: 1rem;
    border-radius: 12px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, .1);
}

.card-program {
    top: 20%;
    left: 0;
}

.card-bpm {
    top: 10%;
    right: 0;
}

.card-insights {
    bottom: 20%;
    right: 10%;
}

.action-buttons .btn {
    margin-right: 1rem;
    padding: .75rem 1.5rem;
}

.btn-trial,
.btn-primary {
    background: var(--primary-color);
    color: var(--white);
    border: none;
    border-radius: 8px;
}

.btn-secondary {
    background: none;
    color: var(--primary-color);
    text-decoration: underline;
    border: none;
}

/*───────────────────────────────────────────────
  FEATURES / SERVICES
───────────────────────────────────────────────*/
.features-section {
    margin-top: 4rem;
}

.feature-card {
    padding: 2rem;
    background: #fff;
    border-radius: 12px;
    margin-bottom: 1rem;
    transition: transform .3s ease;
}

.feature-card:hover {
    transform: translateY(-5px);
    background: var(--accent-color);
    color: #fff;
}

.feature-icon {
    width: 90px;
    height: 90px;
    margin-bottom: 1rem;
}

.hero-card {
    /* keep your background & radius */
    background: linear-gradient(rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.6)),
        url("/assets/images/about-image.jpeg") center/cover no-repeat;
    border-radius: 1rem;
    margin-bottom: 2rem;

    /* replace fixed height */
    min-height: 350px;
    display: flex;
    align-items: center;
    /* center vertically */
    justify-content: center;
    /* center horizontally */
    padding: 2.5rem;
    color: #fff;
}

/* constrain text width & center it */
.hero-card .hero-text {
    max-width: 600px;
    text-align: center;
}

/* fluid font sizing */
.hero-card .hero-text h1 {
    font-size: clamp(1.8rem, 5vw, 3rem);
    line-height: 1.2;
    margin-bottom: 1rem;
}

.hero-card .hero-text p {
    font-size: clamp(1rem, 2.5vw, 1.125rem);
    line-height: 1.6;
}


.service-card {
    background: var(--primary-color);
    color: #fff;
    height: 300px;
    border-radius: 1rem;
    padding: 1.5rem;
    transition: transform .3s ease;
    margin-bottom: 2rem;
}

.service-card:hover {
    transform: translateY(-5px);
    background: var(--accent-color);
}

.icon {
    width: 50px;
    height: 50px;
    background: rgba(255, 255, 255, .2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1rem;
}

.icon i {
    font-size: 1.5rem;
}

h1 {
    font-size: 2.5rem;
    font-weight: bold;
    margin-bottom: 1rem;
}

/*───────────────────────────────────────────────
  CARDS / SECTION CONTAINER
───────────────────────────────────────────────*/
.section-container {
    background: #f8f9fa;
    padding: 40px;
}

.section-title {
    font-size: 2.5rem;
    margin-bottom: 20px;
}

.card {
    border: none;
    box-shadow: 0 4px 8px rgba(0, 0, 0, .1);
    transition: transform .2s;
}

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

.card-title {
    font-weight: bold;
    margin-bottom: 10px;
}

.card-text {
    color: #6c757d;
}

.card-link {
    color: #007bff;
    text-decoration: none;
}

.card-link:hover {
    text-decoration: underline;
}

/*───────────────────────────────────────────────
  FOOTER: Floating Glassy Pill
───────────────────────────────────────────────*/
.footer-pill {
    position: fixed;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(188, 233, 232, 0.8);
    /* Teal glass */
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-radius: 999px;
    padding: 0.75rem 1.5rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    display: flex;
    align-items: center;
    gap: 1.5rem;
    z-index: 1000;
    font-family: "Montserrat", sans-serif;
    color: rgba(0, 0, 0, 0.95);
    opacity: 0;
    transform: translateX(-50%) translateY(20px);
    transition: opacity 1.5s ease, transform 1.5s ease;
}

.footer-pill.show {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

.footer-content {
    display: flex;
    align-items: center;
    gap: 1.25rem;
    flex-wrap: wrap;
    justify-content: center;
}

.footer-logo {
    height: 28px;
    filter: brightness(1.15);
}

.footer-icons {
    display: flex;
    gap: 1rem;
}

.footer-social-link {
    font-size: 1.25rem;
    color: rgba(0, 0, 0, 0.9);
    transition: color 0.3s ease, transform 0.3s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.footer-social-link:hover,
.footer-social-link:focus {
    outline: 2px dashed var(--accent-color, #D2211E);
    outline-offset: 2px;
    transform: scale(1.2);
    text-shadow: 0 0 6px rgba(210, 33, 30, 0.5);
}

.footer-copy {
    font-size: 0.85rem;
    color: rgba(0, 0, 0, 0.85);
}

/* Spacer to avoid overlap */
.footer-space-guard {
    height: calc(2rem + 56px);
    /* Offset + pill height */
    display: block;
}


@media (max-width: 575px) {
    .footer-pill {
        bottom: 1rem;
        padding: 0.75rem 1rem;
        flex-direction: column;
        gap: 0.75rem;
        text-align: center;
    }

    .footer-content {
        flex-direction: column;
        align-items: center;
        gap: 0.75rem;
    }

    .footer-logo {
        height: 24px;
    }

    .footer-icons {
        gap: 1.25rem;
        justify-content: center;
        flex-wrap: wrap;
    }

    .footer-social-link {
        font-size: 1.2rem;
    }

    .footer-copy {
        font-size: 0.75rem;
    }

    .footer-space-guard {
        height: calc(1rem + 64px);
        /* adjusted pill height */
    }
}

/*───────────────────────────────────────────────
  BACK TO TOP BUTTON
───────────────────────────────────────────────*/
.back-to-top {
    position: fixed;
    bottom: 6rem;
    right: 2rem;
    width: 48px;
    height: 48px;
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: none;
    border-radius: 50%;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
    color: var(--primary-color, #111);
    font-size: 1.25rem;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    opacity: 0;
    transform: translateY(20px);
    pointer-events: none;
    transition: opacity 1.5s ease, transform 1.5s ease;
    z-index: 999;
}

.back-to-top.show {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}

.back-to-top:hover {
    background-color: rgba(210, 33, 30, 0.1);
    color: var(--accent-color, #D2211E);
}



/*───────────────────────────────────────────────
  FULL-PAGE LOADER (video-based)
───────────────────────────────────────────────*/
#page-loader {
    position: fixed;
    inset: 0;
    width: 100%;
    height: 100%;
    z-index: 9999;
    overflow: hidden;
    background: #110702;
    transition: opacity 1.5s ease, visibility 1.5s ease;
}

.loader-video {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.loader-video.loaded {
    opacity: 1;
}

#page-loader.hidden {
    opacity: 0;
    visibility: hidden;
}

/*───────────────────────────────────────────────
  MEDIA QUERIES
───────────────────────────────────────────────*/
@media (min-width: 768px) {
    dotlottie-player {
        max-width: 500px;
    }
}


@media (max-width: 768px) {
    .hero-title {
        font-size: 2.5rem;
    }

    .hero-image {
        margin-top: 2rem;
    }

    .floating-card {
        position: static !important;
        top: auto !important;
        right: auto !important;
        bottom: auto !important;
        left: auto !important;
        transform: none !important;
        /* 2) Give them breathing room & sensible width */
        margin: 1rem auto;
        width: calc(100% - 2rem);
        max-width: 400px;
        /* optional—caps their width */
    }

    /* 3) Stack them nicely under the hero image */
    .hero-image {
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    .service-card {
        height: auto;
        min-height: 240px;
        margin-bottom: 1.25rem;
    }

    .feature-card {
        margin-bottom: 1.25rem;
    }
}

@media (max-width: 768px) {
    .hero-card {
        flex-direction: column;
        padding: 2rem 1.5rem;
        min-height: auto;
    }

    .hero-card .hero-text h1 {
        font-size: 2rem;
    }

    .hero-card .hero-text p {
        font-size: 1rem;
    }
}

@media (max-width: 575px) {
    #dynamic-text {
        white-space: normal;
        border-right: none;
    }
}

@media (min-width: 768px) {
    .footer-left {
        margin-bottom: 0;
    }
}

/*───────────────────────────────────────────────
  NAV TOGGLE (MOBILE)
───────────────────────────────────────────────*/
.nav-links.active {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 1rem 0;
}

.nav-links.active a {
    padding: .5rem 0;
}

/*───────────────────────────────────────────────
  GLOBAL HOVER CONSISTENCY
───────────────────────────────────────────────*/

/* 1.  Buttons  ------------------------------------------------------------- */
.btn,
.btn-primary,
.btn-trial,
.btn-secondary {
    transition: background 0.25s ease, color 0.25s ease, border-color 0.25s ease;
}

.btn:hover,
.btn:focus,
.btn-primary:hover,
.btn-trial:hover {
    background: var(--accent-color);
    border-color: var(--accent-color);
    color: var(--white);
}

.btn-secondary:hover,
.btn-secondary:focus {
    color: var(--accent-color);
    text-decoration: underline;
}

/* 2.  Card-like blocks  ---------------------------------------------------- */
/* Any element that should highlight accent on hover.
   Feel free to add classes if you introduce new cards later. */
.feature-card,
.service-card,
.card {
    transition: transform 0.3s ease, background 0.3s ease, color 0.3s ease;
}

.feature-card:hover,
.service-card:hover,
.card:hover {
    background: var(--accent-color);
    color: var(--white);
}

/* Optional: ensure all links & headings inside cards inherit white on hover */
.feature-card:hover a,
.service-card:hover a,
.card:hover a,
.feature-card:hover h3,
.service-card:hover h3,
.card:hover h3 {
    color: var(--white);
}

/* 3.  Icon hover inside cards (if needed) ---------------------------------- */
.feature-card:hover .icon,
.service-card:hover .icon,
.card:hover .icon {
    background: rgba(255, 255, 255, 0.25);
    /* lighten icon circle */
    color: var(--white);
}

/*───────────────────────────────────────────────
  UNIFIED CARD SYSTEM
───────────────────────────────────────────────*/
.card-unified,
.feature-card,
.service-card,
.card {
    font-family: "Montserrat", sans-serif;
    background: var(--white);
    border-radius: 1rem;
    padding: 2rem;
    margin-bottom: 2rem;
    box-shadow: 0 4px 8px rgba(0, 0, 0, .1);
    transition: transform 0.3s ease, background 0.3s ease, color 0.3s ease;
    min-height: 300px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.card-unified h3,
.card-unified h4,
.card-unified .card-title {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--grey-1);
    margin-bottom: 1rem;
}

.card-unified p,
.card-unified .card-text {
    color: #4a4a4a;
    font-size: 1rem;
    line-height: 1.5;
}

.card-unified .icon {
    width: 50px;
    height: 50px;
    background: rgba(210, 33, 30, 0.1);
    color: var(--accent-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1rem;
    transition: background 0.3s ease, color 0.3s ease;
}

/* Hover effect: Accent takeover */
.card-unified:hover,
.feature-card:hover,
.service-card:hover,
.card:hover {
    background: var(--accent-color);
    color: var(--white);
    transform: translateY(-6px);
}

.card-unified:hover h3,
.card-unified:hover h4,
.card-unified:hover .card-title,
.card-unified:hover p,
.card-unified:hover .card-text {
    color: var(--white);
}

.card-unified:hover .icon,
.feature-card:hover .icon,
.service-card:hover .icon,
.card:hover .icon {
    background: rgba(255, 255, 255, 0.25);
    color: var(--white);
}

#toast-container {
    position: fixed;
    top: 2rem;
    right: 2rem;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.toast {
    padding: 1rem 1.5rem;
    border-radius: 6px;
    font-size: 0.95rem;
    font-weight: 500;
    color: #fff;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    opacity: 0;
    transform: translateY(-10px);
    animation: fadeInSlideDown 0.3s forwards;
    max-width: 300px;
}

.toast.success {
    background-color: #28a745;
}

/* Green */
.toast.error {
    background-color: #dc3545;
}

/* Red */
.toast.info {
    background-color: #007bff;
}

/* Blue */
.toast.warning {
    background-color: #ffc107;
    color: #111;
}

/* Yellow */

@keyframes fadeInSlideDown {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}