
/* =========================================
   NOOR EYE CLINIC — SERVICES
   Separate component stylesheet
========================================= */

.noor-services {
    --ns-bg: #071321;
    --ns-card: #0D2033;
    --ns-card-hover: #122B42;
    --ns-text: #F4FAFF;
    --ns-muted: #A4BAC8;
    --ns-primary: #087FC4;
    --ns-line: rgba(218, 240, 250, 0.12);

    position: relative;
    isolation: isolate;
    overflow: hidden;
    padding: 100px 0 75px;
    color: var(--ns-text);
    background:
        radial-gradient(
            ellipse at 8% 0%,
            rgba(8, 127, 196, 0.11),
            transparent 32%
        ),
        radial-gradient(
            ellipse at 100% 75%,
            rgba(50, 116, 169, 0.12),
            transparent 32%
        ),
        var(--ns-bg);
    font-family: "Inter", sans-serif;
}

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

.noor-services-noise {
    position: absolute;
    z-index: -1;
    inset: 0;
    pointer-events: none;
    opacity: 0.15;
    background-image:
        linear-gradient(rgba(255,255,255,.035) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,.035) 1px, transparent 1px);
    background-size: 46px 46px;
    mask-image: linear-gradient(to bottom, black, transparent 90%);
}

.noor-services-container {
    position: relative;
    z-index: 1;
}

/* Heading */

.noor-services-heading {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 40px;
    margin-bottom: 48px;
}

.noor-services-intro {
    flex: 1 1 auto;
}

.noor-services-kicker {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 22px;
    color: #00C8E8;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 2px;
}

.noor-services-kicker-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--ns-primary);
    box-shadow: 0 0 0 5px rgba(8,127,196,.13);
}

.noor-services-heading h2 {
    margin: 0;
    color: var(--ns-text);
    font-family: "Manrope", sans-serif;
    font-size: clamp(34px, 4vw, 52px);
    font-weight: 800;
    letter-spacing: -2px;
    line-height: 1.16;
}

.noor-services-heading h2 span {
    color: #00C8E8;
}

.noor-services-heading-side {
    flex: 0 1 335px;
    padding-bottom: 5px;
}

.noor-services-heading-side p {
    margin: 0 0 20px;
    color: var(--ns-muted);
    font-size: 13px;
    line-height: 1.9;
}

.noor-services-all {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding-bottom: 7px;
    border-bottom: 1px solid rgba(0,200,232,.45);
    color: #67D9F4;
    font-size: 12px;
    font-weight: 700;
    text-decoration: none;
    transition: color .25s ease, gap .25s ease;
}

.noor-services-all:hover {
    gap: 18px;
    color: #FFFFFF;
}

/* Service cards */

.noor-services-grid {
    --bs-gutter-x: 1.15rem;
    --bs-gutter-y: 1.15rem;
}

.noor-service-card {
    position: relative;
    display: flex;
    flex-direction: column;
    height: 100%;
    min-height: 460px;
    overflow: hidden;
    padding: 19px;
    border: 1px solid var(--ns-line);
    border-radius: 13px;
    background:
        linear-gradient(155deg, rgba(255,255,255,.035), transparent 45%),
        var(--ns-card);
    transition:
        transform .35s ease,
        border-color .35s ease,
        background .35s ease,
        box-shadow .35s ease;
}

.noor-service-card::before {
    position: absolute;
    top: 0;
    left: 15%;
    width: 70%;
    height: 1px;
    content: "";
    opacity: 0;
    background: linear-gradient(
        90deg,
        transparent,
        #00C8E8,
        transparent
    );
    transition: opacity .3s ease;
}

.noor-service-card:hover {
    transform: translateY(-7px);
    border-color: rgba(0,200,232,.48);
    background: var(--ns-card-hover);
    box-shadow: 0 22px 45px rgba(0,0,0,.2);
}

.noor-service-card:hover::before {
    opacity: 1;
}

.noor-service-card-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 17px;
}

.noor-service-number {
    color: rgba(221,241,250,.47);
    font-family: "Manrope", sans-serif;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 1px;
}

.noor-service-icon {
    display: grid;
    place-items: center;
    width: 39px;
    height: 39px;
    border: 1px solid rgba(0,200,232,.25);
    border-radius: 10px;
    color: #67D9F4;
    background: rgba(8,127,196,.1);
    font-size: 19px;
    transition: transform .35s ease, background .35s ease;
}

.noor-service-card:hover .noor-service-icon {
    transform: rotate(-8deg) scale(1.07);
    background: rgba(8,127,196,.2);
}

/* Abstract visual area — no extra image required */

.noor-service-visual {
    position: relative;
    display: grid;
    place-items: center;
    min-height: 145px;
    margin-bottom: 22px;
    overflow: hidden;
    border: 1px solid rgba(255,255,255,.065);
    border-radius: 9px;
    isolation: isolate;
}

