/**
 * Custom Style Sheet
 * Empower Edge — Light Theme
 */

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: #f1f5f9;
}

::-webkit-scrollbar-thumb {
    background: #00115c;
    border-radius: 5px;
    border: 2px solid #f1f5f9;
}

::-webkit-scrollbar-thumb:hover {
    background: #1a2f85;
}

/* Base Adjustments */
body {
    scroll-behavior: smooth;
    text-rendering: optimizeLegibility;
    -webkit-font-smoothing: antialiased;
}

/* Glassmorphism Backdrop Override */
.backdrop-blur-md {
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}

/* Premium Card Glows */
.glow-card {
    position: relative;
    z-index: 1;
}

.glow-card::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border-radius: inherit;
    background: radial-gradient(circle at var(--mouse-x, 50%) var(--mouse-y, 50%), rgba(0, 17, 92, 0.06) 0%, transparent 60%);
    opacity: 0;
    z-index: -1;
    transition: opacity 0.3s ease;
}

.glow-card:hover::after {
    opacity: 1;
}

/* Animated Entrance Elements (Scroll Reveal System) */
.reveal {
    opacity: 0;
    will-change: transform, opacity;
}

.reveal-fade {
    transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal-up {
    transform: translateY(30px);
    transition: transform 0.8s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal-left {
    transform: translateX(-30px);
    transition: transform 0.8s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal-right {
    transform: translateX(30px);
    transition: transform 0.8s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal-zoom {
    transform: scale(0.95);
    transition: transform 0.8s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal-stack {
    transform: translateX(-120px) translateY(20px) rotate(-6deg);
    opacity: 0;
    transition: transform 0.9s cubic-bezier(0.175, 0.885, 0.32, 1.275), opacity 0.8s ease-out;
    transform-origin: bottom left;
}

.reveal.active {
    opacity: 1;
    transform: translate(0) scale(1) rotate(0deg);
}

/* Stagger delays up to 10 items */
.reveal-delay-1 {
    transition-delay: 100ms;
}

.reveal-delay-2 {
    transition-delay: 200ms;
}

.reveal-delay-3 {
    transition-delay: 300ms;
}

.reveal-delay-4 {
    transition-delay: 400ms;
}

.reveal-delay-5 {
    transition-delay: 500ms;
}

.reveal-delay-6 {
    transition-delay: 600ms;
}

.reveal-delay-7 {
    transition-delay: 700ms;
}

.reveal-delay-8 {
    transition-delay: 800ms;
}

/* Custom Background Shimmer for CTA and skeleton loaders */
.shimmer-bg {
    background: linear-gradient(90deg, #e0e5f4 25%, #c1c9e8 50%, #e0e5f4 75%);
    background-size: 200% 100%;
    animation: shimmer 3s infinite linear;
}

/* Custom Grid Grid-Decoration dot */
.grid-bg-dots {
    background-image: radial-gradient(rgba(0, 17, 92, 0.1) 1.5px, transparent 1.5px);
    background-size: 24px 24px;
}

.grid-bg-dots-navy {
    background-image: radial-gradient(rgba(0, 17, 92, 0.12) 1.5px, transparent 1.5px);
    background-size: 24px 24px;
}

/* Text Shimmer Effect */
.shimmer-text {
    background: linear-gradient(to right, #00115c 20%, #5568b8 50%, #00115c 80%);
    background-size: 200% auto;
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: textShimmer 4s linear infinite;
}

@keyframes textShimmer {
    to {
        background-position: 200% center;
    }
}

/* Infinite Scrolling Marquee */
.marquee-container {
    overflow: hidden;
    display: flex;
    user-select: none;
    mask-image: linear-gradient(to right, transparent, #000 10%, #000 90%, transparent);
    -webkit-mask-image: linear-gradient(to right, transparent, #000 10%, #000 90%, transparent);
}

.marquee-content {
    flex-shrink: 0;
    display: flex;
    justify-content: space-around;
    align-items: center;
    gap: 3rem;
    min-width: 100%;
    animation: marquee-scroll 30s linear infinite;
}

.marquee-container:hover .marquee-content {
    animation-play-state: paused;
}

@keyframes marquee-scroll {
    0% {
        transform: translateX(0%);
    }

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

/* Custom Floating Animations for Hero Cards */
.animate-float-1 {
    animation: float-1 6s ease-in-out infinite;
}

.animate-float-2 {
    animation: float-2 8s ease-in-out infinite;
}

.animate-float-3 {
    animation: float-3 7s ease-in-out infinite;
}

@keyframes float-1 {

    0%,
    100% {
        transform: translateY(0px) rotate(0deg);
    }

    50% {
        transform: translateY(-15px) rotate(2deg);
    }
}

@keyframes float-2 {

    0%,
    100% {
        transform: translateY(0px) rotate(0deg);
    }

    50% {
        transform: translateY(12px) rotate(-3deg);
    }
}

@keyframes float-3 {

    0%,
    100% {
        transform: translateY(0px) scale(1);
    }

    50% {
        transform: translateY(-10px) scale(1.05);
    }
}

/* Glassmorphism card styles — Light variant */
.glass-panel {
    background: rgba(0, 17, 92, 0.85);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.12);
}

/* Light glassmorphism for hero floating badges */
.glass-panel-light {
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(0, 17, 92, 0.08);
    box-shadow: 0 8px 32px rgba(0, 17, 92, 0.08);
}

/* Custom Arrow Slide Animation */
@keyframes arrow-slide {

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

    50% {
        transform: translateX(8px);
    }
}

.animate-arrow-slide {
    animation: arrow-slide 1.5s cubic-bezier(0.4, 0, 0.2, 1) infinite;
    -webkit-text-stroke: 2px rgba(0, 17, 92, 0.3);
}

/* Moving Highlight Border Animation */
.animated-border-card {
    position: relative;
    border-radius: 1.5rem;
    /* rounded-3xl */
    overflow: hidden;
    padding: 2px;
    /* User Typography Overrides */
p {
    font-size: 16px !important;
    line-height: 1.6 !important;
}    /* Border width */
    background: transparent;
    box-shadow: 0 4px 24px rgba(0, 17, 92, 0.06), 0 1.5px 6px rgba(0, 17, 92, 0.04);
    transition: box-shadow 0.4s ease;
}

.animated-border-card:hover {
    box-shadow: 0 12px 40px rgba(0, 17, 92, 0.10), 0 4px 16px rgba(0, 17, 92, 0.08);
}

.animated-border-card::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: conic-gradient(from 0deg,
            transparent 0%,
            transparent 35%,
            #00115c 45%,
            #5568b8 50%,
            #00115c 55%,
            transparent 65%,
            transparent 100%);
    animation: spin-border 15s linear infinite;
    z-index: 0;
    opacity: 0.45;
    transition: opacity 0.6s ease;
}

.animated-border-card:hover::before {
    opacity: 1;
}

@keyframes spin-border {
    100% {
        transform: rotate(360deg);
    }
}

.animated-border-card>.card-content {
    position: relative;
    z-index: 1;
    background: white;
    border-radius: calc(1.5rem - 2px);
    height: 100%;
    width: 100%;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

/* Running Thick Border Card (Lg version for Who We Are) */
.running-border-card {
    position: relative;
    border-radius: 2.5rem;
    /* matching rounded-[2.5rem] */
    overflow: hidden;
    padding: 6px;
    /* Thicker border (6px) */
    background: transparent;
    box-shadow: 0 25px 60px rgba(0, 17, 92, 0.08);
    transition: box-shadow 0.4s ease;
}

.running-border-card::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: conic-gradient(from 0deg,
            transparent 0%,
            transparent 35%,
            #00115c 45%,
            #5568b8 50%,
            #00115c 55%,
            transparent 65%,
            transparent 100%);
    animation: spin-border 10s linear infinite;
    z-index: 0;
    opacity: 0.9;
    /* Thicker and more visible */
}

.running-border-card>.card-content-lg {
    position: relative;
    z-index: 1;
    background: white;
    border-radius: calc(2.5rem - 6px);
    /* Inner rounded radius adjusted for 6px padding */
    height: 100%;
    width: 100%;
    overflow: hidden;
}

/* Card Scroll Spin-In Animation (Why Choose Us cards) */
.card-spin-reveal {
    opacity: 0;
    transform: rotateY(90deg) scale(0.95);
    transition: opacity 0.6s cubic-bezier(0.16, 1, 0.3, 1),
        transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
    will-change: transform, opacity;
}

.card-spin-reveal.spun-in {
    opacity: 1;
    transform: rotateY(0deg) scale(1);
}

/* Animated Flow Arrows (Icon Version) */
@keyframes float-right {

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

    50% {
        transform: translateX(8px);
    }
}

.animate-float-right {
    animation: float-right 2s ease-in-out infinite;
}

/* User Typography Overrides */
p {
    line-height: 2 !important;
}