/* Custom styles beyond Tailwind */

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

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: #F9F0FC;
}
::-webkit-scrollbar-thumb {
    background: #A84BB0;
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: #8B3A8F;
}

/* Navbar scroll state */
.nav-active {
    background: rgba(249, 240, 252, 0.95) !important;
    backdrop-filter: blur(12px);
    box-shadow: 0 1px 20px rgba(74, 35, 90, 0.1);
}

.nav-active .nav-link {
    color: #4A235A !important;
}

.nav-active .menu-line {
    background: #4A235A !important;
}

.nav-active .brand-name {
    color: #4A235A !important;
}

/* Mobile menu animation */
.menu-open .menu-line:nth-child(1) {
    transform: translateY(5.5px) rotate(45deg);
}
.menu-open .menu-line:nth-child(2) {
    opacity: 0;
}
.menu-open .menu-line:nth-child(3) {
    transform: translateY(-5.5px) rotate(-45deg);
    width: 1.25rem;
}

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

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

/* Fade-in animation for scroll reveals */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.reveal.revealed {
    opacity: 1;
    transform: translateY(0);
}

/* Stagger children */
.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }
.reveal-delay-4 { transition-delay: 0.4s; }
.reveal-delay-5 { transition-delay: 0.5s; }
.reveal-delay-6 { transition-delay: 0.6s; }

/* Mobile nav link hover */
.mobile-nav-link {
    position: relative;
}

/* Hero card hover */
.hero-card {
    transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.hero-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 60px rgba(74, 35, 90, 0.25);
}

/* Service card shimmer on hover */
.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(212, 168, 75, 0.05), transparent);
    transition: left 0.6s ease;
}

.service-card:hover::before {
    left: 100%;
}

/* Input focus glow */
input:focus,
textarea:focus,
select:focus {
    box-shadow: 0 0 0 3px rgba(212, 168, 75, 0.2);
}

/* Button press effect */
button:active {
    transform: scale(0.98);
}

/* Selection color */
::selection {
    background: #D4A84B;
    color: #1F0F27;
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        transition-duration: 0.01ms !important;
    }
    html {
        scroll-behavior: auto;
    }
    .reveal {
        opacity: 1;
        transform: none;
    }
}