.noor-service-visual::before {
    position: absolute;
    z-index: -1;
    inset: 0;
    content: "";
    opacity: .5;
    background-image:
        linear-gradient(rgba(255,255,255,.045) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,.045) 1px, transparent 1px);
    background-size: 22px 22px;
}

.service-visual-exam {
    background:
        radial-gradient(circle at 50% 50%, rgba(8,127,196,.26), transparent 47%),
        #102B3B;
}

.service-visual-exam > i {
    z-index: 2;
    color: #BDEFFF;
    font-size: 48px;
    filter: drop-shadow(0 0 14px rgba(8,127,196,.45));
    transition: transform .4s ease;
}

.noor-service-card:hover .service-visual-exam > i {
    transform: scale(1.12);
}

.service-visual-ring {
    position: absolute;
    width: 98px;
    aspect-ratio: 1;
    border: 1px solid rgba(0,200,232,.3);
    border-radius: 50%;
    animation: nsOrbit 16s linear infinite;
}

.service-visual-ring::before,
.service-visual-ring::after {
    position: absolute;
    content: "";
    border: 1px solid rgba(0,200,232,.22);
    border-radius: 50%;
}

.service-visual-ring::before {
    inset: 10px -10px;
}

.service-visual-ring::after {
    inset: -10px 10px;
}

.service-visual-test {
    background:
        radial-gradient(circle at 50% 50%, rgba(81,155,225,.25), transparent 53%),
        #12283D;
}

.service-test-target {
    position: relative;
    display: grid;
    place-items: center;
    width: 83px;
    aspect-ratio: 1;
    border: 1px solid rgba(126,194,255,.75);
    border-radius: 50%;
    animation: nsTargetPulse 3s ease-in-out infinite;
}

.service-test-target span {
    position: absolute;
    width: 70%;
    height: 70%;
    border: 1px solid rgba(126,194,255,.4);
    border-radius: 50%;
}

.service-test-target span:nth-child(2) {
    width: 43%;
    height: 43%;
}

.service-test-target span:nth-child(3) {
    width: 8px;
    height: 8px;
    border: 0;
    background: #81CEFF;
    box-shadow: 0 0 15px #81CEFF;
}

.service-test-crosshair {
    position: absolute;
    color: rgba(126,194,255,.75);
    font-size: 94px;
    opacity: .5;
}

.service-visual-optical {
    background:
        radial-gradient(ellipse at 50% 60%, rgba(0,200,232,.13), transparent 55%),
        #123B58;
}

.service-glasses {
    position: relative;
    z-index: 2;
    display: flex;
    align-items: center;
    gap: 7px;
    transform: rotate(-9deg);
    filter: drop-shadow(0 8px 12px rgba(0,0,0,.3));
    transition: transform .4s ease;
}

.noor-service-card:hover .service-glasses {
    transform: rotate(-3deg) scale(1.1);
}

.service-glasses span {
    display: block;
    width: 44px;
    height: 35px;
    border: 3px solid #8BE8FA;
    border-radius: 12px 12px 17px 17px;
    background: linear-gradient(
        135deg,
        rgba(157,222,239,.36),
        rgba(45,83,105,.2)
    );
}

.service-glasses i {
    position: absolute;
    top: 10px;
    left: 42px;
    width: 12px;
    height: 3px;
    background: #8BE8FA;
}

.service-glasses-glow {
    position: absolute;
    width: 110px;
    height: 50px;
    border-radius: 50%;
    background: rgba(0,200,232,.12);
    filter: blur(18px);
}

.service-visual-care {
    background:
        radial-gradient(circle at 50% 50%, rgba(8,127,196,.22), transparent 55%),
        #122C3A;
}

.service-care-circle {
    display: grid;
    place-items: center;
    width: 75px;
    aspect-ratio: 1;
    border: 1px solid rgba(0,200,232,.6);
    border-radius: 50%;
    color: #BDEFFF;
    background: rgba(8,127,196,.12);
    box-shadow: 0 0 35px rgba(8,127,196,.13);
    font-size: 32px;
    animation: nsCarePulse 3s ease-in-out infinite;
}

.service-care-particle {
    position: absolute;
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: #8BE8FA;
    box-shadow: 0 0 10px rgba(0,200,232,.8);
    animation: nsParticleFloat 4s ease-in-out infinite;
}

.particle-one {
    top: 25%;
    left: 26%;
}

.particle-two {
    right: 25%;
    top: 35%;
    animation-delay: -1s;
}

.particle-three {
    bottom: 23%;
    left: 35%;
    animation-delay: -2s;
}

.service-visual-caption {
    position: absolute;
    right: 10px;
    bottom: 9px;
    color: rgba(225,244,250,.45);
    font-size: 7px;
    font-weight: 800;
    letter-spacing: 1.5px;
}

