/* Custom styles that complement Tailwind */

/* Smooth scrolling for the whole page */
html {
    scroll-behavior: smooth;
}

/* Prevent layout shift on images */
img {
    max-width: 100%;
    height: auto;
}

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

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

::-webkit-scrollbar-thumb {
    background: #44719b;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #294867;
}

/* Selection color */
::selection {
    background: #e89a0a;
    color: #fff;
}

/* Focus styles for accessibility */
a:focus-visible,
button:focus-visible {
    outline: 2px solid #e89a0a;
    outline-offset: 2px;
    border-radius: 4px;
}

/* Ensure navbar doesn't overlap content on scroll */
section[id] {
    scroll-margin-top: 80px;
}

/* Subtle pattern for hero section background */
.hero-pattern {
    background-image: radial-gradient(circle at 1px 1px, rgba(232, 154, 10, 0.05) 1px, transparent 0);
    background-size: 24px 24px;
}

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

/* Card hover glow effect */
.service-card:hover {
    box-shadow: 0 20px 40px -12px rgba(15, 26, 42, 0.15), 0 0 0 1px rgba(232, 154, 10, 0.1);
}

/* Mobile menu animation */
.mobile-menu {
    transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.3s ease;
    opacity: 0;
}

.mobile-menu.open {
    max-height: 400px;
    opacity: 1;
}

/* Button press effect */
.btn-primary:active,
.btn-secondary:active {
    transform: translateY(0) scale(0.98);
}

/* Subtle pulse for the gold dot */
@keyframes pulse-gold {
    0%, 100% {
        opacity: 1;
        transform: scale(1);
    }
    50% {
        opacity: 0.7;
        transform: scale(1.2);
    }
}

.gold-dot {
    animation: pulse-gold 2s ease-in-out infinite;
}

/* Reduce motion preference */
@media (prefers-reduced-motion: reduce) {
    .gold-dot {
        animation: none;
    }
    
    html {
        scroll-behavior: auto;
    }
    
    .service-card {
        transition: none;
    }
    
    .service-card:hover {
        transform: none;
    }
}
