/* ========================================
   FINTECH WEBSITE - COMPONENTS CSS
   ========================================= */

/* ========================================
   GLASSMORPHISM EFFECTS
   ========================================= */

.glass {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.glass-thick {
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.15);
}

/* ========================================
   GRADIENT BACKGROUNDS
   ========================================= */

.gradient-primary {
    background: linear-gradient(135deg, #6366F1 0%, #8B5CF6 50%, #06B6D4 100%);
}

.gradient-secondary {
    background: linear-gradient(135deg, #06B6D4 0%, #22D3EE 50%, #6366F1 100%);
}

.gradient-tertiary {
    background: linear-gradient(135deg, #8B5CF6 0%, #6366F1 50%, #06B6D4 100%);
}

/* ========================================
   PROFESSIONAL SHADOW EFFECTS
   ========================================= */

.shadow-glow {
    box-shadow: 0 8px 24px rgba(30, 58, 138, 0.15), 0 4px 12px rgba(0, 0, 0, 0.08);
}

.shadow-glow-cyan {
    box-shadow: 0 8px 24px rgba(59, 130, 246, 0.15), 0 4px 12px rgba(0, 0, 0, 0.08);
}

.shadow-glow-purple {
    box-shadow: 0 8px 24px rgba(99, 102, 241, 0.15), 0 4px 12px rgba(0, 0, 0, 0.08);
}

/* ========================================
   HOVER LIFT EFFECT
   ========================================= */

.lift {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.lift:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 48px rgba(0, 0, 0, 0.5);
}

/* ========================================
   BLUR BACKGROUNDS
   ========================================= */

.blur-bg {
    background: rgba(15, 23, 42, 0.4);
    backdrop-filter: blur(10px);
}

.blur-bg-heavy {
    background: rgba(15, 23, 42, 0.6);
    backdrop-filter: blur(20px);
}

/* ========================================
   GRADIENT TEXT
   ========================================= */

.gradient-text-primary {
    background: linear-gradient(135deg, #6366F1 0%, #06B6D4 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.gradient-text-secondary {
    background: linear-gradient(135deg, #8B5CF6 0%, #22D3EE 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* ========================================
   CUSTOM ANIMATIONS
   ========================================= */

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translate(-50px, -50px);
    }
    to {
        opacity: 1;
        transform: translate(0, 0);
    }
}

@keyframes slideOut {
    from {
        opacity: 1;
        transform: translate(0, 0);
    }
    to {
        opacity: 0;
        transform: translate(50px, 50px);
    }
}

@keyframes pulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.5;
    }
}

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

@keyframes scale-in {
    from {
        transform: scale(0.9);
        opacity: 0;
    }
    to {
        transform: scale(1);
        opacity: 1;
    }
}

@keyframes wave {
    0% {
        clip-path: polygon(0% 45%, 0% 60%, 5% 55%, 10% 50%, 15% 55%, 20% 60%, 25% 58%, 30% 60%, 35% 58%, 40% 60%, 45% 55%, 50% 60%, 55% 60%, 60% 58%, 65% 60%, 70% 55%, 75% 60%, 80% 58%, 85% 60%, 90% 55%, 95% 60%, 100% 60%, 100% 100%, 0% 100%);
    }
    100% {
        clip-path: polygon(0% 45%, 0% 60%, 5% 55%, 10% 50%, 15% 55%, 20% 60%, 25% 58%, 30% 60%, 35% 58%, 40% 60%, 45% 55%, 50% 60%, 55% 60%, 60% 58%, 65% 60%, 70% 55%, 75% 60%, 80% 58%, 85% 60%, 90% 55%, 95% 60%, 100% 60%, 100% 0%, 0% 0%);
    }
}

@keyframes blink {
    0%, 49%, 100% {
        opacity: 1;
    }
    50%, 99% {
        opacity: 0;
    }
}

/* ========================================
   GLASS CARD STYLES
   ========================================= */

.card-glass {
    background: rgba(30, 41, 59, 0.5);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(148, 163, 184, 0.1);
    border-radius: 12px;
    padding: 1.5rem;
}

.card-glass-lg {
    background: rgba(30, 41, 59, 0.4);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(148, 163, 184, 0.12);
    border-radius: 20px;
    padding: 2rem;
}

.card-glass:hover {
    border-color: rgba(148, 163, 184, 0.2);
    background: rgba(30, 41, 59, 0.6);
}

/* ========================================
   BADGE STYLES
   ========================================= */

.badge {
    display: inline-block;
    padding: 0.4rem 0.8rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.5px;
}

.badge-primary {
    background: rgba(99, 102, 241, 0.2);
    color: #6366F1;
    border: 1px solid rgba(99, 102, 241, 0.3);
}

.badge-accent {
    background: rgba(6, 182, 212, 0.2);
    color: #06B6D4;
    border: 1px solid rgba(6, 182, 212, 0.3);
}

.badge-success {
    background: rgba(34, 197, 94, 0.2);
    color: #22C55E;
    border: 1px solid rgba(34, 197, 94, 0.3);
}

/* ========================================
   BORDER STYLES
   ========================================= */

.border-bottom-gradient {
    border-bottom: 3px solid;
    border-image: linear-gradient(90deg, #6366F1, #06B6D4) 1;
}

.border-top-gradient {
    border-top: 3px solid;
    border-image: linear-gradient(90deg, #6366F1, #06B6D4) 1;
}

/* ========================================
   PROGRESS BAR
   ========================================= */

.progress-bar {
    width: 100%;
    height: 6px;
    background: var(--surface-light);
    border-radius: 3px;
    overflow: hidden;
}

.progress-bar-fill {
    height: 100%;
    background: linear-gradient(90deg, #6366F1, #06B6D4);
    border-radius: 3px;
    transition: width 0.5s ease;
}

/* ========================================
   TOOLTIP
   ========================================= */

.tooltip {
    position: relative;
    display: inline-block;
}

.tooltip::after {
    content: attr(data-tooltip);
    position: absolute;
    background: rgba(0, 0, 0, 0.9);
    color: white;
    padding: 0.5rem 0.75rem;
    border-radius: 6px;
    white-space: nowrap;
    bottom: 125%;
    left: 50%;
    transform: translateX(-50%);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s;
    font-size: 0.85rem;
    z-index: 100;
}

.tooltip:hover::after {
    opacity: 1;
}

/* ========================================
   DIVIDER
   ========================================= */

.divider {
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--border-light), transparent);
    margin: 2rem 0;
}

.divider-vertical {
    width: 1px;
    height: 100%;
    background: linear-gradient(180deg, transparent, var(--border-light), transparent);
}

/* ========================================
   TEXT EFFECTS
   ========================================= */

.text-gradient {
    background: linear-gradient(135deg, #6366F1, #06B6D4);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.text-shadow-glow {
    text-shadow: 0 2px 8px rgba(30, 58, 138, 0.15);
}

.text-underline-animated {
    position: relative;
    display: inline-block;
}

.text-underline-animated::after {
    content: '';
    position: absolute;
    width: 0;
    height: 3px;
    background: linear-gradient(90deg, #6366F1, #06B6D4);
    bottom: -5px;
    left: 0;
    transition: width 0.3s ease;
}

.text-underline-animated:hover::after {
    width: 100%;
}

/* ========================================
   ICON STYLES
   ========================================= */

.icon-box {
    width: 50px;
    height: 50px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.icon-box-primary {
    background: linear-gradient(135deg, #6366F1, #8B5CF6);
    color: white;
}

.icon-box-accent {
    background: linear-gradient(135deg, #06B6D4, #22D3EE);
    color: white;
}

.icon-box:hover {
    transform: scale(1.1) rotate(5deg);
}

/* ========================================
   SHADOW LAYERS
   ========================================= */

.shadow-layer-1 {
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.15);
}

.shadow-layer-2 {
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.25);
}

.shadow-layer-3 {
    box-shadow: 
        0 25px 50px rgba(0, 0, 0, 0.3),
        0 0 35px rgba(99, 102, 241, 0.15);
}

/* ========================================
   FLOATING ANIMATION
   ========================================= */

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

.float-delay-1 {
    animation-delay: 0s;
}

.float-delay-2 {
    animation-delay: 0.2s;
}

.float-delay-3 {
    animation-delay: 0.4s;
}

@keyframes float-animation {
    0%, 100% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-20px);
    }
}

/* ========================================
   GRADIENT ANIMATION
   ========================================= */

.gradient-animation {
    background-size: 200% 200%;
    animation: gradient-shift 8s ease infinite;
}

@keyframes gradient-shift {
    0% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
    100% {
        background-position: 0% 50%;
    }
}

/* ========================================
   CODE BLOCK STYLES
   ========================================= */

.code-block {
    background: var(--surface-lighter);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 1.5rem;
    overflow-x: auto;
    font-family: 'Courier New', monospace;
    font-size: 0.85rem;
    color: #06B6D4;
    line-height: 1.5;
}

.code-block code {
    color: inherit;
}

/* ========================================
   BOX SHADOW ANIMATIONS
   ========================================= */

.shadow-pulse {
    animation: shadow-pulse-animation 2s ease-in-out infinite;
}

@keyframes shadow-pulse-animation {
    0%, 100% {
        box-shadow: 0 8px 24px rgba(30, 58, 138, 0.15), 0 4px 12px rgba(0, 0, 0, 0.08);
    }
    50% {
        box-shadow: 0 12px 32px rgba(30, 58, 138, 0.2), 0 6px 16px rgba(0, 0, 0, 0.1);
    }
}

/* ========================================
   FLIP ANIMATION
   ========================================= */

.flip {
    perspective: 1000px;
}

.flip-inner {
    transition: transform 0.6s;
    transform-style: preserve-3d;
}

.flip:hover .flip-inner {
    transform: rotateY(180deg);
}

.flip-front,
.flip-back {
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
}

.flip-back {
    transform: rotateY(180deg);
}

/* ========================================
   PROFESSIONAL TEXT EFFECTS (Removed Neon)
   ========================================= */

.neon {
    text-shadow: 0 2px 8px rgba(30, 58, 138, 0.15);
    font-weight: 600;
}

/* ========================================
   CONTAINER ANIMATIONS
   ========================================= */

.container-shift {
    animation: container-shift-animation 0.3s ease-out;
}

@keyframes container-shift-animation {
    from {
        transform: translateY(20px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

/* ========================================
   STAGGER ANIMATIONS
   ========================================= */

.stagger-item {
    animation: stagger-animation 0.5s ease-out forwards;
    opacity: 0;
}

.stagger-item:nth-child(1) { animation-delay: 0s; }
.stagger-item:nth-child(2) { animation-delay: 0.1s; }
.stagger-item:nth-child(3) { animation-delay: 0.2s; }
.stagger-item:nth-child(4) { animation-delay: 0.3s; }
.stagger-item:nth-child(5) { animation-delay: 0.4s; }
.stagger-item:nth-child(6) { animation-delay: 0.5s; }

@keyframes stagger-animation {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ========================================
   LOADING SKELETON
   ========================================= */

.skeleton {
    background: linear-gradient(
        90deg,
        var(--surface-light),
        var(--surface-lighter),
        var(--surface-light)
    );
    background-size: 200% 100%;
    animation: skeleton-loading 2s infinite;
}

@keyframes skeleton-loading {
    0% {
        background-position: 200% 0;
    }
    100% {
        background-position: -200% 0;
    }
}

/* ========================================
   BLEND MODES
   ========================================= */

.blend-multiply {
    mix-blend-mode: multiply;
}

.blend-screen {
    mix-blend-mode: screen;
}

.blend-overlay {
    mix-blend-mode: overlay;
}

.blend-color-dodge {
    mix-blend-mode: color-dodge;
}

/* ========================================
   TRANSFORM UTILITIES
   ========================================= */

.translate-x-full {
    transform: translateX(100%);
}

.translate-y-full {
    transform: translateY(100%);
}

.rotate-45 {
    transform: rotate(45deg);
}

.scale-110 {
    transform: scale(1.1);
}

.skew-x {
    transform: skewX(-10deg);
}

/* ========================================
   NOTIFICATION ANIMATIONS
   ========================================= */

@keyframes slideInRight {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes slideOutRight {
    from {
        transform: translateX(0);
        opacity: 1;
    }
    to {
        transform: translateX(100%);
        opacity: 0;
    }
}

.notification {
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
    font-family: 'Poppins', sans-serif;
}

.notification-success {
    background: linear-gradient(135deg, #22C55E 0%, #16A34A 100%);
}

.notification-error {
    background: linear-gradient(135deg, #EF4444 0%, #DC2626 100%);
}

.notification-info {
    background: linear-gradient(135deg, #3B82F6 0%, #2563EB 100%);
}
