
/* =========================================
   NOOR EYE CLINIC — VISION HERO
========================================= */
:root {
    /* NOOR EYE CLINIC BRAND COLORS */
    --vision-navy: #071C38;
    --vision-blue: #087FC4;
    --vision-cyan: #00C8E8;
    --vision-ice: #E1F4FF;
    --vision-white: #FFFFFF;
    --vision-dark-text: #102D50;
}

/* =========================================
   VISION HERO SECTION
========================================= */

.vision-hero {
    --vh-bg: #F5FAFE;
    --vh-text: #102D50;
    --vh-muted: #526B83;
    --vh-line: rgba(8, 127, 196, 0.14);
    --vh-surface: rgba(255, 255, 255, 0.90);

    position: relative;
    isolation: isolate;
    overflow: hidden;
    min-height: 680px;
    padding: 82px 0 88px;

    color: var(--vh-text);

    background:
        radial-gradient(
            ellipse at 82% 42%,
            rgba(0, 200, 232, 0.13),
            transparent 36%
        ),
        radial-gradient(
            ellipse at 10% 15%,
            rgba(8, 127, 196, 0.08),
            transparent 35%
        ),
        linear-gradient(
            120deg,
            #FFFFFF 0%,
            #F5FAFE 56%,
            #E1F4FF 100%
        );

    font-family: "Inter", sans-serif;
}
html[data-theme="dark"] .vision-hero {
    --vh-bg: #071321;
    --vh-text: #F0F8FF;
    --vh-muted: #B7D0E2;
    --vh-line: rgba(0, 200, 232, 0.16);
    --vh-surface: rgba(13, 32, 51, 0.90);

    background:
        radial-gradient(
            ellipse at 82% 42%,
            rgba(0, 200, 232, 0.13),
            transparent 36%
        ),
        radial-gradient(
            ellipse at 10% 15%,
            rgba(8, 127, 196, 0.12),
            transparent 35%
        ),
        linear-gradient(
            120deg,
            #071321 0%,
            #0D2033 56%,
            #122B42 100%
        );
}

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

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

.vision-hero .row {
    --bs-gutter-x: 2.5rem;
}

/* Background texture */

.vision-hero-grid {
    position: absolute;
    inset: 0;
    z-index: -2;
    pointer-events: none;
    opacity: 0.32;
    background-image:
        linear-gradient(rgba(7, 28, 56, 0.035) 1px, transparent 1px),
        linear-gradient(90deg, rgba(7, 28, 56, 0.035) 1px, transparent 1px);
    background-size: 54px 54px;
    mask-image: linear-gradient(to right, transparent, black 55%, black);
}

.vision-hero-orb {
    position: absolute;
    z-index: -1;
    border-radius: 50%;
    pointer-events: none;
    filter: blur(2px);
    animation: visionOrbFloat 9s ease-in-out infinite;
}

.vision-hero-orb-one {
    width: 210px;
    height: 210px;
    right: 27%;
    top: 7%;
    background: rgba(0, 200, 232, 0.07);
}

.vision-hero-orb-two {
    width: 130px;
    height: 130px;
    left: 35%;
    bottom: 4%;
    background: rgba(77, 157, 225, 0.08);
    animation-delay: -4s;
}

/* Left content */

.vision-hero-content {
    position: relative;
    max-width: 570px;
    padding: 12px 0;
}

.vision-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 11px;
    margin-bottom: 29px;
    color: var(--vision-blue);
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 2px;
    line-height: 1.5;
}

.vision-eyebrow-icon {
    display: inline-grid;
    place-items: center;
    width: 35px;
    height: 35px;
    border: 1px solid rgba(0, 200, 232, 0.26);
    border-radius: 50%;
    background: rgba(0, 200, 232, 0.08);
    font-size: 17px;
}

.vision-live-dot,
.vision-label-dot {
    width: 7px;
    height: 7px;
    flex-shrink: 0;
    border-radius: 50%;
    background: var(--vision-blue);
    box-shadow: 0 0 0 4px rgba(0, 200, 232, 0.12);
}

.vision-live-dot {
    animation: visionPulse 2s infinite;
}

.vision-heading {
    margin: 0;
    color: var(--vh-text);
    font-family: "Manrope", sans-serif;
    font-size: clamp(43px, 5.2vw, 70px);
    font-weight: 800;
    letter-spacing: -3.6px;
    line-height: 1.08;
}

.vision-heading span {
    position: relative;
    display: inline-block;
    color: var(--vision-blue);
}

