/* Custom styles for Reeves' Prestige Matters */

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

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: #fdf4f6;
}
::-webkit-scrollbar-thumb {
    background: #d02860;
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: #ad1d4d;
}

/* Selection color */
::selection {
    background: #fbbf24;
    color: #4a0a21;
}

/* Navbar transition */
#navbar {
    transition: background 0.4s ease, box-shadow 0.4s ease, padding 0.4s ease;
}

#navbar.scrolled {
    background: rgba(253, 244, 246, 0.95);
    backdrop-filter: blur(12px);
    box-shadow: 0 1px 20px rgba(143, 28, 68, 0.08);
}

/* Nav links underline animation */
.nav-link {
    position: relative;
}
.nav-link::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, #d02860, #fbbf24);
    transition: width 0.3s ease;
    border-radius: 1px;
}
.nav-link:hover::after {
    width: 100%;
}

/* Mobile nav links */
.mobile-nav-link {
    position: relative;
    padding-left: 0;
    transition: padding-left 0.2s ease, color 0.2s ease;
}
.mobile-nav-link:hover {
    padding-left: 12px;
    color: #d02860;
}

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

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

/* Hero image hover */
.rounded-3xl.overflow-hidden {
    transition: box-shadow 0.5s ease;
}
.rounded-3xl.overflow-hidden:hover {
    box-shadow: 0 25px 60px rgba(143, 28, 68, 0.15);
}

/* Floating card animation */
@media (prefers-reduced-motion: no-preference) {
    .absolute.-bottom-6.-left-6 {
        animation: float 4s ease-in-out infinite;
    }
}

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

/* Gradient text utility */
.gradient-text {
    background: linear-gradient(135deg, #d02860, #fbbf24);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Service card tilt on hover */
.group:hover .rounded-2xl.bg-gradient-to-br {
    transform: scale(1.1) rotate(3deg);
}

/* Input focus ring animation */
input:focus, textarea:focus {
    box-shadow: 0 0 0 3px rgba(251, 191, 36, 0.15);
}

/* Form success animation */
#form-success {
    animation: slideDown 0.4s ease;
}

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

/* Gallery image hover overlay */
.rounded-2xl.overflow-hidden::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(74, 10, 33, 0.2), transparent);
    opacity: 0;
    transition: opacity 0.4s ease;
    border-radius: inherit;
}
.rounded-2xl.overflow-hidden:hover::after {
    opacity: 1;
}

/* Subtle pattern overlay for sections */
section::before {
    content: '';
    pointer-events: none;
}

/* Button press effect */
button[type="submit"]:active {
    transform: scale(0.98);
}

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

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

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