/* Custom overrides and enhancements */

/* Smooth scroll offset for fixed nav */
section[id] {
    scroll-margin-top: 80px;
}

/* Navbar glass effect when scrolled */
.nav-scrolled {
    background: rgba(255, 255, 255, 0.95) !important;
    backdrop-filter: blur(12px);
    box-shadow: 0 1px 20px rgba(22, 42, 67, 0.08);
}

.nav-scrolled #nav-logo,
.nav-scrolled .nav-link {
    color: #162a43 !important;
}

/* Gradient text utility */
.gradient-text {
    background: linear-gradient(135deg, #d49a1a, #e5b23c);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Subtle pattern overlay for sections */
.section-pattern {
    background-image: radial-gradient(circle at 1px 1px, rgba(22, 42, 67, 0.03) 1px, transparent 0);
    background-size: 24px 24px;
}

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: #f0f3f9;
}
::-webkit-scrollbar-thumb {
    background: #afc0df;
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: #89a2cf;
}

/* Selection color */
::selection {
    background: rgba(212, 154, 26, 0.2);
    color: #162a43;
}

/* Image hover zoom container */
.img-zoom {
    overflow: hidden;
}
.img-zoom img {
    transition: transform 0.7s cubic-bezier(0.22, 0.61, 0.36, 1);
}
.img-zoom:hover img {
    transform: scale(1.05);
}

/* Gold accent line */
.gold-line {
    width: 60px;
    height: 3px;
    background: linear-gradient(90deg, #d49a1a, #e5b23c);
    border-radius: 2px;
}

/* Soft shadow for cards */
.card-soft {
    box-shadow: 0 4px 24px rgba(22, 42, 67, 0.06);
}
.card-soft:hover {
    box-shadow: 0 12px 40px rgba(22, 42, 67, 0.12);
}

/* Animated gradient border */
.gradient-border {
    position: relative;
    background: white;
    border-radius: 1rem;
}
.gradient-border::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 1rem;
    padding: 1.5px;
    background: linear-gradient(135deg, #d49a1a33, #1d365533, #d49a1a33);
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    pointer-events: none;
}
