/* LEO Employment — homepage motion, glass & hero showcase */

/* ── Glass surfaces ── */
.glass-card {
    background: rgba(255, 255, 255, 0.72);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.55);
    box-shadow: 0 8px 32px rgba(15, 23, 42, 0.08);
}

.glass-card-dark {
    background: rgba(15, 23, 42, 0.45);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border: 1px solid rgba(255, 255, 255, 0.14);
    box-shadow: 0 8px 28px rgba(0, 0, 0, 0.25);
}

.glass-liquid {
    position: relative;
    overflow: hidden;
}

.glass-liquid::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.22) 0%, transparent 50%);
    pointer-events: none;
}

.glass-dark {
    background: rgba(15, 23, 42, 0.35);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.badge-glass {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.18);
}

.glass-subtle {
    background: rgba(255, 255, 255, 0.65);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 1px solid rgba(226, 232, 240, 0.85);
}

.glass-input {
    background: rgba(255, 255, 255, 0.85);
    border-color: rgba(226, 232, 240, 0.9);
}

/* ── Navbar scroll state ── */
#navbar.scrolled {
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-color: rgba(226, 232, 240, 0.9);
    box-shadow: 0 4px 24px rgba(15, 23, 42, 0.08);
}

#navbar.scrolled .nav-link {
    color: #334155;
}

#navbar.scrolled img {
    filter: none;
}

.nav-link.active {
    color: #3d7a6e !important;
    font-weight: 600;
}

/* ── Hero background ── */
.hero-aurora {
    position: absolute;
    inset: 0;
    overflow: hidden;
    pointer-events: none;
}

.hero-aurora__layer {
    position: absolute;
    border-radius: 50%;
    filter: blur(60px);
    opacity: 0.45;
    animation: aurora-drift 18s ease-in-out infinite;
}

.hero-aurora__layer--1 {
    width: 55%;
    height: 45%;
    top: -10%;
    left: -5%;
    background: radial-gradient(circle, rgba(61, 122, 110, 0.55) 0%, transparent 70%);
}

.hero-aurora__layer--2 {
    width: 50%;
    height: 50%;
    bottom: -15%;
    right: -10%;
    background: radial-gradient(circle, rgba(126, 196, 182, 0.4) 0%, transparent 70%);
    animation-delay: -6s;
}

.hero-aurora__layer--3 {
    width: 40%;
    height: 40%;
    top: 35%;
    left: 40%;
    background: radial-gradient(circle, rgba(90, 157, 143, 0.35) 0%, transparent 70%);
    animation-delay: -12s;
}

@keyframes aurora-drift {
    0%, 100% { transform: translate(0, 0) scale(1); }
    33% { transform: translate(3%, 2%) scale(1.05); }
    66% { transform: translate(-2%, 3%) scale(0.98); }
}

.hero-grid {
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
    background-size: 48px 48px;
    mask-image: radial-gradient(ellipse 80% 70% at 50% 50%, black 20%, transparent 75%);
}

.hero-spotlight {
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse 50% 45% at 70% 40%, rgba(126, 196, 182, 0.12) 0%, transparent 65%);
    pointer-events: none;
}

.hero-title-gradient {
    background: linear-gradient(135deg, #ffffff 0%, #d1eae5 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.hero-title-accent {
    color: #7ec4b6;
}

.hero-pulse-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #7ec4b6;
    box-shadow: 0 0 0 0 rgba(126, 196, 182, 0.6);
    animation: pulse-dot 2s ease-in-out infinite;
}

@keyframes pulse-dot {
    0%, 100% { box-shadow: 0 0 0 0 rgba(126, 196, 182, 0.5); }
    50% { box-shadow: 0 0 0 8px rgba(126, 196, 182, 0); }
}

.hero-tagline-text {
    transition: opacity 0.3s ease;
}

@keyframes morph {
    0%, 100% { border-radius: 60% 40% 30% 70% / 60% 30% 70% 40%; }
    50% { border-radius: 30% 60% 70% 40% / 50% 60% 30% 60%; }
}

.animate-morph {
    animation: morph 12s ease-in-out infinite;
}

/* ── Hero showcase (orbit + float cards) ── */
.hero-showcase {
    isolation: isolate;
}

.hero-orbit-ring {
    position: absolute;
    top: 50%;
    left: 50%;
    border-radius: 50%;
    border: 1px dashed rgba(126, 196, 182, 0.25);
    pointer-events: none;
}

