/* Custom styles supplementing Tailwind CSS */

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

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: #052e16;
}
::-webkit-scrollbar-thumb {
    background: #d4a843;
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: #e8c56d;
}

/* Selection color */
::selection {
    background: rgba(212, 168, 67, 0.3);
    color: #fefdf8;
}

/* Focus visible styles */
*:focus-visible {
    outline: 2px solid #d4a843;
    outline-offset: 2px;
}

/* Select dropdown arrow */
select {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23d4a843' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    padding-right: 40px;
}

/* Gold shimmer animation on hover */
.gold-shimmer {
    background: linear-gradient(90deg, #d4a843 0%, #f5d98e 50%, #d4a843 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    background-size: 200% auto;
    transition: background-size 0.4s ease;
}

/* Button press effect */
button, a {
    -webkit-tap-highlight-color: transparent;
}

/* Image loading placeholder */
img {
    background: linear-gradient(135deg, #14532d 0%, #052e16 100%);
}

/* Subtle pattern overlay for sections */
section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: radial-gradient(rgba(212, 168, 67, 0.03) 1px, transparent 1px);
    background-size: 30px 30px;
    pointer-events: none;
}

/* Navbar glass effect */
#navbar.scrolled {
    background: rgba(5, 46, 22, 0.95);
    backdrop-filter: blur(20px);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.3);
}

/* Card glow on hover */
.card-hover {
    position: relative;
    overflow: hidden;
}
.card-hover::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(212, 168, 67, 0.05), transparent);
    transition: left 0.6s ease;
}
.card-hover:hover::after {
    left: 100%;
}

/* Reduced 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;
    }
    .reveal {
        opacity: 1 !important;
        transform: none !important;
    }
    .animate-bounce {
        animation: none;
    }
}

/* Print styles */
@media print {
    nav, #contact-form, .animate-bounce {
        display: none;
    }
    body {
        background: white;
        color: black;
    }
    .hero-gradient {
        background: #14532d;
    }
}

/* Tablet adjustments */
@media (max-width: 768px) {
    .card-hover:hover {
        transform: none;
    }
}