.service-visual-cross {
    position: absolute;
    width: 9px;
    height: 9px;
    border: 1px solid rgba(0,200,232,.55);
}

.cross-one {
    top: 18px;
    left: 18px;
}

.cross-two {
    right: 18px;
    bottom: 18px;
}

/* Card copy */

.noor-service-card-content {
    display: flex;
    flex: 1;
    flex-direction: column;
    align-items: flex-start;
}

.noor-service-category {
    display: block;
    margin-bottom: 9px;
    color: #69DAD1;
    font-size: 8px;
    font-weight: 800;
    letter-spacing: 1.5px;
}

.noor-service-card h3 {
    margin: 0 0 11px;
    color: var(--ns-text);
    font-family: "Manrope", sans-serif;
    font-size: 19px;
    font-weight: 750;
    letter-spacing: -.5px;
    line-height: 1.35;
}

.noor-service-card-content p {
    margin: 0 0 20px;
    color: var(--ns-muted);
    font-size: 11px;
    line-height: 1.85;
}

.noor-service-link {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    width: 100%;
    margin-top: auto;
    padding-top: 14px;
    border-top: 1px solid var(--ns-line);
    color: var(--ns-text);
    font-size: 11px;
    font-weight: 700;
    text-decoration: none;
    transition: color .25s ease;
}

.noor-service-link i {
    display: grid;
    place-items: center;
    width: 29px;
    height: 29px;
    border: 1px solid var(--ns-line);
    border-radius: 50%;
    color: #67D9F4;
    transition:
        transform .25s ease,
        background .25s ease,
        border-color .25s ease;
}

.noor-service-link:hover {
    color: #67D9F4;
}

.noor-service-link:hover i {
    transform: translate(2px, -2px);
    border-color: var(--ns-primary);
    background: rgba(8,127,196,.13);
}

/* Bottom strip */

.noor-services-bottom {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-top: 35px;
    padding: 19px 22px;
    border: 1px solid var(--ns-line);
    border-radius: 10px;
    background: rgba(255,255,255,.025);
}

.noor-services-bottom-mark {
    display: grid;
    place-items: center;
    width: 39px;
    height: 39px;
    flex-shrink: 0;
    border-radius: 50%;
    color: #67D9F4;
    background: rgba(8,127,196,.12);
    font-size: 18px;
}

.noor-services-bottom p {
    flex: 1;
    margin: 0;
    color: var(--ns-muted);
    font-size: 12px;
    line-height: 1.7;
}

.noor-services-bottom p strong {
    color: var(--ns-text);
}

.noor-services-bottom > a {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: #67D9F4;
    font-size: 11px;
    font-weight: 700;
    text-decoration: none;
}

.noor-services-bottom > a i {
    transition: transform .25s ease;
}

.noor-services-bottom > a:hover i {
    transform: translateX(4px);
}

/* Reveal animation */

[data-service-reveal] {
    opacity: 0;
    transform: translateY(20px);
    transition:
        opacity .65s ease,
        transform .65s ease;
}

[data-service-reveal].service-visible {
    opacity: 1;
    transform: translateY(0);
}

/* Tablet */

@media (max-width: 1199.98px) {
    .noor-services {
        padding: 80px 0 65px;
    }

    .noor-service-card {
        min-height: 435px;
    }

    .noor-services-heading {
        gap: 25px;
    }
}

@media (max-width: 767.98px) {
    .noor-services {
        padding: 65px 0 55px;
    }

    .noor-services-heading {
        display: block;
        margin-bottom: 30px;
    }

    .noor-services-heading h2 {
        font-size: clamp(34px, 7vw, 45px);
        letter-spacing: -1.5px;
    }

    .noor-services-heading-side {
        max-width: 480px;
        margin-top: 20px;
    }

    .noor-services-heading-side p {
        margin-bottom: 13px;
    }

    .noor-service-card {
        min-height: 415px;
        padding: 15px;
    }

    .noor-service-visual {
        min-height: 130px;
    }

    .noor-service-card h3 {
        font-size: 17px;
    }

    .noor-services-bottom {
        align-items: flex-start;
        flex-wrap: wrap;
        gap: 12px;
        padding: 16px;
    }

    .noor-services-bottom p {
        flex-basis: calc(100% - 55px);
    }

    .noor-services-bottom > a {
        margin-left: 51px;
    }
}

@media (max-width: 420px) {
    .noor-services {
        padding: 52px 0 45px;
    }

    .noor-services-kicker {
        font-size: 9px;
        letter-spacing: 1.4px;
    }

    .noor-services-heading h2 {
        font-size: 32px;
        line-height: 1.22;
    }

    .noor-service-card {
        min-height: 390px;
        padding: 13px;
    }

    .noor-service-visual {
        min-height: 115px;
        margin-bottom: 17px;
    }

    .noor-service-card h3 {
        font-size: 16px;
    }

    .noor-service-card-content p {
        font-size: 10px;
    }

    .noor-services-bottom > a {
        font-size: 10px;
    }
}

