/* Custom styles for McKenzie Frame and Collision */

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

/* Navbar scroll effect */
.nav-fixed {
    will-change: box-shadow;
}

.nav-scrolled {
    box-shadow: 0 1px 20px rgba(123, 45, 142, 0.08);
}

/* Navigation link underline effect */
.nav-link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 1px;
    background: #D4A574;
    transition: width 0.3s ease;
}

.nav-link {
    position: relative;
}

.nav-link:hover::after {
    width: 100%;
}

/* Hero scroll line animation */
.scroll-line {
    animation: scrollPulse 2s ease-in-out infinite;
}

@keyframes scrollPulse {
    0%, 100% { opacity: 0.3; transform: scaleY(1); }
    50% { opacity: 1; transform: scaleY(1.2); }
}

/* Service card hover effects */
.service-card {
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.service-card:hover {
    transform: translateY(-2px);
}

/* Why us card hover */
.why-card {
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.why-card:hover {
    transform: translateX(4px);
}

/* Contact form */
.contact-form {
    transition: all 0.3s ease;
}

.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus {
    border-color: #8e4d96;
    box-shadow: 0 0 0 3px rgba(142, 77, 150, 0.1);
}

/* Mobile menu transitions */
.mobile-menu {
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.mobile-menu.active {
    opacity: 1;
    pointer-events: all;
}

.mobile-nav-link {
    opacity: 0;
    transform: translateY(10px);
    transition: all 0.3s ease;
}

.mobile-menu.active .mobile-nav-link {
    opacity: 1;
    transform: translateY(0);
}

.mobile-menu.active .mobile-nav-link:nth-child(1) { transition-delay: 0.05s; }
.mobile-menu.active .mobile-nav-link:nth-child(2) { transition-delay: 0.1s; }
.mobile-menu.active .mobile-nav-link:nth-child(3) { transition-delay: 0.15s; }
.mobile-menu.active .mobile-nav-link:nth-child(4) { transition-delay: 0.2s; }

/* Mobile menu button animation */
.menu-line {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.mobile-menu-btn.active .menu-line:nth-child(1) {
    transform: rotate(45deg) translate(3px, 3px);
}

.mobile-menu-btn.active .menu-line:nth-child(2) {
    opacity: 0;
    width: 0;
}

.mobile-menu-btn.active .menu-line:nth-child(3) {
    transform: rotate(-45deg) translate(3px, -3px);
    width: 5px;
}

/* Selection color */
::selection {
    background: rgba(123, 45, 142, 0.15);
    color: #45174d;
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }
    
    .scroll-line {
        animation: none;
    }
    
    .service-card,
    .why-card {
        transition: none;
    }
}

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

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

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

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