/* Import Inter font */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800;900&display=swap');

/* Root variables - VOUCH brand */
:root {
    --vouch-navy: #0B1F3B;
    --vouch-navy-light: #122B4F;
    --vouch-navy-dark: #071428;
    --vouch-teal: #18B6B2;
    --vouch-teal-light: #20D4CF;
    --vouch-teal-dark: #129E9A;
    --vouch-white: #FFFFFF;
    --vouch-ink: #0A0F1A;
    --vouch-muted: #6B7280;
    --primary: var(--vouch-navy);
    --accent: var(--vouch-teal);
    --success-green: #10b981;
    --neutral-50: #f8fafc;
    --neutral-100: #f1f5f9;
    --neutral-200: #e2e8f0;
    --neutral-300: #cbd5e1;
    --neutral-400: #94a3b8;
    --neutral-600: #475569;
    --neutral-700: #334155;
    --neutral-800: #1e293b;
    --neutral-900: #0f172a;
}

/* Apply Inter font globally */
body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    font-feature-settings: 'cv02', 'cv03', 'cv04', 'cv11';
}

/* Custom Animations */
@keyframes float {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    50% { transform: translateY(-20px) rotate(2deg); }
}

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

@keyframes pulse-glow {
    0%, 100% {
        box-shadow: 0 0 30px rgba(11, 31, 59, 0.4), 0 10px 40px rgba(11, 31, 59, 0.2);
    }
    50% {
        box-shadow: 0 0 50px rgba(24, 182, 178, 0.5), 0 10px 60px rgba(24, 182, 178, 0.3);
    }
}

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

@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.slide-in-up {
    animation: slideInUp 0.6s ease-out forwards;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.fade-in {
    animation: fadeIn 0.8s ease-out forwards;
}

/* Network connection animation */
@keyframes drawLine {
    from {
        stroke-dashoffset: 1000;
    }
    to {
        stroke-dashoffset: 0;
    }
}

@keyframes nodePopIn {
    0% {
        transform: scale(0);
        opacity: 0;
    }
    50% {
        transform: scale(1.2);
    }
    100% {
        transform: scale(1);
        opacity: 1;
    }
}

/* Gradient Text Utilities - VOUCH brand */
.gradient-text {
    background: linear-gradient(135deg, var(--vouch-navy) 0%, var(--vouch-teal) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.gradient-text-blue {
    background: linear-gradient(135deg, var(--vouch-navy) 0%, var(--vouch-teal-light) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Enhanced button styles */
.btn-primary {
    background: linear-gradient(135deg, var(--vouch-navy) 0%, var(--vouch-teal) 100%);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.btn-primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: left 0.5s;
}

.btn-primary:hover::before {
    left: 100%;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(11, 31, 59, 0.4);
}

/* Card hover effects */
.card-hover {
    transition: all 0.3s ease;
}

.card-hover:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(11, 31, 59, 0.15);
}

/* Network graph background */
.network-bg {
    position: relative;
}

.network-bg::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: radial-gradient(circle at 20% 50%, rgba(11, 31, 59, 0.05) 0%, transparent 50%),
                      radial-gradient(circle at 80% 80%, rgba(24, 182, 178, 0.05) 0%, transparent 50%);
    pointer-events: none;
}

/* Badge styles */
.badge-fasttrack {
    background: linear-gradient(135deg, var(--vouch-teal) 0%, var(--vouch-navy) 100%);
    animation: pulse-subtle 2s ease-in-out infinite;
}

@keyframes pulse-subtle {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.8; }
}

/* Glass morphism effect */
.glass {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

/* Connection line animation */
.connection-line {
    stroke: var(--vouch-teal);
    stroke-width: 2;
    stroke-dasharray: 1000;
    stroke-dashoffset: 1000;
    animation: drawLine 2s ease-in-out forwards;
}

/* Profile avatar with border */
.avatar-bordered {
    border: 3px solid var(--vouch-navy);
    box-shadow: 0 4px 12px rgba(11, 31, 59, 0.3);
}

/* Vouched badge glow */
.vouched-glow {
    box-shadow: 0 0 20px rgba(24, 182, 178, 0.5);
    animation: pulse-teal 2s ease-in-out infinite;
}

@keyframes pulse-teal {
    0%, 100% { box-shadow: 0 0 20px rgba(24, 182, 178, 0.5); }
    50% { box-shadow: 0 0 30px rgba(24, 182, 178, 0.8); }
}

/* Swipe card animation */
@keyframes swipeOut {
    to {
        transform: translateX(200%) rotate(20deg);
        opacity: 0;
    }
}

@keyframes swipeOutLeft {
    to {
        transform: translateX(-200%) rotate(-20deg);
        opacity: 0;
    }
}

.swipe-right {
    animation: swipeOut 0.5s ease-in forwards;
}

.swipe-left {
    animation: swipeOutLeft 0.5s ease-in forwards;
}

/* Match celebration */
@keyframes matchPulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.1); }
    100% { transform: scale(1); }
}

.match-celebration {
    animation: matchPulse 0.5s ease-in-out;
}

/* Responsive spacing utilities */
.section-padding {
    padding: 5rem 0;
}

@media (max-width: 768px) {
    .section-padding {
        padding: 3rem 0;
    }
}

/* Smooth scroll behavior */
html {
    scroll-behavior: smooth;
}

/* Focus states for accessibility */
button:focus-visible,
a:focus-visible {
    outline: 2px solid var(--vouch-teal);
    outline-offset: 2px;
}