.vision-heading span::after {
    position: absolute;
    content: "";
    height: 5px;
    width: 76%;
    bottom: -8px;
    left: 2px;
    border-radius: 20px;
    background: linear-gradient(
        90deg,
        var(--vision-blue),
        rgba(0, 200, 232, 0.12)
    );
    transform-origin: left;
    animation: visionUnderline 1.1s 0.7s both;
}

.vision-description {
    max-width: 490px;
    margin: 29px 0 29px;
    color: var(--vh-muted);
    font-size: 15px;
    font-weight: 400;
    line-height: 1.95;
}

/* Buttons */

.vision-hero-actions {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 13px;
}

.vision-btn {
    min-height: 54px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 18px;
    padding: 0 21px;
    border: 1px solid transparent;
    border-radius: 8px;
    font-family: "Inter", sans-serif;
    font-size: 13px;
    font-weight: 700;
    text-decoration: none;
    transition:
        transform 0.25s ease,
        background 0.25s ease,
        box-shadow 0.25s ease,
        color 0.25s ease;
}

.vision-btn:hover {
    transform: translateY(-3px);
}

.vision-btn:focus-visible {
    outline: 3px solid rgba(0, 200, 232, 0.45);
    outline-offset: 4px;
}

.vision-btn-primary {
    color: #FFFFFF;
    background: var(--vision-navy);
    box-shadow: 0 10px 25px rgba(7, 28, 56, 0.14);
}

.vision-btn-primary:hover {
    color: #FFFFFF;
    background: var(--vision-blue);
    box-shadow: 0 13px 30px rgba(0, 200, 232, 0.24);
}

.vision-btn-primary > i {
    font-size: 17px;
    transition: transform 0.25s ease;
}

.vision-btn-primary:hover > i {
    transform: translate(3px, -3px);
}

.vision-btn-outline {
    gap: 10px;
    padding: 0 10px;
    color: var(--vh-text);
    background: transparent;
}

.vision-btn-outline:hover {
    color: var(--vision-blue);
}

.vision-play-icon {
    display: inline-grid;
    place-items: center;
    width: 35px;
    height: 35px;
    border: 1px solid var(--vh-line);
    border-radius: 50%;
    background: var(--vh-surface);
    transition: all 0.25s ease;
}

.vision-btn-outline:hover .vision-play-icon {
    color: #FFFFFF;
    background: var(--vision-blue);
    border-color: var(--vision-blue);
}

/* Trust message */

.vision-trust-row {
    display: flex;
    align-items: center;
    gap: 13px;
    margin-top: 37px;
}

.vision-trust-icon {
    display: grid;
    place-items: center;
    flex-shrink: 0;
    width: 43px;
    height: 43px;
    border: 1px solid rgba(0, 200, 232, 0.22);
    border-radius: 50%;
    color: var(--vision-blue);
    background: rgba(0, 200, 232, 0.08);
    font-size: 21px;
}

.vision-trust-row strong {
    display: block;
    color: var(--vh-text);
    font-size: 12px;
    font-weight: 750;
}

.vision-trust-row p {
    margin: 5px 0 0;
    color: var(--vh-muted);
    font-size: 11px;
    letter-spacing: 0.15px;
}

.vision-hero-bottom-line {
    width: 90px;
    height: 2px;
    margin-top: 35px;
    background: linear-gradient(90deg, var(--vision-blue), transparent);
}

/* Right eye artwork */

.vision-artwork {
    position: relative;
    width: 100%;
    max-width: 540px;
    margin: 0 0 0 auto;
    padding: 18px;
    border: 1px solid rgba(255, 255, 255, 0.8);
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.35);
    box-shadow:
        0 30px 90px rgba(7, 28, 56, 0.08),
        inset 0 0 0 1px rgba(0, 200, 232, 0.045);
    backdrop-filter: blur(8px);
}

.vision-artwork-label {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 0 0 14px 4px;
    color: var(--vh-muted);
    font-size: 9px;
    font-weight: 800;
    letter-spacing: 1.8px;
}

.vision-label-dot {
    width: 6px;
    height: 6px;
}

/* Eye photo frame */

