:root {
    --primary-color: #fc5a34;
    /* Bright orange from the design */
    --bs-primary: #fc5a34;
    --bs-primary-rgb: 252, 90, 52;

    --dark-color: #1a1a1a;
    --light-pink: #fff5f5;
    /* Very light pink background for some sections */
    --light-danger: #ffeeeb;
    /* Light orange/red for badges */
    --body-bg: #ffffff;
    --body-text: #4a4a4a;
    --section-bg: #fff9f8;
    --card-bg: #ffffff;
    --panel-bg: #ffffff;
    --line-color: rgba(0, 0, 0, 0.08);
    --shadow-soft: 0 10px 30px rgba(15, 23, 42, 0.08);
    --shadow-strong: 0 18px 45px rgba(15, 23, 42, 0.14);
    --heading-font: 'Poppins', sans-serif;
    --body-font: 'Inter', sans-serif;
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    max-width: 100%;
    overflow-x: clip;
    scroll-behavior: smooth;
    scrollbar-width: thin;
    scrollbar-color: var(--primary-color) rgba(252, 90, 52, 0.12);
}

body {
    max-width: 100%;
    overflow-x: clip;
    margin: 0;
    padding: 0;
    position: relative;
    font-family: var(--body-font);
    background-color: var(--body-bg);
    color: var(--body-text);
    -webkit-font-smoothing: antialiased;
}

::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: rgba(252, 90, 52, 0.08);
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, var(--primary-color), #e64a27);
    border-radius: 999px;
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(180deg, #ff8a66, #d94b2d);
}

/* Fluid Responsive Headings */
h1,
h2,
h3,
h4,
h5,
h6,
.navbar-brand {
    font-family: var(--heading-font);
    color: var(--dark-color);
    line-height: 1.25;
}

.display-4 {
    font-size: clamp(2.1rem, 5.5vw, 3.5rem);
    line-height: 1.18;
}

.display-5 {
    font-size: clamp(1.85rem, 4.5vw, 2.75rem);
    line-height: 1.2;
}

.display-6 {
    font-size: clamp(1.6rem, 3.8vw, 2.25rem);
    line-height: 1.25;
}

.text-primary {
    color: var(--primary-color) !important;
}

.bg-primary {
    background-color: var(--primary-color) !important;
}

.btn-primary {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    color: #ffffff;
    transition: all 0.25s ease-in-out;
}

.btn-primary:hover,
.btn-primary:focus,
.btn-primary:active {
    background-color: #e64a27 !important;
    border-color: #e64a27 !important;
    color: #ffffff !important;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(252, 90, 52, 0.28);
}

/* Button Contrast & Hover Fixes (Eliminates White-on-White / Invisible Text) */
.btn-outline-dark {
    color: var(--dark-color) !important;
    border-color: var(--dark-color) !important;
    background-color: transparent;
    transition: all 0.25s ease-in-out;
}

.btn-outline-dark.bg-white {
    background-color: #ffffff !important;
    color: var(--dark-color) !important;
}

.btn-outline-dark:hover,
.btn-outline-dark:focus,
.btn-outline-dark:active,
.btn-outline-dark.bg-white:hover,
.btn-outline-dark.bg-white:focus,
.btn-outline-dark.bg-white:active {
    background-color: var(--dark-color) !important;
    border-color: var(--dark-color) !important;
    color: #ffffff !important;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.18) !important;
}

.btn-outline-primary {
    color: var(--primary-color) !important;
    border-color: var(--primary-color) !important;
    background-color: transparent;
    transition: all 0.25s ease-in-out;
}

.btn-outline-primary.bg-white {
    background-color: #ffffff !important;
    color: var(--primary-color) !important;
}

.btn-outline-primary:hover,
.btn-outline-primary:focus,
.btn-outline-primary:active,
.btn-outline-primary.bg-white:hover,
.btn-outline-primary.bg-white:focus,
.btn-outline-primary.bg-white:active {
    background-color: var(--primary-color) !important;
    border-color: var(--primary-color) !important;
    color: #ffffff !important;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(252, 90, 52, 0.28) !important;
}

.btn-white,
.btn-light {
    background-color: #ffffff !important;
    color: var(--dark-color) !important;
    border: 1px solid rgba(0, 0, 0, 0.12);
    transition: all 0.25s ease-in-out;
}

.btn-white:hover,
.btn-white:focus,
.btn-light:hover,
.btn-light:focus {
    background-color: var(--primary-color) !important;
    border-color: var(--primary-color) !important;
    color: #ffffff !important;
    transform: translateY(-2px);
}

.bg-light-danger {
    background-color: var(--light-danger);
}

.bg-light-pink {
    background-color: var(--light-pink);
}

.letter-spacing-1 {
    letter-spacing: 1.5px;
}

/* Offcanvas Mobile Menu */
.offcanvas {
    background-color: rgba(255, 255, 255, 0.98);
    border: none !important;
    box-shadow: -12px 0 32px rgba(15, 23, 42, 0.12);
    max-width: 320px;
}

.offcanvas-header,
.offcanvas-body {
    background-color: transparent;
}

.offcanvas-backdrop {
    background-color: rgba(15, 23, 42, 0.5);
    backdrop-filter: blur(4px);
}

