@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@300;500;800&display=swap');

:root {
    --slide-speed: 0.8s;
    --ease: cubic-bezier(0.65, 0, 0.35, 1);
    --bg-dark: #0f0026;
    --accent-dblue: #1c2541;
    --accent-blue: #1c5e74;
    --bg-white: #fcfcfc;
    --bg-gray: #a8b0c0;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: "Inter", sans-serif;
    scroll-behavior: smooth;
}

/* Update your existing body/html block to this */
html {
    overflow-x: hidden;
    overflow-y: auto;
    /* Let the browser decide when to scroll */
}

body {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: "Inter", sans-serif;
    position: relative;
    min-height: 100vh;
    width: 100%;
}

/* 📱 Mobile Fix */
@media (max-width: 768px) {
    body {
        /* background-attachment: scroll; fixed causes issues on mobile */
        background-position: center;
    }
}

/* Floating Chat Button */
.chat-widget {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 55px;
  height: 55px;
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  cursor: pointer;
  z-index: 1000;
  transition: background 0.3s ease, transform 0.3s ease;
  background: rgb(7, 7, 44);
  box-shadow: 0 0 20px 5px rgba(56, 52, 112, 0.7);
   transition: all 0.4s ease; /* Smooth transition for opacity and transform */
    opacity: 1;
    visibility: visible;
}


.chat-widget.hidden-widget {
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px); /* Optional: slight slide down effect */
    pointer-events: none; /* Prevents clicking while invisible */
}
/* This class will be toggled via JS */
.chat-widget.stuck {
    position: absolute;
    bottom: 30px;
    /* This is 30px above the top of the footer container */
}

.chat-widget:hover {
    background: var(--accent-dblue);
    /* box-shadow: rgba(132, 139, 170, 0.25) 0px 54px 55px, rgba(113, 131, 165, 0.12) 0px -12px 30px, rgba(58, 63, 133, 0.12) 0px 4px 6px, rgba(106, 121, 189, 0.17) 0px 12px 13px, rgba(112, 123, 172, 0.09) 0px -3px 5px; */
    transition: all .3s ease;
}

.chat-widget svg {
    fill: white;
    width: 25px;
}

.strong {
    color: var(--accent-dblue);
}


@keyframes slideDown {
    from {
        transform: translateY(-100%);
    }

    to {
        transform: translateY(0);
    }
}




/* loader */
#loader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--bg-white);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 2000;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

#loader.hidden {
    opacity: 0;
    visibility: hidden;
}

#loader img.logo {
    display: inline-block;
    width: 120px;
    backface-visibility: hidden;
    -webkit-font-smoothing: antialiased;
    animation: loader-pulse 2.5s ease-in-out infinite;
}

@keyframes loader-pulse {
    0% {
        transform: scale(1);
        filter: brightness(1);
        /* Optional: subtle brightness shift adds depth */
    }

    50% {
        transform: scale(1.1);
        /* 1.1 is often smoother/more subtle than 1.2 */
        filter: brightness(1.05);
    }

    100% {
        transform: scale(1);
        filter: brightness(1);
    }
}


/* 1. SHOW custom scrollbar on Desktop and iPad (Screens wider than 600px) */
@media screen and (min-width: 601px) {
    ::-webkit-scrollbar {
        width: 7px;
        height: 7px;
    }

    ::-webkit-scrollbar-track {
        background: var(--bg-white);
    }

    ::-webkit-scrollbar-thumb {
        background: #1e6091;
        border-radius: 0px;
    }

    ::-webkit-scrollbar-thumb:hover {
        background: #184e77;
    }
}

/* 2. HIDE scrollbar on Mobile (Screens 600px and narrower) */
@media screen and (max-width: 600px) {
    ::-webkit-scrollbar {
        display: none;
        width: 0 !important;
        height: 0 !important;
    }

    html,
    body {
        scrollbar-width: none;
        /* Firefox */
        -ms-overflow-style: none;
        /* IE/Edge */
    }
}


/* Update your existing body/html block to this */
html {
    overflow-x: hidden;
    overflow-y: auto;
    /* Let the browser decide when to scroll */
}

body {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: "Inter", sans-serif;
    position: relative;
    min-height: 100vh;
    width: 100%;
}

/* 📱 Mobile Fix */
@media (max-width: 768px) {
    body {
        /* background-attachment: scroll; fixed causes issues on mobile */
        background-position: center;
    }
}

/* Floating Chat Button */
.chat-widget {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 55px;
    height: 55px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    z-index: 1000;
    transition: background 0.3s ease, transform 0.3s ease;
    background: rgb(7, 7, 44);
    box-shadow: 0 0 20px 5px rgba(56, 52, 112, 0.7);
}