/* Reduced motion */

@media (prefers-reduced-motion: reduce) {
    .noor-services *,
    .noor-services *::before,
    .noor-services *::after {
        animation: none !important;
        transition: none !important;
        scroll-behavior: auto !important;
    }

    [data-service-reveal] {
        opacity: 1;
        transform: none;
    }
}

/* =========================================
   SERVICES — LARGER TEXT & MOBILE 2-COLUMN
========================================= */

/* Grid spacing */
.noor-services-grid {
    --bs-gutter-x: 16px;
    --bs-gutter-y: 20px;
}

/* Cards */
.noor-service-card {
    min-height: 100%;
    padding: 20px;
    border-radius: 14px;
}

/* Section heading */
.noor-services-heading h2 {
    font-size: clamp(36px, 3.5vw, 52px);
    line-height: 1.2;
    letter-spacing: -1.5px;
}

/* Category labels */
.noor-service-category {
    font-size: 11px;
    line-height: 1.5;
    letter-spacing: 1px;
}

/* Service titles */
.noor-service-card h3 {
    font-size: clamp(18px, 1.5vw, 22px);
    line-height: 1.4;
    letter-spacing: -0.3px;
}

/* Description */
.noor-service-card-content p {
    font-size: 14px;
    line-height: 1.75;
}

/* Card numbers */
.noor-service-number {
    font-size: 13px;
}

/* Service links */
.noor-service-link {
    font-size: 14px;
    line-height: 1.5;
}

/* Visual area */
.noor-service-visual {
    min-height: 150px;
}

/* Heading description */
.noor-services-heading-side p {
    font-size: 15px;
    line-height: 1.8;
}

/* Bottom strip */
.noor-services-bottom p {
    font-size: 14px;
    line-height: 1.7;
}

.noor-services-bottom > a {
    font-size: 13px;
}

/* Tablet */
@media (max-width: 767.98px) {
    .noor-services {
        padding: 60px 0;
    }

    .noor-services-heading h2 {
        font-size: clamp(34px, 5.5vw, 44px);
    }

    .noor-service-card {
        padding: 16px;
    }

    .noor-service-card h3 {
        font-size: 19px;
    }

    .noor-service-card-content p {
        font-size: 14px;
        line-height: 1.7;
    }

    .noor-service-visual {
        min-height: 130px;
    }
}

/* Mobile — maintain 2 cards per row */
@media (max-width: 575.98px) {
    .noor-services-grid {
        --bs-gutter-x: 10px;
        --bs-gutter-y: 14px;
    }

    .noor-services-heading h2 {
        font-size: clamp(32px, 7.5vw, 40px);
        letter-spacing: -1.2px;
    }

    .noor-services-kicker {
        font-size: 10px;
        letter-spacing: 1px;
    }

    .noor-service-card {
        padding: 12px;
        border-radius: 11px;
    }

    .noor-service-card-top {
        margin-bottom: 12px;
    }

    .noor-service-number {
        font-size: 12px;
    }

    .noor-service-icon {
        width: 34px;
        height: 34px;
        font-size: 18px;
    }

    .noor-service-visual {
        min-height: 100px;
        margin-bottom: 15px;
    }

    .noor-service-category {
        font-size: 9px;
        letter-spacing: 0.6px;
        overflow-wrap: anywhere;
    }

    .noor-service-card h3 {
        font-size: clamp(16px, 4.2vw, 19px);
        line-height: 1.4;
        letter-spacing: -0.3px;
        overflow-wrap: anywhere;
    }

    .noor-service-card-content p {
        font-size: 12px;
        line-height: 1.65;
        margin-bottom: 16px;
    }

    .noor-service-link {
        gap: 5px;
        padding-top: 12px;
        font-size: 12px;
    }

    .noor-service-link i {
        width: 27px;
        height: 27px;
        flex-shrink: 0;
    }

    .noor-services-heading-side p {
        font-size: 14px;
    }

    .noor-services-bottom p {
        font-size: 13px;
    }

    .noor-services-bottom > a {
        font-size: 12px;
    }
}

/* Very narrow phones */
@media (max-width: 374px) {
    .noor-services-grid {
        --bs-gutter-x: 8px;
    }

    .noor-service-card {
        padding: 10px;
    }

    .noor-service-card h3 {
        font-size: 16px;
    }

    .noor-service-card-content p {
        font-size: 11px;
    }

    .noor-service-link {
        font-size: 11px;
    }

    .noor-service-visual {
        min-height: 90px;
    }
}
