/* Update brand colors, gradients, and premium surfaces here. */
:root {
    --bg: #FFFFFF;
    --bg-soft: #F9FAFB;
    --panel: rgba(255, 255, 255, 0.86);
    --panel-strong: rgba(249, 250, 251, 0.95);
    --text: #0F172A;
    --muted: #475569;
    --navy: #0B1F3A;
    --violet: #6D28D9;
    --divider: rgba(148, 163, 184, 0.24);
}

html {
    scroll-behavior: smooth;
}

body {
    background:
        radial-gradient(circle at top left, rgba(109, 40, 217, 0.10), transparent 30%),
        radial-gradient(circle at top right, rgba(11, 31, 58, 0.08), transparent 24%),
        linear-gradient(180deg, #ffffff 0%, #f9fafb 38%, #ffffff 100%);
    color: var(--text);
}

.cursor-glow {
    position: fixed;
    left: 0;
    top: 0;
    z-index: 30;
    width: 18rem;
    height: 18rem;
    border-radius: 9999px;
    pointer-events: none;
    opacity: 0;
    transform: translate3d(-50%, -50%, 0);
    background:
        radial-gradient(circle, rgba(109, 40, 217, 0.12) 0%, rgba(109, 40, 217, 0.08) 22%, rgba(139, 92, 246, 0.04) 42%, transparent 70%);
    filter: blur(16px);
    transition: opacity 220ms ease;
}

.cursor-glow.is-active {
    opacity: 1;
}

.header {
    position: fixed;
    inset: 0 0 auto 0;
    z-index: 90;
    pointer-events: none;
}

.progress-container {
    width: 100%;
    height: 8px;
    background: rgba(109, 40, 217, 0.14);
    border-bottom: 1px solid rgba(109, 40, 217, 0.12);
    box-shadow: inset 0 -1px 0 rgba(255, 255, 255, 0.55);
    backdrop-filter: blur(10px);
}

.progress-bar {
    width: 0%;
    height: 8px;
    border-radius: 9999px;
    background: linear-gradient(90deg, #6D28D9 0%, #8B5CF6 50%, #0B1F3A 100%);
    box-shadow: 0 0 24px rgba(109, 40, 217, 0.32);
    transition: width 120ms linear;
}

.parallax-scene {
    position: absolute;
    inset: 0;
    overflow: hidden;
    pointer-events: none;
}

.ambient-light {
    position: absolute;
    inset: -20% auto auto -10%;
    width: 52rem;
    height: 52rem;
    border-radius: 9999px;
    pointer-events: none;
    background:
        radial-gradient(circle, rgba(109, 40, 217, 0.12) 0%, rgba(139, 92, 246, 0.08) 28%, rgba(11, 31, 58, 0.03) 54%, transparent 72%);
    filter: blur(24px);
    animation: ambientFloat 16s ease-in-out infinite alternate;
}

.ambient-light.alt {
    right: -8%;
    left: auto;
    top: 18%;
    width: 36rem;
    height: 36rem;
    background:
        radial-gradient(circle, rgba(11, 31, 58, 0.08) 0%, rgba(109, 40, 217, 0.05) 36%, transparent 72%);
    animation-duration: 20s;
    animation-direction: alternate-reverse;
}

.parallax-grid {
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(11, 31, 58, 0.035) 1px, transparent 1px),
        linear-gradient(90deg, rgba(11, 31, 58, 0.035) 1px, transparent 1px);
    background-size: 5rem 5rem;
    mask-image: radial-gradient(circle at center, black 40%, transparent 86%);
    opacity: 0.28;
}

.parallax-art {
    position: absolute;
    inset: -5% -8% auto -8%;
    height: 92%;
    background: url("/assets/images/parallax-abstract.svg") center top / cover no-repeat;
    opacity: 0.72;
    mix-blend-mode: multiply;
}

.parallax-ring,
.parallax-dot {
    position: absolute;
    border-radius: 9999px;
}

.parallax-ring {
    border: 1px solid rgba(109, 40, 217, 0.16);
    background: radial-gradient(circle, rgba(255, 255, 255, 0.35), rgba(255, 255, 255, 0));
    box-shadow: inset 0 0 40px rgba(109, 40, 217, 0.05);
}

.parallax-ring.one {
    top: 12%;
    left: 6%;
    width: 13rem;
    height: 13rem;
}

.parallax-ring.two {
    right: 8%;
    top: 40%;
    width: 18rem;
    height: 18rem;
    border-color: rgba(11, 31, 58, 0.12);
}

.parallax-dot {
    background: radial-gradient(circle, rgba(109, 40, 217, 0.2), rgba(109, 40, 217, 0));
    filter: blur(2px);
}

.parallax-dot.one {
    top: 22%;
    right: 19%;
    width: 1rem;
    height: 1rem;
}

.parallax-dot.two {
    left: 28%;
    bottom: 18%;
    width: 1.25rem;
    height: 1.25rem;
    background: radial-gradient(circle, rgba(11, 31, 58, 0.18), rgba(11, 31, 58, 0));
}

a,
button {
    -webkit-tap-highlight-color: transparent;
}

img {
    max-width: 100%;
    height: auto;
}

.section-shell {
    padding-top: 5.5rem;
    padding-bottom: 5.5rem;
}

.page-hero {
    min-height: min(86vh, 900px);
}

.section-kicker {
    color: rgba(109, 40, 217, 0.82);
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.34em;
    text-transform: uppercase;
}

.section-title {
    margin-top: 1rem;
    max-width: 52rem;
    font-family: "Plus Jakarta Sans", sans-serif;
    font-size: clamp(2rem, 3vw, 3.65rem);
    font-weight: 800;
    line-height: 1.08;
    color: var(--text);
}

.glass-card {
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.95), rgba(249, 250, 251, 0.92));
    backdrop-filter: blur(16px);
    box-shadow: 0 20px 55px rgba(15, 23, 42, 0.08);
}

