/* Custom styles for Performance Appraisals */

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

/* Prevent scroll when mobile menu is open */
body.menu-open {
    overflow: hidden;
}

/* Navbar transition */
#navbar {
    transition: background-color 0.4s ease, box-shadow 0.4s ease, padding 0.4s ease;
}

#navbar.scrolled {
    background-color: rgba(249, 245, 247, 0.95);
    backdrop-filter: blur(12px);
    box-shadow: 0 1px 20px rgba(74, 25, 66, 0.08);
}

/* Menu lines animation */
.menu-line {
    transition: transform 0.3s ease, opacity 0.3s ease;
}

#menuBtn.active .menu-line:nth-child(1) {
    transform: translateY(4px) rotate(45deg);
}

#menuBtn.active .menu-line:nth-child(2) {
    opacity: 0;
}

#menuBtn.active .menu-line:nth-child(3) {
    transform: translateX(4px);
    width: 20px;
}

/* Mobile menu animation */
#mobileMenu.open {
    opacity: 1;
    pointer-events: all;
}

/* Mobile link animation */
.mobile-link {
    opacity: 0;
    transform: translateY(10px);
    transition: opacity 0.3s ease, transform 0.3s ease;
}

#mobileMenu.open .mobile-link {
    opacity: 1;
    transform: translateY(0);
}

#mobileMenu.open .mobile-link:nth-child(1) { transition-delay: 0.05s; }
#mobileMenu.open .mobile-link:nth-child(2) { transition-delay: 0.1s; }
#mobileMenu.open .mobile-link:nth-child(3) { transition-delay: 0.15s; }
#mobileMenu.open .mobile-link:nth-child(4) { transition-delay: 0.2s; }
#mobileMenu.open .mobile-link:nth-child(5) { transition-delay: 0.25s; }

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

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

@media (prefers-reduced-motion: no-preference) {
    .reveal.revealed {
        opacity: 1;
        transform: none;
    }
}

/* Staggered reveal delays */
.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }
.reveal-delay-4 { transition-delay: 0.4s; }

/* Custom selection color */
::selection {
    background-color: #D4A017;
    color: #220A1F;
}

/* Form focus styles */
input:focus, select:focus, textarea:focus {
    outline: none;
}

/* Image hover effects */
.group:hover .group-hover\\:rotate-6 {
    transform: rotate(6deg);
}

/* Subtle gradient overlay for hero image */
.hero-image-overlay {
    position: relative;
    overflow: hidden;
}

.hero-image-overlay::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, transparent 60%, rgba(74, 25, 66, 0.15) 100%);
    pointer-events: none;
}

/* Service card hover */
.group:hover {
    transform: translateY(-4px);
}

/* Button focus visible for accessibility */
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible {
    outline: 2px solid #D4A017;
    outline-offset: 2px;
    border-radius: 0.5rem;
}

/* Animation keyframes */
@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-8px); }
}

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

/* Print styles */
@media print {
    #navbar, #contactForm, #formSuccess {
        display: none !important;
    }
    body {
        color: #000;
        background: #fff;
    }
}
