/* Custom styles that complement Tailwind */

/* Smooth scrollbar */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: #0A0F0D;
}
::-webkit-scrollbar-thumb {
    background: #1a2e23;
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: #10B981;
}

/* Selection color */
::selection {
    background: rgba(16, 185, 129, 0.3);
    color: #FDF8F0;
}

/* Navbar scroll state */
nav.scrolled {
    background: rgba(10, 15, 13, 0.95);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(253, 248, 240, 0.05);
}

/* Gold gradient border effect */
.gold-border {
    position: relative;
}
.gold-border::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: inherit;
    padding: 1px;
    background: linear-gradient(135deg, rgba(212, 168, 67, 0.3), transparent, rgba(212, 168, 67, 0.1));
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    pointer-events: none;
}

/* Button ripple effect */
.btn-ripple {
    position: relative;
    overflow: hidden;
}
.btn-ripple::after {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at var(--x, 50%) var(--y, 50%), rgba(255,255,255,0.15) 0%, transparent 60%);
    opacity: 0;
    transition: opacity 0.3s;
}
.btn-ripple:hover::after {
    opacity: 1;
}

/* Emerald accent line */
.accent-line {
    width: 60px;
    height: 3px;
    background: linear-gradient(90deg, #10B981, #34D399);
    border-radius: 2px;
}

/* Image hover overlay */
.img-overlay {
    position: relative;
    overflow: hidden;
}
.img-overlay::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(10, 15, 13, 0.4) 0%, transparent 50%);
    opacity: 0;
    transition: opacity 0.3s;
}
.img-overlay:hover::after {
    opacity: 1;
}

/* Reduce motion */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    html { scroll-behavior: auto; }
}
