/* ===== CUSTOM STYLES ===== */

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

/* Selection color */
::selection {
    background: rgba(224, 160, 62, 0.3);
    color: #f5e8f7;
}

/* ===== NAVBAR SCROLL STATE ===== */
#site-header.scrolled #nav-bg {
    background: rgba(42, 15, 36, 0.95);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}

#site-header.scrolled {
    box-shadow: 0 1px 0 rgba(200, 149, 108, 0.1);
}

/* ===== MOBILE MENU ===== */
#mobile-menu.open {
    opacity: 1;
    pointer-events: all;
}

#mobile-menu.closed #bar1 {
    transform: translateY(6px) rotate(45deg);
}
#mobile-menu.closed #bar2 {
    opacity: 0;
}
#mobile-menu.closed #bar3 {
    transform: translateY(-6px) rotate(-45deg);
}

/* ===== SCROLL REVEAL ===== */
.reveal {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94),
                transform 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

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

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

/* ===== STAGGER CHILDREN ===== */
.reveal-group .reveal:nth-child(1) { transition-delay: 0ms; }
.reveal-group .reveal:nth-child(2) { transition-delay: 100ms; }
.reveal-group .reveal:nth-child(3) { transition-delay: 200ms; }
.reveal-group .reveal:nth-child(4) { transition-delay: 300ms; }
.reveal-group .reveal:nth-child(5) { transition-delay: 400ms; }

/* ===== GALLERY HOVER ===== */
.gallery-item {
    position: relative;
    overflow: hidden;
}

.gallery-item::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(42, 15, 36, 0.4), transparent);
    opacity: 0;
    transition: opacity 0.4s ease;
}

.gallery-item:hover::after {
    opacity: 1;
}

/* ===== FORM STYLES ===== */
.contact-input {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(200, 149, 108, 0.2);
    border-radius: 8px;
    padding: 14px 18px;
    color: #f5e8f7;
    font-family: 'Lato', sans-serif;
    font-size: 15px;
    font-weight: 300;
    width: 100%;
    transition: border-color 0.3s ease, background 0.3s ease;
    outline: none;
}

.contact-input::placeholder {
    color: rgba(219, 174, 220, 0.5);
}

.contact-input:focus {
    border-color: rgba(224, 160, 62, 0.5);
    background: rgba(255, 255, 255, 0.06);
}

.contact-textarea {
    resize: vertical;
    min-height: 120px;
}

/* ===== BUTTON HOVER GLOW ===== */
.btn-glow {
    position: relative;
    overflow: hidden;
}

.btn-glow::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, transparent 0%, rgba(255,255,255,0.1) 50%, transparent 100%);
    transform: translateX(-100%);
    transition: transform 0.6s ease;
}

.btn-glow:hover::before {
    transform: translateX(100%);
}

/* ===== DECORATIVE DIAMOND ===== */
.diamond-divider {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 8px;
    height: 8px;
    background: currentColor;
    transform: rotate(45deg);
    opacity: 0.5;
}

/* ===== CARD SHINE EFFECT ===== */
.card-shine {
    position: relative;
    overflow: hidden;
}

.card-shine::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(
        to bottom right,
        transparent 40%,
        rgba(255, 255, 255, 0.02) 50%,
        transparent 60%
    );
    transform: rotate(30deg);
    transition: transform 0.8s ease;
}

.card-shine:hover::after {
    transform: rotate(30deg) translate(10%, 10%);
}

/* ===== IMAGE PLACEHOLDER FALLBACK ===== */
img {
    image-rendering: -webkit-optimize-contrast;
    image-rendering: crisp-edges;
}

/* ===== SCROLLBAR ===== */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: #2a0f24;
}
::-webkit-scrollbar-thumb {
    background: #5e2650;
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: #742d64;
}

/* ===== MOBILE RESPONSIVE ===== */
@media (max-width: 768px) {
    .font-serif {
        font-size: clamp(1.75rem, 6vw, 2.5rem);
    }
}
