:root{
    --nav-dark: rgba(18, 35, 78, 0.92);
    --nav-glow: rgba(89, 156, 255, 0.35);
    --hero-deep: #071a4a;
    --hero-mid: #153a86;
    --hero-soft: #4fc3ff;
}

* {
    -webkit-tap-highlight-color: transparent;
}

html, body {
    overflow-x: hidden !important;
    max-width: 100vw;
    background: #ffffff;
}


#navbar {
    background: rgba(34, 58, 118, 0.28);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: inset 0 -1px 0 rgba(255,255,255,0.05);
    transition: all 0.35s ease;
    padding-top: 1.1rem;
    padding-bottom: 1.1rem;
}

#navbar::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        linear-gradient(90deg,
            rgba(10, 37, 92, 0.55) 0%,
            rgba(48, 98, 191, 0.38) 42%,
            rgba(138, 190, 255, 0.22) 100%);
    pointer-events: none;
    z-index: 0;
}

#navbar.scrolled {
    background: rgba(15, 31, 70, 0.94);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    box-shadow: 0 14px 36px rgba(5, 13, 35, 0.28);
    padding-top: 0.85rem;
    padding-bottom: 0.85rem;
}

.nav-shell {
    position: relative;
    z-index: 1;
    border-radius: 0 0 36px 36px;
    overflow: hidden;
}

.nav-link {
    position: relative;
    color: rgba(255,255,255,0.96);
    transition: all 0.25s ease;
}

.nav-link:hover {
    color: #ffffff;
}

.nav-link::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -8px;
    width: 0;
    height: 2px;
    border-radius: 999px;
    background: linear-gradient(90deg, #77d8ff, #2da6ff);
    transition: width 0.25s ease;
}

.nav-link:hover::after {
    width: 100%;
}

.dropdown:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translate(-50%, 0);
}

.dropdown-menu {
    transition: all 0.28s cubic-bezier(0.4, 0, 0.2, 1);
    transform: translate(-50%, 12px);
}

#mobileMenu {
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    background: rgba(12, 25, 59, 0.97);
}

.hero-main-overlay {
    background:
        linear-gradient(90deg,
            rgba(5, 20, 60, 0.92) 0%,
            rgba(13, 43, 105, 0.74) 34%,
            rgba(38, 80, 165, 0.34) 58%,
            rgba(255, 255, 255, 0.08) 100%);
}

.hero-light-overlay {
    background:
        radial-gradient(circle at 78% 22%, rgba(255, 241, 224, 0.36), transparent 24%),
        radial-gradient(circle at 95% 8%, rgba(131, 176, 255, 0.22), transparent 18%),
        radial-gradient(circle at 14% 40%, rgba(61, 188, 255, 0.12), transparent 22%);
}

.glass-pill {
    background: rgba(77, 107, 176, 0.32);
    border: 1px solid rgba(126, 167, 255, 0.30);
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.08);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.hero-secondary-btn {
    background: rgba(255,255,255,0.12);
    border: 1px solid rgba(255,255,255,0.16);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.06);
}

.hero-secondary-btn:hover {
    background: rgba(255,255,255,0.18);
}

.floating-search {
    background: rgba(255,255,255,0.92);
    box-shadow: 0 25px 70px -25px rgba(20,58,120,.22);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
}

.section-blue-bg {
    position: relative;
    overflow: hidden;
    background:
        radial-gradient(circle at 0% 30%, rgba(94, 184, 255, 0.18), transparent 24%),
        radial-gradient(circle at 100% 90%, rgba(72, 190, 224, 0.15), transparent 22%),
        linear-gradient(180deg, #fbfdff 0%, #f7fbff 60%, #f8fcff 100%);
}

.section-blue-bg::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        linear-gradient(165deg, rgba(71,181,255,.06) 0%, rgba(255,255,255,0) 38%, rgba(77,127,255,.04) 100%);
    pointer-events: none;
}

/* =========================
   SERVICE CARD UPDATED
========================= */

.service-card {
    position: relative;
    overflow: hidden;
    border-radius: 26px;
    background: linear-gradient(180deg, rgba(255,255,255,0.96) 0%, rgba(248,252,255,0.96) 100%);
    border: 1px solid rgba(196, 220, 247, 0.95);
    box-shadow: 0 20px 50px -26px rgba(25, 88, 170, 0.20);
    transition: transform .35s ease, box-shadow .35s ease, border-color .35s ease;
    min-height: 100%;
    display: flex;
    flex-direction: column;
}