.shine-surface {
    position: relative;
    overflow: hidden;
    isolation: isolate;
}

.shine-surface::before {
    content: "";
    position: absolute;
    inset: -30% auto -30% -60%;
    width: 42%;
    background: linear-gradient(
        115deg,
        transparent 0%,
        rgba(255, 255, 255, 0.0) 30%,
        rgba(255, 255, 255, 0.5) 48%,
        rgba(237, 233, 254, 0.65) 56%,
        rgba(255, 255, 255, 0.0) 72%,
        transparent 100%
    );
    transform: translate3d(-180%, 0, 0) rotate(12deg);
    opacity: 0;
    pointer-events: none;
}

.shine-surface:hover::before,
.shine-surface:focus-within::before {
    animation: shineSweep 900ms cubic-bezier(0.2, 0.7, 0.2, 1);
    opacity: 1;
}

.btn-fancy {
    position: relative;
    overflow: hidden;
    isolation: isolate;
    transition:
        transform 260ms cubic-bezier(0.2, 0.8, 0.2, 1),
        box-shadow 260ms cubic-bezier(0.2, 0.8, 0.2, 1),
        filter 260ms cubic-bezier(0.2, 0.8, 0.2, 1),
        border-color 220ms ease,
        color 220ms ease;
}

.btn-fancy i,
.link-underline i {
    transition:
        transform 280ms cubic-bezier(0.2, 0.8, 0.2, 1),
        opacity 220ms ease;
    will-change: transform;
}

.btn-fancy::before {
    content: "";
    position: absolute;
    inset: 1px;
    border-radius: inherit;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.18), rgba(255, 255, 255, 0));
    opacity: 0.65;
    pointer-events: none;
}

.btn-fancy::after {
    content: "";
    position: absolute;
    inset: -35% auto -35% -55%;
    width: 34%;
    background: linear-gradient(
        110deg,
        transparent 0%,
        rgba(255, 255, 255, 0) 30%,
        rgba(255, 255, 255, 0.5) 48%,
        rgba(255, 255, 255, 0.9) 55%,
        rgba(255, 255, 255, 0) 70%,
        transparent 100%
    );
    transform: translate3d(-190%, 0, 0) rotate(14deg);
    opacity: 0;
    pointer-events: none;
}

.btn-fancy:hover,
.btn-fancy:focus-visible {
    transform: translateY(-3px) scale(1.01);
    box-shadow: 0 22px 48px rgba(109, 40, 217, 0.12);
    filter: saturate(1.08);
}

.btn-fancy:hover i,
.btn-fancy:focus-visible i {
    animation: arrowDrift 720ms cubic-bezier(0.2, 0.8, 0.2, 1);
}

.btn-fancy:hover::after,
.btn-fancy:focus-visible::after {
    animation: buttonSweep 820ms cubic-bezier(0.18, 0.8, 0.22, 1);
    opacity: 1;
}

.hero-section {
    min-height: 100vh;
}

.orb {
    position: absolute;
    border-radius: 9999px;
    filter: blur(48px);
    opacity: 0.85;
    will-change: transform;
}

.orb-one {
    left: -8rem;
    top: 8rem;
    height: 20rem;
    width: 20rem;
    background: radial-gradient(circle, rgba(109, 40, 217, 0.16), transparent 70%);
}

.orb-two {
    right: -6rem;
    top: 3rem;
    height: 26rem;
    width: 26rem;
    background: radial-gradient(circle, rgba(11, 31, 58, 0.12), transparent 70%);
}

