/* Custom styles for Finescape and Sons */

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

/* Base font settings */
body {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Floating card animations */
@keyframes float-1 {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    50% { transform: translateY(-12px) rotate(0.5deg); }
}

@keyframes float-2 {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    50% { transform: translateY(-8px) rotate(-0.5deg); }
}

@keyframes float-3 {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    50% { transform: translateY(-15px) rotate(0.3deg); }
}

.floating-card.card-1 {
    animation: float-1 5s ease-in-out infinite;
}

.floating-card.card-2 {
    animation: float-2 4.5s ease-in-out infinite;
}

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

/* Reveal animations (progressive enhancement) */
[data-reveal] {
    opacity: 1;
    transform: none;
    transition: opacity 0.6s ease, transform 0.6s ease;
}

[data-reveal="fade-up"] {
    opacity: 0;
    transform: translateY(30px);
}

[data-reveal="fade-left"] {
    opacity: 0;
    transform: translateX(-30px);
}

[data-reveal="fade-right"] {
    opacity: 0;
    transform: translateX(30px);
}

/* Reduced motion preference */
@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }
    
    .floating-card {
        animation: none;
    }
    
    [data-reveal] {
        opacity: 1 !important;
        transform: none !important;
    }
}

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

::-webkit-scrollbar-track {
    background: #0a1628;
}

::-webkit-scrollbar-thumb {
    background: #1a3a6e;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #c8a44e;
}

/* Selection color */
::selection {
    background: rgba(200, 164, 78, 0.3);
    color: #fff;
}

/* Focus visible styles */
:focus-visible {
    outline: 2px solid #c8a44e;
    outline-offset: 2px;
}

/* Navbar scroll state */
.navbar-scrolled {
    background: rgba(5, 13, 26, 0.95) !important;
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(200, 164, 78, 0.1);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.3);
}

/* Gold gradient text */
.gold-gradient {
    background: linear-gradient(135deg, #c8a44e 0%, #f5e19a 50%, #c8a44e 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Image hover zoom */
img {
    transition: transform 0.5s ease;
}

/* Select dropdown styling */
select {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%23c8a44e' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 1rem center;
    padding-right: 2.5rem;
}

/* Mobile menu transitions */
#mobile-menu {
    animation: slideDown 0.3s ease;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Service card shine effect */
.group:hover .bg-gold-500\/10 {
    background: rgba(200, 164, 78, 0.15);
}

/* Gallery hover overlay */
.group .absolute {
    transition: opacity 0.5s ease;
}