/* This class will be toggled via JS */
.chat-widget.stuck {
    position: absolute;
    bottom: 30px;
    /* This is 30px above the top of the footer container */
}

.chat-widget:hover {
    background: var(--accent-dblue);
    /* box-shadow: rgba(132, 139, 170, 0.25) 0px 54px 55px, rgba(113, 131, 165, 0.12) 0px -12px 30px, rgba(58, 63, 133, 0.12) 0px 4px 6px, rgba(106, 121, 189, 0.17) 0px 12px 13px, rgba(112, 123, 172, 0.09) 0px -3px 5px; */
    transition: all .3s ease;
}

.chat-widget svg {
    fill: white;
    width: 25px;
}

.strong {
    color: var(--accent-dblue);
}


@keyframes slideDown {
    from {
        transform: translateY(-100%);
    }

    to {
        transform: translateY(0);
    }
}


.cure-it-portal {
    background: var(--dark-bg);
    color: white;
    font-family: 'Plus Jakarta Sans', sans-serif;
    min-height: 100vh;
    padding-bottom: 50px;
}

/* Hero Style */
.portal-hero {
    padding: 100px 20px;
    text-align: center;
    min-height: 30vh;
    width: 100%;
    background-image: url("/assets/services/services-1.jpg");
    background-repeat: no-repeat;
    background-position: center;
    background-size: cover;
}

.eyebrow {
    color: var(--accent);
    letter-spacing: 3px;
    font-size: 0.8rem;
    font-weight: 800;
}

.portal-hero h1 {
    font-size: 3.5rem;
    margin: 20px 0;
    font-weight: 800;
}

/* Glassmorphism Search */
.search-glass {
    max-width: 600px;
    margin: 0 auto;
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 10px;
    border-radius: 100px;
    display: flex;
}

.search-glass input {
    background: transparent;
    border: none;
    flex: 1;
    padding: 15px 25px;
    color: white;
    font-size: 1.1rem;
    outline: none;
}

.search-glass button {
    background: var(--accent);
    border: none;
    width: 50px;
    height: 50px;
    border-radius: 50px;
    cursor: pointer;
}




.service-detail-view-header {
    width: 100%;
    background-color: var(--bg-dark);
    font-family: 'Inter', sans-serif;
}




/* --- Updated Header Section --- */
.header-content-wrapper {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    min-height: 80vh;
    padding: clamp(5rem, 15vh, 12rem) 5%;
    background: linear-gradient(rgba(15, 0, 38, 0.75), rgba(15, 0, 38, 0.75)),
        url("/assets/header-bg.jpg") no-repeat center/cover;
}

.header-text {
    max-width: 1000px;
    margin-bottom: 20px;
}

#dynamic-header-title {
    font-family: "Plus Jakarta Sans", sans-serif;
    font-size: clamp(2.5rem, 8vw, 4.5rem);
    font-weight: 800;
    line-height: 1.1;
    color: #ffffff;
    margin-bottom: 0.5rem;
}

#dynamic-header-subtitle {
    font-family: "Plus Jakarta Sans", sans-serif;
    font-size: clamp(2rem, 6vw, 3.5rem);
    font-weight: 800;
    color: #00d4ff;
    /* Matching the highlight cyan */
    text-shadow: 0 0 15px rgba(0, 212, 255, 0.3);
    margin-bottom: 1.5rem;
}

#dynamic-header-desc {
    font-size: clamp(1rem, 1.5vw, 1.25rem);
    line-height: 1.7;
    color: rgba(255, 255, 255, 0.85);
    /* High contrast light grey/white */
    max-width: 800px;
    margin: 0 auto;
}


/* Optional: The 'OI' decorative logo element */
.header-accent-logo {
    width: 50px;
    height: 50px;
    border: 8px solid var(--accent-blue);
    border-radius: 50%;
    position: relative;
}

.header-accent-logo::after {
    content: '';
    position: absolute;
    right: -19px;
    top: 0;
    width: 8px;
    height: 100%;
    background: #444;
}



/* --- Global Hero Responsive Adjustments --- */
@media (max-width: 768px) {
    .portal-hero {
        padding: 60px 15px;
        min-height: 40vh;
    }

    .portal-hero h1 {
        font-size: 2.2rem;
        line-height: 1.2;
    }


    .search-glass {
        border-radius: 25px;
        padding: 8px;
        width: 95%;
    }

    .search-glass input {
        padding: 12px 15px;
        font-size: 1rem;
    }

    .search-glass button {
        width: 45px;
        height: 45px;
    }
}

