/* NorthProject — Premium Fintech Design System */

/* ========== DESIGN TOKENS ========== */
:root {
    --color-primary-50: #eff6ff;
    --color-primary-100: #dbeafe;
    --color-primary-200: #bfdbfe;
    --color-primary-300: #93c5fd;
    --color-primary-400: #60a5fa;
    --color-primary-500: #3b82f6;
    --color-primary-600: #2563eb;
    --color-primary-700: #1d4ed8;
    --color-primary-800: #1e40af;
    --color-primary-900: #1e3a8a;
    --color-accent: #38bdf8;
    --color-gold: #fbbf24;
    --dark-bg: #0b0f19;
    --glass-bg: rgba(255, 255, 255, 0.05);
    --glass-border: rgba(255, 255, 255, 0.08);
    --glow-primary: rgba(59, 130, 246, 0.4);
    --glow-accent: rgba(56, 189, 248, 0.3);
}

/* ========== TAILWIND CDN COLOR OVERRIDES ========== */
.bg-primary-50 { background-color: var(--color-primary-50); }
.bg-primary-100 { background-color: var(--color-primary-100); }
.bg-primary-200 { background-color: var(--color-primary-200); }
.bg-primary-500 { background-color: var(--color-primary-500); }
.bg-primary-600 { background-color: var(--color-primary-600); }
.bg-primary-700 { background-color: var(--color-primary-700); }
.bg-primary-800 { background-color: var(--color-primary-800); }
.bg-primary-900 { background-color: var(--color-primary-900); }
.text-primary-200 { color: var(--color-primary-200); }
.text-primary-400 { color: var(--color-primary-400); }
.text-primary-600 { color: var(--color-primary-600); }
.text-primary-700 { color: var(--color-primary-700); }
.hover\:bg-primary-700:hover { background-color: var(--color-primary-700); }
.hover\:bg-primary-800:hover { background-color: var(--color-primary-800); }
.hover\:text-primary-600:hover { color: var(--color-primary-600); }
.focus\:ring-primary-500:focus { --tw-ring-color: var(--color-primary-500); }
.focus\:border-primary-500:focus { border-color: var(--color-primary-500); }
.border-primary-600 { border-color: var(--color-primary-600); }

/* ========== BASE ========== */
html { scroll-behavior: smooth; }
body { overflow-x: hidden; }

/* ========== FORM FIELDS ========== */
input[type="text"],
input[type="email"],
input[type="password"],
input[type="number"],
input[type="url"],
input[type="tel"],
select,
textarea {
    width: 100%;
    border: 1px solid #d1d5db;
    border-radius: 0.5rem;
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
    transition: border-color 0.2s, box-shadow 0.2s, transform 0.2s;
}
input:focus, select:focus, textarea:focus {
    outline: none;
    border-color: var(--color-primary-500);
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.15), 0 0 20px rgba(59, 130, 246, 0.08);
    transform: translateY(-1px);
}

/* ========== GLASSMORPHISM ========== */
.glass {
    background: rgba(255, 255, 255, 0.06);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
}
.glass-card {
    background: rgba(255, 255, 255, 0.04);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 1rem;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}
.glass-card:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.15);
    transform: translateY(-4px);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3), 0 0 40px var(--glow-primary);
}
.glass-light {
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.5);
}

/* ========== NAVBAR ========== */
.nav-glass {
    background: rgba(11, 15, 25, 0.8);
    backdrop-filter: blur(24px) saturate(180%);
    -webkit-backdrop-filter: blur(24px) saturate(180%);
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    transition: all 0.3s ease;
}
.nav-glass.scrolled {
    background: rgba(11, 15, 25, 0.95);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.3);
}

/* ========== GLOW EFFECTS ========== */
.glow-blue {
    box-shadow: 0 0 30px var(--glow-primary), 0 0 60px rgba(59, 130, 246, 0.15);
}
.glow-cyan {
    box-shadow: 0 0 30px var(--glow-accent), 0 0 60px rgba(56, 189, 248, 0.15);
}
.glow-text {
    text-shadow: 0 0 40px rgba(59, 130, 246, 0.5), 0 0 80px rgba(59, 130, 246, 0.2);
}
.glow-gold {
    text-shadow: 0 0 30px rgba(251, 191, 36, 0.5), 0 0 60px rgba(251, 191, 36, 0.2);
}

/* ========== GRADIENT BORDERS ========== */
.gradient-border {
    position: relative;
    border-radius: 1rem;
    overflow: hidden;
}
.gradient-border::before {
    content: '';
    position: absolute;
    inset: 0;
    padding: 1px;
    border-radius: inherit;
    background: linear-gradient(135deg, rgba(59,130,246,0.5), rgba(56,189,248,0.3), rgba(139,92,246,0.3));
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    pointer-events: none;
}

/* ========== ANIMATED CARDS ========== */
.card-hover {
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid rgba(0, 0, 0, 0.06);
}
.card-hover:hover {
    transform: translateY(-8px);
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.12), 0 0 30px rgba(59, 130, 246, 0.08);
    border-color: rgba(59, 130, 246, 0.2);
}

