/* Base styles */
html {
    scroll-behavior: smooth;
}

body {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

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

::-webkit-scrollbar-track {
    background: #f5f0f6;
}

::-webkit-scrollbar-thumb {
    background: #d4bbc8;
    border-radius: 3px;
}

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

/* Selection color */
::selection {
    background: #d4bbc8;
    color: #2a1225;
}

/* Navbar transition */
#navbar {
    transition: background-color 0.4s ease, padding 0.4s ease, backdrop-filter 0.4s ease;
}

#navbar.scrolled {
    background-color: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(12px);
    box-shadow: 0 1px 0 rgba(122, 52, 96, 0.08);
}

#navbar.scrolled .text-plum-700 {
    color: #532443 !important;
}

#navbar.scrolled .border-plum-800 {
    border-color: #532443 !important;
    color: #532443 !important;
}

#navbar.scrolled a.text-plum-700:hover {
    color: #d97706 !important;
}

/* Mobile menu animation */
#mobile-menu.open {
    opacity: 1;
    pointer-events: all;
}

#menu-btn.active #line1 {
    transform: translateY(5px) rotate(45deg);
}

#menu-btn.active #line2 {
    opacity: 0;
}

#menu-btn.active #line3 {
    transform: translateY(-4px) rotate(-45deg);
    width: 1.5rem;
}

/* Service cards */
.service-card {
    position: relative;
    overflow: hidden;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, transparent, #fbbf24, transparent);
    transform: scaleX(0);
    transition: transform 0.5s ease;
}

.service-card:hover::before {
    transform: scaleX(1);
}

/* Form styles */
input:focus,
select:focus,
textarea:focus {
    border-bottom-color: #fbbf24 !important;
}

input::placeholder,
textarea::placeholder {
    color: #d4bbc8;
}

/* Scroll reveal base — content is visible by default */
.reveal {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.7s ease, transform 0.7s ease;
}

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

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

/* Subtle hover for links */
a {
    text-decoration: none;
}

/* Image loading placeholder */
img {
    background-color: #f5f0f6;
}