@media (max-width: 480px) {
    .portal-hero h1 {
        font-size: 1.8rem;
    }

    .eyebrow {
        font-size: 0.7rem;
        letter-spacing: 2px;
    }
}


@media (max-width: 1440px) {
    .portal-hero {
        padding: 60px 15px;
        min-height: 40vh;
    }

    .portal-hero h1 {
        font-size: 2.5rem;
        line-height: 1.2;
    }

    .search-glass {
        border-radius: 25px;
        padding: 4px;
        width: 65%;
    }

    .search-glass input {
        padding: 12px 15px;
        font-size: 1rem;
    }

    .search-glass button {
        width: 45px;
        height: 45px;
    }

    .cure-it-portal {
        background: var(--dark-bg);
        color: white;
        font-family: 'Plus Jakarta Sans', sans-serif;
        min-height: 80vh;
        padding-bottom: 50px;
    }


    .portal-hero {
        padding: 110px 20px;
        text-align: center;
        min-height: 30vh;
        width: 100%;
        background-image: url("/assets/services/services-1.jpg");
        background-repeat: no-repeat;
        background-position: center;
        background-size: cover;
    }
}

/* --- Header Content Responsive Adjustments --- */
@media (max-width: 768px) {
    .header-content-wrapper {
        min-height: 60vh;
        padding: 80px 20px;
    }

    #dynamic-header-desc {
        font-size: 1rem;
        width: 100%;
        opacity: 0.9;
    }

    .header-accent-logo {
        transform: scale(0.8);
        margin-bottom: 20px;
    }
}

/* Landscape Mode Fix for Mobile */
@media (max-height: 500px) and (orientation: landscape) {
    .header-content-wrapper {
        min-height: auto;
        padding: 40px 20px;
    }
}




/* Services Section  */


.services-container {
    padding: 80px 5%;
}


.service-item {
    background: linear-gradient(135deg, var(--accent-dblue), var(--bg-dark));
    border-radius: 40px;
    padding: 20px;
    color: var(--bg-white);
    display: flex;
    justify-content: space-between;
    align-items: center;
    min-height: 200px;
    position: relative;
    overflow: hidden;
    transition: opacity 0.3s ease, transform 0.3s ease;
}



.service-list {
    display: grid;
    grid-template-columns: repeat(2, 1fr); 
    gap: 20px;
    width: 100%;
}

.service-item:hover {
    background: linear-gradient(135deg, var(--accent-dblue) 0%, var(--accent-blue) 100%);
    transform: scale(1.02);
    border-color: var(--accent-blue);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    transition: all .5s ease;
}


.service-info i {
    position: relative;
    font-size: 2.5rem;
    color: var(--accent-blue);
    width: 80px;
    height: 80px;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1;
    border-radius: 50%;
    transition: all 0.4s ease;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.service-info {
    display: flex;
    align-items: center;
    gap: 20px;
}

.service-info h3 {
    margin: 0;
    font-size: 1.4rem;
}

.service-info p {
    margin: 5px 0 0;
    color: var(--text-dim);
}


.service-tags {
    display: flex;
    gap: 10px;
}

.service-tags span {
    background: rgba(0, 210, 255, 0.1);
    color: var(--accent);
    padding: 5px 12px;
    border-radius: 50px;
    font-size: 0.75rem;
    font-weight: 600;
}



/* Read More styling */
.read-more {
    margin-top: 40px;
    display: flex;
    align-items: center;
    gap: 10px;
    color: #a0aec0;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.read-more i {
    font-size: 0.8rem;
    width: auto !important;
    height: auto !important;
    border: none !important;
    color: inherit;
}

/* Hover Effect for the arrow */
.service-item:hover .read-more {
    color: var(--bg-white);
}

.service-item:hover .read-more i {
    transform: translateX(5px);
    transition: transform 0.3s ease;
}




@media (max-width: 992px) {
    .service-list {
        grid-template-columns: repeat(1fr, 3);
       
    }

    .service-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 20px;
    }

    .service-tags {
        align-self: flex-start;
    }
}



@media (max-height: 1440px){


   .service-item {
    background: linear-gradient(135deg, var(--accent-dblue), var(--bg-dark));
    border-radius: 30px; 
    padding: 25px;
    color: var(--bg-white);
    display: flex;
    flex-direction: column; 
    align-items: flex-start;
    justify-content: space-between;
    min-height: 200px;
    transition: all 0.5s ease;
}
.service-info h3 {
        font-size: 1.1rem; /* Shrink text to prevent overflow */
    }
    
    .service-info i {
        width: 60px;
        height: 60px;
        font-size: 1rem;
    }
}