.vision-eye-stage {
    position: relative;
    isolation: isolate;
    overflow: hidden;
    aspect-ratio: 0.91 / 1;
    width: 100%;
    border-radius: 13px;
    background:
        radial-gradient(circle at 50% 40%, #168CCB, #071C38 72%);
    box-shadow: 0 18px 45px rgba(7, 28, 56, 0.17);
}

.vision-eye-image {
    position: absolute;
    inset: 0;
    z-index: -2;
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    animation: visionImageReveal 1.2s ease both;
    transition: transform 0.8s ease;
}

.vision-eye-stage:hover .vision-eye-image {
    transform: scale(1.045);
}

.vision-eye-vignette {
    position: absolute;
    inset: 0;
    z-index: -1;
    pointer-events: none;
    background:
        linear-gradient(
            180deg,
            rgba(6, 25, 40, 0.22) 0%,
            transparent 30%,
            transparent 56%,
            rgba(6, 25, 40, 0.75) 100%
        ),
        linear-gradient(
            90deg,
            rgba(6, 25, 40, 0.08),
            transparent 35%,
            transparent 70%,
            rgba(6, 25, 40, 0.12)
        );
}

/* Scanning beam */

.vision-scan-line {
    position: absolute;
    z-index: 1;
    top: 0;
    left: 0;
    width: 100%;
    height: 2px;
    opacity: 0;
    pointer-events: none;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(0, 200, 232, 0.9),
        #FFFFFF,
        rgba(0, 200, 232, 0.9),
        transparent
    );
    box-shadow:
        0 0 12px rgba(0, 200, 232, 0.8),
        0 0 35px rgba(0, 200, 232, 0.55);
    animation: visionScan 5s ease-in-out 1.2s infinite;
}

/* Focus reticle */

.vision-focus-ring {
    position: absolute;
    left: 50%;
    top: 45%;
    width: 48%;
    aspect-ratio: 1;
    border: 1px solid rgba(255, 255, 255, 0.27);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    pointer-events: none;
    animation: visionFocusBreathe 4s ease-in-out infinite;
}

.vision-focus-ring::before,
.vision-focus-ring::after {
    content: "";
    position: absolute;
    background: rgba(255, 255, 255, 0.28);
}

.vision-focus-ring::before {
    width: 1px;
    height: 135%;
    top: -17.5%;
    left: 50%;
}

.vision-focus-ring::after {
    height: 1px;
    width: 135%;
    top: 50%;
    left: -17.5%;
}

.vision-focus-corner {
    position: absolute;
    z-index: 2;
    width: 18px;
    height: 18px;
    border-color: #00C8E8;
    border-style: solid;
    filter: drop-shadow(0 0 4px rgba(0, 200, 232, 0.7));
}

.corner-tl {
    top: -3px;
    left: -3px;
    border-width: 2px 0 0 2px;
    border-radius: 5px 0 0;
}

.corner-tr {
    top: -3px;
    right: -3px;
    border-width: 2px 2px 0 0;
    border-radius: 0 5px 0 0;
}

.corner-bl {
    bottom: -3px;
    left: -3px;
    border-width: 0 0 2px 2px;
    border-radius: 0 0 0 5px;
}

.corner-br {
    bottom: -3px;
    right: -3px;
    border-width: 0 2px 2px 0;
    border-radius: 0 0 5px;
}

.vision-focus-center {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 7px;
    height: 7px;
    border: 1px solid #FFFFFF;
    border-radius: 50%;
    background: var(--vision-blue);
    box-shadow: 0 0 12px rgba(0, 200, 232, 0.9);
    transform: translate(-50%, -50%);
}

/* Decorative orbit rings */

.vision-orbit {
    position: absolute;
    left: 50%;
    top: 45%;
    aspect-ratio: 1;
    border: 1px solid rgba(117, 255, 240, 0.22);
    border-radius: 50%;
    pointer-events: none;
}

.vision-orbit-outer {
    width: 70%;
    transform: translate(-50%, -50%);
    border-style: dashed;
    animation: visionOrbit 32s linear infinite;
}

.vision-orbit-inner {
    width: 59%;
    transform: translate(-50%, -50%);
    border-color: rgba(255, 255, 255, 0.14);
    animation: visionOrbitReverse 24s linear infinite;
}

/* Photo caption */

.vision-eye-caption {
    position: absolute;
    left: 17px;
    right: 17px;
    bottom: 17px;
    z-index: 3;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 15px;
    border: 1px solid rgba(255, 255, 255, 0.25);
    border-radius: 10px;
    color: #FFFFFF;
    background: rgba(8, 30, 45, 0.65);
    backdrop-filter: blur(14px);
}

.vision-caption-icon {
    display: grid;
    place-items: center;
    width: 40px;
    height: 40px;
    flex-shrink: 0;
    border-radius: 8px;
    color: #00C8E8;
    background: rgba(0, 200, 232, 0.2);
    font-size: 19px;
}

.vision-caption-small {
    display: block;
    margin-bottom: 5px;
    color: #8DEBFA;
    font-size: 8px;
    font-weight: 800;
    letter-spacing: 1.3px;
}

