/* Custom styles for AR & MS Support 4U */

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

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

#navbar.scrolled {
    background: rgba(254, 253, 248, 0.97);
    backdrop-filter: blur(12px);
    box-shadow: 0 1px 20px rgba(4, 78, 59, 0.08);
    padding: 0;
}

#navbar.scrolled .font-serif {
    color: #047857 !important;
}

/* Mobile menu animation */
.menu-line {
    transition: all 0.3s ease;
}

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

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

#menuBtn.active .menu-line:nth-child(3) {
    width: 1.5rem;
    transform: rotate(-45deg) translate(5px, -5px);
}

/* Mobile link close */
.mobile-link {
    cursor: pointer;
}

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

.reveal-hidden {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

/* Decorative pattern for hero */
.hero-pattern {
    background-image: radial-gradient(circle at 1px 1px, rgba(255,255,255,0.05) 1px, transparent 0);
    background-size: 40px 40px;
}

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

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

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

::-webkit-scrollbar-thumb:hover {
    background: #065f46;
}

/* Focus styles */
input:focus, textarea:focus, button:focus {
    outline: none;
}

/* Card hover effects */
.group:hover .group-hover\:rotate-0 {
    transition: transform 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* Animation for floating cards */
@keyframes float {
    0%, 100% { transform: translateY(0px) rotate(var(--rotate, 2deg)); }
    50% { transform: translateY(-10px) rotate(var(--rotate, 2deg)); }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }
    
    .reveal-hidden {
        opacity: 1;
        transform: none;
    }
    
    .group:hover .group-hover\:rotate-0 {
        transform: none;
    }
}

/* Print styles */
@media print {
    nav, #contactForm, #successMsg {
        display: none;
    }
    
    body {
        color: #000;
        background: #fff;
    }
}