/* Container for the entire CTA section */

.cta-section {
    position: relative;
    padding: 0 !important;
    margin: 0 !important;
    z-index: 5;
    background: #0f0026;
    width: 100%;
}

.cta-wrap.style2 {
    position: relative;
    padding: 100px 70px;
    background: var(--bg-dark);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 60px;
    z-index: 9;
    overflow: visible;
    min-height: auto;
    width: 100%;
}

.cta-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0;
}


.cta-title {
    color: var(--bg-white);
    font-size: 36px;
    line-height: 1.2;
    font-weight: 700;
    text-transform: uppercase;
    margin: 0;
    z-index: 2;
    flex: 1;
    max-width: 400px;
    position: relative; 
    z-index: 10;
}



.shape-1,
.shape-2,
.shape-3,
.shape-4,
.cta-thumb {
    position: absolute;
    display: block;
}


.shape-1 {
    bottom: 0;
    left: 43px;
}

.shape-2 {
    top: 0;
    left: 0;
}

.shape-3 {
    bottom: 0;
    right: 0;
}

.shape-4 {
    bottom: 0;
    right: 0;
}

.cta-thumb {
    bottom: 0;
    left: 73px;
}

/* --- Animations --- */
@keyframes rotate360 {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}

.rotate360 {
    animation: rotate360 10s linear infinite;
}

/* --- Button Styling --- */
.gt-btn {
    background: var(--bg-white);
    color: var(--accent-dbluee);
    padding: 18px 35px;
    border: 2px solid transparent;
    border-radius: 50px;
    font-weight: 700;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    transition: 0.4s;
    z-index: 2;
    position: relative;
}

.gt-btn:hover {
    background: var(--accent-dblue--theme2);
    color: var(--bg-white);
    border: 2px solid var(--bg-white);
}


.gt-btn i {
    animation: arrowMove 2s ease-in-out infinite;
}


@keyframes arrowMove {
    0% {
        transform: translateX(0);
    }

    50% {
        transform: translateX(5px);
    }

    100% {
        transform: translateX(0);
    }
}



/* Responsive fix */
@media (max-width: 1200px) {
    .cta-thumb {
        display: none !important;
    }

    .cta-title {
        margin-left: 0;
        text-align: center;
    }

    .cta-wrap.style2 {
        flex-direction: column;
        text-align: center;
        padding: 40px 20px;
    }
}

@media (min-width: 1200px) {

    .shape-1,
    .shape-2,
    .shape-3,
    .shape-4,
    .cta-thumb {
        display: block;
    }
}

/* Adjust title for Laptop screens to prevent crowding */
@media (max-width: 1400px) {
    .cta-title {
        font-size: 2rem; 
        max-width: 500px;
    }
    
    .cta-wrap.style2 {
        padding: 60px 5%;
    }
}

/* --- Mobile / Tablet Transition --- */
@media (max-width: 992px) {
    .cta-wrap.style2 {
        flex-direction: column;
        text-align: center;
        gap: 30px;
    }

    .cta-title {
        max-width: 100%;
    }

    .shape-1, .shape-2, .cta-thumb {
        display: none;
    }
}






/* Detail Pages  */
.detail-container {
    padding: 60px 5%;
    margin-bottom: 50px;
}


.service-link {
    text-decoration: none;
    display: block;
}


.service-link:hover .service-item {
    background: linear-gradient(135deg, var(--accent-dblue) 0%, var(--accent-blue) 100%);
}


#service-detail-view {
    background-color: var(--bg-white);
}

.back-link {
    text-decoration: none;
    color: #333;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 40px;
    transition: 0.3s;
}

.back-link:hover {
    color: var(--accent-blue);
}

.detail-header h2 {
    font-size: 2.5rem;
    color: var(--accent-dblue);
    margin-bottom: 5px;
}

.detail-header h3 {
    font-size: 2rem;
    color: var(--accent-blue);
    margin-bottom: 20px;
}

.detail-header p {
    max-width: 700px;
    color: var(--bg-gray);
    line-height: 1.6;
    margin-bottom: 50px;
}

.detail-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
}

.detail-card {
    background: linear-gradient(135deg, var(--accent-dblue), var(--bg-dark));
    border-radius: 40px;
    padding: 30px;
    color: var(--bg-white);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-height: 200px;
    position: relative;
    overflow: visible;
    transition: all 0.4s ease;
    /* important */
}

