/**
 * Common Styles
 * Shared CSS utilities and components for both sites
 */

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

/* Body spacing for fixed header */
body {
    padding-top: 64px;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

/* Custom animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

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

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

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

/* Animation utility classes */
.animate-fade-in-up {
    animation: fadeInUp 0.6s ease-out;
}

.animate-fade-in {
    animation: fadeIn 0.6s ease-out;
}

.animate-slide-in-left {
    animation: slideInLeft 0.6s ease-out;
}

.animate-slide-in-right {
    animation: slideInRight 0.6s ease-out;
}

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

/* Gradient text */
.gradient-text {
    background: linear-gradient(135deg, #2563eb, #8b5cf6);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

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

.card-hover:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

/* Button animations */
.btn-primary {
    @apply bg-gradient-to-r from-blue-600 to-violet-600 text-white px-6 py-3 rounded-lg font-medium;
    transition: all 0.3s ease;
}

.btn-primary:hover {
    @apply from-blue-700 to-violet-700;
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(37, 99, 235, 0.3);
}

.btn-secondary {
    @apply border-2 border-blue-600 text-blue-600 px-6 py-3 rounded-lg font-medium;
    transition: all 0.3s ease;
}

.btn-secondary:hover {
    @apply bg-blue-600 text-white;
    transform: translateY(-2px);
}

/* Section spacing */
.section-padding {
    @apply py-16 md:py-24;
}

/* Typography enhancements */
.heading-primary {
    @apply text-4xl md:text-6xl font-bold text-slate-900 leading-tight;
}

.heading-secondary {
    @apply text-3xl md:text-4xl font-bold text-slate-900 mb-6;
}

.heading-tertiary {
    @apply text-2xl md:text-3xl font-bold text-slate-900 mb-4;
}

.text-lead {
    @apply text-xl text-slate-600 leading-relaxed;
}

/* Loading animation for performance */
.loading-skeleton {
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: loading 1.5s infinite;
}

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

/* Focus styles for accessibility */
.focus-visible:focus-visible {
    @apply outline-none ring-2 ring-blue-500 ring-offset-2;
}

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

::-webkit-scrollbar-track {
    @apply bg-slate-100;
}

::-webkit-scrollbar-thumb {
    @apply bg-slate-400 rounded-full;
}

::-webkit-scrollbar-thumb:hover {
    @apply bg-slate-500;
}