/* Custom styles that complement Tailwind CSS */

/* Smooth transitions for all interactive elements */
a, button {
    transition: all 0.2s ease-in-out;
}

/* Custom selection color */
::selection {
    background-color: #a31838;
    color: white;
}

/* Geometric shape animations */
@keyframes float {
    0%, 100% {
        transform: translateY(0px) rotate(0deg);
    }
    50% {
        transform: translateY(-20px) rotate(5deg);
    }
}

@keyframes float-reverse {
    0%, 100% {
        transform: translateY(0px) rotate(0deg);
    }
    50% {
        transform: translateY(20px) rotate(-5deg);
    }
}

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

.geo-square {
    animation: float-reverse 8s ease-in-out infinite;
}

/* Card hover effects */
.service-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.service-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(163, 24, 56, 0.15);
}

/* Button pulse animation */
@keyframes pulse-border {
    0%, 100% {
        box-shadow: 0 0 0 0 rgba(163, 24, 56, 0.4);
    }
    50% {
        box-shadow: 0 0 0 10px rgba(163, 24, 56, 0);
    }
}

button:hover {
    animation: pulse-border 1.5s infinite;
}

/* Gradient text effect */
.gradient-text {
    background: linear-gradient(135deg, #a31838 0%, #d94068 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

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

/* Scroll indicator animation */
@keyframes scroll-down {
    0% {
        transform: translateY(0);
        opacity: 0;
    }
    50% {
        opacity: 1;
    }
    100% {
        transform: translateY(10px);
        opacity: 0;
    }
}

.scroll-indicator {
    animation: scroll-down 2s ease-in-out infinite;
}

/* Responsive typography scaling */
@media (max-width: 640px) {
    .font-serif {
        font-size: clamp(2rem, 8vw, 3rem);
    }
}

@media (min-width: 641px) and (max-width: 1024px) {
    .font-serif {
        font-size: clamp(2.5rem, 6vw, 4rem);
    }
}

/* Print styles */
@media print {
    .fixed, .geo-circle, .geo-square {
        display: none;
    }
    
    body {
        background: white;
        color: black;
    }
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    .bg-blush-50 {
        background-color: #fff;
    }
    
    .text-burgundy-700 {
        color: #000;
    }
}

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

/* Focus visible styles for accessibility */
:focus-visible {
    outline: 3px solid #a31838;
    outline-offset: 2px;
}

/* Loading spinner */
@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

.spinner {
    animation: spin 1s linear infinite;
}