.detail-card:hover {
    transform: translateY(-12px) scale(1.03);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.25);
}

.detail-card:hover .card-icon {
    transform: scale(1.15);
}



.detail-card h4 {
    font-size: 1.3rem;
    margin-bottom: 15px;
}

.detail-card p {
    font-size: 1rem;
    opacity: 0.9;
    line-height: 1.4;
}

.card-icon {
    font-size: 1.3rem;
    opacity: 0.8;
    position: absolute;
    top: 30px;
    right: 24px;
    transition: transform 0.4s ease;
}



/* --- Media Queries for Tablets and Mobile --- */

/* Tablet and Small Desktop (under 1440px) */
@media (max-width: 1440px) {
    #dynamic-header-title{
        font-size: 2rem;
    }

    #dynamic-header-subtitle{
        font-size: 3rem;
    }

    .sidebar-card{
        line-height: 1.2rem;
    }
    .detail-header h2 {
        font-size: 2rem;
    }

    .detail-header h3 {
        font-size: 1.5rem;
    }
}

/* Mobile Devices (under 768px) */
@media (max-width: 768px) {
    .detail-container {
        padding: 40px 20px;
        /* Tighten padding for small screens */
    }

    /* Force grids to a single column */
    .service-list,
    .detail-grid {
        grid-template-columns: 1fr;
    }

    .detail-header h2 {
        font-size: 1.75rem;
    }

    .detail-card {
        padding: 25px;
        min-height: auto;
        /* Allow height to expand based on text */
    }

    .card-icon {
        position: absolute;
        top: 20px;
        right: 20px;
        font-size: 1.5rem;
    }
}

/* Extra Small Devices (under 480px) */
@media (max-width: 480px) {
    .detail-card {
        border-radius: 25px;
        /* Softer corners for very small screens */
    }

    .detail-header p {
        font-size: 0.9rem;
    }
}



/* ===========================
   Service Extra Section
=========================== */

.service-extra-section {
    padding: 80px 0;
}

.service-extra-wrapper {
    display: flex;
    gap: 40px;
    max-width: 1300px;
    margin: 0 auto;
}

/* Sidebar */
.extra-sidebar {
    width: 300px;
}

.sidebar-card {
    background: #f7f8fb;
    padding: 25px;
    border-radius: 14px;
    margin-bottom: 25px;
}

.sidebar-card h4 {
    margin-bottom: 20px;
    font-weight: 600;
    font-size: 1.5rem;
}

.sidebar-services {
    list-style: none;
    padding: 0;
}

.sidebar-services li {
    padding: 10px 0;
    font-size: 1rem;
    color: #444;
    cursor: pointer;
    transition: 0.3s;
}

.sidebar-services li:hover,
.sidebar-services li.active {
    color: var(--accent-dblue);
    font-weight: 600;
}

.sidebar-services a {
    text-decoration: none;
    color: var(--accent-dblue);
}

.sidebar-help {
    background: linear-gradient(135deg, var(--accent-dblue), var(--accent-dblue));
    padding: 30px;
    border-radius: 14px;
    color: white;
    text-align: center;
}

.sidebar-help h5 {
    margin-bottom: 10px;

}

.help-number {
    color: inherit;
    /* Takes the white color from .sidebar-help */
    text-decoration: none;
    /* Removes the underline */
    font-weight: 600;
    transition: opacity 0.3s ease;
    opacity: 0.8;
}

.help-number:hover {
    opacity: 1;
    /* Gives a subtle visual cue on hover */
    text-decoration: none;
    /* Optional: adds underline back only on hover */
}

/* Right Content */
.extra-content {
    flex: 1;
}

.extra-image img {
    width: 100%;
    border-radius: 16px;
    margin-bottom: 25px;
}

.extra-content h3 {
    margin-bottom: 20px;
    font-weight: 700;
    font-size: 2rem;

}

.extra-content p {
    color: #666;
    line-height: 1.7;
    margin-bottom: 25px;
}


.extra-benefits h4 {
    font-size: 1.5rem;
    margin-bottom: 20px;
}

.extra-benefits ul {
    list-style: none;
    padding: 0;
}

.extra-benefits li {
    padding: 8px 0;
    color: #444;
    position: relative;
    padding-left: 20px;
}

.extra-benefits li::before {
    content: "✔";
    position: absolute;
    left: 0;
    color: var(--accent-blue);
}

/* Responsive */
@media (max-width: 992px) {
    .service-extra-wrapper {
        flex-direction: column;
    }

    .extra-sidebar {
        width: 100%;
    }
}