/* Custom styles for Smeltzer Seamless Guttering */

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

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: #050A14;
}
::-webkit-scrollbar-thumb {
    background: #1A3655;
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: #2D5A7B;
}

/* Selection color */
::selection {
    background: rgba(52, 211, 153, 0.3);
    color: #F8FAFC;
}

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

/* Navbar glass effect when scrolled */
.nav-scrolled {
    background: rgba(5, 10, 20, 0.92) !important;
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

/* Subtle animation for hero image */
@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-10px); }
}

.hero-float {
    animation: float 6s ease-in-out infinite;
}

/* Gold shimmer effect on hover for cards */
.card-hover {
    position: relative;
    overflow: hidden;
}

.card-hover::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(251, 191, 36, 0.03), transparent);
    transition: left 0.5s ease;
    z-index: 0;
}

.card-hover:hover::before {
    left: 100%;
}

/* Input autofill styling for dark theme */
input:-webkit-autofill,
input:-webkit-autofill:hover,
input:-webkit-autofill:focus,
textarea:-webkit-autofill,
textarea:-webkit-autofill:hover,
textarea:-webkit-autofill:focus {
    -webkit-text-fill-color: #F8FAFC;
    -webkit-box-shadow: 0 0 0px 1000px #0A1628 inset;
    transition: background-color 5000s ease-in-out 0s;
}

/* Prevent layout shift on images */
img {
    image-rendering: -webkit-optimize-contrast;
    image-rendering: crisp-edges;
}