.service-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 28px 60px -24px rgba(25, 88, 170, 0.24);
    border-color: rgba(105, 170, 242, 0.95);
}

.service-card-content {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.service-ribbon {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 84px;
    border-radius: 34px 34px 26px 26px;
    z-index: 0;
    box-shadow: inset 0 2px 0 rgba(255,255,255,.18);
}

.service-ribbon-blue {
    background: linear-gradient(135deg, #4dbdff 0%, #258cf3 58%, #175fd1 100%);
}

/* Keep these if old markup still references them */
.service-ribbon-violet {
    background: linear-gradient(135deg, #4dbdff 0%, #258cf3 58%, #175fd1 100%);
}

.service-ribbon-gold {
    background: linear-gradient(135deg, #4dbdff 0%, #258cf3 58%, #175fd1 100%);
}

.service-ribbon-teal {
    background: linear-gradient(135deg, #4dbdff 0%, #258cf3 58%, #175fd1 100%);
}

.service-popular {
    position: absolute;
    right: 0;
    top: 0;
    z-index: 3;
    background: linear-gradient(180deg, #2da6ff 0%, #1d7af0 100%);
    color: white;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: .04em;
    padding: 10px 16px;
    border-bottom-left-radius: 16px;
    box-shadow: 0 12px 25px -12px rgba(37, 140, 243, 0.65);
}

.service-label-bottom {
    position: relative;
    z-index: 2;
    color: white;
    text-shadow: 0 2px 6px rgba(0,0,0,.16);
    display: flex;
    align-items: center;
    min-height: 56px;
    max-height: 56px;
    overflow: hidden;
}

.service-label-bottom h4 {
    width: 100%;
    margin: 0;
    font-size: 1.05rem;
    line-height: 1.25;
    font-weight: 700;
    color: #ffffff;
    overflow: hidden;
    word-break: break-word;
    overflow-wrap: anywhere;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.service-icon-box {
    width: 64px;
    height: 64px;
    border-radius: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow:
        inset 0 1px 0 rgba(255,255,255,.6),
        0 12px 24px -12px rgba(37, 140, 243, 0.28);
}

.service-blue-glow {
    background: linear-gradient(180deg, #edf8ff 0%, #dcefff 100%);
}

.service-violet-glow {
    background: linear-gradient(180deg, #edf8ff 0%, #dcefff 100%);
}

.service-gold-glow {
    background: linear-gradient(180deg, #edf8ff 0%, #dcefff 100%);
}

.service-teal-glow {
    background: linear-gradient(180deg, #edf8ff 0%, #dcefff 100%);
}

.blob-shape {
    border-radius: 40% 60% 70% 30% / 40% 50% 60% 50%;
    animation: morph 8s ease-in-out infinite;
}

@keyframes morph {
    0%, 100% { border-radius: 40% 60% 70% 30% / 40% 50% 60% 50%; }
    34% { border-radius: 70% 30% 50% 50% / 30% 30% 70% 70%; }
    67% { border-radius: 100% 60% 60% 100% / 100% 100% 60% 60%; }
}

.pulse-ring {
    animation: pulseRing 2s infinite;
}

@keyframes pulseRing {
    0% { transform: scale(0.8); box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.7); }
    70% { transform: scale(1); box-shadow: 0 0 0 15px rgba(34, 197, 94, 0); }
    100% { transform: scale(0.8); box-shadow: 0 0 0 0 rgba(34, 197, 94, 0); }
}

.custom-scrollbar::-webkit-scrollbar { width: 8px; }
.custom-scrollbar::-webkit-scrollbar-thumb { background: rgba(148,163,184,.5); border-radius: 999px; }
.custom-scrollbar::-webkit-scrollbar-track { background: transparent; }

.line-clamp-1 {
    display: -webkit-box;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.line-clamp-2 {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.line-clamp-3 {
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

@media (max-width: 1024px) {
    #navbar {
        padding-top: .9rem;
        padding-bottom: .9rem;
    }

    .service-ribbon {
        height: 80px;
    }

    .service-label-bottom {
        min-height: 52px;
        max-height: 52px;
    }

    .service-label-bottom h4 {
        font-size: 1rem;
    }
}

@media (max-width: 640px) {
    .service-ribbon {
        height: 74px;
    }

    .service-label-bottom {
        min-height: 46px;
        max-height: 46px;
    }

    .service-label-bottom h4 {
        font-size: 0.95rem;
        line-height: 1.2;
    }
}