/* Custom Font Configuration */
:root {
    --font-playfair: 'Playfair Display', serif;
    --font-poppins: 'Poppins', sans-serif;
    --font-space-mono: 'Space Mono', monospace;
}

* {
    font-family: var(--font-poppins);
}

.font-playfair {
    font-family: var(--font-playfair);
    letter-spacing: -0.02em;
}

.font-space-mono {
    font-family: var(--font-space-mono);
}

/* Animated Gradient Background Blobs */
@keyframes blob {
    0%, 100% {
        transform: translate(0, 0) scale(1);
    }
    25% {
        transform: translate(20px, -50px) scale(1.1);
    }
    50% {
        transform: translate(-20px, 20px) scale(0.9);
    }
    75% {
        transform: translate(50px, 50px) scale(1.05);
    }
}

@keyframes blob-2 {
    0%, 100% {
        transform: translate(0, 0) scale(1);
    }
    25% {
        transform: translate(-30px, 30px) scale(0.95);
    }
    50% {
        transform: translate(30px, -20px) scale(1.1);
    }
    75% {
        transform: translate(-20px, -40px) scale(0.9);
    }
}

@keyframes blob-3 {
    0%, 100% {
        transform: translate(0, 0) scale(1);
    }
    25% {
        transform: translate(25px, 25px) scale(1.05);
    }
    50% {
        transform: translate(-30px, -30px) scale(0.95);
    }
    75% {
        transform: translate(40px, -10px) scale(1);
    }
}

.animate-blob {
    animation: blob 7s infinite;
}

.animate-blob-2 {
    animation: blob-2 9s infinite;
    animation-delay: 1s;
}

.animate-blob-3 {
    animation: blob-3 11s infinite;
    animation-delay: 2s;
}

/* Fade In Animation */
@keyframes fade-in {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-fade-in {
    animation: fade-in 0.8s ease-out forwards;
    opacity: 0;
}

/* Gradient Shift Animation */
@keyframes gradient-shift {
    0% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
    100% {
        background-position: 0% 50%;
    }
}

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

/* Bounce Slow Animation */
@keyframes bounce-slow {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-30px);
    }
}

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

/* Pulsing Dot Animation (overrides Tailwind default) */
@keyframes pulse-custom {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.4;
    }
}

.animate-pulse {
    animation: pulse-custom 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

/* Button Hover Effects */
button, a {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

a:hover {
    transform: translateY(-2px);
}

/* Smooth Scrollbar Styling (optional) */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: rgba(15, 23, 42, 0.5);
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(to bottom, #06b6d4, #ec4899);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(to bottom, #06b6d4, #a855f7);
}

/* Focus States for Accessibility */
a:focus-visible,
button:focus-visible {
    outline: 2px solid #06b6d4;
    outline-offset: 2px;
}

/* Print Styles */
@media print {
    .animate-blob,
    .animate-blob-2,
    .animate-blob-3,
    .animate-bounce-slow,
    .animate-fade-in,
    .animate-pulse,
    .animate-gradient-shift {
        animation: none !important;
    }
}

/* Responsive Typography Adjustments */
@media (max-width: 640px) {
    h1 {
        font-size: clamp(2.25rem, 8vw, 3.75rem);
    }

    p {
        font-size: clamp(1rem, 4vw, 1.25rem);
    }
}

/* Reduce Motion for Accessibility */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}
