/* Accu-Test Labs — Custom Styles */

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

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: #FFF8F5;
}
::-webkit-scrollbar-thumb {
    background: #931a3b;
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: #771a36;
}

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

/* Service card hover effects */
.service-card {
    position: relative;
    overflow: hidden;
}

.service-card::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #931a3b, #ff4d6d);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.4s ease;
}

.service-card:hover::after {
    transform: scaleX(1);
}

/* Mobile menu transitions */
#mobileMenu {
    animation: slideDown 0.3s ease forwards;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Navbar scroll state */
nav.scrolled {
    background: rgba(255, 248, 245, 0.95) !important;
    backdrop-filter: blur(20px);
    box-shadow: 0 1px 20px rgba(147, 26, 59, 0.08);
}

nav.scrolled .nav-link {
    color: #4A4040;
}

nav.scrolled .nav-link:hover {
    color: #931a3b;
}

/* Scroll reveal animations */
.reveal {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal.hidden {
    opacity: 0;
    transform: translateY(30px);
}

/* Staggered animation delays for grid items */
.service-card:nth-child(1) { transition-delay: 0.05s; }
.service-card:nth-child(2) { transition-delay: 0.1s; }
.service-card:nth-child(3) { transition-delay: 0.15s; }
.service-card:nth-child(4) { transition-delay: 0.2s; }
.service-card:nth-child(5) { transition-delay: 0.25s; }
.service-card:nth-child(6) { transition-delay: 0.3s; }

/* Button focus styles */
button:focus-visible,
a:focus-visible {
    outline: 2px solid #931a3b;
    outline-offset: 2px;
}

/* Input focus styles */
input:focus,
textarea:focus {
    box-shadow: 0 0 0 3px rgba(147, 26, 59, 0.1);
}

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

/* Mobile menu active state */
#mobileMenu.active {
    display: block;
}

#mobileMenu.hidden {
    display: none;
}

/* Hero geometric shapes animation */
@keyframes float {
    0%, 100% { transform: translateY(0) rotate(12deg); }
    50% { transform: translateY(-15px) rotate(12deg); }
}

@keyframes floatSlow {
    0%, 100% { transform: translateY(0) rotate(45deg); }
    50% { transform: translateY(-10px) rotate(45deg); }
}

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

.hero-shape-2 {
    animation: floatSlow 8s ease-in-out infinite;
}

/* Pulse animation for badge dot */
@keyframes pulse-ring {
    0% { box-shadow: 0 0 0 0 rgba(255, 116, 138, 0.5); }
    70% { box-shadow: 0 0 0 8px rgba(255, 116, 138, 0); }
    100% { box-shadow: 0 0 0 0 rgba(255, 116, 138, 0); }
}

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