/* ========== ANIMATED PULSE RING ========== */
@keyframes pulse-ring {
    0% { transform: scale(0.5); opacity: 0.8; }
    100% { transform: scale(1.5); opacity: 0; }
}
.pulse-ring {
    position: relative;
}
.pulse-ring::after {
    content: '';
    position: absolute;
    inset: -4px;
    border-radius: 50%;
    border: 2px solid var(--color-primary-400);
    animation: pulse-ring 2s ease-out infinite;
}

/* ========== CTA BUTTONS ========== */
.btn-glow {
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
}
.btn-glow::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(45deg, transparent, rgba(255,255,255,0.1), transparent);
    transform: rotate(45deg) translateX(-100%);
    transition: transform 0.6s;
}
.btn-glow:hover::before {
    transform: rotate(45deg) translateX(100%);
}
.btn-glow:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 40px rgba(37, 99, 235, 0.4);
}

/* ========== STAT COUNTER ========== */
.counter-value {
    font-variant-numeric: tabular-nums;
    transition: all 0.3s ease;
}

/* ========== SECTION DIVIDERS ========== */
.section-gradient-top {
    background: linear-gradient(180deg, var(--dark-bg) 0%, transparent 100%);
    height: 80px;
    margin-top: -80px;
    position: relative;
    z-index: 1;
}

/* ========== HERO PARTICLES CANVAS ========== */
#hero-particles {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
}

/* ========== FLOATING ANIMATIONS ========== */
@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-12px); }
}
@keyframes float-slow {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    50% { transform: translateY(-8px) rotate(2deg); }
}
@keyframes shimmer {
    0% { background-position: -200% 0; }
    100% { background-position: 200% 0; }
}
@keyframes gradient-shift {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}
.float { animation: float 4s ease-in-out infinite; }
.float-delay-1 { animation: float 4s ease-in-out 0.5s infinite; }
.float-delay-2 { animation: float 4s ease-in-out 1s infinite; }
.float-slow { animation: float-slow 6s ease-in-out infinite; }

/* Shimmer text */
.shimmer-text {
    background: linear-gradient(90deg, #fff 0%, #38bdf8 25%, #fff 50%, #60a5fa 75%, #fff 100%);
    background-size: 200% auto;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: shimmer 4s linear infinite;
    padding-bottom: 0.1em;
    line-height: 1.15;
}

/* Animated gradient bg */
.animated-gradient {
    background: linear-gradient(-45deg, #0b0f19, #1e3a8a, #0b0f19, #1e40af);
    background-size: 400% 400%;
    animation: gradient-shift 12s ease infinite;
}

/* ========== MARQUEE (partner logos) ========== */
@keyframes marquee {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}
.marquee-track {
    display: flex;
    width: max-content;
    animation: marquee 25s linear infinite;
}
.marquee-track:hover { animation-play-state: paused; }

/* ========== TESTIMONIAL CARDS ========== */
.testimonial-card {
    background: rgba(255, 255, 255, 0.04);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-radius: 1rem;
    padding: 2rem;
    position: relative;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid rgba(255, 255, 255, 0.08);
    overflow: hidden;
}
.testimonial-card::before {
    content: '\201C';
    position: absolute;
    top: -0.25rem;
    left: 1.25rem;
    font-size: 5rem;
    background: linear-gradient(135deg, rgba(59,130,246,0.4), rgba(56,189,248,0.3));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    font-family: Georgia, serif;
    line-height: 1;
    pointer-events: none;
}
.testimonial-card::after {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 80px;
    height: 80px;
    background: radial-gradient(circle, rgba(59,130,246,0.08) 0%, transparent 70%);
    pointer-events: none;
}
.testimonial-card:hover {
    transform: translateY(-6px);
    border-color: rgba(59, 130, 246, 0.2);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3), 0 0 30px rgba(59, 130, 246, 0.08);
    background: rgba(255, 255, 255, 0.07);
}

/* ========== TEAM MEMBER HOVER ========== */
.team-avatar {
    transition: all 0.4s ease;
    position: relative;
}
.team-avatar:hover {
    transform: scale(1.08);
}
.team-avatar::after {
    content: '';
    position: absolute;
    inset: -3px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--color-primary-500), var(--color-accent));
    z-index: -1;
    opacity: 0;
    transition: opacity 0.3s ease;
}
.team-avatar:hover::after {
    opacity: 1;
}

/* ========== STEP NUMBER BOUNCE ========== */
@keyframes bounce-subtle {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.1); }
}
.step-number:hover {
    animation: bounce-subtle 0.5s ease;
}

/* ========== SIDEBAR ========== */
.sidebar-link.active {
    background-color: var(--color-primary-50);
    color: var(--color-primary-700);
    font-weight: 600;
}

/* ========== SCROLL PROGRESS BAR ========== */
#scroll-progress {
    position: fixed;
    top: 0;
    left: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--color-primary-500), var(--color-accent));
    z-index: 9999;
    transition: width 0.1s linear;
}

/* ========== SELECTION COLOR ========== */
::selection {
    background: rgba(59, 130, 246, 0.3);
    color: white;
}

/* ========== RESPONSIVE TOUCH ========== */
@media (hover: none) {
    .card-hover:hover,
    .glass-card:hover,
    .testimonial-card:hover {
        transform: none;
        box-shadow: none;
    }
}
