/* Black Gold Theme - Base Styles */
body {
    background-color: #050505;
    color: #E0E0E0;
    font-family: 'Merriweather', serif;
    overflow-x: hidden;
}

/* Typography Overrides */
h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: 'Merriweather', serif;
    letter-spacing: 0.05em;
}

/* Background Texture */
.gold-dust-bg {
    background-image: radial-gradient(circle at 50% 50%, rgba(212, 175, 55, 0.05) 0%, transparent 60%),
        url("data:image/svg+xml,%3Csvg width='100' height='100' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.8' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100' height='100' filter='url(%23noise)' opacity='0.03'/%3E%3C/svg%3E");
    background-attachment: fixed;
}

/* Scrollbar */
::-webkit-scrollbar {
    width: 6px;
}

::-webkit-scrollbar-track {
    background: #050505;
}

::-webkit-scrollbar-thumb {
    background: #d4af37;
    border-radius: 3px;
}

/* Text Gradients */
.gold-text-gradient {
    background: linear-gradient(135deg, #F9E596 0%, #D4AF37 50%, #AA7C11 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

/* Shadows and Glows */
.shadow-gold {
    box-shadow: 0 10px 30px -10px rgba(212, 175, 55, 0.15);
}

.shadow-gold-hover:hover {
    box-shadow: 0 15px 40px -10px rgba(212, 175, 55, 0.3);
}

/* Scrolling Container */
.auto-scroll-container {
    position: relative;
    overflow: hidden;
    white-space: nowrap;
}

.scrolling-wrapper {
    display: inline-flex;
    animation: scrollX var(--scroll-duration, 30s) linear infinite;
    will-change: transform;
}

@keyframes scrollX {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-50%);
    }
}

/* Cards */
.tech-card {
    position: relative;
    overflow: hidden;
    background: #0a0a0a;
}

.tech-card::after {
    content: '';
    position: absolute;
    inset: 0;
    border: 1px solid rgba(212, 175, 55, 0);
    transition: border-color 0.5s ease;
    pointer-events: none;
    border-radius: inherit;
}

.tech-card:hover::after {
    border-color: rgba(212, 175, 55, 0.4);
}

/* Floating Contact */
.floating-contact {
    position: fixed;
    right: 2rem;
    bottom: 2rem;
    z-index: 50;
    width: 3.5rem;
    height: 3.5rem;
    border-radius: 50%;
    background: #0a0a0a;
    border: 1px solid #d4af37;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 0 20px rgba(212, 175, 55, 0.2);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.floating-contact:hover {
    transform: translateY(-5px) scale(1.05);
    box-shadow: 0 10px 25px rgba(212, 175, 55, 0.4);
    background: #d4af37;
}

.floating-contact img {
    object-fit: contain;
    transition: filter 0.4s;
}

/* .floating-contact:hover img {
    filter: brightness(0) invert(1);
} */

/* Search Results Grid */
#searchResultsGallery,
#featuredGridGallery,
#topGallery,
#frontPageGallery,
#regularGallery {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.5rem;
}

@media (min-width: 640px) {

    #searchResultsGallery,
    #featuredGridGallery,
    #topGallery,
    #frontPageGallery,
    #regularGallery {
        gap: 1rem;
    }
}

@media (min-width: 1024px) {

    #searchResultsGallery,
    #featuredGridGallery,
    #topGallery,
    #frontPageGallery,
    #regularGallery {
        grid-template-columns: repeat(4, minmax(0, 1fr));
        gap: 1.5rem;
    }
}

/* Contact Notice */
.contact-notice {
    background-color: rgba(212, 175, 55, 0.05);
    border: 1px solid rgba(212, 175, 55, 0.3);
    border-left: 3px solid #d4af37;
    padding: 1rem;
    margin: 1.5rem 0;
    color: #e0e0e0;
}

.contact-notice p {
    margin: 0.25rem 0;
    font-size: 0.9rem;
    letter-spacing: 0.02em;
}

.contact-notice p:first-child {
    color: #d4af37;
}

/* Input Fields */
input:focus {
    outline: none;
    border-color: #d4af37 !important;
    box-shadow: 0 0 0 1px #d4af37 !important;
}