.vision-eye-caption strong {
    display: block;
    color: #FFFFFF;
    font-family: "Manrope", sans-serif;
    font-size: 14px;
    font-weight: 750;
}

/* Image corner data */

.vision-coordinate {
    position: absolute;
    z-index: 2;
    display: flex;
    align-items: center;
    gap: 8px;
    color: rgba(255, 255, 255, 0.88);
    font-size: 8px;
    font-weight: 700;
    letter-spacing: 1.3px;
}

.vision-coordinate i {
    color: #00C8E8;
    font-size: 13px;
}

.vision-coordinate-top {
    top: 17px;
    right: 17px;
}

.vision-coordinate-bottom {
    bottom: 110px;
    left: 20px;
}

/* Footer below image */

.vision-artwork-footer {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 17px 3px 0;
    color: var(--vh-muted);
    font-size: 8px;
    font-weight: 800;
    letter-spacing: 1.1px;
}

.vision-footer-line {
    flex: 1;
    height: 1px;
    background: var(--vh-line);
}

/* Section index */

.vision-hero-index {
    position: absolute;
    right: 24px;
    bottom: 28px;
    display: flex;
    align-items: center;
    gap: 9px;
    color: var(--vh-muted);
    font-size: 9px;
    font-weight: 800;
    letter-spacing: 1.7px;
}

.vision-hero-index > span:first-child {
    color: var(--vision-blue);
}

.vision-index-line {
    width: 27px;
    height: 1px;
    background: var(--vision-blue);
}

/* Entrance animations */

.vision-reveal {
    animation: visionReveal 0.8s both;
}

.vision-hero-content .vision-reveal:nth-child(1) {
    animation-delay: 0.05s;
}

.vision-hero-content .vision-reveal:nth-child(2) {
    animation-delay: 0.15s;
}

.vision-hero-content .vision-reveal:nth-child(3) {
    animation-delay: 0.25s;
}

.vision-hero-content .vision-reveal:nth-child(4) {
    animation-delay: 0.35s;
}

.vision-hero-content .vision-reveal:nth-child(5) {
    animation-delay: 0.45s;
}

.vision-artwork.vision-reveal {
    animation-delay: 0.25s;
}

@keyframes visionReveal {
    from {
        opacity: 0;
        transform: translateY(22px);
    }

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

@keyframes visionImageReveal {
    from {
        opacity: 0.45;
        transform: scale(1.055);
    }

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

@keyframes visionScan {
    0% {
        top: 0;
        opacity: 0;
    }

    8% {
        opacity: 0.9;
    }

    85% {
        opacity: 0.8;
    }

    100% {
        top: 100%;
        opacity: 0;
    }
}

@keyframes visionFocusBreathe {
    0%, 100% {
        transform: translate(-50%, -50%) scale(0.96);
        opacity: 0.68;
    }

    50% {
        transform: translate(-50%, -50%) scale(1.04);
        opacity: 1;
    }
}

@keyframes visionOrbit {
    from {
        transform: translate(-50%, -50%) rotate(0deg);
    }

    to {
        transform: translate(-50%, -50%) rotate(360deg);
    }
}

@keyframes visionOrbitReverse {
    from {
        transform: translate(-50%, -50%) rotate(360deg);
    }

    to {
        transform: translate(-50%, -50%) rotate(0deg);
    }
}

@keyframes visionPulse {
    0%, 100% {
        box-shadow: 0 0 0 4px rgba(0, 200, 232, 0.1);
    }

    50% {
        box-shadow: 0 0 0 7px rgba(0, 200, 232, 0.03);
    }
}

@keyframes visionUnderline {
    from {
        transform: scaleX(0);
    }

    to {
        transform: scaleX(1);
    }
}

@keyframes visionOrbFloat {
    0%, 100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-22px);
    }
}

/* Tablet */

@media (max-width: 991.98px) {
    .vision-hero {
        min-height: auto;
        padding: 64px 0 78px;
    }

    .vision-hero .row {
        --bs-gutter-x: 1.5rem;
    }

    .vision-hero-content {
        max-width: 680px;
        margin: 0 auto 12px;
    }

    .vision-heading {
        font-size: clamp(46px, 7vw, 65px);
    }

    .vision-artwork {
        max-width: 510px;
        margin: 20px auto 0;
    }

    .vision-eye-stage {
        aspect-ratio: 1 / 0.94;
    }
}

/* Mobile */

