/* Custom styles and animations */

/* --- Premium Utilities --- */

.glass {
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.5);
}

.glass-dark {
    background: rgba(15, 23, 42, 0.8);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.text-gradient {
    background: linear-gradient(135deg, #0f172a 0%, #475569 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.text-gradient-purple {
    background: linear-gradient(135deg, #8b5cf6 0%, #3b82f6 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Vibrant Mesh Background */
.mesh-bg-vibrant {
    background-color: #ffffff;
    background-image:
        radial-gradient(at 0% 0%, hsla(256, 96%, 77%, 0.15) 0, transparent 50%),
        radial-gradient(at 100% 0%, hsla(189, 100%, 74%, 0.15) 0, transparent 50%),
        radial-gradient(at 50% 50%, hsla(340, 100%, 76%, 0.1) 0, transparent 50%);
    position: relative;
}

/* Grid Pattern Overlay */
.bg-grid {
    background-size: 40px 40px;
    background-image: linear-gradient(to right, rgba(226, 232, 240, 0.5) 1px, transparent 1px),
        linear-gradient(to bottom, rgba(226, 232, 240, 0.5) 1px, transparent 1px);
    mask-image: linear-gradient(to bottom, black 40%, transparent 100%);
    -webkit-mask-image: linear-gradient(to bottom, black 40%, transparent 100%);
}

.text-glow {
    text-shadow: 0 0 40px rgba(139, 92, 246, 0.3);
}

.btn-glow {
    box-shadow: 0 0 20px rgba(139, 92, 246, 0.3);
    transition: all 0.3s ease;
}

.btn-glow:hover {
    box-shadow: 0 0 30px rgba(139, 92, 246, 0.5);
    transform: translateY(-2px);
}

.mesh-bg {
    background-color: #f8fafc;
    background-image:
        radial-gradient(at 0% 0%, hsla(253, 16%, 7%, 1) 0, transparent 50%),
        radial-gradient(at 50% 0%, hsla(225, 39%, 30%, 1) 0, transparent 50%),
        radial-gradient(at 100% 0%, hsla(339, 49%, 30%, 1) 0, transparent 50%);
}

.card-shine {
    position: relative;
    overflow: hidden;
}

.card-shine::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 50%;
    height: 100%;
    background: linear-gradient(to right,
            transparent 0%,
            rgba(255, 255, 255, 0.3) 50%,
            transparent 100%);
    transform: skewX(-25deg);
    transition: left 0.5s;
}

.card-shine:hover::after {
    left: 200%;
    transition: left 1s;
}


/* --- Animations --- */

/* Base fade-in animation classes */
.fade-in-up {
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.fade-in-delayed {
    opacity: 0;
    animation: fadeIn 1.5s cubic-bezier(0.16, 1, 0.3, 1) forwards;
    animation-delay: 0.5s;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px) scale(0.98);
    }

    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

/* Delay utilities */
.delay-100 {
    animation-delay: 100ms;
    transition-delay: 100ms;
}

.delay-200 {
    animation-delay: 200ms;
    transition-delay: 200ms;
}

.delay-300 {
    animation-delay: 300ms;
    transition-delay: 300ms;
}

.delay-500 {
    animation-delay: 500ms;
    transition-delay: 500ms;
}

.delay-700 {
    animation-delay: 700ms;
    transition-delay: 700ms;
}

/* Scroll reveal utility classes */
.reveal-on-scroll {
    opacity: 0;
    transform: translateY(40px);
    transition: all 1s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal-on-scroll.is-visible {
    opacity: 1;
    transform: translateY(0);
}

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

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

::-webkit-scrollbar-thumb {
    background: #a78bfa;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #8b5cf6;
}

/* Selection color */
::selection {
    background-color: #ddd6fe;
    color: #4c1d95;
}

/* Typography Enhancements */
.prose h1,
.prose h2,
.prose h3 {
    margin-top: 2rem;
    margin-bottom: 1rem;
    line-height: 1.3;
}

.prose p {
    margin-bottom: 1.5rem;
}

.prose ul {
    list-style-type: disc;
    padding-left: 1.5rem;
    margin-bottom: 1.5rem;
}

.prose blockquote {
    border-left: 4px solid var(--brand-purple);
    padding-left: 1rem;
    font-style: italic;
    color: #64748b;
    margin-bottom: 1.5rem;
    background-color: #f5f3ff;
    padding: 1rem;
    border-radius: 0 0.5rem 0.5rem 0;
}

:root {
    --brand-purple: #8b5cf6;
    --brand-blue: #3b82f6;
    --brand-green: #10b981;
    --brand-dark: #f8fafc;
    --brand-text: #0f172a;
}

/* 3D Perspective Utility */
.perspective-1000 {
    perspective: 1200px;
}

/* Floating Animation */
@keyframes float {

    0%,
    100% {
        transform: translate(-50%, -50%) translateY(0);
    }

    50% {
        transform: translate(-50%, -50%) translateY(-15px);
    }
}

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

/* Float Delayed (for side cards) */
@keyframes floatDelayed {

    0%,
    100% {
        transform: translate(-120%, -50%) translateY(0);
    }

    50% {
        transform: translate(-120%, -50%) translateY(-10px);
    }
}

.animate-float-delayed {
    animation: floatDelayed 7s ease-in-out infinite;
    animation-delay: 1s;
}

@keyframes floatDelayed2 {

    0%,
    100% {
        transform: translate(-20%, -50%) translateY(0);
    }

    50% {
        transform: translate(-20%, -50%) translateY(-10px);
    }
}

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

/* Slow Bounce (for badges) */
@keyframes bounceSlow {

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

    50% {
        transform: translateY(-8px);
    }
}

.animate-bounce-slow {
    animation: bounceSlow 5s ease-in-out infinite;
}