/* Custom styles — F&R General Construction */

/* Smooth transitions for all interactive elements */
a, button, input, textarea, select {
    transition: all 0.3s ease;
}

/* Intersection observer animation base */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Staggered animation delays */
.fade-in:nth-child(1) { transition-delay: 0.1s; }
.fade-in:nth-child(2) { transition-delay: 0.2s; }
.fade-in:nth-child(3) { transition-delay: 0.3s; }
.fade-in:nth-child(4) { transition-delay: 0.4s; }
.fade-in:nth-child(5) { transition-delay: 0.5s; }
.fade-in:nth-child(6) { transition-delay: 0.6s; }

/* Navbar scroll state */
nav.scrolled {
    background: rgba(10, 26, 14, 0.95) !important;
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(212, 175, 85, 0.1);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.3);
}

/* Gold shimmer animation */
@keyframes shimmer {
    0% { background-position: -200% center; }
    100% { background-position: 200% center; }
}

.shimmer-text {
    background: linear-gradient(90deg, #d4af55 0%, #f0e2b6 40%, #d4af55 60%, #c9a24e 100%);
    background-size: 200% auto;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: shimmer 4s linear infinite;
}

/* Gold gradient text */
.gold-gradient {
    background: linear-gradient(135deg, #e8d5a3 0%, #d4af55 50%, #c9a24e 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Custom scrollbar */
::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: #14311d; }
::-webkit-scrollbar-thumb { background: #2d653d; border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: #d4af55; }

/* Selection color */
::selection {
    background: rgba(212, 175, 85, 0.3);
    color: #f5f2eb;
}

/* Mobile menu active state */
#mobile-menu.active {
    opacity: 1;
    pointer-events: all;
}

/* Card hover effects */
.card-dark {
    background: rgba(26, 63, 38, 0.5);
    border: 1px solid rgba(212, 175, 85, 0.15);
    backdrop-filter: blur(10px);
    transition: all 0.4s ease;
}

.card-dark:hover {
    border-color: rgba(212, 175, 85, 0.4);
    transform: translateY(-4px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

/* Image overlay */
.img-overlay {
    position: relative;
    overflow: hidden;
}

.img-overlay::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(20, 49, 29, 0.7) 0%, transparent 60%);
    pointer-events: none;
}

.img-overlay img {
    transition: transform 0.6s ease;
}

.img-overlay:hover img {
    transform: scale(1.05);
}

/* Nav link underline */
.nav-link {
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, #d4af55, #e8d5a3);
    transition: width 0.3s ease;
}

.nav-link:hover::after {
    width: 100%;
}

/* Form focus states */
input:focus, textarea:focus, select:focus {
    border-color: rgba(212, 175, 85, 0.6) !important;
    box-shadow: 0 0 0 3px rgba(212, 175, 85, 0.1);
}

/* Button press effect */
button:active {
    transform: scale(0.98);
}
