/* Custom styles for Golden Gates Construction */

/* Smooth scroll behavior */
html {
    scroll-behavior: smooth;
}

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: #0a1210;
}
::-webkit-scrollbar-thumb {
    background: #374151;
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: #d9922f;
}

/* Selection color */
::selection {
    background: rgba(217, 146, 47, 0.3);
    color: #f5f5f4;
}

/* Service card hover glow */
.service-card::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 16px;
    padding: 1px;
    background: linear-gradient(135deg, transparent, rgba(217, 146, 47, 0.1), transparent);
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.5s ease;
}
.service-card:hover::before {
    opacity: 1;
}

/* Testimonial card subtle gradient */
.testimonial-card {
    background-image: linear-gradient(135deg, rgba(217, 146, 47, 0.02) 0%, transparent 60%);
}

/* Gold gradient text utility */
.text-gold-gradient {
    background: linear-gradient(135deg, #eac06f, #d9922f, #c2761f);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Navbar glass effect when scrolled */
.nav-scrolled {
    background: rgba(10, 18, 16, 0.95) !important;
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(217, 146, 47, 0.1);
}

/* Mobile menu animation */
#mobileMenu.open {
    transform: scaleY(1);
    opacity: 1;
}

/* Fade-in animation for scroll reveal */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Pulse animation for hero badge */
@keyframes pulse-ring {
    0% {
        box-shadow: 0 0 0 0 rgba(217, 146, 47, 0.4);
    }
    70% {
        box-shadow: 0 0 0 10px rgba(217, 146, 47, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(217, 146, 47, 0);
    }
}

.animate-pulse-ring {
    animation: pulse-ring 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

/* Portfolio image hover overlay */
.group:hover .group-hover\:scale-110 {
    transform: scale(1.1);
}

/* Input focus glow */
input:focus, textarea:focus, select:focus {
    box-shadow: 0 0 0 1px rgba(217, 146, 47, 0.2), 0 0 20px rgba(217, 146, 47, 0.05);
}

/* Reduced motion support */
@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;
    }
}

/* Responsive adjustments */
@media (max-width: 640px) {
    .font-serif {
        line-height: 1.1;
    }
}