.hero-orbit-ring--outer {
    width: 340px;
    height: 340px;
    margin-top: -170px;
    margin-left: -170px;
    animation: orbit-spin 40s linear infinite;
}

.hero-orbit-ring--inner {
    width: 220px;
    height: 220px;
    margin-top: -110px;
    margin-left: -110px;
    border-style: solid;
    border-color: rgba(126, 196, 182, 0.15);
    animation: orbit-spin-reverse 28s linear infinite;
}

@keyframes orbit-spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

@keyframes orbit-spin-reverse {
    from { transform: rotate(360deg); }
    to { transform: rotate(0deg); }
}

.hero-hub {
    position: relative;
    width: 88px;
    height: 88px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(61, 122, 110, 0.25);
    border: 2px solid rgba(126, 196, 182, 0.45);
    z-index: 5;
}

.hero-hub__glow {
    position: absolute;
    inset: -20px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(126, 196, 182, 0.35) 0%, transparent 70%);
    animation: hub-glow 3s ease-in-out infinite;
}

@keyframes hub-glow {
    0%, 100% { opacity: 0.6; transform: scale(1); }
    50% { opacity: 1; transform: scale(1.08); }
}

.hero-float-card {
    position: absolute;
    z-index: 10;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.45rem;
    padding: 0.85rem 1rem;
    min-width: 108px;
    max-width: 130px;
    text-align: center;
    text-decoration: none;
    color: #fff;
    border-radius: 1rem;
    transition: box-shadow 0.35s ease, border-color 0.35s ease, background 0.35s ease;
    will-change: transform;
}

.hero-float-card__icon {
    width: 2.25rem;
    height: 2.25rem;
    border-radius: 0.65rem;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(61, 122, 110, 0.45);
    color: #7ec4b6;
    font-size: 1rem;
    transition: transform 0.35s ease, background 0.35s ease;
}

.hero-float-card__label {
    font-size: 0.7rem;
    font-weight: 700;
    line-height: 1.25;
    letter-spacing: 0.02em;
}

.hero-float-card--1 {
    top: 6%;
    left: 50%;
    animation: hero-float-1 5s ease-in-out infinite;
}

.hero-float-card--2 {
    top: 50%;
    right: 2%;
    animation: hero-float-2 5s ease-in-out infinite -1.25s;
}

.hero-float-card--3 {
    bottom: 6%;
    left: 50%;
    animation: hero-float-3 5s ease-in-out infinite -2.5s;
}

.hero-float-card--4 {
    top: 50%;
    left: 2%;
    animation: hero-float-4 5s ease-in-out infinite -3.75s;
}

@keyframes hero-float-1 {
    0%, 100% { transform: translateX(-50%) translateY(0); }
    50% { transform: translateX(-50%) translateY(-10px); }
}

@keyframes hero-float-2 {
    0%, 100% { transform: translateY(-50%) translateX(0); }
    50% { transform: translateY(calc(-50% - 10px)) translateX(0); }
}

@keyframes hero-float-3 {
    0%, 100% { transform: translateX(-50%) translateY(0); }
    50% { transform: translateX(-50%) translateY(-10px); }
}

@keyframes hero-float-4 {
    0%, 100% { transform: translateY(-50%) translateX(0); }
    50% { transform: translateY(calc(-50% - 10px)) translateX(0); }
}

.hero-float-card--1:hover,
.hero-float-card--1:focus-visible {
    animation-play-state: paused;
    transform: translateX(-50%) translateY(-14px) scale(1.08);
}

.hero-float-card--2:hover,
.hero-float-card--2:focus-visible {
    animation-play-state: paused;
    transform: translateY(calc(-50% - 14px)) scale(1.08);
}

.hero-float-card--3:hover,
.hero-float-card--3:focus-visible {
    animation-play-state: paused;
    transform: translateX(-50%) translateY(-14px) scale(1.08);
}

.hero-float-card--4:hover,
.hero-float-card--4:focus-visible {
    animation-play-state: paused;
    transform: translateY(calc(-50% - 14px)) scale(1.08);
}

.hero-float-card:hover,
.hero-float-card:focus-visible {
    border-color: rgba(126, 196, 182, 0.55) !important;
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.35), 0 0 24px rgba(126, 196, 182, 0.15);
    background: rgba(15, 23, 42, 0.62);
    z-index: 20;
}

