/* ===== MEGA MENU - Premium Glassmorphism Design ===== */
.mega-menu-trigger {
    position: relative;
}

.mega-menu {
    position: absolute;
    top: 100%;
    left: 0;
    transform: translateY(10px) translateX(-25%);
    width: 720px;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.6);
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.1), 0 0 0 1px rgba(0, 0, 0, 0.02);
    opacity: 0;
    visibility: hidden;
    transition: all 0.2s ease-out;
    z-index: 100;
    padding: 1.25rem;
    pointer-events: none;
    overflow: hidden;
}

.mega-menu-trigger:hover .mega-menu,
.mega-menu:hover {
    opacity: 1;
    visibility: visible;
    transform: translateY(0) translateX(-25%);
    pointer-events: auto;
}

.mega-menu::before {
    content: '';
    position: absolute;
    top: -12px;
    left: 0;
    width: 100%;
    height: 20px;
    background: transparent;
}

/* Subtle gradient highlights */
.mega-menu-gradient-top {
    position: absolute;
    top: 0;
    right: 0;
    width: 8rem;
    height: 8rem;
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.05), rgba(139, 92, 246, 0.05));
    border-radius: 9999px;
    filter: blur(32px);
    pointer-events: none;
}

.mega-menu-gradient-bottom {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 6rem;
    height: 6rem;
    background: linear-gradient(45deg, rgba(245, 158, 11, 0.05), rgba(249, 115, 22, 0.05));
    border-radius: 9999px;
    filter: blur(32px);
    pointer-events: none;
}

/* Feature card items */
.mega-menu-feature-card {
    display: block;
    padding: 0.875rem;
    border-radius: 12px;
    border: 1px solid rgba(243, 244, 246, 0.8);
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(8px);
    transition: all 0.2s ease;
    text-decoration: none;
    height: 100%;
}

.mega-menu-feature-card:hover {
    background: white;
    border-color: #e5e7eb;
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.08);
    transform: translateY(-2px);
}

.mega-menu-feature-card:hover .mega-menu-icon {
    transform: scale(1.05);
    box-shadow: 0 6px 16px -4px rgba(59, 130, 246, 0.35);
}

.mega-menu-feature-card:hover .feature-chevron {
    opacity: 1;
    transform: translateX(2px);
}

.mega-menu-item-inner {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.mega-menu-icon {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: all 0.2s ease-out;
    box-shadow: 0 2px 6px -2px rgba(0, 0, 0, 0.1);
}

.mega-menu-content {
    flex: 1;
    min-width: 0;
}

.mega-menu-content h4 {
    font-weight: 600;
    font-size: 0.875rem;
    color: #1f2937;
    margin-bottom: 2px;
    transition: color 0.2s ease;
}

.mega-menu-feature-card:hover .mega-menu-content h4 {
    color: #111827;
}

.mega-menu-content p {
    font-size: 0.75rem;
    color: #6b7280;
    line-height: 1.4;
    margin-top: 0.125rem;
}

.feature-chevron {
    width: 16px;
    height: 16px;
    color: #d1d5db;
    opacity: 0;
    transition: all 0.2s ease;
}

/* Industry pill items */
.mega-menu-industry-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.5rem 0.75rem;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.6);
    font-size: 0.875rem;
    color: #4b5563;
    transition: all 0.2s ease;
    text-decoration: none;
}

.mega-menu-industry-item:hover {
    background: white;
    color: #111827;
}

.mega-menu-industry-item:hover .industry-chevron {
    color: #6b7280;
    transform: translateX(2px);
}

.industry-dot {
    width: 8px;
    height: 8px;
    border-radius: 9999px;
    flex-shrink: 0;
}

.industry-chevron {
    width: 14px;
    height: 14px;
    color: #d1d5db;
    transition: all 0.2s ease;
}

/* Quick links card */
.mega-menu-quick-links {
    margin-top: 1rem;
    padding: 0.75rem;
    border-radius: 12px;
    background: linear-gradient(135deg, #f9fafb, rgba(239, 246, 255, 0.5));
    border: 1px solid #f3f4f6;
}

.mega-menu-quick-link {
    display: flex;
    align-items: center;
    gap: 0.625rem;
    padding: 0.5rem;
    border-radius: 8px;
    font-size: 0.875rem;
    font-weight: 500;
    color: #374151;
    transition: all 0.2s ease;
    text-decoration: none;
}

.mega-menu-quick-link:hover {
    background: white;
    color: #2563eb;
}

.mega-menu-quick-link:hover .quick-link-icon {
    background: linear-gradient(135deg, #3b82f6, #2563eb);
}

.quick-link-icon {
    width: 28px;
    height: 28px;
    border-radius: 8px;
    background: linear-gradient(135deg, #4b5563, #374151);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.mega-menu-divider {
    width: 1px;
    background: linear-gradient(180deg, transparent 0%, #e5e7eb 15%, #e5e7eb 85%, transparent 100%);
    margin: 0 1.25rem;
}

.mega-menu-section-title {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.6875rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: #6b7280;
    padding: 0.25rem 0.25rem;
    margin-bottom: 0.75rem;
}

.mega-menu-section-icon {
    width: 20px;
    height: 20px;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Features grid */
.mega-menu-features-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.5rem;
}

/* Industries list */
.mega-menu-industries-list {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

/* ===== MAGNETIC BUTTON (for nav) ===== */
.btn-magnetic {
    position: relative;
    background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
    box-shadow: 0 4px 15px rgba(59, 130, 246, 0.4);
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    overflow: hidden;
}

.btn-magnetic::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, #1d4ed8 0%, #7c3aed 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.btn-magnetic:hover {
    transform: translateY(-2px) scale(1.02);
    box-shadow: 0 8px 25px rgba(59, 130, 246, 0.5);
}

.btn-magnetic:hover::before {
    opacity: 1;
}

.btn-magnetic span {
    position: relative;
    z-index: 1;
}

/* ===== SHINE EFFECT ===== */
.shine {
    position: relative;
    overflow: hidden;
}

.shine::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(
        to right,
        transparent 0%,
        rgba(255, 255, 255, 0.3) 50%,
        transparent 100%
    );
    transform: rotate(30deg) translateX(-100%);
    transition: transform 0.6s ease;
}

.shine:hover::after {
    transform: rotate(30deg) translateX(100%);
}

/* ===== COMPARE DROPDOWN ===== */
.compare-menu-trigger {
    position: relative;
}

.compare-menu-trigger:hover .compare-dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.compare-dropdown {
    transform: translateY(8px);
}

.compare-dropdown::before {
    content: '';
    position: absolute;
    top: -10px;
    left: 0;
    width: 100%;
    height: 12px;
    background: transparent;
}