.grid-fade {
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(11, 31, 58, 0.04) 1px, transparent 1px),
        linear-gradient(90deg, rgba(11, 31, 58, 0.04) 1px, transparent 1px);
    background-size: 4rem 4rem;
    mask-image: radial-gradient(circle at center, black 30%, transparent 80%);
    opacity: 0.35;
}

.service-card::after {
    content: "";
    position: absolute;
    inset: auto 1.5rem 1.5rem 1.5rem;
    height: 1px;
    background: linear-gradient(90deg, rgba(109, 40, 217, 0.12), rgba(11, 31, 58, 0.24), transparent);
}

.service-card {
    position: relative;
}

.reveal {
    opacity: 0;
    transform: translateY(26px) scale(0.985);
    filter: blur(6px);
    transition: opacity 760ms ease, transform 760ms ease, filter 760ms ease;
}

.reveal.is-visible {
    opacity: 1;
    transform: translateY(0) scale(1);
    filter: blur(0);
}

.link-underline {
    position: relative;
    display: inline-flex;
    align-items: center;
}

.link-underline::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -0.18rem;
    width: 100%;
    height: 1.5px;
    background: linear-gradient(90deg, var(--violet), var(--navy));
    transform: scaleX(0);
    transform-origin: left center;
    transition: transform 260ms ease;
}

.link-underline:hover::after,
.link-underline:focus-visible::after {
    transform: scaleX(1);
}

.link-underline:hover i,
.link-underline:focus-visible i {
    animation: arrowDrift 720ms cubic-bezier(0.2, 0.8, 0.2, 1);
}

.scroll-indicator {
    position: absolute;
    bottom: 1.5rem;
    left: 50%;
    transform: translateX(-50%);
    display: inline-flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: auto;
    z-index: 12;
}

.scroll-indicator span {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 4rem;
    width: 4rem;
    border-radius: 9999px;
    border: 1px solid rgba(109, 40, 217, 0.16);
    background: radial-gradient(circle at 30% 30%, rgba(255, 255, 255, 0.96), rgba(237, 233, 254, 0.84));
    box-shadow: 0 18px 45px rgba(109, 40, 217, 0.14);
    color: rgba(109, 40, 217, 0.92);
    overflow: hidden;
}

.scroll-indicator span::after {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: inherit;
    border: 1px solid rgba(109, 40, 217, 0.16);
    animation: scrollPulse 2.1s infinite;
}

.scroll-indicator span i {
    position: relative;
    z-index: 1;
    font-size: 0.95rem;
    animation: scrollArrow 1.8s ease-in-out infinite;
}

.scroll-indicator-link strong {
    margin-top: 0.85rem;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.34em;
    text-transform: uppercase;
    color: rgba(109, 40, 217, 0.82);
}

.parallax-node {
    will-change: transform;
}

.offline-banner {
    position: fixed;
    bottom: 5.75rem;
    right: 1rem;
    z-index: 80;
    display: none;
    border: 1px solid rgba(148, 163, 184, 0.25);
    border-radius: 9999px;
    background: rgba(255, 255, 255, 0.96);
    padding: 0.8rem 1rem;
    box-shadow: 0 12px 32px rgba(15, 23, 42, 0.12);
    backdrop-filter: blur(14px);
}

.offline-banner.is-visible {
    display: inline-flex;
}

.scroll-top-button {
    position: fixed;
    right: 1.25rem;
    bottom: 1.25rem;
    z-index: 85;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 3.25rem;
    height: 3.25rem;
    border: 1px solid rgba(148, 163, 184, 0.24);
    border-radius: 9999px;
    background: rgba(255, 255, 255, 0.94);
    color: var(--text);
    box-shadow: 0 18px 44px rgba(15, 23, 42, 0.14);
    opacity: 0;
    visibility: hidden;
    transform: translateY(12px);
    transition: opacity 220ms ease, transform 220ms ease, visibility 220ms ease, border-color 220ms ease, color 220ms ease;
    backdrop-filter: blur(14px);
}

.scroll-top-button.is-visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.scroll-top-button:hover,
.scroll-top-button:focus-visible {
    border-color: rgba(109, 40, 217, 0.28);
    color: var(--violet);
}

.grecaptcha-badge {
    visibility: visible !important;
    opacity: 1 !important;
    z-index: 110 !important;
}

.services-sticky {
    position: sticky;
    top: 7.5rem;
    align-self: start;
}

.project-thumb {
    overflow: hidden;
}

.project-thumb img {
    transition: transform 800ms cubic-bezier(0.2, 0.8, 0.2, 1), filter 320ms ease;
    transform: scale(1);
}

.group:hover .project-thumb img,
.group:focus-within .project-thumb img {
    transform: scale(1.08);
    filter: saturate(1.06);
}