.hero-float-card:hover .hero-float-card__icon,
.hero-float-card:focus-visible .hero-float-card__icon {
    transform: scale(1.12);
    background: rgba(61, 122, 110, 0.7);
}

/* ── Hero stats & scroll hint ── */
.hero-stat {
    transform-style: preserve-3d;
}

.hero-scroll-hint {
    animation: scroll-bounce 2.5s ease-in-out infinite;
}

@keyframes scroll-bounce {
    0%, 100% { transform: translateX(-50%) translateY(0); }
    50% { transform: translateX(-50%) translateY(6px); }
}

.scroll-mouse {
    width: 22px;
    height: 34px;
    border: 2px solid rgba(255, 255, 255, 0.45);
    border-radius: 12px;
    display: flex;
    justify-content: center;
    padding-top: 6px;
}

.scroll-mouse-wheel {
    width: 3px;
    height: 8px;
    background: rgba(255, 255, 255, 0.7);
    border-radius: 2px;
    animation: scroll-wheel 2s ease-in-out infinite;
}

@keyframes scroll-wheel {
    0% { opacity: 1; transform: translateY(0); }
    100% { opacity: 0; transform: translateY(10px); }
}

/* ── Buttons & hover FX ── */
.magnetic-btn {
    --mx: 0px;
    --my: 0px;
    transform: translate(var(--mx), var(--my));
    transition: transform 0.15s ease-out, box-shadow 0.3s ease, background 0.3s ease, border-color 0.3s ease;
    will-change: transform;
}

.magnetic-btn:hover {
    transform: translate(var(--mx), calc(var(--my) - 4px));
}

.btn-liquid {
    position: relative;
    overflow: hidden;
}

.shine-hover {
    position: relative;
    overflow: hidden;
}

.shine-hover::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 60%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.22), transparent);
    transition: left 0.55s ease;
    pointer-events: none;
}

.shine-hover:hover::after {
    left: 120%;
}

.tilt-card {
    transform-style: preserve-3d;
    transition: transform 0.15s ease-out, box-shadow 0.3s ease;
    will-change: transform;
}

.tilt-card-inner {
    transform: translateZ(20px);
}

/* ── Scroll reveal ── */
.reveal,
.reveal-left,
.reveal-right,
.reveal-scale,
.reveal-blur {
    opacity: 0;
    transition: opacity 0.7s cubic-bezier(0.22, 1, 0.36, 1),
        transform 0.7s cubic-bezier(0.22, 1, 0.36, 1),
        filter 0.7s ease;
}

.reveal { transform: translateY(28px); }
.reveal-left { transform: translateX(-32px); }
.reveal-right { transform: translateX(32px); }
.reveal-scale { transform: scale(0.94); }
.reveal-blur { transform: translateY(20px); filter: blur(6px); }

.reveal.is-visible,
.reveal-left.is-visible,
.reveal-right.is-visible,
.reveal-scale.is-visible,
.reveal-blur.is-visible {
    opacity: 1;
    transform: none;
    filter: none;
}

.stagger-1 { transition-delay: 0.08s; }
.stagger-2 { transition-delay: 0.16s; }
.stagger-3 { transition-delay: 0.24s; }
.stagger-4 { transition-delay: 0.32s; }
.stagger-5 { transition-delay: 0.4s; }
.stagger-6 { transition-delay: 0.48s; }
.stagger-7 { transition-delay: 0.56s; }

/* ── Section ambience ── */
.section-mesh {
    position: relative;
    overflow: hidden;
}

.ambient-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    pointer-events: none;
}

.ambient-orb--brand {
    background: radial-gradient(circle, rgba(61, 122, 110, 0.35) 0%, transparent 70%);
}

.ambient-orb--accent {
    background: radial-gradient(circle, rgba(126, 196, 182, 0.3) 0%, transparent 70%);
}

.ambient-orb--navy {
    background: radial-gradient(circle, rgba(30, 41, 59, 0.2) 0%, transparent 70%);
}

.section-badge {
    background: rgba(61, 122, 110, 0.1);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 1px solid rgba(61, 122, 110, 0.15);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.5);
}

.section-wave {
    position: absolute;
    left: 0;
    right: 0;
    height: 80px;
    pointer-events: none;
}