.offcanvas-body .nav-link {
    padding: 0.65rem 0;
    font-size: 1.05rem;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

/* Site Header Sticky Styles */
.site-header {
    position: sticky;
    top: 0;
    z-index: 1030;
    width: 100%;
    background-color: var(--panel-bg);
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.site-header.header-scrolled {
    box-shadow: 0 6px 24px rgba(15, 23, 42, 0.08) !important;
}

.site-header.header-scrolled .navbar {
    padding-top: 0.5rem !important;
    padding-bottom: 0.5rem !important;
}

/* Top Bar */
.top-bar {
    background-color: #2a2a2a;
    font-size: 0.88rem;
    transition: all 0.3s ease;
}

.top-bar a {
    transition: opacity 0.2s ease;
}

.top-bar a:hover {
    opacity: 0.8;
}

/* Navbar */
.navbar {
    background-color: var(--panel-bg) !important;
    transition: padding 0.3s ease, background-color 0.3s ease;
}

.navbar-nav .nav-link {
    color: var(--dark-color);
    transition: color 0.2s ease;
}

.navbar-nav .nav-link:hover,
.navbar-nav .nav-link.active {
    color: var(--primary-color) !important;
}

/* Navbar Dropdown Menu Styles */
.navbar .nav-item.dropdown {
    position: relative;
}

.navbar .dropdown-menu {
    border: 1px solid rgba(0, 0, 0, 0.08) !important;
    box-shadow: 0 16px 36px rgba(15, 23, 42, 0.12) !important;
    min-width: 290px;
    padding: 0.6rem;
    border-radius: 1.1rem !important;
    background: #ffffff;
}

/* Invisible hover bridge to eliminate any gap between nav-link and dropdown-menu */
.navbar .dropdown-menu::before {
    content: '';
    position: absolute;
    top: -16px;
    left: 0;
    right: 0;
    height: 18px;
    background: transparent;
}

.navbar .dropdown-item {
    padding: 0.65rem 0.95rem;
    border-radius: 0.75rem;
    transition: all 0.2s ease;
    color: var(--dark-color);
}

.navbar .dropdown-item:hover,
.navbar .dropdown-item:focus {
    background-color: var(--light-pink);
    color: var(--primary-color);
    transform: translateX(4px);
}

.navbar .dropdown-item.active {
    background-color: var(--light-danger);
    color: var(--primary-color) !important;
    font-weight: 600;
}

.navbar .dropdown-icon-box {
    width: 38px;
    height: 38px;
    min-width: 38px;
    background-color: var(--light-danger);
    color: var(--primary-color);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    border-radius: 50%;
    transition: transform 0.2s ease;
}

.navbar .dropdown-item:hover .dropdown-icon-box {
    transform: scale(1.1);
}

@media (min-width: 992px) {
    .navbar .dropdown-menu {
        margin-top: 0 !important;
        transform-origin: top center;
    }

    .navbar .dropdown:hover > .dropdown-menu,
    .navbar .dropdown-menu:hover,
    .navbar .dropdown-menu.show {
        display: block !important;
        animation: navDropdownFadeIn 0.2s cubic-bezier(0.16, 1, 0.3, 1) forwards;
    }
}

@keyframes navDropdownFadeIn {
    0% {
        opacity: 0;
        transform: translateY(8px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

.navbar-collapse {
    width: auto;
}

.navbar-toggler {
    padding: 0.25rem 0.5rem;
    border: none;
    background: transparent;
}

.navbar-toggler:focus {
    box-shadow: none;
    outline: none;
}

@media (min-width: 992px) {
    .navbar-collapse {
        display: flex !important;
    }
}

@media (max-width: 991.98px) {
    .top-bar .container {
        justify-content: center;
        align-items: center;
        text-align: center;
        gap: 0.4rem;
    }

    .contact-info {
        flex-wrap: wrap;
        justify-content: center;
        gap: 1rem !important;
    }

    .social-icons {
        justify-content: center;
    }

    .navbar-brand {
        font-size: 1.5rem !important;
    }
}

@media (max-width: 575.98px) {
    .top-bar {
        font-size: 0.76rem;
        padding-top: 0.35rem !important;
        padding-bottom: 0.35rem !important;
    }

    .contact-info {
        gap: 0.6rem !important;
        justify-content: space-between;
    }

    .navbar {
        padding-top: 0.65rem !important;
        padding-bottom: 0.65rem !important;
    }

    .navbar-brand {
        font-size: 1.35rem !important;
    }

    .social-icons {
        display: none !important;
    }

    .contact-info {
        flex: 1;
    }
}

/* Hero Section */
.hero-section {
    background-color: var(--section-bg);
}

.hero-bg-shape {
    position: absolute;
    top: -50px;
    right: -50px;
    width: 100%;
    height: 120%;
    background: radial-gradient(circle, var(--light-pink) 0%, transparent 70%);
    z-index: 0;
    pointer-events: none;
}

.hero-img-col {
    text-align: center;
}

.hero-img-wrapper {
    display: inline-block;
    max-width: 100%;
}

.hero-main-img {
    max-height: 480px;
    width: auto;
    max-width: 100%;
    object-fit: cover;
    border-radius: 28px;
}

.floating-badge {
    position: absolute;
    z-index: 2;
    transition: transform 0.3s ease;
}

.badge-1 {
    bottom: 12%;
    left: -6%;
    min-width: 220px;
}

.badge-2 {
    top: 10%;
    right: -4%;
}

.total-project-image {
    width: 185px;
    height: auto;
    filter: drop-shadow(0 15px 30px rgba(15, 23, 42, 0.12));
}

@media (max-width: 991.98px) {
    .hero-main-img {
        max-height: 380px;
    }

    .badge-1 {
        left: 2%;
        bottom: 5%;
        min-width: 190px;
    }

    .badge-2 {
        right: 2%;
        top: 2%;
    }

    .total-project-image {
        width: 150px;
    }
}

@media (max-width: 575.98px) {
    .hero-section {
        padding-top: 2rem !important;
        padding-bottom: 2.5rem !important;
    }

    .hero-main-img {
        max-height: 300px;
        border-radius: 20px;
    }

    .badge-1 {
        position: relative;
        left: 0 !important;
        bottom: 0 !important;
        margin: 1rem auto 0;
        min-width: auto;
        max-width: 280px;
    }

    .badge-2 {
        position: relative;
        right: 0 !important;
        top: 0 !important;
        margin: 0.75rem auto 0;
        display: block;
    }

    .total-project-image {
        width: 140px;
        margin: 0 auto;
    }
}

/* Grayscale Clients */
.grayscale {
    filter: grayscale(100%);
    transition: filter 0.3s ease, opacity 0.3s ease;
}

.grayscale:hover {
    filter: grayscale(0%);
    opacity: 1 !important;
}

.client-logo {
    max-height: 38px;
    object-fit: contain;
    transition: transform 0.2s ease;
}

.client-logo:hover {
    transform: scale(1.05);
}

@media (max-width: 575.98px) {
    .client-logo {
        max-height: 28px;
    }
}

/* Vector Shapes */
.bg-vector-shape {
    position: absolute;
    pointer-events: none;
    z-index: 0;
    user-select: none;
    max-width: 45vw;
}

.vector-features-left {
    top: -20px;
    left: 0;
    width: 230px;
}

.vector-about-right {
    top: 0;
    right: 0;
    width: 260px;
}

.vector-news-right {
    top: 0;
    right: 0;
    width: 180px;
    transform: scaleX(-1);
}

@media (max-width: 991.98px) {
    .vector-features-left {
        width: 120px;
        top: -10px;
    }

    .vector-about-right {
        width: 130px;
    }

    .vector-news-right {
        width: 90px;
    }
}

@media (max-width: 575.98px) {

    .vector-features-left,
    .vector-about-right,
    .vector-news-right {
        opacity: 0.35;
        width: 70px;
    }
}

/* Feature Cards */
.feature-card {
    background: var(--card-bg);
    border-radius: 20px;
    border: 1px solid var(--line-color);
    box-shadow: var(--shadow-soft);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    height: 100%;
}

.feature-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-strong);
}

/* About Section */
.about-img-wrapper {
    position: relative;
}

.circle-decoration {
    pointer-events: none;
}

@media (max-width: 991.98px) {
    .about-img {
        height: 380px !important;
    }
}

@media (max-width: 575.98px) {
    .about-img {
        height: 280px !important;
        border-top-left-radius: 50px !important;
    }
}

/* Services Planet Constellation */
.services-planet-layout {
    display: grid;
    grid-template-columns: 1.15fr 0.85fr;
    gap: 2.5rem;
    align-items: center;
}

.services-planet-panel {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 480px;
    position: relative;
}

.planet-viewport {
    --planet-scale: 1;
    position: relative;
    width: calc(460px * var(--planet-scale));
    height: calc(460px * var(--planet-scale));
    max-width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 1.25rem auto;
    overflow: visible;
    transition: width 0.3s ease, height 0.3s ease;
}

.planet-stage {
    position: absolute;
    width: 460px;
    height: 460px;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(var(--planet-scale));
    transform-origin: center center;
    transition: transform 0.3s ease;
}

.planet-stage::before {
    content: "";
    position: absolute;
    inset: 8%;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(252, 90, 52, 0.12), rgba(252, 90, 52, 0.02) 55%, transparent 70%);
    z-index: 0;
    pointer-events: none;
}

/* Orbit Path Rings */
.orbit-path {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    border-radius: 50%;
    pointer-events: none;
    z-index: 1;
}

.orbit-path-1 {
    width: 190px;
    height: 190px;
    border: 2.5px dashed rgba(252, 90, 52, 0.55);
}

.orbit-path-2 {
    width: 310px;
    height: 310px;
    border: 2px dashed rgba(252, 90, 52, 0.4);
}

.orbit-path-3 {
    width: 420px;
    height: 420px;
    border: 2px dashed rgba(15, 23, 42, 0.28);
}

/* Central Core Sun */
.planet-core {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 104px;
    height: 104px;
    border-radius: 50%;
    background: linear-gradient(135deg, #fcd34d, #f59e0b);
    color: #fff;
    border: 6px solid #ffffff;
    box-shadow: 0 0 0 4px rgba(245, 158, 11, 0.3), 0 15px 35px rgba(245, 158, 11, 0.35);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    z-index: 4;
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.planet-core:hover,
.planet-core.active {
    transform: translate(-50%, -50%) scale(1.06);
    box-shadow: 0 0 0 6px rgba(245, 158, 11, 0.4), 0 20px 45px rgba(245, 158, 11, 0.45);
}

/* Fixed Satellite Planets */
.fixed-planet {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(calc(-50% + var(--pos-x)), calc(-50% + var(--pos-y)));
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 52px;
    height: 52px;
    border: 4px solid #ffffff;
    border-radius: 50%;
    background: var(--node-bg, var(--primary-color));
    color: var(--node-color, #fff);
    box-shadow: 0 10px 25px rgba(15, 23, 42, 0.2), 0 0 0 2px rgba(15, 23, 42, 0.12);
    cursor: pointer;
    z-index: 3;
    animation: planet-gentle-float 3.5s ease-in-out infinite;
    animation-delay: var(--float-delay, 0s);
    transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.orbit-icon-inner {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    font-size: 1.25rem;
}

.planet-label-badge {
    position: absolute;
    bottom: -12px;
    left: 50%;
    transform: translate(-50%, 100%);
    white-space: nowrap;
    font-size: 0.76rem;
    font-weight: 600;
    color: var(--dark-color);
    background: #ffffff;
    border: 1.5px solid rgba(15, 23, 42, 0.16);
    border-radius: 999px;
    padding: 0.28rem 0.75rem;
    box-shadow: 0 4px 14px rgba(15, 23, 42, 0.12);
    pointer-events: none;
    transition: all 0.25s ease;
}

.node-1 .planet-label-badge,
.node-2 .planet-label-badge {
    top: -12px;
    bottom: auto;
    transform: translate(-50%, -100%);
}

.node-3 .planet-label-badge,
.node-4 .planet-label-badge {
    bottom: -12px;
    top: auto;
    transform: translate(-50%, 100%);
}

.fixed-planet:hover,
.fixed-planet.active {
    border-color: #ffffff;
    box-shadow: 0 0 0 6px rgba(252, 90, 52, 0.35), 0 16px 36px rgba(252, 90, 52, 0.4);
    transform: translate(calc(-50% + var(--pos-x)), calc(-50% + var(--pos-y))) scale(1.12);
    animation-play-state: paused;
}

.fixed-planet::after {
    content: "";
    position: absolute;
    inset: -8px;
    border-radius: 50%;
}

.fixed-planet.active .planet-label-badge {
    background: var(--primary-color);
    color: #fff;
    border-color: var(--primary-color);
    box-shadow: 0 4px 14px rgba(252, 90, 52, 0.4);
}

@keyframes planet-gentle-float {

    0%,
    100% {
        transform: translate(calc(-50% + var(--pos-x)), calc(-50% + var(--pos-y)));
    }

    50% {
        transform: translate(calc(-50% + var(--pos-x)), calc(-50% + var(--pos-y) - 6px));
    }
}

.service-detail-card {
    border: 1px solid rgba(15, 23, 42, 0.06);
    transition: all 0.3s ease;
}

.service-points li {
    display: flex;
    align-items: center;
    margin-bottom: 0.8rem;
    color: var(--dark-color);
}

/* Service Mobile Navigation Chips */
.service-mobile-nav {
    display: none;
}

/* Responsive Constellation - Preserves the exact same orbital design across all screens */
@media (max-width: 1199.98px) {
    .planet-viewport {
        --planet-scale: 0.94;
    }
}

@media (max-width: 991.98px) {
    .services-planet-layout {
        grid-template-columns: 1fr;
        gap: 2.25rem;
    }

    .services-planet-panel {
        min-height: auto;
        padding: 1.5rem 0 0.5rem 0;
        width: 100%;
        overflow: visible;
    }

    .planet-viewport {
        --planet-scale: 0.95;
    }
}

@media (max-width: 767.98px) {
    .services-planet-panel {
        padding: 1rem 0 0.5rem 0;
    }

    .planet-viewport {
        --planet-scale: 0.84;
    }
}

@media (max-width: 575.98px) {
    .services-planet-panel {
        padding: 0.5rem 0 0.25rem 0;
    }

    /* .planet-viewport {
        --planet-scale: clamp(0.58, calc((100vw - 40px) / 490), 0.72);
        margin: 1rem auto;
    } */

    .planet-label-badge {
        font-size: 0.82rem;
        font-weight: 700;
        padding: 0.3rem 0.75rem;
    }

    .service-detail-card {
        padding: 1.25rem !important;
        border-radius: 16px !important;
    }
}

@media (max-width: 380px) {
    .planet-viewport {
        --planet-scale: 0.60;
    }
}

@media (max-width: 340px) {
    .planet-viewport {
        --planet-scale: 0.54;
    }
}

/* Portfolio Tabs & Filter */
.portfolio-filter-scroll {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    padding-bottom: 0.5rem;
}

.portfolio-filter-scroll::-webkit-scrollbar {
    display: none;
}

.nav-pills .nav-link {
    color: var(--dark-color);
    font-weight: 500;
    font-size: 0.92rem;
    white-space: nowrap;
    transition: all 0.25s ease;
    border: 1px solid transparent;
}

.nav-pills .nav-link:hover {
    background-color: var(--light-danger) !important;
    color: var(--primary-color) !important;
}

.nav-pills .nav-link.active {
    background-color: var(--primary-color) !important;
    color: #ffffff !important;
    box-shadow: 0 6px 18px rgba(252, 90, 52, 0.28);
}

.portfolio-col {
    transition: all 0.35s ease;
}

@keyframes portfolioFadeIn {
    from {
        opacity: 0;
        transform: scale(0.94);
    }

    to {
        opacity: 1;
        transform: scale(1);
    }
}

.portfolio-item {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.portfolio-item:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-strong) !important;
}

.nav-pills .nav-link.active,
.nav-pills .show>.nav-link {
    background-color: var(--primary-color) !important;
    color: white !important;
    box-shadow: 0 4px 14px rgba(252, 90, 52, 0.3);
}

.portfolio-item {
    border: 1px solid var(--line-color);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.portfolio-item:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-strong) !important;
}

.portfolio-item img {
    border-radius: 12px;
    object-fit: cover;
}

.portfolio-img-single {
    aspect-ratio: 4 / 3;
    width: 100%;
}

.portfolio-img-half {
    aspect-ratio: 16 / 9;
    width: 100%;
}

/* Team Cards */
.team-card {
    transition: transform 0.3s ease;
    border: 1px solid var(--line-color);
}

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

.team-img {
    height: 350px;
    width: 100%;
    object-fit: cover;
}

@media (max-width: 991.98px) {
    .team-img {
        height: 270px;
    }
}

@media (max-width: 575.98px) {
    .team-img {
        height: 210px;
    }
}

/* Review Columns Masonry */
.review-columns {
    column-count: 2;
    column-gap: 1.5rem;
}

.review-columns .card {
    display: inline-block;
    width: 100%;
    margin-bottom: 1.5rem;
    break-inside: avoid;
    border: 1px solid var(--line-color);
    background: var(--card-bg);
}

@media (max-width: 767.98px) {
    .review-columns {
        column-count: 1;
    }

    .review-columns .card {
        margin-bottom: 1rem;
    }
}

/* Footer */
.footer-heading {
    position: relative;
    padding-bottom: 0.6rem;
}

.footer-heading::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 36px;
    height: 2.5px;
    background-color: var(--primary-color);
    border-radius: 2px;
}

.footer-links a {
    transition: all 0.2s ease;
}

.footer-links a:hover {
    color: var(--primary-color) !important;
    padding-left: 4px;
}

.social-icons-footer a {
    transition: transform 0.2s ease, background-color 0.2s ease;
}

.social-icons-footer a:hover {
    transform: translateY(-2px);
    background-color: var(--primary-color) !important;
    color: #fff !important;
}

/* Touch Friendly Utilities */
.btn {
    touch-action: manipulation;
}

input,
select,
textarea,
button {
    font-family: inherit;
}

/* ===================================================
   About Us Page Styles (Refined to match reference)
   =================================================== */

/* About Hero Visual & Organic Shape */
.about-hero-container {
    position: relative;
    max-width: 960px;
    margin: 0 auto;
}

.about-hero-glow {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 90%;
    height: 90%;
    background: radial-gradient(ellipse at center, rgba(245, 158, 11, 0.28) 0%, rgba(252, 90, 52, 0.15) 55%, transparent 75%);
    filter: blur(35px);
    z-index: 0;
    pointer-events: none;
}

.about-hero-frame {
    position: relative;
    z-index: 1;
    display: inline-block;
    width: 100%;
    max-width: 820px;
    border-radius: 40px 140px 40px 140px;
    overflow: hidden;
    box-shadow: 0 20px 50px rgba(15, 23, 42, 0.12);
    border: 6px solid #ffffff;
    background: #ffffff;
    transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.about-hero-frame:hover {
    transform: translateY(-6px);
    box-shadow: 0 26px 65px rgba(252, 90, 52, 0.18);
}

.about-hero-img {
    width: 100%;
    height: 420px;
    object-fit: cover;
    display: block;
}

@media (max-width: 767.98px) {
    .about-hero-frame {
        border-radius: 30px 70px 30px 70px;
        border-width: 4px;
    }

    .about-hero-img {
        height: 260px;
    }
}

/* Decorative Floating Rings on About Hero */
.deco-element {
    position: absolute;
    z-index: 2;
    pointer-events: none;
    animation: floatSlow 6s ease-in-out infinite;
}

.deco-ring-1 {
    top: 15%;
    left: 4%;
    width: 38px;
    height: 38px;
    border: 3.5px solid rgba(245, 158, 11, 0.8);
    border-radius: 50%;
}

.deco-ring-2 {
    bottom: 20%;
    right: 5%;
    width: 46px;
    height: 46px;
    border: 4px solid rgba(252, 90, 52, 0.65);
    border-radius: 50%;
    animation-delay: -3s;
}

.deco-sphere-1 {
    top: 25%;
    right: 8%;
    width: 18px;
    height: 18px;
    background: linear-gradient(135deg, #1e293b, #0f172a);
    border-radius: 50%;
    box-shadow: 0 6px 16px rgba(15, 23, 42, 0.3);
    animation-delay: -1.5s;
}

@keyframes floatSlow {
    0%, 100% {
        transform: translateY(0px) rotate(0deg);
    }
    50% {
        transform: translateY(-12px) rotate(10deg);
    }
}

/* Our Story Milestone Cards */
.story-stat-card {
    background: #ffffff;
    border: 1px solid var(--line-color);
    border-radius: 20px;
    padding: 1.5rem;
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

.story-stat-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-soft);
    border-color: rgba(252, 90, 52, 0.3);
}

.story-stat-num {
    font-size: clamp(1.8rem, 3.2vw, 2.4rem);
    font-weight: 700;
    font-family: var(--heading-font);
    color: var(--primary-color);
    line-height: 1.1;
}

/* What Makes Us Special - Staggered Process Steps */
.special-step-card {
    position: relative;
    padding: 1.5rem;
    transition: transform 0.3s ease;
}

.special-step-card:hover {
    transform: translateY(-4px);
}

.step-num-display {
    font-size: clamp(3.2rem, 5.5vw, 4.8rem);
    font-weight: 800;
    font-family: var(--heading-font);
    line-height: 0.95;
    color: #e2e8f0;
    transition: color 0.3s ease, transform 0.3s ease;
    user-select: none;
    flex-shrink: 0;
}

.special-step-card:hover .step-num-display {
    color: rgba(252, 90, 52, 0.35);
    transform: scale(1.05);
}

/* Meet Our Legends - Team Cards */
.legend-card {
    position: relative;
    border-radius: 22px;
    overflow: hidden;
    background: #f8fafc;
    border: 1px solid var(--line-color);
    box-shadow: 0 8px 24px rgba(15, 23, 42, 0.05);
    transition: transform 0.35s cubic-bezier(0.165, 0.84, 0.44, 1), box-shadow 0.35s ease;
}

.legend-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-strong);
}

.legend-img {
    height: 380px;
    width: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.legend-card:hover .legend-img {
    transform: scale(1.06);
}

.legend-info-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 1.25rem 1rem;
    background: linear-gradient(to top, rgba(15, 23, 42, 0.85) 0%, rgba(15, 23, 42, 0.4) 60%, transparent 100%);
    color: #ffffff;
    text-align: center;
}

@media (max-width: 991.98px) {
    .legend-img {
        height: 290px;
    }
}

@media (max-width: 575.98px) {
    .legend-img {
        height: 230px;
    }
}

/* ===================================================
   Utility Classes replacing inline CSS
   =================================================== */

.max-w-600 {
    max-width: 600px;
}

.max-w-620 {
    max-width: 620px;
}

.max-w-660 {
    max-width: 660px;
}

.max-w-750 {
    max-width: 750px;
}

.max-w-760 {
    max-width: 760px;
}

.max-w-780 {
    max-width: 780px;
}

.client-logo-sm {
    max-height: 26px;
}

.hero-badge-icon {
    width: 45px;
    height: 45px;
    flex-shrink: 0;
}

.hero-badge-icon img {
    width: 25px;
    height: 25px;
}

.badge-stars {
    font-size: 10px;
}

.circle-decoration {
    width: 40px;
    height: 40px;
    top: -10px;
    left: 10px;
}

.about-img {
    height: 480px;
    border-top-left-radius: 80px !important;
}

.signature-font {
    font-family: cursive;
    font-size: 1.4rem;
    transform: rotate(-5deg);
}

.blog-card-img {
    height: 190px;
}

.review-avatar-placeholder {
    width: 38px;
    height: 38px;
    opacity: 0.2;
}

.leader-social-btn {
    width: 36px;
    height: 36px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.legend-role {
    font-size: 11px;
}

/* Service Planet Nodes (4 Services Constellation) */
.service-orbit-item.node-1 {
    --pos-x: -140px;
    --pos-y: -95px;
    --node-bg: linear-gradient(135deg, #1e293b, #0f172a);
    --node-color: #fff;
    --float-delay: 0s;
}

.service-orbit-item.node-2 {
    --pos-x: 140px;
    --pos-y: -95px;
    --node-bg: linear-gradient(135deg, #0284c7, #0369a1);
    --node-color: #fff;
    --float-delay: 0.8s;
}

.service-orbit-item.node-3 {
    --pos-x: 140px;
    --pos-y: 105px;
    --node-bg: linear-gradient(135deg, #fc5a34, #e64a27);
    --node-color: #fff;
    --float-delay: 1.6s;
}

.service-orbit-item.node-4 {
    --pos-x: -140px;
    --pos-y: 105px;
    --node-bg: linear-gradient(135deg, #8b5cf6, #6d28d9);
    --node-color: #fff;
    --float-delay: 2.4s;
}

/* Footer Bottom Styles */
.footer-bottom {
    background-color: #1d1d1d;
    color: #a0a0a0;
}

.footer-bottom a {
    color: #a0a0a0;
    text-decoration: none;
    transition: color 0.2s ease;
}

.footer-bottom a:hover {
    color: #ffffff;
}

.social-icons-footer a {
    width: 36px;
    height: 36px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

/* ===================================================
   Contact Us Page Styles
   =================================================== */

.contact-info-card {
    background: #ffffff;
    border: 1px solid var(--line-color);
    border-radius: 20px;
    padding: 2rem 1.5rem;
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

.contact-info-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-soft);
    border-color: rgba(252, 90, 52, 0.3);
}

.contact-card-icon {
    width: 58px;
    height: 58px;
    border-radius: 16px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    background: var(--light-danger);
    color: var(--primary-color);
    margin-bottom: 1.25rem;
    transition: transform 0.3s ease, background-color 0.3s ease, color 0.3s ease;
}

.contact-info-card:hover .contact-card-icon {
    background: var(--primary-color);
    color: #ffffff;
    transform: scale(1.08) rotate(3deg);
}

.contact-form-card {
    background: #ffffff;
    border: 1px solid var(--line-color);
    border-radius: 24px;
    padding: 2.5rem;
    box-shadow: 0 12px 35px rgba(15, 23, 42, 0.06);
}

@media (max-width: 575.98px) {
    .contact-form-card {
        padding: 1.5rem 1.25rem;
    }
}

.contact-form-card .form-control,
.contact-form-card .form-select {
    padding: 0.75rem 1.2rem;
    border-radius: 999px;
    border: 1px solid rgba(0, 0, 0, 0.12);
    font-size: 0.95rem;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.contact-form-card textarea.form-control {
    border-radius: 20px;
}

.contact-form-card .form-control:focus,
.contact-form-card .form-select:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.25rem rgba(252, 90, 52, 0.18);
}

.service-pill-checkbox {
    display: none;
}

.service-pill-label {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    border-radius: 999px;
    background: #f8fafc;
    border: 1px solid var(--line-color);
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--body-text);
    cursor: pointer;
    transition: all 0.2s ease;
    user-select: none;
}

.service-pill-checkbox:checked + .service-pill-label {
    background: var(--primary-color);
    border-color: var(--primary-color);
    color: #ffffff;
    box-shadow: 0 4px 12px rgba(252, 90, 52, 0.25);
}

.contact-benefits-card {
    background: linear-gradient(145deg, #ffffff, #fffaf9);
    border: 1px solid rgba(252, 90, 52, 0.18);
    border-radius: 24px;
    padding: 2.5rem 2rem;
    box-shadow: 0 12px 35px rgba(15, 23, 42, 0.05);
}

.benefit-check-icon {
    width: 32px;
    height: 32px;
    flex-shrink: 0;
    border-radius: 50%;
    background: rgba(34, 197, 94, 0.12);
    color: #16a34a;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.95rem;
}

.contact-trust-badge {
    background: #ffffff;
    border: 1px solid var(--line-color);
    border-radius: 18px;
    padding: 1.25rem 1.5rem;
    box-shadow: 0 8px 20px rgba(15, 23, 42, 0.04);
}

.contact-map-wrapper {
    position: relative;
    border-radius: 24px;
    overflow: hidden;
    border: 1px solid var(--line-color);
    box-shadow: 0 12px 35px rgba(15, 23, 42, 0.06);
    height: 380px;
}

.contact-map-iframe {
    width: 100%;
    height: 100%;
    border: 0;
}

/* FAQ Accordion Styling */
.faq-accordion .accordion-item {
    border: 1px solid var(--line-color);
    border-radius: 16px !important;
    margin-bottom: 1rem;
    overflow: hidden;
    background: #ffffff;
    box-shadow: 0 4px 14px rgba(15, 23, 42, 0.03);
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.faq-accordion .accordion-item:hover {
    border-color: rgba(252, 90, 52, 0.3);
    box-shadow: 0 6px 18px rgba(15, 23, 42, 0.06);
}

.faq-accordion .accordion-button {
    font-weight: 600;
    font-size: 1.05rem;
    padding: 1.2rem 1.5rem;
    background: #ffffff;
    color: var(--dark-color);
    border-radius: 16px !important;
}

.faq-accordion .accordion-button:not(.collapsed) {
    background-color: var(--light-pink);
    color: var(--primary-color);
    box-shadow: none;
}

.faq-accordion .accordion-button:focus {
    box-shadow: none;
    border-color: transparent;
}

.faq-accordion .accordion-button::after {
    background-size: 1rem;
    transition: transform 0.3s ease;
}

.faq-accordion .accordion-body {
    padding: 1rem 1.5rem 1.4rem;
    color: #64748b;
    font-size: 0.95rem;
    line-height: 1.6;
}

/* Service Detail Page Styles */
.service-feature-card {
    background: #ffffff;
    border-radius: 1.25rem;
    border: 1px solid rgba(0, 0, 0, 0.06);
    padding: 2rem 1.75rem;
    transition: all 0.3s ease;
    height: 100%;
}

.service-feature-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 16px 36px rgba(15, 23, 42, 0.08);
    border-color: rgba(252, 90, 52, 0.25);
}

.service-feature-icon {
    width: 58px;
    height: 58px;
    border-radius: 16px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.6rem;
    margin-bottom: 1.25rem;
    background-color: var(--light-danger);
    color: var(--primary-color);
    transition: transform 0.3s ease;
}

.service-feature-card:hover .service-feature-icon {
    transform: scale(1.1) rotate(4deg);
}

.process-step-card {
    background: #ffffff;
    border: 1px solid rgba(0, 0, 0, 0.06);
    border-radius: 1.25rem;
    padding: 2rem 1.5rem;
    position: relative;
    height: 100%;
    transition: all 0.3s ease;
}

.process-step-card:hover {
    transform: translateY(-4px);
    border-color: var(--primary-color);
    box-shadow: 0 12px 30px rgba(252, 90, 52, 0.1);
}

.process-step-num {
    font-size: 2.2rem;
    font-weight: 800;
    color: rgba(252, 90, 52, 0.18);
    line-height: 1;
    margin-bottom: 0.75rem;
    font-family: var(--heading-font);
}

.tech-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.55rem 1.2rem;
    background: #ffffff;
    border: 1px solid rgba(0, 0, 0, 0.08);
    border-radius: 999px;
    font-size: 0.88rem;
    font-weight: 600;
    color: var(--dark-color);
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.04);
    transition: all 0.2s ease;
}

.tech-pill:hover {
    background-color: var(--light-pink);
    border-color: var(--primary-color);
    color: var(--primary-color);
    transform: translateY(-2px);
}

.service-hero-stats {
    background: #ffffff;
    border: 1px solid rgba(0, 0, 0, 0.06);
    border-radius: 1.25rem;
    padding: 1.5rem;
    box-shadow: var(--shadow-soft);
}

.service-cta-banner {
    background: linear-gradient(135deg, #1e293b, #0f172a);
    border-radius: 2rem;
    position: relative;
    overflow: hidden;
}

.service-cta-banner::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(252, 90, 52, 0.25), transparent 70%);
    pointer-events: none;
}

/* ==========================================================================
   Form Validation & Feedback Alerts
   ========================================================================== */
.site-contact-form .form-control.is-invalid,
.site-contact-form .form-select.is-invalid {
    border-color: #ef4444 !important;
    box-shadow: 0 0 0 0.2rem rgba(239, 68, 68, 0.15) !important;
    background-color: #fffaf9;
}

.site-contact-form .form-control.is-valid,
.site-contact-form .form-select.is-valid {
    border-color: #10b981 !important;
    box-shadow: 0 0 0 0.2rem rgba(16, 185, 129, 0.15) !important;
}

.site-contact-form .invalid-feedback {
    display: block;
    font-size: 0.82rem;
    font-weight: 500;
    color: #ef4444;
    margin-top: 0.35rem;
    padding-left: 0.75rem;
    animation: fadeInDown 0.2s ease forwards;
}

.site-contact-form .form-feedback-alert {
    border-radius: 16px;
    font-size: 0.95rem;
    padding: 1rem 1.25rem;
    border: none;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    animation: fadeInDown 0.3s ease forwards;
}

.site-contact-form .form-feedback-alert.alert-success {
    background-color: #ecfdf5;
    color: #065f46;
    border-left: 4px solid #10b981;
}

.site-contact-form .form-feedback-alert.alert-danger {
    background-color: #fef2f2;
    color: #991b1b;
    border-left: 4px solid #ef4444;
}

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-6px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ==========================================================================
   Brand Logo & Favicon Elements
   ========================================================================== */
.site-header-logo {
    max-height: 48px;
    width: auto;
    object-fit: contain;
    transition: transform 0.2s ease;
}

.site-header-logo:hover {
    transform: scale(1.02);
}

.site-footer-logo {
    max-height: 44px;
    width: auto;
    object-fit: contain;
    transition: opacity 0.2s ease;
}

.site-footer-logo:hover {
    opacity: 0.9;
}

@media (max-width: 575.98px) {
    .site-header-logo {
        max-height: 38px;
    }
}

/* ==========================================================================
   Floating WhatsApp Chatbot & Wave Effect
   ========================================================================== */
.sprea-wa-widget {
    position: fixed;
    bottom: 24px;
    right: 24px;
    z-index: 1060;
    font-family: var(--body-font);
}

/* Floating Trigger Button & Waves */
.sprea-wa-trigger-wrapper {
    position: relative;
    display: inline-block;
    animation: spreaWaFloat 3.2s ease-in-out infinite;
}

@keyframes spreaWaFloat {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-6px);
    }
}

.sprea-wa-pulse-wave {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: rgba(37, 211, 102, 0.45);
    transform: translate(-50%, -50%);
    pointer-events: none;
    z-index: 0;
}

.sprea-wa-pulse-wave.wave-1 {
    animation: spreaWaRipple 2.5s infinite cubic-bezier(0, 0.2, 0.8, 1);
}

.sprea-wa-pulse-wave.wave-2 {
    animation: spreaWaRipple 2.5s infinite cubic-bezier(0, 0.2, 0.8, 1) 0.8s;
}

.sprea-wa-pulse-wave.wave-3 {
    animation: spreaWaRipple 2.5s infinite cubic-bezier(0, 0.2, 0.8, 1) 1.6s;
}

@keyframes spreaWaRipple {
    0% {
        transform: translate(-50%, -50%) scale(0.95);
        opacity: 0.85;
    }
    100% {
        transform: translate(-50%, -50%) scale(2.3);
        opacity: 0;
    }
}

.sprea-wa-btn {
    position: relative;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: linear-gradient(135deg, #25D366 0%, #128C7E 100%);
    color: #ffffff;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 30px;
    cursor: pointer;
    box-shadow: 0 8px 24px rgba(37, 211, 102, 0.45);
    transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.3s ease;
    z-index: 1;
}

.sprea-wa-btn:hover {
    transform: scale(1.08);
    box-shadow: 0 12px 30px rgba(37, 211, 102, 0.65);
    color: #ffffff;
}

.sprea-wa-btn:active {
    transform: scale(0.95);
}

.sprea-wa-online-dot {
    position: absolute;
    top: 2px;
    right: 3px;
    width: 14px;
    height: 14px;
    background-color: #22c55e;
    border: 2.5px solid #ffffff;
    border-radius: 50%;
    box-shadow: 0 0 0 2px rgba(34, 197, 94, 0.3);
}

/* Teaser badge */
.sprea-wa-teaser {
    position: absolute;
    right: 74px;
    top: 50%;
    transform: translateY(-50%);
    background: #ffffff;
    color: #1f2937;
    padding: 8px 14px;
    border-radius: 30px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.12);
    border: 1px solid rgba(0, 0, 0, 0.06);
    font-size: 13px;
    white-space: nowrap;
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    opacity: 0;
    pointer-events: none;
    transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
    z-index: 2;
}

.sprea-wa-teaser.show {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(-50%) translateX(0);
}

.sprea-wa-teaser::after {
    content: '';
    position: absolute;
    right: -6px;
    top: 50%;
    transform: translateY(-50%);
    border-width: 6px 0 6px 6px;
    border-style: solid;
    border-color: transparent transparent transparent #ffffff;
}

.sprea-wa-teaser-close {
    background: none;
    border: none;
    color: #9ca3af;
    font-size: 16px;
    line-height: 1;
    padding: 0;
    cursor: pointer;
}

.sprea-wa-teaser-close:hover {
    color: #1f2937;
}

/* Chatbot Popup Window - Right & Bottom Aligned */
.sprea-wa-chatbox {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 380px;
    max-width: calc(100vw - 32px);
    height: 580px;
    max-height: calc(100vh - 40px);
    background-color: #f8fafc;
    border-radius: 20px;
    box-shadow: 0 18px 50px rgba(0, 0, 0, 0.22), 0 0 1px rgba(0, 0, 0, 0.1);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    z-index: 1070;
    animation: spreaWaPopup 0.32s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

/* Hide trigger button & waves completely when chat is open */
body.sprea-wa-open .sprea-wa-trigger-wrapper,
.sprea-wa-widget.is-open .sprea-wa-trigger-wrapper {
    display: none !important;
    opacity: 0 !important;
    visibility: hidden !important;
    pointer-events: none !important;
}

@keyframes spreaWaPopup {
    0% {
        opacity: 0;
        transform: translateY(20px) scale(0.96);
    }
    100% {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

/* Chat Header (Website Brand Color) */
.sprea-wa-header {
    background: linear-gradient(135deg, var(--primary-color, #fc5a34) 0%, #e64a27 100%);
    padding: 14px 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
}

.sprea-wa-avatar {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 4px;
    border: 2px solid rgba(255, 255, 255, 0.7);
    flex-shrink: 0;
}

.sprea-wa-avatar img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    border-radius: 50%;
}

.sprea-wa-avatar-fallback {
    color: var(--primary-color);
    font-size: 20px;
}

.sprea-wa-avatar-badge {
    position: absolute;
    bottom: -1px;
    right: -1px;
    width: 12px;
    height: 12px;
    background-color: #22c55e;
    border: 2px solid #ffffff;
    border-radius: 50%;
}

.sprea-wa-live-indicator {
    display: inline-block;
    width: 8px;
    height: 8px;
    background-color: #4ade80;
    border-radius: 50%;
    box-shadow: 0 0 0 2px rgba(74, 222, 128, 0.4);
    animation: spreaWaLivePulse 2s infinite ease-in-out;
}

@keyframes spreaWaLivePulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.6; transform: scale(0.85); }
}

.sprea-wa-btn-icon {
    background: rgba(255, 255, 255, 0.15);
    border: none;
    color: #ffffff;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    cursor: pointer;
    transition: background 0.2s ease, transform 0.2s ease;
}

.sprea-wa-btn-icon:hover {
    background: rgba(255, 255, 255, 0.28);
    transform: scale(1.05);
}

/* Chat Body */
.sprea-wa-body {
    flex: 1;
    overflow-y: auto;
    padding: 16px 14px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    background: #f8fafc;
    scrollbar-width: thin;
}

.sprea-wa-body::-webkit-scrollbar {
    width: 6px;
}

.sprea-wa-body::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 4px;
}

.sprea-wa-date-divider {
    text-align: center;
    position: relative;
    margin: 4px 0 10px;
}

.sprea-wa-date-divider span {
    background: #e2e8f0;
    color: #64748b;
    font-size: 11px;
    font-weight: 500;
    padding: 3px 12px;
    border-radius: 12px;
}

/* Messages */
.sprea-wa-msg-item {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    animation: spreaWaMsgFade 0.25s ease forwards;
}

@keyframes spreaWaMsgFade {
    0% { opacity: 0; transform: translateY(8px); }
    100% { opacity: 1; transform: translateY(0); }
}

.sprea-wa-msg-item.bot-msg {
    margin-right: auto;
    max-width: 92%;
}

.sprea-wa-msg-item.user-msg {
    margin-left: auto;
    flex-direction: row-reverse;
    max-width: 85%;
}

.sprea-wa-bot-badge {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: #fee2e2;
    color: var(--primary-color, #fc5a34);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    flex-shrink: 0;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.sprea-wa-bubble {
    background: #ffffff;
    color: #1e293b;
    padding: 11px 13px;
    border-radius: 4px 16px 16px 16px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    border: 1px solid #eef2f6;
    font-size: 13.5px;
    line-height: 1.45;
    position: relative;
    word-break: break-word;
}

.sprea-wa-msg-item.user-msg .sprea-wa-bubble {
    background: linear-gradient(135deg, var(--primary-color, #fc5a34) 0%, #e64a27 100%);
    color: #ffffff;
    border-radius: 16px 4px 16px 16px;
    border: none;
    box-shadow: 0 3px 10px rgba(252, 90, 52, 0.25);
}

.sprea-wa-msg-item.user-msg .sprea-wa-bubble strong {
    color: #ffffff;
}

.sprea-wa-time {
    display: block;
    font-size: 10px;
    color: #94a3b8;
    text-align: right;
    margin-top: 5px;
}

.sprea-wa-msg-item.user-msg .sprea-wa-time {
    color: rgba(255, 255, 255, 0.8);
}

/* Service Chips */
.sprea-wa-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
}

.sprea-wa-chip {
    background: #ffffff;
    border: 1.5px solid rgba(252, 90, 52, 0.28);
    color: #334155;
    padding: 6px 11px;
    border-radius: 18px;
    font-size: 12px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.03);
}

.sprea-wa-chip:hover {
    background: #fff5f5;
    border-color: var(--primary-color, #fc5a34);
    color: var(--primary-color, #fc5a34);
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(252, 90, 52, 0.16);
}

.sprea-wa-chip.selected {
    background: var(--primary-color, #fc5a34);
    color: #ffffff;
    border-color: var(--primary-color, #fc5a34);
    pointer-events: none;
}

.sprea-wa-chip.selected i {
    color: #ffffff !important;
}

/* Typing Indicator */
.sprea-wa-typing {
    display: flex;
    align-items: center;
    gap: 8px;
}

.sprea-wa-typing-bubble {
    background: #ffffff;
    border: 1px solid #eef2f6;
    border-radius: 12px;
    padding: 8px 14px;
    display: flex;
    align-items: center;
    gap: 4px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.04);
}

.typing-dot {
    width: 6px;
    height: 6px;
    background-color: #94a3b8;
    border-radius: 50%;
    animation: spreaWaDot 1.4s infinite ease-in-out;
}

.typing-dot:nth-child(2) { animation-delay: 0.2s; }
.typing-dot:nth-child(3) { animation-delay: 0.4s; }

@keyframes spreaWaDot {
    0%, 60%, 100% { transform: translateY(0); opacity: 0.4; }
    30% { transform: translateY(-4px); opacity: 1; }
}

/* Inline Chat Form */
.sprea-wa-form {
    background: #fdfefe;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 10px;
    margin-top: 6px;
}

.sprea-wa-form .input-group-text {
    font-size: 13px;
    border-color: #cbd5e1;
}

.sprea-wa-form .form-control {
    font-size: 12.5px;
    border-color: #cbd5e1;
    padding: 6px 10px;
}

.sprea-wa-form .form-control:focus {
    border-color: var(--primary-color, #fc5a34);
    box-shadow: 0 0 0 0.2rem rgba(252, 90, 52, 0.15);
}

.sprea-wa-send-btn {
    background: linear-gradient(135deg, #25D366 0%, #128C7E 100%);
    border: none;
    padding: 8px 12px;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 600;
    transition: transform 0.2s ease, filter 0.2s ease;
}

.sprea-wa-send-btn:hover {
    filter: brightness(1.08);
    transform: translateY(-1px);
    background: linear-gradient(135deg, #25D366 0%, #128C7E 100%);
}

/* Chat Footer */
.sprea-wa-chat-footer {
    background: #ffffff;
    border-top: 1px solid #f1f5f9;
    padding: 9px 14px;
    font-size: 12px;
}

/* Responsive adjust for mobile */
@media (max-width: 575.98px) {
    .sprea-wa-widget {
        bottom: 18px;
        right: 18px;
    }
    .sprea-wa-btn {
        width: 54px;
        height: 54px;
        font-size: 26px;
    }
    .sprea-wa-pulse-wave {
        width: 54px;
        height: 54px;
    }
    .sprea-wa-teaser {
        display: none !important;
    }
    .sprea-wa-chatbox {
        bottom: 0 !important;
        right: 0 !important;
        left: 0 !important;
        width: 100% !important;
        max-width: 100% !important;
        height: min(620px, 92vh) !important;
        max-height: 92vh !important;
        border-radius: 20px 20px 0 0 !important;
        margin: 0 !important;
    }
}

/* ==========================================================================
   Back to Top Button
   ========================================================================== */
.back-to-top-btn {
    position: fixed;
    bottom: 98px;
    right: 31px;
    width: 46px;
    height: 46px;
    border-radius: 50%;
    background-color: #1a1a1a;
    color: #ffffff;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    cursor: pointer;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.22);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translateY(16px);
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    z-index: 1045;
}

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

.back-to-top-btn:hover {
    background-color: var(--primary-color, #fc5a34);
    color: #ffffff;
    transform: translateY(-4px);
    box-shadow: 0 10px 25px rgba(252, 90, 52, 0.4);
}

.back-to-top-btn:active {
    transform: translateY(-1px);
}

/* Hide back to top when chatbot window is active to avoid visual clash */
body.sprea-wa-open .back-to-top-btn {
    opacity: 0 !important;
    visibility: hidden !important;
    pointer-events: none !important;
}

@media (max-width: 575.98px) {
    .back-to-top-btn {
        bottom: 84px;
        right: 23px;
        width: 42px;
        height: 42px;
        font-size: 16px;
    }
}