/* === Custom Styles for BarBholi === */

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

/* Grid overlay for hero */
.grid-overlay {
    background-image:
        linear-gradient(rgba(201, 168, 76, 0.15) 1px, transparent 1px),
        linear-gradient(90deg, rgba(201, 168, 76, 0.15) 1px, transparent 1px);
    background-size: 80px 80px;
}

/* Hero accent blobs */
.hero-accent--tl { background: radial-gradient(circle, #c9a84c, transparent 70%); }
.hero-accent--tr { background: radial-gradient(circle, #1e3a5f, transparent 70%); }
.hero-accent--bl { background: radial-gradient(circle, #2d1f0e, transparent 70%); }
.hero-accent--br { background: radial-gradient(circle, #0f172a, transparent 70%); }

/* Scroll reveal base — content always visible by default */
.reveal-up,
.reveal-left,
.reveal-right {
    opacity: 1;
    transform: none;
    transition: none;
}

@media (prefers-reduced-motion: no-preference) {
    .reveal-up {
        opacity: 0;
        transform: translateY(30px);
        transition: opacity 0.7s cubic-bezier(0.22, 1, 0.36, 1), transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
    }
    .reveal-left {
        opacity: 0;
        transform: translateX(-30px);
        transition: opacity 0.7s cubic-bezier(0.22, 1, 0.36, 1), transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
    }
    .reveal-right {
        opacity: 0;
        transform: translateX(30px);
        transition: opacity 0.7s cubic-bezier(0.22, 1, 0.36, 1), transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
    }
    .reveal-up.revealed,
    .reveal-left.revealed,
    .reveal-right.revealed {
        opacity: 1;
        transform: translate(0, 0);
    }
}

/* Header scrolled state */
header.scrolled {
    background: rgba(8, 15, 31, 0.95);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(201, 168, 76, 0.1);
}

/* Nav link underline on hover */
.nav-link::after {
    content: '';
    display: block;
    width: 0;
    height: 1px;
    background: #c9a84c;
    transition: width 0.3s ease;
    margin-top: 2px;
}
.nav-link:hover::after {
    width: 100%;
}

/* Custom select arrow */
select {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%2394a3b8' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 1rem center;
    padding-right: 2.5rem;
}

/* Selection color */
::selection {
    background: rgba(201, 168, 76, 0.3);
    color: #f1f5f9;
}

/* Subtle image hover zoom */
img {
    transition: transform 0.5s ease, opacity 0.3s ease;
}

/* Focus visible for accessibility */
:focus-visible {
    outline: 2px solid #c9a84c;
    outline-offset: 2px;
}

/* Mobile menu transition */
#mobileMenu {
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}
#mobileMenu.open {
    opacity: 1;
    pointer-events: all;
}
