@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700&family=Plus+Jakarta+Sans:wght@400;500;600;700;800&display=swap');

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: #f1f5f9;
}

::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: #94a3b8;
}

/* Glassmorphism Utilities */
.glass-card {
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.5);
}

.text-gradient {
    background: linear-gradient(135deg, #4f46e5 0%, #ec4899 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    color: transparent;
}

/* Animation Utilities */
.delay-100 {
    animation-delay: 100ms;
}

.delay-200 {
    animation-delay: 200ms;
}

.delay-300 {
    animation-delay: 300ms;
}

/* Smooth Scrolling */
html {
    scroll-behavior: smooth;
}

/* Hero Portrait */
.hero-photo-wrap {
    --head-anchor-x: 49%;
    --head-anchor-y: 31%;
    position: relative;
    max-width: 480px;
    margin: 0 auto;
    isolation: isolate;
    overflow: visible;
}

.hero-photo-glow {
    position: absolute;
    left: 4%;
    right: 4%;
    top: 8%;
    height: 74%;
    background:
        radial-gradient(circle at 70% 26%, rgba(99, 102, 241, 0.5) 0%, rgba(99, 102, 241, 0) 56%),
        radial-gradient(circle at 24% 40%, rgba(236, 72, 153, 0.42) 0%, rgba(236, 72, 153, 0) 62%),
        radial-gradient(circle at 52% 74%, rgba(14, 165, 233, 0.25) 0%, rgba(14, 165, 233, 0) 64%);
    filter: blur(40px);
    opacity: 0.96;
    z-index: 1;
    pointer-events: none;
    animation: hero-glow-intro 920ms ease-out both, hero-aura-breathe 7.2s ease-in-out 920ms infinite;
}

.hero-head-glow {
    position: absolute;
    width: 42%;
    aspect-ratio: 1 / 1;
    top: calc(var(--head-anchor-y) + 1%);
    left: var(--head-anchor-x);
    transform: translate(-50%, -50%);
    border-radius: 999px;
    background:
        radial-gradient(circle at 50% 50%, rgba(236, 72, 153, 0.34) 0%, rgba(236, 72, 153, 0) 62%),
        radial-gradient(circle at 62% 40%, rgba(99, 102, 241, 0.34) 0%, rgba(99, 102, 241, 0) 64%);
    filter: blur(22px);
    opacity: 0.9;
    z-index: 2;
    pointer-events: none;
    animation: hero-head-intro 1s ease-out both, hero-head-glow-float 6.8s ease-in-out 1s infinite;
}

.hero-photo-wrap::before {
    content: "";
    position: absolute;
    inset: 10% 10% 18% 10%;
    border-radius: 46% 54% 50% 50% / 52% 48% 56% 44%;
    background: conic-gradient(
        from 110deg,
        rgba(99, 102, 241, 0.25),
        rgba(236, 72, 153, 0.26),
        rgba(14, 165, 233, 0.2),
        rgba(99, 102, 241, 0.25)
    );
    filter: blur(22px);
    opacity: 0.65;
    z-index: 0;
    pointer-events: none;
    animation: hero-ring-intro 1.1s ease-out both, hero-halo-rotate 13s linear 1.1s infinite;
}

.hero-photo-wrap::after {
    content: "";
    position: absolute;
    width: 44%;
    aspect-ratio: 1 / 1;
    top: 21%;
    right: 4%;
    border-radius: 50%;
    background: radial-gradient(circle at 40% 40%, rgba(148, 163, 184, 0.34) 0%, rgba(148, 163, 184, 0) 68%);
    filter: blur(10px);
    z-index: 1;
    pointer-events: none;
    animation: hero-orb-intro 1.1s ease-out both, hero-orb-drift 9s ease-in-out 1.1s infinite;
}

.hero-photo-frame {
    position: relative;
    border-radius: 0;
    overflow: visible;
    border: 0;
    background: transparent;
    transform: none;
    box-shadow: none;
    transition: none;
    z-index: 3;
    animation: hero-photo-intro 1s ease-out both;
}

.head-service-sequence {
    --seq-cycle: 24.4s;
    --line-length: 172px;
    --left-line-stretch: -1.62;
    --left-line-flatten: 0.78;
    --left-track-drop: 8px;
    --line-height: 96px;
    --line-start-right: 6px;
    --line-start-left: 216px;
    --line-start-y: 90px;
    --line-end-right: 166px;
    --line-end-left: -44px;
    --line-end-y: 10px;
    --line-end-y-left: 20px;
    position: absolute;
    inset: 0;
    z-index: 1;
    pointer-events: none;
}

.service-item {
    position: absolute;
    width: var(--line-length);
    height: var(--line-height);
    top: calc(var(--head-anchor-y) + var(--y) - var(--line-start-y));
    opacity: 0;
    transform: translateY(2px) scale(0.96);
    animation: service-item-visibility var(--seq-cycle) linear infinite;
    animation-delay: var(--delay);
}

.service-item.right {
    left: calc(var(--head-anchor-x) + var(--x) - var(--line-start-right));
}

.service-item.left {
    left: calc(var(--head-anchor-x) + var(--x) - var(--line-start-left));
    top: calc(var(--head-anchor-y) + var(--y) - var(--line-start-y) + var(--left-track-drop));
}

.service-line {
    position: absolute;
    inset: 0;
}

.service-path {
    width: 100%;
    height: 100%;
    fill: none;
    overflow: visible;
    display: block;
    stroke: rgba(79, 70, 229, 0.88);
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-dasharray: 6 7;
    stroke-dashoffset: 160;
    opacity: 0;
    animation: service-line-draw var(--seq-cycle) linear infinite;
    animation-delay: var(--delay);
}

.service-item.left .service-path {
    transform: scale(var(--left-line-stretch), var(--left-line-flatten));
    transform-origin: center;
}

.service-line::after {
    content: "";
    position: absolute;
    width: 9px;
    height: 9px;
    border-right: 2px solid rgba(79, 70, 229, 0.96);
    border-top: 2px solid rgba(79, 70, 229, 0.96);
    opacity: 0;
    animation: service-arrow-pop var(--seq-cycle) linear infinite;
    animation-delay: var(--delay);
}

.service-item.right .service-line::after {
    left: calc(var(--line-end-right) - 3px);
    top: calc(var(--line-end-y) - 4px);
    transform: rotate(-35deg);
}

.service-item.left .service-line::after {
    left: calc(var(--line-end-left) - 4px);
    top: calc(var(--line-end-y-left) - 4px);
    transform: rotate(145deg);
}

.service-dot {
    position: absolute;
    top: 0;
    left: 0;
    width: 8px;
    height: 8px;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.9);
    background: conic-gradient(from 170deg, #4f46e5, #ec4899, #4f46e5);
    box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.86), 0 0 13px rgba(79, 70, 229, 0.5);
    opacity: 0;
    offset-rotate: 0deg;
}

