/* ============================================
   CUSTOM ANIMATIONS & UTILITIES
   ============================================ */

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

@keyframes fadeInScale {
    from {
        opacity: 0;
        transform: scale(0.95);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes shimmer {
    0% {
        background-position: -1000px 0;
    }
    100% {
        background-position: 1000px 0;
    }
}

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

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

/* Animation classes */
.animate-fade-up {
    animation: fadeUp 0.8s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
    opacity: 0;
}

.animate-fade-up:nth-child(2) {
    animation-delay: 0.1s;
}

.animate-fade-up:nth-child(3) {
    animation-delay: 0.2s;
}

/* Hover zoom effect for images */
.hover-zoom {
    transition: transform 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.hover-zoom:hover {
    transform: scale(1.03);
}

/* Typography */
.font-display {
    font-family: 'DM Serif Display', serif;
}

body {
    font-family: 'Inter', sans-serif;
}

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

/* Link hover underline animation */
a {
    position: relative;
}

a::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background: currentColor;
    transition: width 0.3s ease;
}

a:hover::after {
    width: 100%;
}

/* Remove underline from nav links */
.nav-link::after {
    display: none;
}

/* Card hover lift effect */
.group {
    transition: transform 0.3s ease;
}

.group:hover {
    transform: translateY(-4px);
}

/* Smooth transitions */
* {
    transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

button, a {
    transition: background-color 0.3s ease, color 0.3s ease, transform 0.2s ease;
}

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

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

::-webkit-scrollbar-thumb {
    background: #2563eb;
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: #1d4ed8;
}

/* Focus states */
input:focus,
textarea:focus {
    outline: none;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .font-display {
        letter-spacing: -0.02em;
    }
}

/* Utility: text gradient */
.bg-clip-text {
    -webkit-background-clip: text;
    background-clip: text;
}

/* Button animations */
button {
    position: relative;
    overflow: hidden;
}

button::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

button:active::before {
    width: 300px;
    height: 300px;
}

/* Pulse animation for CTA */
@keyframes pulse-subtle {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.8;
    }
}

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

/* Details/Summary styling */
details summary::-webkit-details-marker {
    display: none;
}

details summary {
    user-select: none;
}

/* Icon animations */
svg {
    transition: transform 0.3s ease;
}

/* Section spacing consistency */
section {
    position: relative;
}