@media (max-width: 575.98px) {
    .vision-hero {
        padding: 14px 0 62px;
    }

    .vision-hero .row {
        --bs-gutter-x: 1.25rem;
    }

    .vision-eyebrow {
        gap: 8px;
        margin-bottom: 23px;
        font-size: 9px;
        letter-spacing: 1.15px;
    }

    .vision-eyebrow-icon {
        width: 31px;
        height: 31px;
        font-size: 15px;
    }

    .vision-heading {
        font-size: clamp(40px, 11.5vw, 54px);
        letter-spacing: -2.4px;
        line-height: 1.1;
    }

    .vision-heading span::after {
        height: 3px;
        bottom: -5px;
    }

    .vision-description {
        margin: 24px 0;
        font-size: 14px;
        line-height: 1.85;
    }

    .vision-hero-actions {
        align-items: stretch;
        gap: 10px;
    }

    .vision-btn {
        min-height: 51px;
        gap: 10px;
        padding: 0 14px;
        font-size: 11px;
    }

    .vision-btn-primary {
        flex: 1 1 55%;
    }

    .vision-btn-outline {
        flex: 1 1 40%;
        padding: 0 4px;
    }

    .vision-play-icon {
        width: 29px;
        height: 29px;
        flex-shrink: 0;
    }

    .vision-trust-row {
        margin-top: 27px;
    }

    .vision-trust-row strong {
        font-size: 11px;
    }

    .vision-trust-row p {
        font-size: 10px;
        line-height: 1.6;
    }

    .vision-hero-bottom-line {
        margin-top: 25px;
    }

    .vision-artwork {
        margin-top: 10px;
        padding: 10px;
        border-radius: 15px;
    }

    .vision-artwork-label {
        margin-bottom: 10px;
        font-size: 8px;
        letter-spacing: 1.2px;
    }

    .vision-eye-stage {
        aspect-ratio: 0.9 / 1;
        border-radius: 10px;
    }

    .vision-eye-caption {
        right: 10px;
        bottom: 10px;
        left: 10px;
        gap: 9px;
        padding: 10px;
    }

    .vision-caption-icon {
        width: 34px;
        height: 34px;
        font-size: 16px;
    }

    .vision-caption-small {
        font-size: 7px;
        letter-spacing: 0.8px;
    }

    .vision-eye-caption strong {
        font-size: 12px;
    }

    .vision-coordinate {
        font-size: 7px;
    }

    .vision-coordinate-bottom {
        bottom: 91px;
        left: 13px;
    }

    .vision-artwork-footer {
        gap: 8px;
        font-size: 7px;
        letter-spacing: 0.65px;
    }

    .vision-hero-index {
        right: 15px;
        bottom: 18px;
        font-size: 8px;
    }
}

/* Extra-small devices */

@media (max-width: 374px) {
    .vision-hero {
        padding-top: 35px;
    }

    .vision-heading {
        font-size: 38px;
        letter-spacing: -2px;
    }

    .vision-hero-actions {
        flex-direction: column;
        align-items: stretch;
    }

    .vision-btn {
        width: 100%;
        justify-content: center;
    }

    .vision-btn-outline {
        padding: 0 12px;
    }

    .vision-artwork-footer {
        font-size: 6px;
    }
}

/* Dark theme */

html[data-theme="dark"] .vision-hero {
    --vh-bg: #071321;
    --vh-text: #F0F8FF;
    --vh-muted: #B7D0E2;
    --vh-line: rgba(0, 200, 232, 0.16);
    --vh-surface: rgba(13, 32, 51, 0.90);

    background:
        radial-gradient(
            ellipse at 82% 42%,
            rgba(0, 200, 232, 0.13),
            transparent 36%
        ),
        radial-gradient(
            ellipse at 10% 15%,
            rgba(8, 127, 196, 0.12),
            transparent 35%
        ),
        linear-gradient(
            120deg,
            #071321 0%,
            #0D2033 56%,
            #122B42 100%
        );
}

html[data-theme="dark"] .vision-hero-grid {
    opacity: 0.22;
    background-image:
        linear-gradient(rgba(225, 245, 255, 0.055) 1px, transparent 1px),
        linear-gradient(90deg, rgba(225, 245, 255, 0.055) 1px, transparent 1px);
}

html[data-theme="dark"] .vision-artwork {
    border-color: rgba(255, 255, 255, 0.09);
    background: rgba(11, 29, 42, 0.55);
    box-shadow: 0 30px 90px rgba(0, 0, 0, 0.22);
}

html[data-theme="dark"] .vision-btn-outline:hover {
    color: #00C8E8;
}

/* Accessibility: respect reduced-motion settings */

@media (prefers-reduced-motion: reduce) {
    .vision-hero *,
    .vision-hero *::before,
    .vision-hero *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        scroll-behavior: auto !important;
        transition-duration: 0.01ms !important;
    }
}
