/* Custom styles for Spagnesi Philip DDS */

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

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

::-webkit-scrollbar-track {
    background: #1a1a1a;
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(to bottom, #E36C52, #B53D27);
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(to bottom, #ED9178, #D65236);
}

/* Scroll reveal animations - progressive enhancement */
.scroll-reveal {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

@media (prefers-reduced-motion: no-preference) {
    .scroll-reveal {
        opacity: 0;
        transform: translateY(30px);
    }
    
    .scroll-reveal.revealed {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Gold metallic gradient for special elements */
.gold-gradient {
    background: linear-gradient(135deg, #D4A574 0%, #C49A6C 50%, #B8860B 100%);
}

/* Subtle text glow for headings */
.text-glow {
    text-shadow: 0 0 40px rgba(227, 108, 82, 0.3);
}

/* Luxury card hover effect */
.luxury-card {
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.luxury-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 60px rgba(227, 108, 82, 0.15);
}

/* Animated gradient border */
.animated-border {
    position: relative;
    background: #2a2a2a;
    border-radius: 1rem;
}

.animated-border::before {
    content: '';
    position: absolute;
    inset: -2px;
    background: linear-gradient(45deg, #E36C52, #D4A574, #E36C52);
    border-radius: calc(1rem + 2px);
    z-index: -1;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.animated-border:hover::before {
    opacity: 1;
}

/* Pulse animation for status indicators */
@keyframes pulse-glow {
    0%, 100% {
        box-shadow: 0 0 0 0 rgba(227, 108, 82, 0.4);
    }
    50% {
        box-shadow: 0 0 0 10px rgba(227, 108, 82, 0);
    }
}

.animate-pulse-glow {
    animation: pulse-glow 2s infinite;
}

/* Floating animation */
@keyframes float {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-10px);
    }
}

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

/* Shimmer effect for buttons */
@keyframes shimmer {
    0% {
        background-position: -200% 0;
    }
    100% {
        background-position: 200% 0;
    }
}

.btn-shimmer {
    background: linear-gradient(
        90deg,
        rgba(255, 255, 255, 0) 0%,
        rgba(255, 255, 255, 0.1) 50%,
        rgba(255, 255, 255, 0) 100%
    );
    background-size: 200% 100%;
    animation: shimmer 3s infinite;
}

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

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

/* Print styles */
@media print {
    .scroll-reveal {
        opacity: 1;
        transform: none;
    }
    
    nav, footer, #back-to-top {
        display: none;
    }
}