.service-item.right .service-dot {
    animation: service-dot-right var(--seq-cycle) linear infinite;
    animation-delay: var(--delay);
    offset-path: path('M6 90 C38 82 61 72 79 54 C87 46 88 34 80 28 C72 22 62 27 62 39 C62 52 79 56 101 48 C124 40 146 26 166 10');
}

.service-item.left .service-dot {
    animation: service-dot-left var(--seq-cycle) linear infinite;
    animation-delay: var(--delay);
    offset-path: path('M166 96 C124 93 88 86 62 74 C46 66 36 54 40 46 C46 38 64 38 68 48 C72 58 56 64 24 60 C-6 55 -30 40 -44 20');
}

.service-icon {
    position: absolute;
    width: 2.6rem;
    height: 2.6rem;
    border-radius: 999px;
    border: 1px solid rgba(226, 232, 240, 0.88);
    background: rgba(255, 255, 255, 0.86);
    box-shadow: 0 8px 16px rgba(15, 23, 42, 0.12);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transform: translate(-50%, -50%) scale(0.86);
    opacity: 0;
    animation: service-icon-pop var(--seq-cycle) linear infinite;
    animation-delay: var(--delay);
}

.service-item.right .service-icon {
    left: var(--line-end-right);
    top: var(--line-end-y);
}

.service-item.left .service-icon {
    left: var(--line-end-left);
    top: var(--line-end-y-left);
}

.service-logo {
    width: 22px;
    height: 22px;
    object-fit: contain;
    display: block;
}

.service-icon i {
    font-size: 1.18rem;
    color: #334155;
}


.hero-photo {
    display: block;
    width: 100%;
    aspect-ratio: auto;
    object-fit: contain;
    object-position: center 10%;
    background: transparent;
    mix-blend-mode: normal;
    filter: grayscale(1) contrast(1.08) brightness(1.03);
    transform: none;
    transition: filter 300ms ease;
}

.hero-photo-sheen {
    display: none;
}

@keyframes hero-aura-breathe {
    0%,
    100% {
        opacity: 0.72;
        transform: scale(1);
    }

    50% {
        opacity: 0.95;
        transform: scale(1.04);
    }
}

@keyframes hero-glow-intro {
    0% {
        opacity: 0;
        filter: blur(64px);
    }

    100% {
        opacity: 0.96;
        filter: blur(40px);
    }
}

@keyframes hero-head-intro {
    0% {
        opacity: 0;
        filter: blur(40px);
    }

    100% {
        opacity: 0.9;
        filter: blur(22px);
    }
}

@keyframes hero-photo-intro {
    0% {
        opacity: 0;
        filter: saturate(0.86) contrast(0.92);
    }

    100% {
        opacity: 1;
        filter: saturate(1) contrast(1);
    }
}

