/* Modern Header Styles */
#features, #workflow, #faqs {
    scroll-margin-top: 120px!important;
}
#main-header {
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
}

/* Header scroll effect */
.header-scrolled {
    background: rgba(255, 255, 255, 0.98) !important;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

/* Desktop Navigation */
.nav-link {
    position: relative;
}

.nav-link::before {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, #3b82f6, #1e40af);
    transition: width 0.3s ease;
}

.nav-link:hover::before,
.nav-link.active::before {
    width: 80%;
}

.nav-link.active {
    color: #3b82f6;
    background-color: rgba(59, 130, 246, 0.05);
}

/* Hamburger Animation */
.hamburger-line {
    transform-origin: center;
    transition: all 0.3s cubic-bezier(0.4, 0.0, 0.2, 1);
}

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

#hamburger-btn.active .hamburger-line:nth-child(2) {
    opacity: 0;
    transform: scale(0);
}

#hamburger-btn.active .hamburger-line:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -7px);
}

/* Mobile Menu Animations */
#mobile-menu.open {
    transform: translateX(0);
}

#menu-overlay.open {
    opacity: 1;
    visibility: visible;
}

/* Mobile Link Animation */
.mobile-link {
    opacity: 0;
    transform: translateX(20px);
    animation: slideInMobile 0.4s ease-out forwards;
}

.mobile-link:nth-child(1) { animation-delay: 0.1s; }
.mobile-link:nth-child(2) { animation-delay: 0.2s; }
.mobile-link:nth-child(3) { animation-delay: 0.3s; }

@keyframes slideInMobile {
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Responsive adjustments */
@media (max-width: 640px) {
    .space-x-3 {
        gap: 0.5rem;
    }
    
    #mobile-menu {
        width: 100vw;
        max-width: 100vw;
    }
}

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

/* Focus states for accessibility */
button:focus,
a:focus {
    /* outline: 2px solid #3b82f6;
    outline-offset: 2px; */
    outline: none;
}

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