/* Custom styles and overrides */
:root {
    --burgundy-50: #fdf2f2;
    --burgundy-100: #fbe8e8;
    --burgundy-200: #f6d0d0;
    --burgundy-300: #eda8a8;
    --burgundy-400: #df7070;
    --burgundy-500: #c44d4d;
    --burgundy-600: #a83232;
    --burgundy-700: #8c2626;
    --burgundy-800: #732020;
    --burgundy-900: #5c1a1a;
    --burgundy-950: #3d0f0f;
    --blush-100: #ffe8e8;
    --blush-200: #ffd4d4;
    --blush-300: #ffb8b8;
    --warm-50: #fffbf5;
    --warm-100: #fff4e6;
    --warm-700: #7c5c3a;
    --warm-800: #5c4028;
    --warm-900: #3d2a1a;
}

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

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

::-webkit-scrollbar-track {
    background: var(--warm-50);
}

::-webkit-scrollbar-thumb {
    background: var(--burgundy-700);
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--burgundy-900);
}

/* 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); }
}

@keyframes spin-slow {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

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

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

.geo-triangle {
    animation: spin-slow 20s linear infinite;
}

/* Hover effects */
.card-hover {
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1), 
                box-shadow 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.card-hover:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(92, 26, 26, 0.15);
}

/* Button pulse effect */
@keyframes pulse-ring {
    0% {
        transform: scale(0.95);
        box-shadow: 0 0 0 0 rgba(140, 38, 38, 0.4);
    }
    70% {
        transform: scale(1);
        box-shadow: 0 0 0 10px rgba(140, 38, 38, 0);
    }
    100% {
        transform: scale(0.95);
        box-shadow: 0 0 0 0 rgba(140, 38, 38, 0);
    }
}

button:hover {
    animation: pulse-ring 1.5s cubic-bezier(0.4, 0, 0.2, 1) infinite;
}

/* Loading state */
.loading {
    opacity: 0.6;
    pointer-events: none;
}

/* Focus styles for accessibility */
button:focus-visible,
a:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible {
    outline: 3px solid var(--burgundy-400);
    outline-offset: 2px;
}

/* Reduced motion preferences */
@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;
    }
}

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

/* High contrast mode support */
@media (forced-colors: active) {
    .card-hover {
        border: 2px solid ButtonText;
    }
}

/* Tablet adjustments */
@media (max-width: 768px) {
    .geo-circle,
    .geo-square,
    .geo-triangle {
        opacity: 0.5;
    }
}

/* Mobile optimizations */
@media (max-width: 640px) {
    .geo-circle,
    .geo-square,
    .geo-triangle {
        display: none;
    }
    
    nav {
        backdrop-filter: none;
        -webkit-backdrop-filter: none;
        background: rgba(255, 255, 255, 0.98);
    }
}

/* Touch device optimizations */
@media (hover: none) {
    .card-hover:hover {
        transform: none;
        box-shadow: none;
    }
    
    button:hover {
        animation: none;
    }
}