@keyframes hero-ring-intro {
    0% {
        opacity: 0;
        filter: blur(40px);
    }

    100% {
        opacity: 0.65;
        filter: blur(22px);
    }
}

@keyframes hero-orb-intro {
    0% {
        opacity: 0;
        filter: blur(24px);
    }

    100% {
        opacity: 1;
        filter: blur(10px);
    }
}

@keyframes service-item-visibility {
    0%,
    4% {
        opacity: 0;
        transform: translateY(2px) scale(0.96);
    }

    6%,
    11% {
        opacity: 1;
        transform: translateY(0) scale(1);
    }

    13%,
    100% {
        opacity: 0;
        transform: translateY(-2px) scale(0.97);
    }
}

@keyframes service-line-draw {
    0%,
    5% {
        opacity: 0;
        stroke-dashoffset: 160;
    }

    7%,
    10% {
        opacity: 1;
        stroke-dashoffset: 0;
    }

    12%,
    100% {
        opacity: 0;
        stroke-dashoffset: -20;
    }
}

@keyframes service-arrow-pop {
    0%,
    7% {
        opacity: 0;
    }

    9%,
    11% {
        opacity: 1;
    }

    12%,
    100% {
        opacity: 0;
    }
}

@keyframes service-dot-right {
    0%,
    6% {
        opacity: 0;
        offset-distance: 0%;
        transform: scale(0.8);
    }

    7%,
    10% {
        opacity: 1;
        offset-distance: 100%;
        transform: scale(1);
    }

    12%,
    100% {
        opacity: 0;
        offset-distance: 100%;
        transform: scale(0.9);
    }
}

@keyframes service-dot-left {
    0%,
    6% {
        opacity: 0;
        offset-distance: 0%;
        transform: scale(0.8);
    }

    7%,
    10% {
        opacity: 1;
        offset-distance: 100%;
        transform: scale(1);
    }

    12%,
    100% {
        opacity: 0;
        offset-distance: 100%;
        transform: scale(0.9);
    }
}

@keyframes service-icon-pop {
    0%,
    8% {
        opacity: 0;
        transform: translate(-50%, -50%) scale(0.82);
    }

    10%,
    12% {
        opacity: 1;
        transform: translate(-50%, -50%) scale(1);
    }

    13%,
    100% {
        opacity: 0;
        transform: translate(-50%, -50%) scale(0.9);
    }
}


@keyframes hero-orb-drift {
    0%,
    100% {
        transform: translate3d(0, 0, 0);
        opacity: 0.6;
    }

    50% {
        transform: translate3d(-12px, 9px, 0);
        opacity: 0.85;
    }
}

@keyframes hero-head-glow-float {
    0%,
    100% {
        transform: translate(-50%, -50%) translateY(0px) scale(1);
        opacity: 0.82;
    }

    50% {
        transform: translate(-50%, -50%) translateY(-8px) scale(1.06);
        opacity: 1;
    }
}


@keyframes hero-halo-rotate {
    0% {
        transform: rotate(0deg) scale(1);
    }

    50% {
        transform: rotate(180deg) scale(1.02);
    }

    100% {
        transform: rotate(360deg) scale(1);
    }
}

@media (max-width: 1024px) {
    .hero-photo-wrap {
        --head-anchor-x: 49.8%;
        --head-anchor-y: 32%;
        margin-top: 1.5rem;
        max-width: 360px;
    }

    .head-service-sequence {
        --line-length: 146px;
        --left-line-stretch: -1.5;
        --left-line-flatten: 0.8;
        --left-track-drop: 7px;
        --line-height: 82px;
        --line-start-right: 5px;
        --line-start-left: 175px;
        --line-start-y: 77px;
        --line-end-right: 141px;
        --line-end-left: -37px;
        --line-end-y: 9px;
        --line-end-y-left: 18px;
    }

    .service-icon {
        width: 2.2rem;
        height: 2.2rem;
    }

    .service-logo {
        width: 17px;
        height: 17px;
    }

    .service-icon i {
        font-size: 1rem;
    }
}

@media (max-width: 640px) {
    .hero-photo-wrap {
        --head-anchor-x: 50%;
        --head-anchor-y: 33.5%;
        max-width: 310px;
    }

    .head-service-sequence {
        display: none;
    }
}

@media (prefers-reduced-motion: reduce) {
    .hero-photo-glow,
    .hero-head-glow,
    .hero-photo-wrap::before,
    .hero-photo-wrap::after,
    .service-item,
    .service-path,
    .service-line::after,
    .service-dot,
    .service-icon,
    .hero-photo-sheen {
        animation: none;
    }

    .hero-photo-frame,
    .hero-photo {
        transition: none;
    }
}
