/* Custom styles and overrides */

html {
    scroll-behavior: smooth;
}

body {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

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

/* Custom selection color */
::selection {
    background-color: rgba(255, 127, 80, 0.2);
    color: #1f2126;
}

/* Subtle gradient text utility */
.gradient-text {
    background: linear-gradient(135deg, #FF7F50 0%, #f0603a 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

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

/* Pulse animation for status dot */
@keyframes soft-pulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.7; transform: scale(1.2); }
}

.animate-float {
    animation: float 4s ease-in-out infinite;
}

.animate-float-delay {
    animation: float 4s ease-in-out 1s infinite;
}

.animate-float-slow {
    animation: float 5s ease-in-out 0.5s infinite;
}

/* Reduced motion preference */
@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }
    
    .animate-float,
    .animate-float-delay,
    .animate-float-slow,
    [class*="animate-"] {
        animation: none !important;
    }
}

/* Navbar scroll state */
.navbar-scrolled {
    background: rgba(255, 255, 255, 0.95) !important;
    backdrop-filter: blur(20px) !important;
    box-shadow: 0 1px 20px rgba(0, 0, 0, 0.06) !important;
}

.navbar-scrolled .text-charcoal-900 {
    color: #1f2126 !important;
}

/* Mobile menu transition */
#mobile-menu {
    transition: opacity 0.3s ease, visibility 0.3s ease, transform 0.3s ease;
    transform: translateY(-10px);
}

#mobile-menu.open {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

/* Service card hover effect */
.group:hover .group-hover\:-translate-y-1 {
    transform: translateY(-4px);
}

/* Input focus styles */
input:focus,
textarea:focus {
    box-shadow: 0 0 0 3px rgba(255, 127, 80, 0.1);
}

/* Subtle background pattern for sections */
.bg-pattern {
    background-image: radial-gradient(circle at 1px 1px, rgba(0,0,0,0.03) 1px, transparent 0);
    background-size: 24px 24px;
}