.section-wave--top {
    top: 0;
    background: linear-gradient(to bottom, rgba(248, 250, 252, 0.9), transparent);
}

.section-wave--footer {
    top: 0;
    background: linear-gradient(to bottom, rgba(15, 23, 42, 0.06), transparent);
}

/* ── Services tabs ── */
.tab-button.active {
    color: #3d7a6e !important;
    background: rgba(61, 122, 110, 0.08);
}

#tabIndicator {
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1), width 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ── Process steps ── */
.process-step__card {
    transition: transform 0.35s ease, box-shadow 0.35s ease;
}

/* ── CTA & social ── */
.cta-glass::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.08) 0%, transparent 50%);
    pointer-events: none;
}

.social-glass {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.15);
    transition: transform 0.25s ease, background 0.25s ease;
}

.social-glass:hover {
    transform: translateY(-3px);
    background: rgba(255, 255, 255, 0.2);
}

/* ── Clients grid ── */
.clients-wall {
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.9) 0%, rgba(248, 250, 252, 0.95) 100%);
}

.clients-legend {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.5rem 0.75rem;
}

.clients-legend__item {
    font-size: 0.65rem;
}

#clients .clients-grid,
.clients-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.75rem;
}

@media (min-width: 640px) {
    #clients .clients-grid,
    .clients-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 1rem;
    }
}

@media (min-width: 1024px) {
    #clients .clients-grid,
    .clients-grid {
        grid-template-columns: repeat(5, minmax(0, 1fr));
    }
}

.client-chip {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 0.75rem 0.5rem;
    border-radius: 0.875rem;
    background: rgba(255, 255, 255, 0.85);
    border: 1px solid rgba(226, 232, 240, 0.9);
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
    overflow: hidden;
}

.client-chip:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 28px rgba(61, 122, 110, 0.12);
    border-color: rgba(61, 122, 110, 0.25);
}

.client-chip__accent {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #3d7a6e, #7ec4b6);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.client-chip:hover .client-chip__accent {
    opacity: 1;
}

.client-chip__logo-wrap {
    margin-bottom: 0.5rem;
}

.client-chip__logo {
    width: 3rem;
    height: 3rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.client-chip__logo img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.client-chip__initials {
    width: 2.75rem;
    height: 2.75rem;
    border-radius: 0.65rem;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    font-weight: 800;
    color: #3d7a6e;
    background: rgba(61, 122, 110, 0.1);
}

.client-chip__name {
    font-size: 0.7rem;
    font-weight: 700;
    color: #1e293b;
    line-height: 1.25;
}

.client-chip__industry {
    font-size: 0.6rem;
    color: #64748b;
    margin-top: 0.15rem;
}

.client-chip__services {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.2rem;
    margin-top: 0.35rem;
}

.client-svc {
    display: inline-flex;
    align-items: center;
    gap: 0.2rem;
    padding: 0.12rem 0.35rem;
    border-radius: 999px;
    font-size: 0.55rem;
    font-weight: 700;
    line-height: 1.2;
}

.client-svc--brand { background: rgba(61, 122, 110, 0.12); color: #2d5c53; }
.client-svc--amber { background: rgba(245, 158, 11, 0.12); color: #b45309; }
.client-svc--blue { background: rgba(59, 130, 246, 0.12); color: #1d4ed8; }
.client-svc--violet { background: rgba(139, 92, 246, 0.12); color: #6d28d9; }
.client-svc--rose { background: rgba(244, 63, 94, 0.12); color: #be123c; }
.client-svc--teal { background: rgba(20, 184, 166, 0.12); color: #0f766e; }
.client-svc--slate { background: rgba(100, 116, 139, 0.12); color: #475569; }

@media (max-width: 639px) {
    .client-svc__label { display: none; }
}

/* ── Reduced motion ── */
@media (prefers-reduced-motion: reduce) {
    .hero-aurora__layer,
    .hero-orbit-ring,
    .hero-float-card,
    .hero-hub__glow,
    .hero-scroll-hint,
    .scroll-mouse-wheel,
    .hero-pulse-dot,
    .animate-morph {
        animation: none !important;
    }

    .reveal,
    .reveal-left,
    .reveal-right,
    .reveal-scale,
    .reveal-blur {
        opacity: 1;
        transform: none;
        filter: none;
        transition: none;
    }

    .magnetic-btn,
    .tilt-card {
        transform: none !important;
    }
}