.testimonial-slider {
    position: relative;
    overflow: hidden;
}

.testimonial-track {
    display: flex;
    transition: transform 620ms cubic-bezier(0.2, 0.8, 0.2, 1);
    will-change: transform;
}

.testimonial-slide {
    min-width: 100%;
}

.slider-control {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 3rem;
    height: 3rem;
    border: 1px solid rgba(148, 163, 184, 0.25);
    border-radius: 9999px;
    background: rgba(255, 255, 255, 0.92);
    color: var(--text);
    transition: border-color 220ms ease, color 220ms ease, transform 220ms ease;
}

.slider-control:hover,
.slider-control:focus-visible {
    border-color: rgba(109, 40, 217, 0.26);
    color: var(--violet);
    transform: translateY(-2px);
}

.slider-dots {
    display: flex;
    gap: 0.65rem;
}

.slider-dot {
    width: 0.7rem;
    height: 0.7rem;
    border-radius: 9999px;
    background: rgba(148, 163, 184, 0.32);
    transition: transform 220ms ease, background-color 220ms ease;
}

.slider-dot.is-active {
    transform: scale(1.22);
    background: rgba(109, 40, 217, 0.9);
}

.admin-shell {
    min-height: 100vh;
    background:
        radial-gradient(circle at top right, rgba(109, 40, 217, 0.12), transparent 24%),
        radial-gradient(circle at top left, rgba(139, 92, 246, 0.1), transparent 28%),
        linear-gradient(180deg, #ffffff 0%, #f9fafb 100%);
}

@keyframes scrollPulse {
    0% {
        transform: scale(0.94);
        opacity: 0.35;
    }

    100% {
        transform: scale(1.14);
        opacity: 0;
    }
}

@keyframes scrollArrow {
    0%,
    100% {
        transform: translateY(-2px);
    }

    50% {
        transform: translateY(4px);
    }
}

@keyframes shineSweep {
    0% {
        transform: translate3d(-180%, 0, 0) rotate(12deg);
        opacity: 0;
    }

    18% {
        opacity: 1;
    }

    100% {
        transform: translate3d(420%, 0, 0) rotate(12deg);
        opacity: 0;
    }
}

@keyframes buttonSweep {
    0% {
        transform: translate3d(-190%, 0, 0) rotate(14deg);
        opacity: 0;
    }

    16% {
        opacity: 1;
    }

    100% {
        transform: translate3d(420%, 0, 0) rotate(14deg);
        opacity: 0;
    }
}

@keyframes arrowDrift {
    0% {
        transform: translateX(0);
    }

    45% {
        transform: translateX(5px);
    }

    70% {
        transform: translateX(3px);
    }

    100% {
        transform: translateX(0);
    }
}

@keyframes ambientFloat {
    0% {
        transform: translate3d(0, 0, 0) scale(1);
    }

    100% {
        transform: translate3d(3%, 5%, 0) scale(1.08);
    }
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    .reveal,
    .reveal.is-visible {
        opacity: 1;
        transform: none;
        transition: none;
    }

    .scroll-indicator span::after {
        animation: none;
    }

    .shine-surface::before,
    .shine-surface:hover::before,
    .shine-surface:focus-within::before {
        animation: none;
        opacity: 0;
    }

    .btn-fancy,
    .btn-fancy:hover,
    .btn-fancy:focus-visible {
        transform: none;
        transition: none;
    }

    .btn-fancy::after,
    .btn-fancy:hover::after,
    .btn-fancy:focus-visible::after {
        animation: none;
        opacity: 0;
    }

    .btn-fancy i,
    .btn-fancy:hover i,
    .btn-fancy:focus-visible i,
    .link-underline i,
    .link-underline:hover i,
    .link-underline:focus-visible i {
        animation: none;
        transform: none;
        transition: none;
    }

    .parallax-node,
    .orb {
        transform: none !important;
    }

    .ambient-light {
        animation: none;
    }
}

@media (max-width: 767px) {
    .section-shell {
        padding-top: 4.5rem;
        padding-bottom: 4.5rem;
    }

    .page-hero {
        min-height: auto;
    }

    .parallax-art {
        inset: -3% -18% auto -18%;
        height: 82%;
        opacity: 0.58;
    }

    .parallax-ring.one,
    .parallax-ring.two {
        transform: scale(0.72);
        transform-origin: center;
    }

    .cursor-glow {
        display: none;
    }

    .scroll-indicator {
        display: none;
    }

    .grecaptcha-badge {
        bottom: 5.25rem !important;
    }

    .offline-banner {
        bottom: 5.6rem;
        right: 0.85rem;
        max-width: calc(100vw - 1.7rem);
    }

    .services-sticky {
        position: static;
    }
}
