/* ===== Custom Styles ===== */

/* Base */
html {
    scroll-behavior: smooth;
    scroll-padding-top: 80px;
}

body {
    overflow-x: hidden;
}

/* Selection */
::selection {
    background: rgba(251, 191, 36, 0.3);
    color: #fbbf24;
}

/* Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: #261122;
}
::-webkit-scrollbar-thumb {
    background: #7a3d70;
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: #95548a;
}

/* ===== Animations ===== */
@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(16px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-fade-up {
    animation: fadeUp 0.7s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

/* Scroll-triggered animations */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

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

.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; }

/* ===== Navbar ===== */
#navbar {
    backdrop-filter: blur(0px);
    transition: background-color 0.4s ease, backdrop-filter 0.4s ease, box-shadow 0.4s ease;
}

#navbar.scrolled {
    background-color: rgba(38, 17, 34, 0.92);
    backdrop-filter: blur(20px);
    box-shadow: 0 1px 0 rgba(122, 61, 112, 0.2);
}

.nav-link {
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 1.5px;
    background: #fbbf24;
    transition: width 0.3s ease;
}

.nav-link:hover::after {
    width: 100%;
}

/* Mobile menu */
#mobile-menu.open {
    opacity: 1 !important;
    pointer-events: auto !important;
}

#mobile-menu.closed {
    opacity: 0 !important;
    pointer-events: none !important;
}

.mobile-link {
    position: relative;
}

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

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

.service-card:hover::before {
    opacity: 1;
}

/* Testimonial cards */
.testimonial-card {
    position: relative;
}

.testimonial-card::before {
    content: '"';
    position: absolute;
    top: 16px;
    right: 24px;
    font-family: 'Playfair Display', Georgia, serif;
    font-size: 6rem;
    color: rgba(251, 191, 36, 0.06);
    line-height: 1;
    pointer-events: none;
}

/* Form inputs */
input:focus,
select:focus,
textarea:focus {
    box-shadow: 0 0 0 3px rgba(251, 191, 36, 0.1);
}

/* ===== Responsive ===== */
@media (max-width: 767px) {
    .font-serif.text-5xl,
    .font-serif.text-6xl {
        font-size: 2.5rem;
        line-height: 1.1;
    }
}

@media (min-width: 768px) {
    .font-serif.text-5xl {
        font-size: 3.25rem;
    }
    .font-serif.text-6xl {
        font-size: 4rem;
    }
}

/* ===== Print ===== */
@media print {
    #navbar, .scroll-indicator {
        display: none;
    }
    body {
        background: white;
        color: black;
    }
}
